2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.27 2009/09/30 00:24:39 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2010 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 more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
834 INSTALL_STRIP_PROGRAM
844 OPENLDAP_RELEASE_DATE
935 SLAPD_MODULES_CPPFLAGS
936 SLAPD_MODULES_LDFLAGS
938 SLAPD_STATIC_BACKENDS
939 SLAPD_DYNAMIC_BACKENDS
940 SLAPD_STATIC_OVERLAYS
941 SLAPD_DYNAMIC_OVERLAYS
962 ac_precious_vars='build_alias
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1542 if test -n "$ac_init_help"; then
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-debug enable debugging no|yes|traditional [yes]
1550 --enable-dynamic enable linking built binaries with dynamic libs [no]
1551 --enable-syslog enable syslog support [auto]
1552 --enable-proctitle enable proctitle support [yes]
1553 --enable-ipv6 enable IPv6 support [auto]
1554 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1556 SLAPD (Standalone LDAP Daemon) Options:
1557 --enable-slapd enable building slapd [yes]
1558 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1559 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1560 --enable-cleartext enable cleartext passwords [yes]
1561 --enable-crypt enable crypt(3) passwords [no]
1562 --enable-lmpasswd enable LAN Manager passwords [no]
1563 --enable-spasswd enable (Cyrus) SASL password verification [no]
1564 --enable-modules enable dynamic module support [no]
1565 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1566 --enable-rlookups enable reverse lookups of client hostnames [no]
1567 --enable-slapi enable SLAPI support (experimental) [no]
1568 --enable-slp enable SLPv2 support [no]
1569 --enable-wrappers enable tcp wrapper support [no]
1571 SLAPD Backend Options:
1572 --enable-backends enable all available backends no|yes|mod
1573 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1574 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1575 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1576 --enable-ldap enable ldap backend no|yes|mod [no]
1577 --enable-meta enable metadirectory backend no|yes|mod [no]
1578 --enable-monitor enable monitor backend no|yes|mod [yes]
1579 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1580 --enable-null enable null backend no|yes|mod [no]
1581 --enable-passwd enable passwd backend no|yes|mod [no]
1582 --enable-perl enable perl backend no|yes|mod [no]
1583 --enable-relay enable relay backend no|yes|mod [yes]
1584 --enable-shell enable shell backend no|yes|mod [no]
1585 --enable-sock enable sock backend no|yes|mod [no]
1586 --enable-sql enable sql backend no|yes|mod [no]
1588 SLAPD Overlay Options:
1589 --enable-overlays enable all available overlays no|yes|mod
1590 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1591 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1592 --enable-collect Collect overlay no|yes|mod [no]
1593 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1594 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1595 --enable-deref Dereference overlay no|yes|mod [no]
1596 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1597 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1598 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1599 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1600 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1601 --enable-refint Referential Integrity overlay no|yes|mod [no]
1602 --enable-retcode Return Code testing overlay no|yes|mod [no]
1603 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1604 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1605 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1606 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1607 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1608 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1609 --enable-valsort Value Sorting overlay no|yes|mod [no]
1611 Library Generation & Linking Options
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-subdir=DIR change default subdirectory used for installs
1624 --with-cyrus-sasl with Cyrus SASL support [auto]
1625 --with-fetch with fetch(3) URL support [auto]
1626 --with-threads with threads [auto]
1627 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1628 --with-yielding-select with implicitly yielding select [auto]
1629 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-pic try to use only PIC/non-PIC objects [default=use
1634 --with-tags[=TAGS] include additional configurations [automatic]
1636 See INSTALL file for further details.
1638 Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
1643 LIBS libraries to pass to the linker, e.g. -l<library>
1644 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645 you have headers in a nonstandard directory <include dir>
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1655 if test "$ac_init_help" = "recursive"; then
1656 # If there are subdirs, report their specific --help.
1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 test -d "$ac_dir" || continue
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.61
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1719 Copyright 1998-2010 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61. Invocation command line was
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 echo "PATH: $as_dir"
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1789 ac_must_keep_next=false
1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797 | -silent | --silent | --silen | --sile | --sil)
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806 if test $ac_must_keep_next = true; then
1807 ac_must_keep_next=false # Got value, back to normal.
1810 *=* | --config-cache | -C | -disable-* | --disable-* \
1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813 | -with-* | --with-* | -without-* | --without-* | --x)
1814 case "$ac_configure_args0 " in
1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818 -* ) ac_must_keep_next=true ;;
1821 ac_configure_args="$ac_configure_args '$ac_arg'"
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log. We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835 # Save into config.log some information that might help in debugging.
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1845 # The following way of writing the cache mishandles newlines in values,
1847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848 eval ac_val=\$$ac_var
1852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1856 _ | IFS | as_nl) ;; #(
1857 *) $as_unset $ac_var ;;
1862 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863 *${as_nl}ac_space=\ *)
1865 "s/'\''/'\''\\\\'\'''\''/g;
1866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1882 for ac_var in $ac_subst_vars
1884 eval ac_val=\$$ac_var
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 echo "$ac_var='\''$ac_val'\''"
1892 if test -n "$ac_subst_files"; then
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1899 for ac_var in $ac_subst_files
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 echo "$ac_var='\''$ac_val'\''"
1910 if test -s confdefs.h; then
1920 test "$ac_signal" != 0 &&
1921 echo "$as_me: caught signal $ac_signal"
1922 echo "$as_me: exit $exit_status"
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1936 # Predefined preprocessor variables.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1970 set x "$ac_default_prefix/share/config.site" \
1971 "$ac_default_prefix/etc/config.site"
1976 if test -r "$ac_site_file"; then
1977 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979 sed 's/^/| /' "$ac_site_file" >&5
1985 # Check that the precious variables saved in the cache have kept the same
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2008 echo "$as_me: former value: $ac_old_val" >&2;}
2009 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2010 echo "$as_me: current value: $ac_new_val" >&2;}
2011 ac_cache_corrupted=:
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2017 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026 if $ac_cache_corrupted; then
2027 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031 { (exit 1); exit 1; }; }
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 for ac_dir in build "$srcdir"/build; do
2085 if test -f "$ac_dir/install-sh"; then
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 elif test -f "$ac_dir/install.sh"; then
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 elif test -f "$ac_dir/shtool"; then
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2099 if test -z "$ac_aux_dir"; then
2100 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102 { (exit 1); exit 1; }; }
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118 { (exit 1); exit 1; }; }
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122 ac_cv_shtool="$ac_aux_dir/shtool"
2124 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126 { (exit 1); exit 1; }; }
2129 SHTOOL="$ac_cv_shtool"
2133 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2138 if test -d $ac_aux_dir/CVS; then
2139 OPENLDAP_CVS="(from CVS sources) "
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161 { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$host_alias" = x; then
2196 ac_cv_host=$ac_cv_build
2198 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211 { (exit 1); exit 1; }; };;
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test "x$target_alias" = x; then
2233 ac_cv_target=$ac_cv_host
2235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248 { (exit 1); exit 1; }; };;
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2269 program_prefix=${target_alias}-
2271 am__api_version="1.9"
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2298 ./ | .// | /cC/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2342 echo "${ECHO_T}$INSTALL" >&6; }
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2363 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t $srcdir/configure conftest.file`
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" >&5
2378 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" >&2;}
2380 { (exit 1); exit 1; }; }
2383 test "$2" = conftest.file
2389 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2390 Check your system clock" >&5
2391 echo "$as_me: error: newly created file is older than distributed files!
2392 Check your system clock" >&2;}
2393 { (exit 1); exit 1; }; }
2395 { echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $. echo might interpret backslashes.
2403 # By default was `s,x,x', remove it if useless.
2404 cat <<\_ACEOF >conftest.sed
2405 s/[\\$]/&&/g;s/;s,x,x,$//
2407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416 am_missing_run="$MISSING --run "
2419 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2424 # We used to keeping the `.' as first argument, in order to
2425 # allow $(mkdir_p) to be used without argument. As in
2426 # $(mkdir_p) $(somedir)
2427 # where $(somedir) is conditionally defined. However this is wrong
2429 # 1. if the package is installed by a user who cannot write `.'
2430 # make install will fail,
2431 # 2. the above comment should most certainly read
2432 # $(mkdir_p) $(DESTDIR)$(somedir)
2433 # so it does not work when $(somedir) is undefined and
2434 # $(DESTDIR) is not.
2435 # To support the latter case, we have to write
2436 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2437 # so the `.' trick is pointless.
2438 mkdir_p='mkdir -p --'
2440 # On NextStep and OpenStep, the `mkdir' command does not
2441 # recognize any option. It will interpret all options as
2442 # directories to create, and then abort because `.' already
2444 for d in ./-p ./--version;
2446 test -d $d && rmdir $d
2448 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2449 if test -f "$ac_aux_dir/mkinstalldirs"; then
2450 mkdir_p='$(mkinstalldirs)'
2452 mkdir_p='$(install_sh) -d'
2456 for ac_prog in gawk mawk nawk awk
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_AWK+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$AWK"; then
2466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_AWK="$ac_prog"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$AWK"; then
2487 { echo "$as_me:$LINENO: result: $AWK" >&5
2488 echo "${ECHO_T}$AWK" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2495 test -n "$AWK" && break
2498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.make <<\_ACEOF
2507 @echo '@@@%%%=$(MAKE)=@@@%%%'
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512 eval ac_cv_prog_make_${ac_make}_set=yes;;
2514 eval ac_cv_prog_make_${ac_make}_set=no;;
2518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 SET_MAKE="MAKE=${MAKE-make}"
2528 rm -rf .tst 2>/dev/null
2529 mkdir .tst 2>/dev/null
2530 if test -d .tst; then
2535 rmdir .tst 2>/dev/null
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539 test -f $srcdir/config.status; then
2540 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542 { (exit 1); exit 1; }; }
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547 if (cygpath --version) >/dev/null 2>/dev/null; then
2548 CYGPATH_W='cygpath -w'
2555 # Define the identity of the package.
2560 # Some tools Automake needs.
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'. However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$STRIP"; then
2592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613 { echo "$as_me:$LINENO: result: $STRIP" >&5
2614 echo "${ECHO_T}$STRIP" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$ac_cv_prog_STRIP"; then
2624 # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_STRIP"; then
2632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_STRIP="strip"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2654 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2660 if test "x$ac_ct_STRIP" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2676 STRIP="$ac_cv_prog_STRIP"
2680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2682 # We need awk for the "check" target. The system "awk" is bad on
2684 # Always define AMTAR for backward compatibility.
2686 AMTAR=${AMTAR-"${am_missing_run}tar"}
2688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2694 cat >>confdefs.h <<_ACEOF
2695 #define OPENLDAP_PACKAGE "$PACKAGE"
2699 cat >>confdefs.h <<_ACEOF
2700 #define OPENLDAP_VERSION "$VERSION"
2705 cat >>confdefs.h <<_ACEOF
2706 #define LDAP_VENDOR_VERSION $OL_API_INC
2710 cat >>confdefs.h <<_ACEOF
2711 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2715 cat >>confdefs.h <<_ACEOF
2716 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2720 cat >>confdefs.h <<_ACEOF
2721 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2725 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2727 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2729 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2737 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2739 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2741 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2744 { echo "$as_me:$LINENO: checking configure arguments" >&5
2745 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2750 ldap_subdir="/openldap"
2753 # Check whether --with-subdir was given.
2754 if test "${with_subdir+set}" = set; then
2755 withval=$with_subdir; case "$withval" in
2761 ldap_subdir="$withval"
2764 ldap_subdir="/$withval"
2771 # OpenLDAP --enable-debug
2773 # Check whether --enable-debug was given.
2774 if test "${enable_debug+set}" = set; then
2775 enableval=$enable_debug;
2777 for ol_val in no yes traditional ; do
2778 if test "$enableval" = "$ol_val" ; then
2782 if test "$ol_arg" = "invalid" ; then
2783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2785 { (exit 1); exit 1; }; }
2787 ol_enable_debug="$ol_arg"
2793 # end --enable-debug
2794 # OpenLDAP --enable-dynamic
2796 # Check whether --enable-dynamic was given.
2797 if test "${enable_dynamic+set}" = set; then
2798 enableval=$enable_dynamic;
2800 for ol_val in auto yes no ; do
2801 if test "$enableval" = "$ol_val" ; then
2805 if test "$ol_arg" = "invalid" ; then
2806 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2807 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2808 { (exit 1); exit 1; }; }
2810 ol_enable_dynamic="$ol_arg"
2813 ol_enable_dynamic=no
2816 # end --enable-dynamic
2817 # OpenLDAP --enable-syslog
2819 # Check whether --enable-syslog was given.
2820 if test "${enable_syslog+set}" = set; then
2821 enableval=$enable_syslog;
2823 for ol_val in auto yes no ; do
2824 if test "$enableval" = "$ol_val" ; then
2828 if test "$ol_arg" = "invalid" ; then
2829 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2831 { (exit 1); exit 1; }; }
2833 ol_enable_syslog="$ol_arg"
2836 ol_enable_syslog=auto
2839 # end --enable-syslog
2840 # OpenLDAP --enable-proctitle
2842 # Check whether --enable-proctitle was given.
2843 if test "${enable_proctitle+set}" = set; then
2844 enableval=$enable_proctitle;
2846 for ol_val in auto yes no ; do
2847 if test "$enableval" = "$ol_val" ; then
2851 if test "$ol_arg" = "invalid" ; then
2852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2854 { (exit 1); exit 1; }; }
2856 ol_enable_proctitle="$ol_arg"
2859 ol_enable_proctitle=yes
2862 # end --enable-proctitle
2863 ol_enable_referrals=${ol_enable_referrals-no}
2864 # OpenLDAP --enable-ipv6
2866 # Check whether --enable-ipv6 was given.
2867 if test "${enable_ipv6+set}" = set; then
2868 enableval=$enable_ipv6;
2870 for ol_val in auto yes no ; do
2871 if test "$enableval" = "$ol_val" ; then
2875 if test "$ol_arg" = "invalid" ; then
2876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2878 { (exit 1); exit 1; }; }
2880 ol_enable_ipv6="$ol_arg"
2887 # OpenLDAP --enable-local
2889 # Check whether --enable-local was given.
2890 if test "${enable_local+set}" = set; then
2891 enableval=$enable_local;
2893 for ol_val in auto yes no ; do
2894 if test "$enableval" = "$ol_val" ; then
2898 if test "$ol_arg" = "invalid" ; then
2899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2901 { (exit 1); exit 1; }; }
2903 ol_enable_local="$ol_arg"
2906 ol_enable_local=auto
2909 # end --enable-local
2911 # OpenLDAP --with-cyrus_sasl
2913 # Check whether --with-cyrus_sasl was given.
2914 if test "${with_cyrus_sasl+set}" = set; then
2915 withval=$with_cyrus_sasl;
2917 for ol_val in auto yes no ; do
2918 if test "$withval" = "$ol_val" ; then
2922 if test "$ol_arg" = "invalid" ; then
2923 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2924 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2925 { (exit 1); exit 1; }; }
2927 ol_with_cyrus_sasl="$ol_arg"
2930 ol_with_cyrus_sasl="auto"
2932 # end --with-cyrus_sasl
2934 # OpenLDAP --with-fetch
2936 # Check whether --with-fetch was given.
2937 if test "${with_fetch+set}" = set; then
2938 withval=$with_fetch;
2940 for ol_val in auto yes no ; do
2941 if test "$withval" = "$ol_val" ; then
2945 if test "$ol_arg" = "invalid" ; then
2946 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2947 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2948 { (exit 1); exit 1; }; }
2950 ol_with_fetch="$ol_arg"
2953 ol_with_fetch="auto"
2957 # OpenLDAP --with-threads
2959 # Check whether --with-threads was given.
2960 if test "${with_threads+set}" = set; then
2961 withval=$with_threads;
2963 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2964 if test "$withval" = "$ol_val" ; then
2968 if test "$ol_arg" = "invalid" ; then
2969 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2970 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2971 { (exit 1); exit 1; }; }
2973 ol_with_threads="$ol_arg"
2976 ol_with_threads="auto"
2978 # end --with-threads
2980 # OpenLDAP --with-tls
2982 # Check whether --with-tls was given.
2983 if test "${with_tls+set}" = set; then
2986 for ol_val in auto openssl gnutls yes no ; do
2987 if test "$withval" = "$ol_val" ; then
2991 if test "$ol_arg" = "invalid" ; then
2992 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2993 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2994 { (exit 1); exit 1; }; }
2996 ol_with_tls="$ol_arg"
3003 # OpenLDAP --with-yielding_select
3005 # Check whether --with-yielding_select was given.
3006 if test "${with_yielding_select+set}" = set; then
3007 withval=$with_yielding_select;
3009 for ol_val in auto yes no manual ; do
3010 if test "$withval" = "$ol_val" ; then
3014 if test "$ol_arg" = "invalid" ; then
3015 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3016 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3017 { (exit 1); exit 1; }; }
3019 ol_with_yielding_select="$ol_arg"
3022 ol_with_yielding_select="auto"
3024 # end --with-yielding_select
3026 # OpenLDAP --with-mp
3028 # Check whether --with-mp was given.
3029 if test "${with_mp+set}" = set; then
3032 for ol_val in auto longlong long bignum gmp yes no ; do
3033 if test "$withval" = "$ol_val" ; then
3037 if test "$ol_arg" = "invalid" ; then
3038 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3039 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3040 { (exit 1); exit 1; }; }
3042 ol_with_mp="$ol_arg"
3049 # OpenLDAP --with-odbc
3051 # Check whether --with-odbc was given.
3052 if test "${with_odbc+set}" = set; then
3055 for ol_val in auto iodbc unixodbc odbc32 ; do
3056 if test "$withval" = "$ol_val" ; then
3060 if test "$ol_arg" = "invalid" ; then
3061 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3062 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3063 { (exit 1); exit 1; }; }
3065 ol_with_odbc="$ol_arg"
3074 # Check whether --enable-xxslapdoptions was given.
3075 if test "${enable_xxslapdoptions+set}" = set; then
3076 enableval=$enable_xxslapdoptions;
3079 # OpenLDAP --enable-slapd
3081 # Check whether --enable-slapd was given.
3082 if test "${enable_slapd+set}" = set; then
3083 enableval=$enable_slapd;
3085 for ol_val in auto yes no ; do
3086 if test "$enableval" = "$ol_val" ; then
3090 if test "$ol_arg" = "invalid" ; then
3091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3093 { (exit 1); exit 1; }; }
3095 ol_enable_slapd="$ol_arg"
3101 # end --enable-slapd
3102 # OpenLDAP --enable-dynacl
3104 # Check whether --enable-dynacl was given.
3105 if test "${enable_dynacl+set}" = set; then
3106 enableval=$enable_dynacl;
3108 for ol_val in auto yes no ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_dynacl="$ol_arg"
3124 # end --enable-dynacl
3125 # OpenLDAP --enable-aci
3127 # Check whether --enable-aci was given.
3128 if test "${enable_aci+set}" = set; then
3129 enableval=$enable_aci;
3131 for ol_val in no yes mod ; do
3132 if test "$enableval" = "$ol_val" ; then
3136 if test "$ol_arg" = "invalid" ; then
3137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3139 { (exit 1); exit 1; }; }
3141 ol_enable_aci="$ol_arg"
3148 # OpenLDAP --enable-cleartext
3150 # Check whether --enable-cleartext was given.
3151 if test "${enable_cleartext+set}" = set; then
3152 enableval=$enable_cleartext;
3154 for ol_val in auto yes no ; do
3155 if test "$enableval" = "$ol_val" ; then
3159 if test "$ol_arg" = "invalid" ; then
3160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3161 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3162 { (exit 1); exit 1; }; }
3164 ol_enable_cleartext="$ol_arg"
3167 ol_enable_cleartext=yes
3170 # end --enable-cleartext
3171 # OpenLDAP --enable-crypt
3173 # Check whether --enable-crypt was given.
3174 if test "${enable_crypt+set}" = set; then
3175 enableval=$enable_crypt;
3177 for ol_val in auto yes no ; do
3178 if test "$enableval" = "$ol_val" ; then
3182 if test "$ol_arg" = "invalid" ; then
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3185 { (exit 1); exit 1; }; }
3187 ol_enable_crypt="$ol_arg"
3193 # end --enable-crypt
3194 # OpenLDAP --enable-lmpasswd
3196 # Check whether --enable-lmpasswd was given.
3197 if test "${enable_lmpasswd+set}" = set; then
3198 enableval=$enable_lmpasswd;
3200 for ol_val in auto yes no ; do
3201 if test "$enableval" = "$ol_val" ; then
3205 if test "$ol_arg" = "invalid" ; then
3206 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3208 { (exit 1); exit 1; }; }
3210 ol_enable_lmpasswd="$ol_arg"
3213 ol_enable_lmpasswd=no
3216 # end --enable-lmpasswd
3217 # OpenLDAP --enable-spasswd
3219 # Check whether --enable-spasswd was given.
3220 if test "${enable_spasswd+set}" = set; then
3221 enableval=$enable_spasswd;
3223 for ol_val in auto yes no ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_spasswd="$ol_arg"
3236 ol_enable_spasswd=no
3239 # end --enable-spasswd
3240 # OpenLDAP --enable-modules
3242 # Check whether --enable-modules was given.
3243 if test "${enable_modules+set}" = set; then
3244 enableval=$enable_modules;
3246 for ol_val in auto yes no ; do
3247 if test "$enableval" = "$ol_val" ; then
3251 if test "$ol_arg" = "invalid" ; then
3252 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3254 { (exit 1); exit 1; }; }
3256 ol_enable_modules="$ol_arg"
3259 ol_enable_modules=no
3262 # end --enable-modules
3263 # OpenLDAP --enable-rewrite
3265 # Check whether --enable-rewrite was given.
3266 if test "${enable_rewrite+set}" = set; then
3267 enableval=$enable_rewrite;
3269 for ol_val in auto yes no ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_rewrite="$ol_arg"
3282 ol_enable_rewrite=auto
3285 # end --enable-rewrite
3286 # OpenLDAP --enable-rlookups
3288 # Check whether --enable-rlookups was given.
3289 if test "${enable_rlookups+set}" = set; then
3290 enableval=$enable_rlookups;
3292 for ol_val in auto yes no ; do
3293 if test "$enableval" = "$ol_val" ; then
3297 if test "$ol_arg" = "invalid" ; then
3298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3300 { (exit 1); exit 1; }; }
3302 ol_enable_rlookups="$ol_arg"
3305 ol_enable_rlookups=no
3308 # end --enable-rlookups
3309 # OpenLDAP --enable-slapi
3311 # Check whether --enable-slapi was given.
3312 if test "${enable_slapi+set}" = set; then
3313 enableval=$enable_slapi;
3315 for ol_val in auto yes no ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_slapi="$ol_arg"
3331 # end --enable-slapi
3332 # OpenLDAP --enable-slp
3334 # Check whether --enable-slp was given.
3335 if test "${enable_slp+set}" = set; then
3336 enableval=$enable_slp;
3338 for ol_val in auto yes no ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_slp="$ol_arg"
3355 # OpenLDAP --enable-wrappers
3357 # Check whether --enable-wrappers was given.
3358 if test "${enable_wrappers+set}" = set; then
3359 enableval=$enable_wrappers;
3361 for ol_val in auto yes no ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_wrappers="$ol_arg"
3374 ol_enable_wrappers=no
3377 # end --enable-wrappers
3394 # Check whether --enable-xxslapbackends was given.
3395 if test "${enable_xxslapbackends+set}" = set; then
3396 enableval=$enable_xxslapbackends;
3400 # OpenLDAP --enable-backends
3402 # Check whether --enable-backends was given.
3403 if test "${enable_backends+set}" = set; then
3404 enableval=$enable_backends;
3406 for ol_val in no yes mod ; do
3407 if test "$enableval" = "$ol_val" ; then
3411 if test "$ol_arg" = "invalid" ; then
3412 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3413 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3414 { (exit 1); exit 1; }; }
3416 ol_enable_backends="$ol_arg"
3420 # end --enable-backends
3421 # OpenLDAP --enable-bdb
3423 # Check whether --enable-bdb was given.
3424 if test "${enable_bdb+set}" = set; then
3425 enableval=$enable_bdb;
3427 for ol_val in no yes mod ; do
3428 if test "$enableval" = "$ol_val" ; then
3432 if test "$ol_arg" = "invalid" ; then
3433 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3435 { (exit 1); exit 1; }; }
3437 ol_enable_bdb="$ol_arg"
3440 ol_enable_bdb=${ol_enable_backends:-yes}
3444 # OpenLDAP --enable-dnssrv
3446 # Check whether --enable-dnssrv was given.
3447 if test "${enable_dnssrv+set}" = set; then
3448 enableval=$enable_dnssrv;
3450 for ol_val in no yes mod ; do
3451 if test "$enableval" = "$ol_val" ; then
3455 if test "$ol_arg" = "invalid" ; then
3456 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3457 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3458 { (exit 1); exit 1; }; }
3460 ol_enable_dnssrv="$ol_arg"
3463 ol_enable_dnssrv=${ol_enable_backends:-no}
3466 # end --enable-dnssrv
3467 # OpenLDAP --enable-hdb
3469 # Check whether --enable-hdb was given.
3470 if test "${enable_hdb+set}" = set; then
3471 enableval=$enable_hdb;
3473 for ol_val in no yes mod ; do
3474 if test "$enableval" = "$ol_val" ; then
3478 if test "$ol_arg" = "invalid" ; then
3479 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3480 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3481 { (exit 1); exit 1; }; }
3483 ol_enable_hdb="$ol_arg"
3486 ol_enable_hdb=${ol_enable_backends:-yes}
3490 # OpenLDAP --enable-ldap
3492 # Check whether --enable-ldap was given.
3493 if test "${enable_ldap+set}" = set; then
3494 enableval=$enable_ldap;
3496 for ol_val in no yes mod ; do
3497 if test "$enableval" = "$ol_val" ; then
3501 if test "$ol_arg" = "invalid" ; then
3502 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3503 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3504 { (exit 1); exit 1; }; }
3506 ol_enable_ldap="$ol_arg"
3509 ol_enable_ldap=${ol_enable_backends:-no}
3513 # OpenLDAP --enable-meta
3515 # Check whether --enable-meta was given.
3516 if test "${enable_meta+set}" = set; then
3517 enableval=$enable_meta;
3519 for ol_val in no yes mod ; do
3520 if test "$enableval" = "$ol_val" ; then
3524 if test "$ol_arg" = "invalid" ; then
3525 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3526 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3527 { (exit 1); exit 1; }; }
3529 ol_enable_meta="$ol_arg"
3532 ol_enable_meta=${ol_enable_backends:-no}
3536 # OpenLDAP --enable-monitor
3538 # Check whether --enable-monitor was given.
3539 if test "${enable_monitor+set}" = set; then
3540 enableval=$enable_monitor;
3542 for ol_val in no yes mod ; do
3543 if test "$enableval" = "$ol_val" ; then
3547 if test "$ol_arg" = "invalid" ; then
3548 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3549 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3550 { (exit 1); exit 1; }; }
3552 ol_enable_monitor="$ol_arg"
3555 ol_enable_monitor=${ol_enable_backends:-yes}
3558 # end --enable-monitor
3559 # OpenLDAP --enable-ndb
3561 # Check whether --enable-ndb was given.
3562 if test "${enable_ndb+set}" = set; then
3563 enableval=$enable_ndb;
3565 for ol_val in no yes mod ; do
3566 if test "$enableval" = "$ol_val" ; then
3570 if test "$ol_arg" = "invalid" ; then
3571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3573 { (exit 1); exit 1; }; }
3575 ol_enable_ndb="$ol_arg"
3578 ol_enable_ndb=${ol_enable_backends:-no}
3582 # OpenLDAP --enable-null
3584 # Check whether --enable-null was given.
3585 if test "${enable_null+set}" = set; then
3586 enableval=$enable_null;
3588 for ol_val in no yes mod ; do
3589 if test "$enableval" = "$ol_val" ; then
3593 if test "$ol_arg" = "invalid" ; then
3594 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3595 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3596 { (exit 1); exit 1; }; }
3598 ol_enable_null="$ol_arg"
3601 ol_enable_null=${ol_enable_backends:-no}
3605 # OpenLDAP --enable-passwd
3607 # Check whether --enable-passwd was given.
3608 if test "${enable_passwd+set}" = set; then
3609 enableval=$enable_passwd;
3611 for ol_val in no yes mod ; do
3612 if test "$enableval" = "$ol_val" ; then
3616 if test "$ol_arg" = "invalid" ; then
3617 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3619 { (exit 1); exit 1; }; }
3621 ol_enable_passwd="$ol_arg"
3624 ol_enable_passwd=${ol_enable_backends:-no}
3627 # end --enable-passwd
3628 # OpenLDAP --enable-perl
3630 # Check whether --enable-perl was given.
3631 if test "${enable_perl+set}" = set; then
3632 enableval=$enable_perl;
3634 for ol_val in no yes mod ; do
3635 if test "$enableval" = "$ol_val" ; then
3639 if test "$ol_arg" = "invalid" ; then
3640 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3641 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3642 { (exit 1); exit 1; }; }
3644 ol_enable_perl="$ol_arg"
3647 ol_enable_perl=${ol_enable_backends:-no}
3651 # OpenLDAP --enable-relay
3653 # Check whether --enable-relay was given.
3654 if test "${enable_relay+set}" = set; then
3655 enableval=$enable_relay;
3657 for ol_val in no yes mod ; do
3658 if test "$enableval" = "$ol_val" ; then
3662 if test "$ol_arg" = "invalid" ; then
3663 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3664 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3665 { (exit 1); exit 1; }; }
3667 ol_enable_relay="$ol_arg"
3670 ol_enable_relay=${ol_enable_backends:-yes}
3673 # end --enable-relay
3674 # OpenLDAP --enable-shell
3676 # Check whether --enable-shell was given.
3677 if test "${enable_shell+set}" = set; then
3678 enableval=$enable_shell;
3680 for ol_val in no yes mod ; do
3681 if test "$enableval" = "$ol_val" ; then
3685 if test "$ol_arg" = "invalid" ; then
3686 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3687 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3688 { (exit 1); exit 1; }; }
3690 ol_enable_shell="$ol_arg"
3693 ol_enable_shell=${ol_enable_backends:-no}
3696 # end --enable-shell
3697 # OpenLDAP --enable-sock
3699 # Check whether --enable-sock was given.
3700 if test "${enable_sock+set}" = set; then
3701 enableval=$enable_sock;
3703 for ol_val in no yes mod ; do
3704 if test "$enableval" = "$ol_val" ; then
3708 if test "$ol_arg" = "invalid" ; then
3709 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3710 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3711 { (exit 1); exit 1; }; }
3713 ol_enable_sock="$ol_arg"
3716 ol_enable_sock=${ol_enable_backends:-no}
3720 # OpenLDAP --enable-sql
3722 # Check whether --enable-sql was given.
3723 if test "${enable_sql+set}" = set; then
3724 enableval=$enable_sql;
3726 for ol_val in no yes mod ; do
3727 if test "$enableval" = "$ol_val" ; then
3731 if test "$ol_arg" = "invalid" ; then
3732 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3733 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3734 { (exit 1); exit 1; }; }
3736 ol_enable_sql="$ol_arg"
3739 ol_enable_sql=${ol_enable_backends:-no}
3744 Overlays="accesslog \
3765 # Check whether --enable-xxslapoverlays was given.
3766 if test "${enable_xxslapoverlays+set}" = set; then
3767 enableval=$enable_xxslapoverlays;
3771 # OpenLDAP --enable-overlays
3773 # Check whether --enable-overlays was given.
3774 if test "${enable_overlays+set}" = set; then
3775 enableval=$enable_overlays;
3777 for ol_val in no yes mod ; do
3778 if test "$enableval" = "$ol_val" ; then
3782 if test "$ol_arg" = "invalid" ; then
3783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3784 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3785 { (exit 1); exit 1; }; }
3787 ol_enable_overlays="$ol_arg"
3791 # end --enable-overlays
3792 # OpenLDAP --enable-accesslog
3794 # Check whether --enable-accesslog was given.
3795 if test "${enable_accesslog+set}" = set; then
3796 enableval=$enable_accesslog;
3798 for ol_val in no yes mod ; do
3799 if test "$enableval" = "$ol_val" ; then
3803 if test "$ol_arg" = "invalid" ; then
3804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3806 { (exit 1); exit 1; }; }
3808 ol_enable_accesslog="$ol_arg"
3811 ol_enable_accesslog=${ol_enable_overlays:-no}
3814 # end --enable-accesslog
3816 # OpenLDAP --enable-auditlog
3818 # Check whether --enable-auditlog was given.
3819 if test "${enable_auditlog+set}" = set; then
3820 enableval=$enable_auditlog;
3822 for ol_val in no yes mod ; do
3823 if test "$enableval" = "$ol_val" ; then
3827 if test "$ol_arg" = "invalid" ; then
3828 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3829 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3830 { (exit 1); exit 1; }; }
3832 ol_enable_auditlog="$ol_arg"
3835 ol_enable_auditlog=${ol_enable_overlays:-no}
3838 # end --enable-auditlog
3840 # OpenLDAP --enable-collect
3842 # Check whether --enable-collect was given.
3843 if test "${enable_collect+set}" = set; then
3844 enableval=$enable_collect;
3846 for ol_val in no yes mod ; do
3847 if test "$enableval" = "$ol_val" ; then
3851 if test "$ol_arg" = "invalid" ; then
3852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3853 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3854 { (exit 1); exit 1; }; }
3856 ol_enable_collect="$ol_arg"
3859 ol_enable_collect=${ol_enable_overlays:-no}
3862 # end --enable-collect
3864 # OpenLDAP --enable-constraint
3866 # Check whether --enable-constraint was given.
3867 if test "${enable_constraint+set}" = set; then
3868 enableval=$enable_constraint;
3870 for ol_val in no yes mod ; do
3871 if test "$enableval" = "$ol_val" ; then
3875 if test "$ol_arg" = "invalid" ; then
3876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3877 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3878 { (exit 1); exit 1; }; }
3880 ol_enable_constraint="$ol_arg"
3883 ol_enable_constraint=${ol_enable_overlays:-no}
3886 # end --enable-constraint
3888 # OpenLDAP --enable-dds
3890 # Check whether --enable-dds was given.
3891 if test "${enable_dds+set}" = set; then
3892 enableval=$enable_dds;
3894 for ol_val in no yes mod ; do
3895 if test "$enableval" = "$ol_val" ; then
3899 if test "$ol_arg" = "invalid" ; then
3900 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3901 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3902 { (exit 1); exit 1; }; }
3904 ol_enable_dds="$ol_arg"
3907 ol_enable_dds=${ol_enable_overlays:-no}
3912 # OpenLDAP --enable-deref
3914 # Check whether --enable-deref was given.
3915 if test "${enable_deref+set}" = set; then
3916 enableval=$enable_deref;
3918 for ol_val in no yes mod ; do
3919 if test "$enableval" = "$ol_val" ; then
3923 if test "$ol_arg" = "invalid" ; then
3924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3925 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3926 { (exit 1); exit 1; }; }
3928 ol_enable_deref="$ol_arg"
3931 ol_enable_deref=${ol_enable_overlays:-no}
3934 # end --enable-deref
3936 # OpenLDAP --enable-dyngroup
3938 # Check whether --enable-dyngroup was given.
3939 if test "${enable_dyngroup+set}" = set; then
3940 enableval=$enable_dyngroup;
3942 for ol_val in no yes mod ; do
3943 if test "$enableval" = "$ol_val" ; then
3947 if test "$ol_arg" = "invalid" ; then
3948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3949 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3950 { (exit 1); exit 1; }; }
3952 ol_enable_dyngroup="$ol_arg"
3955 ol_enable_dyngroup=${ol_enable_overlays:-no}
3958 # end --enable-dyngroup
3960 # OpenLDAP --enable-dynlist
3962 # Check whether --enable-dynlist was given.
3963 if test "${enable_dynlist+set}" = set; then
3964 enableval=$enable_dynlist;
3966 for ol_val in no yes mod ; do
3967 if test "$enableval" = "$ol_val" ; then
3971 if test "$ol_arg" = "invalid" ; then
3972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3973 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3974 { (exit 1); exit 1; }; }
3976 ol_enable_dynlist="$ol_arg"
3979 ol_enable_dynlist=${ol_enable_overlays:-no}
3982 # end --enable-dynlist
3984 # OpenLDAP --enable-memberof
3986 # Check whether --enable-memberof was given.
3987 if test "${enable_memberof+set}" = set; then
3988 enableval=$enable_memberof;
3990 for ol_val in no yes mod ; do
3991 if test "$enableval" = "$ol_val" ; then
3995 if test "$ol_arg" = "invalid" ; then
3996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3997 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3998 { (exit 1); exit 1; }; }
4000 ol_enable_memberof="$ol_arg"
4003 ol_enable_memberof=${ol_enable_overlays:-no}
4006 # end --enable-memberof
4008 # OpenLDAP --enable-ppolicy
4010 # Check whether --enable-ppolicy was given.
4011 if test "${enable_ppolicy+set}" = set; then
4012 enableval=$enable_ppolicy;
4014 for ol_val in no yes mod ; do
4015 if test "$enableval" = "$ol_val" ; then
4019 if test "$ol_arg" = "invalid" ; then
4020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4021 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4022 { (exit 1); exit 1; }; }
4024 ol_enable_ppolicy="$ol_arg"
4027 ol_enable_ppolicy=${ol_enable_overlays:-no}
4030 # end --enable-ppolicy
4032 # OpenLDAP --enable-proxycache
4034 # Check whether --enable-proxycache was given.
4035 if test "${enable_proxycache+set}" = set; then
4036 enableval=$enable_proxycache;
4038 for ol_val in no yes mod ; do
4039 if test "$enableval" = "$ol_val" ; then
4043 if test "$ol_arg" = "invalid" ; then
4044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4045 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4046 { (exit 1); exit 1; }; }
4048 ol_enable_proxycache="$ol_arg"
4051 ol_enable_proxycache=${ol_enable_overlays:-no}
4054 # end --enable-proxycache
4056 # OpenLDAP --enable-refint
4058 # Check whether --enable-refint was given.
4059 if test "${enable_refint+set}" = set; then
4060 enableval=$enable_refint;
4062 for ol_val in no yes mod ; do
4063 if test "$enableval" = "$ol_val" ; then
4067 if test "$ol_arg" = "invalid" ; then
4068 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4069 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4070 { (exit 1); exit 1; }; }
4072 ol_enable_refint="$ol_arg"
4075 ol_enable_refint=${ol_enable_overlays:-no}
4078 # end --enable-refint
4080 # OpenLDAP --enable-retcode
4082 # Check whether --enable-retcode was given.
4083 if test "${enable_retcode+set}" = set; then
4084 enableval=$enable_retcode;
4086 for ol_val in no yes mod ; do
4087 if test "$enableval" = "$ol_val" ; then
4091 if test "$ol_arg" = "invalid" ; then
4092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4093 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4094 { (exit 1); exit 1; }; }
4096 ol_enable_retcode="$ol_arg"
4099 ol_enable_retcode=${ol_enable_overlays:-no}
4102 # end --enable-retcode
4104 # OpenLDAP --enable-rwm
4106 # Check whether --enable-rwm was given.
4107 if test "${enable_rwm+set}" = set; then
4108 enableval=$enable_rwm;
4110 for ol_val in no yes mod ; do
4111 if test "$enableval" = "$ol_val" ; then
4115 if test "$ol_arg" = "invalid" ; then
4116 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4117 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4118 { (exit 1); exit 1; }; }
4120 ol_enable_rwm="$ol_arg"
4123 ol_enable_rwm=${ol_enable_overlays:-no}
4128 # OpenLDAP --enable-seqmod
4130 # Check whether --enable-seqmod was given.
4131 if test "${enable_seqmod+set}" = set; then
4132 enableval=$enable_seqmod;
4134 for ol_val in no yes mod ; do
4135 if test "$enableval" = "$ol_val" ; then
4139 if test "$ol_arg" = "invalid" ; then
4140 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4141 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4142 { (exit 1); exit 1; }; }
4144 ol_enable_seqmod="$ol_arg"
4147 ol_enable_seqmod=${ol_enable_overlays:-no}
4150 # end --enable-seqmod
4152 # OpenLDAP --enable-sssvlv
4154 # Check whether --enable-sssvlv was given.
4155 if test "${enable_sssvlv+set}" = set; then
4156 enableval=$enable_sssvlv;
4158 for ol_val in no yes mod ; do
4159 if test "$enableval" = "$ol_val" ; then
4163 if test "$ol_arg" = "invalid" ; then
4164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4166 { (exit 1); exit 1; }; }
4168 ol_enable_sssvlv="$ol_arg"
4171 ol_enable_sssvlv=${ol_enable_overlays:-no}
4174 # end --enable-sssvlv
4176 # OpenLDAP --enable-syncprov
4178 # Check whether --enable-syncprov was given.
4179 if test "${enable_syncprov+set}" = set; then
4180 enableval=$enable_syncprov;
4182 for ol_val in no yes mod ; do
4183 if test "$enableval" = "$ol_val" ; then
4187 if test "$ol_arg" = "invalid" ; then
4188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4189 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4190 { (exit 1); exit 1; }; }
4192 ol_enable_syncprov="$ol_arg"
4195 ol_enable_syncprov=${ol_enable_overlays:-yes}
4198 # end --enable-syncprov
4200 # OpenLDAP --enable-translucent
4202 # Check whether --enable-translucent was given.
4203 if test "${enable_translucent+set}" = set; then
4204 enableval=$enable_translucent;
4206 for ol_val in no yes mod ; do
4207 if test "$enableval" = "$ol_val" ; then
4211 if test "$ol_arg" = "invalid" ; then
4212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4213 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4214 { (exit 1); exit 1; }; }
4216 ol_enable_translucent="$ol_arg"
4219 ol_enable_translucent=${ol_enable_overlays:-no}
4222 # end --enable-translucent
4224 # OpenLDAP --enable-unique
4226 # Check whether --enable-unique was given.
4227 if test "${enable_unique+set}" = set; then
4228 enableval=$enable_unique;
4230 for ol_val in no yes mod ; do
4231 if test "$enableval" = "$ol_val" ; then
4235 if test "$ol_arg" = "invalid" ; then
4236 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4237 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4238 { (exit 1); exit 1; }; }
4240 ol_enable_unique="$ol_arg"
4243 ol_enable_unique=${ol_enable_overlays:-no}
4246 # end --enable-unique
4248 # OpenLDAP --enable-valsort
4250 # Check whether --enable-valsort was given.
4251 if test "${enable_valsort+set}" = set; then
4252 enableval=$enable_valsort;
4254 for ol_val in no yes mod ; do
4255 if test "$enableval" = "$ol_val" ; then
4259 if test "$ol_arg" = "invalid" ; then
4260 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4261 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4262 { (exit 1); exit 1; }; }
4264 ol_enable_valsort="$ol_arg"
4267 ol_enable_valsort=${ol_enable_overlays:-no}
4270 # end --enable-valsort
4273 # Check whether --enable-xxliboptions was given.
4274 if test "${enable_xxliboptions+set}" = set; then
4275 enableval=$enable_xxliboptions;
4278 # Check whether --enable-static was given.
4279 if test "${enable_static+set}" = set; then
4280 enableval=$enable_static; p=${PACKAGE-default}
4282 yes) enable_static=yes ;;
4283 no) enable_static=no ;;
4286 # Look at the argument we got. We use all the common list separators.
4287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288 for pkg in $enableval; do
4290 if test "X$pkg" = "X$p"; then
4302 # Check whether --enable-shared was given.
4303 if test "${enable_shared+set}" = set; then
4304 enableval=$enable_shared; p=${PACKAGE-default}
4306 yes) enable_shared=yes ;;
4307 no) enable_shared=no ;;
4310 # Look at the argument we got. We use all the common list separators.
4311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4312 for pkg in $enableval; do
4314 if test "X$pkg" = "X$p"; then
4329 if test $ol_enable_slapd = no ; then
4330 if test $ol_enable_slapi = yes ; then
4331 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4334 case "$ol_enable_backends" in yes | mod)
4335 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4338 for i in $Backends; do
4339 eval "ol_tmp=\$ol_enable_$i"
4340 if test $ol_tmp != no ; then
4341 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4342 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4343 eval "ol_enable_$i=no"
4346 if test $ol_enable_modules = yes ; then
4347 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4348 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4350 if test $ol_enable_wrappers = yes ; then
4351 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4354 if test $ol_enable_rlookups = yes ; then
4355 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4358 if test $ol_enable_dynacl = yes ; then
4359 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4360 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4362 if test $ol_enable_aci != no ; then
4363 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4366 if test $ol_enable_rewrite = yes ; then
4367 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4370 case "$ol_enable_overlays" in yes | mod)
4371 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4374 for i in $Overlays; do
4375 eval "ol_tmp=\$ol_enable_$i"
4376 if test $ol_tmp != no ; then
4377 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4379 eval "ol_enable_$i=no"
4383 # force settings to no
4388 ol_enable_modules=no
4389 ol_enable_rlookups=no
4392 ol_enable_wrappers=no
4394 ol_enable_rewrite=no
4396 elif test $ol_enable_modules != yes &&
4397 test $ol_enable_bdb = no &&
4398 test $ol_enable_dnssrv = no &&
4399 test $ol_enable_hdb = no &&
4400 test $ol_enable_ldap = no &&
4401 test $ol_enable_meta = no &&
4402 test $ol_enable_monitor = no &&
4403 test $ol_enable_ndb = no &&
4404 test $ol_enable_null = no &&
4405 test $ol_enable_passwd = no &&
4406 test $ol_enable_perl = no &&
4407 test $ol_enable_relay = no &&
4408 test $ol_enable_shell = no &&
4409 test $ol_enable_sock = no &&
4410 test $ol_enable_sql = no ; then
4412 if test $ol_enable_slapd = yes ; then
4413 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4414 echo "$as_me: error: slapd requires a backend" >&2;}
4415 { (exit 1); exit 1; }; }
4417 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4418 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4423 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4424 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4425 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4426 { (exit 1); exit 1; }; }
4429 if test $ol_enable_lmpasswd = yes ; then
4430 if test $ol_with_tls = no ; then
4431 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4432 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4433 { (exit 1); exit 1; }; }
4437 if test $ol_enable_spasswd = yes ; then
4438 if test $ol_with_cyrus_sasl = no ; then
4439 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4440 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4441 { (exit 1); exit 1; }; }
4443 ol_with_cyrus_sasl=yes
4446 { echo "$as_me:$LINENO: result: done" >&5
4447 echo "${ECHO_T}done" >&6; }
4498 BUILD_TRANSLUCENT=no
4502 SLAPD_STATIC_OVERLAYS=
4503 SLAPD_DYNAMIC_OVERLAYS=
4505 SLAPD_MODULES_LDFLAGS=
4506 SLAPD_MODULES_CPPFLAGS=
4508 SLAPD_STATIC_BACKENDS=back-ldif
4509 SLAPD_DYNAMIC_BACKENDS=
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_MKVERSION 1
4544 *-*-aix*) if test -z "$CC" ; then
4545 case "$ol_with_threads" in
4546 auto | yes | posix) ol_aix_threads=yes ;;
4552 if test $ol_aix_threads = yes ; then
4553 if test -z "${CC}" ; then
4554 for ac_prog in cc_r xlc_r cc
4556 # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CC="$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$CC"; then
4585 { echo "$as_me:$LINENO: result: $CC" >&5
4586 echo "${ECHO_T}$CC" >&6; }
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 test -n "$CC" && break
4597 if test "$CC" = cc ; then
4598 if test $ol_with_threads != auto ; then
4599 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4600 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4601 { (exit 1); exit 1; }; }
4603 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4604 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4610 case ${CC} in cc_r | xlc_r)
4611 ol_with_threads=posix
4612 ol_cv_pthread_create=yes
4617 if test -z "${CC}"; then
4618 for ac_prog in cc gcc
4620 # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="$ac_prog"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4657 test -n "$CC" && break
4659 test -n "$CC" || CC="missing"
4662 if test "${CC}" = "missing" ; then
4663 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4664 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4665 { (exit 1); exit 1; }; }
4669 if test -z "${AR}"; then
4670 for ac_prog in ar gar
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_AR+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$AR"; then
4680 ac_cv_prog_AR="$AR" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_AR="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test -n "$AR"; then
4701 { echo "$as_me:$LINENO: result: $AR" >&5
4702 echo "${ECHO_T}$AR" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 test -n "$AR" && break
4711 test -n "$AR" || AR="missing"
4714 if test "${AR}" = "missing" ; then
4715 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4716 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4717 { (exit 1); exit 1; }; }
4725 # Check whether --enable-fast-install was given.
4726 if test "${enable_fast_install+set}" = set; then
4727 enableval=$enable_fast_install; p=${PACKAGE-default}
4729 yes) enable_fast_install=yes ;;
4730 no) enable_fast_install=no ;;
4732 enable_fast_install=no
4733 # Look at the argument we got. We use all the common list separators.
4734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4735 for pkg in $enableval; do
4737 if test "X$pkg" = "X$p"; then
4738 enable_fast_install=yes
4745 enable_fast_install=yes
4749 DEPDIR="${am__leading_dot}deps"
4751 ac_config_commands="$ac_config_commands depfiles"
4754 am_make=${MAKE-make}
4755 cat > confinc << 'END'
4760 # If we don't find an include directive, just comment out the code.
4761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4766 # First try GNU make style include.
4767 echo "include confinc" > confmf
4768 # We grep out `Entering directory' and `Leaving directory'
4769 # messages which can occur if `w' ends up in MAKEFLAGS.
4770 # In particular we don't look at `^make:' because GNU make might
4771 # be invoked under some other name (usually "gmake"), in which
4772 # case it prints its new name instead of `make'.
4773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4778 # Now try BSD make style include.
4779 if test "$am__include" = "#"; then
4780 echo '.include "confinc"' > confmf
4781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4782 am__include=.include
4789 { echo "$as_me:$LINENO: result: $_am_result" >&5
4790 echo "${ECHO_T}$_am_result" >&6; }
4791 rm -f confinc confmf
4793 # Check whether --enable-dependency-tracking was given.
4794 if test "${enable_dependency_tracking+set}" = set; then
4795 enableval=$enable_dependency_tracking;
4798 if test "x$enable_dependency_tracking" != xno; then
4799 am_depcomp="$ac_aux_dir/depcomp"
4804 if test "x$enable_dependency_tracking" != xno; then
4815 ac_cpp='$CPP $CPPFLAGS'
4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$CC"; then
4849 { echo "$as_me:$LINENO: result: $CC" >&5
4850 echo "${ECHO_T}$CC" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4858 if test -z "$ac_cv_prog_CC"; then
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC="gcc"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4896 if test "x$ac_ct_CC" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4902 whose name does not start with the host triplet. If you think this
4903 configuration is useful to you, please write to autoconf@gnu.org." >&5
4904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4905 whose name does not start with the host triplet. If you think this
4906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4907 ac_tool_warned=yes ;;
4915 if test -z "$CC"; then
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_CC+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 if test -n "$CC"; then
4925 ac_cv_prog_CC="$CC" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_CC="${ac_tool_prefix}cc"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 if test -n "$CC"; then
4946 { echo "$as_me:$LINENO: result: $CC" >&5
4947 echo "${ECHO_T}$CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 if test -z "$CC"; then
4957 # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test -n "$CC"; then
4965 ac_cv_prog_CC="$CC" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4976 ac_prog_rejected=yes
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 if test $ac_prog_rejected = yes; then
4988 # We found a bogon in the path, so make sure we never use it.
4989 set dummy $ac_cv_prog_CC
4991 if test $# != 0; then
4992 # We chose a different compiler from the bogus one.
4993 # However, it has the same basename, so the bogon will be chosen
4994 # first if we set CC to just the basename; use the full file name.
4996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5002 if test -n "$CC"; then
5003 { echo "$as_me:$LINENO: result: $CC" >&5
5004 echo "${ECHO_T}$CC" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5012 if test -z "$CC"; then
5013 if test -n "$ac_tool_prefix"; then
5014 for ac_prog in cl.exe
5016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 if test -n "$CC"; then
5045 { echo "$as_me:$LINENO: result: $CC" >&5
5046 echo "${ECHO_T}$CC" >&6; }
5048 { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5053 test -n "$CC" && break
5056 if test -z "$CC"; then
5058 for ac_prog in cl.exe
5060 # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test -n "$ac_ct_CC"; then
5068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_CC="$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5090 echo "${ECHO_T}$ac_ct_CC" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 test -n "$ac_ct_CC" && break
5100 if test "x$ac_ct_CC" = x; then
5103 case $cross_compiling:$ac_tool_warned in
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet. If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5175 ac_clean_files_save=$ac_clean_files
5176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5177 # Try to create an executable without -o first, disregard a.out.
5178 # It will help us diagnose broken compilers, and finding out an intuition
5180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5184 # List of possible output files, starting from the most likely.
5185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5186 # only as a last resort. b.out is created by i960 compilers.
5187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5189 # The IRIX 6 linker writes into existing files which may not be
5190 # executable, retaining their permissions. Remove them first so a
5191 # subsequent execution test works.
5193 for ac_file in $ac_files
5196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5202 if { (ac_try="$ac_link_default"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link_default") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; then
5212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5215 # so that the user can short-circuit this test for compilers unknown to
5217 for ac_file in $ac_files ''
5219 test -f "$ac_file" || continue
5221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5224 # We found the default executable, but exeext='' is most
5228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5232 # We set ac_cv_exeext here because the later test for it is not
5233 # safe: cross compilers may not add the suffix if given an `-o'
5234 # argument, so we may need to know it at that point already.
5235 # Even if this section looks crufty: it has the advantage of
5242 test "$ac_cv_exeext" = no && ac_cv_exeext=
5248 { echo "$as_me:$LINENO: result: $ac_file" >&5
5249 echo "${ECHO_T}$ac_file" >&6; }
5250 if test -z "$ac_file"; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C compiler cannot create executables
5257 See \`config.log' for more details." >&2;}
5258 { (exit 77); exit 77; }; }
5261 ac_exeext=$ac_cv_exeext
5263 # Check that the compiler produces executables we can run. If not, either
5264 # the compiler is broken, or we cross compile.
5265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5268 # If not cross compiling, check that we can run a simple program.
5269 if test "$cross_compiling" != yes; then
5270 if { ac_try='./$ac_file'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 if test "$cross_compiling" = maybe; then
5285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5286 If you meant to cross compile, use \`--host'.
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: cannot run C compiled programs.
5289 If you meant to cross compile, use \`--host'.
5290 See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5295 { echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6; }
5298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5299 ac_clean_files=$ac_clean_files_save
5300 # Check that the compiler produces executables we can run. If not, either
5301 # the compiler is broken, or we cross compile.
5302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5305 echo "${ECHO_T}$cross_compiling" >&6; }
5307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5309 if { (ac_try="$ac_link"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_link") 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; then
5319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5321 # work properly (i.e., refer to `conftest.exe'), while it won't with
5323 for ac_file in conftest.exe conftest conftest.*; do
5324 test -f "$ac_file" || continue
5326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&5
5335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5336 See \`config.log' for more details." >&2;}
5337 { (exit 1); exit 1; }; }
5340 rm -f conftest$ac_cv_exeext
5341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5344 rm -f conftest.$ac_ext
5345 EXEEXT=$ac_cv_exeext
5347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5349 if test "${ac_cv_objext+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5367 rm -f conftest.o conftest.obj
5368 if { (ac_try="$ac_compile"
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 for ac_file in conftest.o conftest.obj conftest.*; do
5379 test -f "$ac_file" || continue;
5381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details." >&2;}
5394 { (exit 1); exit 1; }; }
5397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5400 echo "${ECHO_T}$ac_cv_objext" >&6; }
5401 OBJEXT=$ac_cv_objext
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5457 GCC=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CFLAGS=${CFLAGS+set}
5459 ac_save_CFLAGS=$CFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cc_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_save_c_werror_flag=$ac_c_werror_flag
5466 ac_c_werror_flag=yes
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_c_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 ac_c_werror_flag=$ac_save_c_werror_flag
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_c_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_c_werror_flag=$ac_save_c_werror_flag
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5597 if test "$ac_test_CFLAGS" = set; then
5598 CFLAGS=$ac_save_CFLAGS
5599 elif test $ac_cv_prog_cc_g = yes; then
5600 if test "$GCC" = yes; then
5606 if test "$GCC" = yes; then
5612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_cc_c89+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_cv_prog_cc_c89=no
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5643 s = g (p, va_arg (v,int));
5648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5649 function prototypes and stuff, but not '\xHH' hex character constants.
5650 These don't provoke an error unfortunately, instead are silently treated
5651 as 'x'. The following induces an error, until -std is added to get
5652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5653 array size at least. It's necessary to write '\x00'==0 to get something
5654 that's true only with -std. */
5655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5658 inside strings and character constants. */
5660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5662 int test (int i, double x);
5663 struct s1 {int (*f) (int a);};
5664 struct s2 {int (*f) (double a);};
5665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5679 CC="$ac_save_CC $ac_arg"
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_cv_prog_cc_c89=$ac_arg
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f core conftest.err conftest.$ac_objext
5706 test "x$ac_cv_prog_cc_c89" != "xno" && break
5708 rm -f conftest.$ac_ext
5713 case "x$ac_cv_prog_cc_c89" in
5715 { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5718 { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5721 CC="$CC $ac_cv_prog_cc_c89"
5722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 depcc="$CC" am_compiler_list=
5735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5737 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741 # We make a subdir and do the tests there. Otherwise we can end up
5742 # making bogus files that we don't know about and never remove. For
5743 # instance it was reported that on HP-UX the gcc test will end up
5744 # making a dummy file named `D' -- because `-MD' means `put the output
5747 # Copy depcomp to subdir because otherwise we won't find it if we're
5748 # using a relative directory.
5749 cp "$am_depcomp" conftest.dir
5751 # We will build objects and dependencies in a subdirectory because
5752 # it helps to detect inapplicable dependency modes. For instance
5753 # both Tru64's cc and ICC support -MD to output dependencies as a
5754 # side effect of compilation, but ICC will put the dependencies in
5755 # the current directory while Tru64 will put them in the object
5759 am_cv_CC_dependencies_compiler_type=none
5760 if test "$am_compiler_list" = ""; then
5761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5763 for depmode in $am_compiler_list; do
5764 # Setup a source with many dependencies, because some compilers
5765 # like to wrap large dependency lists on column 80 (with \), and
5766 # we should not choose a depcomp mode which is confused by this.
5768 # We need to recreate these files for each test, as the compiler may
5769 # overwrite some of them when testing with obscure command lines.
5770 # This happens at least with the AIX C compiler.
5772 for i in 1 2 3 4 5 6; do
5773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775 # Solaris 8's {/usr,}/bin/sh.
5776 touch sub/conftst$i.h
5778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5782 # after this tag, mechanisms are not by side-effect, so they'll
5783 # only be used when explicitly requested
5784 if test "x$enable_dependency_tracking" = xyes; then
5792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5793 # mode. It turns out that the SunPro C++ compiler does not properly
5794 # handle `-M -o', and we need to detect this.
5795 if depmode=$depmode \
5796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5799 >/dev/null 2>conftest.err &&
5800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5803 # icc doesn't choke on unknown options, it will just issue warnings
5804 # or remarks (even with -Werror). So we grep stderr for any message
5805 # that says an option was ignored or not supported.
5806 # When given -MP, icc 7.0 and 7.1 complain thusly:
5807 # icc: Command line warning: ignoring option '-M'; no argument required
5808 # The diagnosis changed in icc 8.0:
5809 # icc: Command line remark: option '-MP' not supported
5810 if (grep 'ignoring option' conftest.err ||
5811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5812 am_cv_CC_dependencies_compiler_type=$depmode
5821 am_cv_CC_dependencies_compiler_type=none
5825 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5832 test "x$enable_dependency_tracking" != xno \
5833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5835 am__fastdepCC_FALSE='#'
5837 am__fastdepCC_TRUE='#'
5838 am__fastdepCC_FALSE=
5842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5844 if test "${lt_cv_path_SED+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 # Loop through the user's path and test for sed and gsed.
5848 # Then use that list of sed's as ones to test for truncation.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for lt_ac_prog in sed gsed; do
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5857 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5865 # along with /bin/sed that truncates output.
5866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5867 test ! -f $lt_ac_sed && continue
5868 cat /dev/null > conftest.in
5870 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5871 # Check for GNU sed and select it if it is found.
5872 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5873 lt_cv_path_SED=$lt_ac_sed
5877 cat conftest.in conftest.in >conftest.tmp
5878 mv conftest.tmp conftest.in
5879 cp conftest.in conftest.nl
5881 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5882 cmp -s conftest.out conftest.nl || break
5883 # 10000 chars as input seems more than enough
5884 test $lt_ac_count -gt 10 && break
5885 lt_ac_count=`expr $lt_ac_count + 1`
5886 if test $lt_ac_count -gt $lt_ac_max; then
5887 lt_ac_max=$lt_ac_count
5888 lt_cv_path_SED=$lt_ac_sed
5896 { echo "$as_me:$LINENO: result: $SED" >&5
5897 echo "${ECHO_T}$SED" >&6; }
5899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_GREP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 # Extract the first word of "grep ggrep" to use in msg output
5905 if test -z "$GREP"; then
5906 set dummy grep ggrep; ac_prog_name=$2
5907 if test "${ac_cv_path_GREP+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_path_GREP_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5916 test -z "$as_dir" && as_dir=.
5917 for ac_prog in grep ggrep; do
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5921 # Check for GNU ac_path_GREP and select it if it is found.
5922 # Check for GNU $ac_path_GREP
5923 case `"$ac_path_GREP" --version 2>&1` in
5925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5928 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5931 cat "conftest.in" "conftest.in" >"conftest.tmp"
5932 mv "conftest.tmp" "conftest.in"
5933 cp "conftest.in" "conftest.nl"
5934 echo 'GREP' >> "conftest.nl"
5935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937 ac_count=`expr $ac_count + 1`
5938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5939 # Best one so far, save it but keep looking for a better one
5940 ac_cv_path_GREP="$ac_path_GREP"
5941 ac_path_GREP_max=$ac_count
5943 # 10*(2^10) chars as input seems more than enough
5944 test $ac_count -gt 10 && break
5946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5950 $ac_path_GREP_found && break 3
5960 GREP="$ac_cv_path_GREP"
5961 if test -z "$GREP"; then
5962 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5964 { (exit 1); exit 1; }; }
5968 ac_cv_path_GREP=$GREP
5973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5975 GREP="$ac_cv_path_GREP"
5978 { echo "$as_me:$LINENO: checking for egrep" >&5
5979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_EGREP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984 then ac_cv_path_EGREP="$GREP -E"
5986 # Extract the first word of "egrep" to use in msg output
5987 if test -z "$EGREP"; then
5988 set dummy egrep; ac_prog_name=$2
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_path_EGREP_found=false
5993 # Loop through the user's path and test for each of PROGNAME-LIST
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5998 test -z "$as_dir" && as_dir=.
5999 for ac_prog in egrep; do
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6002 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6003 # Check for GNU ac_path_EGREP and select it if it is found.
6004 # Check for GNU $ac_path_EGREP
6005 case `"$ac_path_EGREP" --version 2>&1` in
6007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6010 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6013 cat "conftest.in" "conftest.in" >"conftest.tmp"
6014 mv "conftest.tmp" "conftest.in"
6015 cp "conftest.in" "conftest.nl"
6016 echo 'EGREP' >> "conftest.nl"
6017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019 ac_count=`expr $ac_count + 1`
6020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6021 # Best one so far, save it but keep looking for a better one
6022 ac_cv_path_EGREP="$ac_path_EGREP"
6023 ac_path_EGREP_max=$ac_count
6025 # 10*(2^10) chars as input seems more than enough
6026 test $ac_count -gt 10 && break
6028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6032 $ac_path_EGREP_found && break 3
6042 EGREP="$ac_cv_path_EGREP"
6043 if test -z "$EGREP"; then
6044 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6046 { (exit 1); exit 1; }; }
6050 ac_cv_path_EGREP=$EGREP
6056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6058 EGREP="$ac_cv_path_EGREP"
6062 # Check whether --with-gnu-ld was given.
6063 if test "${with_gnu_ld+set}" = set; then
6064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6070 if test "$GCC" = yes; then
6071 # Check if gcc -print-prog-name=ld gives a path.
6072 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6076 # gcc leaves a trailing carriage return which upsets mingw
6077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6082 # Accept absolute paths.
6084 re_direlt='/[^/][^/]*/\.\./'
6085 # Canonicalize the pathname of ld
6086 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6088 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6090 test -z "$LD" && LD="$ac_prog"
6093 # If it fails, then pretend we aren't using GCC.
6097 # If it is relative, then search for the first ld in PATH.
6101 elif test "$with_gnu_ld" = yes; then
6102 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6105 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6108 if test "${lt_cv_path_LD+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -z "$LD"; then
6112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113 for ac_dir in $PATH; do
6115 test -z "$ac_dir" && ac_dir=.
6116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6117 lt_cv_path_LD="$ac_dir/$ac_prog"
6118 # Check to see if the program is GNU ld. I'd rather use --version,
6119 # but apparently some variants of GNU ld only accept -v.
6120 # Break only if it was the GNU/non-GNU ld that we prefer.
6121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6122 *GNU* | *'with BFD'*)
6123 test "$with_gnu_ld" != no && break
6126 test "$with_gnu_ld" != yes && break
6133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6138 if test -n "$LD"; then
6139 { echo "$as_me:$LINENO: result: $LD" >&5
6140 echo "${ECHO_T}$LD" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6147 { (exit 1); exit 1; }; }
6148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6154 case `$LD -v 2>&1 </dev/null` in
6155 *GNU* | *'with BFD'*)
6156 lt_cv_prog_gnu_ld=yes
6159 lt_cv_prog_gnu_ld=no
6163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6165 with_gnu_ld=$lt_cv_prog_gnu_ld
6168 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6170 if test "${lt_cv_ld_reload_flag+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 lt_cv_ld_reload_flag='-r'
6175 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6180 *) reload_flag=" $reload_flag" ;;
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 if test "$GCC" = yes; then
6186 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$NM"; then
6199 # Let the user override the test.
6202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6203 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6205 test -z "$ac_dir" && ac_dir=.
6206 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6208 # Check to see if the nm accepts a BSD-compat flag.
6209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6210 # nm: unknown option "B" ignored
6211 # Tru64's nm complains that /dev/null is an invalid object file
6212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6213 */dev/null* | *'Invalid file or object type'*)
6214 lt_cv_path_NM="$tmp_nm -B"
6218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6220 lt_cv_path_NM="$tmp_nm -p"
6224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6225 continue # so that we can try to find one that supports BSD flags
6232 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6235 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6236 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6239 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6242 if test "$LN_S" = "ln -s"; then
6243 { echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6; }
6246 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6247 echo "${ECHO_T}no, using $LN_S" >&6; }
6250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6252 if test "${lt_cv_deplibs_check_method+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 lt_cv_file_magic_cmd='$MAGIC_CMD'
6256 lt_cv_file_magic_test_file=
6257 lt_cv_deplibs_check_method='unknown'
6258 # Need to set the preceding variable on all platforms that support
6259 # interlibrary dependencies.
6260 # 'none' -- dependencies not supported.
6261 # `unknown' -- same as none, but documents that we really don't know.
6262 # 'pass_all' -- all dependencies passed with no checks.
6263 # 'test_compile' -- check by making test program.
6264 # 'file_magic [[regex]]' -- check by looking for files in library path
6265 # which responds to the $file_magic_cmd with a given extended regex.
6266 # If you have `file' or equivalent on your system and you're not sure
6267 # whether `pass_all' will *always* work, you probably want this one.
6271 lt_cv_deplibs_check_method=pass_all
6275 lt_cv_deplibs_check_method=pass_all
6279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6280 lt_cv_file_magic_cmd='/usr/bin/file -L'
6281 lt_cv_file_magic_test_file=/shlib/libc.so
6285 # func_win32_libid is a shell function defined in ltmain.sh
6286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6287 lt_cv_file_magic_cmd='func_win32_libid'
6291 # Base MSYS/MinGW do not provide the 'file' command needed by
6292 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6294 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | kfreebsd*-gnu | dragonfly*)
6302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6313 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6321 hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6329 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]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6339 irix5* | irix6* | nonstopux*)
6341 *-32|*"-32 ") libmagic=32-bit;;
6342 *-n32|*"-n32 ") libmagic=N32;;
6343 *-64|*"-64 ") libmagic=64-bit;;
6344 *) libmagic=never-match;;
6346 lt_cv_deplibs_check_method=pass_all
6349 # This must be Linux ELF.
6351 lt_cv_deplibs_check_method=pass_all
6355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6369 lt_cv_deplibs_check_method=unknown
6373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6380 osf3* | osf4* | osf5*)
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method=pass_all
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393 case $host_vendor in
6395 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]'
6396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6399 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_file_magic_cmd='/bin/file'
6403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6406 lt_cv_file_magic_cmd='/bin/file'
6407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408 lt_cv_file_magic_test_file=/lib/libc.so
6411 lt_cv_deplibs_check_method=pass_all
6416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6417 lt_cv_deplibs_check_method=pass_all
6422 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6424 file_magic_cmd=$lt_cv_file_magic_cmd
6425 deplibs_check_method=$lt_cv_deplibs_check_method
6426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6431 # If no C compiler was specified, use CC.
6434 # Allow CC to be a program name with arguments.
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445 # Some flags need to be propagated to the compiler or linker for good
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6468 # Find out which ABI we are using.
6469 echo '#line 6469 "configure"' > conftest.$ac_ext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6478 LD="${LD-ld} -melf32bsmip"
6481 LD="${LD-ld} -melf32bmipn32"
6484 LD="${LD-ld} -melf64bmip"
6488 case `/usr/bin/file conftest.$ac_objext` in
6504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6505 # Find out which ABI we are using.
6506 echo 'int i;' > conftest.$ac_ext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; then
6512 case `/usr/bin/file conftest.o` in
6516 LD="${LD-ld} -m elf_i386"
6518 ppc64-*linux*|powerpc64-*linux*)
6519 LD="${LD-ld} -m elf32ppclinux"
6522 LD="${LD-ld} -m elf_s390"
6525 LD="${LD-ld} -m elf32_sparc"
6532 LD="${LD-ld} -m elf_x86_64"
6534 ppc*-*linux*|powerpc*-*linux*)
6535 LD="${LD-ld} -m elf64ppc"
6538 LD="${LD-ld} -m elf64_s390"
6541 LD="${LD-ld} -m elf64_sparc"
6551 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552 SAVE_CFLAGS="$CFLAGS"
6553 CFLAGS="$CFLAGS -belf"
6554 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_link") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest$ac_exeext &&
6597 $as_test_x conftest$ac_exeext; then
6598 lt_cv_cc_needs_belf=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 lt_cv_cc_needs_belf=no
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607 conftest$ac_exeext conftest.$ac_ext
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6617 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619 CFLAGS="$SAVE_CFLAGS"
6622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 if test -n "$DLLTOOL"; then
6632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 DLLTOOL=$ac_cv_prog_DLLTOOL
6652 if test -n "$DLLTOOL"; then
6653 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6654 echo "${ECHO_T}$DLLTOOL" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6662 if test -z "$ac_cv_prog_DLLTOOL"; then
6663 ac_ct_DLLTOOL=$DLLTOOL
6664 # Extract the first word of "dlltool", so it can be a program name with args.
6665 set dummy dlltool; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 if test -n "$ac_ct_DLLTOOL"; then
6672 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6694 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6700 if test "x$ac_ct_DLLTOOL" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&5
6708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet. If you think this
6710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6711 ac_tool_warned=yes ;;
6713 DLLTOOL=$ac_ct_DLLTOOL
6716 DLLTOOL="$ac_cv_prog_DLLTOOL"
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}as; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_AS+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$AS"; then
6728 ac_cv_prog_AS="$AS" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_AS="${ac_tool_prefix}as"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 if test -n "$AS"; then
6749 { echo "$as_me:$LINENO: result: $AS" >&5
6750 echo "${ECHO_T}$AS" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6758 if test -z "$ac_cv_prog_AS"; then
6760 # Extract the first word of "as", so it can be a program name with args.
6761 set dummy as; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 if test -n "$ac_ct_AS"; then
6768 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_AS="as"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6788 if test -n "$ac_ct_AS"; then
6789 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6790 echo "${ECHO_T}$ac_ct_AS" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6796 if test "x$ac_ct_AS" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 if test -n "$OBJDUMP"; then
6824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6846 echo "${ECHO_T}$OBJDUMP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855 ac_ct_OBJDUMP=$OBJDUMP
6856 # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 if test -n "$ac_ct_OBJDUMP"; then
6864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6886 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6892 if test "x$ac_ct_OBJDUMP" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet. If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&5
6900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet. If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903 ac_tool_warned=yes ;;
6905 OBJDUMP=$ac_ct_OBJDUMP
6908 OBJDUMP="$ac_cv_prog_OBJDUMP"
6915 need_locks="$enable_libtool_lock"
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6925 # On Suns, sometimes $CPP names a directory.
6926 if test -n "$CPP" && test -d "$CPP"; then
6929 if test -z "$CPP"; then
6930 if test "${ac_cv_prog_CPP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 # Double quotes because CPP needs to be expanded
6934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6937 for ac_c_preproc_warn_flag in '' yes
6939 # Use a header file that comes with gcc, so configuring glibc
6940 # with a fresh cross-compiler works.
6941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942 # <limits.h> exists even on freestanding compilers.
6943 # On the NeXT, cc -E runs the code through the compiler's parser,
6944 # not just through cpp. "Syntax error" is here to catch this case.
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 # include <limits.h>
6954 # include <assert.h>
6958 if { (ac_try="$ac_cpp conftest.$ac_ext"
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } >/dev/null && {
6971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 # Broken: fails on valid input.
6983 rm -f conftest.err conftest.$ac_ext
6985 # OK, works on sane cases. Now check whether nonexistent headers
6986 # can be detected and how.
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <ac_nonexistent.h>
6995 if { (ac_try="$ac_cpp conftest.$ac_ext"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } >/dev/null && {
7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7011 # Broken: success on invalid input.
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 # Passes both tests.
7022 rm -f conftest.err conftest.$ac_ext
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then
7039 { echo "$as_me:$LINENO: result: $CPP" >&5
7040 echo "${ECHO_T}$CPP" >&6; }
7042 for ac_c_preproc_warn_flag in '' yes
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7057 # include <limits.h>
7059 # include <assert.h>
7063 if { (ac_try="$ac_cpp conftest.$ac_ext"
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null && {
7076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 # Broken: fails on valid input.
7088 rm -f conftest.err conftest.$ac_ext
7090 # OK, works on sane cases. Now check whether nonexistent headers
7091 # can be detected and how.
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <ac_nonexistent.h>
7100 if { (ac_try="$ac_cpp conftest.$ac_ext"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev/null && {
7113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7116 # Broken: success on invalid input.
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 # Passes both tests.
7127 rm -f conftest.err conftest.$ac_ext
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&5
7137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." >&2;}
7139 { (exit 1); exit 1; }; }
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_stdc+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_header_stdc=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_header_stdc=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "memchr" >/dev/null 2>&1; then
7215 ac_cv_header_stdc=no
7221 if test $ac_cv_header_stdc = yes; then
7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233 $EGREP "free" >/dev/null 2>&1; then
7236 ac_cv_header_stdc=no
7242 if test $ac_cv_header_stdc = yes; then
7243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244 if test "$cross_compiling" = yes; then
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7255 #if ((' ' & 0x0FF) == 0x020)
7256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7259 # define ISLOWER(c) \
7260 (('a' <= (c) && (c) <= 'i') \
7261 || ('j' <= (c) && (c) <= 'r') \
7262 || ('s' <= (c) && (c) <= 'z'))
7263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7271 for (i = 0; i < 256; i++)
7272 if (XOR (islower (i), ISLOWER (i))
7273 || toupper (i) != TOUPPER (i))
7278 rm -f conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7289 { (case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_try") 2>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7300 echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_stdc=no
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7315 if test $ac_cv_header_stdc = yes; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define STDC_HEADERS 1
7323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334 inttypes.h stdint.h unistd.h
7336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7350 #include <$ac_header>
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 eval "$as_ac_Header=yes"
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 eval "$as_ac_Header=no"
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 for ac_header in dlfcn.h
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403 { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7406 # Is the header compilable?
7407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <$ac_header>
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 ac_header_compiler=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_header_compiler=no
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6; }
7447 # Is the header present?
7448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #include <$ac_header>
7458 if { (ac_try="$ac_cpp conftest.$ac_ext"
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } >/dev/null && {
7471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7474 ac_header_preproc=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_header_preproc=no
7482 rm -f conftest.err conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6; }
7486 # So? What about this header?
7487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7493 ac_header_preproc=yes
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509 ## --------------------------------------------- ##
7510 ## Report this to <http://www.openldap.org/its/> ##
7511 ## --------------------------------------------- ##
7513 ) | sed "s/^/$as_me: WARNING: /" >&2
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 eval "$as_ac_Header=\$ac_header_preproc"
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524 { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7540 # find the maximum length of command line arguments
7541 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7542 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 # On DJGPP, this test can blow up pretty badly due to problems in libc
7552 # (any single argument exceeding 2000 bytes causes a buffer overrun
7553 # during glob expansion). Even if it were fixed, the result of this
7554 # check would be larger than it should be.
7555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7559 # Under GNU Hurd, this test is not required because there is
7560 # no limit to the length of command line arguments.
7561 # Libtool will interpret -1 as no limit whatsoever
7562 lt_cv_sys_max_cmd_len=-1;
7566 # On Win9x/ME, this test blows up -- it succeeds, but takes
7567 # about 5 minutes as the teststring grows exponentially.
7568 # Worse, since 9x/ME are not pre-emptively multitasking,
7569 # you end up with a "frozen" computer, even though with patience
7570 # the test eventually succeeds (with a max line length of 256k).
7571 # Instead, let's just punt: use the minimum linelength reported by
7572 # all of the supported platforms: 8192 (on NT/2K/XP).
7573 lt_cv_sys_max_cmd_len=8192;
7577 # On AmigaOS with pdksh, this test takes hours, literally.
7578 # So we just punt and use a minimum line length of 8192.
7579 lt_cv_sys_max_cmd_len=8192;
7582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7583 # This has been around since 386BSD, at least. Likely further.
7584 if test -x /sbin/sysctl; then
7585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7586 elif test -x /usr/sbin/sysctl; then
7587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7591 # And add a safety zone
7592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7598 # nice to cause kernel panics so lets avoid the loop below.
7599 # First set a reasonable default.
7600 lt_cv_sys_max_cmd_len=16384
7602 if test -x /sbin/sysconfig; then
7603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7609 # If test is not a shell built-in, we'll probably end up computing a
7610 # maximum length that is only half of the actual maximum length, but
7612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7613 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7614 = "XX$teststring") >/dev/null 2>&1 &&
7615 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7616 lt_cv_sys_max_cmd_len=$new_result &&
7617 test $i != 17 # 1/2 MB should be enough
7620 teststring=$teststring$teststring
7623 # Add a significant safety factor because C++ compilers can tack on massive
7624 # amounts of additional arguments before passing them to the linker.
7625 # It appears as though 1/2 is a usable value.
7626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7632 if test -n $lt_cv_sys_max_cmd_len ; then
7633 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7634 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7636 { echo "$as_me:$LINENO: result: none" >&5
7637 echo "${ECHO_T}none" >&6; }
7643 # Check for command to grab the raw symbol name followed by C symbol from nm.
7644 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7645 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 # These are sane defaults that work on at least a few old systems.
7651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7653 # Character class describing NM global symbol codes.
7654 symcode='[BCDEGRST]'
7656 # Regexp to match symbols that can be accessed directly from C.
7657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7659 # Transform an extracted symbol line into a proper C declaration
7660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7662 # Transform an extracted symbol line into symbol name and symbol address
7663 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'"
7665 # Define system-specific variables.
7670 cygwin* | mingw* | pw32*)
7671 symcode='[ABCDGISTW]'
7673 hpux*) # Its linker distinguishes data from code symbols
7674 if test "$host_cpu" = ia64; then
7675 symcode='[ABCDEGRST]'
7677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678 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'"
7681 if test "$host_cpu" = ia64; then
7682 symcode='[ABCDGIRSTW]'
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684 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'"
7688 symcode='[BCDEGRST]'
7691 symcode='[BCDEGQRST]'
7701 # Handle CRLF in mingw tool chain
7705 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7709 # If we're using GNU nm, then use its standard symbol codes.
7710 case `$NM -V 2>&1` in
7711 *GNU* | *'with BFD'*)
7712 symcode='[ABCDGIRSTW]' ;;
7715 # Try without a prefix undercore, then with it.
7716 for ac_symprfx in "" "_"; do
7718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7719 symxfrm="\\1 $ac_symprfx\\2 \\2"
7721 # Write the raw and C identifiers.
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7724 # Check to see that the pipe works correctly.
7728 cat > conftest.$ac_ext <<EOF
7733 void nm_test_func(){}
7737 int main(){nm_test_var='a';nm_test_func();return(0);}
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; then
7745 # Now try to grab the symbols.
7747 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7748 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && test -s "$nlist"; then
7752 # Try sorting and uniquifying the output.
7753 if sort "$nlist" | uniq > "$nlist"T; then
7754 mv -f "$nlist"T "$nlist"
7759 # Make sure that we snagged all the symbols we need.
7760 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7761 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7762 cat <<EOF > conftest.$ac_ext
7768 # Now generate the symbol file.
7769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7771 cat <<EOF >> conftest.$ac_ext
7772 #if defined (__STDC__) && __STDC__
7773 # define lt_ptr_t void *
7775 # define lt_ptr_t char *
7779 /* The mapping between symbol names and symbols. */
7784 lt_preloaded_symbols[] =
7787 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7788 cat <<\EOF >> conftest.$ac_ext
7796 # Now try linking the two files.
7797 mv conftest.$ac_objext conftstm.$ac_objext
7798 lt_save_LIBS="$LIBS"
7799 lt_save_CFLAGS="$CFLAGS"
7800 LIBS="conftstm.$ac_objext"
7801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7809 LIBS="$lt_save_LIBS"
7810 CFLAGS="$lt_save_CFLAGS"
7812 echo "cannot find nm_test_func in $nlist" >&5
7815 echo "cannot find nm_test_var in $nlist" >&5
7818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7821 echo "$progname: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 rm -f conftest* conftst*
7826 # Do not use the global_symbol_pipe unless it works.
7827 if test "$pipe_works" = yes; then
7830 lt_cv_sys_global_symbol_pipe=
7836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7837 lt_cv_sys_global_symbol_to_cdecl=
7839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7840 { echo "$as_me:$LINENO: result: failed" >&5
7841 echo "${ECHO_T}failed" >&6; }
7843 { echo "$as_me:$LINENO: result: ok" >&5
7844 echo "${ECHO_T}ok" >&6; }
7847 { echo "$as_me:$LINENO: checking for objdir" >&5
7848 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7849 if test "${lt_cv_objdir+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 rm -f .libs 2>/dev/null
7853 mkdir .libs 2>/dev/null
7854 if test -d .libs; then
7857 # MS-DOS does not allow filenames that begin with a dot.
7860 rmdir .libs 2>/dev/null
7862 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7863 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7864 objdir=$lt_cv_objdir
7872 # AIX sometimes has problems with the GCC collect2 program. For some
7873 # reason, if we set the COLLECT_NAMES environment variable, the problems
7874 # vanish in a puff of smoke.
7875 if test "X${COLLECT_NAMES+set}" != Xset; then
7877 export COLLECT_NAMES
7882 # Sed substitution that helps us do robust quoting. It backslashifies
7883 # metacharacters that are still active within double-quoted strings.
7884 Xsed='sed -e 1s/^X//'
7885 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7887 # Same as above, but do not quote variable references.
7888 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7890 # Sed substitution to delay expansion of an escaped shell variable in a
7891 # double_quote_subst'ed string.
7892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7894 # Sed substitution to avoid accidental globbing in evaled expressions
7895 no_glob_subst='s/\*/\\\*/g'
7901 default_ofile=libtool
7902 can_build_shared=yes
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7907 ltmain="$ac_aux_dir/ltmain.sh"
7908 ofile="$default_ofile"
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}ar; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR="$AR" # Let the user override the test.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_AR="${ac_tool_prefix}ar"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 if test -n "$AR"; then
7941 { echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6; }
7944 { echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6; }
7950 if test -z "$ac_cv_prog_AR"; then
7952 # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 if test -n "$ac_ct_AR"; then
7960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_ac_ct_AR="ar"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7980 if test -n "$ac_ct_AR"; then
7981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7982 echo "${ECHO_T}$ac_ct_AR" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7988 if test "x$ac_ct_AR" = x; then
7991 case $cross_compiling:$ac_tool_warned in
7993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet. If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&5
7996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7997 whose name does not start with the host triplet. If you think this
7998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7999 ac_tool_warned=yes ;;
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_prog_RANLIB+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 if test -n "$RANLIB"; then
8016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 RANLIB=$ac_cv_prog_RANLIB
8036 if test -n "$RANLIB"; then
8037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8038 echo "${ECHO_T}$RANLIB" >&6; }
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8046 if test -z "$ac_cv_prog_RANLIB"; then
8047 ac_ct_RANLIB=$RANLIB
8048 # Extract the first word of "ranlib", so it can be a program name with args.
8049 set dummy ranlib; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 if test -n "$ac_ct_RANLIB"; then
8056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_ac_ct_RANLIB="ranlib"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8076 if test -n "$ac_ct_RANLIB"; then
8077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8084 if test "x$ac_ct_RANLIB" = x; then
8087 case $cross_compiling:$ac_tool_warned in
8089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet. If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&5
8092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8093 whose name does not start with the host triplet. If you think this
8094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8095 ac_tool_warned=yes ;;
8097 RANLIB=$ac_ct_RANLIB
8100 RANLIB="$ac_cv_prog_RANLIB"
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}strip; ac_word=$2
8106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8108 if test "${ac_cv_prog_STRIP+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test -n "$STRIP"; then
8112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 STRIP=$ac_cv_prog_STRIP
8132 if test -n "$STRIP"; then
8133 { echo "$as_me:$LINENO: result: $STRIP" >&5
8134 echo "${ECHO_T}$STRIP" >&6; }
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8142 if test -z "$ac_cv_prog_STRIP"; then
8144 # Extract the first word of "strip", so it can be a program name with args.
8145 set dummy strip; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 if test -n "$ac_ct_STRIP"; then
8152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_ac_ct_STRIP="strip"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8172 if test -n "$ac_ct_STRIP"; then
8173 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8174 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8180 if test "x$ac_ct_STRIP" = x; then
8183 case $cross_compiling:$ac_tool_warned in
8185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet. If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&5
8188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8189 whose name does not start with the host triplet. If you think this
8190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8191 ac_tool_warned=yes ;;
8196 STRIP="$ac_cv_prog_STRIP"
8201 old_CFLAGS="$CFLAGS"
8203 # Set sane defaults for various variables
8204 test -z "$AR" && AR=ar
8205 test -z "$AR_FLAGS" && AR_FLAGS=cru
8206 test -z "$AS" && AS=as
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8210 test -z "$LD" && LD=ld
8211 test -z "$LN_S" && LN_S="ln -s"
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 test -z "$NM" && NM=nm
8214 test -z "$SED" && SED=sed
8215 test -z "$OBJDUMP" && OBJDUMP=objdump
8216 test -z "$RANLIB" && RANLIB=:
8217 test -z "$STRIP" && STRIP=:
8218 test -z "$ac_objext" && ac_objext=o
8220 # Determine commands to create old-style static archives.
8221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8222 old_postinstall_cmds='chmod 644 $oldlib'
8223 old_postuninstall_cmds=
8225 if test -n "$RANLIB"; then
8228 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8231 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8237 for cc_temp in $compiler""; do
8239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8248 # Only perform the check for file, if the check method requires it
8249 case $deplibs_check_method in
8251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8253 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8262 lt_save_MAGIC_CMD="$MAGIC_CMD"
8263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/${ac_tool_prefix}file; then
8269 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270 if test -n "$file_magic_test_file"; then
8271 case $deplibs_check_method in
8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276 $EGREP "$file_magic_regex" > /dev/null; then
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such. This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem. Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8298 MAGIC_CMD="$lt_save_MAGIC_CMD"
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8308 { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { echo "$as_me:$LINENO: checking for file" >&5
8315 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8384 enable_win32_dll=yes
8386 # Check whether --enable-libtool-lock was given.
8387 if test "${enable_libtool_lock+set}" = set; then
8388 enableval=$enable_libtool_lock;
8391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then
8396 withval=$with_pic; pic_mode="$withval"
8401 test -z "$pic_mode" && pic_mode=default
8403 # Use C for the default configuration in the libtool script
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413 # Source file extension for C test sources.
8416 # Object file extension for compiled C test sources.
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;\n"
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}\n'
8427 # If no C compiler was specified, use CC.
8430 # Allow CC to be a program name with arguments.
8434 # save warnings/boilerplate of simple test code
8435 ac_outfile=conftest.$ac_objext
8436 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8438 _lt_compiler_boilerplate=`cat conftest.err`
8441 ac_outfile=conftest.$ac_objext
8442 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8444 _lt_linker_boilerplate=`cat conftest.err`
8449 # Check for any special shared library compilation flags.
8452 if test "$GCC" = no; then
8455 lt_prog_cc_shlib='-belf'
8459 if test -n "$lt_prog_cc_shlib"; then
8460 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8461 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8462 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8464 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8465 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8466 lt_cv_prog_cc_can_build_shared=no
8472 # Check to make sure the static flag actually works.
8474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8475 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8476 if test "${lt_prog_compiler_static_works+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 lt_prog_compiler_static_works=no
8480 save_LDFLAGS="$LDFLAGS"
8481 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8482 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484 # The linker can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 if test -s conftest.err; then
8487 # Append any errors to the config.log.
8488 cat conftest.err 1>&5
8489 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8490 $SED '/^$/d' conftest.err >conftest.er2
8491 if diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_prog_compiler_static_works=yes
8495 lt_prog_compiler_static_works=yes
8499 LDFLAGS="$save_LDFLAGS"
8502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8505 if test x"$lt_prog_compiler_static_works" = xyes; then
8508 lt_prog_compiler_static=
8514 lt_prog_compiler_no_builtin_flag=
8516 if test "$GCC" = yes; then
8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8520 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 lt_cv_prog_compiler_rtti_exceptions=no
8526 ac_outfile=conftest.$ac_objext
8527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-fno-rtti -fno-exceptions"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 # The option is referenced via a variable to avoid confusing sed.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>conftest.err)
8541 cat conftest.err >&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s "$ac_outfile"; then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings other than the usual output.
8546 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8547 $SED '/^$/d' conftest.err >conftest.er2
8548 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_rtti_exceptions=yes
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8566 lt_prog_compiler_wl=
8567 lt_prog_compiler_pic=
8568 lt_prog_compiler_static=
8570 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8573 if test "$GCC" = yes; then
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_static='-static'
8579 # All AIX code is PIC.
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8587 # FIXME: we need at least 68020 code to build shared libraries, but
8588 # adding the `-m68020' flag to GCC prevents building anything better,
8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594 # PIC is the default for these OSes.
8597 mingw* | pw32* | os2*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 lt_prog_compiler_pic='-DDLL_EXPORT'
8603 darwin* | rhapsody*)
8604 # PIC is the default on this platform
8605 # Common symbols not allowed in MH_DYLIB files
8606 lt_prog_compiler_pic='-fno-common'
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared=no
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630 lt_prog_compiler_pic='-fPIC'
8636 lt_prog_compiler_pic='-fPIC'
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8643 lt_prog_compiler_wl='-Wl,'
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8652 # PIC is the default on this platform
8653 # Common symbols not allowed in MH_DYLIB files
8654 case $cc_basename in
8656 lt_prog_compiler_pic='-qnocommon'
8657 lt_prog_compiler_wl='-Wl,'
8662 mingw* | pw32* | os2*)
8663 # This hack is so that the source file can tell whether it is being
8664 # built for inclusion in a dll (and should export symbols for example).
8665 lt_prog_compiler_pic='-DDLL_EXPORT'
8668 hpux9* | hpux10* | hpux11*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677 lt_prog_compiler_pic='+Z'
8680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681 lt_prog_compiler_static='${wl}-a ${wl}archive'
8684 irix5* | irix6* | nonstopux*)
8685 lt_prog_compiler_wl='-Wl,'
8686 # PIC (with -KPIC) is the default.
8687 lt_prog_compiler_static='-non_shared'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8696 case $cc_basename in
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-static'
8702 pgcc* | pgf77* | pgf90* | pgf95*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8717 osf3* | osf4* | osf5*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All OSF/1 code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8724 lt_prog_compiler_pic='-Kpic'
8725 lt_prog_compiler_static='-dn'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 case $cc_basename in
8733 lt_prog_compiler_wl='-Qoption ld ';;
8735 lt_prog_compiler_wl='-Wl,';;
8740 lt_prog_compiler_wl='-Qoption ld '
8741 lt_prog_compiler_pic='-PIC'
8742 lt_prog_compiler_static='-Bstatic'
8745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 if test -d /usr/nec ;then
8753 lt_prog_compiler_pic='-Kconform_pic'
8754 lt_prog_compiler_static='-Bstatic'
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_can_build_shared=no
8764 lt_prog_compiler_pic='-pic'
8765 lt_prog_compiler_static='-Bstatic'
8769 lt_prog_compiler_can_build_shared=no
8774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8775 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8778 # Check to make sure the PIC flag actually works.
8780 if test -n "$lt_prog_compiler_pic"; then
8782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8784 if test "${lt_prog_compiler_pic_works+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 lt_prog_compiler_pic_works=no
8788 ac_outfile=conftest.$ac_objext
8789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 # The option is referenced via a variable to avoid confusing sed.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:8800: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>conftest.err)
8803 cat conftest.err >&5
8804 echo "$as_me:8804: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s "$ac_outfile"; then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings other than the usual output.
8808 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8809 $SED '/^$/d' conftest.err >conftest.er2
8810 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_prog_compiler_pic_works=yes
8817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8820 if test x"$lt_prog_compiler_pic_works" = xyes; then
8821 case $lt_prog_compiler_pic in
8823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_can_build_shared=no
8832 # For platforms which do not support PIC, -DPIC is meaningless:
8834 lt_prog_compiler_pic=
8837 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 lt_cv_prog_compiler_c_o=no
8847 $rm -r conftest 2>/dev/null
8851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8853 lt_compiler_flag="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out/conftest.err)
8865 cat out/conftest.err >&5
8866 echo "$as_me:8866: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8872 $SED '/^$/d' out/conftest.err >out/conftest.er2
8873 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_c_o=yes
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8882 $rm out/* && rmdir out
8888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894 # do not overwrite the value of need_locks provided by the user
8895 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 ln conftest.a conftest.b 2>&5 || hard_links=no
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 { echo "$as_me:$LINENO: result: $hard_links" >&5
8904 echo "${ECHO_T}$hard_links" >&6; }
8905 if test "$hard_links" = no; then
8906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8914 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8918 allow_undefined_flag=
8919 enable_shared_with_static_runtimes=no
8921 archive_expsym_cmds=
8922 old_archive_From_new_cmds=
8923 old_archive_from_expsyms_cmds=
8924 export_dynamic_flag_spec=
8925 whole_archive_flag_spec=
8926 thread_safe_flag_spec=
8927 hardcode_libdir_flag_spec=
8928 hardcode_libdir_flag_spec_ld=
8929 hardcode_libdir_separator=
8932 hardcode_shlibpath_var=unsupported
8933 link_all_deplibs=unknown
8934 hardcode_automatic=no
8937 always_export_symbols=no
8938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939 # include_expsyms should be a list of space-separated symbols to be *always*
8940 # included in the symbol list
8942 # exclude_expsyms can be an extended regexp of symbols to exclude
8943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945 # as well as any symbol that contains `d'.
8946 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948 # platforms (ab)use it in PIC code, but their linkers get confused if
8949 # the symbol is explicitly referenced. Since portable code cannot
8950 # rely on this symbol name, it's probably fine to never include it in
8951 # preloaded symbol tables.
8952 extract_expsyms_cmds=
8953 # Just being paranoid about ensuring that cc_basename is set.
8954 for cc_temp in $compiler""; do
8956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8965 cygwin* | mingw* | pw32*)
8966 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 if test "$GCC" != yes; then
8979 if test "$with_gnu_ld" = yes; then
8980 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 # Set some defaults for GNU ld with shared library support. These
8984 # are reset later if shared libraries are not supported. Putting them
8985 # here allows them to be overridden if necessary.
8986 runpath_var=LD_RUN_PATH
8987 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8988 export_dynamic_flag_spec='${wl}--export-dynamic'
8989 # ancient GNU ld didn't support --whole-archive et. al.
8990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8991 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8993 whole_archive_flag_spec=
8995 supports_anon_versioning=no
8996 case `$LD -v 2>/dev/null` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000 *\ 2.11.*) ;; # other 2.11 versions
9001 *) supports_anon_versioning=yes ;;
9004 # See if GNU ld supports shared libraries.
9006 aix3* | aix4* | aix5*)
9007 # On AIX/PPC, the GNU linker is very broken
9008 if test "$host_cpu" != ia64; then
9012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support. If you
9015 *** really care for shared libraries, you may want to modify your PATH
9016 *** so that a non-GNU linker is found, and then restart.
9023 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)'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_minus_L=yes
9027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9028 # that the semantics of dynamic libraries on AmigaOS, at least up
9029 # to version 4, is to share data among multiple programs linked
9030 # with the same dynamic library. Since this doesn't match the
9031 # behavior of shared libraries on other platforms, we can't use
9037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9038 allow_undefined_flag=unsupported
9039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9040 # support --undefined. This deserves some investigation. FIXME
9041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 cygwin* | mingw* | pw32*)
9048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049 # as there is no search path for DLLs.
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=no
9053 enable_shared_with_static_runtimes=yes
9054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9058 # If the export-symbols file already is a .def file (1st line
9059 # is EXPORTS), use it as is; otherwise, prepend...
9060 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061 cp $export_symbols $output_objdir/$soname.def;
9063 echo EXPORTS > $output_objdir/$soname.def;
9064 cat $export_symbols >> $output_objdir/$soname.def;
9066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9075 case $cc_basename,$host_cpu in
9076 pgcc*) # Portland Group C compiler
9077 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'
9078 tmp_addflag=' $pic_flag'
9080 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9081 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'
9082 tmp_addflag=' $pic_flag -Mnomain' ;;
9083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9084 tmp_addflag=' -i_dynamic' ;;
9085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9086 tmp_addflag=' -i_dynamic -nofor_main' ;;
9087 ifc* | ifort*) # Intel Fortran compiler
9088 tmp_addflag=' -nofor_main' ;;
9090 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 if test $supports_anon_versioning = yes; then
9093 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095 $echo "local: *; };" >> $output_objdir/$libname.ver~
9096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9119 *** create shared libraries on Solaris systems. Therefore, libtool
9120 *** is disabling shared libraries support. We urge you to upgrade GNU
9121 *** binutils to release 2.9.1 or newer. Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9151 if test "$ld_shlibs" = no; then
9153 hardcode_libdir_flag_spec=
9154 export_dynamic_flag_spec=
9155 whole_archive_flag_spec=
9158 # PORTME fill in a description of your system's linker (not GNU ld)
9161 allow_undefined_flag=unsupported
9162 always_export_symbols=yes
9163 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'
9164 # Note: this linker hardcodes the directories in LIBPATH if there
9165 # are no directories specified by -L.
9166 hardcode_minus_L=yes
9167 if test "$GCC" = yes && test -z "$link_static_flag"; then
9168 # Neither direct hardcoding nor static linking is supported with a
9170 hardcode_direct=unsupported
9175 if test "$host_cpu" = ia64; then
9176 # On IA64, the linker does run time linking by default, so we don't
9177 # have to do anything special.
9178 aix_use_runtimelinking=no
9179 exp_sym_flag='-Bexport'
9182 # If we're using GNU nm, then we don't want the "-C" option.
9183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9185 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'
9187 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'
9189 aix_use_runtimelinking=no
9191 # Test if we are trying to use run time linking or normal
9192 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193 # need to do runtime linking.
9194 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9195 for ld_flag in $LDFLAGS; do
9196 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197 aix_use_runtimelinking=yes
9203 exp_sym_flag='-bexport'
9204 no_entry_flag='-bnoentry'
9207 # When large executables or shared objects are built, AIX ld can
9208 # have problems creating the table of contents. If linking a library
9209 # or program results in "error TOC overflow" add -mminimal-toc to
9210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9215 hardcode_libdir_separator=':'
9216 link_all_deplibs=yes
9218 if test "$GCC" = yes; then
9219 case $host_os in aix4.[012]|aix4.[012].*)
9220 # We only want to do this on AIX 4.2 and lower, the check
9221 # below for broken collect2 doesn't work under 4.3+
9222 collect2name=`${CC} -print-prog-name=collect2`
9223 if test -f "$collect2name" && \
9224 strings "$collect2name" | grep resolve_lib_name >/dev/null
9226 # We have reworked collect2
9229 # We have old collect2
9230 hardcode_direct=unsupported
9231 # It fails to find uninstalled libraries when the uninstalled
9232 # path is not listed in the libpath. Setting hardcode_minus_L
9233 # to unsupported forces relinking
9234 hardcode_minus_L=yes
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_libdir_separator=
9239 shared_flag='-shared'
9240 if test "$aix_use_runtimelinking" = yes; then
9241 shared_flag="$shared_flag "'${wl}-G'
9245 if test "$host_cpu" = ia64; then
9246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9247 # chokes on -Wl,-G. The following line is correct:
9250 if test "$aix_use_runtimelinking" = yes; then
9251 shared_flag='${wl}-G'
9253 shared_flag='${wl}-bM:SRE'
9258 # It seems that -bexpall does not export symbols beginning with
9259 # underscore (_), so it is better to generate a list of symbols to export.
9260 always_export_symbols=yes
9261 if test "$aix_use_runtimelinking" = yes; then
9262 # Warning - without using the other runtime loading flags (-brtl),
9263 # -berok will link without error, but may produce a broken library.
9264 allow_undefined_flag='-berok'
9265 # Determine the default libpath from the value encoded in an empty executable.
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_link") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest$ac_exeext &&
9298 $as_test_x conftest$ac_exeext; then
9300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9302 # Check for a 64-bit object if we didn't find anything.
9303 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; }
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317 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"
9319 if test "$host_cpu" = ia64; then
9320 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321 allow_undefined_flag="-z nodefs"
9322 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"
9324 # Determine the default libpath from the value encoded in an empty executable.
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext &&
9357 $as_test_x conftest$ac_exeext; then
9359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9361 # Check for a 64-bit object if we didn't find anything.
9362 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; }
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372 conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376 # Warning - without using the other run time loading flags,
9377 # -berok will link without error, but may produce a broken library.
9378 no_undefined_flag=' ${wl}-bernotok'
9379 allow_undefined_flag=' ${wl}-berok'
9380 # -bexpall does not export symbols beginning with underscore (_)
9381 always_export_symbols=yes
9382 # Exported symbols can be pulled into shared objects from archives
9383 whole_archive_flag_spec=' '
9384 archive_cmds_need_lc=yes
9385 # This is similar to how AIX traditionally builds its shared libraries.
9386 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'
9392 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)'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_minus_L=yes
9395 # see comment about different semantics on the GNU ld section
9400 export_dynamic_flag_spec=-rdynamic
9403 cygwin* | mingw* | pw32*)
9404 # When not using gcc, we currently assume that we are using
9405 # Microsoft Visual C++.
9406 # hardcode_libdir_flag_spec is actually meaningless, as there is
9407 # no search path for DLLs.
9408 hardcode_libdir_flag_spec=' '
9409 allow_undefined_flag=unsupported
9410 # Tell ltmain to make .lib files, not .a files.
9412 # Tell ltmain to make .dll files, not .so files.
9414 # FIXME: Setting linknames here is a bad hack.
9415 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416 # The linker will automatically build a .lib file if we build a DLL.
9417 old_archive_From_new_cmds='true'
9418 # FIXME: Should let the user specify the lib program.
9419 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420 fix_srcfile_path='`cygpath -w "$srcfile"`'
9421 enable_shared_with_static_runtimes=yes
9424 darwin* | rhapsody*)
9426 rhapsody* | darwin1.[012])
9427 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9433 case ${MACOSX_DEPLOYMENT_TARGET} in
9435 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9438 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9444 archive_cmds_need_lc=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 whole_archive_flag_spec=''
9449 link_all_deplibs=yes
9450 if test "$GCC" = yes ; then
9451 output_verbose_link_cmd='echo'
9452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455 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}'
9456 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}'
9458 case $cc_basename in
9460 output_verbose_link_cmd='echo'
9461 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464 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}'
9465 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}'
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_shlibpath_var=no
9484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485 # support. Future versions do this automatically, but an explicit c++rt0.o
9486 # does not break anything, and helps significantly (at the cost of a little
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490 hardcode_libdir_flag_spec='-R$libdir'
9492 hardcode_shlibpath_var=no
9495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
9503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504 freebsd* | kfreebsd*-gnu | dragonfly*)
9505 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506 hardcode_libdir_flag_spec='-R$libdir'
9508 hardcode_shlibpath_var=no
9512 if test "$GCC" = yes; then
9513 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'
9515 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'
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9521 # hardcode_minus_L: Not really in the search PATH,
9522 # but as the default location of the library.
9523 hardcode_minus_L=yes
9524 export_dynamic_flag_spec='${wl}-E'
9528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9547 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_flag_spec_ld='+b $libdir'
9552 hardcode_libdir_separator=:
9554 hardcode_shlibpath_var=no
9557 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_shlibpath_var=no
9561 # hardcode_minus_L: Not really in the search PATH,
9562 # but as the default location of the library.
9563 hardcode_minus_L=yes
9566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567 hardcode_libdir_separator=:
9569 export_dynamic_flag_spec='${wl}-E'
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9579 irix5* | irix6* | nonstopux*)
9580 if test "$GCC" = yes; then
9581 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'
9583 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'
9584 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588 link_all_deplibs=yes
9592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9595 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9597 hardcode_libdir_flag_spec='-R$libdir'
9599 hardcode_shlibpath_var=no
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 hardcode_shlibpath_var=no
9612 hardcode_shlibpath_var=no
9613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617 export_dynamic_flag_spec='${wl}-E'
9620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-R$libdir'
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_minus_L=yes
9635 allow_undefined_flag=unsupported
9636 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'
9637 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9641 if test "$GCC" = yes; then
9642 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9643 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'
9645 allow_undefined_flag=' -expect_unresolved \*'
9646 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'
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 hardcode_libdir_separator=:
9652 osf4* | osf5*) # as osf3* with the addition of -msym flag
9653 if test "$GCC" = yes; then
9654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655 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'
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658 allow_undefined_flag=' -expect_unresolved \*'
9659 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'
9660 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9661 $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'
9663 # Both c and cxx compiler support -rpath directly
9664 hardcode_libdir_flag_spec='-rpath $libdir'
9666 hardcode_libdir_separator=:
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_shlibpath_var=no
9672 export_dynamic_flag_spec='${wl}-Bexport'
9673 runpath_var=LD_RUN_PATH
9674 hardcode_runpath_var=yes
9678 no_undefined_flag=' -z text'
9679 if test "$GCC" = yes; then
9681 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_shlibpath_var=no
9693 solaris2.[0-5] | solaris2.[0-5].*) ;;
9695 # The compiler driver will combine linker options so we
9696 # cannot just pass the convience library names through
9697 # without $wl, iff we do not link with $LD.
9698 # Luckily, gcc supports the same syntax we need for Sun Studio.
9699 # Supported since Solaris 2.6 (maybe 2.5.1?)
9702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9704 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' ;;
9707 link_all_deplibs=yes
9711 if test "x$host_vendor" = xsequent; then
9712 # Use $CC to link under sequent, because it throws in some extra .o
9713 # files that make .init and .fini sections work.
9714 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_minus_L=yes
9721 hardcode_shlibpath_var=no
9725 case $host_vendor in
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_direct=yes # is this really true???
9731 ## LD is ld it makes a PLAMLIB
9732 ## CC just makes a GrossModule.
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734 reload_cmds='$CC -r -o $output$reload_objs'
9738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9742 runpath_var='LD_RUN_PATH'
9743 hardcode_shlibpath_var=no
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_shlibpath_var=no
9749 export_dynamic_flag_spec='-Bexport'
9753 if test -d /usr/nec; then
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_shlibpath_var=no
9756 runpath_var=LD_RUN_PATH
9757 hardcode_runpath_var=yes
9763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_shlibpath_var=no
9767 hardcode_runpath_var=yes
9768 runpath_var=LD_RUN_PATH
9771 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9772 no_undefined_flag='${wl}-z ${wl}text'
9773 if test "$GCC" = yes; then
9774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 runpath_var='LD_RUN_PATH'
9779 hardcode_shlibpath_var=no
9783 no_undefined_flag=' -z text'
9784 # $CC -shared without GNU ld will not create a library from C++
9785 # object files and a static libstdc++, better avoid it by now
9786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789 hardcode_libdir_flag_spec=
9790 hardcode_shlibpath_var=no
9791 runpath_var='LD_RUN_PATH'
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_shlibpath_var=no
9806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9807 echo "${ECHO_T}$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816 # Do we need to explicitly link libc?
9818 case "x$archive_cmds_need_lc" in
9820 # Assume -lc should be added
9821 archive_cmds_need_lc=yes
9823 if test "$enable_shared" = yes && test "$GCC" = yes; then
9824 case $archive_cmds in
9826 # FIXME: we may have to deal with multi-command sequences.
9829 # Test whether the compiler implicitly links with -lc since on some
9830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831 # to ld, don't add -lc before -lgcc.
9832 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } 2>conftest.err; then
9844 libobjs=conftest.$ac_objext
9846 wl=$lt_prog_compiler_wl
9852 lt_save_allow_undefined_flag=$allow_undefined_flag
9853 allow_undefined_flag=
9854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }
9860 archive_cmds_need_lc=no
9862 archive_cmds_need_lc=yes
9864 allow_undefined_flag=$lt_save_allow_undefined_flag
9866 cat conftest.err 1>&5
9869 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9880 libname_spec='lib$name'
9888 shlibpath_overrides_runpath=unknown
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895 # if the path contains ";" then we assume it to be the separator
9896 # otherwise default to the standard path separator (i.e. ":") - it is
9897 # assumed that no part of a normal pathname contains ";" but that should
9898 # okay in the real world where ";" in dirpaths is itself problematic.
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917 shlibpath_var=LIBPATH
9919 # AIX 3 has no versioning support, so we append a major version to the name.
9920 soname_spec='${libname}${release}${shared_ext}$major'
9927 hardcode_into_libs=yes
9928 if test "$host_cpu" = ia64; then
9929 # AIX 5 supports IA64
9930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931 shlibpath_var=LD_LIBRARY_PATH
9933 # With GCC up to 2.95.x, collect2 would create an import file
9934 # for dependence libraries. The import file would start with
9935 # the line `#! .'. This would cause the generated library to
9936 # depend on `.', always an invalid library. This was fixed in
9937 # development snapshots of GCC prior to 3.0.
9939 aix4 | aix4.[01] | aix4.[01].*)
9940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950 # soname into executable. Probably we can add versioning support to
9951 # collect2, so additional links can be useful in future.
9952 if test "$aix_use_runtimelinking" = yes; then
9953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954 # instead of lib<name>.a to let people know that these are not
9955 # typical AIX shared libraries.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 # We preserve .a as extension for shared libraries through AIX4.2
9959 # and later when we are not doing run time linking.
9960 library_names_spec='${libname}${release}.a $libname.a'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LIBPATH
9968 library_names_spec='$libname.ixlibrary $libname.a'
9969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970 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'
9974 library_names_spec='${libname}${shared_ext}'
9975 dynamic_linker="$host_os ld.so"
9976 shlibpath_var=LIBRARY_PATH
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988 # the default ld.so.conf also contains /usr/contrib/lib and
9989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990 # libtool to hard-code these into programs
9993 cygwin* | mingw* | pw32*)
9994 version_type=windows
9999 case $GCC,$host_os in
10000 yes,cygwin* | yes,mingw* | yes,pw32*)
10001 library_names_spec='$libname.dll.a'
10002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003 postinstall_cmds='base_file=`basename \${file}`~
10004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005 dldir=$destdir/`dirname \$dlpath`~
10006 test -d \$dldir || mkdir -p \$dldir~
10007 $install_prog $dir/$dlname \$dldir/$dlname~
10008 chmod a+x \$dldir/$dlname'
10009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010 dlpath=$dir/\$dldll~
10012 shlibpath_overrides_runpath=yes
10016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10021 # MinGW DLLs use traditional 'lib' prefix
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025 # It is most probably a Windows format PATH printed by
10026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027 # path with ; separators, and with drive letters. We can handle the
10028 # drive letters (cygwin fileutils understands them), so leave them,
10029 # especially as we might pass files found there to a mingw objdump,
10030 # which wouldn't understand a cygwinified path. Ahh.
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037 # pw32 DLLs use 'pw' prefix rather than 'lib'
10038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10047 dynamic_linker='Win32 ld.exe'
10048 # FIXME: first we should search . and the directory the executable is in
10052 darwin* | rhapsody*)
10053 dynamic_linker="$host_os dyld"
10054 version_type=darwin
10057 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058 soname_spec='${libname}${release}${major}$shared_ext'
10059 shlibpath_overrides_runpath=yes
10060 shlibpath_var=DYLD_LIBRARY_PATH
10061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063 if test "$GCC" = yes; then
10064 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"`
10066 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 dynamic_linker='GNU ld.so'
10096 freebsd* | dragonfly*)
10097 # DragonFly does not have aout. When/if they implement a new
10098 # versioning mechanism, adjust this.
10099 if test -x /usr/bin/objformat; then
10100 objformat=`/usr/bin/objformat`
10103 freebsd[123]*) objformat=aout ;;
10104 *) objformat=elf ;;
10107 version_type=freebsd-$objformat
10108 case $version_type in
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10119 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10124 freebsd3.[01]* | freebsdelf3.[01]*)
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10129 shlibpath_overrides_runpath=no
10130 hardcode_into_libs=yes
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 hardcode_into_libs=yes
10145 hpux9* | hpux10* | hpux11*)
10146 # Give a soname corresponding to the major version so that dld.sl refuses to
10147 # link against other versions.
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.so"
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 if test "X$HPUX_IA64_MODE" = X32; then
10161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10169 hardcode_into_libs=yes
10170 dynamic_linker="$host_os dld.sl"
10171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180 dynamic_linker="$host_os dld.sl"
10181 shlibpath_var=SHLIB_PATH
10182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10187 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188 postinstall_cmds='chmod 555 $lib'
10191 irix5* | irix6* | nonstopux*)
10193 nonstopux*) version_type=nonstopux ;;
10195 if test "$lt_cv_prog_gnu_ld" = yes; then
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10206 irix5* | nonstopux*)
10207 libsuff= shlibsuff=
10210 case $LD in # libtool.m4 will add one of these switches to LD
10211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212 libsuff= shlibsuff= libmagic=32-bit;;
10213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214 libsuff=32 shlibsuff=N32 libmagic=N32;;
10215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217 *) libsuff= shlibsuff= libmagic=never-match;;
10221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222 shlibpath_overrides_runpath=no
10223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225 hardcode_into_libs=yes
10228 # No shared lib support for Linux oldld, aout, or coff.
10229 linux*oldld* | linux*aout* | linux*coff*)
10233 # This must be Linux ELF.
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=no
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10248 # Append ld.so.conf contents to the search path
10249 if test -f /etc/ld.so.conf; then
10250 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' ' '`
10251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10254 # We used to test for /lib/ld.so.1 and disable shared libraries on
10255 # powerpc, because MkLinux only supported shared libraries with the
10256 # GNU dynamic linker. Since this was broken with cross compilers,
10257 # most powerpc-linux boxes support dynamic linking these days and
10258 # people can always --disable-shared, the test was removed, and we
10259 # assume the GNU/Linux dynamic linker is in use.
10260 dynamic_linker='GNU/Linux ld.so'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10271 hardcode_into_libs=yes
10272 dynamic_linker='GNU ld.so'
10279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 dynamic_linker='NetBSD (a.out) ld.so'
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 dynamic_linker='NetBSD ld.elf_so'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10327 shlibpath_overrides_runpath=yes
10331 shlibpath_overrides_runpath=yes
10336 libname_spec='$name'
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10344 osf3* | osf4* | osf5*)
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10371 # ldd complains unless libraries are executable
10372 postinstall_cmds='chmod +x $lib'
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 if test "$with_gnu_ld" = yes; then
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 case $host_vendor in
10394 shlibpath_overrides_runpath=no
10396 export_dynamic_flag_spec='${wl}-Blargedynsym'
10397 runpath_var=LD_RUN_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 if test -d /usr/nec ;then
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10432 echo "${ECHO_T}$dynamic_linker" >&6; }
10433 test "$dynamic_linker" = no && can_build_shared=no
10435 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10438 if test -n "$hardcode_libdir_flag_spec" || \
10439 test -n "$runpath_var" || \
10440 test "X$hardcode_automatic" = "Xyes" ; then
10442 # We can hardcode non-existant directories.
10443 if test "$hardcode_direct" != no &&
10444 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10445 # have to relink, otherwise we might link with an installed library
10446 # when we should be linking with a yet-to-be-installed one
10447 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10448 test "$hardcode_minus_L" != no; then
10449 # Linking always hardcodes the temporary library directory.
10450 hardcode_action=relink
10452 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10453 hardcode_action=immediate
10456 # We cannot hardcode anything, or else we can only hardcode existing
10458 hardcode_action=unsupported
10460 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10461 echo "${ECHO_T}$hardcode_action" >&6; }
10463 if test "$hardcode_action" = relink; then
10464 # Fast installation is not supported
10465 enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467 test "$enable_shared" = no; then
10468 # Fast installation is not necessary
10469 enable_fast_install=needless
10474 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479 { echo "$as_me:$LINENO: result: yes" >&5
10480 echo "${ECHO_T}yes" >&6; }
10482 # FIXME - insert some real tests, host_os isn't really good enough
10485 if test -n "$STRIP" ; then
10486 striplib="$STRIP -x"
10487 { echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6; }
10490 { echo "$as_me:$LINENO: result: no" >&5
10491 echo "${ECHO_T}no" >&6; }
10495 { echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6; }
10501 if test "x$enable_dlopen" != xyes; then
10502 enable_dlopen=unknown
10503 enable_dlopen_self=unknown
10504 enable_dlopen_self_static=unknown
10511 lt_cv_dlopen="load_add_on"
10513 lt_cv_dlopen_self=yes
10517 lt_cv_dlopen="LoadLibrary"
10522 lt_cv_dlopen="dlopen"
10527 # if libdl is installed we need to link against it
10528 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10566 grep -v '^ *+' conftest.er1 >conftest.err
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 ac_cv_lib_dl_dlopen=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_lib_dl_dlopen=no
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10593 lt_cv_dlopen="dyld"
10595 lt_cv_dlopen_self=yes
10602 { echo "$as_me:$LINENO: checking for shl_load" >&5
10603 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10604 if test "${ac_cv_func_shl_load+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10615 #define shl_load innocuous_shl_load
10617 /* System header to define __stub macros and hopefully few prototypes,
10618 which can conflict with char shl_load (); below.
10619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620 <limits.h> exists even on freestanding compilers. */
10623 # include <limits.h>
10625 # include <assert.h>
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10637 /* The GNU C library defines this for functions which it implements
10638 to always fail with ENOSYS. Some functions are actually named
10639 something starting with __ and the normal name is an alias. */
10640 #if defined __stub_shl_load || defined __stub___shl_load
10647 return shl_load ();
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_link") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext &&
10669 $as_test_x conftest$ac_exeext; then
10670 ac_cv_func_shl_load=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_func_shl_load=no
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10683 if test $ac_cv_func_shl_load = yes; then
10684 lt_cv_dlopen="shl_load"
10686 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10687 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_check_lib_save_LIBS=$LIBS
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10710 return shl_load ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10733 ac_cv_lib_dld_shl_load=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_lib_dld_shl_load=no
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10750 { echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763 #define dlopen innocuous_dlopen
10765 /* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char dlopen (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10771 # include <limits.h>
10773 # include <assert.h>
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10785 /* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788 #if defined __stub_dlopen || defined __stub___dlopen
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 ac_cv_func_dlopen=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_func_dlopen=no
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10831 if test $ac_cv_func_dlopen = yes; then
10832 lt_cv_dlopen="dlopen"
10834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_check_lib_save_LIBS=$LIBS
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest$ac_exeext &&
10880 $as_test_x conftest$ac_exeext; then
10881 ac_cv_lib_dl_dlopen=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_svld_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_lib_svld_dlopen=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10959 if test $ac_cv_lib_svld_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10962 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS=$LIBS
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10986 return dld_link ();
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext &&
11008 $as_test_x conftest$ac_exeext; then
11009 ac_cv_lib_dld_dld_link=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_cv_lib_dld_dld_link=no
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11023 if test $ac_cv_lib_dld_dld_link = yes; then
11024 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11045 if test "x$lt_cv_dlopen" != xno; then
11051 case $lt_cv_dlopen in
11053 save_CPPFLAGS="$CPPFLAGS"
11054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056 save_LDFLAGS="$LDFLAGS"
11057 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11060 LIBS="$lt_cv_dlopen_libs $LIBS"
11062 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11064 if test "${lt_cv_dlopen_self+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 if test "$cross_compiling" = yes; then :
11068 lt_cv_dlopen_self=cross
11070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11071 lt_status=$lt_dlunknown
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11083 # define LT_DLGLOBAL RTLD_GLOBAL
11086 # define LT_DLGLOBAL DL_GLOBAL
11088 # define LT_DLGLOBAL 0
11092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11093 find out it does not work in some platform. */
11094 #ifndef LT_DLLAZY_OR_NOW
11096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11099 # define LT_DLLAZY_OR_NOW DL_LAZY
11102 # define LT_DLLAZY_OR_NOW RTLD_NOW
11105 # define LT_DLLAZY_OR_NOW DL_NOW
11107 # define LT_DLLAZY_OR_NOW 0
11115 extern "C" void exit (int);
11118 void fnord() { int i=42;}
11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11122 int status = $lt_dlunknown;
11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128 /* dlclose (self); */
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139 (./conftest; exit; ) >&5 2>/dev/null
11141 case x$lt_status in
11142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11147 # compilation failed
11148 lt_cv_dlopen_self=no
11155 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11158 if test "x$lt_cv_dlopen_self" = xyes; then
11159 LDFLAGS="$LDFLAGS $link_static_flag"
11160 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 if test "$cross_compiling" = yes; then :
11166 lt_cv_dlopen_self_static=cross
11168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169 lt_status=$lt_dlunknown
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11181 # define LT_DLGLOBAL RTLD_GLOBAL
11184 # define LT_DLGLOBAL DL_GLOBAL
11186 # define LT_DLGLOBAL 0
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191 find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11197 # define LT_DLLAZY_OR_NOW DL_LAZY
11200 # define LT_DLLAZY_OR_NOW RTLD_NOW
11203 # define LT_DLLAZY_OR_NOW DL_NOW
11205 # define LT_DLLAZY_OR_NOW 0
11213 extern "C" void exit (int);
11216 void fnord() { int i=42;}
11219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220 int status = $lt_dlunknown;
11224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226 /* dlclose (self); */
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11237 (./conftest; exit; ) >&5 2>/dev/null
11239 case x$lt_status in
11240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11242 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11245 # compilation failed
11246 lt_cv_dlopen_self_static=no
11253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11254 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11257 CPPFLAGS="$save_CPPFLAGS"
11258 LDFLAGS="$save_LDFLAGS"
11263 case $lt_cv_dlopen_self in
11264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11265 *) enable_dlopen_self=unknown ;;
11268 case $lt_cv_dlopen_self_static in
11269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11270 *) enable_dlopen_self_static=unknown ;;
11275 # Report which librarie types wil actually be built
11276 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11277 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11278 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11279 echo "${ECHO_T}$can_build_shared" >&6; }
11281 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11282 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11283 test "$can_build_shared" = "no" && enable_shared=no
11285 # On AIX, shared libraries and static libraries use the same namespace, and
11286 # are all built from PIC.
11289 test "$enable_shared" = yes && enable_static=no
11290 if test -n "$RANLIB"; then
11291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11292 postinstall_cmds='$RANLIB $lib'
11297 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11298 test "$enable_shared" = yes && enable_static=no
11302 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11303 echo "${ECHO_T}$enable_shared" >&6; }
11305 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11306 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11307 # Make sure either enable_shared or enable_static is yes.
11308 test "$enable_shared" = yes || enable_static=yes
11309 { echo "$as_me:$LINENO: result: $enable_static" >&5
11310 echo "${ECHO_T}$enable_static" >&6; }
11312 # The else clause should only fire when bootstrapping the
11313 # libtool distribution, otherwise you forgot to ship ltmain.sh
11314 # with your package, and you will get complaints that there are
11315 # no rules to generate ltmain.sh.
11316 if test -f "$ltmain"; then
11317 # See if we are running on zsh, and set the options which allow our commands through
11318 # without removal of \ escapes.
11319 if test -n "${ZSH_VERSION+set}" ; then
11320 setopt NO_GLOB_SUBST
11322 # Now quote all the things that may contain metacharacters while being
11323 # careful not to overquote the AC_SUBSTed values. We take copies of the
11324 # variables and quote the copies for generation of the libtool script.
11325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11329 deplibs_check_method reload_flag reload_cmds need_locks \
11330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11331 lt_cv_sys_global_symbol_to_c_name_address \
11332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11333 old_postinstall_cmds old_postuninstall_cmds \
11337 lt_prog_compiler_wl \
11338 lt_prog_compiler_pic \
11339 lt_prog_compiler_static \
11340 lt_prog_compiler_no_builtin_flag \
11341 export_dynamic_flag_spec \
11342 thread_safe_flag_spec \
11343 whole_archive_flag_spec \
11344 enable_shared_with_static_runtimes \
11346 old_archive_from_new_cmds \
11351 compiler_lib_search_path \
11353 archive_expsym_cmds \
11355 postuninstall_cmds \
11356 old_archive_from_expsyms_cmds \
11357 allow_undefined_flag \
11358 no_undefined_flag \
11359 export_symbols_cmds \
11360 hardcode_libdir_flag_spec \
11361 hardcode_libdir_flag_spec_ld \
11362 hardcode_libdir_separator \
11363 hardcode_automatic \
11365 module_expsym_cmds \
11366 lt_cv_prog_compiler_c_o \
11368 include_expsyms; do
11371 old_archive_cmds | \
11372 old_archive_from_new_cmds | \
11374 archive_expsym_cmds | \
11376 module_expsym_cmds | \
11377 old_archive_from_expsyms_cmds | \
11378 export_symbols_cmds | \
11379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11380 postinstall_cmds | postuninstall_cmds | \
11381 old_postinstall_cmds | old_postuninstall_cmds | \
11382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11383 # Double-quote double-evaled strings.
11384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11393 *'\$0 --fallback-echo"')
11394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11398 cfgfile="${ofile}T"
11399 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11401 { echo "$as_me:$LINENO: creating $ofile" >&5
11402 echo "$as_me: creating $ofile" >&6;}
11404 cat <<__EOF__ >> "$cfgfile"
11407 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11412 # Free Software Foundation, Inc.
11414 # This file is part of GNU Libtool:
11415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11417 # This program is free software; you can redistribute it and/or modify
11418 # it under the terms of the GNU General Public License as published by
11419 # the Free Software Foundation; either version 2 of the License, or
11420 # (at your option) any later version.
11422 # This program is distributed in the hope that it will be useful, but
11423 # WITHOUT ANY WARRANTY; without even the implied warranty of
11424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11425 # General Public License for more details.
11427 # You should have received a copy of the GNU General Public License
11428 # along with this program; if not, write to the Free Software
11429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11431 # As a special exception to the GNU General Public License, if you
11432 # distribute this file as part of a program that contains a
11433 # configuration script generated by Autoconf, you may include it under
11434 # the same distribution terms that you use for the rest of that program.
11436 # A sed program that does not truncate output.
11439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11440 Xsed="$SED -e 1s/^X//"
11442 # The HP-UX ksh and POSIX shell print the target directory to stdout
11443 # if CDPATH is set.
11444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11446 # The names of the tagged configurations supported by this script.
11449 # ### BEGIN LIBTOOL CONFIG
11451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11453 # Shell to use when invoking shell scripts.
11456 # Whether or not to build shared libraries.
11457 build_libtool_libs=$enable_shared
11459 # Whether or not to build static libraries.
11460 build_old_libs=$enable_static
11462 # Whether or not to add -lc for building shared libraries.
11463 build_libtool_need_lc=$archive_cmds_need_lc
11465 # Whether or not to disallow shared libs when runtime libs are static
11466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11468 # Whether or not to optimize for fast installation.
11469 fast_install=$enable_fast_install
11472 host_alias=$host_alias
11476 # The build system.
11477 build_alias=$build_alias
11481 # An echo program that does not interpret backslashes.
11486 AR_FLAGS=$lt_AR_FLAGS
11491 # A language-specific compiler.
11494 # Is the compiler the GNU C compiler?
11500 # The linker used to build libraries.
11503 # Whether we need hard or soft links.
11506 # A BSD-compatible nm program.
11509 # A symbol stripping program
11512 # Used to examine libraries when file_magic_cmd begins "file"
11513 MAGIC_CMD=$MAGIC_CMD
11515 # Used on cygwin: DLL creation program.
11518 # Used on cygwin: object dumper.
11521 # Used on cygwin: assembler.
11524 # The name of the directory that contains temporary libtool files.
11527 # How to create reloadable object files.
11528 reload_flag=$lt_reload_flag
11529 reload_cmds=$lt_reload_cmds
11531 # How to pass a linker flag through the compiler.
11532 wl=$lt_lt_prog_compiler_wl
11534 # Object file suffix (normally "o").
11535 objext="$ac_objext"
11537 # Old archive suffix (normally "a").
11540 # Shared library suffix (normally ".so").
11541 shrext_cmds='$shrext_cmds'
11543 # Executable file suffix (normally "").
11546 # Additional compiler flags for building library objects.
11547 pic_flag=$lt_lt_prog_compiler_pic
11550 # What is the maximum length of a command?
11551 max_cmd_len=$lt_cv_sys_max_cmd_len
11553 # Does compiler simultaneously support -c and -o options?
11554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11556 # Must we lock files when doing compilation?
11557 need_locks=$lt_need_locks
11559 # Do we need the lib prefix for modules?
11560 need_lib_prefix=$need_lib_prefix
11562 # Do we need a version for libraries?
11563 need_version=$need_version
11565 # Whether dlopen is supported.
11566 dlopen_support=$enable_dlopen
11568 # Whether dlopen of programs is supported.
11569 dlopen_self=$enable_dlopen_self
11571 # Whether dlopen of statically linked programs is supported.
11572 dlopen_self_static=$enable_dlopen_self_static
11574 # Compiler flag to prevent dynamic linking.
11575 link_static_flag=$lt_lt_prog_compiler_static
11577 # Compiler flag to turn off builtin functions.
11578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11580 # Compiler flag to allow reflexive dlopens.
11581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11583 # Compiler flag to generate shared objects directly from archives.
11584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11586 # Compiler flag to generate thread-safe objects.
11587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11589 # Library versioning type.
11590 version_type=$version_type
11592 # Format of library name prefix.
11593 libname_spec=$lt_libname_spec
11595 # List of archive names. First name is the real one, the rest are links.
11596 # The last name is the one that the linker finds with -lNAME.
11597 library_names_spec=$lt_library_names_spec
11599 # The coded name of the library, if different from the real name.
11600 soname_spec=$lt_soname_spec
11602 # Commands used to build and install an old-style archive.
11604 old_archive_cmds=$lt_old_archive_cmds
11605 old_postinstall_cmds=$lt_old_postinstall_cmds
11606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11608 # Create an old-style archive from a shared archive.
11609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11611 # Create a temporary old-style archive to link instead of a shared archive.
11612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11614 # Commands used to build and install a shared archive.
11615 archive_cmds=$lt_archive_cmds
11616 archive_expsym_cmds=$lt_archive_expsym_cmds
11617 postinstall_cmds=$lt_postinstall_cmds
11618 postuninstall_cmds=$lt_postuninstall_cmds
11620 # Commands used to build a loadable module (assumed same as above if empty)
11621 module_cmds=$lt_module_cmds
11622 module_expsym_cmds=$lt_module_expsym_cmds
11624 # Commands to strip libraries.
11625 old_striplib=$lt_old_striplib
11626 striplib=$lt_striplib
11628 # Dependencies to place before the objects being linked to create a
11630 predep_objects=$lt_predep_objects
11632 # Dependencies to place after the objects being linked to create a
11634 postdep_objects=$lt_postdep_objects
11636 # Dependencies to place before the objects being linked to create a
11638 predeps=$lt_predeps
11640 # Dependencies to place after the objects being linked to create a
11642 postdeps=$lt_postdeps
11644 # The library search path used internally by the compiler when linking
11645 # a shared library.
11646 compiler_lib_search_path=$lt_compiler_lib_search_path
11648 # Method to check whether dependent libraries are shared objects.
11649 deplibs_check_method=$lt_deplibs_check_method
11651 # Command to use when deplibs_check_method == file_magic.
11652 file_magic_cmd=$lt_file_magic_cmd
11654 # Flag that allows shared libraries with undefined symbols to be built.
11655 allow_undefined_flag=$lt_allow_undefined_flag
11657 # Flag that forces no undefined symbols.
11658 no_undefined_flag=$lt_no_undefined_flag
11660 # Commands used to finish a libtool library installation in a directory.
11661 finish_cmds=$lt_finish_cmds
11663 # Same as above, but a single script fragment to be evaled but not shown.
11664 finish_eval=$lt_finish_eval
11666 # Take the output of nm and produce a listing of raw symbols and C names.
11667 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11669 # Transform the output of nm in a proper C declaration
11670 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11672 # Transform the output of nm in a C name address pair
11673 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11675 # This is the shared library runtime path variable.
11676 runpath_var=$runpath_var
11678 # This is the shared library path variable.
11679 shlibpath_var=$shlibpath_var
11681 # Is shlibpath searched before the hard-coded library search path?
11682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11684 # How to hardcode a shared library path into an executable.
11685 hardcode_action=$hardcode_action
11687 # Whether we should hardcode library paths into libraries.
11688 hardcode_into_libs=$hardcode_into_libs
11690 # Flag to hardcode \$libdir into a binary during linking.
11691 # This must work even if \$libdir does not exist.
11692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11694 # If ld is used when linking, flag to hardcode \$libdir into
11695 # a binary during linking. This must work even if \$libdir does
11697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11699 # Whether we need a single -rpath flag with a separated argument.
11700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11702 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_direct=$hardcode_direct
11706 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_minus_L=$hardcode_minus_L
11710 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711 # the resulting binary.
11712 hardcode_shlibpath_var=$hardcode_shlibpath_var
11714 # Set to yes if building a shared library automatically hardcodes DIR into the library
11715 # and all subsequent libraries and executables linked against it.
11716 hardcode_automatic=$hardcode_automatic
11718 # Variables whose values should be saved in libtool wrapper scripts and
11719 # restored at relink time.
11720 variables_saved_for_relink="$variables_saved_for_relink"
11722 # Whether libtool must link a program against all its dependency libraries.
11723 link_all_deplibs=$link_all_deplibs
11725 # Compile-time system search path for libraries
11726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11728 # Run-time system search path for libraries
11729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11731 # Fix the shell variable \$srcfile for the compiler.
11732 fix_srcfile_path="$fix_srcfile_path"
11734 # Set to yes if exported symbols are required.
11735 always_export_symbols=$always_export_symbols
11737 # The commands to list exported symbols.
11738 export_symbols_cmds=$lt_export_symbols_cmds
11740 # The commands to extract the exported symbol list from a shared archive.
11741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11743 # Symbols that should not be listed in the preloaded symbols.
11744 exclude_expsyms=$lt_exclude_expsyms
11746 # Symbols that must always be exported.
11747 include_expsyms=$lt_include_expsyms
11749 # ### END LIBTOOL CONFIG
11756 cat <<\EOF >> "$cfgfile"
11758 # AIX sometimes has problems with the GCC collect2 program. For some
11759 # reason, if we set the COLLECT_NAMES environment variable, the problems
11760 # vanish in a puff of smoke.
11761 if test "X${COLLECT_NAMES+set}" != Xset; then
11763 export COLLECT_NAMES
11769 # We use sed instead of cat because bash on DJGPP gets confused if
11770 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11771 # text mode, it properly converts lines to CR/LF. This bash problem
11772 # is reportedly fixed, but why not run on old versions too?
11773 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11775 mv -f "$cfgfile" "$ofile" || \
11776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11780 # If there is no Makefile yet, we rely on a make rule to execute
11781 # `config.status --recheck' to rerun these tests and create the
11782 # libtool script then.
11783 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784 if test -f "$ltmain_in"; then
11785 test -f Makefile && make "$ltmain"
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799 # Check whether --with-tags was given.
11800 if test "${with_tags+set}" = set; then
11801 withval=$with_tags; tagnames="$withval"
11805 if test -f "$ltmain" && test -n "$tagnames"; then
11806 if test ! -f "${ofile}"; then
11807 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11811 if test -z "$LTCC"; then
11812 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813 if test -z "$LTCC"; then
11814 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11822 # Extract list of available tagged configurations in $ofile.
11823 # Note that this assumes the entire list is on one line.
11824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11827 for tagname in $tagnames; do
11829 # Check whether tagname contains only valid characters
11830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11832 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11834 { (exit 1); exit 1; }; }
11838 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11840 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11842 { (exit 1); exit 1; }; }
11845 # Update the list of available tags.
11846 if test -n "$tagname"; then
11847 echo appending configuration tag \"$tagname\" to $ofile
11851 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11852 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11853 (test "X$CXX" != "Xg++"))) ; then
11861 if test -n "$F77" && test "X$F77" != "Xno"; then
11869 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11879 # Source file extension for RC test sources.
11882 # Object file extension for compiled RC test sources.
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code="$lt_simple_compile_test_code"
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11894 # If no C compiler was specified, use CC.
11897 # Allow CC to be a program name with arguments.
11901 # save warnings/boilerplate of simple test code
11902 ac_outfile=conftest.$ac_objext
11903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11905 _lt_compiler_boilerplate=`cat conftest.err`
11908 ac_outfile=conftest.$ac_objext
11909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11911 _lt_linker_boilerplate=`cat conftest.err`
11915 # Allow CC to be a program name with arguments.
11920 for cc_temp in $compiler""; do
11922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11930 lt_cv_prog_compiler_c_o_RC=yes
11932 # The else clause should only fire when bootstrapping the
11933 # libtool distribution, otherwise you forgot to ship ltmain.sh
11934 # with your package, and you will get complaints that there are
11935 # no rules to generate ltmain.sh.
11936 if test -f "$ltmain"; then
11937 # See if we are running on zsh, and set the options which allow our commands through
11938 # without removal of \ escapes.
11939 if test -n "${ZSH_VERSION+set}" ; then
11940 setopt NO_GLOB_SUBST
11942 # Now quote all the things that may contain metacharacters while being
11943 # careful not to overquote the AC_SUBSTed values. We take copies of the
11944 # variables and quote the copies for generation of the libtool script.
11945 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11947 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949 deplibs_check_method reload_flag reload_cmds need_locks \
11950 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951 lt_cv_sys_global_symbol_to_c_name_address \
11952 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953 old_postinstall_cmds old_postuninstall_cmds \
11957 lt_prog_compiler_wl_RC \
11958 lt_prog_compiler_pic_RC \
11959 lt_prog_compiler_static_RC \
11960 lt_prog_compiler_no_builtin_flag_RC \
11961 export_dynamic_flag_spec_RC \
11962 thread_safe_flag_spec_RC \
11963 whole_archive_flag_spec_RC \
11964 enable_shared_with_static_runtimes_RC \
11965 old_archive_cmds_RC \
11966 old_archive_from_new_cmds_RC \
11967 predep_objects_RC \
11968 postdep_objects_RC \
11971 compiler_lib_search_path_RC \
11973 archive_expsym_cmds_RC \
11974 postinstall_cmds_RC \
11975 postuninstall_cmds_RC \
11976 old_archive_from_expsyms_cmds_RC \
11977 allow_undefined_flag_RC \
11978 no_undefined_flag_RC \
11979 export_symbols_cmds_RC \
11980 hardcode_libdir_flag_spec_RC \
11981 hardcode_libdir_flag_spec_ld_RC \
11982 hardcode_libdir_separator_RC \
11983 hardcode_automatic_RC \
11985 module_expsym_cmds_RC \
11986 lt_cv_prog_compiler_c_o_RC \
11987 exclude_expsyms_RC \
11988 include_expsyms_RC; do
11991 old_archive_cmds_RC | \
11992 old_archive_from_new_cmds_RC | \
11993 archive_cmds_RC | \
11994 archive_expsym_cmds_RC | \
11996 module_expsym_cmds_RC | \
11997 old_archive_from_expsyms_cmds_RC | \
11998 export_symbols_cmds_RC | \
11999 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000 postinstall_cmds | postuninstall_cmds | \
12001 old_postinstall_cmds | old_postuninstall_cmds | \
12002 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003 # Double-quote double-evaled strings.
12004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12007 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12013 *'\$0 --fallback-echo"')
12014 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12020 cat <<__EOF__ >> "$cfgfile"
12021 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12023 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12025 # Shell to use when invoking shell scripts.
12028 # Whether or not to build shared libraries.
12029 build_libtool_libs=$enable_shared
12031 # Whether or not to build static libraries.
12032 build_old_libs=$enable_static
12034 # Whether or not to add -lc for building shared libraries.
12035 build_libtool_need_lc=$archive_cmds_need_lc_RC
12037 # Whether or not to disallow shared libs when runtime libs are static
12038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12040 # Whether or not to optimize for fast installation.
12041 fast_install=$enable_fast_install
12044 host_alias=$host_alias
12048 # The build system.
12049 build_alias=$build_alias
12053 # An echo program that does not interpret backslashes.
12058 AR_FLAGS=$lt_AR_FLAGS
12063 # A language-specific compiler.
12066 # Is the compiler the GNU C compiler?
12072 # The linker used to build libraries.
12075 # Whether we need hard or soft links.
12078 # A BSD-compatible nm program.
12081 # A symbol stripping program
12084 # Used to examine libraries when file_magic_cmd begins "file"
12085 MAGIC_CMD=$MAGIC_CMD
12087 # Used on cygwin: DLL creation program.
12090 # Used on cygwin: object dumper.
12093 # Used on cygwin: assembler.
12096 # The name of the directory that contains temporary libtool files.
12099 # How to create reloadable object files.
12100 reload_flag=$lt_reload_flag
12101 reload_cmds=$lt_reload_cmds
12103 # How to pass a linker flag through the compiler.
12104 wl=$lt_lt_prog_compiler_wl_RC
12106 # Object file suffix (normally "o").
12107 objext="$ac_objext"
12109 # Old archive suffix (normally "a").
12112 # Shared library suffix (normally ".so").
12113 shrext_cmds='$shrext_cmds'
12115 # Executable file suffix (normally "").
12118 # Additional compiler flags for building library objects.
12119 pic_flag=$lt_lt_prog_compiler_pic_RC
12122 # What is the maximum length of a command?
12123 max_cmd_len=$lt_cv_sys_max_cmd_len
12125 # Does compiler simultaneously support -c and -o options?
12126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12128 # Must we lock files when doing compilation?
12129 need_locks=$lt_need_locks
12131 # Do we need the lib prefix for modules?
12132 need_lib_prefix=$need_lib_prefix
12134 # Do we need a version for libraries?
12135 need_version=$need_version
12137 # Whether dlopen is supported.
12138 dlopen_support=$enable_dlopen
12140 # Whether dlopen of programs is supported.
12141 dlopen_self=$enable_dlopen_self
12143 # Whether dlopen of statically linked programs is supported.
12144 dlopen_self_static=$enable_dlopen_self_static
12146 # Compiler flag to prevent dynamic linking.
12147 link_static_flag=$lt_lt_prog_compiler_static_RC
12149 # Compiler flag to turn off builtin functions.
12150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12152 # Compiler flag to allow reflexive dlopens.
12153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12155 # Compiler flag to generate shared objects directly from archives.
12156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12158 # Compiler flag to generate thread-safe objects.
12159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12161 # Library versioning type.
12162 version_type=$version_type
12164 # Format of library name prefix.
12165 libname_spec=$lt_libname_spec
12167 # List of archive names. First name is the real one, the rest are links.
12168 # The last name is the one that the linker finds with -lNAME.
12169 library_names_spec=$lt_library_names_spec
12171 # The coded name of the library, if different from the real name.
12172 soname_spec=$lt_soname_spec
12174 # Commands used to build and install an old-style archive.
12176 old_archive_cmds=$lt_old_archive_cmds_RC
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12180 # Create an old-style archive from a shared archive.
12181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12183 # Create a temporary old-style archive to link instead of a shared archive.
12184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12186 # Commands used to build and install a shared archive.
12187 archive_cmds=$lt_archive_cmds_RC
12188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12189 postinstall_cmds=$lt_postinstall_cmds
12190 postuninstall_cmds=$lt_postuninstall_cmds
12192 # Commands used to build a loadable module (assumed same as above if empty)
12193 module_cmds=$lt_module_cmds_RC
12194 module_expsym_cmds=$lt_module_expsym_cmds_RC
12196 # Commands to strip libraries.
12197 old_striplib=$lt_old_striplib
12198 striplib=$lt_striplib
12200 # Dependencies to place before the objects being linked to create a
12202 predep_objects=$lt_predep_objects_RC
12204 # Dependencies to place after the objects being linked to create a
12206 postdep_objects=$lt_postdep_objects_RC
12208 # Dependencies to place before the objects being linked to create a
12210 predeps=$lt_predeps_RC
12212 # Dependencies to place after the objects being linked to create a
12214 postdeps=$lt_postdeps_RC
12216 # The library search path used internally by the compiler when linking
12217 # a shared library.
12218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12220 # Method to check whether dependent libraries are shared objects.
12221 deplibs_check_method=$lt_deplibs_check_method
12223 # Command to use when deplibs_check_method == file_magic.
12224 file_magic_cmd=$lt_file_magic_cmd
12226 # Flag that allows shared libraries with undefined symbols to be built.
12227 allow_undefined_flag=$lt_allow_undefined_flag_RC
12229 # Flag that forces no undefined symbols.
12230 no_undefined_flag=$lt_no_undefined_flag_RC
12232 # Commands used to finish a libtool library installation in a directory.
12233 finish_cmds=$lt_finish_cmds
12235 # Same as above, but a single script fragment to be evaled but not shown.
12236 finish_eval=$lt_finish_eval
12238 # Take the output of nm and produce a listing of raw symbols and C names.
12239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12241 # Transform the output of nm in a proper C declaration
12242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12244 # Transform the output of nm in a C name address pair
12245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12247 # This is the shared library runtime path variable.
12248 runpath_var=$runpath_var
12250 # This is the shared library path variable.
12251 shlibpath_var=$shlibpath_var
12253 # Is shlibpath searched before the hard-coded library search path?
12254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12256 # How to hardcode a shared library path into an executable.
12257 hardcode_action=$hardcode_action_RC
12259 # Whether we should hardcode library paths into libraries.
12260 hardcode_into_libs=$hardcode_into_libs
12262 # Flag to hardcode \$libdir into a binary during linking.
12263 # This must work even if \$libdir does not exist.
12264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12266 # If ld is used when linking, flag to hardcode \$libdir into
12267 # a binary during linking. This must work even if \$libdir does
12269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12271 # Whether we need a single -rpath flag with a separated argument.
12272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_direct=$hardcode_direct_RC
12278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_minus_L=$hardcode_minus_L_RC
12282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283 # the resulting binary.
12284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12286 # Set to yes if building a shared library automatically hardcodes DIR into the library
12287 # and all subsequent libraries and executables linked against it.
12288 hardcode_automatic=$hardcode_automatic_RC
12290 # Variables whose values should be saved in libtool wrapper scripts and
12291 # restored at relink time.
12292 variables_saved_for_relink="$variables_saved_for_relink"
12294 # Whether libtool must link a program against all its dependency libraries.
12295 link_all_deplibs=$link_all_deplibs_RC
12297 # Compile-time system search path for libraries
12298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12300 # Run-time system search path for libraries
12301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12303 # Fix the shell variable \$srcfile for the compiler.
12304 fix_srcfile_path="$fix_srcfile_path_RC"
12306 # Set to yes if exported symbols are required.
12307 always_export_symbols=$always_export_symbols_RC
12309 # The commands to list exported symbols.
12310 export_symbols_cmds=$lt_export_symbols_cmds_RC
12312 # The commands to extract the exported symbol list from a shared archive.
12313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12315 # Symbols that should not be listed in the preloaded symbols.
12316 exclude_expsyms=$lt_exclude_expsyms_RC
12318 # Symbols that must always be exported.
12319 include_expsyms=$lt_include_expsyms_RC
12321 # ### END LIBTOOL TAG CONFIG: $tagname
12327 # If there is no Makefile yet, we rely on a make rule to execute
12328 # `config.status --recheck' to rerun these tests and create the
12329 # libtool script then.
12330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331 if test -f "$ltmain_in"; then
12332 test -f Makefile && make "$ltmain"
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12348 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12349 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12350 { (exit 1); exit 1; }; }
12354 # Append the new tag name to the list of available tags.
12355 if test -n "$tagname" ; then
12356 available_tags="$available_tags $tagname"
12362 # Now substitute the updated list of available tags.
12363 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12364 mv "${ofile}T" "$ofile"
12368 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12369 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12370 { (exit 1); exit 1; }; }
12376 # This can be used to rebuild libtool when needed
12377 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12379 # Always use our own libtool.
12380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12382 # Prevent multiple expansion
12394 if test $ol_enable_perl != no ; then
12395 # Extract the first word of "perl", so it can be a program name with args.
12396 set dummy perl; ac_word=$2
12397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12399 if test "${ac_cv_path_PERLBIN+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12426 PERLBIN=$ac_cv_path_PERLBIN
12427 if test -n "$PERLBIN"; then
12428 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12429 echo "${ECHO_T}$PERLBIN" >&6; }
12431 { echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6; }
12437 if test "no$PERLBIN" = "no" ; then
12438 if test $ol_enable_perl = yes ; then
12439 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12440 echo "$as_me: error: could not locate perl" >&2;}
12441 { (exit 1); exit 1; }; }
12445 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12446 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12448 if test x"$ol_enable_perl" = "xyes" ; then
12449 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12451 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12464 # On Suns, sometimes $CPP names a directory.
12465 if test -n "$CPP" && test -d "$CPP"; then
12468 if test -z "$CPP"; then
12469 if test "${ac_cv_prog_CPP+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 # Double quotes because CPP needs to be expanded
12473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12475 ac_preproc_ok=false
12476 for ac_c_preproc_warn_flag in '' yes
12478 # Use a header file that comes with gcc, so configuring glibc
12479 # with a fresh cross-compiler works.
12480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 # <limits.h> exists even on freestanding compilers.
12482 # On the NeXT, cc -E runs the code through the compiler's parser,
12483 # not just through cpp. "Syntax error" is here to catch this case.
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 # include <limits.h>
12493 # include <assert.h>
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null && {
12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 # Broken: fails on valid input.
12522 rm -f conftest.err conftest.$ac_ext
12524 # OK, works on sane cases. Now check whether nonexistent headers
12525 # can be detected and how.
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <ac_nonexistent.h>
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } >/dev/null && {
12547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12550 # Broken: success on invalid input.
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 # Passes both tests.
12561 rm -f conftest.err conftest.$ac_ext
12564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12565 rm -f conftest.err conftest.$ac_ext
12566 if $ac_preproc_ok; then
12571 ac_cv_prog_CPP=$CPP
12574 CPP=$ac_cv_prog_CPP
12576 ac_cv_prog_CPP=$CPP
12578 { echo "$as_me:$LINENO: result: $CPP" >&5
12579 echo "${ECHO_T}$CPP" >&6; }
12580 ac_preproc_ok=false
12581 for ac_c_preproc_warn_flag in '' yes
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 # include <limits.h>
12598 # include <assert.h>
12602 if { (ac_try="$ac_cpp conftest.$ac_ext"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } >/dev/null && {
12615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 # Broken: fails on valid input.
12627 rm -f conftest.err conftest.$ac_ext
12629 # OK, works on sane cases. Now check whether nonexistent headers
12630 # can be detected and how.
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <ac_nonexistent.h>
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12655 # Broken: success on invalid input.
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 # Passes both tests.
12666 rm -f conftest.err conftest.$ac_ext
12669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670 rm -f conftest.err conftest.$ac_ext
12671 if $ac_preproc_ok; then
12674 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&5
12676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12677 See \`config.log' for more details." >&2;}
12678 { (exit 1); exit 1; }; }
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12688 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12689 if test "${ol_cv_msvc+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12700 #include <__FOO__/generate_error.h>
12704 if { (ac_try="$ac_cpp conftest.$ac_ext"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12728 rm -f conftest.err conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12731 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12734 *mingw32* ) ac_cv_mingw32=yes ;;
12735 *cygwin* ) ac_cv_cygwin=yes ;;
12736 *interix* ) ac_cv_interix=yes ;;
12742 cat >>confdefs.h <<_ACEOF
12743 #define EXEEXT "${EXEEXT}"
12747 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12748 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_be_be_app+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lbe -lroot -lnet $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext &&
12793 $as_test_x conftest$ac_exeext; then
12794 ac_cv_lib_be_be_app=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_be_be_app=no
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12807 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12808 if test $ac_cv_lib_be_be_app = yes; then
12809 LIBS="$LIBS -lbe -lroot -lnet"
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 if test -n "$ac_tool_prefix"; then
12821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12825 if test "${ac_cv_prog_CC+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 if test -n "$CC"; then
12829 ac_cv_prog_CC="$CC" # Let the user override the test.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 if test -n "$CC"; then
12850 { echo "$as_me:$LINENO: result: $CC" >&5
12851 echo "${ECHO_T}$CC" >&6; }
12853 { echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6; }
12859 if test -z "$ac_cv_prog_CC"; then
12861 # Extract the first word of "gcc", so it can be a program name with args.
12862 set dummy gcc; ac_word=$2
12863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 if test -n "$ac_ct_CC"; then
12869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_ac_ct_CC="gcc"
12879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12889 if test -n "$ac_ct_CC"; then
12890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12891 echo "${ECHO_T}$ac_ct_CC" >&6; }
12893 { echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6; }
12897 if test "x$ac_ct_CC" = x; then
12900 case $cross_compiling:$ac_tool_warned in
12902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12903 whose name does not start with the host triplet. If you think this
12904 configuration is useful to you, please write to autoconf@gnu.org." >&5
12905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12906 whose name does not start with the host triplet. If you think this
12907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12908 ac_tool_warned=yes ;;
12913 CC="$ac_cv_prog_CC"
12916 if test -z "$CC"; then
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}cc; ac_word=$2
12920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12922 if test "${ac_cv_prog_CC+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 if test -n "$CC"; then
12926 ac_cv_prog_CC="$CC" # Let the user override the test.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_CC="${ac_tool_prefix}cc"
12936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 if test -n "$CC"; then
12947 { echo "$as_me:$LINENO: result: $CC" >&5
12948 echo "${ECHO_T}$CC" >&6; }
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12957 if test -z "$CC"; then
12958 # Extract the first word of "cc", so it can be a program name with args.
12959 set dummy cc; ac_word=$2
12960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12962 if test "${ac_cv_prog_CC+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 if test -n "$CC"; then
12966 ac_cv_prog_CC="$CC" # Let the user override the test.
12968 ac_prog_rejected=no
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12977 ac_prog_rejected=yes
12981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 if test $ac_prog_rejected = yes; then
12989 # We found a bogon in the path, so make sure we never use it.
12990 set dummy $ac_cv_prog_CC
12992 if test $# != 0; then
12993 # We chose a different compiler from the bogus one.
12994 # However, it has the same basename, so the bogon will be chosen
12995 # first if we set CC to just the basename; use the full file name.
12997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13003 if test -n "$CC"; then
13004 { echo "$as_me:$LINENO: result: $CC" >&5
13005 echo "${ECHO_T}$CC" >&6; }
13007 { echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6; }
13013 if test -z "$CC"; then
13014 if test -n "$ac_tool_prefix"; then
13015 for ac_prog in cl.exe
13017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13021 if test "${ac_cv_prog_CC+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 if test -n "$CC"; then
13025 ac_cv_prog_CC="$CC" # Let the user override the test.
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 if test -n "$CC"; then
13046 { echo "$as_me:$LINENO: result: $CC" >&5
13047 echo "${ECHO_T}$CC" >&6; }
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13054 test -n "$CC" && break
13057 if test -z "$CC"; then
13059 for ac_prog in cl.exe
13061 # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 if test -n "$ac_ct_CC"; then
13069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_ac_ct_CC="$ac_prog"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089 if test -n "$ac_ct_CC"; then
13090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13091 echo "${ECHO_T}$ac_ct_CC" >&6; }
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13098 test -n "$ac_ct_CC" && break
13101 if test "x$ac_ct_CC" = x; then
13104 case $cross_compiling:$ac_tool_warned in
13106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13107 whose name does not start with the host triplet. If you think this
13108 configuration is useful to you, please write to autoconf@gnu.org." >&5
13109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13110 whose name does not start with the host triplet. If you think this
13111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13112 ac_tool_warned=yes ;;
13121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: no acceptable C compiler found in \$PATH
13124 See \`config.log' for more details." >&2;}
13125 { (exit 1); exit 1; }; }
13127 # Provide some information about the compiler.
13128 echo "$as_me:$LINENO: checking for C compiler version" >&5
13129 ac_compiler=`set X $ac_compile; echo $2`
13130 { (ac_try="$ac_compiler --version >&5"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_compiler --version >&5") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }
13140 { (ac_try="$ac_compiler -v >&5"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compiler -v >&5") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }
13150 { (ac_try="$ac_compiler -V >&5"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compiler -V >&5") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }
13161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest.$ac_objext; then
13201 ac_compiler_gnu=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13215 GCC=`test $ac_compiler_gnu = yes && echo yes`
13216 ac_test_CFLAGS=${CFLAGS+set}
13217 ac_save_CFLAGS=$CFLAGS
13218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13220 if test "${ac_cv_prog_cc_g+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_save_c_werror_flag=$ac_c_werror_flag
13224 ac_c_werror_flag=yes
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13242 rm -f conftest.$ac_objext
13243 if { (ac_try="$ac_compile"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_compile") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest.$ac_objext; then
13259 ac_cv_prog_cc_g=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13265 cat >conftest.$ac_ext <<_ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest.$ac_objext; then
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_c_werror_flag=$ac_save_c_werror_flag
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_cv_prog_cc_g=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 ac_c_werror_flag=$ac_save_c_werror_flag
13353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13355 if test "$ac_test_CFLAGS" = set; then
13356 CFLAGS=$ac_save_CFLAGS
13357 elif test $ac_cv_prog_cc_g = yes; then
13358 if test "$GCC" = yes; then
13364 if test "$GCC" = yes; then
13370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13372 if test "${ac_cv_prog_cc_c89+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_cv_prog_cc_c89=no
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <stdarg.h>
13385 #include <sys/types.h>
13386 #include <sys/stat.h>
13387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13388 struct buf { int x; };
13389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13390 static char *e (p, i)
13396 static char *f (char * (*g) (char **, int), char **p, ...)
13401 s = g (p, va_arg (v,int));
13406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13407 function prototypes and stuff, but not '\xHH' hex character constants.
13408 These don't provoke an error unfortunately, instead are silently treated
13409 as 'x'. The following induces an error, until -std is added to get
13410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13411 array size at least. It's necessary to write '\x00'==0 to get something
13412 that's true only with -std. */
13413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13416 inside strings and character constants. */
13418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13420 int test (int i, double x);
13421 struct s1 {int (*f) (int a);};
13422 struct s2 {int (*f) (double a);};
13423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13437 CC="$ac_save_CC $ac_arg"
13438 rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_compile") 2>conftest.er1
13447 grep -v '^ *+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest.$ac_objext; then
13455 ac_cv_prog_cc_c89=$ac_arg
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13463 rm -f core conftest.err conftest.$ac_objext
13464 test "x$ac_cv_prog_cc_c89" != "xno" && break
13466 rm -f conftest.$ac_ext
13471 case "x$ac_cv_prog_cc_c89" in
13473 { echo "$as_me:$LINENO: result: none needed" >&5
13474 echo "${ECHO_T}none needed" >&6; } ;;
13476 { echo "$as_me:$LINENO: result: unsupported" >&5
13477 echo "${ECHO_T}unsupported" >&6; } ;;
13479 CC="$CC $ac_cv_prog_cc_c89"
13480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491 depcc="$CC" am_compiler_list=
13493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13499 # We make a subdir and do the tests there. Otherwise we can end up
13500 # making bogus files that we don't know about and never remove. For
13501 # instance it was reported that on HP-UX the gcc test will end up
13502 # making a dummy file named `D' -- because `-MD' means `put the output
13505 # Copy depcomp to subdir because otherwise we won't find it if we're
13506 # using a relative directory.
13507 cp "$am_depcomp" conftest.dir
13509 # We will build objects and dependencies in a subdirectory because
13510 # it helps to detect inapplicable dependency modes. For instance
13511 # both Tru64's cc and ICC support -MD to output dependencies as a
13512 # side effect of compilation, but ICC will put the dependencies in
13513 # the current directory while Tru64 will put them in the object
13517 am_cv_CC_dependencies_compiler_type=none
13518 if test "$am_compiler_list" = ""; then
13519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13521 for depmode in $am_compiler_list; do
13522 # Setup a source with many dependencies, because some compilers
13523 # like to wrap large dependency lists on column 80 (with \), and
13524 # we should not choose a depcomp mode which is confused by this.
13526 # We need to recreate these files for each test, as the compiler may
13527 # overwrite some of them when testing with obscure command lines.
13528 # This happens at least with the AIX C compiler.
13530 for i in 1 2 3 4 5 6; do
13531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13533 # Solaris 8's {/usr,}/bin/sh.
13534 touch sub/conftst$i.h
13536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13540 # after this tag, mechanisms are not by side-effect, so they'll
13541 # only be used when explicitly requested
13542 if test "x$enable_dependency_tracking" = xyes; then
13550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13551 # mode. It turns out that the SunPro C++ compiler does not properly
13552 # handle `-M -o', and we need to detect this.
13553 if depmode=$depmode \
13554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13557 >/dev/null 2>conftest.err &&
13558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13561 # icc doesn't choke on unknown options, it will just issue warnings
13562 # or remarks (even with -Werror). So we grep stderr for any message
13563 # that says an option was ignored or not supported.
13564 # When given -MP, icc 7.0 and 7.1 complain thusly:
13565 # icc: Command line warning: ignoring option '-M'; no argument required
13566 # The diagnosis changed in icc 8.0:
13567 # icc: Command line remark: option '-MP' not supported
13568 if (grep 'ignoring option' conftest.err ||
13569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13570 am_cv_CC_dependencies_compiler_type=$depmode
13577 rm -rf conftest.dir
13579 am_cv_CC_dependencies_compiler_type=none
13583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13590 test "x$enable_dependency_tracking" != xno \
13591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13592 am__fastdepCC_TRUE=
13593 am__fastdepCC_FALSE='#'
13595 am__fastdepCC_TRUE='#'
13596 am__fastdepCC_FALSE=
13600 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13601 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13602 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13603 { (exit 1); exit 1; }; }
13606 # test for make depend flag
13609 if test -z "${MKDEP}"; then
13610 OL_MKDEP="${CC-cc}"
13611 if test -z "${MKDEP_FLAGS}"; then
13612 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13613 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13614 if test "${ol_cv_mkdep+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 for flag in "-M" "-xM"; do
13620 cat > conftest.c <<EOF
13623 if { ac_try='$OL_MKDEP $flag conftest.c'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } \
13629 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13631 if test ! -f conftest."${ac_object}" ; then
13633 OL_MKDEP_FLAGS="$flag"
13641 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13642 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13643 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13646 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 OL_MKDEP="${MKDEP}"
13651 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13656 if test "${ol_cv_mkdep}" = no ; then
13657 # this will soon become an error
13658 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13659 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13662 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13663 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_s_afopen+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_check_lib_save_LIBS=$LIBS
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext &&
13708 $as_test_x conftest$ac_exeext; then
13709 ac_cv_lib_s_afopen=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_lib_s_afopen=no
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13722 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13723 if test $ac_cv_lib_s_afopen = yes; then
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_AIX_SECURITY 1
13737 ac_cv_func_getopt=no
13739 cat >>confdefs.h <<\_ACEOF
13740 #define BOTH_STRINGS_H 1
13747 WITH_MODULES_ENABLED=no
13748 if test $ol_enable_modules != no ; then
13750 for ac_header in ltdl.h
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_res=`eval echo '${'$as_ac_Header'}'`
13760 { echo "$as_me:$LINENO: result: $ac_res" >&5
13761 echo "${ECHO_T}$ac_res" >&6; }
13763 # Is the header compilable?
13764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13773 #include <$ac_header>
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_compile") 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && {
13789 test -z "$ac_c_werror_flag" ||
13790 test ! -s conftest.err
13791 } && test -s conftest.$ac_objext; then
13792 ac_header_compiler=yes
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 ac_header_compiler=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6; }
13804 # Is the header present?
13805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <$ac_header>
13815 if { (ac_try="$ac_cpp conftest.$ac_ext"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null && {
13828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13829 test ! -s conftest.err
13831 ac_header_preproc=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_header_preproc=no
13839 rm -f conftest.err conftest.$ac_ext
13840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13841 echo "${ECHO_T}$ac_header_preproc" >&6; }
13843 # So? What about this header?
13844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13850 ac_header_preproc=yes
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13866 ## --------------------------------------------- ##
13867 ## Report this to <http://www.openldap.org/its/> ##
13868 ## --------------------------------------------- ##
13870 ) | sed "s/^/$as_me: WARNING: /" >&2
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 eval "$as_ac_Header=\$ac_header_preproc"
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881 { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886 cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 if test $ac_cv_header_ltdl_h = no ; then
13896 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13897 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13898 { (exit 1); exit 1; }; }
13901 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13902 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lltdl $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13925 return lt_dlinit ();
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest$ac_exeext &&
13947 $as_test_x conftest$ac_exeext; then
13948 ac_cv_lib_ltdl_lt_dlinit=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_ltdl_lt_dlinit=no
13956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13961 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13962 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13964 MODULES_LIBS=-lltdl
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_LIBLTDL 1
13974 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13975 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13976 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13977 { (exit 1); exit 1; }; }
13979 ol_link_modules=yes
13980 WITH_MODULES_ENABLED=yes
13983 for i in $Backends; do
13984 eval "ol_tmp=\$ol_enable_$i"
13985 if test $ol_tmp = mod ; then
13986 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13987 echo "$as_me: WARNING: building static $i backend" >&2;}
13988 eval "ol_enable_$i=yes"
13991 for i in $Overlays; do
13992 eval "ol_tmp=\$ol_enable_$i"
13993 if test $ol_tmp = mod ; then
13994 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13995 echo "$as_me: WARNING: building static $i overlay" >&2;}
13996 eval "ol_enable_$i=yes"
14002 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14003 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14004 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14016 #include <__ASCII__/generate_error.h>
14020 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } >/dev/null && {
14033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14036 ol_cv_cpp_ebcdic=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ol_cv_cpp_ebcdic=no
14044 rm -f conftest.err conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14047 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14048 if test $ol_cv_cpp_ebcdic = yes ; then
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_EBCDIC 1
14056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14058 if test "${ol_cv_header_stdc+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <stdlib.h>
14068 #include <stdarg.h>
14069 #include <string.h>
14072 if { (ac_try="$ac_cpp conftest.$ac_ext"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } >/dev/null && {
14085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14088 ol_cv_header_stdc=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ol_cv_header_stdc=no
14096 rm -f conftest.err conftest.$ac_ext
14098 if test $ol_cv_header_stdc = yes; then
14099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 #include <string.h>
14109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14110 $EGREP "memchr" >/dev/null 2>&1; then
14113 ol_cv_header_stdc=no
14119 if test $ol_cv_header_stdc = yes; then
14120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <stdlib.h>
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "free" >/dev/null 2>&1; then
14134 ol_cv_header_stdc=no
14140 if test $ol_cv_header_stdc = yes; then
14141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14142 if test "$cross_compiling" = yes; then
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14152 #ifndef HAVE_EBCDIC
14153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14156 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14157 || ('j' <= (c) && (c) <= 'r') \
14158 || ('s' <= (c) && (c) <= 'z'))
14159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14162 int main () { int i; for (i = 0; i < 256; i++)
14163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14167 rm -f conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_link") 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14189 echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ( exit $ac_status )
14194 ol_cv_header_stdc=no
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14202 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14203 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14204 if test $ol_cv_header_stdc = yes; then
14205 cat >>confdefs.h <<\_ACEOF
14206 #define STDC_HEADERS 1
14210 ac_cv_header_stdc=disable
14213 if test $ol_cv_header_stdc != yes; then
14214 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14215 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14223 ac_header_dirent=no
14224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14225 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 eval "$as_ac_Header=yes"
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 eval "$as_ac_Header=no"
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277 { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14280 cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14284 ac_header_dirent=$ac_hdr; break
14288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14289 if test $ac_header_dirent = dirent.h; then
14290 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14292 if test "${ac_cv_search_opendir+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 ac_func_search_save_LIBS=$LIBS
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14318 for ac_lib in '' dir; do
14319 if test -z "$ac_lib"; then
14320 ac_res="none required"
14323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest$ac_exeext &&
14342 $as_test_x conftest$ac_exeext; then
14343 ac_cv_search_opendir=$ac_res
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 if test "${ac_cv_search_opendir+set}" = set; then
14357 if test "${ac_cv_search_opendir+set}" = set; then
14360 ac_cv_search_opendir=no
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14367 ac_res=$ac_cv_search_opendir
14368 if test "$ac_res" != no; then
14369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14376 if test "${ac_cv_search_opendir+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_func_search_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14402 for ac_lib in '' x; do
14403 if test -z "$ac_lib"; then
14404 ac_res="none required"
14407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest$ac_exeext &&
14426 $as_test_x conftest$ac_exeext; then
14427 ac_cv_search_opendir=$ac_res
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14437 if test "${ac_cv_search_opendir+set}" = set; then
14441 if test "${ac_cv_search_opendir+set}" = set; then
14444 ac_cv_search_opendir=no
14446 rm conftest.$ac_ext
14447 LIBS=$ac_func_search_save_LIBS
14449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14451 ac_res=$ac_cv_search_opendir
14452 if test "$ac_res" != no; then
14453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <sys/types.h>
14471 #include <sys/wait.h>
14472 #ifndef WEXITSTATUS
14473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
14506 ac_cv_header_sys_wait_h=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_cv_header_sys_wait_h=no
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14518 if test $ac_cv_header_sys_wait_h = yes; then
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_SYS_WAIT_H 1
14526 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14527 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14528 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <sys/types.h>
14538 #include <termios.h>
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545 $EGREP "yes" >/dev/null 2>&1; then
14546 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14548 ac_cv_sys_tiocgwinsz_in_termios_h=no
14553 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14554 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14556 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14557 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14558 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14559 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14569 #include <sys/ioctl.h>
14575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14576 $EGREP "yes" >/dev/null 2>&1; then
14577 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14579 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14584 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14585 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14587 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14589 cat >>confdefs.h <<\_ACEOF
14590 #define GWINSZ_IN_SYS_IOCTL 1
14694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 ac_res=`eval echo '${'$as_ac_Header'}'`
14702 { echo "$as_me:$LINENO: result: $ac_res" >&5
14703 echo "${ECHO_T}$ac_res" >&6; }
14705 # Is the header compilable?
14706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 #include <$ac_header>
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_compile") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
14734 ac_header_compiler=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_header_compiler=no
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <$ac_header>
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_preproc=no
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14808 ## --------------------------------------------- ##
14809 ## Report this to <http://www.openldap.org/its/> ##
14810 ## --------------------------------------------- ##
14812 ) | sed "s/^/$as_me: WARNING: /" >&2
14815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 eval "$as_ac_Header=\$ac_header_preproc"
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823 { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14837 if test "$ac_cv_mingw32" = yes \
14838 -o "$ac_cv_interix" = yes \
14839 -o "$ol_cv_msvc" = yes
14843 for ac_header in winsock.h winsock2.h
14845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853 { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14856 # Is the header compilable?
14857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14866 #include <$ac_header>
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_compile") 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest.$ac_objext; then
14885 ac_header_compiler=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_header_compiler=no
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <$ac_header>
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null && {
14921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14924 ac_header_preproc=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14959 ## --------------------------------------------- ##
14960 ## Report this to <http://www.openldap.org/its/> ##
14961 ## --------------------------------------------- ##
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 eval "$as_ac_Header=\$ac_header_preproc"
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974 { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990 for ac_header in resolv.h
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 #include <netinet/in.h>
15008 #include <$ac_header>
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 eval "$as_ac_Header=yes"
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 eval "$as_ac_Header=no"
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 for ac_header in netinet/tcp.h
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $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 <netinet/in.h>
15069 #include <$ac_header>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } && {
15085 test -z "$ac_c_werror_flag" ||
15086 test ! -s conftest.err
15087 } && test -s conftest.$ac_objext; then
15088 eval "$as_ac_Header=yes"
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 eval "$as_ac_Header=no"
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099 { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112 for ac_header in sys/ucred.h
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15127 #ifdef HAVE_SYS_PARAM_H
15128 #include <sys/param.h>
15132 #include <$ac_header>
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_compile") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest.$ac_objext; then
15151 eval "$as_ac_Header=yes"
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 eval "$as_ac_Header=no"
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15177 for ac_func in sigaction sigset
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15225 return $ac_func ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 eval "$as_ac_var=yes"
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no"
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15273 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15274 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any GCC internal prototype to avoid an error.
15288 Use char because int might match the return type of a GCC
15289 builtin and then its argument prototype would still apply. */
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_link") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest$ac_exeext &&
15319 $as_test_x conftest$ac_exeext; then
15320 ac_cv_lib_V3_sigset=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_cv_lib_V3_sigset=no
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329 conftest$ac_exeext conftest.$ac_ext
15330 LIBS=$ac_check_lib_save_LIBS
15332 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15333 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15334 if test $ac_cv_lib_V3_sigset = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_LIBV3 1
15345 if test $ol_cv_msvc = yes ; then
15349 if test "$ac_cv_header_winsock_h" = yes; then
15350 { echo "$as_me:$LINENO: checking for winsock" >&5
15351 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15352 if test "${ol_cv_winsock+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 for curlib in none ws2_32 wsock32; do
15358 if test $curlib != none ; then
15359 LIBS="$save_LIBS -l$curlib"
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <winsock.h>
15374 select(0,NULL,NULL,NULL,NULL);
15376 gethostname(NULL,0);
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_link") 2>conftest.er1
15391 grep -v '^ *+' conftest.er1 >conftest.err
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest$ac_exeext &&
15399 $as_test_x conftest$ac_exeext; then
15400 ol_cv_winsock=$curlib
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15411 test "$ol_cv_winsock" != no && break
15416 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15417 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15419 if test $ol_cv_winsock != no ; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_WINSOCK 1
15425 ac_cv_func_socket=yes
15426 ac_cv_func_select=yes
15427 ac_cv_func_closesocket=yes
15428 ac_cv_func_gethostname=yes
15430 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15431 LIBS="$LIBS -l$ol_cv_winsock"
15434 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_WINSOCK2 1
15445 { echo "$as_me:$LINENO: checking for socket" >&5
15446 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_socket+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15458 #define socket innocuous_socket
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char socket (); below.
15462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463 <limits.h> exists even on freestanding compilers. */
15466 # include <limits.h>
15468 # include <assert.h>
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined __stub_socket || defined __stub___socket
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && {
15509 test -z "$ac_c_werror_flag" ||
15510 test ! -s conftest.err
15511 } && test -s conftest$ac_exeext &&
15512 $as_test_x conftest$ac_exeext; then
15513 ac_cv_func_socket=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_func_socket=no
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15524 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15525 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15526 if test $ac_cv_func_socket = yes; then
15531 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15532 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_socket_main+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lsocket $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 ac_cv_lib_socket_main=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_cv_lib_socket_main=no
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15584 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15585 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15586 if test $ac_cv_lib_socket_main = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define HAVE_LIBSOCKET 1
15591 LIBS="-lsocket $LIBS"
15596 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15597 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_net_main+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext &&
15636 $as_test_x conftest$ac_exeext; then
15637 ac_cv_lib_net_main=yes
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_net_main=no
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15650 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15651 if test $ac_cv_lib_net_main = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBNET 1
15661 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15662 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lnsl_s $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext &&
15701 $as_test_x conftest$ac_exeext; then
15702 ac_cv_lib_nsl_s_main=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_cv_lib_nsl_s_main=no
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15715 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15716 if test $ac_cv_lib_nsl_s_main = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_LIBNSL_S 1
15721 LIBS="-lnsl_s $LIBS"
15726 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15727 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15728 if test "${ac_cv_lib_nsl_main+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 ac_check_lib_save_LIBS=$LIBS
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 ac_cv_lib_nsl_main=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_nsl_main=no
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15780 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15781 if test $ac_cv_lib_nsl_main = yes; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBNSL 1
15791 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15792 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_inet_socket+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-linet $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 ac_cv_lib_inet_socket=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_cv_lib_inet_socket=no
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15851 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15852 if test $ac_cv_lib_inet_socket = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_LIBINET 1
15857 LIBS="-linet $LIBS"
15862 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15863 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gen_main+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 ac_check_lib_save_LIBS=$LIBS
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (ac_try="$ac_link"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_link") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest$ac_exeext &&
15902 $as_test_x conftest$ac_exeext; then
15903 ac_cv_lib_gen_main=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_cv_lib_gen_main=no
15911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15912 conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15916 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15917 if test $ac_cv_lib_gen_main = yes; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define HAVE_LIBGEN 1
15930 { echo "$as_me:$LINENO: checking for select" >&5
15931 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15932 if test "${ac_cv_func_select+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 /* Define select to an innocuous variant, in case <limits.h> declares select.
15942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15943 #define select innocuous_select
15945 /* System header to define __stub macros and hopefully few prototypes,
15946 which can conflict with char select (); below.
15947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15948 <limits.h> exists even on freestanding compilers. */
15951 # include <limits.h>
15953 # include <assert.h>
15958 /* Override any GCC internal prototype to avoid an error.
15959 Use char because int might match the return type of a GCC
15960 builtin and then its argument prototype would still apply. */
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined __stub_select || defined __stub___select
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 ac_cv_func_select=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_cv_func_select=no
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16010 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16011 if test $ac_cv_func_select = yes; then
16014 { { echo "$as_me:$LINENO: error: select() required." >&5
16015 echo "$as_me: error: select() required." >&2;}
16016 { (exit 1); exit 1; }; }
16020 if test "${ac_cv_header_winsock_h}" != yes; then
16023 for ac_header in sys/select.h sys/socket.h
16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16036 # Is the header compilable?
16037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16046 #include <$ac_header>
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.$ac_objext; then
16065 ac_header_compiler=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_header_compiler=no
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <$ac_header>
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16104 ac_header_preproc=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139 ## --------------------------------------------- ##
16140 ## Report this to <http://www.openldap.org/its/> ##
16141 ## --------------------------------------------- ##
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16168 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16169 if test "${ac_cv_func_select_args+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16173 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16174 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 #ifdef HAVE_SYS_SELECT_H
16183 # include <sys/select.h>
16185 #ifdef HAVE_SYS_SOCKET_H
16186 # include <sys/socket.h>
16192 extern int select ($ac_arg1,
16193 $ac_arg234, $ac_arg234, $ac_arg234,
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest.$ac_objext; then
16216 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 # Provide a safe default value.
16229 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16232 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16233 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16234 ac_save_IFS=$IFS; IFS=','
16235 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16239 cat >>confdefs.h <<_ACEOF
16240 #define SELECT_TYPE_ARG1 $1
16244 cat >>confdefs.h <<_ACEOF
16245 #define SELECT_TYPE_ARG234 ($2)
16249 cat >>confdefs.h <<_ACEOF
16250 #define SELECT_TYPE_ARG5 ($3)
16259 for ac_func in poll
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16283 # include <limits.h>
16285 # include <assert.h>
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16307 return $ac_func ();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 eval "$as_ac_var=no"
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352 if test $ac_cv_func_poll = yes; then
16355 for ac_header in poll.h sys/poll.h
16357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16368 # Is the header compilable?
16369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 $ac_includes_default
16378 #include <$ac_header>
16380 rm -f conftest.$ac_objext
16381 if { (ac_try="$ac_compile"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_compile") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest.$ac_objext; then
16397 ac_header_compiler=yes
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_header_compiler=no
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6; }
16409 # Is the header present?
16410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <$ac_header>
16420 if { (ac_try="$ac_cpp conftest.$ac_ext"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } >/dev/null && {
16433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16436 ac_header_preproc=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_preproc=no
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448 # So? What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ## --------------------------------------------- ##
16472 ## Report this to <http://www.openldap.org/its/> ##
16473 ## --------------------------------------------- ##
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 eval "$as_ac_Header=\$ac_header_preproc"
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16502 for ac_header in sys/epoll.h
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_res=`eval echo '${'$as_ac_Header'}'`
16512 { echo "$as_me:$LINENO: result: $ac_res" >&5
16513 echo "${ECHO_T}$ac_res" >&6; }
16515 # Is the header compilable?
16516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 #include <$ac_header>
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_compile") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest.$ac_objext; then
16544 ac_header_compiler=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_compiler=no
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554 echo "${ECHO_T}$ac_header_compiler" >&6; }
16556 # Is the header present?
16557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 #include <$ac_header>
16567 if { (ac_try="$ac_cpp conftest.$ac_ext"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } >/dev/null && {
16580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16583 ac_header_preproc=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_header_preproc=no
16591 rm -f conftest.err conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6; }
16595 # So? What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16602 ac_header_preproc=yes
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16618 ## --------------------------------------------- ##
16619 ## Report this to <http://www.openldap.org/its/> ##
16620 ## --------------------------------------------- ##
16622 ) | sed "s/^/$as_me: WARNING: /" >&2
16625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 eval "$as_ac_Header=\$ac_header_preproc"
16632 ac_res=`eval echo '${'$as_ac_Header'}'`
16633 { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16646 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16647 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16648 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16649 if test "$cross_compiling" = yes; then
16650 { echo "$as_me:$LINENO: result: no" >&5
16651 echo "${ECHO_T}no" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 int main(int argc, char **argv)
16661 int epfd = epoll_create(256);
16662 exit (epfd == -1 ? 1 : 0);
16665 rm -f conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16688 cat >>confdefs.h <<\_ACEOF
16689 #define HAVE_EPOLL 1
16693 echo "$as_me: program exited with status $ac_status" >&5
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ( exit $ac_status )
16698 { echo "$as_me:$LINENO: result: no" >&5
16699 echo "${ECHO_T}no" >&6; }
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16708 for ac_header in sys/devpoll.h
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 ac_res=`eval echo '${'$as_ac_Header'}'`
16718 { echo "$as_me:$LINENO: result: $ac_res" >&5
16719 echo "${ECHO_T}$ac_res" >&6; }
16721 # Is the header compilable?
16722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 #include <$ac_header>
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.$ac_objext; then
16750 ac_header_compiler=yes
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_header_compiler=no
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6; }
16762 # Is the header present?
16763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 #include <$ac_header>
16773 if { (ac_try="$ac_cpp conftest.$ac_ext"
16774 case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } >/dev/null && {
16786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16789 ac_header_preproc=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_preproc=no
16797 rm -f conftest.err conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 echo "${ECHO_T}$ac_header_preproc" >&6; }
16801 # So? What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16808 ac_header_preproc=yes
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16824 ## --------------------------------------------- ##
16825 ## Report this to <http://www.openldap.org/its/> ##
16826 ## --------------------------------------------- ##
16828 ) | sed "s/^/$as_me: WARNING: /" >&2
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 eval "$as_ac_Header=\$ac_header_preproc"
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16852 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16853 -a "${ac_cv_header_poll_h}" = yes ; \
16855 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16856 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16857 if test "$cross_compiling" = yes; then
16858 { echo "$as_me:$LINENO: result: no" >&5
16859 echo "${ECHO_T}no" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 int main(int argc, char **argv)
16869 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16870 exit (devpollfd == -1 ? 1 : 0);
16873 rm -f conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEVPOLL 1
16901 echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ( exit $ac_status )
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16916 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16917 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16929 #include <sys/types.h>
16932 #include <stdlib.h>
16937 char *c = (char *) *sys_errlist
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_compile") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest.$ac_objext; then
16959 ol_cv_dcl_sys_errlist=yes
16960 ol_cv_have_sys_errlist=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ol_cv_dcl_sys_errlist=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16971 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16973 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16974 if test $ol_cv_dcl_sys_errlist = no ; then
16976 cat >>confdefs.h <<\_ACEOF
16977 #define DECL_SYS_ERRLIST 1
16981 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16982 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16983 if test "${ol_cv_have_sys_errlist+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16997 char *c = (char *) *sys_errlist
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && {
17016 test -z "$ac_c_werror_flag" ||
17017 test ! -s conftest.err
17018 } && test -s conftest$ac_exeext &&
17019 $as_test_x conftest$ac_exeext; then
17020 ol_cv_have_sys_errlist=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ol_cv_have_sys_errlist=no
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029 conftest$ac_exeext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17032 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17034 if test $ol_cv_have_sys_errlist = yes ; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_SYS_ERRLIST 1
17043 for ac_func in strerror strerror_r
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 return $ac_func ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17114 eval "$as_ac_var=yes"
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 eval "$as_ac_var=no"
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123 conftest$ac_exeext conftest.$ac_ext
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126 { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17136 ol_cv_func_strerror_r=no
17137 if test "${ac_cv_func_strerror_r}" = yes ; then
17138 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17139 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17140 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <string.h>
17152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17153 $EGREP "strerror_r" >/dev/null 2>&1; then
17154 ol_decl_strerror_r=yes
17156 ol_decl_strerror_r=no
17160 if test $ol_decl_strerror_r = yes ; then
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <string.h>
17171 /* from autoconf 2.59 */
17173 char x = *strerror_r (0, buf, sizeof buf);
17174 char *p = strerror_r (0, buf, sizeof buf);
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ol_cv_nonposix_strerror_r=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ol_cv_nonposix_strerror_r=no
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 if test "$cross_compiling" = yes; then
17208 ol_cv_nonposix_strerror=no
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17220 strerror_r( 1, buf, sizeof buf );
17221 exit( buf[0] == 0 );
17225 rm -f conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ol_cv_nonposix_strerror_r=yes
17247 echo "$as_me: program exited with status $ac_status" >&5
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ( exit $ac_status )
17252 ol_cv_nonposix_strerror=no
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17262 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17263 if test $ol_cv_nonposix_strerror_r = yes ; then
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_NONPOSIX_STRERROR_R 1
17271 elif test "${ac_cv_func_strerror}" = no ; then
17272 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17273 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17274 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17286 #include <sys/types.h>
17289 #include <stdlib.h>
17294 char *c = (char *) *sys_errlist
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest.$ac_objext; then
17316 ol_cv_dcl_sys_errlist=yes
17317 ol_cv_have_sys_errlist=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ol_cv_dcl_sys_errlist=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17328 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17331 if test $ol_cv_dcl_sys_errlist = no ; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define DECL_SYS_ERRLIST 1
17338 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17339 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17340 if test "${ol_cv_have_sys_errlist+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17354 char *c = (char *) *sys_errlist
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 ol_cv_have_sys_errlist=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ol_cv_have_sys_errlist=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17389 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17391 if test $ol_cv_have_sys_errlist = yes ; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_SYS_ERRLIST 1
17403 for ac_header in regex.h
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 $ac_includes_default
17418 #ifdef HAVE_SYS_TYPES_H
17419 #include <sys/types.h>
17423 #include <$ac_header>
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 eval "$as_ac_Header=yes"
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 eval "$as_ac_Header=no"
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452 ac_res=`eval echo '${'$as_ac_Header'}'`
17453 { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465 if test "$ac_cv_header_regex_h" != yes ; then
17466 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17467 echo "$as_me: error: POSIX regex.h required." >&2;}
17468 { (exit 1); exit 1; }; }
17470 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17471 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17472 if test "${ac_cv_search_regfree+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_func_search_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17498 for ac_lib in '' regex gnuregex; do
17499 if test -z "$ac_lib"; then
17500 ac_res="none required"
17503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext &&
17522 $as_test_x conftest$ac_exeext; then
17523 ac_cv_search_regfree=$ac_res
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 if test "${ac_cv_search_regfree+set}" = set; then
17537 if test "${ac_cv_search_regfree+set}" = set; then
17540 ac_cv_search_regfree=no
17542 rm conftest.$ac_ext
17543 LIBS=$ac_func_search_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17546 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17547 ac_res=$ac_cv_search_regfree
17548 if test "$ac_res" != no; then
17549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17552 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17553 echo "$as_me: error: POSIX regex required." >&2;}
17554 { (exit 1); exit 1; }; }
17559 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17560 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17561 if test "${ol_cv_c_posix_regex+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 if test "$cross_compiling" = yes; then
17566 ol_cv_c_posix_regex=cross
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17575 #include <sys/types.h>
17577 static char *pattern, *string;
17585 if(regcomp(&re, pattern, 0)) {
17589 string = "ALL MATCH";
17591 rc = regexec(&re, string, 0, (void*)0, 0);
17598 rm -f conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ol_cv_c_posix_regex=yes
17620 echo "$as_me: program exited with status $ac_status" >&5
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ( exit $ac_status )
17625 ol_cv_c_posix_regex=no
17627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17633 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17635 if test "$ol_cv_c_posix_regex" = no ; then
17636 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17637 echo "$as_me: error: broken POSIX regex!" >&2;}
17638 { (exit 1); exit 1; }; }
17644 for ac_header in sys/uuid.h
17646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_res=`eval echo '${'$as_ac_Header'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17657 # Is the header compilable?
17658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 $ac_includes_default
17667 #include <$ac_header>
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_compile") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && {
17683 test -z "$ac_c_werror_flag" ||
17684 test ! -s conftest.err
17685 } && test -s conftest.$ac_objext; then
17686 ac_header_compiler=yes
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 ac_header_compiler=no
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17696 echo "${ECHO_T}$ac_header_compiler" >&6; }
17698 # Is the header present?
17699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <$ac_header>
17709 if { (ac_try="$ac_cpp conftest.$ac_ext"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } >/dev/null && {
17722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17725 ac_header_preproc=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_header_preproc=no
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17737 # So? What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744 ac_header_preproc=yes
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17760 ## --------------------------------------------- ##
17761 ## Report this to <http://www.openldap.org/its/> ##
17762 ## --------------------------------------------- ##
17764 ) | sed "s/^/$as_me: WARNING: /" >&2
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 eval "$as_ac_Header=\$ac_header_preproc"
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17788 if test $ac_cv_header_sys_uuid_h = yes ; then
17790 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17791 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17792 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ac_func_search_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17809 char uuid_to_str ();
17813 return uuid_to_str ();
17818 for ac_lib in '' uuid; do
17819 if test -z "$ac_lib"; then
17820 ac_res="none required"
17823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext &&
17842 $as_test_x conftest$ac_exeext; then
17843 ac_cv_search_uuid_to_str=$ac_res
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17857 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17860 ac_cv_search_uuid_to_str=no
17862 rm conftest.$ac_ext
17863 LIBS=$ac_func_search_save_LIBS
17865 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17866 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17867 ac_res=$ac_cv_search_uuid_to_str
17868 if test "$ac_res" != no; then
17869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17875 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17876 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17877 if test "${ac_cv_search_uuid_create+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 ac_func_search_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17894 char uuid_create ();
17898 return uuid_create ();
17903 for ac_lib in '' uuid; do
17904 if test -z "$ac_lib"; then
17905 ac_res="none required"
17908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_link") 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest$ac_exeext &&
17927 $as_test_x conftest$ac_exeext; then
17928 ac_cv_search_uuid_create=$ac_res
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 if test "${ac_cv_search_uuid_create+set}" = set; then
17942 if test "${ac_cv_search_uuid_create+set}" = set; then
17945 ac_cv_search_uuid_create=no
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17950 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17951 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17952 ac_res=$ac_cv_search_uuid_create
17953 if test "$ac_res" != no; then
17954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17962 if test $have_uuid = yes ; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_UUID_TO_STR 1
17969 test "$ac_cv_search_uuid_to_str" = "none required" || \
17970 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17974 if test $have_uuid = no ; then
17976 for ac_header in uuid/uuid.h
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18092 ## --------------------------------------------- ##
18093 ## Report this to <http://www.openldap.org/its/> ##
18094 ## --------------------------------------------- ##
18096 ) | sed "s/^/$as_me: WARNING: /" >&2
18099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 eval "$as_ac_Header=\$ac_header_preproc"
18106 ac_res=`eval echo '${'$as_ac_Header'}'`
18107 { echo "$as_me:$LINENO: result: $ac_res" >&5
18108 echo "${ECHO_T}$ac_res" >&6; }
18111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18112 cat >>confdefs.h <<_ACEOF
18113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18120 if test $ac_cv_header_uuid_uuid_h = yes ; then
18122 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18123 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18124 if test "${ac_cv_search_uuid_generate+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_func_search_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18141 char uuid_generate ();
18145 return uuid_generate ();
18150 for ac_lib in '' uuid; do
18151 if test -z "$ac_lib"; then
18152 ac_res="none required"
18155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && {
18171 test -z "$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 } && test -s conftest$ac_exeext &&
18174 $as_test_x conftest$ac_exeext; then
18175 ac_cv_search_uuid_generate=$ac_res
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18185 if test "${ac_cv_search_uuid_generate+set}" = set; then
18189 if test "${ac_cv_search_uuid_generate+set}" = set; then
18192 ac_cv_search_uuid_generate=no
18194 rm conftest.$ac_ext
18195 LIBS=$ac_func_search_save_LIBS
18197 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18198 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18199 ac_res=$ac_cv_search_uuid_generate
18200 if test "$ac_res" != no; then
18201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18207 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18208 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18209 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 ac_func_search_save_LIBS=$LIBS
18213 cat >conftest.$ac_ext <<_ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18220 /* Override any GCC internal prototype to avoid an error.
18221 Use char because int might match the return type of a GCC
18222 builtin and then its argument prototype would still apply. */
18226 char uuid_unparse_lower ();
18230 return uuid_unparse_lower ();
18235 for ac_lib in '' uuid; do
18236 if test -z "$ac_lib"; then
18237 ac_res="none required"
18240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_link") 2>conftest.er1
18251 grep -v '^ *+' conftest.er1 >conftest.err
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_c_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest$ac_exeext &&
18259 $as_test_x conftest$ac_exeext; then
18260 ac_cv_search_uuid_unparse_lower=$ac_res
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18274 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18277 ac_cv_search_uuid_unparse_lower=no
18279 rm conftest.$ac_ext
18280 LIBS=$ac_func_search_save_LIBS
18282 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18283 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18284 ac_res=$ac_cv_search_uuid_unparse_lower
18285 if test "$ac_res" != no; then
18286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18294 if test $have_uuid = yes ; then
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_UUID_GENERATE 1
18301 test "$ac_cv_search_uuid_generate" = "none required" || \
18302 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18307 if test $have_uuid = no ; then
18308 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18309 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18311 LIBS="$LIBS -lrpcrt4"
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18319 int __stdcall UuidCreate(void *);
18320 int __stdcall UuidToStringA(void *,void **);
18327 UuidToStringA(0,0);
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18361 if test $need_rpcrt = yes; then
18362 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18365 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18366 echo "${ECHO_T}$need_rpcrt" >&6; }
18369 ol_cv_lib_resolver=no
18370 if test $ol_cv_lib_resolver = no ; then
18371 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18372 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18373 if test "${ol_cv_resolver_none+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 LIBS="$ol_RESOLVER_LIB $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 #ifdef HAVE_SYS_TYPES_H
18389 # include <sys/types.h>
18391 #include <netinet/in.h>
18392 #ifdef HAVE_ARPA_NAMESER_H
18393 # include <arpa/nameser.h>
18395 #ifdef HAVE_RESOLV_H
18396 # include <resolv.h>
18404 char *request = NULL;
18405 unsigned char reply[64*1024];
18406 unsigned char host[64*1024];
18410 /* Bind 8/9 interface */
18411 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18413 /* Bind 4 interface */
18417 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18421 /* Bind 8/9 interface */
18423 #elif defined(HFIXEDSZ)
18424 /* Bind 4 interface w/ HFIXEDSZ */
18427 /* Bind 4 interface w/o HFIXEDSZ */
18428 p += sizeof(HEADER);
18430 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext &&
18453 $as_test_x conftest$ac_exeext; then
18454 ol_cv_resolver_none=yes
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ol_cv_resolver_none=no
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18469 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18471 if test $ol_cv_resolver_none = yes ; then
18472 ol_cv_lib_resolver=yes
18476 if test $ol_cv_lib_resolver = no ; then
18477 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18478 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18479 if test "${ol_cv_resolver_resolv+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ol_RESOLVER_LIB=-lresolv
18485 LIBS="$ol_RESOLVER_LIB $LIBS"
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18494 #ifdef HAVE_SYS_TYPES_H
18495 # include <sys/types.h>
18497 #include <netinet/in.h>
18498 #ifdef HAVE_ARPA_NAMESER_H
18499 # include <arpa/nameser.h>
18501 #ifdef HAVE_RESOLV_H
18502 # include <resolv.h>
18510 char *request = NULL;
18511 unsigned char reply[64*1024];
18512 unsigned char host[64*1024];
18516 /* Bind 8/9 interface */
18517 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18519 /* Bind 4 interface */
18523 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18527 /* Bind 8/9 interface */
18529 #elif defined(HFIXEDSZ)
18530 /* Bind 4 interface w/ HFIXEDSZ */
18533 /* Bind 4 interface w/o HFIXEDSZ */
18534 p += sizeof(HEADER);
18536 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18551 grep -v '^ *+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && {
18556 test -z "$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 } && test -s conftest$ac_exeext &&
18559 $as_test_x conftest$ac_exeext; then
18560 ol_cv_resolver_resolv=yes
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ol_cv_resolver_resolv=no
18568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18569 conftest$ac_exeext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18575 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18577 if test $ol_cv_resolver_resolv = yes ; then
18578 ol_cv_lib_resolver=-lresolv
18582 if test $ol_cv_lib_resolver = no ; then
18583 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18584 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18585 if test "${ol_cv_resolver_bind+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ol_RESOLVER_LIB=-lbind
18591 LIBS="$ol_RESOLVER_LIB $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 #ifdef HAVE_SYS_TYPES_H
18601 # include <sys/types.h>
18603 #include <netinet/in.h>
18604 #ifdef HAVE_ARPA_NAMESER_H
18605 # include <arpa/nameser.h>
18607 #ifdef HAVE_RESOLV_H
18608 # include <resolv.h>
18616 char *request = NULL;
18617 unsigned char reply[64*1024];
18618 unsigned char host[64*1024];
18622 /* Bind 8/9 interface */
18623 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18625 /* Bind 4 interface */
18629 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18633 /* Bind 8/9 interface */
18635 #elif defined(HFIXEDSZ)
18636 /* Bind 4 interface w/ HFIXEDSZ */
18639 /* Bind 4 interface w/o HFIXEDSZ */
18640 p += sizeof(HEADER);
18642 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ol_cv_resolver_bind=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ol_cv_resolver_bind=no
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18681 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18683 if test $ol_cv_resolver_bind = yes ; then
18684 ol_cv_lib_resolver=-lbind
18691 if test "$ol_cv_lib_resolver" != no ; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_RES_QUERY 1
18698 if test "$ol_enable_dnssrv" != no ; then
18702 if test "$ol_cv_lib_resolver" != yes ; then
18703 LIBS="$ol_cv_lib_resolver $LIBS"
18707 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18708 if test "$ol_link_dnssrv" = no ; then
18709 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18710 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18711 { (exit 1); exit 1; }; }
18714 ol_enable_dnssrv=no
18718 for ac_func in hstrerror
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 eval "$as_ac_var=yes"
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 eval "$as_ac_var=no"
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801 { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18832 #define $ac_func innocuous_$ac_func
18834 /* System header to define __stub macros and hopefully few prototypes,
18835 which can conflict with char $ac_func (); below.
18836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837 <limits.h> exists even on freestanding compilers. */
18840 # include <limits.h>
18842 # include <assert.h>
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18854 /* The GNU C library defines this for functions which it implements
18855 to always fail with ENOSYS. Some functions are actually named
18856 something starting with __ and the normal name is an alias. */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18864 return $ac_func ();
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest$ac_exeext &&
18886 $as_test_x conftest$ac_exeext; then
18887 eval "$as_ac_var=yes"
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 eval "$as_ac_var=no"
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896 conftest$ac_exeext conftest.$ac_ext
18898 ac_res=`eval echo '${'$as_ac_var'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18912 if test $ol_enable_ipv6 = yes ; then
18913 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18914 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18915 { (exit 1); exit 1; }; }
18917 elif test $ol_enable_ipv6 != no ; then
18918 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18919 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18920 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18931 # include <netinet/in.h>
18932 # ifdef INET6_ADDRSTRLEN
18933 __has_inet6_addrstrlen__;
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18939 ol_cv_inet6_addrstrlen=yes
18941 ol_cv_inet6_addrstrlen=no
18946 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18947 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18950 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18951 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18952 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #include <sys/types.h>
18964 #include <sys/socket.h>
18970 struct sockaddr_storage ss;
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_compile") 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } && {
18990 test -z "$ac_c_werror_flag" ||
18991 test ! -s conftest.err
18992 } && test -s conftest.$ac_objext; then
18993 ol_cv_struct_sockaddr_storage=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ol_cv_struct_sockaddr_storage=no
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19004 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19006 if test $ol_cv_inet6_addrstrlen = yes &&
19007 test $ol_cv_struct_sockaddr_storage = yes ; then
19009 elif test $ol_enable_ipv6 = yes &&
19010 test $ol_cv_inet6_addrstrlen = no ; then
19011 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19012 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19013 { (exit 1); exit 1; }; }
19014 elif test $ol_enable_ipv6 = yes &&
19015 test $ol_cv_struct_sockaddr_storage = no ; then
19016 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19017 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19018 { (exit 1); exit 1; }; }
19022 if test $ol_enable_local != no ; then
19024 for ac_header in sys/un.h
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 ac_res=`eval echo '${'$as_ac_Header'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19037 # Is the header compilable?
19038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 $ac_includes_default
19047 #include <$ac_header>
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_header_compiler=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <$ac_header>
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null && {
19102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19105 ac_header_preproc=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19140 ## --------------------------------------------- ##
19141 ## Report this to <http://www.openldap.org/its/> ##
19142 ## --------------------------------------------- ##
19144 ) | sed "s/^/$as_me: WARNING: /" >&2
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 eval "$as_ac_Header=\$ac_header_preproc"
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 if test $ol_enable_local = auto ; then
19170 ol_enable_local=$ac_cv_header_sys_un_h
19171 elif test $ac_cv_header_sys_un_h = no ; then
19172 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19173 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19174 { (exit 1); exit 1; }; }
19179 if test $ol_with_tls = yes ; then
19184 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19186 for ac_header in openssl/ssl.h
19188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 ac_res=`eval echo '${'$as_ac_Header'}'`
19196 { echo "$as_me:$LINENO: result: $ac_res" >&5
19197 echo "${ECHO_T}$ac_res" >&6; }
19199 # Is the header compilable?
19200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 $ac_includes_default
19209 #include <$ac_header>
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_compile") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_c_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest.$ac_objext; then
19228 ac_header_compiler=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_header_compiler=no
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19238 echo "${ECHO_T}$ac_header_compiler" >&6; }
19240 # Is the header present?
19241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <$ac_header>
19251 if { (ac_try="$ac_cpp conftest.$ac_ext"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } >/dev/null && {
19264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19267 ac_header_preproc=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_header_preproc=no
19275 rm -f conftest.err conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6; }
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286 ac_header_preproc=yes
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19302 ## --------------------------------------------- ##
19303 ## Report this to <http://www.openldap.org/its/> ##
19304 ## --------------------------------------------- ##
19306 ) | sed "s/^/$as_me: WARNING: /" >&2
19309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 eval "$as_ac_Header=\$ac_header_preproc"
19316 ac_res=`eval echo '${'$as_ac_Header'}'`
19317 { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19331 if test $ac_cv_header_openssl_ssl_h = yes ; then
19332 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19333 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lssl -lcrypto $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char SSL_library_init ();
19356 return SSL_library_init ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_ssl_SSL_library_init=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_ssl_SSL_library_init=no
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19392 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19393 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19401 if test $have_openssl = no ; then
19402 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19403 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19422 char ssl3_accept ();
19426 return ssl3_accept ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_ssl_ssl3_accept=yes
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_ssl_ssl3_accept=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19472 if test $have_openssl = yes ; then
19473 ol_with_tls=openssl
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19482 if test $need_rsaref = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19489 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19491 TLS_LIBS="-lssl -lcrypto"
19494 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19511 /* Require 0.9.7d+ */
19512 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19513 char *__ssl_compat = "0.9.7d";
19517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19518 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19519 ol_cv_ssl_crl_compat=yes
19521 ol_cv_ssl_crl_compat=no
19526 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19527 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19529 if test $ol_cv_ssl_crl_compat = yes ; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL_CRL 1
19540 if test $ol_link_tls = no ; then
19541 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19543 for ac_header in gnutls/gnutls.h
19545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_res=`eval echo '${'$as_ac_Header'}'`
19553 { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19556 # Is the header compilable?
19557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19566 #include <$ac_header>
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.$ac_objext; then
19585 ac_header_compiler=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_header_compiler=no
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6; }
19597 # Is the header present?
19598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 #include <$ac_header>
19608 if { (ac_try="$ac_cpp conftest.$ac_ext"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null && {
19621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19624 ac_header_preproc=yes
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_header_preproc=no
19632 rm -f conftest.err conftest.$ac_ext
19633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6; }
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19659 ## --------------------------------------------- ##
19660 ## Report this to <http://www.openldap.org/its/> ##
19661 ## --------------------------------------------- ##
19663 ) | sed "s/^/$as_me: WARNING: /" >&2
19666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 eval "$as_ac_Header=\$ac_header_preproc"
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674 { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19688 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19689 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19690 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgnutls $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19709 char gnutls_init ();
19713 return gnutls_init ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest$ac_exeext &&
19735 $as_test_x conftest$ac_exeext; then
19736 ac_cv_lib_gnutls_gnutls_init=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gnutls_gnutls_init=no
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19750 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19757 if test $have_gnutls = yes ; then
19761 TLS_LIBS="-lgnutls"
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_GNUTLS 1
19774 if test $ol_link_tls = yes ; then
19776 cat >>confdefs.h <<\_ACEOF
19781 elif test $ol_with_tls = auto ; then
19782 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19783 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19785 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19786 elif test $ol_with_tls != no ; then
19787 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19788 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19789 { (exit 1); exit 1; }; }
19791 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19792 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19795 if test $ol_enable_lmpasswd != no; then
19796 if test $ol_link_tls != yes ; then
19797 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19798 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19799 { (exit 1); exit 1; }; }
19803 cat >>confdefs.h <<\_ACEOF
19804 #define SLAPD_LMHASH 1
19811 case $ol_with_threads in auto | yes | nt)
19814 { echo "$as_me:$LINENO: checking for _beginthread" >&5
19815 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19816 if test "${ac_cv_func__beginthread+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19827 #define _beginthread innocuous__beginthread
19829 /* System header to define __stub macros and hopefully few prototypes,
19830 which can conflict with char _beginthread (); below.
19831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832 <limits.h> exists even on freestanding compilers. */
19835 # include <limits.h>
19837 # include <assert.h>
19840 #undef _beginthread
19842 /* Override any GCC internal prototype to avoid an error.
19843 Use char because int might match the return type of a GCC
19844 builtin and then its argument prototype would still apply. */
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850 to always fail with ENOSYS. Some functions are actually named
19851 something starting with __ and the normal name is an alias. */
19852 #if defined __stub__beginthread || defined __stub____beginthread
19859 return _beginthread ();
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext &&
19881 $as_test_x conftest$ac_exeext; then
19882 ac_cv_func__beginthread=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_func__beginthread=no
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891 conftest$ac_exeext conftest.$ac_ext
19893 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19894 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19897 if test $ac_cv_func__beginthread = yes ; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_NT_THREADS 1
19903 ol_cv_nt_threads=yes
19907 if test "$ol_cv_nt_threads" = yes ; then
19909 ol_with_threads=found
19910 ol_with_yielding_select=yes
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_NT_SERVICE_MANAGER 1
19918 cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_NT_EVENT_LOG 1
19924 if test $ol_with_threads = nt ; then
19925 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19926 echo "$as_me: error: could not locate NT Threads" >&2;}
19927 { (exit 1); exit 1; }; }
19932 case $ol_with_threads in auto | yes | posix)
19935 for ac_header in pthread.h
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19948 # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19958 #include <$ac_header>
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_header_compiler=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_header_compiler=no
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6; }
19989 # Is the header present?
19990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <$ac_header>
20000 if { (ac_try="$ac_cpp conftest.$ac_ext"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } >/dev/null && {
20013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20016 ac_header_preproc=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 ## --------------------------------------------- ##
20052 ## Report this to <http://www.openldap.org/its/> ##
20053 ## --------------------------------------------- ##
20055 ) | sed "s/^/$as_me: WARNING: /" >&2
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 eval "$as_ac_Header=\$ac_header_preproc"
20065 ac_res=`eval echo '${'$as_ac_Header'}'`
20066 { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20080 if test $ac_cv_header_pthread_h = yes ; then
20081 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20082 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20083 if test "${ol_cv_pthread_version+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 # include <pthread.h>
20100 int i = PTHREAD_CREATE_JOINABLE;
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20115 grep -v '^ *+' conftest.er1 >conftest.err
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest.$ac_objext; then
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 #include <pthread.h>
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134 $EGREP "pthread_detach" >/dev/null 2>&1; then
20135 ol_cv_pthread_version=10
20137 ol_cv_pthread_version=8
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 # include <pthread.h>
20154 # ifdef PTHREAD_CREATE_UNDETACHED
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160 $EGREP "draft7" >/dev/null 2>&1; then
20161 ol_cv_pthread_version=7
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 #include <pthread.h>
20173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20174 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20175 ol_cv_pthread_version=6
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20185 # include <pthread.h>
20186 #ifdef PTHREAD_MUTEX_INITIALIZER
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192 $EGREP "draft5" >/dev/null 2>&1; then
20193 ol_cv_pthread_version=5
20195 ol_cv_pthread_version=4
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20211 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20214 if test $ol_cv_pthread_version != 0 ; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_PTHREADS $ol_cv_pthread_version
20221 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20222 echo "$as_me: error: unknown pthread version" >&2;}
20223 { (exit 1); exit 1; }; }
20226 # consider threads found
20227 ol_with_threads=found
20230 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20231 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20232 if test "${ol_cv_header_linux_threads+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <pthread.h>
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20245 ol_cv_header_linux_threads=yes
20247 ol_cv_header_linux_threads=no
20253 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20254 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20255 if test $ol_cv_header_linux_threads = yes; then
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_LINUX_THREADS 1
20264 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20265 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20266 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 #include <pthread.h>
20276 #ifdef _POSIX_THREAD_IS_GNU_PTH
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20283 ol_cv_header_gnu_pth_pthread_h=yes
20285 ol_cv_header_gnu_pth_pthread_h=no
20291 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20292 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20295 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20297 for ac_header in sched.h
20299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307 { echo "$as_me:$LINENO: result: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20310 # Is the header compilable?
20311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 $ac_includes_default
20320 #include <$ac_header>
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_compile") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest.$ac_objext; then
20339 ac_header_compiler=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_compiler=no
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20349 echo "${ECHO_T}$ac_header_compiler" >&6; }
20351 # Is the header present?
20352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 #include <$ac_header>
20362 if { (ac_try="$ac_cpp conftest.$ac_ext"
20363 case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } >/dev/null && {
20375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20376 test ! -s conftest.err
20378 ac_header_preproc=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ac_header_preproc=no
20386 rm -f conftest.err conftest.$ac_ext
20387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20388 echo "${ECHO_T}$ac_header_preproc" >&6; }
20390 # So? What about this header?
20391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20397 ac_header_preproc=yes
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20413 ## --------------------------------------------- ##
20414 ## Report this to <http://www.openldap.org/its/> ##
20415 ## --------------------------------------------- ##
20417 ) | sed "s/^/$as_me: WARNING: /" >&2
20420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 eval "$as_ac_Header=\$ac_header_preproc"
20427 ac_res=`eval echo '${'$as_ac_Header'}'`
20428 { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20433 cat >>confdefs.h <<_ACEOF
20434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20444 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20445 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20446 if test "${ol_cv_pthread_create+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 if test "$cross_compiling" = yes; then
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* pthread test headers */
20459 #include <pthread.h>
20460 #if HAVE_PTHREADS < 7
20464 #define NULL (void*)0
20467 static void *task(p)
20470 return (void *) (p == NULL);
20477 /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20483 int detach = PTHREAD_CREATE_DETACHED;
20485 #if HAVE_PTHREADS > 4
20486 /* Final pthreads */
20487 pthread_attr_t attr;
20489 status = pthread_attr_init(&attr);
20490 if( status ) return status;
20492 #if HAVE_PTHREADS < 7
20493 status = pthread_attr_setdetachstate(&attr, &detach);
20494 if( status < 0 ) status = errno;
20496 status = pthread_attr_setdetachstate(&attr, detach);
20498 if( status ) return status;
20499 status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501 if( status < 0 ) status = errno;
20503 if( status ) return status;
20505 /* Draft 4 pthreads */
20506 status = pthread_create( &t, pthread_attr_default, task, NULL );
20507 if( status ) return errno;
20509 /* give thread a chance to complete */
20510 /* it should remain joinable and hence detachable */
20513 status = pthread_detach( &t );
20514 if( status ) return errno;
20517 #ifdef HAVE_LINUX_THREADS
20518 pthread_kill_other_threads_np();
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_link") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest$ac_exeext &&
20544 $as_test_x conftest$ac_exeext; then
20545 ol_cv_pthread_create=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ol_cv_pthread_create=no
20553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554 conftest$ac_exeext conftest.$ac_ext
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* pthread test headers */
20564 #include <pthread.h>
20565 #if HAVE_PTHREADS < 7
20569 #define NULL (void*)0
20572 static void *task(p)
20575 return (void *) (p == NULL);
20579 int main(argc, argv)
20584 /* pthread test function */
20585 #ifndef PTHREAD_CREATE_DETACHED
20586 #define PTHREAD_CREATE_DETACHED 1
20590 int detach = PTHREAD_CREATE_DETACHED;
20592 #if HAVE_PTHREADS > 4
20593 /* Final pthreads */
20594 pthread_attr_t attr;
20596 status = pthread_attr_init(&attr);
20597 if( status ) return status;
20599 #if HAVE_PTHREADS < 7
20600 status = pthread_attr_setdetachstate(&attr, &detach);
20601 if( status < 0 ) status = errno;
20603 status = pthread_attr_setdetachstate(&attr, detach);
20605 if( status ) return status;
20606 status = pthread_create( &t, &attr, task, NULL );
20607 #if HAVE_PTHREADS < 7
20608 if( status < 0 ) status = errno;
20610 if( status ) return status;
20612 /* Draft 4 pthreads */
20613 status = pthread_create( &t, pthread_attr_default, task, NULL );
20614 if( status ) return errno;
20616 /* give thread a chance to complete */
20617 /* it should remain joinable and hence detachable */
20620 status = pthread_detach( &t );
20621 if( status ) return errno;
20624 #ifdef HAVE_LINUX_THREADS
20625 pthread_kill_other_threads_np();
20633 rm -f conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_link") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ol_cv_pthread_create=yes
20655 echo "$as_me: program exited with status $ac_status" >&5
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ( exit $ac_status )
20660 ol_cv_pthread_create=no
20662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20668 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20670 if test $ol_cv_pthread_create != no ; then
20671 ol_link_threads=posix
20672 ol_link_pthreads=""
20675 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20676 if test "$ol_link_threads" = no ; then
20678 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20679 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20680 if test "${ol_cv_pthread_kthread+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 LIBS="-kthread $LIBS"
20688 if test "$cross_compiling" = yes; then
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20696 /* pthread test headers */
20697 #include <pthread.h>
20698 #if HAVE_PTHREADS < 7
20702 #define NULL (void*)0
20705 static void *task(p)
20708 return (void *) (p == NULL);
20715 /* pthread test function */
20716 #ifndef PTHREAD_CREATE_DETACHED
20717 #define PTHREAD_CREATE_DETACHED 1
20721 int detach = PTHREAD_CREATE_DETACHED;
20723 #if HAVE_PTHREADS > 4
20724 /* Final pthreads */
20725 pthread_attr_t attr;
20727 status = pthread_attr_init(&attr);
20728 if( status ) return status;
20730 #if HAVE_PTHREADS < 7
20731 status = pthread_attr_setdetachstate(&attr, &detach);
20732 if( status < 0 ) status = errno;
20734 status = pthread_attr_setdetachstate(&attr, detach);
20736 if( status ) return status;
20737 status = pthread_create( &t, &attr, task, NULL );
20738 #if HAVE_PTHREADS < 7
20739 if( status < 0 ) status = errno;
20741 if( status ) return status;
20743 /* Draft 4 pthreads */
20744 status = pthread_create( &t, pthread_attr_default, task, NULL );
20745 if( status ) return errno;
20747 /* give thread a chance to complete */
20748 /* it should remain joinable and hence detachable */
20751 status = pthread_detach( &t );
20752 if( status ) return errno;
20755 #ifdef HAVE_LINUX_THREADS
20756 pthread_kill_other_threads_np();
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest$ac_exeext &&
20782 $as_test_x conftest$ac_exeext; then
20783 ol_cv_pthread_kthread=yes
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ol_cv_pthread_kthread=no
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792 conftest$ac_exeext conftest.$ac_ext
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20801 /* pthread test headers */
20802 #include <pthread.h>
20803 #if HAVE_PTHREADS < 7
20807 #define NULL (void*)0
20810 static void *task(p)
20813 return (void *) (p == NULL);
20817 int main(argc, argv)
20822 /* pthread test function */
20823 #ifndef PTHREAD_CREATE_DETACHED
20824 #define PTHREAD_CREATE_DETACHED 1
20828 int detach = PTHREAD_CREATE_DETACHED;
20830 #if HAVE_PTHREADS > 4
20831 /* Final pthreads */
20832 pthread_attr_t attr;
20834 status = pthread_attr_init(&attr);
20835 if( status ) return status;
20837 #if HAVE_PTHREADS < 7
20838 status = pthread_attr_setdetachstate(&attr, &detach);
20839 if( status < 0 ) status = errno;
20841 status = pthread_attr_setdetachstate(&attr, detach);
20843 if( status ) return status;
20844 status = pthread_create( &t, &attr, task, NULL );
20845 #if HAVE_PTHREADS < 7
20846 if( status < 0 ) status = errno;
20848 if( status ) return status;
20850 /* Draft 4 pthreads */
20851 status = pthread_create( &t, pthread_attr_default, task, NULL );
20852 if( status ) return errno;
20854 /* give thread a chance to complete */
20855 /* it should remain joinable and hence detachable */
20858 status = pthread_detach( &t );
20859 if( status ) return errno;
20862 #ifdef HAVE_LINUX_THREADS
20863 pthread_kill_other_threads_np();
20871 rm -f conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 ol_cv_pthread_kthread=yes
20893 echo "$as_me: program exited with status $ac_status" >&5
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ( exit $ac_status )
20898 ol_cv_pthread_kthread=no
20900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20910 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20912 if test $ol_cv_pthread_kthread = yes ; then
20913 ol_link_pthreads="-kthread"
20914 ol_link_threads=posix
20918 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20919 if test "$ol_link_threads" = no ; then
20921 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20922 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20923 if test "${ol_cv_pthread_pthread+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 LIBS="-pthread $LIBS"
20931 if test "$cross_compiling" = yes; then
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20939 /* pthread test headers */
20940 #include <pthread.h>
20941 #if HAVE_PTHREADS < 7
20945 #define NULL (void*)0
20948 static void *task(p)
20951 return (void *) (p == NULL);
20958 /* pthread test function */
20959 #ifndef PTHREAD_CREATE_DETACHED
20960 #define PTHREAD_CREATE_DETACHED 1
20964 int detach = PTHREAD_CREATE_DETACHED;
20966 #if HAVE_PTHREADS > 4
20967 /* Final pthreads */
20968 pthread_attr_t attr;
20970 status = pthread_attr_init(&attr);
20971 if( status ) return status;
20973 #if HAVE_PTHREADS < 7
20974 status = pthread_attr_setdetachstate(&attr, &detach);
20975 if( status < 0 ) status = errno;
20977 status = pthread_attr_setdetachstate(&attr, detach);
20979 if( status ) return status;
20980 status = pthread_create( &t, &attr, task, NULL );
20981 #if HAVE_PTHREADS < 7
20982 if( status < 0 ) status = errno;
20984 if( status ) return status;
20986 /* Draft 4 pthreads */
20987 status = pthread_create( &t, pthread_attr_default, task, NULL );
20988 if( status ) return errno;
20990 /* give thread a chance to complete */
20991 /* it should remain joinable and hence detachable */
20994 status = pthread_detach( &t );
20995 if( status ) return errno;
20998 #ifdef HAVE_LINUX_THREADS
20999 pthread_kill_other_threads_np();
21008 rm -f conftest.$ac_objext conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_link") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest$ac_exeext &&
21025 $as_test_x conftest$ac_exeext; then
21026 ol_cv_pthread_pthread=yes
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ol_cv_pthread_pthread=no
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035 conftest$ac_exeext conftest.$ac_ext
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21044 /* pthread test headers */
21045 #include <pthread.h>
21046 #if HAVE_PTHREADS < 7
21050 #define NULL (void*)0
21053 static void *task(p)
21056 return (void *) (p == NULL);
21060 int main(argc, argv)
21065 /* pthread test function */
21066 #ifndef PTHREAD_CREATE_DETACHED
21067 #define PTHREAD_CREATE_DETACHED 1
21071 int detach = PTHREAD_CREATE_DETACHED;
21073 #if HAVE_PTHREADS > 4
21074 /* Final pthreads */
21075 pthread_attr_t attr;
21077 status = pthread_attr_init(&attr);
21078 if( status ) return status;
21080 #if HAVE_PTHREADS < 7
21081 status = pthread_attr_setdetachstate(&attr, &detach);
21082 if( status < 0 ) status = errno;
21084 status = pthread_attr_setdetachstate(&attr, detach);
21086 if( status ) return status;
21087 status = pthread_create( &t, &attr, task, NULL );
21088 #if HAVE_PTHREADS < 7
21089 if( status < 0 ) status = errno;
21091 if( status ) return status;
21093 /* Draft 4 pthreads */
21094 status = pthread_create( &t, pthread_attr_default, task, NULL );
21095 if( status ) return errno;
21097 /* give thread a chance to complete */
21098 /* it should remain joinable and hence detachable */
21101 status = pthread_detach( &t );
21102 if( status ) return errno;
21105 #ifdef HAVE_LINUX_THREADS
21106 pthread_kill_other_threads_np();
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_link") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125 { (case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_try") 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ol_cv_pthread_pthread=yes
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21152 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21155 if test $ol_cv_pthread_pthread = yes ; then
21156 ol_link_pthreads="-pthread"
21157 ol_link_threads=posix
21161 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21162 if test "$ol_link_threads" = no ; then
21164 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21166 if test "${ol_cv_pthread_pthreads+set}" = set; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 LIBS="-pthreads $LIBS"
21174 if test "$cross_compiling" = yes; then
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* pthread test headers */
21183 #include <pthread.h>
21184 #if HAVE_PTHREADS < 7
21188 #define NULL (void*)0
21191 static void *task(p)
21194 return (void *) (p == NULL);
21201 /* pthread test function */
21202 #ifndef PTHREAD_CREATE_DETACHED
21203 #define PTHREAD_CREATE_DETACHED 1
21207 int detach = PTHREAD_CREATE_DETACHED;
21209 #if HAVE_PTHREADS > 4
21210 /* Final pthreads */
21211 pthread_attr_t attr;
21213 status = pthread_attr_init(&attr);
21214 if( status ) return status;
21216 #if HAVE_PTHREADS < 7
21217 status = pthread_attr_setdetachstate(&attr, &detach);
21218 if( status < 0 ) status = errno;
21220 status = pthread_attr_setdetachstate(&attr, detach);
21222 if( status ) return status;
21223 status = pthread_create( &t, &attr, task, NULL );
21224 #if HAVE_PTHREADS < 7
21225 if( status < 0 ) status = errno;
21227 if( status ) return status;
21229 /* Draft 4 pthreads */
21230 status = pthread_create( &t, pthread_attr_default, task, NULL );
21231 if( status ) return errno;
21233 /* give thread a chance to complete */
21234 /* it should remain joinable and hence detachable */
21237 status = pthread_detach( &t );
21238 if( status ) return errno;
21241 #ifdef HAVE_LINUX_THREADS
21242 pthread_kill_other_threads_np();
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_link") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext &&
21268 $as_test_x conftest$ac_exeext; then
21269 ol_cv_pthread_pthreads=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ol_cv_pthread_pthreads=no
21277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278 conftest$ac_exeext conftest.$ac_ext
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 /* pthread test headers */
21288 #include <pthread.h>
21289 #if HAVE_PTHREADS < 7
21293 #define NULL (void*)0
21296 static void *task(p)
21299 return (void *) (p == NULL);
21303 int main(argc, argv)
21308 /* pthread test function */
21309 #ifndef PTHREAD_CREATE_DETACHED
21310 #define PTHREAD_CREATE_DETACHED 1
21314 int detach = PTHREAD_CREATE_DETACHED;
21316 #if HAVE_PTHREADS > 4
21317 /* Final pthreads */
21318 pthread_attr_t attr;
21320 status = pthread_attr_init(&attr);
21321 if( status ) return status;
21323 #if HAVE_PTHREADS < 7
21324 status = pthread_attr_setdetachstate(&attr, &detach);
21325 if( status < 0 ) status = errno;
21327 status = pthread_attr_setdetachstate(&attr, detach);
21329 if( status ) return status;
21330 status = pthread_create( &t, &attr, task, NULL );
21331 #if HAVE_PTHREADS < 7
21332 if( status < 0 ) status = errno;
21334 if( status ) return status;
21336 /* Draft 4 pthreads */
21337 status = pthread_create( &t, pthread_attr_default, task, NULL );
21338 if( status ) return errno;
21340 /* give thread a chance to complete */
21341 /* it should remain joinable and hence detachable */
21344 status = pthread_detach( &t );
21345 if( status ) return errno;
21348 #ifdef HAVE_LINUX_THREADS
21349 pthread_kill_other_threads_np();
21357 rm -f conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_link") 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ol_cv_pthread_pthreads=yes
21379 echo "$as_me: program exited with status $ac_status" >&5
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ( exit $ac_status )
21384 ol_cv_pthread_pthreads=no
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21398 if test $ol_cv_pthread_pthreads = yes ; then
21399 ol_link_pthreads="-pthreads"
21400 ol_link_threads=posix
21404 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21405 if test "$ol_link_threads" = no ; then
21407 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21408 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21409 if test "${ol_cv_pthread_mthreads+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 LIBS="-mthreads $LIBS"
21417 if test "$cross_compiling" = yes; then
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21431 #define NULL (void*)0
21434 static void *task(p)
21437 return (void *) (p == NULL);
21444 /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21450 int detach = PTHREAD_CREATE_DETACHED;
21452 #if HAVE_PTHREADS > 4
21453 /* Final pthreads */
21454 pthread_attr_t attr;
21456 status = pthread_attr_init(&attr);
21457 if( status ) return status;
21459 #if HAVE_PTHREADS < 7
21460 status = pthread_attr_setdetachstate(&attr, &detach);
21461 if( status < 0 ) status = errno;
21463 status = pthread_attr_setdetachstate(&attr, detach);
21465 if( status ) return status;
21466 status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468 if( status < 0 ) status = errno;
21470 if( status ) return status;
21472 /* Draft 4 pthreads */
21473 status = pthread_create( &t, pthread_attr_default, task, NULL );
21474 if( status ) return errno;
21476 /* give thread a chance to complete */
21477 /* it should remain joinable and hence detachable */
21480 status = pthread_detach( &t );
21481 if( status ) return errno;
21484 #ifdef HAVE_LINUX_THREADS
21485 pthread_kill_other_threads_np();
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_link") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest$ac_exeext &&
21511 $as_test_x conftest$ac_exeext; then
21512 ol_cv_pthread_mthreads=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ol_cv_pthread_mthreads=no
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21530 /* pthread test headers */
21531 #include <pthread.h>
21532 #if HAVE_PTHREADS < 7
21536 #define NULL (void*)0
21539 static void *task(p)
21542 return (void *) (p == NULL);
21546 int main(argc, argv)
21551 /* pthread test function */
21552 #ifndef PTHREAD_CREATE_DETACHED
21553 #define PTHREAD_CREATE_DETACHED 1
21557 int detach = PTHREAD_CREATE_DETACHED;
21559 #if HAVE_PTHREADS > 4
21560 /* Final pthreads */
21561 pthread_attr_t attr;
21563 status = pthread_attr_init(&attr);
21564 if( status ) return status;
21566 #if HAVE_PTHREADS < 7
21567 status = pthread_attr_setdetachstate(&attr, &detach);
21568 if( status < 0 ) status = errno;
21570 status = pthread_attr_setdetachstate(&attr, detach);
21572 if( status ) return status;
21573 status = pthread_create( &t, &attr, task, NULL );
21574 #if HAVE_PTHREADS < 7
21575 if( status < 0 ) status = errno;
21577 if( status ) return status;
21579 /* Draft 4 pthreads */
21580 status = pthread_create( &t, pthread_attr_default, task, NULL );
21581 if( status ) return errno;
21583 /* give thread a chance to complete */
21584 /* it should remain joinable and hence detachable */
21587 status = pthread_detach( &t );
21588 if( status ) return errno;
21591 #ifdef HAVE_LINUX_THREADS
21592 pthread_kill_other_threads_np();
21600 rm -f conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ol_cv_pthread_mthreads=yes
21622 echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ( exit $ac_status )
21627 ol_cv_pthread_mthreads=no
21629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21639 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21641 if test $ol_cv_pthread_mthreads = yes ; then
21642 ol_link_pthreads="-mthreads"
21643 ol_link_threads=posix
21647 # Pthread try link: -thread (ol_cv_pthread_thread)
21648 if test "$ol_link_threads" = no ; then
21650 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21651 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21652 if test "${ol_cv_pthread_thread+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 LIBS="-thread $LIBS"
21660 if test "$cross_compiling" = yes; then
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* pthread test headers */
21669 #include <pthread.h>
21670 #if HAVE_PTHREADS < 7
21674 #define NULL (void*)0
21677 static void *task(p)
21680 return (void *) (p == NULL);
21687 /* pthread test function */
21688 #ifndef PTHREAD_CREATE_DETACHED
21689 #define PTHREAD_CREATE_DETACHED 1
21693 int detach = PTHREAD_CREATE_DETACHED;
21695 #if HAVE_PTHREADS > 4
21696 /* Final pthreads */
21697 pthread_attr_t attr;
21699 status = pthread_attr_init(&attr);
21700 if( status ) return status;
21702 #if HAVE_PTHREADS < 7
21703 status = pthread_attr_setdetachstate(&attr, &detach);
21704 if( status < 0 ) status = errno;
21706 status = pthread_attr_setdetachstate(&attr, detach);
21708 if( status ) return status;
21709 status = pthread_create( &t, &attr, task, NULL );
21710 #if HAVE_PTHREADS < 7
21711 if( status < 0 ) status = errno;
21713 if( status ) return status;
21715 /* Draft 4 pthreads */
21716 status = pthread_create( &t, pthread_attr_default, task, NULL );
21717 if( status ) return errno;
21719 /* give thread a chance to complete */
21720 /* it should remain joinable and hence detachable */
21723 status = pthread_detach( &t );
21724 if( status ) return errno;
21727 #ifdef HAVE_LINUX_THREADS
21728 pthread_kill_other_threads_np();
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (ac_try="$ac_link"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_link") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest$ac_exeext &&
21754 $as_test_x conftest$ac_exeext; then
21755 ol_cv_pthread_thread=yes
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ol_cv_pthread_thread=no
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764 conftest$ac_exeext conftest.$ac_ext
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21773 /* pthread test headers */
21774 #include <pthread.h>
21775 #if HAVE_PTHREADS < 7
21779 #define NULL (void*)0
21782 static void *task(p)
21785 return (void *) (p == NULL);
21789 int main(argc, argv)
21794 /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21800 int detach = PTHREAD_CREATE_DETACHED;
21802 #if HAVE_PTHREADS > 4
21803 /* Final pthreads */
21804 pthread_attr_t attr;
21806 status = pthread_attr_init(&attr);
21807 if( status ) return status;
21809 #if HAVE_PTHREADS < 7
21810 status = pthread_attr_setdetachstate(&attr, &detach);
21811 if( status < 0 ) status = errno;
21813 status = pthread_attr_setdetachstate(&attr, detach);
21815 if( status ) return status;
21816 status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818 if( status < 0 ) status = errno;
21820 if( status ) return status;
21822 /* Draft 4 pthreads */
21823 status = pthread_create( &t, pthread_attr_default, task, NULL );
21824 if( status ) return errno;
21826 /* give thread a chance to complete */
21827 /* it should remain joinable and hence detachable */
21830 status = pthread_detach( &t );
21831 if( status ) return errno;
21834 #ifdef HAVE_LINUX_THREADS
21835 pthread_kill_other_threads_np();
21843 rm -f conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_link") 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21854 { (case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_try") 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 ol_cv_pthread_thread=yes
21865 echo "$as_me: program exited with status $ac_status" >&5
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21869 ( exit $ac_status )
21870 ol_cv_pthread_thread=no
21872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21882 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21884 if test $ol_cv_pthread_thread = yes ; then
21885 ol_link_pthreads="-thread"
21886 ol_link_threads=posix
21891 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21892 if test "$ol_link_threads" = no ; then
21893 # try -lpthread -lmach -lexc -lc_r
21894 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21895 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21896 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21904 if test "$cross_compiling" = yes; then
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21912 /* pthread test headers */
21913 #include <pthread.h>
21914 #if HAVE_PTHREADS < 7
21918 #define NULL (void*)0
21921 static void *task(p)
21924 return (void *) (p == NULL);
21931 /* pthread test function */
21932 #ifndef PTHREAD_CREATE_DETACHED
21933 #define PTHREAD_CREATE_DETACHED 1
21937 int detach = PTHREAD_CREATE_DETACHED;
21939 #if HAVE_PTHREADS > 4
21940 /* Final pthreads */
21941 pthread_attr_t attr;
21943 status = pthread_attr_init(&attr);
21944 if( status ) return status;
21946 #if HAVE_PTHREADS < 7
21947 status = pthread_attr_setdetachstate(&attr, &detach);
21948 if( status < 0 ) status = errno;
21950 status = pthread_attr_setdetachstate(&attr, detach);
21952 if( status ) return status;
21953 status = pthread_create( &t, &attr, task, NULL );
21954 #if HAVE_PTHREADS < 7
21955 if( status < 0 ) status = errno;
21957 if( status ) return status;
21959 /* Draft 4 pthreads */
21960 status = pthread_create( &t, pthread_attr_default, task, NULL );
21961 if( status ) return errno;
21963 /* give thread a chance to complete */
21964 /* it should remain joinable and hence detachable */
21967 status = pthread_detach( &t );
21968 if( status ) return errno;
21971 #ifdef HAVE_LINUX_THREADS
21972 pthread_kill_other_threads_np();
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_link") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext &&
21998 $as_test_x conftest$ac_exeext; then
21999 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008 conftest$ac_exeext conftest.$ac_ext
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22017 /* pthread test headers */
22018 #include <pthread.h>
22019 #if HAVE_PTHREADS < 7
22023 #define NULL (void*)0
22026 static void *task(p)
22029 return (void *) (p == NULL);
22033 int main(argc, argv)
22038 /* pthread test function */
22039 #ifndef PTHREAD_CREATE_DETACHED
22040 #define PTHREAD_CREATE_DETACHED 1
22044 int detach = PTHREAD_CREATE_DETACHED;
22046 #if HAVE_PTHREADS > 4
22047 /* Final pthreads */
22048 pthread_attr_t attr;
22050 status = pthread_attr_init(&attr);
22051 if( status ) return status;
22053 #if HAVE_PTHREADS < 7
22054 status = pthread_attr_setdetachstate(&attr, &detach);
22055 if( status < 0 ) status = errno;
22057 status = pthread_attr_setdetachstate(&attr, detach);
22059 if( status ) return status;
22060 status = pthread_create( &t, &attr, task, NULL );
22061 #if HAVE_PTHREADS < 7
22062 if( status < 0 ) status = errno;
22064 if( status ) return status;
22066 /* Draft 4 pthreads */
22067 status = pthread_create( &t, pthread_attr_default, task, NULL );
22068 if( status ) return errno;
22070 /* give thread a chance to complete */
22071 /* it should remain joinable and hence detachable */
22074 status = pthread_detach( &t );
22075 if( status ) return errno;
22078 #ifdef HAVE_LINUX_THREADS
22079 pthread_kill_other_threads_np();
22087 rm -f conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098 { (case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_try") 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22109 echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ( exit $ac_status )
22114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22126 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22128 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22129 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22130 ol_link_threads=posix
22134 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22135 if test "$ol_link_threads" = no ; then
22136 # try -lpthread -lmach -lexc
22137 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22138 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22139 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 LIBS="-lpthread -lmach -lexc $LIBS"
22147 if test "$cross_compiling" = yes; then
22148 cat >conftest.$ac_ext <<_ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22155 /* pthread test headers */
22156 #include <pthread.h>
22157 #if HAVE_PTHREADS < 7
22161 #define NULL (void*)0
22164 static void *task(p)
22167 return (void *) (p == NULL);
22174 /* pthread test function */
22175 #ifndef PTHREAD_CREATE_DETACHED
22176 #define PTHREAD_CREATE_DETACHED 1
22180 int detach = PTHREAD_CREATE_DETACHED;
22182 #if HAVE_PTHREADS > 4
22183 /* Final pthreads */
22184 pthread_attr_t attr;
22186 status = pthread_attr_init(&attr);
22187 if( status ) return status;
22189 #if HAVE_PTHREADS < 7
22190 status = pthread_attr_setdetachstate(&attr, &detach);
22191 if( status < 0 ) status = errno;
22193 status = pthread_attr_setdetachstate(&attr, detach);
22195 if( status ) return status;
22196 status = pthread_create( &t, &attr, task, NULL );
22197 #if HAVE_PTHREADS < 7
22198 if( status < 0 ) status = errno;
22200 if( status ) return status;
22202 /* Draft 4 pthreads */
22203 status = pthread_create( &t, pthread_attr_default, task, NULL );
22204 if( status ) return errno;
22206 /* give thread a chance to complete */
22207 /* it should remain joinable and hence detachable */
22210 status = pthread_detach( &t );
22211 if( status ) return errno;
22214 #ifdef HAVE_LINUX_THREADS
22215 pthread_kill_other_threads_np();
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest$ac_exeext &&
22241 $as_test_x conftest$ac_exeext; then
22242 ol_cv_pthread_lpthread_lmach_lexc=yes
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ol_cv_pthread_lpthread_lmach_lexc=no
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251 conftest$ac_exeext conftest.$ac_ext
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 /* pthread test headers */
22261 #include <pthread.h>
22262 #if HAVE_PTHREADS < 7
22266 #define NULL (void*)0
22269 static void *task(p)
22272 return (void *) (p == NULL);
22276 int main(argc, argv)
22281 /* pthread test function */
22282 #ifndef PTHREAD_CREATE_DETACHED
22283 #define PTHREAD_CREATE_DETACHED 1
22287 int detach = PTHREAD_CREATE_DETACHED;
22289 #if HAVE_PTHREADS > 4
22290 /* Final pthreads */
22291 pthread_attr_t attr;
22293 status = pthread_attr_init(&attr);
22294 if( status ) return status;
22296 #if HAVE_PTHREADS < 7
22297 status = pthread_attr_setdetachstate(&attr, &detach);
22298 if( status < 0 ) status = errno;
22300 status = pthread_attr_setdetachstate(&attr, detach);
22302 if( status ) return status;
22303 status = pthread_create( &t, &attr, task, NULL );
22304 #if HAVE_PTHREADS < 7
22305 if( status < 0 ) status = errno;
22307 if( status ) return status;
22309 /* Draft 4 pthreads */
22310 status = pthread_create( &t, pthread_attr_default, task, NULL );
22311 if( status ) return errno;
22313 /* give thread a chance to complete */
22314 /* it should remain joinable and hence detachable */
22317 status = pthread_detach( &t );
22318 if( status ) return errno;
22321 #ifdef HAVE_LINUX_THREADS
22322 pthread_kill_other_threads_np();
22330 rm -f conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22341 { (case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_try") 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); }; }; then
22350 ol_cv_pthread_lpthread_lmach_lexc=yes
22352 echo "$as_me: program exited with status $ac_status" >&5
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ( exit $ac_status )
22357 ol_cv_pthread_lpthread_lmach_lexc=no
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22368 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22369 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22371 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22372 ol_link_pthreads="-lpthread -lmach -lexc"
22373 ol_link_threads=posix
22378 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22379 if test "$ol_link_threads" = no ; then
22380 # try -lpthread -Wl,-woff,85
22381 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22382 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22383 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22384 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22391 if test "$cross_compiling" = yes; then
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22399 /* pthread test headers */
22400 #include <pthread.h>
22401 #if HAVE_PTHREADS < 7
22405 #define NULL (void*)0
22408 static void *task(p)
22411 return (void *) (p == NULL);
22418 /* pthread test function */
22419 #ifndef PTHREAD_CREATE_DETACHED
22420 #define PTHREAD_CREATE_DETACHED 1
22424 int detach = PTHREAD_CREATE_DETACHED;
22426 #if HAVE_PTHREADS > 4
22427 /* Final pthreads */
22428 pthread_attr_t attr;
22430 status = pthread_attr_init(&attr);
22431 if( status ) return status;
22433 #if HAVE_PTHREADS < 7
22434 status = pthread_attr_setdetachstate(&attr, &detach);
22435 if( status < 0 ) status = errno;
22437 status = pthread_attr_setdetachstate(&attr, detach);
22439 if( status ) return status;
22440 status = pthread_create( &t, &attr, task, NULL );
22441 #if HAVE_PTHREADS < 7
22442 if( status < 0 ) status = errno;
22444 if( status ) return status;
22446 /* Draft 4 pthreads */
22447 status = pthread_create( &t, pthread_attr_default, task, NULL );
22448 if( status ) return errno;
22450 /* give thread a chance to complete */
22451 /* it should remain joinable and hence detachable */
22454 status = pthread_detach( &t );
22455 if( status ) return errno;
22458 #ifdef HAVE_LINUX_THREADS
22459 pthread_kill_other_threads_np();
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (ac_try="$ac_link"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_link") 2>conftest.er1
22477 grep -v '^ *+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest$ac_exeext &&
22485 $as_test_x conftest$ac_exeext; then
22486 ol_cv_pthread_lib_lpthread_woff=yes
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ol_cv_pthread_lib_lpthread_woff=no
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495 conftest$ac_exeext conftest.$ac_ext
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22504 /* pthread test headers */
22505 #include <pthread.h>
22506 #if HAVE_PTHREADS < 7
22510 #define NULL (void*)0
22513 static void *task(p)
22516 return (void *) (p == NULL);
22520 int main(argc, argv)
22525 /* pthread test function */
22526 #ifndef PTHREAD_CREATE_DETACHED
22527 #define PTHREAD_CREATE_DETACHED 1
22531 int detach = PTHREAD_CREATE_DETACHED;
22533 #if HAVE_PTHREADS > 4
22534 /* Final pthreads */
22535 pthread_attr_t attr;
22537 status = pthread_attr_init(&attr);
22538 if( status ) return status;
22540 #if HAVE_PTHREADS < 7
22541 status = pthread_attr_setdetachstate(&attr, &detach);
22542 if( status < 0 ) status = errno;
22544 status = pthread_attr_setdetachstate(&attr, detach);
22546 if( status ) return status;
22547 status = pthread_create( &t, &attr, task, NULL );
22548 #if HAVE_PTHREADS < 7
22549 if( status < 0 ) status = errno;
22551 if( status ) return status;
22553 /* Draft 4 pthreads */
22554 status = pthread_create( &t, pthread_attr_default, task, NULL );
22555 if( status ) return errno;
22557 /* give thread a chance to complete */
22558 /* it should remain joinable and hence detachable */
22561 status = pthread_detach( &t );
22562 if( status ) return errno;
22565 #ifdef HAVE_LINUX_THREADS
22566 pthread_kill_other_threads_np();
22574 rm -f conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_link") 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585 { (case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_try") 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; }; then
22594 ol_cv_pthread_lib_lpthread_woff=yes
22596 echo "$as_me: program exited with status $ac_status" >&5
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ( exit $ac_status )
22601 ol_cv_pthread_lib_lpthread_woff=no
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22613 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22615 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22616 ol_link_pthreads="-lpthread -Wl,-woff,85"
22617 ol_link_threads=posix
22622 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22623 if test "$ol_link_threads" = no ; then
22625 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22626 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22627 if test "${ol_cv_pthread_lpthread+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 LIBS="-lpthread $LIBS"
22635 if test "$cross_compiling" = yes; then
22636 cat >conftest.$ac_ext <<_ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22643 /* pthread test headers */
22644 #include <pthread.h>
22645 #if HAVE_PTHREADS < 7
22649 #define NULL (void*)0
22652 static void *task(p)
22655 return (void *) (p == NULL);
22662 /* pthread test function */
22663 #ifndef PTHREAD_CREATE_DETACHED
22664 #define PTHREAD_CREATE_DETACHED 1
22668 int detach = PTHREAD_CREATE_DETACHED;
22670 #if HAVE_PTHREADS > 4
22671 /* Final pthreads */
22672 pthread_attr_t attr;
22674 status = pthread_attr_init(&attr);
22675 if( status ) return status;
22677 #if HAVE_PTHREADS < 7
22678 status = pthread_attr_setdetachstate(&attr, &detach);
22679 if( status < 0 ) status = errno;
22681 status = pthread_attr_setdetachstate(&attr, detach);
22683 if( status ) return status;
22684 status = pthread_create( &t, &attr, task, NULL );
22685 #if HAVE_PTHREADS < 7
22686 if( status < 0 ) status = errno;
22688 if( status ) return status;
22690 /* Draft 4 pthreads */
22691 status = pthread_create( &t, pthread_attr_default, task, NULL );
22692 if( status ) return errno;
22694 /* give thread a chance to complete */
22695 /* it should remain joinable and hence detachable */
22698 status = pthread_detach( &t );
22699 if( status ) return errno;
22702 #ifdef HAVE_LINUX_THREADS
22703 pthread_kill_other_threads_np();
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_link") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext &&
22729 $as_test_x conftest$ac_exeext; then
22730 ol_cv_pthread_lpthread=yes
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ol_cv_pthread_lpthread=no
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 conftest$ac_exeext conftest.$ac_ext
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22748 /* pthread test headers */
22749 #include <pthread.h>
22750 #if HAVE_PTHREADS < 7
22754 #define NULL (void*)0
22757 static void *task(p)
22760 return (void *) (p == NULL);
22764 int main(argc, argv)
22769 /* pthread test function */
22770 #ifndef PTHREAD_CREATE_DETACHED
22771 #define PTHREAD_CREATE_DETACHED 1
22775 int detach = PTHREAD_CREATE_DETACHED;
22777 #if HAVE_PTHREADS > 4
22778 /* Final pthreads */
22779 pthread_attr_t attr;
22781 status = pthread_attr_init(&attr);
22782 if( status ) return status;
22784 #if HAVE_PTHREADS < 7
22785 status = pthread_attr_setdetachstate(&attr, &detach);
22786 if( status < 0 ) status = errno;
22788 status = pthread_attr_setdetachstate(&attr, detach);
22790 if( status ) return status;
22791 status = pthread_create( &t, &attr, task, NULL );
22792 #if HAVE_PTHREADS < 7
22793 if( status < 0 ) status = errno;
22795 if( status ) return status;
22797 /* Draft 4 pthreads */
22798 status = pthread_create( &t, pthread_attr_default, task, NULL );
22799 if( status ) return errno;
22801 /* give thread a chance to complete */
22802 /* it should remain joinable and hence detachable */
22805 status = pthread_detach( &t );
22806 if( status ) return errno;
22809 #ifdef HAVE_LINUX_THREADS
22810 pthread_kill_other_threads_np();
22818 rm -f conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22829 { (case "(($ac_try" in
22830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831 *) ac_try_echo=$ac_try;;
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834 (eval "$ac_try") 2>&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22838 ol_cv_pthread_lpthread=yes
22840 echo "$as_me: program exited with status $ac_status" >&5
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ( exit $ac_status )
22845 ol_cv_pthread_lpthread=no
22847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22857 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22859 if test $ol_cv_pthread_lpthread = yes ; then
22860 ol_link_pthreads="-lpthread"
22861 ol_link_threads=posix
22865 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22866 if test "$ol_link_threads" = no ; then
22868 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22869 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22870 if test "${ol_cv_pthread_lc_r+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 if test "$cross_compiling" = yes; then
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22886 /* pthread test headers */
22887 #include <pthread.h>
22888 #if HAVE_PTHREADS < 7
22892 #define NULL (void*)0
22895 static void *task(p)
22898 return (void *) (p == NULL);
22905 /* pthread test function */
22906 #ifndef PTHREAD_CREATE_DETACHED
22907 #define PTHREAD_CREATE_DETACHED 1
22911 int detach = PTHREAD_CREATE_DETACHED;
22913 #if HAVE_PTHREADS > 4
22914 /* Final pthreads */
22915 pthread_attr_t attr;
22917 status = pthread_attr_init(&attr);
22918 if( status ) return status;
22920 #if HAVE_PTHREADS < 7
22921 status = pthread_attr_setdetachstate(&attr, &detach);
22922 if( status < 0 ) status = errno;
22924 status = pthread_attr_setdetachstate(&attr, detach);
22926 if( status ) return status;
22927 status = pthread_create( &t, &attr, task, NULL );
22928 #if HAVE_PTHREADS < 7
22929 if( status < 0 ) status = errno;
22931 if( status ) return status;
22933 /* Draft 4 pthreads */
22934 status = pthread_create( &t, pthread_attr_default, task, NULL );
22935 if( status ) return errno;
22937 /* give thread a chance to complete */
22938 /* it should remain joinable and hence detachable */
22941 status = pthread_detach( &t );
22942 if( status ) return errno;
22945 #ifdef HAVE_LINUX_THREADS
22946 pthread_kill_other_threads_np();
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (ac_try="$ac_link"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_link") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest$ac_exeext &&
22972 $as_test_x conftest$ac_exeext; then
22973 ol_cv_pthread_lc_r=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ol_cv_pthread_lc_r=no
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982 conftest$ac_exeext conftest.$ac_ext
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22991 /* pthread test headers */
22992 #include <pthread.h>
22993 #if HAVE_PTHREADS < 7
22997 #define NULL (void*)0
23000 static void *task(p)
23003 return (void *) (p == NULL);
23007 int main(argc, argv)
23012 /* pthread test function */
23013 #ifndef PTHREAD_CREATE_DETACHED
23014 #define PTHREAD_CREATE_DETACHED 1
23018 int detach = PTHREAD_CREATE_DETACHED;
23020 #if HAVE_PTHREADS > 4
23021 /* Final pthreads */
23022 pthread_attr_t attr;
23024 status = pthread_attr_init(&attr);
23025 if( status ) return status;
23027 #if HAVE_PTHREADS < 7
23028 status = pthread_attr_setdetachstate(&attr, &detach);
23029 if( status < 0 ) status = errno;
23031 status = pthread_attr_setdetachstate(&attr, detach);
23033 if( status ) return status;
23034 status = pthread_create( &t, &attr, task, NULL );
23035 #if HAVE_PTHREADS < 7
23036 if( status < 0 ) status = errno;
23038 if( status ) return status;
23040 /* Draft 4 pthreads */
23041 status = pthread_create( &t, pthread_attr_default, task, NULL );
23042 if( status ) return errno;
23044 /* give thread a chance to complete */
23045 /* it should remain joinable and hence detachable */
23048 status = pthread_detach( &t );
23049 if( status ) return errno;
23052 #ifdef HAVE_LINUX_THREADS
23053 pthread_kill_other_threads_np();
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072 { (case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_try") 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ol_cv_pthread_lc_r=yes
23083 echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ( exit $ac_status )
23088 ol_cv_pthread_lc_r=no
23090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23099 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23100 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23102 if test $ol_cv_pthread_lc_r = yes ; then
23103 ol_link_pthreads="-lc_r"
23104 ol_link_threads=posix
23109 # Pthread try link: -threads (ol_cv_pthread_threads)
23110 if test "$ol_link_threads" = no ; then
23112 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23113 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23114 if test "${ol_cv_pthread_threads+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 LIBS="-threads $LIBS"
23122 if test "$cross_compiling" = yes; then
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23130 /* pthread test headers */
23131 #include <pthread.h>
23132 #if HAVE_PTHREADS < 7
23136 #define NULL (void*)0
23139 static void *task(p)
23142 return (void *) (p == NULL);
23149 /* pthread test function */
23150 #ifndef PTHREAD_CREATE_DETACHED
23151 #define PTHREAD_CREATE_DETACHED 1
23155 int detach = PTHREAD_CREATE_DETACHED;
23157 #if HAVE_PTHREADS > 4
23158 /* Final pthreads */
23159 pthread_attr_t attr;
23161 status = pthread_attr_init(&attr);
23162 if( status ) return status;
23164 #if HAVE_PTHREADS < 7
23165 status = pthread_attr_setdetachstate(&attr, &detach);
23166 if( status < 0 ) status = errno;
23168 status = pthread_attr_setdetachstate(&attr, detach);
23170 if( status ) return status;
23171 status = pthread_create( &t, &attr, task, NULL );
23172 #if HAVE_PTHREADS < 7
23173 if( status < 0 ) status = errno;
23175 if( status ) return status;
23177 /* Draft 4 pthreads */
23178 status = pthread_create( &t, pthread_attr_default, task, NULL );
23179 if( status ) return errno;
23181 /* give thread a chance to complete */
23182 /* it should remain joinable and hence detachable */
23185 status = pthread_detach( &t );
23186 if( status ) return errno;
23189 #ifdef HAVE_LINUX_THREADS
23190 pthread_kill_other_threads_np();
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_link") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest$ac_exeext &&
23216 $as_test_x conftest$ac_exeext; then
23217 ol_cv_pthread_threads=yes
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23222 ol_cv_pthread_threads=no
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226 conftest$ac_exeext conftest.$ac_ext
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23235 /* pthread test headers */
23236 #include <pthread.h>
23237 #if HAVE_PTHREADS < 7
23241 #define NULL (void*)0
23244 static void *task(p)
23247 return (void *) (p == NULL);
23251 int main(argc, argv)
23256 /* pthread test function */
23257 #ifndef PTHREAD_CREATE_DETACHED
23258 #define PTHREAD_CREATE_DETACHED 1
23262 int detach = PTHREAD_CREATE_DETACHED;
23264 #if HAVE_PTHREADS > 4
23265 /* Final pthreads */
23266 pthread_attr_t attr;
23268 status = pthread_attr_init(&attr);
23269 if( status ) return status;
23271 #if HAVE_PTHREADS < 7
23272 status = pthread_attr_setdetachstate(&attr, &detach);
23273 if( status < 0 ) status = errno;
23275 status = pthread_attr_setdetachstate(&attr, detach);
23277 if( status ) return status;
23278 status = pthread_create( &t, &attr, task, NULL );
23279 #if HAVE_PTHREADS < 7
23280 if( status < 0 ) status = errno;
23282 if( status ) return status;
23284 /* Draft 4 pthreads */
23285 status = pthread_create( &t, pthread_attr_default, task, NULL );
23286 if( status ) return errno;
23288 /* give thread a chance to complete */
23289 /* it should remain joinable and hence detachable */
23292 status = pthread_detach( &t );
23293 if( status ) return errno;
23296 #ifdef HAVE_LINUX_THREADS
23297 pthread_kill_other_threads_np();
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_link") 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ol_cv_pthread_threads=yes
23327 echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ( exit $ac_status )
23332 ol_cv_pthread_threads=no
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23343 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23344 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23346 if test $ol_cv_pthread_threads = yes ; then
23347 ol_link_pthreads="-threads"
23348 ol_link_threads=posix
23353 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23354 if test "$ol_link_threads" = no ; then
23355 # try -lpthreads -lmach -lexc -lc_r
23356 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23357 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23358 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23366 if test "$cross_compiling" = yes; then
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23374 /* pthread test headers */
23375 #include <pthread.h>
23376 #if HAVE_PTHREADS < 7
23380 #define NULL (void*)0
23383 static void *task(p)
23386 return (void *) (p == NULL);
23393 /* pthread test function */
23394 #ifndef PTHREAD_CREATE_DETACHED
23395 #define PTHREAD_CREATE_DETACHED 1
23399 int detach = PTHREAD_CREATE_DETACHED;
23401 #if HAVE_PTHREADS > 4
23402 /* Final pthreads */
23403 pthread_attr_t attr;
23405 status = pthread_attr_init(&attr);
23406 if( status ) return status;
23408 #if HAVE_PTHREADS < 7
23409 status = pthread_attr_setdetachstate(&attr, &detach);
23410 if( status < 0 ) status = errno;
23412 status = pthread_attr_setdetachstate(&attr, detach);
23414 if( status ) return status;
23415 status = pthread_create( &t, &attr, task, NULL );
23416 #if HAVE_PTHREADS < 7
23417 if( status < 0 ) status = errno;
23419 if( status ) return status;
23421 /* Draft 4 pthreads */
23422 status = pthread_create( &t, pthread_attr_default, task, NULL );
23423 if( status ) return errno;
23425 /* give thread a chance to complete */
23426 /* it should remain joinable and hence detachable */
23429 status = pthread_detach( &t );
23430 if( status ) return errno;
23433 #ifdef HAVE_LINUX_THREADS
23434 pthread_kill_other_threads_np();
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest$ac_exeext &&
23460 $as_test_x conftest$ac_exeext; then
23461 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470 conftest$ac_exeext conftest.$ac_ext
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 /* pthread test headers */
23480 #include <pthread.h>
23481 #if HAVE_PTHREADS < 7
23485 #define NULL (void*)0
23488 static void *task(p)
23491 return (void *) (p == NULL);
23495 int main(argc, argv)
23500 /* pthread test function */
23501 #ifndef PTHREAD_CREATE_DETACHED
23502 #define PTHREAD_CREATE_DETACHED 1
23506 int detach = PTHREAD_CREATE_DETACHED;
23508 #if HAVE_PTHREADS > 4
23509 /* Final pthreads */
23510 pthread_attr_t attr;
23512 status = pthread_attr_init(&attr);
23513 if( status ) return status;
23515 #if HAVE_PTHREADS < 7
23516 status = pthread_attr_setdetachstate(&attr, &detach);
23517 if( status < 0 ) status = errno;
23519 status = pthread_attr_setdetachstate(&attr, detach);
23521 if( status ) return status;
23522 status = pthread_create( &t, &attr, task, NULL );
23523 #if HAVE_PTHREADS < 7
23524 if( status < 0 ) status = errno;
23526 if( status ) return status;
23528 /* Draft 4 pthreads */
23529 status = pthread_create( &t, pthread_attr_default, task, NULL );
23530 if( status ) return errno;
23532 /* give thread a chance to complete */
23533 /* it should remain joinable and hence detachable */
23536 status = pthread_detach( &t );
23537 if( status ) return errno;
23540 #ifdef HAVE_LINUX_THREADS
23541 pthread_kill_other_threads_np();
23549 rm -f conftest$ac_exeext
23550 if { (ac_try="$ac_link"
23551 case "(($ac_try" in
23552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553 *) ac_try_echo=$ac_try;;
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556 (eval "$ac_link") 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560 { (case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_try") 2>&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23569 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23571 echo "$as_me: program exited with status $ac_status" >&5
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ( exit $ac_status )
23576 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23587 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23588 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23590 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23591 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23592 ol_link_threads=posix
23596 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23597 if test "$ol_link_threads" = no ; then
23598 # try -lpthreads -lmach -lexc
23599 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23600 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23601 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 LIBS="-lpthreads -lmach -lexc $LIBS"
23609 if test "$cross_compiling" = yes; then
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23623 #define NULL (void*)0
23626 static void *task(p)
23629 return (void *) (p == NULL);
23636 /* pthread test function */
23637 #ifndef PTHREAD_CREATE_DETACHED
23638 #define PTHREAD_CREATE_DETACHED 1
23642 int detach = PTHREAD_CREATE_DETACHED;
23644 #if HAVE_PTHREADS > 4
23645 /* Final pthreads */
23646 pthread_attr_t attr;
23648 status = pthread_attr_init(&attr);
23649 if( status ) return status;
23651 #if HAVE_PTHREADS < 7
23652 status = pthread_attr_setdetachstate(&attr, &detach);
23653 if( status < 0 ) status = errno;
23655 status = pthread_attr_setdetachstate(&attr, detach);
23657 if( status ) return status;
23658 status = pthread_create( &t, &attr, task, NULL );
23659 #if HAVE_PTHREADS < 7
23660 if( status < 0 ) status = errno;
23662 if( status ) return status;
23664 /* Draft 4 pthreads */
23665 status = pthread_create( &t, pthread_attr_default, task, NULL );
23666 if( status ) return errno;
23668 /* give thread a chance to complete */
23669 /* it should remain joinable and hence detachable */
23672 status = pthread_detach( &t );
23673 if( status ) return errno;
23676 #ifdef HAVE_LINUX_THREADS
23677 pthread_kill_other_threads_np();
23686 rm -f conftest.$ac_objext conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_link") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest$ac_exeext &&
23703 $as_test_x conftest$ac_exeext; then
23704 ol_cv_pthread_lpthreads_lmach_lexc=yes
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ol_cv_pthread_lpthreads_lmach_lexc=no
23712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713 conftest$ac_exeext conftest.$ac_ext
23715 cat >conftest.$ac_ext <<_ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23722 /* pthread test headers */
23723 #include <pthread.h>
23724 #if HAVE_PTHREADS < 7
23728 #define NULL (void*)0
23731 static void *task(p)
23734 return (void *) (p == NULL);
23738 int main(argc, argv)
23743 /* pthread test function */
23744 #ifndef PTHREAD_CREATE_DETACHED
23745 #define PTHREAD_CREATE_DETACHED 1
23749 int detach = PTHREAD_CREATE_DETACHED;
23751 #if HAVE_PTHREADS > 4
23752 /* Final pthreads */
23753 pthread_attr_t attr;
23755 status = pthread_attr_init(&attr);
23756 if( status ) return status;
23758 #if HAVE_PTHREADS < 7
23759 status = pthread_attr_setdetachstate(&attr, &detach);
23760 if( status < 0 ) status = errno;
23762 status = pthread_attr_setdetachstate(&attr, detach);
23764 if( status ) return status;
23765 status = pthread_create( &t, &attr, task, NULL );
23766 #if HAVE_PTHREADS < 7
23767 if( status < 0 ) status = errno;
23769 if( status ) return status;
23771 /* Draft 4 pthreads */
23772 status = pthread_create( &t, pthread_attr_default, task, NULL );
23773 if( status ) return errno;
23775 /* give thread a chance to complete */
23776 /* it should remain joinable and hence detachable */
23779 status = pthread_detach( &t );
23780 if( status ) return errno;
23783 #ifdef HAVE_LINUX_THREADS
23784 pthread_kill_other_threads_np();
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803 { (case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_try") 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ol_cv_pthread_lpthreads_lmach_lexc=yes
23814 echo "$as_me: program exited with status $ac_status" >&5
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23818 ( exit $ac_status )
23819 ol_cv_pthread_lpthreads_lmach_lexc=no
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23831 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23833 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23834 ol_link_pthreads="-lpthreads -lmach -lexc"
23835 ol_link_threads=posix
23839 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23840 if test "$ol_link_threads" = no ; then
23841 # try -lpthreads -lexc
23842 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23843 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23844 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 LIBS="-lpthreads -lexc $LIBS"
23852 if test "$cross_compiling" = yes; then
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23860 /* pthread test headers */
23861 #include <pthread.h>
23862 #if HAVE_PTHREADS < 7
23866 #define NULL (void*)0
23869 static void *task(p)
23872 return (void *) (p == NULL);
23879 /* pthread test function */
23880 #ifndef PTHREAD_CREATE_DETACHED
23881 #define PTHREAD_CREATE_DETACHED 1
23885 int detach = PTHREAD_CREATE_DETACHED;
23887 #if HAVE_PTHREADS > 4
23888 /* Final pthreads */
23889 pthread_attr_t attr;
23891 status = pthread_attr_init(&attr);
23892 if( status ) return status;
23894 #if HAVE_PTHREADS < 7
23895 status = pthread_attr_setdetachstate(&attr, &detach);
23896 if( status < 0 ) status = errno;
23898 status = pthread_attr_setdetachstate(&attr, detach);
23900 if( status ) return status;
23901 status = pthread_create( &t, &attr, task, NULL );
23902 #if HAVE_PTHREADS < 7
23903 if( status < 0 ) status = errno;
23905 if( status ) return status;
23907 /* Draft 4 pthreads */
23908 status = pthread_create( &t, pthread_attr_default, task, NULL );
23909 if( status ) return errno;
23911 /* give thread a chance to complete */
23912 /* it should remain joinable and hence detachable */
23915 status = pthread_detach( &t );
23916 if( status ) return errno;
23919 #ifdef HAVE_LINUX_THREADS
23920 pthread_kill_other_threads_np();
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ol_cv_pthread_lpthreads_lexc=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ol_cv_pthread_lpthreads_lexc=no
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23965 /* pthread test headers */
23966 #include <pthread.h>
23967 #if HAVE_PTHREADS < 7
23971 #define NULL (void*)0
23974 static void *task(p)
23977 return (void *) (p == NULL);
23981 int main(argc, argv)
23986 /* pthread test function */
23987 #ifndef PTHREAD_CREATE_DETACHED
23988 #define PTHREAD_CREATE_DETACHED 1
23992 int detach = PTHREAD_CREATE_DETACHED;
23994 #if HAVE_PTHREADS > 4
23995 /* Final pthreads */
23996 pthread_attr_t attr;
23998 status = pthread_attr_init(&attr);
23999 if( status ) return status;
24001 #if HAVE_PTHREADS < 7
24002 status = pthread_attr_setdetachstate(&attr, &detach);
24003 if( status < 0 ) status = errno;
24005 status = pthread_attr_setdetachstate(&attr, detach);
24007 if( status ) return status;
24008 status = pthread_create( &t, &attr, task, NULL );
24009 #if HAVE_PTHREADS < 7
24010 if( status < 0 ) status = errno;
24012 if( status ) return status;
24014 /* Draft 4 pthreads */
24015 status = pthread_create( &t, pthread_attr_default, task, NULL );
24016 if( status ) return errno;
24018 /* give thread a chance to complete */
24019 /* it should remain joinable and hence detachable */
24022 status = pthread_detach( &t );
24023 if( status ) return errno;
24026 #ifdef HAVE_LINUX_THREADS
24027 pthread_kill_other_threads_np();
24035 rm -f conftest$ac_exeext
24036 if { (ac_try="$ac_link"
24037 case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_link") 2>&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24046 { (case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_try") 2>&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ol_cv_pthread_lpthreads_lexc=yes
24057 echo "$as_me: program exited with status $ac_status" >&5
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ( exit $ac_status )
24062 ol_cv_pthread_lpthreads_lexc=no
24064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24076 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24077 ol_link_pthreads="-lpthreads -lexc"
24078 ol_link_threads=posix
24083 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24084 if test "$ol_link_threads" = no ; then
24086 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24094 LIBS="-lpthreads $LIBS"
24096 if test "$cross_compiling" = yes; then
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24104 /* pthread test headers */
24105 #include <pthread.h>
24106 #if HAVE_PTHREADS < 7
24110 #define NULL (void*)0
24113 static void *task(p)
24116 return (void *) (p == NULL);
24123 /* pthread test function */
24124 #ifndef PTHREAD_CREATE_DETACHED
24125 #define PTHREAD_CREATE_DETACHED 1
24129 int detach = PTHREAD_CREATE_DETACHED;
24131 #if HAVE_PTHREADS > 4
24132 /* Final pthreads */
24133 pthread_attr_t attr;
24135 status = pthread_attr_init(&attr);
24136 if( status ) return status;
24138 #if HAVE_PTHREADS < 7
24139 status = pthread_attr_setdetachstate(&attr, &detach);
24140 if( status < 0 ) status = errno;
24142 status = pthread_attr_setdetachstate(&attr, detach);
24144 if( status ) return status;
24145 status = pthread_create( &t, &attr, task, NULL );
24146 #if HAVE_PTHREADS < 7
24147 if( status < 0 ) status = errno;
24149 if( status ) return status;
24151 /* Draft 4 pthreads */
24152 status = pthread_create( &t, pthread_attr_default, task, NULL );
24153 if( status ) return errno;
24155 /* give thread a chance to complete */
24156 /* it should remain joinable and hence detachable */
24159 status = pthread_detach( &t );
24160 if( status ) return errno;
24163 #ifdef HAVE_LINUX_THREADS
24164 pthread_kill_other_threads_np();
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_link") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest$ac_exeext &&
24190 $as_test_x conftest$ac_exeext; then
24191 ol_cv_pthread_lib_lpthreads=yes
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24196 ol_cv_pthread_lib_lpthreads=no
24199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200 conftest$ac_exeext conftest.$ac_ext
24202 cat >conftest.$ac_ext <<_ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24209 /* pthread test headers */
24210 #include <pthread.h>
24211 #if HAVE_PTHREADS < 7
24215 #define NULL (void*)0
24218 static void *task(p)
24221 return (void *) (p == NULL);
24225 int main(argc, argv)
24230 /* pthread test function */
24231 #ifndef PTHREAD_CREATE_DETACHED
24232 #define PTHREAD_CREATE_DETACHED 1
24236 int detach = PTHREAD_CREATE_DETACHED;
24238 #if HAVE_PTHREADS > 4
24239 /* Final pthreads */
24240 pthread_attr_t attr;
24242 status = pthread_attr_init(&attr);
24243 if( status ) return status;
24245 #if HAVE_PTHREADS < 7
24246 status = pthread_attr_setdetachstate(&attr, &detach);
24247 if( status < 0 ) status = errno;
24249 status = pthread_attr_setdetachstate(&attr, detach);
24251 if( status ) return status;
24252 status = pthread_create( &t, &attr, task, NULL );
24253 #if HAVE_PTHREADS < 7
24254 if( status < 0 ) status = errno;
24256 if( status ) return status;
24258 /* Draft 4 pthreads */
24259 status = pthread_create( &t, pthread_attr_default, task, NULL );
24260 if( status ) return errno;
24262 /* give thread a chance to complete */
24263 /* it should remain joinable and hence detachable */
24266 status = pthread_detach( &t );
24267 if( status ) return errno;
24270 #ifdef HAVE_LINUX_THREADS
24271 pthread_kill_other_threads_np();
24279 rm -f conftest$ac_exeext
24280 if { (ac_try="$ac_link"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_link") 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24290 { (case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295 (eval "$ac_try") 2>&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
24299 ol_cv_pthread_lib_lpthreads=yes
24301 echo "$as_me: program exited with status $ac_status" >&5
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ( exit $ac_status )
24306 ol_cv_pthread_lib_lpthreads=no
24308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24318 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24320 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24321 ol_link_pthreads="-lpthreads"
24322 ol_link_threads=posix
24327 if test $ol_link_threads != no ; then
24328 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24330 save_CPPFLAGS="$CPPFLAGS"
24332 LIBS="$LTHREAD_LIBS $LIBS"
24337 for ac_func in sched_yield pthread_yield thr_yield
24339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 cat >conftest.$ac_ext <<_ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h. */
24351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24353 #define $ac_func innocuous_$ac_func
24355 /* System header to define __stub macros and hopefully few prototypes,
24356 which can conflict with char $ac_func (); below.
24357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24358 <limits.h> exists even on freestanding compilers. */
24361 # include <limits.h>
24363 # include <assert.h>
24368 /* Override any GCC internal prototype to avoid an error.
24369 Use char because int might match the return type of a GCC
24370 builtin and then its argument prototype would still apply. */
24375 /* The GNU C library defines this for functions which it implements
24376 to always fail with ENOSYS. Some functions are actually named
24377 something starting with __ and the normal name is an alias. */
24378 #if defined __stub_$ac_func || defined __stub___$ac_func
24385 return $ac_func ();
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397 (eval "$ac_link") 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest$ac_exeext &&
24407 $as_test_x conftest$ac_exeext; then
24408 eval "$as_ac_var=yes"
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 eval "$as_ac_var=no"
24416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24417 conftest$ac_exeext conftest.$ac_ext
24419 ac_res=`eval echo '${'$as_ac_var'}'`
24420 { echo "$as_me:$LINENO: result: $ac_res" >&5
24421 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_var'}'` = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24431 if test $ac_cv_func_sched_yield = no &&
24432 test $ac_cv_func_pthread_yield = no &&
24433 test $ac_cv_func_thr_yield = no ; then
24434 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 ac_check_lib_save_LIBS=$LIBS
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24448 /* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24454 char sched_yield ();
24458 return sched_yield ();
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470 (eval "$ac_link") 2>conftest.er1
24472 grep -v '^ *+' conftest.er1 >conftest.err
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } && {
24477 test -z "$ac_c_werror_flag" ||
24478 test ! -s conftest.err
24479 } && test -s conftest$ac_exeext &&
24480 $as_test_x conftest$ac_exeext; then
24481 ac_cv_lib_rt_sched_yield=yes
24483 echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24486 ac_cv_lib_rt_sched_yield=no
24489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24490 conftest$ac_exeext conftest.$ac_ext
24491 LIBS=$ac_check_lib_save_LIBS
24493 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24494 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24495 if test $ac_cv_lib_rt_sched_yield = yes; then
24496 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SCHED_YIELD 1
24502 ac_cv_func_sched_yield=yes
24504 ac_cv_func_sched_yield=no
24508 if test $ac_cv_func_sched_yield = no &&
24509 test $ac_cv_func_pthread_yield = no &&
24510 test "$ac_cv_func_thr_yield" = no ; then
24511 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24512 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24516 for ac_func in pthread_kill
24518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24532 #define $ac_func innocuous_$ac_func
24534 /* System header to define __stub macros and hopefully few prototypes,
24535 which can conflict with char $ac_func (); below.
24536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537 <limits.h> exists even on freestanding compilers. */
24540 # include <limits.h>
24542 # include <assert.h>
24547 /* Override any GCC internal prototype to avoid an error.
24548 Use char because int might match the return type of a GCC
24549 builtin and then its argument prototype would still apply. */
24554 /* The GNU C library defines this for functions which it implements
24555 to always fail with ENOSYS. Some functions are actually named
24556 something starting with __ and the normal name is an alias. */
24557 #if defined __stub_$ac_func || defined __stub___$ac_func
24564 return $ac_func ();
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest$ac_exeext &&
24586 $as_test_x conftest$ac_exeext; then
24587 eval "$as_ac_var=yes"
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 eval "$as_ac_var=no"
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596 conftest$ac_exeext conftest.$ac_ext
24598 ac_res=`eval echo '${'$as_ac_var'}'`
24599 { echo "$as_me:$LINENO: result: $ac_res" >&5
24600 echo "${ECHO_T}$ac_res" >&6; }
24601 if test `eval echo '${'$as_ac_var'}'` = yes; then
24602 cat >>confdefs.h <<_ACEOF
24603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24610 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24611 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24612 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24616 cat >conftest.$ac_ext <<_ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h. */
24623 #include <pthread.h>
24624 pthread_rwlock_t rwlock;
24629 pthread_rwlock_destroy(&rwlock);
24634 rm -f conftest.$ac_objext conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_link") 2>conftest.er1
24643 grep -v '^ *+' conftest.er1 >conftest.err
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest$ac_exeext &&
24651 $as_test_x conftest$ac_exeext; then
24652 ol_cv_func_pthread_rwlock_destroy=yes
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24657 ol_cv_func_pthread_rwlock_destroy=no
24660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24661 conftest$ac_exeext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24665 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24666 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24668 cat >>confdefs.h <<\_ACEOF
24669 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24674 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24675 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24676 if test "${ol_cv_func_pthread_detach+set}" = set; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24687 #include <pthread.h>
24689 #define NULL (void*)0
24695 pthread_detach(NULL);
24700 rm -f conftest.$ac_objext conftest$ac_exeext
24701 if { (ac_try="$ac_link"
24702 case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_link") 2>conftest.er1
24709 grep -v '^ *+' conftest.er1 >conftest.err
24711 cat conftest.err >&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest$ac_exeext &&
24717 $as_test_x conftest$ac_exeext; then
24718 ol_cv_func_pthread_detach=yes
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ol_cv_func_pthread_detach=no
24726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24727 conftest$ac_exeext conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24731 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24733 if test $ol_cv_func_pthread_detach = no ; then
24734 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24735 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24736 { (exit 1); exit 1; }; }
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_PTHREAD_DETACH 1
24750 pthread_setconcurrency \
24751 pthread_getconcurrency \
24752 thr_setconcurrency \
24753 thr_getconcurrency \
24756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24770 #define $ac_func innocuous_$ac_func
24772 /* System header to define __stub macros and hopefully few prototypes,
24773 which can conflict with char $ac_func (); below.
24774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775 <limits.h> exists even on freestanding compilers. */
24778 # include <limits.h>
24780 # include <assert.h>
24785 /* Override any GCC internal prototype to avoid an error.
24786 Use char because int might match the return type of a GCC
24787 builtin and then its argument prototype would still apply. */
24792 /* The GNU C library defines this for functions which it implements
24793 to always fail with ENOSYS. Some functions are actually named
24794 something starting with __ and the normal name is an alias. */
24795 #if defined __stub_$ac_func || defined __stub___$ac_func
24802 return $ac_func ();
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_link") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest$ac_exeext &&
24824 $as_test_x conftest$ac_exeext; then
24825 eval "$as_ac_var=yes"
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 eval "$as_ac_var=no"
24833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24834 conftest$ac_exeext conftest.$ac_ext
24836 ac_res=`eval echo '${'$as_ac_var'}'`
24837 { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840 cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24850 for ac_func in pthread_kill_other_threads_np
24852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24856 echo $ECHO_N "(cached) $ECHO_C" >&6
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24866 #define $ac_func innocuous_$ac_func
24868 /* System header to define __stub macros and hopefully few prototypes,
24869 which can conflict with char $ac_func (); below.
24870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24871 <limits.h> exists even on freestanding compilers. */
24874 # include <limits.h>
24876 # include <assert.h>
24881 /* Override any GCC internal prototype to avoid an error.
24882 Use char because int might match the return type of a GCC
24883 builtin and then its argument prototype would still apply. */
24888 /* The GNU C library defines this for functions which it implements
24889 to always fail with ENOSYS. Some functions are actually named
24890 something starting with __ and the normal name is an alias. */
24891 #if defined __stub_$ac_func || defined __stub___$ac_func
24898 return $ac_func ();
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_link") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest$ac_exeext &&
24920 $as_test_x conftest$ac_exeext; then
24921 eval "$as_ac_var=yes"
24923 echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24926 eval "$as_ac_var=no"
24929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24930 conftest$ac_exeext conftest.$ac_ext
24932 ac_res=`eval echo '${'$as_ac_var'}'`
24933 { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936 cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24943 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24944 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24945 if test "${ol_cv_sys_linux_threads+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24950 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24951 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24956 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24957 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24958 if test "${ol_cv_linux_threads+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 if test $ol_cv_header_linux_threads = yes &&
24963 test $ol_cv_sys_linux_threads = yes; then
24964 ol_cv_linux_threads=yes
24965 elif test $ol_cv_header_linux_threads = no &&
24966 test $ol_cv_sys_linux_threads = no; then
24967 ol_cv_linux_threads=no
24969 ol_cv_linux_threads=error
24973 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24974 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24977 if test $ol_cv_linux_threads = error; then
24978 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24979 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24980 { (exit 1); exit 1; }; };
24983 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24984 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24985 if test "${ol_cv_pthread_create_works+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 if test "$cross_compiling" = yes; then
24990 ol_cv_pthread_create_works=yes
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 /* pthread test headers */
25000 #include <pthread.h>
25001 #if HAVE_PTHREADS < 7
25005 #define NULL (void*)0
25008 static void *task(p)
25011 return (void *) (p == NULL);
25015 int main(argc, argv)
25020 /* pthread test function */
25021 #ifndef PTHREAD_CREATE_DETACHED
25022 #define PTHREAD_CREATE_DETACHED 1
25026 int detach = PTHREAD_CREATE_DETACHED;
25028 #if HAVE_PTHREADS > 4
25029 /* Final pthreads */
25030 pthread_attr_t attr;
25032 status = pthread_attr_init(&attr);
25033 if( status ) return status;
25035 #if HAVE_PTHREADS < 7
25036 status = pthread_attr_setdetachstate(&attr, &detach);
25037 if( status < 0 ) status = errno;
25039 status = pthread_attr_setdetachstate(&attr, detach);
25041 if( status ) return status;
25042 status = pthread_create( &t, &attr, task, NULL );
25043 #if HAVE_PTHREADS < 7
25044 if( status < 0 ) status = errno;
25046 if( status ) return status;
25048 /* Draft 4 pthreads */
25049 status = pthread_create( &t, pthread_attr_default, task, NULL );
25050 if( status ) return errno;
25052 /* give thread a chance to complete */
25053 /* it should remain joinable and hence detachable */
25056 status = pthread_detach( &t );
25057 if( status ) return errno;
25060 #ifdef HAVE_LINUX_THREADS
25061 pthread_kill_other_threads_np();
25069 rm -f conftest$ac_exeext
25070 if { (ac_try="$ac_link"
25071 case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_link") 2>&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25080 { (case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_try") 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; }; then
25089 ol_cv_pthread_create_works=yes
25091 echo "$as_me: program exited with status $ac_status" >&5
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 ( exit $ac_status )
25096 ol_cv_pthread_create_works=no
25098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25103 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25104 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25106 if test $ol_cv_pthread_create_works = no ; then
25107 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25108 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25109 { (exit 1); exit 1; }; }
25112 ol_replace_broken_yield=no
25114 if test $ol_replace_broken_yield = yes ; then
25116 cat >>confdefs.h <<\_ACEOF
25117 #define REPLACE_BROKEN_YIELD 1
25122 if test $ol_with_yielding_select = auto ; then
25123 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25124 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25125 if test "${ol_cv_pthread_select_yields+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25129 if test "$cross_compiling" = yes; then
25130 ol_cv_pthread_select_yields=cross
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25139 #include <sys/types.h>
25140 #include <sys/time.h>
25141 #include <unistd.h>
25142 #include <pthread.h>
25144 #define NULL (void*) 0
25147 static int fildes[2];
25149 static void *task(p)
25161 FD_SET(fildes[0], &rfds);
25163 /* we're not interested in any fds */
25164 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25171 exit(0); /* if we exit here, the select blocked the whole process */
25174 int main(argc, argv)
25180 /* create a pipe to select */
25181 if(pipe(&fildes[0])) {
25186 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25187 (void) pthread_setconcurrency(2);
25189 #ifdef HAVE_THR_SETCONCURRENCY
25190 /* Set Solaris LWP concurrency to 2 */
25191 thr_setconcurrency(2);
25195 #if HAVE_PTHREADS < 6
25196 pthread_create(&t, pthread_attr_default, task, NULL);
25198 pthread_create(&t, NULL, task, NULL);
25201 /* make sure task runs first */
25202 #ifdef HAVE_THR_YIELD
25204 #elif defined( HAVE_SCHED_YIELD )
25206 #elif defined( HAVE_PTHREAD_YIELD )
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_link") 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224 { (case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229 (eval "$ac_try") 2>&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); }; }; then
25233 ol_cv_pthread_select_yields=no
25235 echo "$as_me: program exited with status $ac_status" >&5
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ( exit $ac_status )
25240 ol_cv_pthread_select_yields=yes
25242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25247 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25248 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25250 if test $ol_cv_pthread_select_yields = cross ; then
25251 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25252 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25253 { (exit 1); exit 1; }; }
25256 if test $ol_cv_pthread_select_yields = yes ; then
25257 ol_with_yielding_select=yes
25261 CPPFLAGS="$save_CPPFLAGS"
25264 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25265 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25266 { (exit 1); exit 1; }; }
25270 if test $ol_with_threads = posix ; then
25271 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25272 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25273 { (exit 1); exit 1; }; }
25278 case $ol_with_threads in auto | yes | mach)
25282 for ac_header in mach/cthreads.h cthreads.h
25284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292 { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25295 # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 #include <$ac_header>
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 ac_header_compiler=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_header_compiler=no
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 #include <$ac_header>
25347 if { (ac_try="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } >/dev/null && {
25360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25363 ac_header_preproc=yes
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_header_preproc=no
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25375 # So? What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25382 ac_header_preproc=yes
25385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25398 ## --------------------------------------------- ##
25399 ## Report this to <http://www.openldap.org/its/> ##
25400 ## --------------------------------------------- ##
25402 ) | sed "s/^/$as_me: WARNING: /" >&2
25405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 eval "$as_ac_Header=\$ac_header_preproc"
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413 { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25418 cat >>confdefs.h <<_ACEOF
25419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25426 if test $ac_cv_header_mach_cthreads_h = yes ; then
25427 ol_with_threads=found
25429 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25430 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25431 if test "${ac_cv_func_cthread_fork+set}" = set; then
25432 echo $ECHO_N "(cached) $ECHO_C" >&6
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25442 #define cthread_fork innocuous_cthread_fork
25444 /* System header to define __stub macros and hopefully few prototypes,
25445 which can conflict with char cthread_fork (); below.
25446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25447 <limits.h> exists even on freestanding compilers. */
25450 # include <limits.h>
25452 # include <assert.h>
25455 #undef cthread_fork
25457 /* Override any GCC internal prototype to avoid an error.
25458 Use char because int might match the return type of a GCC
25459 builtin and then its argument prototype would still apply. */
25463 char cthread_fork ();
25464 /* The GNU C library defines this for functions which it implements
25465 to always fail with ENOSYS. Some functions are actually named
25466 something starting with __ and the normal name is an alias. */
25467 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25474 return cthread_fork ();
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486 (eval "$ac_link") 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest$ac_exeext &&
25496 $as_test_x conftest$ac_exeext; then
25497 ac_cv_func_cthread_fork=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_cv_func_cthread_fork=no
25505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25506 conftest$ac_exeext conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25509 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25510 if test $ac_cv_func_cthread_fork = yes; then
25511 ol_link_threads=yes
25515 if test $ol_link_threads = no ; then
25516 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25517 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25518 if test "${ol_cv_cthread_all_load+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 LIBS="-all_load $LIBS"
25524 cat >conftest.$ac_ext <<_ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h. */
25530 #include <mach/cthreads.h>
25535 cthread_fork((void *)0, (void *)0);
25541 rm -f conftest.$ac_objext conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_link") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest$ac_exeext &&
25558 $as_test_x conftest$ac_exeext; then
25559 ol_cv_cthread_all_load=yes
25561 echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25564 ol_cv_cthread_all_load=no
25567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25568 conftest$ac_exeext conftest.$ac_ext
25572 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25573 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25575 if test $ol_cv_cthread_all_load = yes ; then
25576 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25577 ol_link_threads=mach
25578 ol_with_threads=found
25582 elif test $ac_cv_header_cthreads_h = yes ; then
25584 ol_with_threads=found
25587 LIBS="$LIBS -lthreads"
25588 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25589 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25590 if test "${ac_cv_func_cthread_fork+set}" = set; then
25591 echo $ECHO_N "(cached) $ECHO_C" >&6
25593 cat >conftest.$ac_ext <<_ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25599 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25601 #define cthread_fork innocuous_cthread_fork
25603 /* System header to define __stub macros and hopefully few prototypes,
25604 which can conflict with char cthread_fork (); below.
25605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25606 <limits.h> exists even on freestanding compilers. */
25609 # include <limits.h>
25611 # include <assert.h>
25614 #undef cthread_fork
25616 /* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25622 char cthread_fork ();
25623 /* The GNU C library defines this for functions which it implements
25624 to always fail with ENOSYS. Some functions are actually named
25625 something starting with __ and the normal name is an alias. */
25626 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25633 return cthread_fork ();
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_func_cthread_fork=yes
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_func_cthread_fork=no
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665 conftest$ac_exeext conftest.$ac_ext
25667 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25669 if test $ac_cv_func_cthread_fork = yes; then
25670 ol_link_threads=yes
25675 if test $ol_link_threads = yes ; then
25676 LTHREAD_LIBS="-lthreads"
25677 ol_link_threads=mach
25678 ol_with_threads=found
25680 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25682 { (exit 1); exit 1; }; }
25685 elif test $ol_with_threads = mach ; then
25686 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25688 { (exit 1); exit 1; }; }
25691 if test $ol_link_threads = mach ; then
25693 cat >>confdefs.h <<\_ACEOF
25694 #define HAVE_MACH_CTHREADS 1
25697 elif test $ol_with_threads = found ; then
25698 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25700 { (exit 1); exit 1; }; }
25705 case $ol_with_threads in auto | yes | pth)
25708 for ac_header in pth.h
25710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718 { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25721 # Is the header compilable?
25722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25724 cat >conftest.$ac_ext <<_ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 $ac_includes_default
25731 #include <$ac_header>
25733 rm -f conftest.$ac_objext
25734 if { (ac_try="$ac_compile"
25735 case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_compile") 2>conftest.er1
25742 grep -v '^ *+' conftest.er1 >conftest.err
25744 cat conftest.err >&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); } && {
25747 test -z "$ac_c_werror_flag" ||
25748 test ! -s conftest.err
25749 } && test -s conftest.$ac_objext; then
25750 ac_header_compiler=yes
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 ac_header_compiler=no
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25760 echo "${ECHO_T}$ac_header_compiler" >&6; }
25762 # Is the header present?
25763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 #include <$ac_header>
25773 if { (ac_try="$ac_cpp conftest.$ac_ext"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } >/dev/null && {
25786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25789 ac_header_preproc=yes
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_header_preproc=no
25797 rm -f conftest.err conftest.$ac_ext
25798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25799 echo "${ECHO_T}$ac_header_preproc" >&6; }
25801 # So? What about this header?
25802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25808 ac_header_preproc=yes
25811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25824 ## --------------------------------------------- ##
25825 ## Report this to <http://www.openldap.org/its/> ##
25826 ## --------------------------------------------- ##
25828 ) | sed "s/^/$as_me: WARNING: /" >&2
25831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 eval "$as_ac_Header=\$ac_header_preproc"
25838 ac_res=`eval echo '${'$as_ac_Header'}'`
25839 { echo "$as_me:$LINENO: result: $ac_res" >&5
25840 echo "${ECHO_T}$ac_res" >&6; }
25843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25844 cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25853 if test $ac_cv_header_pth_h = yes ; then
25854 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25855 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25856 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 ac_check_lib_save_LIBS=$LIBS
25861 cat >conftest.$ac_ext <<_ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h. */
25868 /* Override any GCC internal prototype to avoid an error.
25869 Use char because int might match the return type of a GCC
25870 builtin and then its argument prototype would still apply. */
25874 char pth_version ();
25878 return pth_version ();
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_link") 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest$ac_exeext &&
25900 $as_test_x conftest$ac_exeext; then
25901 ac_cv_lib_pth_pth_version=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_lib_pth_pth_version=no
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910 conftest$ac_exeext conftest.$ac_ext
25911 LIBS=$ac_check_lib_save_LIBS
25913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25914 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25915 if test $ac_cv_lib_pth_pth_version = yes; then
25922 if test $have_pth = yes ; then
25924 cat >>confdefs.h <<\_ACEOF
25925 #define HAVE_GNU_PTH 1
25928 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25929 ol_link_threads=pth
25930 ol_with_threads=found
25932 if test $ol_with_yielding_select = auto ; then
25933 ol_with_yielding_select=yes
25940 case $ol_with_threads in auto | yes | lwp)
25944 for ac_header in thread.h synch.h
25946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954 { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25957 # Is the header compilable?
25958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 $ac_includes_default
25967 #include <$ac_header>
25969 rm -f conftest.$ac_objext
25970 if { (ac_try="$ac_compile"
25971 case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_compile") 2>conftest.er1
25978 grep -v '^ *+' conftest.er1 >conftest.err
25980 cat conftest.err >&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } && {
25983 test -z "$ac_c_werror_flag" ||
25984 test ! -s conftest.err
25985 } && test -s conftest.$ac_objext; then
25986 ac_header_compiler=yes
25988 echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25991 ac_header_compiler=no
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25996 echo "${ECHO_T}$ac_header_compiler" >&6; }
25998 # Is the header present?
25999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26001 cat >conftest.$ac_ext <<_ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 #include <$ac_header>
26009 if { (ac_try="$ac_cpp conftest.$ac_ext"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } >/dev/null && {
26022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26025 ac_header_preproc=yes
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_header_preproc=no
26033 rm -f conftest.err conftest.$ac_ext
26034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26035 echo "${ECHO_T}$ac_header_preproc" >&6; }
26037 # So? What about this header?
26038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26044 ac_header_preproc=yes
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26060 ## --------------------------------------------- ##
26061 ## Report this to <http://www.openldap.org/its/> ##
26062 ## --------------------------------------------- ##
26064 ) | sed "s/^/$as_me: WARNING: /" >&2
26067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26072 eval "$as_ac_Header=\$ac_header_preproc"
26074 ac_res=`eval echo '${'$as_ac_Header'}'`
26075 { echo "$as_me:$LINENO: result: $ac_res" >&5
26076 echo "${ECHO_T}$ac_res" >&6; }
26079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26080 cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26088 if test $ac_cv_header_thread_h = yes &&
26089 test $ac_cv_header_synch_h = yes ; then
26090 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26091 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26092 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26093 echo $ECHO_N "(cached) $ECHO_C" >&6
26095 ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lthread $LIBS"
26097 cat >conftest.$ac_ext <<_ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26104 /* Override any GCC internal prototype to avoid an error.
26105 Use char because int might match the return type of a GCC
26106 builtin and then its argument prototype would still apply. */
26110 char thr_create ();
26114 return thr_create ();
26119 rm -f conftest.$ac_objext conftest$ac_exeext
26120 if { (ac_try="$ac_link"
26121 case "(($ac_try" in
26122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123 *) ac_try_echo=$ac_try;;
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126 (eval "$ac_link") 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest$ac_exeext &&
26136 $as_test_x conftest$ac_exeext; then
26137 ac_cv_lib_thread_thr_create=yes
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 ac_cv_lib_thread_thr_create=no
26145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26146 conftest$ac_exeext conftest.$ac_ext
26147 LIBS=$ac_check_lib_save_LIBS
26149 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26150 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26151 if test $ac_cv_lib_thread_thr_create = yes; then
26158 if test $have_thr = yes ; then
26160 cat >>confdefs.h <<\_ACEOF
26164 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26165 ol_link_threads=thr
26167 if test $ol_with_yielding_select = auto ; then
26168 ol_with_yielding_select=yes
26174 thr_setconcurrency \
26175 thr_getconcurrency \
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define $ac_func innocuous_$ac_func
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any GCC internal prototype to avoid an error.
26208 Use char because int might match the return type of a GCC
26209 builtin and then its argument prototype would still apply. */
26214 /* The GNU C library defines this for functions which it implements
26215 to always fail with ENOSYS. Some functions are actually named
26216 something starting with __ and the normal name is an alias. */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26224 return $ac_func ();
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_link") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest$ac_exeext &&
26246 $as_test_x conftest$ac_exeext; then
26247 eval "$as_ac_var=yes"
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 eval "$as_ac_var=no"
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256 conftest$ac_exeext conftest.$ac_ext
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259 { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262 cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26273 for ac_header in lwp/lwp.h
26275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 ac_res=`eval echo '${'$as_ac_Header'}'`
26283 { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26286 # Is the header compilable?
26287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 $ac_includes_default
26296 #include <$ac_header>
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_compile") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } && {
26312 test -z "$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 } && test -s conftest.$ac_objext; then
26315 ac_header_compiler=yes
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_header_compiler=no
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26325 echo "${ECHO_T}$ac_header_compiler" >&6; }
26327 # Is the header present?
26328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26336 #include <$ac_header>
26338 if { (ac_try="$ac_cpp conftest.$ac_ext"
26339 case "(($ac_try" in
26340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341 *) ac_try_echo=$ac_try;;
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26346 grep -v '^ *+' conftest.er1 >conftest.err
26348 cat conftest.err >&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } >/dev/null && {
26351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26352 test ! -s conftest.err
26354 ac_header_preproc=yes
26356 echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26359 ac_header_preproc=no
26362 rm -f conftest.err conftest.$ac_ext
26363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6; }
26366 # So? What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373 ac_header_preproc=yes
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26389 ## --------------------------------------------- ##
26390 ## Report this to <http://www.openldap.org/its/> ##
26391 ## --------------------------------------------- ##
26393 ) | sed "s/^/$as_me: WARNING: /" >&2
26396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 eval "$as_ac_Header=\$ac_header_preproc"
26403 ac_res=`eval echo '${'$as_ac_Header'}'`
26404 { echo "$as_me:$LINENO: result: $ac_res" >&5
26405 echo "${ECHO_T}$ac_res" >&6; }
26408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26409 cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26417 if test $ac_cv_header_lwp_lwp_h = yes ; then
26418 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26419 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26420 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 ac_check_lib_save_LIBS=$LIBS
26425 cat >conftest.$ac_ext <<_ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26432 /* Override any GCC internal prototype to avoid an error.
26433 Use char because int might match the return type of a GCC
26434 builtin and then its argument prototype would still apply. */
26438 char lwp_create ();
26442 return lwp_create ();
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (ac_try="$ac_link"
26449 case "(($ac_try" in
26450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454 (eval "$ac_link") 2>conftest.er1
26456 grep -v '^ *+' conftest.er1 >conftest.err
26458 cat conftest.err >&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); } && {
26461 test -z "$ac_c_werror_flag" ||
26462 test ! -s conftest.err
26463 } && test -s conftest$ac_exeext &&
26464 $as_test_x conftest$ac_exeext; then
26465 ac_cv_lib_lwp_lwp_create=yes
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470 ac_cv_lib_lwp_lwp_create=no
26473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26474 conftest$ac_exeext conftest.$ac_ext
26475 LIBS=$ac_check_lib_save_LIBS
26477 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26478 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26479 if test $ac_cv_lib_lwp_lwp_create = yes; then
26486 if test $have_lwp = yes ; then
26488 cat >>confdefs.h <<\_ACEOF
26492 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26493 ol_link_threads=lwp
26495 if test $ol_with_yielding_select = auto ; then
26496 ol_with_yielding_select=no
26503 if test $ol_with_yielding_select = yes ; then
26505 cat >>confdefs.h <<\_ACEOF
26506 #define HAVE_YIELDING_SELECT 1
26511 if test $ol_with_threads = manual ; then
26512 ol_link_threads=yes
26514 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26515 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26519 for ac_header in pthread.h sched.h
26521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526 echo $ECHO_N "(cached) $ECHO_C" >&6
26528 ac_res=`eval echo '${'$as_ac_Header'}'`
26529 { echo "$as_me:$LINENO: result: $ac_res" >&5
26530 echo "${ECHO_T}$ac_res" >&6; }
26532 # Is the header compilable?
26533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 $ac_includes_default
26542 #include <$ac_header>
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_compile") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } && {
26558 test -z "$ac_c_werror_flag" ||
26559 test ! -s conftest.err
26560 } && test -s conftest.$ac_objext; then
26561 ac_header_compiler=yes
26563 echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 ac_header_compiler=no
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26571 echo "${ECHO_T}$ac_header_compiler" >&6; }
26573 # Is the header present?
26574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26576 cat >conftest.$ac_ext <<_ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26582 #include <$ac_header>
26584 if { (ac_try="$ac_cpp conftest.$ac_ext"
26585 case "(($ac_try" in
26586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26587 *) ac_try_echo=$ac_try;;
26589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26592 grep -v '^ *+' conftest.er1 >conftest.err
26594 cat conftest.err >&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } >/dev/null && {
26597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26598 test ! -s conftest.err
26600 ac_header_preproc=yes
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 ac_header_preproc=no
26608 rm -f conftest.err conftest.$ac_ext
26609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26610 echo "${ECHO_T}$ac_header_preproc" >&6; }
26612 # So? What about this header?
26613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26619 ac_header_preproc=yes
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26635 ## --------------------------------------------- ##
26636 ## Report this to <http://www.openldap.org/its/> ##
26637 ## --------------------------------------------- ##
26639 ) | sed "s/^/$as_me: WARNING: /" >&2
26642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 eval "$as_ac_Header=\$ac_header_preproc"
26649 ac_res=`eval echo '${'$as_ac_Header'}'`
26650 { echo "$as_me:$LINENO: result: $ac_res" >&5
26651 echo "${ECHO_T}$ac_res" >&6; }
26654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26655 cat >>confdefs.h <<_ACEOF
26656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665 for ac_func in sched_yield pthread_yield
26667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26681 #define $ac_func innocuous_$ac_func
26683 /* System header to define __stub macros and hopefully few prototypes,
26684 which can conflict with char $ac_func (); below.
26685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686 <limits.h> exists even on freestanding compilers. */
26689 # include <limits.h>
26691 # include <assert.h>
26696 /* Override any GCC internal prototype to avoid an error.
26697 Use char because int might match the return type of a GCC
26698 builtin and then its argument prototype would still apply. */
26703 /* The GNU C library defines this for functions which it implements
26704 to always fail with ENOSYS. Some functions are actually named
26705 something starting with __ and the normal name is an alias. */
26706 #if defined __stub_$ac_func || defined __stub___$ac_func
26713 return $ac_func ();
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (ac_try="$ac_link"
26720 case "(($ac_try" in
26721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722 *) ac_try_echo=$ac_try;;
26724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26725 (eval "$ac_link") 2>conftest.er1
26727 grep -v '^ *+' conftest.er1 >conftest.err
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } && {
26732 test -z "$ac_c_werror_flag" ||
26733 test ! -s conftest.err
26734 } && test -s conftest$ac_exeext &&
26735 $as_test_x conftest$ac_exeext; then
26736 eval "$as_ac_var=yes"
26738 echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26741 eval "$as_ac_var=no"
26744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26745 conftest$ac_exeext conftest.$ac_ext
26747 ac_res=`eval echo '${'$as_ac_var'}'`
26748 { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26750 if test `eval echo '${'$as_ac_var'}'` = yes; then
26751 cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26759 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26760 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26761 if test "${ol_cv_header_linux_threads+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 #include <pthread.h>
26772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26773 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26774 ol_cv_header_linux_threads=yes
26776 ol_cv_header_linux_threads=no
26782 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26783 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26784 if test $ol_cv_header_linux_threads = yes; then
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_LINUX_THREADS 1
26794 for ac_header in mach/cthreads.h
26796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 ac_res=`eval echo '${'$as_ac_Header'}'`
26804 { echo "$as_me:$LINENO: result: $ac_res" >&5
26805 echo "${ECHO_T}$ac_res" >&6; }
26807 # Is the header compilable?
26808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 $ac_includes_default
26817 #include <$ac_header>
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_compile") 2>conftest.er1
26828 grep -v '^ *+' conftest.er1 >conftest.err
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest.$ac_objext; then
26836 ac_header_compiler=yes
26838 echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26841 ac_header_compiler=no
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26846 echo "${ECHO_T}$ac_header_compiler" >&6; }
26848 # Is the header present?
26849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26851 cat >conftest.$ac_ext <<_ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h. */
26857 #include <$ac_header>
26859 if { (ac_try="$ac_cpp conftest.$ac_ext"
26860 case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } >/dev/null && {
26872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26873 test ! -s conftest.err
26875 ac_header_preproc=yes
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26880 ac_header_preproc=no
26883 rm -f conftest.err conftest.$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26885 echo "${ECHO_T}$ac_header_preproc" >&6; }
26887 # So? What about this header?
26888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26894 ac_header_preproc=yes
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26910 ## --------------------------------------------- ##
26911 ## Report this to <http://www.openldap.org/its/> ##
26912 ## --------------------------------------------- ##
26914 ) | sed "s/^/$as_me: WARNING: /" >&2
26917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 eval "$as_ac_Header=\$ac_header_preproc"
26924 ac_res=`eval echo '${'$as_ac_Header'}'`
26925 { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930 cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26939 for ac_header in lwp/lwp.h
26941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 ac_res=`eval echo '${'$as_ac_Header'}'`
26949 { echo "$as_me:$LINENO: result: $ac_res" >&5
26950 echo "${ECHO_T}$ac_res" >&6; }
26952 # Is the header compilable?
26953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 $ac_includes_default
26962 #include <$ac_header>
26964 rm -f conftest.$ac_objext
26965 if { (ac_try="$ac_compile"
26966 case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_compile") 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } && {
26978 test -z "$ac_c_werror_flag" ||
26979 test ! -s conftest.err
26980 } && test -s conftest.$ac_objext; then
26981 ac_header_compiler=yes
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_header_compiler=no
26989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26991 echo "${ECHO_T}$ac_header_compiler" >&6; }
26993 # Is the header present?
26994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27002 #include <$ac_header>
27004 if { (ac_try="$ac_cpp conftest.$ac_ext"
27005 case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27012 grep -v '^ *+' conftest.er1 >conftest.err
27014 cat conftest.err >&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } >/dev/null && {
27017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27018 test ! -s conftest.err
27020 ac_header_preproc=yes
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27025 ac_header_preproc=no
27028 rm -f conftest.err conftest.$ac_ext
27029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27030 echo "${ECHO_T}$ac_header_preproc" >&6; }
27032 # So? What about this header?
27033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27039 ac_header_preproc=yes
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27055 ## --------------------------------------------- ##
27056 ## Report this to <http://www.openldap.org/its/> ##
27057 ## --------------------------------------------- ##
27059 ) | sed "s/^/$as_me: WARNING: /" >&2
27062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 eval "$as_ac_Header=\$ac_header_preproc"
27069 ac_res=`eval echo '${'$as_ac_Header'}'`
27070 { echo "$as_me:$LINENO: result: $ac_res" >&5
27071 echo "${ECHO_T}$ac_res" >&6; }
27074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27075 cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27085 for ac_header in thread.h synch.h
27087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 ac_res=`eval echo '${'$as_ac_Header'}'`
27095 { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27098 # Is the header compilable?
27099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 $ac_includes_default
27108 #include <$ac_header>
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117 (eval "$ac_compile") 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } && {
27124 test -z "$ac_c_werror_flag" ||
27125 test ! -s conftest.err
27126 } && test -s conftest.$ac_objext; then
27127 ac_header_compiler=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_header_compiler=no
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27137 echo "${ECHO_T}$ac_header_compiler" >&6; }
27139 # Is the header present?
27140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27142 cat >conftest.$ac_ext <<_ACEOF
27145 cat confdefs.h >>conftest.$ac_ext
27146 cat >>conftest.$ac_ext <<_ACEOF
27147 /* end confdefs.h. */
27148 #include <$ac_header>
27150 if { (ac_try="$ac_cpp conftest.$ac_ext"
27151 case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } >/dev/null && {
27163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27164 test ! -s conftest.err
27166 ac_header_preproc=yes
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 ac_header_preproc=no
27174 rm -f conftest.err conftest.$ac_ext
27175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6; }
27178 # So? What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185 ac_header_preproc=yes
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27201 ## --------------------------------------------- ##
27202 ## Report this to <http://www.openldap.org/its/> ##
27203 ## --------------------------------------------- ##
27205 ) | sed "s/^/$as_me: WARNING: /" >&2
27208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27211 echo $ECHO_N "(cached) $ECHO_C" >&6
27213 eval "$as_ac_Header=\$ac_header_preproc"
27215 ac_res=`eval echo '${'$as_ac_Header'}'`
27216 { echo "$as_me:$LINENO: result: $ac_res" >&5
27217 echo "${ECHO_T}$ac_res" >&6; }
27220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27221 cat >>confdefs.h <<_ACEOF
27222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27231 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27232 cat >>confdefs.h <<\_ACEOF
27233 #define REENTRANT 1
27236 cat >>confdefs.h <<\_ACEOF
27237 #define _REENTRANT 1
27240 cat >>confdefs.h <<\_ACEOF
27241 #define THREAD_SAFE 1
27244 cat >>confdefs.h <<\_ACEOF
27245 #define _THREAD_SAFE 1
27248 cat >>confdefs.h <<\_ACEOF
27249 #define THREADSAFE 1
27252 cat >>confdefs.h <<\_ACEOF
27253 #define _THREADSAFE 1
27256 cat >>confdefs.h <<\_ACEOF
27257 #define _SGI_MP_SOURCE 1
27261 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27262 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27263 if test "${ol_cv_errno_thread_specific+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 cat >conftest.$ac_ext <<_ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_link") 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } && {
27296 test -z "$ac_c_werror_flag" ||
27297 test ! -s conftest.err
27298 } && test -s conftest$ac_exeext &&
27299 $as_test_x conftest$ac_exeext; then
27300 ol_cv_errno_thread_specific=yes
27302 echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27305 ol_cv_errno_thread_specific=no
27308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27309 conftest$ac_exeext conftest.$ac_ext
27312 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27313 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27315 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27316 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27317 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27318 echo $ECHO_N "(cached) $ECHO_C" >&6
27321 cat >conftest.$ac_ext <<_ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27336 rm -f conftest.$ac_objext conftest$ac_exeext
27337 if { (ac_try="$ac_link"
27338 case "(($ac_try" in
27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343 (eval "$ac_link") 2>conftest.er1
27345 grep -v '^ *+' conftest.er1 >conftest.err
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && {
27350 test -z "$ac_c_werror_flag" ||
27351 test ! -s conftest.err
27352 } && test -s conftest$ac_exeext &&
27353 $as_test_x conftest$ac_exeext; then
27354 ol_cv_h_errno_thread_specific=yes
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 ol_cv_h_errno_thread_specific=no
27362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27363 conftest$ac_exeext conftest.$ac_ext
27366 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27367 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27369 if test $ol_cv_errno_thread_specific != yes ||
27370 test $ol_cv_h_errno_thread_specific != yes ; then
27371 LIBS="$LTHREAD_LIBS $LIBS"
27377 if test $ol_link_threads = no ; then
27378 if test $ol_with_threads = yes ; then
27379 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27380 echo "$as_me: error: no suitable thread support" >&2;}
27381 { (exit 1); exit 1; }; }
27384 if test $ol_with_threads = auto ; then
27385 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27386 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27391 cat >>confdefs.h <<\_ACEOF
27392 #define NO_THREADS 1
27401 if test $ol_link_threads != no ; then
27403 cat >>confdefs.h <<\_ACEOF
27404 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27414 gethostbyname_r gethostbyaddr_r \
27417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 cat >conftest.$ac_ext <<_ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h. */
27429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27431 #define $ac_func innocuous_$ac_func
27433 /* System header to define __stub macros and hopefully few prototypes,
27434 which can conflict with char $ac_func (); below.
27435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27436 <limits.h> exists even on freestanding compilers. */
27439 # include <limits.h>
27441 # include <assert.h>
27446 /* Override any GCC internal prototype to avoid an error.
27447 Use char because int might match the return type of a GCC
27448 builtin and then its argument prototype would still apply. */
27453 /* The GNU C library defines this for functions which it implements
27454 to always fail with ENOSYS. Some functions are actually named
27455 something starting with __ and the normal name is an alias. */
27456 #if defined __stub_$ac_func || defined __stub___$ac_func
27463 return $ac_func ();
27468 rm -f conftest.$ac_objext conftest$ac_exeext
27469 if { (ac_try="$ac_link"
27470 case "(($ac_try" in
27471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27472 *) ac_try_echo=$ac_try;;
27474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27475 (eval "$ac_link") 2>conftest.er1
27477 grep -v '^ *+' conftest.er1 >conftest.err
27479 cat conftest.err >&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } && {
27482 test -z "$ac_c_werror_flag" ||
27483 test ! -s conftest.err
27484 } && test -s conftest$ac_exeext &&
27485 $as_test_x conftest$ac_exeext; then
27486 eval "$as_ac_var=yes"
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27491 eval "$as_ac_var=no"
27494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27495 conftest$ac_exeext conftest.$ac_ext
27497 ac_res=`eval echo '${'$as_ac_var'}'`
27498 { echo "$as_me:$LINENO: result: $ac_res" >&5
27499 echo "${ECHO_T}$ac_res" >&6; }
27500 if test `eval echo '${'$as_ac_var'}'` = yes; then
27501 cat >>confdefs.h <<_ACEOF
27502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27509 if test "$ac_cv_func_ctime_r" = no ; then
27510 ol_cv_func_ctime_r_nargs=0
27512 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27513 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27514 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27527 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27532 rm -f conftest.$ac_objext
27533 if { (ac_try="$ac_compile"
27534 case "(($ac_try" in
27535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536 *) ac_try_echo=$ac_try;;
27538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539 (eval "$ac_compile") 2>conftest.er1
27541 grep -v '^ *+' conftest.er1 >conftest.err
27543 cat conftest.err >&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } && {
27546 test -z "$ac_c_werror_flag" ||
27547 test ! -s conftest.err
27548 } && test -s conftest.$ac_objext; then
27549 ol_cv_func_ctime_r_nargs3=yes
27551 echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27554 ol_cv_func_ctime_r_nargs3=no
27557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27569 time_t ti; char *buffer; ctime_r(&ti,buffer);
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_compile") 2>conftest.er1
27583 grep -v '^ *+' conftest.er1 >conftest.err
27585 cat conftest.err >&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } && {
27588 test -z "$ac_c_werror_flag" ||
27589 test ! -s conftest.err
27590 } && test -s conftest.$ac_objext; then
27591 ol_cv_func_ctime_r_nargs2=yes
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ol_cv_func_ctime_r_nargs2=no
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27602 test $ol_cv_func_ctime_r_nargs2 = no ; then
27604 ol_cv_func_ctime_r_nargs=3
27606 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27607 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27609 ol_cv_func_ctime_r_nargs=2
27612 ol_cv_func_ctime_r_nargs=0
27616 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27617 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27619 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27621 cat >>confdefs.h <<_ACEOF
27622 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27629 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27630 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27631 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27632 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27633 echo $ECHO_N "(cached) $ECHO_C" >&6
27635 cat >conftest.$ac_ext <<_ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27641 #include <sys/types.h>
27642 #include <sys/socket.h>
27643 #include <netinet/in.h>
27645 #define BUFSIZE (sizeof(struct hostent)+10)
27649 struct hostent hent; char buffer[BUFSIZE];
27650 int bufsize=BUFSIZE;int h_errno;
27651 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27652 buffer, bufsize, &h_errno);
27657 rm -f conftest.$ac_objext
27658 if { (ac_try="$ac_compile"
27659 case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_compile") 2>conftest.er1
27666 grep -v '^ *+' conftest.er1 >conftest.err
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } && {
27671 test -z "$ac_c_werror_flag" ||
27672 test ! -s conftest.err
27673 } && test -s conftest.$ac_objext; then
27674 ol_cv_func_gethostbyname_r_nargs5=yes
27676 echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27679 ol_cv_func_gethostbyname_r_nargs5=no
27682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27684 cat >conftest.$ac_ext <<_ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27690 #include <sys/types.h>
27691 #include <sys/socket.h>
27692 #include <netinet/in.h>
27694 #define BUFSIZE (sizeof(struct hostent)+10)
27698 struct hostent hent;struct hostent *rhent;
27699 char buffer[BUFSIZE];
27700 int bufsize=BUFSIZE;int h_errno;
27701 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27707 rm -f conftest.$ac_objext
27708 if { (ac_try="$ac_compile"
27709 case "(($ac_try" in
27710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27711 *) ac_try_echo=$ac_try;;
27713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27714 (eval "$ac_compile") 2>conftest.er1
27716 grep -v '^ *+' conftest.er1 >conftest.err
27718 cat conftest.err >&5
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } && {
27721 test -z "$ac_c_werror_flag" ||
27722 test ! -s conftest.err
27723 } && test -s conftest.$ac_objext; then
27724 ol_cv_func_gethostbyname_r_nargs6=yes
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ol_cv_func_gethostbyname_r_nargs6=no
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27735 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27737 ol_cv_func_gethostbyname_r_nargs=5
27739 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27740 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27742 ol_cv_func_gethostbyname_r_nargs=6
27745 ol_cv_func_gethostbyname_r_nargs=0
27749 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27750 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27751 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27753 cat >>confdefs.h <<_ACEOF
27754 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27760 ol_cv_func_gethostbyname_r_nargs=0
27763 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27764 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27765 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27766 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <sys/types.h>
27776 #include <sys/socket.h>
27777 #include <netinet/in.h>
27779 #define BUFSIZE (sizeof(struct hostent)+10)
27783 struct hostent hent; char buffer[BUFSIZE];
27784 struct in_addr add;
27785 size_t alen=sizeof(struct in_addr);
27786 int bufsize=BUFSIZE;int h_errno;
27787 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27788 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_compile") 2>conftest.er1
27802 grep -v '^ *+' conftest.er1 >conftest.err
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } && {
27807 test -z "$ac_c_werror_flag" ||
27808 test ! -s conftest.err
27809 } && test -s conftest.$ac_objext; then
27810 ol_cv_func_gethostbyaddr_r_nargs7=yes
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27815 ol_cv_func_gethostbyaddr_r_nargs7=no
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27826 #include <sys/types.h>
27827 #include <sys/socket.h>
27828 #include <netinet/in.h>
27830 #define BUFSIZE (sizeof(struct hostent)+10)
27834 struct hostent hent;
27835 struct hostent *rhent; char buffer[BUFSIZE];
27836 struct in_addr add;
27837 size_t alen=sizeof(struct in_addr);
27838 int bufsize=BUFSIZE;int h_errno;
27839 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27840 alen, AF_INET, &hent, buffer, bufsize,
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
27848 case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853 (eval "$ac_compile") 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } && {
27860 test -z "$ac_c_werror_flag" ||
27861 test ! -s conftest.err
27862 } && test -s conftest.$ac_objext; then
27863 ol_cv_func_gethostbyaddr_r_nargs8=yes
27865 echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 ol_cv_func_gethostbyaddr_r_nargs8=no
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27874 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27876 ol_cv_func_gethostbyaddr_r_nargs=7
27878 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27879 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27881 ol_cv_func_gethostbyaddr_r_nargs=8
27884 ol_cv_func_gethostbyaddr_r_nargs=0
27888 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27889 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27890 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27892 cat >>confdefs.h <<_ACEOF
27893 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27899 ol_cv_func_gethostbyaddr_r_nargs=0
27904 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27905 ol_cv_berkeley_db=no
27907 for ac_header in db.h
27909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27916 ac_res=`eval echo '${'$as_ac_Header'}'`
27917 { echo "$as_me:$LINENO: result: $ac_res" >&5
27918 echo "${ECHO_T}$ac_res" >&6; }
27920 # Is the header compilable?
27921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27923 cat >conftest.$ac_ext <<_ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h. */
27929 $ac_includes_default
27930 #include <$ac_header>
27932 rm -f conftest.$ac_objext
27933 if { (ac_try="$ac_compile"
27934 case "(($ac_try" in
27935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_compile") 2>conftest.er1
27941 grep -v '^ *+' conftest.er1 >conftest.err
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } && {
27946 test -z "$ac_c_werror_flag" ||
27947 test ! -s conftest.err
27948 } && test -s conftest.$ac_objext; then
27949 ac_header_compiler=yes
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27954 ac_header_compiler=no
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27959 echo "${ECHO_T}$ac_header_compiler" >&6; }
27961 # Is the header present?
27962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 #include <$ac_header>
27972 if { (ac_try="$ac_cpp conftest.$ac_ext"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } >/dev/null && {
27985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27986 test ! -s conftest.err
27988 ac_header_preproc=yes
27990 echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27993 ac_header_preproc=no
27996 rm -f conftest.err conftest.$ac_ext
27997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6; }
28000 # So? What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007 ac_header_preproc=yes
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28023 ## --------------------------------------------- ##
28024 ## Report this to <http://www.openldap.org/its/> ##
28025 ## --------------------------------------------- ##
28027 ) | sed "s/^/$as_me: WARNING: /" >&2
28030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28033 echo $ECHO_N "(cached) $ECHO_C" >&6
28035 eval "$as_ac_Header=\$ac_header_preproc"
28037 ac_res=`eval echo '${'$as_ac_Header'}'`
28038 { echo "$as_me:$LINENO: result: $ac_res" >&5
28039 echo "${ECHO_T}$ac_res" >&6; }
28042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28043 cat >>confdefs.h <<_ACEOF
28044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28051 if test $ac_cv_header_db_h = yes; then
28052 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28053 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28054 if test "${ol_cv_bdb_major+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28058 cat >conftest.$ac_ext <<_ACEOF
28061 #ifndef DB_VERSION_MAJOR
28062 # define DB_VERSION_MAJOR 1
28064 __db_version DB_VERSION_MAJOR
28067 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28068 ol_cv_bdb_major=${3}
28071 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28072 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28073 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28074 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28075 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28076 { (exit 1); exit 1; }; } ;;
28079 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28080 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28081 if test "${ol_cv_bdb_minor+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 cat >conftest.$ac_ext <<_ACEOF
28088 #ifndef DB_VERSION_MINOR
28089 # define DB_VERSION_MINOR 0
28091 __db_version DB_VERSION_MINOR
28094 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28095 ol_cv_bdb_minor=${3}
28098 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28099 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28100 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28101 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28102 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28103 { (exit 1); exit 1; }; } ;;
28106 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28107 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28108 if test "${ol_cv_bdb_compat+set}" = set; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28112 cat >conftest.$ac_ext <<_ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h. */
28121 /* this check could be improved */
28122 #ifndef DB_VERSION_MAJOR
28123 # define DB_VERSION_MAJOR 1
28125 #ifndef DB_VERSION_MINOR
28126 # define DB_VERSION_MINOR 0
28129 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28131 /* require 4.4 or later */
28132 #if DB_VERSION_MM >= 0x0404
28133 __db_version_compat
28137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28138 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28139 ol_cv_bdb_compat=yes
28141 ol_cv_bdb_compat=no
28146 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28147 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28150 if test $ol_cv_bdb_compat != yes ; then
28151 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28152 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28153 { (exit 1); exit 1; }; }
28158 if test $ol_cv_bdb_major = 4 ; then
28159 if test $ol_cv_lib_db = no ; then
28160 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28161 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28162 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28168 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28177 #ifdef HAVE_DB_185_H
28178 # include <db_185.h>
28183 #ifndef DB_VERSION_MAJOR
28184 # define DB_VERSION_MAJOR 1
28188 #define NULL ((void*)0)
28195 #if DB_VERSION_MAJOR > 2
28196 db_env_create( NULL, 0 );
28197 #elif DB_VERSION_MAJOR > 1
28198 db_appexit( NULL );
28200 (void) dbopen( NULL, 0, 0, 0, NULL);
28207 rm -f conftest.$ac_objext conftest$ac_exeext
28208 if { (ac_try="$ac_link"
28209 case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_link") 2>conftest.er1
28216 grep -v '^ *+' conftest.er1 >conftest.err
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } && {
28221 test -z "$ac_c_werror_flag" ||
28222 test ! -s conftest.err
28223 } && test -s conftest$ac_exeext &&
28224 $as_test_x conftest$ac_exeext; then
28225 ol_cv_db_db_4_dot_m=yes
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28230 ol_cv_db_db_4_dot_m=no
28233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28234 conftest$ac_exeext conftest.$ac_ext
28239 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28240 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28242 if test $ol_cv_db_db_4_dot_m = yes ; then
28243 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28247 if test $ol_cv_lib_db = no ; then
28248 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28249 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28250 if test "${ol_cv_db_db4m+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28254 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28256 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28258 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28265 #ifdef HAVE_DB_185_H
28266 # include <db_185.h>
28271 #ifndef DB_VERSION_MAJOR
28272 # define DB_VERSION_MAJOR 1
28276 #define NULL ((void*)0)
28283 #if DB_VERSION_MAJOR > 2
28284 db_env_create( NULL, 0 );
28285 #elif DB_VERSION_MAJOR > 1
28286 db_appexit( NULL );
28288 (void) dbopen( NULL, 0, 0, 0, NULL);
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (ac_try="$ac_link"
28297 case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_link") 2>conftest.er1
28304 grep -v '^ *+' conftest.er1 >conftest.err
28306 cat conftest.err >&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } && {
28309 test -z "$ac_c_werror_flag" ||
28310 test ! -s conftest.err
28311 } && test -s conftest$ac_exeext &&
28312 $as_test_x conftest$ac_exeext; then
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28322 conftest$ac_exeext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28328 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28330 if test $ol_cv_db_db4m = yes ; then
28331 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28335 if test $ol_cv_lib_db = no ; then
28336 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28337 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28338 if test "${ol_cv_db_db_4m+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28344 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28346 cat >conftest.$ac_ext <<_ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28353 #ifdef HAVE_DB_185_H
28354 # include <db_185.h>
28359 #ifndef DB_VERSION_MAJOR
28360 # define DB_VERSION_MAJOR 1
28364 #define NULL ((void*)0)
28371 #if DB_VERSION_MAJOR > 2
28372 db_env_create( NULL, 0 );
28373 #elif DB_VERSION_MAJOR > 1
28374 db_appexit( NULL );
28376 (void) dbopen( NULL, 0, 0, 0, NULL);
28383 rm -f conftest.$ac_objext conftest$ac_exeext
28384 if { (ac_try="$ac_link"
28385 case "(($ac_try" in
28386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387 *) ac_try_echo=$ac_try;;
28389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390 (eval "$ac_link") 2>conftest.er1
28392 grep -v '^ *+' conftest.er1 >conftest.err
28394 cat conftest.err >&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); } && {
28397 test -z "$ac_c_werror_flag" ||
28398 test ! -s conftest.err
28399 } && test -s conftest$ac_exeext &&
28400 $as_test_x conftest$ac_exeext; then
28403 echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28410 conftest$ac_exeext conftest.$ac_ext
28415 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28416 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28418 if test $ol_cv_db_db_4m = yes ; then
28419 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28423 if test $ol_cv_lib_db = no ; then
28424 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28426 if test "${ol_cv_db_db_4_m+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28430 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28434 cat >conftest.$ac_ext <<_ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28441 #ifdef HAVE_DB_185_H
28442 # include <db_185.h>
28447 #ifndef DB_VERSION_MAJOR
28448 # define DB_VERSION_MAJOR 1
28452 #define NULL ((void*)0)
28459 #if DB_VERSION_MAJOR > 2
28460 db_env_create( NULL, 0 );
28461 #elif DB_VERSION_MAJOR > 1
28462 db_appexit( NULL );
28464 (void) dbopen( NULL, 0, 0, 0, NULL);
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (ac_try="$ac_link"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_link") 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } && {
28485 test -z "$ac_c_werror_flag" ||
28486 test ! -s conftest.err
28487 } && test -s conftest$ac_exeext &&
28488 $as_test_x conftest$ac_exeext; then
28489 ol_cv_db_db_4_m=yes
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28498 conftest$ac_exeext conftest.$ac_ext
28503 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28504 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28506 if test $ol_cv_db_db_4_m = yes ; then
28507 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28511 if test $ol_cv_lib_db = no ; then
28512 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28513 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28514 if test "${ol_cv_db_db_4+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28522 cat >conftest.$ac_ext <<_ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28529 #ifdef HAVE_DB_185_H
28530 # include <db_185.h>
28535 #ifndef DB_VERSION_MAJOR
28536 # define DB_VERSION_MAJOR 1
28540 #define NULL ((void*)0)
28547 #if DB_VERSION_MAJOR > 2
28548 db_env_create( NULL, 0 );
28549 #elif DB_VERSION_MAJOR > 1
28550 db_appexit( NULL );
28552 (void) dbopen( NULL, 0, 0, 0, NULL);
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560 if { (ac_try="$ac_link"
28561 case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_link") 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } && {
28573 test -z "$ac_c_werror_flag" ||
28574 test ! -s conftest.err
28575 } && test -s conftest$ac_exeext &&
28576 $as_test_x conftest$ac_exeext; then
28579 echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28586 conftest$ac_exeext conftest.$ac_ext
28591 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28592 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28594 if test $ol_cv_db_db_4 = yes ; then
28595 ol_cv_lib_db=-ldb-4
28599 if test $ol_cv_lib_db = no ; then
28600 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28601 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28602 if test "${ol_cv_db_db4+set}" = set; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28608 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28610 cat >conftest.$ac_ext <<_ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h. */
28617 #ifdef HAVE_DB_185_H
28618 # include <db_185.h>
28623 #ifndef DB_VERSION_MAJOR
28624 # define DB_VERSION_MAJOR 1
28628 #define NULL ((void*)0)
28635 #if DB_VERSION_MAJOR > 2
28636 db_env_create( NULL, 0 );
28637 #elif DB_VERSION_MAJOR > 1
28638 db_appexit( NULL );
28640 (void) dbopen( NULL, 0, 0, 0, NULL);
28647 rm -f conftest.$ac_objext conftest$ac_exeext
28648 if { (ac_try="$ac_link"
28649 case "(($ac_try" in
28650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651 *) ac_try_echo=$ac_try;;
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654 (eval "$ac_link") 2>conftest.er1
28656 grep -v '^ *+' conftest.er1 >conftest.err
28658 cat conftest.err >&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } && {
28661 test -z "$ac_c_werror_flag" ||
28662 test ! -s conftest.err
28663 } && test -s conftest$ac_exeext &&
28664 $as_test_x conftest$ac_exeext; then
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28674 conftest$ac_exeext conftest.$ac_ext
28679 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28680 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28682 if test $ol_cv_db_db4 = yes ; then
28687 if test $ol_cv_lib_db = no ; then
28688 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28689 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28690 if test "${ol_cv_db_db+set}" = set; then
28691 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28705 #ifdef HAVE_DB_185_H
28706 # include <db_185.h>
28711 #ifndef DB_VERSION_MAJOR
28712 # define DB_VERSION_MAJOR 1
28716 #define NULL ((void*)0)
28723 #if DB_VERSION_MAJOR > 2
28724 db_env_create( NULL, 0 );
28725 #elif DB_VERSION_MAJOR > 1
28726 db_appexit( NULL );
28728 (void) dbopen( NULL, 0, 0, 0, NULL);
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_link") 2>conftest.er1
28744 grep -v '^ *+' conftest.er1 >conftest.err
28746 cat conftest.err >&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } && {
28749 test -z "$ac_c_werror_flag" ||
28750 test ! -s conftest.err
28751 } && test -s conftest$ac_exeext &&
28752 $as_test_x conftest$ac_exeext; then
28755 echo "$as_me: failed program was:" >&5
28756 sed 's/^/| /' conftest.$ac_ext >&5
28761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28762 conftest$ac_exeext conftest.$ac_ext
28767 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28768 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28770 if test $ol_cv_db_db = yes ; then
28776 if test $ol_cv_lib_db = no ; then
28777 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28778 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28779 if test "${ol_cv_db_none+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28785 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28794 #ifdef HAVE_DB_185_H
28795 # include <db_185.h>
28800 #ifndef DB_VERSION_MAJOR
28801 # define DB_VERSION_MAJOR 1
28805 #define NULL ((void*)0)
28812 #if DB_VERSION_MAJOR > 2
28813 db_env_create( NULL, 0 );
28814 #elif DB_VERSION_MAJOR > 1
28815 db_appexit( NULL );
28817 (void) dbopen( NULL, 0, 0, 0, NULL);
28824 rm -f conftest.$ac_objext conftest$ac_exeext
28825 if { (ac_try="$ac_link"
28826 case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831 (eval "$ac_link") 2>conftest.er1
28833 grep -v '^ *+' conftest.er1 >conftest.err
28835 cat conftest.err >&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } && {
28838 test -z "$ac_c_werror_flag" ||
28839 test ! -s conftest.err
28840 } && test -s conftest$ac_exeext &&
28841 $as_test_x conftest$ac_exeext; then
28844 echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28851 conftest$ac_exeext conftest.$ac_ext
28856 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28857 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28859 if test $ol_cv_db_none = yes ; then
28865 if test "$ol_cv_lib_db" != no ; then
28866 ol_cv_berkeley_db=yes
28867 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28868 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28869 if test "${ol_cv_berkeley_db_version+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28874 LIBS="$LTHREAD_LIBS $LIBS"
28875 if test $ol_cv_lib_db != yes ; then
28876 LIBS="$ol_cv_lib_db $LIBS"
28879 if test "$cross_compiling" = yes; then
28880 ol_cv_berkeley_db_version=cross
28882 cat >conftest.$ac_ext <<_ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28889 #ifdef HAVE_DB_185_H
28894 #ifndef DB_VERSION_MAJOR
28895 # define DB_VERSION_MAJOR 1
28898 #define NULL ((void *)0)
28902 #if DB_VERSION_MAJOR > 1
28904 int major, minor, patch;
28906 version = db_version( &major, &minor, &patch );
28908 if( major != DB_VERSION_MAJOR ||
28909 minor != DB_VERSION_MINOR ||
28910 patch != DB_VERSION_PATCH )
28912 printf("Berkeley DB version mismatch\n"
28913 "\theader: %s\n\tlibrary: %s\n",
28914 DB_VERSION_STRING, version);
28922 rm -f conftest$ac_exeext
28923 if { (ac_try="$ac_link"
28924 case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_link") 2>&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28933 { (case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_try") 2>&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); }; }; then
28942 ol_cv_berkeley_db_version=yes
28944 echo "$as_me: program exited with status $ac_status" >&5
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ( exit $ac_status )
28949 ol_cv_berkeley_db_version=no
28951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28959 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28960 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28962 if test $ol_cv_berkeley_db_version = no ; then
28963 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28964 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28965 { (exit 1); exit 1; }; }
28968 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28969 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28970 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28971 echo $ECHO_N "(cached) $ECHO_C" >&6
28975 LIBS="$LTHREAD_LIBS $LIBS"
28976 if test $ol_cv_lib_db != yes ; then
28977 LIBS="$ol_cv_lib_db $LIBS"
28980 if test "$cross_compiling" = yes; then
28981 ol_cv_berkeley_db_thread=cross
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28990 #ifdef HAVE_DB_185_H
28996 #define NULL ((void *)0)
29001 u_int32_t flags = DB_CREATE |
29007 #if DB_VERSION_MAJOR > 2
29008 DB_ENV *env = NULL;
29010 rc = db_env_create( &env, 0 );
29012 flags |= DB_INIT_MPOOL;
29013 #ifdef DB_MPOOL_PRIVATE
29014 flags |= DB_MPOOL_PRIVATE;
29018 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29022 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29023 rc = (env->open)( env, NULL, flags, 0 );
29025 rc = (env->open)( env, NULL, NULL, flags, 0 );
29029 rc = env->close( env, 0 );
29033 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29039 memset( &env, '\0', sizeof(env) );
29041 rc = db_appinit( NULL, NULL, &env, flags );
29044 db_appexit( &env );
29047 unlink("__db_mpool.share");
29048 unlink("__db_lock.share");
29054 rm -f conftest$ac_exeext
29055 if { (ac_try="$ac_link"
29056 case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_link") 2>&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29065 { (case "(($ac_try" in
29066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_try") 2>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; }; then
29074 ol_cv_berkeley_db_thread=yes
29076 echo "$as_me: program exited with status $ac_status" >&5
29077 echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29080 ( exit $ac_status )
29081 ol_cv_berkeley_db_thread=no
29083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29091 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29092 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29094 if test $ol_cv_berkeley_db_thread != no ; then
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_BERKELEY_DB_THREAD 1
29106 if test $ol_cv_berkeley_db = no ; then
29107 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29108 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29109 { (exit 1); exit 1; }; }
29113 cat >>confdefs.h <<\_ACEOF
29114 #define HAVE_BERKELEY_DB 1
29118 if test $ol_cv_lib_db != yes ; then
29119 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29122 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29128 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29129 BUILD_LIBS_DYNAMIC=shared
29131 cat >>confdefs.h <<\_ACEOF
29132 #define LDAP_LIBS_DYNAMIC 1
29137 BUILD_LIBS_DYNAMIC=static
29141 if test $ol_enable_wrappers != no ; then
29143 for ac_header in tcpd.h
29145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29152 ac_res=`eval echo '${'$as_ac_Header'}'`
29153 { echo "$as_me:$LINENO: result: $ac_res" >&5
29154 echo "${ECHO_T}$ac_res" >&6; }
29156 # Is the header compilable?
29157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29159 cat >conftest.$ac_ext <<_ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h. */
29165 $ac_includes_default
29166 #include <$ac_header>
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
29170 case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_compile") 2>conftest.er1
29177 grep -v '^ *+' conftest.er1 >conftest.err
29179 cat conftest.err >&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } && {
29182 test -z "$ac_c_werror_flag" ||
29183 test ! -s conftest.err
29184 } && test -s conftest.$ac_objext; then
29185 ac_header_compiler=yes
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29190 ac_header_compiler=no
29193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29195 echo "${ECHO_T}$ac_header_compiler" >&6; }
29197 # Is the header present?
29198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29200 cat >conftest.$ac_ext <<_ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 #include <$ac_header>
29208 if { (ac_try="$ac_cpp conftest.$ac_ext"
29209 case "(($ac_try" in
29210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211 *) ac_try_echo=$ac_try;;
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29216 grep -v '^ *+' conftest.er1 >conftest.err
29218 cat conftest.err >&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } >/dev/null && {
29221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29222 test ! -s conftest.err
29224 ac_header_preproc=yes
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29229 ac_header_preproc=no
29232 rm -f conftest.err conftest.$ac_ext
29233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29234 echo "${ECHO_T}$ac_header_preproc" >&6; }
29236 # So? What about this header?
29237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29243 ac_header_preproc=yes
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29259 ## --------------------------------------------- ##
29260 ## Report this to <http://www.openldap.org/its/> ##
29261 ## --------------------------------------------- ##
29263 ) | sed "s/^/$as_me: WARNING: /" >&2
29266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29271 eval "$as_ac_Header=\$ac_header_preproc"
29273 ac_res=`eval echo '${'$as_ac_Header'}'`
29274 { echo "$as_me:$LINENO: result: $ac_res" >&5
29275 echo "${ECHO_T}$ac_res" >&6; }
29278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29279 cat >>confdefs.h <<_ACEOF
29280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29283 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29284 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29286 LIBS="$LIBS -lwrap"
29287 cat >conftest.$ac_ext <<_ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29295 int allow_severity = 0;
29296 int deny_severity = 0;
29298 struct request_info *req;
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (ac_try="$ac_link"
29312 case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_link") 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } && {
29324 test -z "$ac_c_werror_flag" ||
29325 test ! -s conftest.err
29326 } && test -s conftest$ac_exeext &&
29327 $as_test_x conftest$ac_exeext; then
29328 { echo "$as_me:$LINENO: result: -lwrap" >&5
29329 echo "${ECHO_T}-lwrap" >&6; }
29333 echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29338 cat >conftest.$ac_ext <<_ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29346 int allow_severity = 0;
29347 int deny_severity = 0;
29349 struct request_info *req;
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
29363 case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_link") 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest$ac_exeext &&
29378 $as_test_x conftest$ac_exeext; then
29379 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29380 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29382 LIBS="$save_LIBS -lnsl"
29384 echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29388 { echo "$as_me:$LINENO: result: no" >&5
29389 echo "${ECHO_T}no" >&6; }
29394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29395 conftest$ac_exeext conftest.$ac_ext
29398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29399 conftest$ac_exeext conftest.$ac_ext
29407 if test $have_wrappers = yes ; then
29409 cat >>confdefs.h <<\_ACEOF
29410 #define HAVE_TCPD 1
29414 elif test $ol_enable_wrappers = yes ; then
29415 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29416 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29417 { (exit 1); exit 1; }; }
29419 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29420 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29425 if test $ol_enable_syslog != no ; then
29426 { echo "$as_me:$LINENO: checking for openlog" >&5
29427 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29428 if test "${ac_cv_func_openlog+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29431 cat >conftest.$ac_ext <<_ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29437 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29439 #define openlog innocuous_openlog
29441 /* System header to define __stub macros and hopefully few prototypes,
29442 which can conflict with char openlog (); below.
29443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29444 <limits.h> exists even on freestanding compilers. */
29447 # include <limits.h>
29449 # include <assert.h>
29454 /* Override any GCC internal prototype to avoid an error.
29455 Use char because int might match the return type of a GCC
29456 builtin and then its argument prototype would still apply. */
29461 /* The GNU C library defines this for functions which it implements
29462 to always fail with ENOSYS. Some functions are actually named
29463 something starting with __ and the normal name is an alias. */
29464 #if defined __stub_openlog || defined __stub___openlog
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (ac_try="$ac_link"
29478 case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_link") 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } && {
29490 test -z "$ac_c_werror_flag" ||
29491 test ! -s conftest.err
29492 } && test -s conftest$ac_exeext &&
29493 $as_test_x conftest$ac_exeext; then
29494 ac_cv_func_openlog=yes
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 ac_cv_func_openlog=no
29502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29503 conftest$ac_exeext conftest.$ac_ext
29505 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29506 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29508 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29509 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29510 echo "$as_me: error: could not find syslog" >&2;}
29511 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29513 ol_enable_syslog=$ac_cv_func_openlog
29517 if test $ol_enable_sql != no ; then
29520 for ac_header in sql.h sqlext.h
29522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29529 ac_res=`eval echo '${'$as_ac_Header'}'`
29530 { echo "$as_me:$LINENO: result: $ac_res" >&5
29531 echo "${ECHO_T}$ac_res" >&6; }
29533 # Is the header compilable?
29534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29536 cat >conftest.$ac_ext <<_ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h. */
29542 $ac_includes_default
29543 #include <$ac_header>
29545 rm -f conftest.$ac_objext
29546 if { (ac_try="$ac_compile"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_compile") 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } && {
29559 test -z "$ac_c_werror_flag" ||
29560 test ! -s conftest.err
29561 } && test -s conftest.$ac_objext; then
29562 ac_header_compiler=yes
29564 echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29567 ac_header_compiler=no
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29572 echo "${ECHO_T}$ac_header_compiler" >&6; }
29574 # Is the header present?
29575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29577 cat >conftest.$ac_ext <<_ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29583 #include <$ac_header>
29585 if { (ac_try="$ac_cpp conftest.$ac_ext"
29586 case "(($ac_try" in
29587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29588 *) ac_try_echo=$ac_try;;
29590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29593 grep -v '^ *+' conftest.er1 >conftest.err
29595 cat conftest.err >&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } >/dev/null && {
29598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29599 test ! -s conftest.err
29601 ac_header_preproc=yes
29603 echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29606 ac_header_preproc=no
29609 rm -f conftest.err conftest.$ac_ext
29610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29611 echo "${ECHO_T}$ac_header_preproc" >&6; }
29613 # So? What about this header?
29614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29620 ac_header_preproc=yes
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29636 ## --------------------------------------------- ##
29637 ## Report this to <http://www.openldap.org/its/> ##
29638 ## --------------------------------------------- ##
29640 ) | sed "s/^/$as_me: WARNING: /" >&2
29643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29648 eval "$as_ac_Header=\$ac_header_preproc"
29650 ac_res=`eval echo '${'$as_ac_Header'}'`
29651 { echo "$as_me:$LINENO: result: $ac_res" >&5
29652 echo "${ECHO_T}$ac_res" >&6; }
29655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29656 cat >>confdefs.h <<_ACEOF
29657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29662 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29663 echo "$as_me: error: could not locate SQL headers" >&2;}
29664 { (exit 1); exit 1; }; }
29672 LIBS="$LTHREAD_LIBS"
29674 if test $ol_with_odbc = auto ; then
29675 ol_with_odbc="iodbc unixodbc odbc32"
29678 for odbc in $ol_with_odbc ; do
29679 if test $ol_link_sql = no ; then
29682 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29683 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29684 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29687 ac_check_lib_save_LIBS=$LIBS
29688 LIBS="-liodbc $LIBS"
29689 cat >conftest.$ac_ext <<_ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h. */
29696 /* Override any GCC internal prototype to avoid an error.
29697 Use char because int might match the return type of a GCC
29698 builtin and then its argument prototype would still apply. */
29702 char SQLDriverConnect ();
29706 return SQLDriverConnect ();
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (ac_try="$ac_link"
29713 case "(($ac_try" in
29714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715 *) ac_try_echo=$ac_try;;
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718 (eval "$ac_link") 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } && {
29725 test -z "$ac_c_werror_flag" ||
29726 test ! -s conftest.err
29727 } && test -s conftest$ac_exeext &&
29728 $as_test_x conftest$ac_exeext; then
29729 ac_cv_lib_iodbc_SQLDriverConnect=yes
29731 echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29734 ac_cv_lib_iodbc_SQLDriverConnect=no
29737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29738 conftest$ac_exeext conftest.$ac_ext
29739 LIBS=$ac_check_lib_save_LIBS
29741 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29742 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29743 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29749 if test $have_iodbc = yes ; then
29750 ol_link_sql="-liodbc"
29755 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29756 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29757 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 ac_check_lib_save_LIBS=$LIBS
29761 LIBS="-lodbc $LIBS"
29762 cat >conftest.$ac_ext <<_ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h. */
29769 /* Override any GCC internal prototype to avoid an error.
29770 Use char because int might match the return type of a GCC
29771 builtin and then its argument prototype would still apply. */
29775 char SQLDriverConnect ();
29779 return SQLDriverConnect ();
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29793 grep -v '^ *+' conftest.er1 >conftest.err
29795 cat conftest.err >&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); } && {
29798 test -z "$ac_c_werror_flag" ||
29799 test ! -s conftest.err
29800 } && test -s conftest$ac_exeext &&
29801 $as_test_x conftest$ac_exeext; then
29802 ac_cv_lib_odbc_SQLDriverConnect=yes
29804 echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29807 ac_cv_lib_odbc_SQLDriverConnect=no
29810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29811 conftest$ac_exeext conftest.$ac_ext
29812 LIBS=$ac_check_lib_save_LIBS
29814 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29815 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29816 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29822 if test $have_odbc = yes ; then
29823 ol_link_sql="-lodbc"
29828 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29829 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29830 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29833 ac_check_lib_save_LIBS=$LIBS
29834 LIBS="-lodbc32 $LIBS"
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29842 /* Override any GCC internal prototype to avoid an error.
29843 Use char because int might match the return type of a GCC
29844 builtin and then its argument prototype would still apply. */
29848 char SQLDriverConnect ();
29852 return SQLDriverConnect ();
29857 rm -f conftest.$ac_objext conftest$ac_exeext
29858 if { (ac_try="$ac_link"
29859 case "(($ac_try" in
29860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861 *) ac_try_echo=$ac_try;;
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_link") 2>conftest.er1
29866 grep -v '^ *+' conftest.er1 >conftest.err
29868 cat conftest.err >&5
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); } && {
29871 test -z "$ac_c_werror_flag" ||
29872 test ! -s conftest.err
29873 } && test -s conftest$ac_exeext &&
29874 $as_test_x conftest$ac_exeext; then
29875 ac_cv_lib_odbc32_SQLDriverConnect=yes
29877 echo "$as_me: failed program was:" >&5
29878 sed 's/^/| /' conftest.$ac_ext >&5
29880 ac_cv_lib_odbc32_SQLDriverConnect=no
29883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29884 conftest$ac_exeext conftest.$ac_ext
29885 LIBS=$ac_check_lib_save_LIBS
29887 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29888 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29889 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29895 if test $have_odbc32 = yes ; then
29896 ol_link_sql="-lodbc32"
29901 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29902 echo "$as_me: error: unknown ODBC library" >&2;}
29903 { (exit 1); exit 1; }; }
29911 if test $ol_link_sql != no ; then
29912 SLAPD_SQL_LIBS="$ol_link_sql"
29914 elif test $ol_enable_sql != auto ; then
29915 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29916 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29917 { (exit 1); exit 1; }; }
29922 if test $ol_enable_ndb != no ; then
29923 # Extract the first word of "mysql_config", so it can be a program name with args.
29924 set dummy mysql_config; ac_word=$2
29925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29927 if test "${ac_cv_prog_MYSQL+set}" = set; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29930 if test -n "$MYSQL"; then
29931 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934 for as_dir in $PATH
29937 test -z "$as_dir" && as_dir=.
29938 for ac_exec_ext in '' $ac_executable_extensions; do
29939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29940 ac_cv_prog_MYSQL="yes"
29941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29950 MYSQL=$ac_cv_prog_MYSQL
29951 if test -n "$MYSQL"; then
29952 { echo "$as_me:$LINENO: result: $MYSQL" >&5
29953 echo "${ECHO_T}$MYSQL" >&6; }
29955 { echo "$as_me:$LINENO: result: no" >&5
29956 echo "${ECHO_T}no" >&6; }
29960 if test "$MYSQL" != yes ; then
29961 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29962 echo "$as_me: error: could not locate mysql_config" >&2;}
29963 { (exit 1); exit 1; }; }
29966 SQL_INC=`mysql_config --include`
29967 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29969 save_CPPFLAGS="$CPPFLAGS"
29970 CPPFLAGS="$SLAPD_NDB_INCS"
29971 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29972 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29973 cat >conftest.$ac_ext <<_ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h. */
29979 #include <NdbApi.hpp>
29981 if { (ac_try="$ac_cpp conftest.$ac_ext"
29982 case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29989 grep -v '^ *+' conftest.er1 >conftest.err
29991 cat conftest.err >&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } >/dev/null && {
29994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29995 test ! -s conftest.err
29997 { echo "$as_me:$LINENO: result: yes" >&5
29998 echo "${ECHO_T}yes" >&6; }
30000 echo "$as_me: failed program was:" >&5
30001 sed 's/^/| /' conftest.$ac_ext >&5
30003 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30004 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30005 { (exit 1); exit 1; }; }
30009 rm -f conftest.err conftest.$ac_ext
30010 CPPFLAGS="$save_CPPFLAGS"
30012 SQL_LIB=`mysql_config --libs_r`
30013 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30015 save_LDFLAGS="$LDFLAGS"
30018 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30019 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30020 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30021 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 ac_check_lib_save_LIBS=$LIBS
30024 LIBS="-lndbclient -lstdc++ $LIBS"
30025 cat >conftest.$ac_ext <<_ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h. */
30032 /* Override any GCC internal prototype to avoid an error.
30033 Use char because int might match the return type of a GCC
30034 builtin and then its argument prototype would still apply. */
30042 return ndb_init ();
30047 rm -f conftest.$ac_objext conftest$ac_exeext
30048 if { (ac_try="$ac_link"
30049 case "(($ac_try" in
30050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051 *) ac_try_echo=$ac_try;;
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054 (eval "$ac_link") 2>conftest.er1
30056 grep -v '^ *+' conftest.er1 >conftest.err
30058 cat conftest.err >&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } && {
30061 test -z "$ac_c_werror_flag" ||
30062 test ! -s conftest.err
30063 } && test -s conftest$ac_exeext &&
30064 $as_test_x conftest$ac_exeext; then
30065 ac_cv_lib_ndbclient_ndb_init=yes
30067 echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30070 ac_cv_lib_ndbclient_ndb_init=no
30073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30074 conftest$ac_exeext conftest.$ac_ext
30075 LIBS=$ac_check_lib_save_LIBS
30077 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30078 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30079 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30083 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30084 echo "$as_me: error: could not locate ndbclient library" >&2;}
30085 { (exit 1); exit 1; }; }
30090 LDFLAGS="$save_LDFLAGS"
30092 if test "$ol_enable_ndb" = yes ; then
30093 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30099 for ac_header in unicode/utypes.h
30101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106 echo $ECHO_N "(cached) $ECHO_C" >&6
30108 ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110 echo "${ECHO_T}$ac_res" >&6; }
30112 # Is the header compilable?
30113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30115 cat >conftest.$ac_ext <<_ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30121 $ac_includes_default
30122 #include <$ac_header>
30124 rm -f conftest.$ac_objext
30125 if { (ac_try="$ac_compile"
30126 case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30133 grep -v '^ *+' conftest.er1 >conftest.err
30135 cat conftest.err >&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } && {
30138 test -z "$ac_c_werror_flag" ||
30139 test ! -s conftest.err
30140 } && test -s conftest.$ac_objext; then
30141 ac_header_compiler=yes
30143 echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30146 ac_header_compiler=no
30149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30151 echo "${ECHO_T}$ac_header_compiler" >&6; }
30153 # Is the header present?
30154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30156 cat >conftest.$ac_ext <<_ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <$ac_header>
30164 if { (ac_try="$ac_cpp conftest.$ac_ext"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30172 grep -v '^ *+' conftest.er1 >conftest.err
30174 cat conftest.err >&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); } >/dev/null && {
30177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30178 test ! -s conftest.err
30180 ac_header_preproc=yes
30182 echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30185 ac_header_preproc=no
30188 rm -f conftest.err conftest.$ac_ext
30189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30190 echo "${ECHO_T}$ac_header_preproc" >&6; }
30192 # So? What about this header?
30193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30199 ac_header_preproc=yes
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30215 ## --------------------------------------------- ##
30216 ## Report this to <http://www.openldap.org/its/> ##
30217 ## --------------------------------------------- ##
30219 ) | sed "s/^/$as_me: WARNING: /" >&2
30222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30225 echo $ECHO_N "(cached) $ECHO_C" >&6
30227 eval "$as_ac_Header=\$ac_header_preproc"
30229 ac_res=`eval echo '${'$as_ac_Header'}'`
30230 { echo "$as_me:$LINENO: result: $ac_res" >&5
30231 echo "${ECHO_T}$ac_res" >&6; }
30234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30235 cat >>confdefs.h <<_ACEOF
30236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30243 if test $ac_cv_header_unicode_utypes_h = yes ; then
30244 OL_ICULIBS="-licuuc -licudata"
30246 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30247 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30248 if test "${ol_cv_lib_icu+set}" = set; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30253 LIBS="$OL_ICULIBS $LIBS"
30254 cat >conftest.$ac_ext <<_ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h. */
30261 #include <unicode/utypes.h>
30267 (void) u_errorName(0);
30273 rm -f conftest.$ac_objext conftest$ac_exeext
30274 if { (ac_try="$ac_link"
30275 case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_link") 2>conftest.er1
30282 grep -v '^ *+' conftest.er1 >conftest.err
30284 cat conftest.err >&5
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); } && {
30287 test -z "$ac_c_werror_flag" ||
30288 test ! -s conftest.err
30289 } && test -s conftest$ac_exeext &&
30290 $as_test_x conftest$ac_exeext; then
30293 echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30300 conftest$ac_exeext conftest.$ac_ext
30304 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30305 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30307 if test $ol_cv_lib_icu != no ; then
30308 ol_icu="$OL_ICULIBS"
30310 cat >>confdefs.h <<\_ACEOF
30317 if test "$ol_icu" = no ; then
30318 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30319 echo "$as_me: WARNING: ICU not available" >&2;}
30326 if test $ol_with_cyrus_sasl != no ; then
30329 for ac_header in sasl/sasl.h sasl.h
30331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30338 ac_res=`eval echo '${'$as_ac_Header'}'`
30339 { echo "$as_me:$LINENO: result: $ac_res" >&5
30340 echo "${ECHO_T}$ac_res" >&6; }
30342 # Is the header compilable?
30343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 $ac_includes_default
30352 #include <$ac_header>
30354 rm -f conftest.$ac_objext
30355 if { (ac_try="$ac_compile"
30356 case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_compile") 2>conftest.er1
30363 grep -v '^ *+' conftest.er1 >conftest.err
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } && {
30368 test -z "$ac_c_werror_flag" ||
30369 test ! -s conftest.err
30370 } && test -s conftest.$ac_objext; then
30371 ac_header_compiler=yes
30373 echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30376 ac_header_compiler=no
30379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30381 echo "${ECHO_T}$ac_header_compiler" >&6; }
30383 # Is the header present?
30384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30386 cat >conftest.$ac_ext <<_ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30392 #include <$ac_header>
30394 if { (ac_try="$ac_cpp conftest.$ac_ext"
30395 case "(($ac_try" in
30396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30397 *) ac_try_echo=$ac_try;;
30399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30402 grep -v '^ *+' conftest.er1 >conftest.err
30404 cat conftest.err >&5
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); } >/dev/null && {
30407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30408 test ! -s conftest.err
30410 ac_header_preproc=yes
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30415 ac_header_preproc=no
30418 rm -f conftest.err conftest.$ac_ext
30419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30420 echo "${ECHO_T}$ac_header_preproc" >&6; }
30422 # So? What about this header?
30423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30429 ac_header_preproc=yes
30432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30445 ## --------------------------------------------- ##
30446 ## Report this to <http://www.openldap.org/its/> ##
30447 ## --------------------------------------------- ##
30449 ) | sed "s/^/$as_me: WARNING: /" >&2
30452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30457 eval "$as_ac_Header=\$ac_header_preproc"
30459 ac_res=`eval echo '${'$as_ac_Header'}'`
30460 { echo "$as_me:$LINENO: result: $ac_res" >&5
30461 echo "${ECHO_T}$ac_res" >&6; }
30464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30465 cat >>confdefs.h <<_ACEOF
30466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30474 if test $ac_cv_header_sasl_sasl_h = yes ||
30475 test $ac_cv_header_sasl_h = yes; then
30476 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30477 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30478 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30481 ac_check_lib_save_LIBS=$LIBS
30482 LIBS="-lsasl2 $LIBS"
30483 cat >conftest.$ac_ext <<_ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h. */
30490 /* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
30496 char sasl_client_init ();
30500 return sasl_client_init ();
30505 rm -f conftest.$ac_objext conftest$ac_exeext
30506 if { (ac_try="$ac_link"
30507 case "(($ac_try" in
30508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509 *) ac_try_echo=$ac_try;;
30511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512 (eval "$ac_link") 2>conftest.er1
30514 grep -v '^ *+' conftest.er1 >conftest.err
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } && {
30519 test -z "$ac_c_werror_flag" ||
30520 test ! -s conftest.err
30521 } && test -s conftest$ac_exeext &&
30522 $as_test_x conftest$ac_exeext; then
30523 ac_cv_lib_sasl2_sasl_client_init=yes
30525 echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.$ac_ext >&5
30528 ac_cv_lib_sasl2_sasl_client_init=no
30531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30532 conftest$ac_exeext conftest.$ac_ext
30533 LIBS=$ac_check_lib_save_LIBS
30535 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30536 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30537 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30538 ol_link_sasl="-lsasl2"
30540 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30541 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30542 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30543 echo $ECHO_N "(cached) $ECHO_C" >&6
30545 ac_check_lib_save_LIBS=$LIBS
30546 LIBS="-lsasl $LIBS"
30547 cat >conftest.$ac_ext <<_ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h. */
30554 /* Override any GCC internal prototype to avoid an error.
30555 Use char because int might match the return type of a GCC
30556 builtin and then its argument prototype would still apply. */
30560 char sasl_client_init ();
30564 return sasl_client_init ();
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (ac_try="$ac_link"
30571 case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576 (eval "$ac_link") 2>conftest.er1
30578 grep -v '^ *+' conftest.er1 >conftest.err
30580 cat conftest.err >&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } && {
30583 test -z "$ac_c_werror_flag" ||
30584 test ! -s conftest.err
30585 } && test -s conftest$ac_exeext &&
30586 $as_test_x conftest$ac_exeext; then
30587 ac_cv_lib_sasl_sasl_client_init=yes
30589 echo "$as_me: failed program was:" >&5
30590 sed 's/^/| /' conftest.$ac_ext >&5
30592 ac_cv_lib_sasl_sasl_client_init=no
30595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30596 conftest$ac_exeext conftest.$ac_ext
30597 LIBS=$ac_check_lib_save_LIBS
30599 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30600 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30601 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30602 ol_link_sasl="-lsasl"
30609 if test $ol_link_sasl = no ; then
30610 if test $ol_with_cyrus_sasl != auto ; then
30611 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30612 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30613 { (exit 1); exit 1; }; }
30615 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30616 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30617 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30618 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30619 if test $ol_link_tls = no ; then
30620 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30621 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30625 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30626 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30627 if test "${ol_cv_sasl_compat+set}" = set; then
30628 echo $ECHO_N "(cached) $ECHO_C" >&6
30631 cat >conftest.$ac_ext <<_ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h. */
30638 #ifdef HAVE_SASL_SASL_H
30639 #include <sasl/sasl.h>
30644 /* Require 2.1.15+ */
30645 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30646 char *__sasl_compat = "2.2+ or better okay (we guess)";
30647 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30648 && SASL_VERSION_STEP >=15
30649 char *__sasl_compat = "2.1.15+ or better okay";
30653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30654 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30655 ol_cv_sasl_compat=yes
30657 ol_cv_sasl_compat=no
30662 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30663 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30665 if test $ol_cv_sasl_compat = no ; then
30667 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30668 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30669 { (exit 1); exit 1; }; }
30673 cat >>confdefs.h <<\_ACEOF
30674 #define HAVE_CYRUS_SASL 1
30677 SASL_LIBS="$ol_link_sasl"
30678 if test $ol_enable_spasswd != no ; then
30679 ol_link_spasswd=yes
30682 ac_save_LIBS="$LIBS"
30683 LIBS="$LIBS $ol_link_sasl"
30684 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30685 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30686 if test "${ac_cv_func_sasl_version+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30689 cat >conftest.$ac_ext <<_ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h. */
30695 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30697 #define sasl_version innocuous_sasl_version
30699 /* System header to define __stub macros and hopefully few prototypes,
30700 which can conflict with char sasl_version (); below.
30701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30702 <limits.h> exists even on freestanding compilers. */
30705 # include <limits.h>
30707 # include <assert.h>
30710 #undef sasl_version
30712 /* Override any GCC internal prototype to avoid an error.
30713 Use char because int might match the return type of a GCC
30714 builtin and then its argument prototype would still apply. */
30718 char sasl_version ();
30719 /* The GNU C library defines this for functions which it implements
30720 to always fail with ENOSYS. Some functions are actually named
30721 something starting with __ and the normal name is an alias. */
30722 #if defined __stub_sasl_version || defined __stub___sasl_version
30729 return sasl_version ();
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (ac_try="$ac_link"
30736 case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_link") 2>conftest.er1
30743 grep -v '^ *+' conftest.er1 >conftest.err
30745 cat conftest.err >&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } && {
30748 test -z "$ac_c_werror_flag" ||
30749 test ! -s conftest.err
30750 } && test -s conftest$ac_exeext &&
30751 $as_test_x conftest$ac_exeext; then
30752 ac_cv_func_sasl_version=yes
30754 echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30757 ac_cv_func_sasl_version=no
30760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30761 conftest$ac_exeext conftest.$ac_ext
30763 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30764 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30765 if test $ac_cv_func_sasl_version = yes; then
30767 cat >>confdefs.h <<\_ACEOF
30768 #define HAVE_SASL_VERSION 1
30773 LIBS="$ac_save_LIBS"
30779 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30780 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30781 if test $ol_link_tls = no ; then
30782 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30783 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30787 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30789 if test -r /dev/urandom ; then
30790 dev="/dev/urandom";
30791 elif test -r /idev/urandom ; then
30792 dev="/idev/urandom";
30793 elif test -r /dev/srandom ; then
30794 dev="/dev/srandom";
30795 elif test -r /dev/random ; then
30797 elif test -r /idev/random ; then
30798 dev="/idev/random";
30801 if test $dev != no ; then
30803 cat >>confdefs.h <<_ACEOF
30804 #define URANDOM_DEVICE "$dev"
30811 if test $ol_with_fetch != no ; then
30813 LIBS="-lfetch -lcom_err $LIBS"
30814 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30815 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30816 if test "${ol_cv_lib_fetch+set}" = set; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30820 cat >conftest.$ac_ext <<_ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h. */
30827 #ifdef HAVE_SYS_PARAM_H
30828 #include <sys/param.h>
30835 struct url *u = fetchParseURL("file:///");
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844 *) ac_try_echo=$ac_try;;
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847 (eval "$ac_link") 2>conftest.er1
30849 grep -v '^ *+' conftest.er1 >conftest.err
30851 cat conftest.err >&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } && {
30854 test -z "$ac_c_werror_flag" ||
30855 test ! -s conftest.err
30856 } && test -s conftest$ac_exeext &&
30857 $as_test_x conftest$ac_exeext; then
30858 ol_cv_lib_fetch=yes
30860 echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30867 conftest$ac_exeext conftest.$ac_ext
30869 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30870 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30872 if test $ol_cv_lib_fetch != no ; then
30873 ol_link_fetch="-lfetch -lcom_err"
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_FETCH 1
30882 if test $ol_cv_lib_fetch != no ; then
30883 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30884 ol_link_fetch=freebsd
30886 elif test $ol_with_fetch != auto ; then
30887 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30888 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30889 { (exit 1); exit 1; }; }
30893 if test $ol_enable_crypt != no ; then
30895 LIBS="$TLS_LIBS $LIBS"
30897 { echo "$as_me:$LINENO: checking for crypt" >&5
30898 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30899 if test "${ac_cv_func_crypt+set}" = set; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
30902 cat >conftest.$ac_ext <<_ACEOF
30905 cat confdefs.h >>conftest.$ac_ext
30906 cat >>conftest.$ac_ext <<_ACEOF
30907 /* end confdefs.h. */
30908 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30910 #define crypt innocuous_crypt
30912 /* System header to define __stub macros and hopefully few prototypes,
30913 which can conflict with char crypt (); below.
30914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30915 <limits.h> exists even on freestanding compilers. */
30918 # include <limits.h>
30920 # include <assert.h>
30925 /* Override any GCC internal prototype to avoid an error.
30926 Use char because int might match the return type of a GCC
30927 builtin and then its argument prototype would still apply. */
30932 /* The GNU C library defines this for functions which it implements
30933 to always fail with ENOSYS. Some functions are actually named
30934 something starting with __ and the normal name is an alias. */
30935 #if defined __stub_crypt || defined __stub___crypt
30947 rm -f conftest.$ac_objext conftest$ac_exeext
30948 if { (ac_try="$ac_link"
30949 case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_link") 2>conftest.er1
30956 grep -v '^ *+' conftest.er1 >conftest.err
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } && {
30961 test -z "$ac_c_werror_flag" ||
30962 test ! -s conftest.err
30963 } && test -s conftest$ac_exeext &&
30964 $as_test_x conftest$ac_exeext; then
30965 ac_cv_func_crypt=yes
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 ac_cv_func_crypt=no
30973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30974 conftest$ac_exeext conftest.$ac_ext
30976 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30977 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30978 if test $ac_cv_func_crypt = yes; then
30983 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30984 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30985 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30988 ac_check_lib_save_LIBS=$LIBS
30989 LIBS="-lcrypt $LIBS"
30990 cat >conftest.$ac_ext <<_ACEOF
30993 cat confdefs.h >>conftest.$ac_ext
30994 cat >>conftest.$ac_ext <<_ACEOF
30995 /* end confdefs.h. */
30997 /* Override any GCC internal prototype to avoid an error.
30998 Use char because int might match the return type of a GCC
30999 builtin and then its argument prototype would still apply. */
31012 rm -f conftest.$ac_objext conftest$ac_exeext
31013 if { (ac_try="$ac_link"
31014 case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_link") 2>conftest.er1
31021 grep -v '^ *+' conftest.er1 >conftest.err
31023 cat conftest.err >&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && {
31026 test -z "$ac_c_werror_flag" ||
31027 test ! -s conftest.err
31028 } && test -s conftest$ac_exeext &&
31029 $as_test_x conftest$ac_exeext; then
31030 ac_cv_lib_crypt_crypt=yes
31032 echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.$ac_ext >&5
31035 ac_cv_lib_crypt_crypt=no
31038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31039 conftest$ac_exeext conftest.$ac_ext
31040 LIBS=$ac_check_lib_save_LIBS
31042 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31043 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31044 if test $ac_cv_lib_crypt_crypt = yes; then
31045 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31056 if test $have_crypt = yes ; then
31058 cat >>confdefs.h <<\_ACEOF
31059 #define HAVE_CRYPT 1
31063 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31064 echo "$as_me: WARNING: could not find crypt" >&2;}
31065 if test $ol_enable_crypt = yes ; then
31066 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31067 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31068 { (exit 1); exit 1; }; }
31071 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31072 echo "$as_me: WARNING: disabling crypt support" >&2;}
31077 if test $ol_enable_proctitle != no ; then
31078 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31079 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31080 if test "${ac_cv_func_setproctitle+set}" = set; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31083 cat >conftest.$ac_ext <<_ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h. */
31089 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31091 #define setproctitle innocuous_setproctitle
31093 /* System header to define __stub macros and hopefully few prototypes,
31094 which can conflict with char setproctitle (); below.
31095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31096 <limits.h> exists even on freestanding compilers. */
31099 # include <limits.h>
31101 # include <assert.h>
31104 #undef setproctitle
31106 /* Override any GCC internal prototype to avoid an error.
31107 Use char because int might match the return type of a GCC
31108 builtin and then its argument prototype would still apply. */
31112 char setproctitle ();
31113 /* The GNU C library defines this for functions which it implements
31114 to always fail with ENOSYS. Some functions are actually named
31115 something starting with __ and the normal name is an alias. */
31116 #if defined __stub_setproctitle || defined __stub___setproctitle
31123 return setproctitle ();
31128 rm -f conftest.$ac_objext conftest$ac_exeext
31129 if { (ac_try="$ac_link"
31130 case "(($ac_try" in
31131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31132 *) ac_try_echo=$ac_try;;
31134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31135 (eval "$ac_link") 2>conftest.er1
31137 grep -v '^ *+' conftest.er1 >conftest.err
31139 cat conftest.err >&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); } && {
31142 test -z "$ac_c_werror_flag" ||
31143 test ! -s conftest.err
31144 } && test -s conftest$ac_exeext &&
31145 $as_test_x conftest$ac_exeext; then
31146 ac_cv_func_setproctitle=yes
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31151 ac_cv_func_setproctitle=no
31154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31155 conftest$ac_exeext conftest.$ac_ext
31157 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31158 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31159 if test $ac_cv_func_setproctitle = yes; then
31160 have_setproctitle=yes
31163 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31164 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31165 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31168 ac_check_lib_save_LIBS=$LIBS
31169 LIBS="-lutil $LIBS"
31170 cat >conftest.$ac_ext <<_ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h. */
31177 /* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
31183 char setproctitle ();
31187 return setproctitle ();
31192 rm -f conftest.$ac_objext conftest$ac_exeext
31193 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } && {
31206 test -z "$ac_c_werror_flag" ||
31207 test ! -s conftest.err
31208 } && test -s conftest$ac_exeext &&
31209 $as_test_x conftest$ac_exeext; then
31210 ac_cv_lib_util_setproctitle=yes
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31215 ac_cv_lib_util_setproctitle=no
31218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31219 conftest$ac_exeext conftest.$ac_ext
31220 LIBS=$ac_check_lib_save_LIBS
31222 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31223 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31224 if test $ac_cv_lib_util_setproctitle = yes; then
31225 have_setproctitle=yes
31226 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31228 have_setproctitle=no
31229 case " $LIBOBJS " in
31230 *" setproctitle.$ac_objext "* ) ;;
31231 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31235 LIBSRCS="$LIBSRCS setproctitle.c"
31241 if test $have_setproctitle = yes ; then
31243 cat >>confdefs.h <<\_ACEOF
31244 #define HAVE_SETPROCTITLE 1
31250 if test $ol_enable_slp != no ; then
31252 for ac_header in slp.h
31254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31261 ac_res=`eval echo '${'$as_ac_Header'}'`
31262 { echo "$as_me:$LINENO: result: $ac_res" >&5
31263 echo "${ECHO_T}$ac_res" >&6; }
31265 # Is the header compilable?
31266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31268 cat >conftest.$ac_ext <<_ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h. */
31274 $ac_includes_default
31275 #include <$ac_header>
31277 rm -f conftest.$ac_objext
31278 if { (ac_try="$ac_compile"
31279 case "(($ac_try" in
31280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281 *) ac_try_echo=$ac_try;;
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_compile") 2>conftest.er1
31286 grep -v '^ *+' conftest.er1 >conftest.err
31288 cat conftest.err >&5
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); } && {
31291 test -z "$ac_c_werror_flag" ||
31292 test ! -s conftest.err
31293 } && test -s conftest.$ac_objext; then
31294 ac_header_compiler=yes
31296 echo "$as_me: failed program was:" >&5
31297 sed 's/^/| /' conftest.$ac_ext >&5
31299 ac_header_compiler=no
31302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31304 echo "${ECHO_T}$ac_header_compiler" >&6; }
31306 # Is the header present?
31307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31309 cat >conftest.$ac_ext <<_ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31315 #include <$ac_header>
31317 if { (ac_try="$ac_cpp conftest.$ac_ext"
31318 case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31325 grep -v '^ *+' conftest.er1 >conftest.err
31327 cat conftest.err >&5
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); } >/dev/null && {
31330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31331 test ! -s conftest.err
31333 ac_header_preproc=yes
31335 echo "$as_me: failed program was:" >&5
31336 sed 's/^/| /' conftest.$ac_ext >&5
31338 ac_header_preproc=no
31341 rm -f conftest.err conftest.$ac_ext
31342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31343 echo "${ECHO_T}$ac_header_preproc" >&6; }
31345 # So? What about this header?
31346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31352 ac_header_preproc=yes
31355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31368 ## --------------------------------------------- ##
31369 ## Report this to <http://www.openldap.org/its/> ##
31370 ## --------------------------------------------- ##
31372 ) | sed "s/^/$as_me: WARNING: /" >&2
31375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31380 eval "$as_ac_Header=\$ac_header_preproc"
31382 ac_res=`eval echo '${'$as_ac_Header'}'`
31383 { echo "$as_me:$LINENO: result: $ac_res" >&5
31384 echo "${ECHO_T}$ac_res" >&6; }
31387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31388 cat >>confdefs.h <<_ACEOF
31389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31397 if test $ac_cv_header_slp_h = yes ; then
31398 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31399 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31400 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31403 ac_check_lib_save_LIBS=$LIBS
31405 cat >conftest.$ac_ext <<_ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31412 /* Override any GCC internal prototype to avoid an error.
31413 Use char because int might match the return type of a GCC
31414 builtin and then its argument prototype would still apply. */
31427 rm -f conftest.$ac_objext conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_link") 2>conftest.er1
31436 grep -v '^ *+' conftest.er1 >conftest.err
31438 cat conftest.err >&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } && {
31441 test -z "$ac_c_werror_flag" ||
31442 test ! -s conftest.err
31443 } && test -s conftest$ac_exeext &&
31444 $as_test_x conftest$ac_exeext; then
31445 ac_cv_lib_slp_SLPOpen=yes
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_cv_lib_slp_SLPOpen=no
31453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31454 conftest$ac_exeext conftest.$ac_ext
31455 LIBS=$ac_check_lib_save_LIBS
31457 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31458 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31459 if test $ac_cv_lib_slp_SLPOpen = yes; then
31465 if test $have_slp = yes ; then
31467 cat >>confdefs.h <<\_ACEOF
31471 SLAPD_SLP_LIBS=-lslp
31474 elif test $ol_enable_slp = yes ; then
31475 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31476 echo "$as_me: error: SLP not found" >&2;}
31477 { (exit 1); exit 1; }; }
31482 { echo "$as_me:$LINENO: checking for mode_t" >&5
31483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31484 if test "${ac_cv_type_mode_t+set}" = set; then
31485 echo $ECHO_N "(cached) $ECHO_C" >&6
31487 cat >conftest.$ac_ext <<_ACEOF
31490 cat confdefs.h >>conftest.$ac_ext
31491 cat >>conftest.$ac_ext <<_ACEOF
31492 /* end confdefs.h. */
31493 $ac_includes_default
31494 typedef mode_t ac__type_new_;
31498 if ((ac__type_new_ *) 0)
31500 if (sizeof (ac__type_new_))
31506 rm -f conftest.$ac_objext
31507 if { (ac_try="$ac_compile"
31508 case "(($ac_try" in
31509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510 *) ac_try_echo=$ac_try;;
31512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513 (eval "$ac_compile") 2>conftest.er1
31515 grep -v '^ *+' conftest.er1 >conftest.err
31517 cat conftest.err >&5
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); } && {
31520 test -z "$ac_c_werror_flag" ||
31521 test ! -s conftest.err
31522 } && test -s conftest.$ac_objext; then
31523 ac_cv_type_mode_t=yes
31525 echo "$as_me: failed program was:" >&5
31526 sed 's/^/| /' conftest.$ac_ext >&5
31528 ac_cv_type_mode_t=no
31531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31533 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31534 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31535 if test $ac_cv_type_mode_t = yes; then
31539 cat >>confdefs.h <<_ACEOF
31545 { echo "$as_me:$LINENO: checking for off_t" >&5
31546 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31547 if test "${ac_cv_type_off_t+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31550 cat >conftest.$ac_ext <<_ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h. */
31556 $ac_includes_default
31557 typedef off_t ac__type_new_;
31561 if ((ac__type_new_ *) 0)
31563 if (sizeof (ac__type_new_))
31569 rm -f conftest.$ac_objext
31570 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31578 grep -v '^ *+' conftest.er1 >conftest.err
31580 cat conftest.err >&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } && {
31583 test -z "$ac_c_werror_flag" ||
31584 test ! -s conftest.err
31585 } && test -s conftest.$ac_objext; then
31586 ac_cv_type_off_t=yes
31588 echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31591 ac_cv_type_off_t=no
31594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31596 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31597 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31598 if test $ac_cv_type_off_t = yes; then
31602 cat >>confdefs.h <<_ACEOF
31608 { echo "$as_me:$LINENO: checking for pid_t" >&5
31609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31610 if test "${ac_cv_type_pid_t+set}" = set; then
31611 echo $ECHO_N "(cached) $ECHO_C" >&6
31613 cat >conftest.$ac_ext <<_ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31619 $ac_includes_default
31620 typedef pid_t ac__type_new_;
31624 if ((ac__type_new_ *) 0)
31626 if (sizeof (ac__type_new_))
31632 rm -f conftest.$ac_objext
31633 if { (ac_try="$ac_compile"
31634 case "(($ac_try" in
31635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636 *) ac_try_echo=$ac_try;;
31638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639 (eval "$ac_compile") 2>conftest.er1
31641 grep -v '^ *+' conftest.er1 >conftest.err
31643 cat conftest.err >&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } && {
31646 test -z "$ac_c_werror_flag" ||
31647 test ! -s conftest.err
31648 } && test -s conftest.$ac_objext; then
31649 ac_cv_type_pid_t=yes
31651 echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31654 ac_cv_type_pid_t=no
31657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31659 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31660 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31661 if test $ac_cv_type_pid_t = yes; then
31665 cat >>confdefs.h <<_ACEOF
31671 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31672 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31673 if test "${ac_cv_type_ssize_t+set}" = set; then
31674 echo $ECHO_N "(cached) $ECHO_C" >&6
31676 cat >conftest.$ac_ext <<_ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h. */
31682 $ac_includes_default
31683 typedef ssize_t ac__type_new_;
31687 if ((ac__type_new_ *) 0)
31689 if (sizeof (ac__type_new_))
31695 rm -f conftest.$ac_objext
31696 if { (ac_try="$ac_compile"
31697 case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_compile") 2>conftest.er1
31704 grep -v '^ *+' conftest.er1 >conftest.err
31706 cat conftest.err >&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); } && {
31709 test -z "$ac_c_werror_flag" ||
31710 test ! -s conftest.err
31711 } && test -s conftest.$ac_objext; then
31712 ac_cv_type_ssize_t=yes
31714 echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31717 ac_cv_type_ssize_t=no
31720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31722 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31723 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31724 if test $ac_cv_type_ssize_t = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729 #define ssize_t signed int
31734 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31735 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31736 if test "${ac_cv_type_caddr_t+set}" = set; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 cat >conftest.$ac_ext <<_ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31745 $ac_includes_default
31746 typedef caddr_t ac__type_new_;
31750 if ((ac__type_new_ *) 0)
31752 if (sizeof (ac__type_new_))
31758 rm -f conftest.$ac_objext
31759 if { (ac_try="$ac_compile"
31760 case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_compile") 2>conftest.er1
31767 grep -v '^ *+' conftest.er1 >conftest.err
31769 cat conftest.err >&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } && {
31772 test -z "$ac_c_werror_flag" ||
31773 test ! -s conftest.err
31774 } && test -s conftest.$ac_objext; then
31775 ac_cv_type_caddr_t=yes
31777 echo "$as_me: failed program was:" >&5
31778 sed 's/^/| /' conftest.$ac_ext >&5
31780 ac_cv_type_caddr_t=no
31783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31785 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31786 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31787 if test $ac_cv_type_caddr_t = yes; then
31791 cat >>confdefs.h <<_ACEOF
31792 #define caddr_t char *
31797 { echo "$as_me:$LINENO: checking for size_t" >&5
31798 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31799 if test "${ac_cv_type_size_t+set}" = set; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31802 cat >conftest.$ac_ext <<_ACEOF
31805 cat confdefs.h >>conftest.$ac_ext
31806 cat >>conftest.$ac_ext <<_ACEOF
31807 /* end confdefs.h. */
31808 $ac_includes_default
31809 typedef size_t ac__type_new_;
31813 if ((ac__type_new_ *) 0)
31815 if (sizeof (ac__type_new_))
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_compile") 2>conftest.er1
31830 grep -v '^ *+' conftest.er1 >conftest.err
31832 cat conftest.err >&5
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); } && {
31835 test -z "$ac_c_werror_flag" ||
31836 test ! -s conftest.err
31837 } && test -s conftest.$ac_objext; then
31838 ac_cv_type_size_t=yes
31840 echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31843 ac_cv_type_size_t=no
31846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31848 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31849 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31850 if test $ac_cv_type_size_t = yes; then
31854 cat >>confdefs.h <<_ACEOF
31855 #define size_t unsigned
31861 { echo "$as_me:$LINENO: checking for long long" >&5
31862 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31863 if test "${ac_cv_type_long_long+set}" = set; then
31864 echo $ECHO_N "(cached) $ECHO_C" >&6
31866 cat >conftest.$ac_ext <<_ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h. */
31872 $ac_includes_default
31873 typedef long long ac__type_new_;
31877 if ((ac__type_new_ *) 0)
31879 if (sizeof (ac__type_new_))
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_compile") 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } && {
31899 test -z "$ac_c_werror_flag" ||
31900 test ! -s conftest.err
31901 } && test -s conftest.$ac_objext; then
31902 ac_cv_type_long_long=yes
31904 echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31907 ac_cv_type_long_long=no
31910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31912 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31913 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31914 if test $ac_cv_type_long_long = yes; then
31916 cat >>confdefs.h <<_ACEOF
31917 #define HAVE_LONG_LONG 1
31923 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31924 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31925 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31928 cat >conftest.$ac_ext <<_ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 $ac_includes_default
31935 typedef ptrdiff_t ac__type_new_;
31939 if ((ac__type_new_ *) 0)
31941 if (sizeof (ac__type_new_))
31947 rm -f conftest.$ac_objext
31948 if { (ac_try="$ac_compile"
31949 case "(($ac_try" in
31950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31951 *) ac_try_echo=$ac_try;;
31953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31954 (eval "$ac_compile") 2>conftest.er1
31956 grep -v '^ *+' conftest.er1 >conftest.err
31958 cat conftest.err >&5
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } && {
31961 test -z "$ac_c_werror_flag" ||
31962 test ! -s conftest.err
31963 } && test -s conftest.$ac_objext; then
31964 ac_cv_type_ptrdiff_t=yes
31966 echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31969 ac_cv_type_ptrdiff_t=no
31972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31974 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31975 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31976 if test $ac_cv_type_ptrdiff_t = yes; then
31978 cat >>confdefs.h <<_ACEOF
31979 #define HAVE_PTRDIFF_T 1
31987 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31988 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31989 if test "${ac_cv_type_socklen_t+set}" = set; then
31990 echo $ECHO_N "(cached) $ECHO_C" >&6
31992 cat >conftest.$ac_ext <<_ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h. */
31998 $ac_includes_default
31999 #ifdef HAVE_SYS_SOCKET_H
32000 #include <sys/socket.h>
32003 typedef socklen_t ac__type_new_;
32007 if ((ac__type_new_ *) 0)
32009 if (sizeof (ac__type_new_))
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_compile") 2>conftest.er1
32024 grep -v '^ *+' conftest.er1 >conftest.err
32026 cat conftest.err >&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } && {
32029 test -z "$ac_c_werror_flag" ||
32030 test ! -s conftest.err
32031 } && test -s conftest.$ac_objext; then
32032 ac_cv_type_socklen_t=yes
32034 echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32037 ac_cv_type_socklen_t=no
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32042 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32043 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32046 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32047 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32048 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 set socklen_t int unsigned "unsigned long" long size_t
32053 test "$ac_cv_type_socklen_t" = yes || shift
32054 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32055 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32056 cat >conftest.$ac_ext <<_ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h. */
32062 $ac_includes_default
32063 #ifdef HAVE_SYS_SOCKET_H
32064 #include <sys/socket.h>
32066 extern int accept(int s, $addrtype *ap, $lentype *lp);
32072 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32078 rm -f conftest.$ac_objext
32079 if { (ac_try="$ac_compile"
32080 case "(($ac_try" in
32081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082 *) ac_try_echo=$ac_try;;
32084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085 (eval "$ac_compile") 2>conftest.er1
32087 grep -v '^ *+' conftest.er1 >conftest.err
32089 cat conftest.err >&5
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); } && {
32092 test -z "$ac_c_werror_flag" ||
32093 test ! -s conftest.err
32094 } && test -s conftest.$ac_objext; then
32095 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32097 echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32107 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32108 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32110 cat >>confdefs.h <<_ACEOF
32111 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32115 if test "$ac_cv_type_socklen_t" != yes; then
32117 cat >>confdefs.h <<_ACEOF
32118 #define socklen_t $ol_cv_type_ber_socklen_t
32124 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32125 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32126 if test "${ac_cv_type_signal+set}" = set; then
32127 echo $ECHO_N "(cached) $ECHO_C" >&6
32129 cat >conftest.$ac_ext <<_ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32135 #include <sys/types.h>
32136 #include <signal.h>
32141 return *(signal (0, 0)) (0) == 1;
32146 rm -f conftest.$ac_objext
32147 if { (ac_try="$ac_compile"
32148 case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_compile") 2>conftest.er1
32155 grep -v '^ *+' conftest.er1 >conftest.err
32157 cat conftest.err >&5
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); } && {
32160 test -z "$ac_c_werror_flag" ||
32161 test ! -s conftest.err
32162 } && test -s conftest.$ac_objext; then
32163 ac_cv_type_signal=int
32165 echo "$as_me: failed program was:" >&5
32166 sed 's/^/| /' conftest.$ac_ext >&5
32168 ac_cv_type_signal=void
32171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32174 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32176 cat >>confdefs.h <<_ACEOF
32177 #define RETSIGTYPE $ac_cv_type_signal
32182 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32183 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32184 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32185 echo $ECHO_N "(cached) $ECHO_C" >&6
32187 cat >conftest.$ac_ext <<_ACEOF
32190 cat confdefs.h >>conftest.$ac_ext
32191 cat >>conftest.$ac_ext <<_ACEOF
32192 /* end confdefs.h. */
32193 $ac_includes_default
32194 #include <signal.h>
32197 typedef sig_atomic_t ac__type_new_;
32201 if ((ac__type_new_ *) 0)
32203 if (sizeof (ac__type_new_))
32209 rm -f conftest.$ac_objext
32210 if { (ac_try="$ac_compile"
32211 case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_compile") 2>conftest.er1
32218 grep -v '^ *+' conftest.er1 >conftest.err
32220 cat conftest.err >&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } && {
32223 test -z "$ac_c_werror_flag" ||
32224 test ! -s conftest.err
32225 } && test -s conftest.$ac_objext; then
32226 ac_cv_type_sig_atomic_t=yes
32228 echo "$as_me: failed program was:" >&5
32229 sed 's/^/| /' conftest.$ac_ext >&5
32231 ac_cv_type_sig_atomic_t=no
32234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32237 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32238 if test $ac_cv_type_sig_atomic_t = yes; then
32242 cat >>confdefs.h <<_ACEOF
32243 #define sig_atomic_t int
32249 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32251 if test "${ac_cv_type_uid_t+set}" = set; then
32252 echo $ECHO_N "(cached) $ECHO_C" >&6
32254 cat >conftest.$ac_ext <<_ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h. */
32260 #include <sys/types.h>
32263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32264 $EGREP "uid_t" >/dev/null 2>&1; then
32265 ac_cv_type_uid_t=yes
32267 ac_cv_type_uid_t=no
32272 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32274 if test $ac_cv_type_uid_t = no; then
32276 cat >>confdefs.h <<\_ACEOF
32281 cat >>confdefs.h <<\_ACEOF
32288 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32289 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32290 if test "${ac_cv_header_time+set}" = set; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 cat >conftest.$ac_ext <<_ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h. */
32299 #include <sys/types.h>
32300 #include <sys/time.h>
32306 if ((struct tm *) 0)
32312 rm -f conftest.$ac_objext
32313 if { (ac_try="$ac_compile"
32314 case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_compile") 2>conftest.er1
32321 grep -v '^ *+' conftest.er1 >conftest.err
32323 cat conftest.err >&5
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); } && {
32326 test -z "$ac_c_werror_flag" ||
32327 test ! -s conftest.err
32328 } && test -s conftest.$ac_objext; then
32329 ac_cv_header_time=yes
32331 echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32334 ac_cv_header_time=no
32337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32339 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32340 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32341 if test $ac_cv_header_time = yes; then
32343 cat >>confdefs.h <<\_ACEOF
32344 #define TIME_WITH_SYS_TIME 1
32349 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32350 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32351 if test "${ac_cv_struct_tm+set}" = set; then
32352 echo $ECHO_N "(cached) $ECHO_C" >&6
32354 cat >conftest.$ac_ext <<_ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h. */
32360 #include <sys/types.h>
32367 int *p = &tm.tm_sec;
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377 *) ac_try_echo=$ac_try;;
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380 (eval "$ac_compile") 2>conftest.er1
32382 grep -v '^ *+' conftest.er1 >conftest.err
32384 cat conftest.err >&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); } && {
32387 test -z "$ac_c_werror_flag" ||
32388 test ! -s conftest.err
32389 } && test -s conftest.$ac_objext; then
32390 ac_cv_struct_tm=time.h
32392 echo "$as_me: failed program was:" >&5
32393 sed 's/^/| /' conftest.$ac_ext >&5
32395 ac_cv_struct_tm=sys/time.h
32398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32401 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32402 if test $ac_cv_struct_tm = sys/time.h; then
32404 cat >>confdefs.h <<\_ACEOF
32405 #define TM_IN_SYS_TIME 1
32410 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32411 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32412 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32413 echo $ECHO_N "(cached) $ECHO_C" >&6
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 $ac_includes_default
32425 static struct stat ac_aggr;
32426 if (ac_aggr.st_blksize)
32432 rm -f conftest.$ac_objext
32433 if { (ac_try="$ac_compile"
32434 case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439 (eval "$ac_compile") 2>conftest.er1
32441 grep -v '^ *+' conftest.er1 >conftest.err
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } && {
32446 test -z "$ac_c_werror_flag" ||
32447 test ! -s conftest.err
32448 } && test -s conftest.$ac_objext; then
32449 ac_cv_member_struct_stat_st_blksize=yes
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 cat >conftest.$ac_ext <<_ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h. */
32460 $ac_includes_default
32464 static struct stat ac_aggr;
32465 if (sizeof ac_aggr.st_blksize)
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_compile") 2>conftest.er1
32480 grep -v '^ *+' conftest.er1 >conftest.err
32482 cat conftest.err >&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } && {
32485 test -z "$ac_c_werror_flag" ||
32486 test ! -s conftest.err
32487 } && test -s conftest.$ac_objext; then
32488 ac_cv_member_struct_stat_st_blksize=yes
32490 echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32493 ac_cv_member_struct_stat_st_blksize=no
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32502 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32503 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32512 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32513 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32514 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32517 cat >conftest.$ac_ext <<_ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h. */
32523 $ac_includes_default
32529 static struct passwd ac_aggr;
32530 if (ac_aggr.pw_gecos)
32536 rm -f conftest.$ac_objext
32537 if { (ac_try="$ac_compile"
32538 case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_compile") 2>conftest.er1
32545 grep -v '^ *+' conftest.er1 >conftest.err
32547 cat conftest.err >&5
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); } && {
32550 test -z "$ac_c_werror_flag" ||
32551 test ! -s conftest.err
32552 } && test -s conftest.$ac_objext; then
32553 ac_cv_member_struct_passwd_pw_gecos=yes
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32558 cat >conftest.$ac_ext <<_ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h. */
32564 $ac_includes_default
32570 static struct passwd ac_aggr;
32571 if (sizeof ac_aggr.pw_gecos)
32577 rm -f conftest.$ac_objext
32578 if { (ac_try="$ac_compile"
32579 case "(($ac_try" in
32580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 *) ac_try_echo=$ac_try;;
32583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584 (eval "$ac_compile") 2>conftest.er1
32586 grep -v '^ *+' conftest.er1 >conftest.err
32588 cat conftest.err >&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } && {
32591 test -z "$ac_c_werror_flag" ||
32592 test ! -s conftest.err
32593 } && test -s conftest.$ac_objext; then
32594 ac_cv_member_struct_passwd_pw_gecos=yes
32596 echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32599 ac_cv_member_struct_passwd_pw_gecos=no
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32608 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32609 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32611 cat >>confdefs.h <<_ACEOF
32612 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32618 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32619 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32620 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32623 cat >conftest.$ac_ext <<_ACEOF
32626 cat confdefs.h >>conftest.$ac_ext
32627 cat >>conftest.$ac_ext <<_ACEOF
32628 /* end confdefs.h. */
32629 $ac_includes_default
32635 static struct passwd ac_aggr;
32636 if (ac_aggr.pw_passwd)
32642 rm -f conftest.$ac_objext
32643 if { (ac_try="$ac_compile"
32644 case "(($ac_try" in
32645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32646 *) ac_try_echo=$ac_try;;
32648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32649 (eval "$ac_compile") 2>conftest.er1
32651 grep -v '^ *+' conftest.er1 >conftest.err
32653 cat conftest.err >&5
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); } && {
32656 test -z "$ac_c_werror_flag" ||
32657 test ! -s conftest.err
32658 } && test -s conftest.$ac_objext; then
32659 ac_cv_member_struct_passwd_pw_passwd=yes
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 cat >conftest.$ac_ext <<_ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32670 $ac_includes_default
32676 static struct passwd ac_aggr;
32677 if (sizeof ac_aggr.pw_passwd)
32683 rm -f conftest.$ac_objext
32684 if { (ac_try="$ac_compile"
32685 case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_compile") 2>conftest.er1
32692 grep -v '^ *+' conftest.er1 >conftest.err
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } && {
32697 test -z "$ac_c_werror_flag" ||
32698 test ! -s conftest.err
32699 } && test -s conftest.$ac_objext; then
32700 ac_cv_member_struct_passwd_pw_passwd=yes
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32705 ac_cv_member_struct_passwd_pw_passwd=no
32708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32714 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32715 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32717 cat >>confdefs.h <<_ACEOF
32718 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32725 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32726 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32727 if test "${ol_cv_c_upper_lower+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32731 if test "$cross_compiling" = yes; then
32732 ol_cv_c_upper_lower=safe
32734 cat >conftest.$ac_ext <<_ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h. */
32744 if ('C' == toupper('C'))
32750 rm -f conftest$ac_exeext
32751 if { (ac_try="$ac_link"
32752 case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_link") 2>&5
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32761 { (case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_try") 2>&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; }; then
32770 ol_cv_c_upper_lower=no
32772 echo "$as_me: program exited with status $ac_status" >&5
32773 echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32776 ( exit $ac_status )
32777 ol_cv_c_upper_lower=yes
32779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32784 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32785 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32786 if test $ol_cv_c_upper_lower != no ; then
32788 cat >>confdefs.h <<\_ACEOF
32789 #define C_UPPER_LOWER 1
32794 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32795 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32796 if test "${ac_cv_c_const+set}" = set; then
32797 echo $ECHO_N "(cached) $ECHO_C" >&6
32799 cat >conftest.$ac_ext <<_ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h. */
32809 /* FIXME: Include the comments suggested by Paul. */
32810 #ifndef __cplusplus
32811 /* Ultrix mips cc rejects this. */
32812 typedef int charset[2];
32814 /* SunOS 4.1.1 cc rejects this. */
32815 char const *const *pcpcc;
32817 /* NEC SVR4.0.2 mips cc rejects this. */
32818 struct point {int x, y;};
32819 static struct point const zero = {0,0};
32820 /* AIX XL C 1.02.0.0 rejects this.
32821 It does not let you subtract one const X* pointer from another in
32822 an arm of an if-expression whose if-part is not a constant
32824 const char *g = "string";
32825 pcpcc = &g + (g ? g-g : 0);
32826 /* HPUX 7.0 cc rejects these. */
32828 ppc = (char**) pcpcc;
32829 pcpcc = (char const *const *) ppc;
32830 { /* SCO 3.2v4 cc rejects this. */
32832 char const *s = 0 ? (char *) 0 : (char const *) 0;
32837 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32838 int x[] = {25, 17};
32839 const int *foo = &x[0];
32842 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32843 typedef const int *iptr;
32847 { /* AIX XL C 1.02.0.0 rejects this saying
32848 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32849 struct s { int j; const int *ap[3]; };
32850 struct s *b; b->j = 5;
32852 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32853 const int foo = 10;
32854 if (!foo) return 0;
32856 return !cs[0] && !zero.x;
32863 rm -f conftest.$ac_objext
32864 if { (ac_try="$ac_compile"
32865 case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
32872 grep -v '^ *+' conftest.er1 >conftest.err
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } && {
32877 test -z "$ac_c_werror_flag" ||
32878 test ! -s conftest.err
32879 } && test -s conftest.$ac_objext; then
32882 echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32890 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32891 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32892 if test $ac_cv_c_const = no; then
32894 cat >>confdefs.h <<\_ACEOF
32900 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32901 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32902 if test "${ol_cv_c_volatile+set}" = set; then
32903 echo $ECHO_N "(cached) $ECHO_C" >&6
32905 cat >conftest.$ac_ext <<_ACEOF
32908 cat confdefs.h >>conftest.$ac_ext
32909 cat >>conftest.$ac_ext <<_ACEOF
32910 /* end confdefs.h. */
32915 volatile int a; int * volatile b = x ? &y : &z;
32916 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32922 rm -f conftest.$ac_objext
32923 if { (ac_try="$ac_compile"
32924 case "(($ac_try" in
32925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926 *) ac_try_echo=$ac_try;;
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929 (eval "$ac_compile") 2>conftest.er1
32931 grep -v '^ *+' conftest.er1 >conftest.err
32933 cat conftest.err >&5
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); } && {
32936 test -z "$ac_c_werror_flag" ||
32937 test ! -s conftest.err
32938 } && test -s conftest.$ac_objext; then
32939 ol_cv_c_volatile=yes
32941 echo "$as_me: failed program was:" >&5
32942 sed 's/^/| /' conftest.$ac_ext >&5
32944 ol_cv_c_volatile=no
32947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32949 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32950 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32951 if test $ol_cv_c_volatile = yes; then
32955 cat >>confdefs.h <<\_ACEOF
32962 if test $cross_compiling = yes ; then
32963 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32964 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32966 cat >>confdefs.h <<\_ACEOF
32967 #define CROSS_COMPILING 1
32971 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32972 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32973 if test "${ac_cv_c_bigendian+set}" = set; then
32974 echo $ECHO_N "(cached) $ECHO_C" >&6
32976 # See if sys/param.h defines the BYTE_ORDER macro.
32977 cat >conftest.$ac_ext <<_ACEOF
32980 cat confdefs.h >>conftest.$ac_ext
32981 cat >>conftest.$ac_ext <<_ACEOF
32982 /* end confdefs.h. */
32983 #include <sys/types.h>
32984 #include <sys/param.h>
32989 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32990 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32991 bogus endian macros
32998 rm -f conftest.$ac_objext
32999 if { (ac_try="$ac_compile"
33000 case "(($ac_try" in
33001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002 *) ac_try_echo=$ac_try;;
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005 (eval "$ac_compile") 2>conftest.er1
33007 grep -v '^ *+' conftest.er1 >conftest.err
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && {
33012 test -z "$ac_c_werror_flag" ||
33013 test ! -s conftest.err
33014 } && test -s conftest.$ac_objext; then
33015 # It does; now see whether it defined to BIG_ENDIAN or not.
33016 cat >conftest.$ac_ext <<_ACEOF
33019 cat confdefs.h >>conftest.$ac_ext
33020 cat >>conftest.$ac_ext <<_ACEOF
33021 /* end confdefs.h. */
33022 #include <sys/types.h>
33023 #include <sys/param.h>
33028 #if BYTE_ORDER != BIG_ENDIAN
33036 rm -f conftest.$ac_objext
33037 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33045 grep -v '^ *+' conftest.er1 >conftest.err
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } && {
33050 test -z "$ac_c_werror_flag" ||
33051 test ! -s conftest.err
33052 } && test -s conftest.$ac_objext; then
33053 ac_cv_c_bigendian=yes
33055 echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33058 ac_cv_c_bigendian=no
33061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33063 echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33066 # It does not; compile a test program.
33067 if test "$cross_compiling" = yes; then
33068 # try to guess the endianness by grepping values into an object file
33069 ac_cv_c_bigendian=unknown
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33076 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33077 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33078 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33079 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33080 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33081 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33085 _ascii (); _ebcdic ();
33090 rm -f conftest.$ac_objext
33091 if { (ac_try="$ac_compile"
33092 case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_compile") 2>conftest.er1
33099 grep -v '^ *+' conftest.er1 >conftest.err
33101 cat conftest.err >&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); } && {
33104 test -z "$ac_c_werror_flag" ||
33105 test ! -s conftest.err
33106 } && test -s conftest.$ac_objext; then
33107 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33108 ac_cv_c_bigendian=yes
33110 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33111 if test "$ac_cv_c_bigendian" = unknown; then
33112 ac_cv_c_bigendian=no
33114 # finding both strings is unlikely to happen, but who knows?
33115 ac_cv_c_bigendian=unknown
33119 echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33127 cat >conftest.$ac_ext <<_ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h. */
33133 $ac_includes_default
33138 /* Are we little or big endian? From Harbison&Steele. */
33142 char c[sizeof (long int)];
33145 return u.c[sizeof (long int) - 1] == 1;
33151 rm -f conftest$ac_exeext
33152 if { (ac_try="$ac_link"
33153 case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_link") 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33162 { (case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_try") 2>&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }; then
33171 ac_cv_c_bigendian=no
33173 echo "$as_me: program exited with status $ac_status" >&5
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33177 ( exit $ac_status )
33178 ac_cv_c_bigendian=yes
33180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33188 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33189 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33190 case $ac_cv_c_bigendian in
33193 cat >>confdefs.h <<\_ACEOF
33194 #define WORDS_BIGENDIAN 1
33200 { { echo "$as_me:$LINENO: error: unknown endianness
33201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33202 echo "$as_me: error: unknown endianness
33203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33204 { (exit 1); exit 1; }; } ;;
33209 { echo "$as_me:$LINENO: checking for short" >&5
33210 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33211 if test "${ac_cv_type_short+set}" = set; then
33212 echo $ECHO_N "(cached) $ECHO_C" >&6
33214 cat >conftest.$ac_ext <<_ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33220 $ac_includes_default
33221 typedef short ac__type_new_;
33225 if ((ac__type_new_ *) 0)
33227 if (sizeof (ac__type_new_))
33233 rm -f conftest.$ac_objext
33234 if { (ac_try="$ac_compile"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_compile") 2>conftest.er1
33242 grep -v '^ *+' conftest.er1 >conftest.err
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } && {
33247 test -z "$ac_c_werror_flag" ||
33248 test ! -s conftest.err
33249 } && test -s conftest.$ac_objext; then
33250 ac_cv_type_short=yes
33252 echo "$as_me: failed program was:" >&5
33253 sed 's/^/| /' conftest.$ac_ext >&5
33255 ac_cv_type_short=no
33258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33260 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33261 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33263 # The cast to long int works around a bug in the HP C Compiler
33264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33266 # This bug is HP SR number 8606223364.
33267 { echo "$as_me:$LINENO: checking size of short" >&5
33268 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33269 if test "${ac_cv_sizeof_short+set}" = set; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33272 if test "$cross_compiling" = yes; then
33273 # Depending upon the size, compute the lo and hi bounds.
33274 cat >conftest.$ac_ext <<_ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33280 $ac_includes_default
33281 typedef short ac__type_sizeof_;
33285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33292 rm -f conftest.$ac_objext
33293 if { (ac_try="$ac_compile"
33294 case "(($ac_try" in
33295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296 *) ac_try_echo=$ac_try;;
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299 (eval "$ac_compile") 2>conftest.er1
33301 grep -v '^ *+' conftest.er1 >conftest.err
33303 cat conftest.err >&5
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); } && {
33306 test -z "$ac_c_werror_flag" ||
33307 test ! -s conftest.err
33308 } && test -s conftest.$ac_objext; then
33311 cat >conftest.$ac_ext <<_ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h. */
33317 $ac_includes_default
33318 typedef short ac__type_sizeof_;
33322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33329 rm -f conftest.$ac_objext
33330 if { (ac_try="$ac_compile"
33331 case "(($ac_try" in
33332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33333 *) ac_try_echo=$ac_try;;
33335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33336 (eval "$ac_compile") 2>conftest.er1
33338 grep -v '^ *+' conftest.er1 >conftest.err
33340 cat conftest.err >&5
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); } && {
33343 test -z "$ac_c_werror_flag" ||
33344 test ! -s conftest.err
33345 } && test -s conftest.$ac_objext; then
33346 ac_hi=$ac_mid; break
33348 echo "$as_me: failed program was:" >&5
33349 sed 's/^/| /' conftest.$ac_ext >&5
33351 ac_lo=`expr $ac_mid + 1`
33352 if test $ac_lo -le $ac_mid; then
33356 ac_mid=`expr 2 '*' $ac_mid + 1`
33359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 cat >conftest.$ac_ext <<_ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33371 $ac_includes_default
33372 typedef short ac__type_sizeof_;
33376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33383 rm -f conftest.$ac_objext
33384 if { (ac_try="$ac_compile"
33385 case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_compile") 2>conftest.er1
33392 grep -v '^ *+' conftest.er1 >conftest.err
33394 cat conftest.err >&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } && {
33397 test -z "$ac_c_werror_flag" ||
33398 test ! -s conftest.err
33399 } && test -s conftest.$ac_objext; then
33402 cat >conftest.$ac_ext <<_ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h. */
33408 $ac_includes_default
33409 typedef short ac__type_sizeof_;
33413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33420 rm -f conftest.$ac_objext
33421 if { (ac_try="$ac_compile"
33422 case "(($ac_try" in
33423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424 *) ac_try_echo=$ac_try;;
33426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33427 (eval "$ac_compile") 2>conftest.er1
33429 grep -v '^ *+' conftest.er1 >conftest.err
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } && {
33434 test -z "$ac_c_werror_flag" ||
33435 test ! -s conftest.err
33436 } && test -s conftest.$ac_objext; then
33437 ac_lo=$ac_mid; break
33439 echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33442 ac_hi=`expr '(' $ac_mid ')' - 1`
33443 if test $ac_mid -le $ac_hi; then
33447 ac_mid=`expr 2 '*' $ac_mid`
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453 echo "$as_me: failed program was:" >&5
33454 sed 's/^/| /' conftest.$ac_ext >&5
33459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33463 # Binary search between lo and hi bounds.
33464 while test "x$ac_lo" != "x$ac_hi"; do
33465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33466 cat >conftest.$ac_ext <<_ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h. */
33472 $ac_includes_default
33473 typedef short ac__type_sizeof_;
33477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33484 rm -f conftest.$ac_objext
33485 if { (ac_try="$ac_compile"
33486 case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_compile") 2>conftest.er1
33493 grep -v '^ *+' conftest.er1 >conftest.err
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); } && {
33498 test -z "$ac_c_werror_flag" ||
33499 test ! -s conftest.err
33500 } && test -s conftest.$ac_objext; then
33503 echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33506 ac_lo=`expr '(' $ac_mid ')' + 1`
33509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33512 ?*) ac_cv_sizeof_short=$ac_lo;;
33513 '') if test "$ac_cv_type_short" = yes; then
33514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33515 See \`config.log' for more details." >&5
33516 echo "$as_me: error: cannot compute sizeof (short)
33517 See \`config.log' for more details." >&2;}
33518 { (exit 77); exit 77; }; }
33520 ac_cv_sizeof_short=0
33524 cat >conftest.$ac_ext <<_ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h. */
33530 $ac_includes_default
33531 typedef short ac__type_sizeof_;
33532 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33533 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33535 #include <stdlib.h>
33540 FILE *f = fopen ("conftest.val", "w");
33543 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33545 long int i = longval ();
33546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33548 fprintf (f, "%ld\n", i);
33552 unsigned long int i = ulongval ();
33553 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33555 fprintf (f, "%lu\n", i);
33557 return ferror (f) || fclose (f) != 0;
33563 rm -f conftest$ac_exeext
33564 if { (ac_try="$ac_link"
33565 case "(($ac_try" in
33566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33567 *) ac_try_echo=$ac_try;;
33569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33570 (eval "$ac_link") 2>&5
33572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33574 { (case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579 (eval "$ac_try") 2>&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; }; then
33583 ac_cv_sizeof_short=`cat conftest.val`
33585 echo "$as_me: program exited with status $ac_status" >&5
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33589 ( exit $ac_status )
33590 if test "$ac_cv_type_short" = yes; then
33591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33592 See \`config.log' for more details." >&5
33593 echo "$as_me: error: cannot compute sizeof (short)
33594 See \`config.log' for more details." >&2;}
33595 { (exit 77); exit 77; }; }
33597 ac_cv_sizeof_short=0
33600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33604 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33605 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33609 cat >>confdefs.h <<_ACEOF
33610 #define SIZEOF_SHORT $ac_cv_sizeof_short
33614 { echo "$as_me:$LINENO: checking for int" >&5
33615 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33616 if test "${ac_cv_type_int+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 cat >conftest.$ac_ext <<_ACEOF
33622 cat confdefs.h >>conftest.$ac_ext
33623 cat >>conftest.$ac_ext <<_ACEOF
33624 /* end confdefs.h. */
33625 $ac_includes_default
33626 typedef int ac__type_new_;
33630 if ((ac__type_new_ *) 0)
33632 if (sizeof (ac__type_new_))
33638 rm -f conftest.$ac_objext
33639 if { (ac_try="$ac_compile"
33640 case "(($ac_try" in
33641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33642 *) ac_try_echo=$ac_try;;
33644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33645 (eval "$ac_compile") 2>conftest.er1
33647 grep -v '^ *+' conftest.er1 >conftest.err
33649 cat conftest.err >&5
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); } && {
33652 test -z "$ac_c_werror_flag" ||
33653 test ! -s conftest.err
33654 } && test -s conftest.$ac_objext; then
33657 echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33665 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33666 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33668 # The cast to long int works around a bug in the HP C Compiler
33669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33671 # This bug is HP SR number 8606223364.
33672 { echo "$as_me:$LINENO: checking size of int" >&5
33673 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33674 if test "${ac_cv_sizeof_int+set}" = set; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33677 if test "$cross_compiling" = yes; then
33678 # Depending upon the size, compute the lo and hi bounds.
33679 cat >conftest.$ac_ext <<_ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h. */
33685 $ac_includes_default
33686 typedef int ac__type_sizeof_;
33690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33697 rm -f conftest.$ac_objext
33698 if { (ac_try="$ac_compile"
33699 case "(($ac_try" in
33700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33701 *) ac_try_echo=$ac_try;;
33703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33704 (eval "$ac_compile") 2>conftest.er1
33706 grep -v '^ *+' conftest.er1 >conftest.err
33708 cat conftest.err >&5
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); } && {
33711 test -z "$ac_c_werror_flag" ||
33712 test ! -s conftest.err
33713 } && test -s conftest.$ac_objext; then
33716 cat >conftest.$ac_ext <<_ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h. */
33722 $ac_includes_default
33723 typedef int ac__type_sizeof_;
33727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33734 rm -f conftest.$ac_objext
33735 if { (ac_try="$ac_compile"
33736 case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
33743 grep -v '^ *+' conftest.er1 >conftest.err
33745 cat conftest.err >&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); } && {
33748 test -z "$ac_c_werror_flag" ||
33749 test ! -s conftest.err
33750 } && test -s conftest.$ac_objext; then
33751 ac_hi=$ac_mid; break
33753 echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33756 ac_lo=`expr $ac_mid + 1`
33757 if test $ac_lo -le $ac_mid; then
33761 ac_mid=`expr 2 '*' $ac_mid + 1`
33764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33767 echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33770 cat >conftest.$ac_ext <<_ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33776 $ac_includes_default
33777 typedef int ac__type_sizeof_;
33781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33788 rm -f conftest.$ac_objext
33789 if { (ac_try="$ac_compile"
33790 case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_compile") 2>conftest.er1
33797 grep -v '^ *+' conftest.er1 >conftest.err
33799 cat conftest.err >&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } && {
33802 test -z "$ac_c_werror_flag" ||
33803 test ! -s conftest.err
33804 } && test -s conftest.$ac_objext; then
33807 cat >conftest.$ac_ext <<_ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33813 $ac_includes_default
33814 typedef int ac__type_sizeof_;
33818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33825 rm -f conftest.$ac_objext
33826 if { (ac_try="$ac_compile"
33827 case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_compile") 2>conftest.er1
33834 grep -v '^ *+' conftest.er1 >conftest.err
33836 cat conftest.err >&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } && {
33839 test -z "$ac_c_werror_flag" ||
33840 test ! -s conftest.err
33841 } && test -s conftest.$ac_objext; then
33842 ac_lo=$ac_mid; break
33844 echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.$ac_ext >&5
33847 ac_hi=`expr '(' $ac_mid ')' - 1`
33848 if test $ac_mid -le $ac_hi; then
33852 ac_mid=`expr 2 '*' $ac_mid`
33855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 # Binary search between lo and hi bounds.
33869 while test "x$ac_lo" != "x$ac_hi"; do
33870 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33871 cat >conftest.$ac_ext <<_ACEOF
33874 cat confdefs.h >>conftest.$ac_ext
33875 cat >>conftest.$ac_ext <<_ACEOF
33876 /* end confdefs.h. */
33877 $ac_includes_default
33878 typedef int ac__type_sizeof_;
33882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_compile") 2>conftest.er1
33898 grep -v '^ *+' conftest.er1 >conftest.err
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } && {
33903 test -z "$ac_c_werror_flag" ||
33904 test ! -s conftest.err
33905 } && test -s conftest.$ac_objext; then
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_lo=`expr '(' $ac_mid ')' + 1`
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33917 ?*) ac_cv_sizeof_int=$ac_lo;;
33918 '') if test "$ac_cv_type_int" = yes; then
33919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33920 See \`config.log' for more details." >&5
33921 echo "$as_me: error: cannot compute sizeof (int)
33922 See \`config.log' for more details." >&2;}
33923 { (exit 77); exit 77; }; }
33929 cat >conftest.$ac_ext <<_ACEOF
33932 cat confdefs.h >>conftest.$ac_ext
33933 cat >>conftest.$ac_ext <<_ACEOF
33934 /* end confdefs.h. */
33935 $ac_includes_default
33936 typedef int ac__type_sizeof_;
33937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33940 #include <stdlib.h>
33945 FILE *f = fopen ("conftest.val", "w");
33948 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33950 long int i = longval ();
33951 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33953 fprintf (f, "%ld\n", i);
33957 unsigned long int i = ulongval ();
33958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33960 fprintf (f, "%lu\n", i);
33962 return ferror (f) || fclose (f) != 0;
33968 rm -f conftest$ac_exeext
33969 if { (ac_try="$ac_link"
33970 case "(($ac_try" in
33971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972 *) ac_try_echo=$ac_try;;
33974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975 (eval "$ac_link") 2>&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33979 { (case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_try") 2>&5
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); }; }; then
33988 ac_cv_sizeof_int=`cat conftest.val`
33990 echo "$as_me: program exited with status $ac_status" >&5
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33994 ( exit $ac_status )
33995 if test "$ac_cv_type_int" = yes; then
33996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33997 See \`config.log' for more details." >&5
33998 echo "$as_me: error: cannot compute sizeof (int)
33999 See \`config.log' for more details." >&2;}
34000 { (exit 77); exit 77; }; }
34005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34010 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34014 cat >>confdefs.h <<_ACEOF
34015 #define SIZEOF_INT $ac_cv_sizeof_int
34019 { echo "$as_me:$LINENO: checking for long" >&5
34020 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34021 if test "${ac_cv_type_long+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34024 cat >conftest.$ac_ext <<_ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h. */
34030 $ac_includes_default
34031 typedef long ac__type_new_;
34035 if ((ac__type_new_ *) 0)
34037 if (sizeof (ac__type_new_))
34043 rm -f conftest.$ac_objext
34044 if { (ac_try="$ac_compile"
34045 case "(($ac_try" in
34046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047 *) ac_try_echo=$ac_try;;
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_compile") 2>conftest.er1
34052 grep -v '^ *+' conftest.er1 >conftest.err
34054 cat conftest.err >&5
34055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056 (exit $ac_status); } && {
34057 test -z "$ac_c_werror_flag" ||
34058 test ! -s conftest.err
34059 } && test -s conftest.$ac_objext; then
34060 ac_cv_type_long=yes
34062 echo "$as_me: failed program was:" >&5
34063 sed 's/^/| /' conftest.$ac_ext >&5
34068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34070 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34071 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34073 # The cast to long int works around a bug in the HP C Compiler
34074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34076 # This bug is HP SR number 8606223364.
34077 { echo "$as_me:$LINENO: checking size of long" >&5
34078 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34079 if test "${ac_cv_sizeof_long+set}" = set; then
34080 echo $ECHO_N "(cached) $ECHO_C" >&6
34082 if test "$cross_compiling" = yes; then
34083 # Depending upon the size, compute the lo and hi bounds.
34084 cat >conftest.$ac_ext <<_ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h. */
34090 $ac_includes_default
34091 typedef long ac__type_sizeof_;
34095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34102 rm -f conftest.$ac_objext
34103 if { (ac_try="$ac_compile"
34104 case "(($ac_try" in
34105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34106 *) ac_try_echo=$ac_try;;
34108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34109 (eval "$ac_compile") 2>conftest.er1
34111 grep -v '^ *+' conftest.er1 >conftest.err
34113 cat conftest.err >&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); } && {
34116 test -z "$ac_c_werror_flag" ||
34117 test ! -s conftest.err
34118 } && test -s conftest.$ac_objext; then
34121 cat >conftest.$ac_ext <<_ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h. */
34127 $ac_includes_default
34128 typedef long ac__type_sizeof_;
34132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146 (eval "$ac_compile") 2>conftest.er1
34148 grep -v '^ *+' conftest.er1 >conftest.err
34150 cat conftest.err >&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); } && {
34153 test -z "$ac_c_werror_flag" ||
34154 test ! -s conftest.err
34155 } && test -s conftest.$ac_objext; then
34156 ac_hi=$ac_mid; break
34158 echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34161 ac_lo=`expr $ac_mid + 1`
34162 if test $ac_lo -le $ac_mid; then
34166 ac_mid=`expr 2 '*' $ac_mid + 1`
34169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34172 echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34175 cat >conftest.$ac_ext <<_ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34181 $ac_includes_default
34182 typedef long ac__type_sizeof_;
34186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_compile") 2>conftest.er1
34202 grep -v '^ *+' conftest.er1 >conftest.err
34204 cat conftest.err >&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } && {
34207 test -z "$ac_c_werror_flag" ||
34208 test ! -s conftest.err
34209 } && test -s conftest.$ac_objext; then
34212 cat >conftest.$ac_ext <<_ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h. */
34218 $ac_includes_default
34219 typedef long ac__type_sizeof_;
34223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34230 rm -f conftest.$ac_objext
34231 if { (ac_try="$ac_compile"
34232 case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_compile") 2>conftest.er1
34239 grep -v '^ *+' conftest.er1 >conftest.err
34241 cat conftest.err >&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } && {
34244 test -z "$ac_c_werror_flag" ||
34245 test ! -s conftest.err
34246 } && test -s conftest.$ac_objext; then
34247 ac_lo=$ac_mid; break
34249 echo "$as_me: failed program was:" >&5
34250 sed 's/^/| /' conftest.$ac_ext >&5
34252 ac_hi=`expr '(' $ac_mid ')' - 1`
34253 if test $ac_mid -le $ac_hi; then
34257 ac_mid=`expr 2 '*' $ac_mid`
34260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34273 # Binary search between lo and hi bounds.
34274 while test "x$ac_lo" != "x$ac_hi"; do
34275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34276 cat >conftest.$ac_ext <<_ACEOF
34279 cat confdefs.h >>conftest.$ac_ext
34280 cat >>conftest.$ac_ext <<_ACEOF
34281 /* end confdefs.h. */
34282 $ac_includes_default
34283 typedef long ac__type_sizeof_;
34287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34294 rm -f conftest.$ac_objext
34295 if { (ac_try="$ac_compile"
34296 case "(($ac_try" in
34297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298 *) ac_try_echo=$ac_try;;
34300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301 (eval "$ac_compile") 2>conftest.er1
34303 grep -v '^ *+' conftest.er1 >conftest.err
34305 cat conftest.err >&5
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } && {
34308 test -z "$ac_c_werror_flag" ||
34309 test ! -s conftest.err
34310 } && test -s conftest.$ac_objext; then
34313 echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34316 ac_lo=`expr '(' $ac_mid ')' + 1`
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 ?*) ac_cv_sizeof_long=$ac_lo;;
34323 '') if test "$ac_cv_type_long" = yes; then
34324 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34325 See \`config.log' for more details." >&5
34326 echo "$as_me: error: cannot compute sizeof (long)
34327 See \`config.log' for more details." >&2;}
34328 { (exit 77); exit 77; }; }
34330 ac_cv_sizeof_long=0
34334 cat >conftest.$ac_ext <<_ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h. */
34340 $ac_includes_default
34341 typedef long ac__type_sizeof_;
34342 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34343 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34345 #include <stdlib.h>
34350 FILE *f = fopen ("conftest.val", "w");
34353 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34355 long int i = longval ();
34356 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34358 fprintf (f, "%ld\n", i);
34362 unsigned long int i = ulongval ();
34363 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34365 fprintf (f, "%lu\n", i);
34367 return ferror (f) || fclose (f) != 0;
34373 rm -f conftest$ac_exeext
34374 if { (ac_try="$ac_link"
34375 case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_link") 2>&5
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34384 { (case "(($ac_try" in
34385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34386 *) ac_try_echo=$ac_try;;
34388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34389 (eval "$ac_try") 2>&5
34391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 (exit $ac_status); }; }; then
34393 ac_cv_sizeof_long=`cat conftest.val`
34395 echo "$as_me: program exited with status $ac_status" >&5
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34399 ( exit $ac_status )
34400 if test "$ac_cv_type_long" = yes; then
34401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34402 See \`config.log' for more details." >&5
34403 echo "$as_me: error: cannot compute sizeof (long)
34404 See \`config.log' for more details." >&2;}
34405 { (exit 77); exit 77; }; }
34407 ac_cv_sizeof_long=0
34410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34415 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34419 cat >>confdefs.h <<_ACEOF
34420 #define SIZEOF_LONG $ac_cv_sizeof_long
34424 { echo "$as_me:$LINENO: checking for long long" >&5
34425 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34426 if test "${ac_cv_type_long_long+set}" = set; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34429 cat >conftest.$ac_ext <<_ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h. */
34435 $ac_includes_default
34436 typedef long long ac__type_new_;
34440 if ((ac__type_new_ *) 0)
34442 if (sizeof (ac__type_new_))
34448 rm -f conftest.$ac_objext
34449 if { (ac_try="$ac_compile"
34450 case "(($ac_try" in
34451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452 *) ac_try_echo=$ac_try;;
34454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455 (eval "$ac_compile") 2>conftest.er1
34457 grep -v '^ *+' conftest.er1 >conftest.err
34459 cat conftest.err >&5
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); } && {
34462 test -z "$ac_c_werror_flag" ||
34463 test ! -s conftest.err
34464 } && test -s conftest.$ac_objext; then
34465 ac_cv_type_long_long=yes
34467 echo "$as_me: failed program was:" >&5
34468 sed 's/^/| /' conftest.$ac_ext >&5
34470 ac_cv_type_long_long=no
34473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34475 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34476 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34478 # The cast to long int works around a bug in the HP C Compiler
34479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34481 # This bug is HP SR number 8606223364.
34482 { echo "$as_me:$LINENO: checking size of long long" >&5
34483 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34484 if test "${ac_cv_sizeof_long_long+set}" = set; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34487 if test "$cross_compiling" = yes; then
34488 # Depending upon the size, compute the lo and hi bounds.
34489 cat >conftest.$ac_ext <<_ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h. */
34495 $ac_includes_default
34496 typedef long long ac__type_sizeof_;
34500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34507 rm -f conftest.$ac_objext
34508 if { (ac_try="$ac_compile"
34509 case "(($ac_try" in
34510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34511 *) ac_try_echo=$ac_try;;
34513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34514 (eval "$ac_compile") 2>conftest.er1
34516 grep -v '^ *+' conftest.er1 >conftest.err
34518 cat conftest.err >&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } && {
34521 test -z "$ac_c_werror_flag" ||
34522 test ! -s conftest.err
34523 } && test -s conftest.$ac_objext; then
34526 cat >conftest.$ac_ext <<_ACEOF
34529 cat confdefs.h >>conftest.$ac_ext
34530 cat >>conftest.$ac_ext <<_ACEOF
34531 /* end confdefs.h. */
34532 $ac_includes_default
34533 typedef long long ac__type_sizeof_;
34537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34544 rm -f conftest.$ac_objext
34545 if { (ac_try="$ac_compile"
34546 case "(($ac_try" in
34547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34548 *) ac_try_echo=$ac_try;;
34550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34551 (eval "$ac_compile") 2>conftest.er1
34553 grep -v '^ *+' conftest.er1 >conftest.err
34555 cat conftest.err >&5
34556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557 (exit $ac_status); } && {
34558 test -z "$ac_c_werror_flag" ||
34559 test ! -s conftest.err
34560 } && test -s conftest.$ac_objext; then
34561 ac_hi=$ac_mid; break
34563 echo "$as_me: failed program was:" >&5
34564 sed 's/^/| /' conftest.$ac_ext >&5
34566 ac_lo=`expr $ac_mid + 1`
34567 if test $ac_lo -le $ac_mid; then
34571 ac_mid=`expr 2 '*' $ac_mid + 1`
34574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34577 echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34580 cat >conftest.$ac_ext <<_ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h. */
34586 $ac_includes_default
34587 typedef long long ac__type_sizeof_;
34591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_compile") 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } && {
34612 test -z "$ac_c_werror_flag" ||
34613 test ! -s conftest.err
34614 } && test -s conftest.$ac_objext; then
34617 cat >conftest.$ac_ext <<_ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h. */
34623 $ac_includes_default
34624 typedef long long ac__type_sizeof_;
34628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34635 rm -f conftest.$ac_objext
34636 if { (ac_try="$ac_compile"
34637 case "(($ac_try" in
34638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34639 *) ac_try_echo=$ac_try;;
34641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34642 (eval "$ac_compile") 2>conftest.er1
34644 grep -v '^ *+' conftest.er1 >conftest.err
34646 cat conftest.err >&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } && {
34649 test -z "$ac_c_werror_flag" ||
34650 test ! -s conftest.err
34651 } && test -s conftest.$ac_objext; then
34652 ac_lo=$ac_mid; break
34654 echo "$as_me: failed program was:" >&5
34655 sed 's/^/| /' conftest.$ac_ext >&5
34657 ac_hi=`expr '(' $ac_mid ')' - 1`
34658 if test $ac_mid -le $ac_hi; then
34662 ac_mid=`expr 2 '*' $ac_mid`
34665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34668 echo "$as_me: failed program was:" >&5
34669 sed 's/^/| /' conftest.$ac_ext >&5
34674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678 # Binary search between lo and hi bounds.
34679 while test "x$ac_lo" != "x$ac_hi"; do
34680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34681 cat >conftest.$ac_ext <<_ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h. */
34687 $ac_includes_default
34688 typedef long long ac__type_sizeof_;
34692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34699 rm -f conftest.$ac_objext
34700 if { (ac_try="$ac_compile"
34701 case "(($ac_try" in
34702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703 *) ac_try_echo=$ac_try;;
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706 (eval "$ac_compile") 2>conftest.er1
34708 grep -v '^ *+' conftest.er1 >conftest.err
34710 cat conftest.err >&5
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); } && {
34713 test -z "$ac_c_werror_flag" ||
34714 test ! -s conftest.err
34715 } && test -s conftest.$ac_objext; then
34718 echo "$as_me: failed program was:" >&5
34719 sed 's/^/| /' conftest.$ac_ext >&5
34721 ac_lo=`expr '(' $ac_mid ')' + 1`
34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34727 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34728 '') if test "$ac_cv_type_long_long" = yes; then
34729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34730 See \`config.log' for more details." >&5
34731 echo "$as_me: error: cannot compute sizeof (long long)
34732 See \`config.log' for more details." >&2;}
34733 { (exit 77); exit 77; }; }
34735 ac_cv_sizeof_long_long=0
34739 cat >conftest.$ac_ext <<_ACEOF
34742 cat confdefs.h >>conftest.$ac_ext
34743 cat >>conftest.$ac_ext <<_ACEOF
34744 /* end confdefs.h. */
34745 $ac_includes_default
34746 typedef long long ac__type_sizeof_;
34747 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34748 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34750 #include <stdlib.h>
34755 FILE *f = fopen ("conftest.val", "w");
34758 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34760 long int i = longval ();
34761 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34763 fprintf (f, "%ld\n", i);
34767 unsigned long int i = ulongval ();
34768 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34770 fprintf (f, "%lu\n", i);
34772 return ferror (f) || fclose (f) != 0;
34778 rm -f conftest$ac_exeext
34779 if { (ac_try="$ac_link"
34780 case "(($ac_try" in
34781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34782 *) ac_try_echo=$ac_try;;
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785 (eval "$ac_link") 2>&5
34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34789 { (case "(($ac_try" in
34790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34791 *) ac_try_echo=$ac_try;;
34793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34794 (eval "$ac_try") 2>&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; }; then
34798 ac_cv_sizeof_long_long=`cat conftest.val`
34800 echo "$as_me: program exited with status $ac_status" >&5
34801 echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34804 ( exit $ac_status )
34805 if test "$ac_cv_type_long_long" = yes; then
34806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34807 See \`config.log' for more details." >&5
34808 echo "$as_me: error: cannot compute sizeof (long long)
34809 See \`config.log' for more details." >&2;}
34810 { (exit 77); exit 77; }; }
34812 ac_cv_sizeof_long_long=0
34815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34819 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34820 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34824 cat >>confdefs.h <<_ACEOF
34825 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34829 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34830 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34831 if test "${ac_cv_type_wchar_t+set}" = set; then
34832 echo $ECHO_N "(cached) $ECHO_C" >&6
34834 cat >conftest.$ac_ext <<_ACEOF
34837 cat confdefs.h >>conftest.$ac_ext
34838 cat >>conftest.$ac_ext <<_ACEOF
34839 /* end confdefs.h. */
34840 $ac_includes_default
34841 typedef wchar_t ac__type_new_;
34845 if ((ac__type_new_ *) 0)
34847 if (sizeof (ac__type_new_))
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 test -z "$ac_c_werror_flag" ||
34868 test ! -s conftest.err
34869 } && test -s conftest.$ac_objext; then
34870 ac_cv_type_wchar_t=yes
34872 echo "$as_me: failed program was:" >&5
34873 sed 's/^/| /' conftest.$ac_ext >&5
34875 ac_cv_type_wchar_t=no
34878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34881 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34883 # The cast to long int works around a bug in the HP C Compiler
34884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34886 # This bug is HP SR number 8606223364.
34887 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34888 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34889 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34890 echo $ECHO_N "(cached) $ECHO_C" >&6
34892 if test "$cross_compiling" = yes; then
34893 # Depending upon the size, compute the lo and hi bounds.
34894 cat >conftest.$ac_ext <<_ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h. */
34900 $ac_includes_default
34901 typedef wchar_t ac__type_sizeof_;
34905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34912 rm -f conftest.$ac_objext
34913 if { (ac_try="$ac_compile"
34914 case "(($ac_try" in
34915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916 *) ac_try_echo=$ac_try;;
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919 (eval "$ac_compile") 2>conftest.er1
34921 grep -v '^ *+' conftest.er1 >conftest.err
34923 cat conftest.err >&5
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } && {
34926 test -z "$ac_c_werror_flag" ||
34927 test ! -s conftest.err
34928 } && test -s conftest.$ac_objext; then
34931 cat >conftest.$ac_ext <<_ACEOF
34934 cat confdefs.h >>conftest.$ac_ext
34935 cat >>conftest.$ac_ext <<_ACEOF
34936 /* end confdefs.h. */
34937 $ac_includes_default
34938 typedef wchar_t ac__type_sizeof_;
34942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34949 rm -f conftest.$ac_objext
34950 if { (ac_try="$ac_compile"
34951 case "(($ac_try" in
34952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34953 *) ac_try_echo=$ac_try;;
34955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34956 (eval "$ac_compile") 2>conftest.er1
34958 grep -v '^ *+' conftest.er1 >conftest.err
34960 cat conftest.err >&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } && {
34963 test -z "$ac_c_werror_flag" ||
34964 test ! -s conftest.err
34965 } && test -s conftest.$ac_objext; then
34966 ac_hi=$ac_mid; break
34968 echo "$as_me: failed program was:" >&5
34969 sed 's/^/| /' conftest.$ac_ext >&5
34971 ac_lo=`expr $ac_mid + 1`
34972 if test $ac_lo -le $ac_mid; then
34976 ac_mid=`expr 2 '*' $ac_mid + 1`
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34982 echo "$as_me: failed program was:" >&5
34983 sed 's/^/| /' conftest.$ac_ext >&5
34985 cat >conftest.$ac_ext <<_ACEOF
34988 cat confdefs.h >>conftest.$ac_ext
34989 cat >>conftest.$ac_ext <<_ACEOF
34990 /* end confdefs.h. */
34991 $ac_includes_default
34992 typedef wchar_t ac__type_sizeof_;
34996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007 *) ac_try_echo=$ac_try;;
35009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35010 (eval "$ac_compile") 2>conftest.er1
35012 grep -v '^ *+' conftest.er1 >conftest.err
35014 cat conftest.err >&5
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); } && {
35017 test -z "$ac_c_werror_flag" ||
35018 test ! -s conftest.err
35019 } && test -s conftest.$ac_objext; then
35022 cat >conftest.$ac_ext <<_ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h. */
35028 $ac_includes_default
35029 typedef wchar_t ac__type_sizeof_;
35033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35040 rm -f conftest.$ac_objext
35041 if { (ac_try="$ac_compile"
35042 case "(($ac_try" in
35043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35044 *) ac_try_echo=$ac_try;;
35046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35047 (eval "$ac_compile") 2>conftest.er1
35049 grep -v '^ *+' conftest.er1 >conftest.err
35051 cat conftest.err >&5
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } && {
35054 test -z "$ac_c_werror_flag" ||
35055 test ! -s conftest.err
35056 } && test -s conftest.$ac_objext; then
35057 ac_lo=$ac_mid; break
35059 echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35062 ac_hi=`expr '(' $ac_mid ')' - 1`
35063 if test $ac_mid -le $ac_hi; then
35067 ac_mid=`expr 2 '*' $ac_mid`
35070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35073 echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35083 # Binary search between lo and hi bounds.
35084 while test "x$ac_lo" != "x$ac_hi"; do
35085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35086 cat >conftest.$ac_ext <<_ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h. */
35092 $ac_includes_default
35093 typedef wchar_t ac__type_sizeof_;
35097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35104 rm -f conftest.$ac_objext
35105 if { (ac_try="$ac_compile"
35106 case "(($ac_try" in
35107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108 *) ac_try_echo=$ac_try;;
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111 (eval "$ac_compile") 2>conftest.er1
35113 grep -v '^ *+' conftest.er1 >conftest.err
35115 cat conftest.err >&5
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); } && {
35118 test -z "$ac_c_werror_flag" ||
35119 test ! -s conftest.err
35120 } && test -s conftest.$ac_objext; then
35123 echo "$as_me: failed program was:" >&5
35124 sed 's/^/| /' conftest.$ac_ext >&5
35126 ac_lo=`expr '(' $ac_mid ')' + 1`
35129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35132 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35133 '') if test "$ac_cv_type_wchar_t" = yes; then
35134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35135 See \`config.log' for more details." >&5
35136 echo "$as_me: error: cannot compute sizeof (wchar_t)
35137 See \`config.log' for more details." >&2;}
35138 { (exit 77); exit 77; }; }
35140 ac_cv_sizeof_wchar_t=0
35144 cat >conftest.$ac_ext <<_ACEOF
35147 cat confdefs.h >>conftest.$ac_ext
35148 cat >>conftest.$ac_ext <<_ACEOF
35149 /* end confdefs.h. */
35150 $ac_includes_default
35151 typedef wchar_t ac__type_sizeof_;
35152 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35153 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35155 #include <stdlib.h>
35160 FILE *f = fopen ("conftest.val", "w");
35163 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35165 long int i = longval ();
35166 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35168 fprintf (f, "%ld\n", i);
35172 unsigned long int i = ulongval ();
35173 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35175 fprintf (f, "%lu\n", i);
35177 return ferror (f) || fclose (f) != 0;
35183 rm -f conftest$ac_exeext
35184 if { (ac_try="$ac_link"
35185 case "(($ac_try" in
35186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35187 *) ac_try_echo=$ac_try;;
35189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35190 (eval "$ac_link") 2>&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35194 { (case "(($ac_try" in
35195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35196 *) ac_try_echo=$ac_try;;
35198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35199 (eval "$ac_try") 2>&5
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; }; then
35203 ac_cv_sizeof_wchar_t=`cat conftest.val`
35205 echo "$as_me: program exited with status $ac_status" >&5
35206 echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35209 ( exit $ac_status )
35210 if test "$ac_cv_type_wchar_t" = yes; then
35211 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35212 See \`config.log' for more details." >&5
35213 echo "$as_me: error: cannot compute sizeof (wchar_t)
35214 See \`config.log' for more details." >&2;}
35215 { (exit 77); exit 77; }; }
35217 ac_cv_sizeof_wchar_t=0
35220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35224 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35225 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35229 cat >>confdefs.h <<_ACEOF
35230 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35235 if test "$ac_cv_sizeof_int" -lt 4 ; then
35236 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35237 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35240 cat >>confdefs.h <<\_ACEOF
35241 #define LBER_INT_T long
35246 cat >>confdefs.h <<\_ACEOF
35247 #define LBER_INT_T int
35253 cat >>confdefs.h <<\_ACEOF
35254 #define LBER_LEN_T long
35258 cat >>confdefs.h <<\_ACEOF
35259 #define LBER_SOCKET_T int
35263 cat >>confdefs.h <<\_ACEOF
35264 #define LBER_TAG_T long
35268 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35269 if test $ac_cv_sizeof_long_long -gt 4 ; then
35270 ol_with_mp=longlong
35272 cat >>confdefs.h <<\_ACEOF
35273 #define USE_MP_LONG_LONG 1
35276 elif test $ol_with_mp = longlong ; then
35277 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35278 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35279 { (exit 1); exit 1; }; }
35282 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35283 if test $ac_cv_sizeof_long -gt 4 ; then
35286 cat >>confdefs.h <<\_ACEOF
35287 #define USE_MP_LONG 1
35290 elif test $ol_with_mp = long ; then
35291 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35292 echo "$as_me: error: long unusable for multiple precision" >&2;}
35293 { (exit 1); exit 1; }; }
35296 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35298 for ac_header in openssl/bn.h
35300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305 echo $ECHO_N "(cached) $ECHO_C" >&6
35307 ac_res=`eval echo '${'$as_ac_Header'}'`
35308 { echo "$as_me:$LINENO: result: $ac_res" >&5
35309 echo "${ECHO_T}$ac_res" >&6; }
35311 # Is the header compilable?
35312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35314 cat >conftest.$ac_ext <<_ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h. */
35320 $ac_includes_default
35321 #include <$ac_header>
35323 rm -f conftest.$ac_objext
35324 if { (ac_try="$ac_compile"
35325 case "(($ac_try" in
35326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35327 *) ac_try_echo=$ac_try;;
35329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35330 (eval "$ac_compile") 2>conftest.er1
35332 grep -v '^ *+' conftest.er1 >conftest.err
35334 cat conftest.err >&5
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); } && {
35337 test -z "$ac_c_werror_flag" ||
35338 test ! -s conftest.err
35339 } && test -s conftest.$ac_objext; then
35340 ac_header_compiler=yes
35342 echo "$as_me: failed program was:" >&5
35343 sed 's/^/| /' conftest.$ac_ext >&5
35345 ac_header_compiler=no
35348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35350 echo "${ECHO_T}$ac_header_compiler" >&6; }
35352 # Is the header present?
35353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35355 cat >conftest.$ac_ext <<_ACEOF
35358 cat confdefs.h >>conftest.$ac_ext
35359 cat >>conftest.$ac_ext <<_ACEOF
35360 /* end confdefs.h. */
35361 #include <$ac_header>
35363 if { (ac_try="$ac_cpp conftest.$ac_ext"
35364 case "(($ac_try" in
35365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366 *) ac_try_echo=$ac_try;;
35368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35371 grep -v '^ *+' conftest.er1 >conftest.err
35373 cat conftest.err >&5
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); } >/dev/null && {
35376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35377 test ! -s conftest.err
35379 ac_header_preproc=yes
35381 echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35384 ac_header_preproc=no
35387 rm -f conftest.err conftest.$ac_ext
35388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35389 echo "${ECHO_T}$ac_header_preproc" >&6; }
35391 # So? What about this header?
35392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35398 ac_header_preproc=yes
35401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35414 ## --------------------------------------------- ##
35415 ## Report this to <http://www.openldap.org/its/> ##
35416 ## --------------------------------------------- ##
35418 ) | sed "s/^/$as_me: WARNING: /" >&2
35421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35424 echo $ECHO_N "(cached) $ECHO_C" >&6
35426 eval "$as_ac_Header=\$ac_header_preproc"
35428 ac_res=`eval echo '${'$as_ac_Header'}'`
35429 { echo "$as_me:$LINENO: result: $ac_res" >&5
35430 echo "${ECHO_T}$ac_res" >&6; }
35433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35434 cat >>confdefs.h <<_ACEOF
35435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35443 for ac_header in openssl/crypto.h
35445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35450 echo $ECHO_N "(cached) $ECHO_C" >&6
35452 ac_res=`eval echo '${'$as_ac_Header'}'`
35453 { echo "$as_me:$LINENO: result: $ac_res" >&5
35454 echo "${ECHO_T}$ac_res" >&6; }
35456 # Is the header compilable?
35457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35459 cat >conftest.$ac_ext <<_ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h. */
35465 $ac_includes_default
35466 #include <$ac_header>
35468 rm -f conftest.$ac_objext
35469 if { (ac_try="$ac_compile"
35470 case "(($ac_try" in
35471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35472 *) ac_try_echo=$ac_try;;
35474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35475 (eval "$ac_compile") 2>conftest.er1
35477 grep -v '^ *+' conftest.er1 >conftest.err
35479 cat conftest.err >&5
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); } && {
35482 test -z "$ac_c_werror_flag" ||
35483 test ! -s conftest.err
35484 } && test -s conftest.$ac_objext; then
35485 ac_header_compiler=yes
35487 echo "$as_me: failed program was:" >&5
35488 sed 's/^/| /' conftest.$ac_ext >&5
35490 ac_header_compiler=no
35493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35495 echo "${ECHO_T}$ac_header_compiler" >&6; }
35497 # Is the header present?
35498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35499 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
35508 if { (ac_try="$ac_cpp conftest.$ac_ext"
35509 case "(($ac_try" in
35510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511 *) ac_try_echo=$ac_try;;
35513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35516 grep -v '^ *+' conftest.er1 >conftest.err
35518 cat conftest.err >&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); } >/dev/null && {
35521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35522 test ! -s conftest.err
35524 ac_header_preproc=yes
35526 echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35529 ac_header_preproc=no
35532 rm -f conftest.err conftest.$ac_ext
35533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35534 echo "${ECHO_T}$ac_header_preproc" >&6; }
35536 # So? What about this header?
35537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35543 ac_header_preproc=yes
35546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35559 ## --------------------------------------------- ##
35560 ## Report this to <http://www.openldap.org/its/> ##
35561 ## --------------------------------------------- ##
35563 ) | sed "s/^/$as_me: WARNING: /" >&2
35566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35569 echo $ECHO_N "(cached) $ECHO_C" >&6
35571 eval "$as_ac_Header=\$ac_header_preproc"
35573 ac_res=`eval echo '${'$as_ac_Header'}'`
35574 { echo "$as_me:$LINENO: result: $ac_res" >&5
35575 echo "${ECHO_T}$ac_res" >&6; }
35578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35579 cat >>confdefs.h <<_ACEOF
35580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35587 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35588 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35589 test "$ol_with_tls" = "found" ; then
35592 cat >>confdefs.h <<\_ACEOF
35593 #define USE_MP_BIGNUM 1
35596 elif test $ol_with_mp = bignum ; then
35597 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35598 echo "$as_me: error: bignum not available" >&2;}
35599 { (exit 1); exit 1; }; }
35602 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35604 for ac_header in gmp.h
35606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35611 echo $ECHO_N "(cached) $ECHO_C" >&6
35613 ac_res=`eval echo '${'$as_ac_Header'}'`
35614 { echo "$as_me:$LINENO: result: $ac_res" >&5
35615 echo "${ECHO_T}$ac_res" >&6; }
35617 # Is the header compilable?
35618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35620 cat >conftest.$ac_ext <<_ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35626 $ac_includes_default
35627 #include <$ac_header>
35629 rm -f conftest.$ac_objext
35630 if { (ac_try="$ac_compile"
35631 case "(($ac_try" in
35632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633 *) ac_try_echo=$ac_try;;
35635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636 (eval "$ac_compile") 2>conftest.er1
35638 grep -v '^ *+' conftest.er1 >conftest.err
35640 cat conftest.err >&5
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); } && {
35643 test -z "$ac_c_werror_flag" ||
35644 test ! -s conftest.err
35645 } && test -s conftest.$ac_objext; then
35646 ac_header_compiler=yes
35648 echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35651 ac_header_compiler=no
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35656 echo "${ECHO_T}$ac_header_compiler" >&6; }
35658 # Is the header present?
35659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35661 cat >conftest.$ac_ext <<_ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35667 #include <$ac_header>
35669 if { (ac_try="$ac_cpp conftest.$ac_ext"
35670 case "(($ac_try" in
35671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35672 *) ac_try_echo=$ac_try;;
35674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35677 grep -v '^ *+' conftest.er1 >conftest.err
35679 cat conftest.err >&5
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); } >/dev/null && {
35682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35683 test ! -s conftest.err
35685 ac_header_preproc=yes
35687 echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35690 ac_header_preproc=no
35693 rm -f conftest.err conftest.$ac_ext
35694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35695 echo "${ECHO_T}$ac_header_preproc" >&6; }
35697 # So? What about this header?
35698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35704 ac_header_preproc=yes
35707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35720 ## --------------------------------------------- ##
35721 ## Report this to <http://www.openldap.org/its/> ##
35722 ## --------------------------------------------- ##
35724 ) | sed "s/^/$as_me: WARNING: /" >&2
35727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35730 echo $ECHO_N "(cached) $ECHO_C" >&6
35732 eval "$as_ac_Header=\$ac_header_preproc"
35734 ac_res=`eval echo '${'$as_ac_Header'}'`
35735 { echo "$as_me:$LINENO: result: $ac_res" >&5
35736 echo "${ECHO_T}$ac_res" >&6; }
35739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35740 cat >>confdefs.h <<_ACEOF
35741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35749 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35750 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35751 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35752 echo $ECHO_N "(cached) $ECHO_C" >&6
35754 ac_check_lib_save_LIBS=$LIBS
35756 cat >conftest.$ac_ext <<_ACEOF
35759 cat confdefs.h >>conftest.$ac_ext
35760 cat >>conftest.$ac_ext <<_ACEOF
35761 /* end confdefs.h. */
35763 /* Override any GCC internal prototype to avoid an error.
35764 Use char because int might match the return type of a GCC
35765 builtin and then its argument prototype would still apply. */
35769 char __gmpz_add_ui ();
35773 return __gmpz_add_ui ();
35778 rm -f conftest.$ac_objext conftest$ac_exeext
35779 if { (ac_try="$ac_link"
35780 case "(($ac_try" in
35781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35782 *) ac_try_echo=$ac_try;;
35784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35785 (eval "$ac_link") 2>conftest.er1
35787 grep -v '^ *+' conftest.er1 >conftest.err
35789 cat conftest.err >&5
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); } && {
35792 test -z "$ac_c_werror_flag" ||
35793 test ! -s conftest.err
35794 } && test -s conftest$ac_exeext &&
35795 $as_test_x conftest$ac_exeext; then
35796 ac_cv_lib_gmp___gmpz_add_ui=yes
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35801 ac_cv_lib_gmp___gmpz_add_ui=no
35804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35805 conftest$ac_exeext conftest.$ac_ext
35806 LIBS=$ac_check_lib_save_LIBS
35808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35809 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35810 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35811 cat >>confdefs.h <<_ACEOF
35812 #define HAVE_LIBGMP 1
35819 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35821 cat >>confdefs.h <<\_ACEOF
35822 #define USE_MP_GMP 1
35826 elif test $ol_with_mp = gmp ; then
35827 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35828 echo "$as_me: error: gmp not available" >&2;}
35829 { (exit 1); exit 1; }; }
35832 if test $ol_with_mp = auto ; then
35836 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35837 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35838 if test "${ac_cv_func_memcmp_working+set}" = set; then
35839 echo $ECHO_N "(cached) $ECHO_C" >&6
35841 if test "$cross_compiling" = yes; then
35842 ac_cv_func_memcmp_working=no
35844 cat >conftest.$ac_ext <<_ACEOF
35847 cat confdefs.h >>conftest.$ac_ext
35848 cat >>conftest.$ac_ext <<_ACEOF
35849 /* end confdefs.h. */
35850 $ac_includes_default
35855 /* Some versions of memcmp are not 8-bit clean. */
35856 char c0 = '\100', c1 = '\200', c2 = '\201';
35857 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35860 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35861 or more and with at least one buffer not starting on a 4-byte boundary.
35862 William Lewis provided this test program. */
35867 for (i = 0; i < 4; i++)
35871 strcpy (a, "--------01111111");
35872 strcpy (b, "--------10000000");
35873 if (memcmp (a, b, 16) >= 0)
35883 rm -f conftest$ac_exeext
35884 if { (ac_try="$ac_link"
35885 case "(($ac_try" in
35886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35887 *) ac_try_echo=$ac_try;;
35889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35890 (eval "$ac_link") 2>&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35894 { (case "(($ac_try" in
35895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896 *) ac_try_echo=$ac_try;;
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899 (eval "$ac_try") 2>&5
35901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); }; }; then
35903 ac_cv_func_memcmp_working=yes
35905 echo "$as_me: program exited with status $ac_status" >&5
35906 echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35909 ( exit $ac_status )
35910 ac_cv_func_memcmp_working=no
35912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35917 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35918 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35919 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35920 *" memcmp.$ac_objext "* ) ;;
35921 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35927 if test $ac_cv_func_memcmp_working = no ; then
35929 cat >>confdefs.h <<\_ACEOF
35930 #define NEED_MEMCMP_REPLACEMENT 1
35936 for ac_func in strftime
35938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35942 echo $ECHO_N "(cached) $ECHO_C" >&6
35944 cat >conftest.$ac_ext <<_ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h. */
35950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35952 #define $ac_func innocuous_$ac_func
35954 /* System header to define __stub macros and hopefully few prototypes,
35955 which can conflict with char $ac_func (); below.
35956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35957 <limits.h> exists even on freestanding compilers. */
35960 # include <limits.h>
35962 # include <assert.h>
35967 /* Override any GCC internal prototype to avoid an error.
35968 Use char because int might match the return type of a GCC
35969 builtin and then its argument prototype would still apply. */
35974 /* The GNU C library defines this for functions which it implements
35975 to always fail with ENOSYS. Some functions are actually named
35976 something starting with __ and the normal name is an alias. */
35977 #if defined __stub_$ac_func || defined __stub___$ac_func
35984 return $ac_func ();
35989 rm -f conftest.$ac_objext conftest$ac_exeext
35990 if { (ac_try="$ac_link"
35991 case "(($ac_try" in
35992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35993 *) ac_try_echo=$ac_try;;
35995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35996 (eval "$ac_link") 2>conftest.er1
35998 grep -v '^ *+' conftest.er1 >conftest.err
36000 cat conftest.err >&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } && {
36003 test -z "$ac_c_werror_flag" ||
36004 test ! -s conftest.err
36005 } && test -s conftest$ac_exeext &&
36006 $as_test_x conftest$ac_exeext; then
36007 eval "$as_ac_var=yes"
36009 echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36012 eval "$as_ac_var=no"
36015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36016 conftest$ac_exeext conftest.$ac_ext
36018 ac_res=`eval echo '${'$as_ac_var'}'`
36019 { echo "$as_me:$LINENO: result: $ac_res" >&5
36020 echo "${ECHO_T}$ac_res" >&6; }
36021 if test `eval echo '${'$as_ac_var'}'` = yes; then
36022 cat >>confdefs.h <<_ACEOF
36023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36027 # strftime is in -lintl on SCO UNIX.
36028 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36029 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36030 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36031 echo $ECHO_N "(cached) $ECHO_C" >&6
36033 ac_check_lib_save_LIBS=$LIBS
36034 LIBS="-lintl $LIBS"
36035 cat >conftest.$ac_ext <<_ACEOF
36038 cat confdefs.h >>conftest.$ac_ext
36039 cat >>conftest.$ac_ext <<_ACEOF
36040 /* end confdefs.h. */
36042 /* Override any GCC internal prototype to avoid an error.
36043 Use char because int might match the return type of a GCC
36044 builtin and then its argument prototype would still apply. */
36052 return strftime ();
36057 rm -f conftest.$ac_objext conftest$ac_exeext
36058 if { (ac_try="$ac_link"
36059 case "(($ac_try" in
36060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061 *) ac_try_echo=$ac_try;;
36063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36064 (eval "$ac_link") 2>conftest.er1
36066 grep -v '^ *+' conftest.er1 >conftest.err
36068 cat conftest.err >&5
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); } && {
36071 test -z "$ac_c_werror_flag" ||
36072 test ! -s conftest.err
36073 } && test -s conftest$ac_exeext &&
36074 $as_test_x conftest$ac_exeext; then
36075 ac_cv_lib_intl_strftime=yes
36077 echo "$as_me: failed program was:" >&5
36078 sed 's/^/| /' conftest.$ac_ext >&5
36080 ac_cv_lib_intl_strftime=no
36083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36084 conftest$ac_exeext conftest.$ac_ext
36085 LIBS=$ac_check_lib_save_LIBS
36087 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36088 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36089 if test $ac_cv_lib_intl_strftime = yes; then
36090 cat >>confdefs.h <<\_ACEOF
36091 #define HAVE_STRFTIME 1
36094 LIBS="-lintl $LIBS"
36101 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36102 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36103 if test "${ol_cv_func_inet_aton+set}" = set; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36106 cat >conftest.$ac_ext <<_ACEOF
36109 cat confdefs.h >>conftest.$ac_ext
36110 cat >>conftest.$ac_ext <<_ACEOF
36111 /* end confdefs.h. */
36113 #ifdef HAVE_SYS_TYPES_H
36114 # include <sys/types.h>
36116 #ifdef HAVE_SYS_SOCKET_H
36117 # include <sys/socket.h>
36118 # ifdef HAVE_SYS_SELECT_H
36119 # include <sys/select.h>
36121 # include <netinet/in.h>
36122 # ifdef HAVE_ARPA_INET_H
36123 # include <arpa/inet.h>
36131 int rc = inet_aton( "255.255.255.255", &in );
36136 rm -f conftest.$ac_objext conftest$ac_exeext
36137 if { (ac_try="$ac_link"
36138 case "(($ac_try" in
36139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36140 *) ac_try_echo=$ac_try;;
36142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36143 (eval "$ac_link") 2>conftest.er1
36145 grep -v '^ *+' conftest.er1 >conftest.err
36147 cat conftest.err >&5
36148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149 (exit $ac_status); } && {
36150 test -z "$ac_c_werror_flag" ||
36151 test ! -s conftest.err
36152 } && test -s conftest$ac_exeext &&
36153 $as_test_x conftest$ac_exeext; then
36154 ol_cv_func_inet_aton=yes
36156 echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36159 ol_cv_func_inet_aton=no
36162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36163 conftest$ac_exeext conftest.$ac_ext
36165 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36166 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36167 if test $ol_cv_func_inet_aton != no; then
36169 cat >>confdefs.h <<\_ACEOF
36170 #define HAVE_INET_ATON 1
36176 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36177 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36178 if test "${ac_cv_func__spawnlp+set}" = set; then
36179 echo $ECHO_N "(cached) $ECHO_C" >&6
36181 cat >conftest.$ac_ext <<_ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h. */
36187 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36189 #define _spawnlp innocuous__spawnlp
36191 /* System header to define __stub macros and hopefully few prototypes,
36192 which can conflict with char _spawnlp (); below.
36193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36194 <limits.h> exists even on freestanding compilers. */
36197 # include <limits.h>
36199 # include <assert.h>
36204 /* Override any GCC internal prototype to avoid an error.
36205 Use char because int might match the return type of a GCC
36206 builtin and then its argument prototype would still apply. */
36211 /* The GNU C library defines this for functions which it implements
36212 to always fail with ENOSYS. Some functions are actually named
36213 something starting with __ and the normal name is an alias. */
36214 #if defined __stub__spawnlp || defined __stub____spawnlp
36221 return _spawnlp ();
36226 rm -f conftest.$ac_objext conftest$ac_exeext
36227 if { (ac_try="$ac_link"
36228 case "(($ac_try" in
36229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36230 *) ac_try_echo=$ac_try;;
36232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36233 (eval "$ac_link") 2>conftest.er1
36235 grep -v '^ *+' conftest.er1 >conftest.err
36237 cat conftest.err >&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } && {
36240 test -z "$ac_c_werror_flag" ||
36241 test ! -s conftest.err
36242 } && test -s conftest$ac_exeext &&
36243 $as_test_x conftest$ac_exeext; then
36244 ac_cv_func__spawnlp=yes
36246 echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36249 ac_cv_func__spawnlp=no
36252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36253 conftest$ac_exeext conftest.$ac_ext
36255 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36256 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36257 if test $ac_cv_func__spawnlp = yes; then
36259 cat >>confdefs.h <<\_ACEOF
36260 #define HAVE_SPAWNLP 1
36266 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36267 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36268 if test "${ac_cv_func__snprintf+set}" = set; then
36269 echo $ECHO_N "(cached) $ECHO_C" >&6
36271 cat >conftest.$ac_ext <<_ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h. */
36277 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36279 #define _snprintf innocuous__snprintf
36281 /* System header to define __stub macros and hopefully few prototypes,
36282 which can conflict with char _snprintf (); below.
36283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36284 <limits.h> exists even on freestanding compilers. */
36287 # include <limits.h>
36289 # include <assert.h>
36294 /* Override any GCC internal prototype to avoid an error.
36295 Use char because int might match the return type of a GCC
36296 builtin and then its argument prototype would still apply. */
36301 /* The GNU C library defines this for functions which it implements
36302 to always fail with ENOSYS. Some functions are actually named
36303 something starting with __ and the normal name is an alias. */
36304 #if defined __stub__snprintf || defined __stub____snprintf
36311 return _snprintf ();
36316 rm -f conftest.$ac_objext conftest$ac_exeext
36317 if { (ac_try="$ac_link"
36318 case "(($ac_try" in
36319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36320 *) ac_try_echo=$ac_try;;
36322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36323 (eval "$ac_link") 2>conftest.er1
36325 grep -v '^ *+' conftest.er1 >conftest.err
36327 cat conftest.err >&5
36328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); } && {
36330 test -z "$ac_c_werror_flag" ||
36331 test ! -s conftest.err
36332 } && test -s conftest$ac_exeext &&
36333 $as_test_x conftest$ac_exeext; then
36334 ac_cv_func__snprintf=yes
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 ac_cv_func__snprintf=no
36342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36343 conftest$ac_exeext conftest.$ac_ext
36345 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36346 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36347 if test $ac_cv_func__snprintf = yes; then
36348 ac_cv_func_snprintf=yes
36350 cat >>confdefs.h <<\_ACEOF
36351 #define snprintf _snprintf
36360 for ac_func in vsnprintf _vsnprintf
36362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36366 echo $ECHO_N "(cached) $ECHO_C" >&6
36368 cat >conftest.$ac_ext <<_ACEOF
36371 cat confdefs.h >>conftest.$ac_ext
36372 cat >>conftest.$ac_ext <<_ACEOF
36373 /* end confdefs.h. */
36374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36376 #define $ac_func innocuous_$ac_func
36378 /* System header to define __stub macros and hopefully few prototypes,
36379 which can conflict with char $ac_func (); below.
36380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36381 <limits.h> exists even on freestanding compilers. */
36384 # include <limits.h>
36386 # include <assert.h>
36391 /* Override any GCC internal prototype to avoid an error.
36392 Use char because int might match the return type of a GCC
36393 builtin and then its argument prototype would still apply. */
36398 /* The GNU C library defines this for functions which it implements
36399 to always fail with ENOSYS. Some functions are actually named
36400 something starting with __ and the normal name is an alias. */
36401 #if defined __stub_$ac_func || defined __stub___$ac_func
36408 return $ac_func ();
36413 rm -f conftest.$ac_objext conftest$ac_exeext
36414 if { (ac_try="$ac_link"
36415 case "(($ac_try" in
36416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417 *) ac_try_echo=$ac_try;;
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420 (eval "$ac_link") 2>conftest.er1
36422 grep -v '^ *+' conftest.er1 >conftest.err
36424 cat conftest.err >&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } && {
36427 test -z "$ac_c_werror_flag" ||
36428 test ! -s conftest.err
36429 } && test -s conftest$ac_exeext &&
36430 $as_test_x conftest$ac_exeext; then
36431 eval "$as_ac_var=yes"
36433 echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36436 eval "$as_ac_var=no"
36439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36440 conftest$ac_exeext conftest.$ac_ext
36442 ac_res=`eval echo '${'$as_ac_var'}'`
36443 { echo "$as_me:$LINENO: result: $ac_res" >&5
36444 echo "${ECHO_T}$ac_res" >&6; }
36445 if test `eval echo '${'$as_ac_var'}'` = yes; then
36446 cat >>confdefs.h <<_ACEOF
36447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36454 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36455 ac_cv_func_vsnprintf=yes
36457 cat >>confdefs.h <<\_ACEOF
36458 #define vsnprintf _vsnprintf
36464 for ac_func in vprintf
36466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36470 echo $ECHO_N "(cached) $ECHO_C" >&6
36472 cat >conftest.$ac_ext <<_ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h. */
36478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36480 #define $ac_func innocuous_$ac_func
36482 /* System header to define __stub macros and hopefully few prototypes,
36483 which can conflict with char $ac_func (); below.
36484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36485 <limits.h> exists even on freestanding compilers. */
36488 # include <limits.h>
36490 # include <assert.h>
36495 /* Override any GCC internal prototype to avoid an error.
36496 Use char because int might match the return type of a GCC
36497 builtin and then its argument prototype would still apply. */
36502 /* The GNU C library defines this for functions which it implements
36503 to always fail with ENOSYS. Some functions are actually named
36504 something starting with __ and the normal name is an alias. */
36505 #if defined __stub_$ac_func || defined __stub___$ac_func
36512 return $ac_func ();
36517 rm -f conftest.$ac_objext conftest$ac_exeext
36518 if { (ac_try="$ac_link"
36519 case "(($ac_try" in
36520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521 *) ac_try_echo=$ac_try;;
36523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524 (eval "$ac_link") 2>conftest.er1
36526 grep -v '^ *+' conftest.er1 >conftest.err
36528 cat conftest.err >&5
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); } && {
36531 test -z "$ac_c_werror_flag" ||
36532 test ! -s conftest.err
36533 } && test -s conftest$ac_exeext &&
36534 $as_test_x conftest$ac_exeext; then
36535 eval "$as_ac_var=yes"
36537 echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36540 eval "$as_ac_var=no"
36543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36544 conftest$ac_exeext conftest.$ac_ext
36546 ac_res=`eval echo '${'$as_ac_var'}'`
36547 { echo "$as_me:$LINENO: result: $ac_res" >&5
36548 echo "${ECHO_T}$ac_res" >&6; }
36549 if test `eval echo '${'$as_ac_var'}'` = yes; then
36550 cat >>confdefs.h <<_ACEOF
36551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36554 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36555 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36556 if test "${ac_cv_func__doprnt+set}" = set; then
36557 echo $ECHO_N "(cached) $ECHO_C" >&6
36559 cat >conftest.$ac_ext <<_ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h. */
36565 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36567 #define _doprnt innocuous__doprnt
36569 /* System header to define __stub macros and hopefully few prototypes,
36570 which can conflict with char _doprnt (); below.
36571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36572 <limits.h> exists even on freestanding compilers. */
36575 # include <limits.h>
36577 # include <assert.h>
36582 /* Override any GCC internal prototype to avoid an error.
36583 Use char because int might match the return type of a GCC
36584 builtin and then its argument prototype would still apply. */
36589 /* The GNU C library defines this for functions which it implements
36590 to always fail with ENOSYS. Some functions are actually named
36591 something starting with __ and the normal name is an alias. */
36592 #if defined __stub__doprnt || defined __stub____doprnt
36604 rm -f conftest.$ac_objext conftest$ac_exeext
36605 if { (ac_try="$ac_link"
36606 case "(($ac_try" in
36607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608 *) ac_try_echo=$ac_try;;
36610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36611 (eval "$ac_link") 2>conftest.er1
36613 grep -v '^ *+' conftest.er1 >conftest.err
36615 cat conftest.err >&5
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } && {
36618 test -z "$ac_c_werror_flag" ||
36619 test ! -s conftest.err
36620 } && test -s conftest$ac_exeext &&
36621 $as_test_x conftest$ac_exeext; then
36622 ac_cv_func__doprnt=yes
36624 echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36627 ac_cv_func__doprnt=no
36630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36631 conftest$ac_exeext conftest.$ac_ext
36633 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36634 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36635 if test $ac_cv_func__doprnt = yes; then
36637 cat >>confdefs.h <<\_ACEOF
36638 #define HAVE_DOPRNT 1
36648 if test $ac_cv_func_vprintf = yes ; then
36651 for ac_func in snprintf vsnprintf
36653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36657 echo $ECHO_N "(cached) $ECHO_C" >&6
36659 cat >conftest.$ac_ext <<_ACEOF
36662 cat confdefs.h >>conftest.$ac_ext
36663 cat >>conftest.$ac_ext <<_ACEOF
36664 /* end confdefs.h. */
36665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36667 #define $ac_func innocuous_$ac_func
36669 /* System header to define __stub macros and hopefully few prototypes,
36670 which can conflict with char $ac_func (); below.
36671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36672 <limits.h> exists even on freestanding compilers. */
36675 # include <limits.h>
36677 # include <assert.h>
36682 /* Override any GCC internal prototype to avoid an error.
36683 Use char because int might match the return type of a GCC
36684 builtin and then its argument prototype would still apply. */
36689 /* The GNU C library defines this for functions which it implements
36690 to always fail with ENOSYS. Some functions are actually named
36691 something starting with __ and the normal name is an alias. */
36692 #if defined __stub_$ac_func || defined __stub___$ac_func
36699 return $ac_func ();
36704 rm -f conftest.$ac_objext conftest$ac_exeext
36705 if { (ac_try="$ac_link"
36706 case "(($ac_try" in
36707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36708 *) ac_try_echo=$ac_try;;
36710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36711 (eval "$ac_link") 2>conftest.er1
36713 grep -v '^ *+' conftest.er1 >conftest.err
36715 cat conftest.err >&5
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); } && {
36718 test -z "$ac_c_werror_flag" ||
36719 test ! -s conftest.err
36720 } && test -s conftest$ac_exeext &&
36721 $as_test_x conftest$ac_exeext; then
36722 eval "$as_ac_var=yes"
36724 echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36727 eval "$as_ac_var=no"
36730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36731 conftest$ac_exeext conftest.$ac_ext
36733 ac_res=`eval echo '${'$as_ac_var'}'`
36734 { echo "$as_me:$LINENO: result: $ac_res" >&5
36735 echo "${ECHO_T}$ac_res" >&6; }
36736 if test `eval echo '${'$as_ac_var'}'` = yes; then
36737 cat >>confdefs.h <<_ACEOF
36738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36863 echo $ECHO_N "(cached) $ECHO_C" >&6
36865 cat >conftest.$ac_ext <<_ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h. */
36871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36873 #define $ac_func innocuous_$ac_func
36875 /* System header to define __stub macros and hopefully few prototypes,
36876 which can conflict with char $ac_func (); below.
36877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36878 <limits.h> exists even on freestanding compilers. */
36881 # include <limits.h>
36883 # include <assert.h>
36888 /* Override any GCC internal prototype to avoid an error.
36889 Use char because int might match the return type of a GCC
36890 builtin and then its argument prototype would still apply. */
36895 /* The GNU C library defines this for functions which it implements
36896 to always fail with ENOSYS. Some functions are actually named
36897 something starting with __ and the normal name is an alias. */
36898 #if defined __stub_$ac_func || defined __stub___$ac_func
36905 return $ac_func ();
36910 rm -f conftest.$ac_objext conftest$ac_exeext
36911 if { (ac_try="$ac_link"
36912 case "(($ac_try" in
36913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914 *) ac_try_echo=$ac_try;;
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917 (eval "$ac_link") 2>conftest.er1
36919 grep -v '^ *+' conftest.er1 >conftest.err
36921 cat conftest.err >&5
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); } && {
36924 test -z "$ac_c_werror_flag" ||
36925 test ! -s conftest.err
36926 } && test -s conftest$ac_exeext &&
36927 $as_test_x conftest$ac_exeext; then
36928 eval "$as_ac_var=yes"
36930 echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36933 eval "$as_ac_var=no"
36936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36937 conftest$ac_exeext conftest.$ac_ext
36939 ac_res=`eval echo '${'$as_ac_var'}'`
36940 { echo "$as_me:$LINENO: result: $ac_res" >&5
36941 echo "${ECHO_T}$ac_res" >&6; }
36942 if test `eval echo '${'$as_ac_var'}'` = yes; then
36943 cat >>confdefs.h <<_ACEOF
36944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36953 for ac_func in getopt getpeereid
36955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36959 echo $ECHO_N "(cached) $ECHO_C" >&6
36961 cat >conftest.$ac_ext <<_ACEOF
36964 cat confdefs.h >>conftest.$ac_ext
36965 cat >>conftest.$ac_ext <<_ACEOF
36966 /* end confdefs.h. */
36967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36969 #define $ac_func innocuous_$ac_func
36971 /* System header to define __stub macros and hopefully few prototypes,
36972 which can conflict with char $ac_func (); below.
36973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36974 <limits.h> exists even on freestanding compilers. */
36977 # include <limits.h>
36979 # include <assert.h>
36984 /* Override any GCC internal prototype to avoid an error.
36985 Use char because int might match the return type of a GCC
36986 builtin and then its argument prototype would still apply. */
36991 /* The GNU C library defines this for functions which it implements
36992 to always fail with ENOSYS. Some functions are actually named
36993 something starting with __ and the normal name is an alias. */
36994 #if defined __stub_$ac_func || defined __stub___$ac_func
37001 return $ac_func ();
37006 rm -f conftest.$ac_objext conftest$ac_exeext
37007 if { (ac_try="$ac_link"
37008 case "(($ac_try" in
37009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37010 *) ac_try_echo=$ac_try;;
37012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37013 (eval "$ac_link") 2>conftest.er1
37015 grep -v '^ *+' conftest.er1 >conftest.err
37017 cat conftest.err >&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); } && {
37020 test -z "$ac_c_werror_flag" ||
37021 test ! -s conftest.err
37022 } && test -s conftest$ac_exeext &&
37023 $as_test_x conftest$ac_exeext; then
37024 eval "$as_ac_var=yes"
37026 echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37029 eval "$as_ac_var=no"
37032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37033 conftest$ac_exeext conftest.$ac_ext
37035 ac_res=`eval echo '${'$as_ac_var'}'`
37036 { echo "$as_me:$LINENO: result: $ac_res" >&5
37037 echo "${ECHO_T}$ac_res" >&6; }
37038 if test `eval echo '${'$as_ac_var'}'` = yes; then
37039 cat >>confdefs.h <<_ACEOF
37040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37044 case " $LIBOBJS " in
37045 *" $ac_func.$ac_objext "* ) ;;
37046 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37055 if test "$ac_cv_func_getopt" != yes; then
37056 LIBSRCS="$LIBSRCS getopt.c"
37059 if test "$ac_cv_func_getpeereid" != yes; then
37061 for ac_func in getpeerucred
37063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37067 echo $ECHO_N "(cached) $ECHO_C" >&6
37069 cat >conftest.$ac_ext <<_ACEOF
37072 cat confdefs.h >>conftest.$ac_ext
37073 cat >>conftest.$ac_ext <<_ACEOF
37074 /* end confdefs.h. */
37075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37077 #define $ac_func innocuous_$ac_func
37079 /* System header to define __stub macros and hopefully few prototypes,
37080 which can conflict with char $ac_func (); below.
37081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37082 <limits.h> exists even on freestanding compilers. */
37085 # include <limits.h>
37087 # include <assert.h>
37092 /* Override any GCC internal prototype to avoid an error.
37093 Use char because int might match the return type of a GCC
37094 builtin and then its argument prototype would still apply. */
37099 /* The GNU C library defines this for functions which it implements
37100 to always fail with ENOSYS. Some functions are actually named
37101 something starting with __ and the normal name is an alias. */
37102 #if defined __stub_$ac_func || defined __stub___$ac_func
37109 return $ac_func ();
37114 rm -f conftest.$ac_objext conftest$ac_exeext
37115 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
37123 grep -v '^ *+' conftest.er1 >conftest.err
37125 cat conftest.err >&5
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); } && {
37128 test -z "$ac_c_werror_flag" ||
37129 test ! -s conftest.err
37130 } && test -s conftest$ac_exeext &&
37131 $as_test_x conftest$ac_exeext; then
37132 eval "$as_ac_var=yes"
37134 echo "$as_me: failed program was:" >&5
37135 sed 's/^/| /' conftest.$ac_ext >&5
37137 eval "$as_ac_var=no"
37140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37141 conftest$ac_exeext conftest.$ac_ext
37143 ac_res=`eval echo '${'$as_ac_var'}'`
37144 { echo "$as_me:$LINENO: result: $ac_res" >&5
37145 echo "${ECHO_T}$ac_res" >&6; }
37146 if test `eval echo '${'$as_ac_var'}'` = yes; then
37147 cat >>confdefs.h <<_ACEOF
37148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37154 if test "$ac_cv_func_getpeerucred" != yes ; then
37155 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37156 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37157 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37158 echo $ECHO_N "(cached) $ECHO_C" >&6
37160 cat >conftest.$ac_ext <<_ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h. */
37166 $ac_includes_default
37167 #ifdef HAVE_SYS_SOCKET_H
37168 #include <sys/socket.h>
37174 static struct msghdr ac_aggr;
37175 if (ac_aggr.msg_accrightslen)
37181 rm -f conftest.$ac_objext
37182 if { (ac_try="$ac_compile"
37183 case "(($ac_try" in
37184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37185 *) ac_try_echo=$ac_try;;
37187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37188 (eval "$ac_compile") 2>conftest.er1
37190 grep -v '^ *+' conftest.er1 >conftest.err
37192 cat conftest.err >&5
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); } && {
37195 test -z "$ac_c_werror_flag" ||
37196 test ! -s conftest.err
37197 } && test -s conftest.$ac_objext; then
37198 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37200 echo "$as_me: failed program was:" >&5
37201 sed 's/^/| /' conftest.$ac_ext >&5
37203 cat >conftest.$ac_ext <<_ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h. */
37209 $ac_includes_default
37210 #ifdef HAVE_SYS_SOCKET_H
37211 #include <sys/socket.h>
37217 static struct msghdr ac_aggr;
37218 if (sizeof ac_aggr.msg_accrightslen)
37224 rm -f conftest.$ac_objext
37225 if { (ac_try="$ac_compile"
37226 case "(($ac_try" in
37227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37228 *) ac_try_echo=$ac_try;;
37230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37231 (eval "$ac_compile") 2>conftest.er1
37233 grep -v '^ *+' conftest.er1 >conftest.err
37235 cat conftest.err >&5
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); } && {
37238 test -z "$ac_c_werror_flag" ||
37239 test ! -s conftest.err
37240 } && test -s conftest.$ac_objext; then
37241 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37243 echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37246 ac_cv_member_struct_msghdr_msg_accrightslen=no
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37254 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37255 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37256 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37258 cat >>confdefs.h <<_ACEOF
37259 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37265 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37266 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37267 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37268 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37269 echo $ECHO_N "(cached) $ECHO_C" >&6
37271 cat >conftest.$ac_ext <<_ACEOF
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h. */
37277 $ac_includes_default
37278 #ifdef HAVE_SYS_SOCKET_H
37279 #include <sys/socket.h>
37285 static struct msghdr ac_aggr;
37286 if (ac_aggr.msg_control)
37292 rm -f conftest.$ac_objext
37293 if { (ac_try="$ac_compile"
37294 case "(($ac_try" in
37295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37296 *) ac_try_echo=$ac_try;;
37298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37299 (eval "$ac_compile") 2>conftest.er1
37301 grep -v '^ *+' conftest.er1 >conftest.err
37303 cat conftest.err >&5
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); } && {
37306 test -z "$ac_c_werror_flag" ||
37307 test ! -s conftest.err
37308 } && test -s conftest.$ac_objext; then
37309 ac_cv_member_struct_msghdr_msg_control=yes
37311 echo "$as_me: failed program was:" >&5
37312 sed 's/^/| /' conftest.$ac_ext >&5
37314 cat >conftest.$ac_ext <<_ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h. */
37320 $ac_includes_default
37321 #ifdef HAVE_SYS_SOCKET_H
37322 #include <sys/socket.h>
37328 static struct msghdr ac_aggr;
37329 if (sizeof ac_aggr.msg_control)
37335 rm -f conftest.$ac_objext
37336 if { (ac_try="$ac_compile"
37337 case "(($ac_try" in
37338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37339 *) ac_try_echo=$ac_try;;
37341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37342 (eval "$ac_compile") 2>conftest.er1
37344 grep -v '^ *+' conftest.er1 >conftest.err
37346 cat conftest.err >&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } && {
37349 test -z "$ac_c_werror_flag" ||
37350 test ! -s conftest.err
37351 } && test -s conftest.$ac_objext; then
37352 ac_cv_member_struct_msghdr_msg_control=yes
37354 echo "$as_me: failed program was:" >&5
37355 sed 's/^/| /' conftest.$ac_ext >&5
37357 ac_cv_member_struct_msghdr_msg_control=no
37360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37365 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37366 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37367 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37369 cat >>confdefs.h <<_ACEOF
37370 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37377 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37378 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37379 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37388 $ac_includes_default
37392 static struct stat ac_aggr;
37393 if (ac_aggr.st_fstype)
37399 rm -f conftest.$ac_objext
37400 if { (ac_try="$ac_compile"
37401 case "(($ac_try" in
37402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37403 *) ac_try_echo=$ac_try;;
37405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37406 (eval "$ac_compile") 2>conftest.er1
37408 grep -v '^ *+' conftest.er1 >conftest.err
37410 cat conftest.err >&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } && {
37413 test -z "$ac_c_werror_flag" ||
37414 test ! -s conftest.err
37415 } && test -s conftest.$ac_objext; then
37416 ac_cv_member_struct_stat_st_fstype=yes
37418 echo "$as_me: failed program was:" >&5
37419 sed 's/^/| /' conftest.$ac_ext >&5
37421 cat >conftest.$ac_ext <<_ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h. */
37427 $ac_includes_default
37431 static struct stat ac_aggr;
37432 if (sizeof ac_aggr.st_fstype)
37438 rm -f conftest.$ac_objext
37439 if { (ac_try="$ac_compile"
37440 case "(($ac_try" in
37441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37442 *) ac_try_echo=$ac_try;;
37444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37445 (eval "$ac_compile") 2>conftest.er1
37447 grep -v '^ *+' conftest.er1 >conftest.err
37449 cat conftest.err >&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); } && {
37452 test -z "$ac_c_werror_flag" ||
37453 test ! -s conftest.err
37454 } && test -s conftest.$ac_objext; then
37455 ac_cv_member_struct_stat_st_fstype=yes
37457 echo "$as_me: failed program was:" >&5
37458 sed 's/^/| /' conftest.$ac_ext >&5
37460 ac_cv_member_struct_stat_st_fstype=no
37463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37469 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37470 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37472 cat >>confdefs.h <<_ACEOF
37473 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37478 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37479 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37480 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37481 echo $ECHO_N "(cached) $ECHO_C" >&6
37483 cat >conftest.$ac_ext <<_ACEOF
37486 cat confdefs.h >>conftest.$ac_ext
37487 cat >>conftest.$ac_ext <<_ACEOF
37488 /* end confdefs.h. */
37489 $ac_includes_default
37493 static struct stat ac_aggr;
37494 if (ac_aggr.st_vfstype)
37500 rm -f conftest.$ac_objext
37501 if { (ac_try="$ac_compile"
37502 case "(($ac_try" in
37503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37504 *) ac_try_echo=$ac_try;;
37506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37507 (eval "$ac_compile") 2>conftest.er1
37509 grep -v '^ *+' conftest.er1 >conftest.err
37511 cat conftest.err >&5
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } && {
37514 test -z "$ac_c_werror_flag" ||
37515 test ! -s conftest.err
37516 } && test -s conftest.$ac_objext; then
37517 ac_cv_member_struct_stat_st_vfstype=yes
37519 echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37522 cat >conftest.$ac_ext <<_ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37528 $ac_includes_default
37532 static struct stat ac_aggr;
37533 if (sizeof ac_aggr.st_vfstype)
37539 rm -f conftest.$ac_objext
37540 if { (ac_try="$ac_compile"
37541 case "(($ac_try" in
37542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543 *) ac_try_echo=$ac_try;;
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546 (eval "$ac_compile") 2>conftest.er1
37548 grep -v '^ *+' conftest.er1 >conftest.err
37550 cat conftest.err >&5
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } && {
37553 test -z "$ac_c_werror_flag" ||
37554 test ! -s conftest.err
37555 } && test -s conftest.$ac_objext; then
37556 ac_cv_member_struct_stat_st_vfstype=yes
37558 echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37561 ac_cv_member_struct_stat_st_vfstype=no
37564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37569 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37571 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37573 cat >>confdefs.h <<_ACEOF
37574 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37580 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37581 cat >conftest.$ac_ext <<_ACEOF
37582 struct stat st; char *ptr=st.st_fstype;
37584 rm -f conftest.$ac_objext
37585 if { (ac_try="$ac_compile"
37586 case "(($ac_try" in
37587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37588 *) ac_try_echo=$ac_try;;
37590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37591 (eval "$ac_compile") 2>conftest.er1
37593 grep -v '^ *+' conftest.er1 >conftest.err
37595 cat conftest.err >&5
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); } && {
37598 test -z "$ac_c_werror_flag" ||
37599 test ! -s conftest.err
37600 } && test -s conftest.$ac_objext; then
37602 cat >>confdefs.h <<\_ACEOF
37603 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37607 echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37611 cat >>confdefs.h <<\_ACEOF
37612 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37620 LIBSRCS="$LIBSRCS getpeereid.c"
37623 if test "$ac_cv_func_snprintf" != yes ||
37624 test "$ac_cv_func_vsnprintf" != yes; then
37625 if test "$ac_cv_func_snprintf" != yes; then
37627 cat >>confdefs.h <<\_ACEOF
37628 #define snprintf ber_pvt_snprintf
37632 if test "$ac_cv_func_vsnprintf" != yes; then
37634 cat >>confdefs.h <<\_ACEOF
37635 #define vsnprintf ber_pvt_vsnprintf
37642 if test "$ol_enable_slapi" != no ; then
37644 for ac_header in ltdl.h
37646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37651 echo $ECHO_N "(cached) $ECHO_C" >&6
37653 ac_res=`eval echo '${'$as_ac_Header'}'`
37654 { echo "$as_me:$LINENO: result: $ac_res" >&5
37655 echo "${ECHO_T}$ac_res" >&6; }
37657 # Is the header compilable?
37658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37660 cat >conftest.$ac_ext <<_ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h. */
37666 $ac_includes_default
37667 #include <$ac_header>
37669 rm -f conftest.$ac_objext
37670 if { (ac_try="$ac_compile"
37671 case "(($ac_try" in
37672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37673 *) ac_try_echo=$ac_try;;
37675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37676 (eval "$ac_compile") 2>conftest.er1
37678 grep -v '^ *+' conftest.er1 >conftest.err
37680 cat conftest.err >&5
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); } && {
37683 test -z "$ac_c_werror_flag" ||
37684 test ! -s conftest.err
37685 } && test -s conftest.$ac_objext; then
37686 ac_header_compiler=yes
37688 echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37691 ac_header_compiler=no
37694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37696 echo "${ECHO_T}$ac_header_compiler" >&6; }
37698 # Is the header present?
37699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37701 cat >conftest.$ac_ext <<_ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h. */
37707 #include <$ac_header>
37709 if { (ac_try="$ac_cpp conftest.$ac_ext"
37710 case "(($ac_try" in
37711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37712 *) ac_try_echo=$ac_try;;
37714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37717 grep -v '^ *+' conftest.er1 >conftest.err
37719 cat conftest.err >&5
37720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721 (exit $ac_status); } >/dev/null && {
37722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37723 test ! -s conftest.err
37725 ac_header_preproc=yes
37727 echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37730 ac_header_preproc=no
37733 rm -f conftest.err conftest.$ac_ext
37734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37735 echo "${ECHO_T}$ac_header_preproc" >&6; }
37737 # So? What about this header?
37738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37744 ac_header_preproc=yes
37747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37760 ## --------------------------------------------- ##
37761 ## Report this to <http://www.openldap.org/its/> ##
37762 ## --------------------------------------------- ##
37764 ) | sed "s/^/$as_me: WARNING: /" >&2
37767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37770 echo $ECHO_N "(cached) $ECHO_C" >&6
37772 eval "$as_ac_Header=\$ac_header_preproc"
37774 ac_res=`eval echo '${'$as_ac_Header'}'`
37775 { echo "$as_me:$LINENO: result: $ac_res" >&5
37776 echo "${ECHO_T}$ac_res" >&6; }
37779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37780 cat >>confdefs.h <<_ACEOF
37781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37789 if test $ac_cv_header_ltdl_h != yes ; then
37790 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37791 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37792 { (exit 1); exit 1; }; }
37794 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37795 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37796 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37799 ac_check_lib_save_LIBS=$LIBS
37800 LIBS="-lltdl $LIBS"
37801 cat >conftest.$ac_ext <<_ACEOF
37804 cat confdefs.h >>conftest.$ac_ext
37805 cat >>conftest.$ac_ext <<_ACEOF
37806 /* end confdefs.h. */
37808 /* Override any GCC internal prototype to avoid an error.
37809 Use char because int might match the return type of a GCC
37810 builtin and then its argument prototype would still apply. */
37818 return lt_dlinit ();
37823 rm -f conftest.$ac_objext conftest$ac_exeext
37824 if { (ac_try="$ac_link"
37825 case "(($ac_try" in
37826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37827 *) ac_try_echo=$ac_try;;
37829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37830 (eval "$ac_link") 2>conftest.er1
37832 grep -v '^ *+' conftest.er1 >conftest.err
37834 cat conftest.err >&5
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); } && {
37837 test -z "$ac_c_werror_flag" ||
37838 test ! -s conftest.err
37839 } && test -s conftest$ac_exeext &&
37840 $as_test_x conftest$ac_exeext; then
37841 ac_cv_lib_ltdl_lt_dlinit=yes
37843 echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37846 ac_cv_lib_ltdl_lt_dlinit=no
37849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37850 conftest$ac_exeext conftest.$ac_ext
37851 LIBS=$ac_check_lib_save_LIBS
37853 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37854 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37855 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37858 LIBSLAPI=libslapi.a
37859 LIBSLAPITOOLS=../libslapi.a
37861 cat >>confdefs.h <<\_ACEOF
37862 #define HAVE_LIBLTDL 1
37867 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37868 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37869 { (exit 1); exit 1; }; }
37874 cat >>confdefs.h <<\_ACEOF
37875 #define LDAP_SLAPI 1
37880 if test "$ol_enable_debug" != no ; then
37881 if test "$ol_enable_debug" = traditional; then
37883 cat >>confdefs.h <<\_ACEOF
37884 #define OLD_DEBUG 1
37889 cat >>confdefs.h <<\_ACEOF
37890 #define LDAP_DEBUG 1
37894 if test "$ol_enable_syslog" = yes ; then
37896 cat >>confdefs.h <<\_ACEOF
37897 #define LDAP_SYSLOG 1
37901 if test "$ol_enable_proctitle" != no ; then
37903 cat >>confdefs.h <<\_ACEOF
37904 #define LDAP_PROCTITLE 1
37908 if test "$ol_enable_referrals" != no ; then
37910 cat >>confdefs.h <<\_ACEOF
37911 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37915 if test "$ol_enable_local" != no; then
37917 cat >>confdefs.h <<\_ACEOF
37918 #define LDAP_PF_LOCAL 1
37922 if test "$ol_link_ipv6" != no; then
37924 cat >>confdefs.h <<\_ACEOF
37925 #define LDAP_PF_INET6 1
37929 if test "$ol_enable_cleartext" != no ; then
37931 cat >>confdefs.h <<\_ACEOF
37932 #define SLAPD_CLEARTEXT 1
37936 if test "$ol_enable_crypt" != no ; then
37938 cat >>confdefs.h <<\_ACEOF
37939 #define SLAPD_CRYPT 1
37943 if test "$ol_link_spasswd" != no ; then
37945 cat >>confdefs.h <<\_ACEOF
37946 #define SLAPD_SPASSWD 1
37950 if test "$ol_enable_rlookups" != no ; then
37952 cat >>confdefs.h <<\_ACEOF
37953 #define SLAPD_RLOOKUPS 1
37957 if test "$ol_enable_aci" != no ; then
37958 if test $ol_enable_dynacl = no ; then
37959 ol_enable_dynacl=yes
37960 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37961 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37963 if test "$ol_enable_aci" = mod ; then
37964 MFLAG=SLAPD_MOD_DYNAMIC
37965 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37966 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37967 { (exit 1); exit 1; }; }
37969 MFLAG=SLAPD_MOD_STATIC
37971 WITH_ACI_ENABLED=$ol_enable_aci
37973 cat >>confdefs.h <<_ACEOF
37974 #define SLAPD_ACI_ENABLED $MFLAG
37978 WITH_ACI_ENABLED=no
37980 if test "$ol_enable_dynacl" != no ; then
37982 cat >>confdefs.h <<\_ACEOF
37983 #define SLAP_DYNACL 1
37988 if test "$ol_link_modules" != no ; then
37990 cat >>confdefs.h <<\_ACEOF
37991 #define SLAPD_MODULES 1
37995 SLAPD_MODULES_LDFLAGS="-dlopen self"
37999 cat >>confdefs.h <<\_ACEOF
38000 #define SLAPD_MOD_STATIC 1
38004 cat >>confdefs.h <<\_ACEOF
38005 #define SLAPD_MOD_DYNAMIC 2
38009 if test "$ol_enable_monitor" != no ; then
38011 BUILD_MONITOR=$ol_enable_monitor
38012 if test "$ol_enable_monitor" = mod ; then
38013 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38014 MFLAG=SLAPD_MOD_DYNAMIC
38016 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38017 MFLAG=SLAPD_MOD_STATIC
38020 cat >>confdefs.h <<_ACEOF
38021 #define SLAPD_MONITOR $MFLAG
38026 if test "$ol_enable_bdb" != no ; then
38028 BUILD_BDB=$ol_enable_bdb
38029 if test "$ol_enable_bdb" = mod ; then
38030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38031 MFLAG=SLAPD_MOD_DYNAMIC
38033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38034 MFLAG=SLAPD_MOD_STATIC
38037 cat >>confdefs.h <<_ACEOF
38038 #define SLAPD_BDB $MFLAG
38043 if test "$ol_enable_dnssrv" != no ; then
38045 BUILD_DNSSRV=$ol_enable_dnssrv
38046 if test "$ol_enable_dnssrv" = mod ; then
38047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38048 MFLAG=SLAPD_MOD_DYNAMIC
38050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38051 MFLAG=SLAPD_MOD_STATIC
38054 cat >>confdefs.h <<_ACEOF
38055 #define SLAPD_DNSSRV $MFLAG
38060 if test "$ol_enable_hdb" != no ; then
38062 BUILD_HDB=$ol_enable_hdb
38063 if test "$ol_enable_hdb" = mod ; then
38064 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38065 MFLAG=SLAPD_MOD_DYNAMIC
38067 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38068 MFLAG=SLAPD_MOD_STATIC
38071 cat >>confdefs.h <<_ACEOF
38072 #define SLAPD_HDB $MFLAG
38077 if test "$ol_enable_ldap" != no ; then
38079 BUILD_LDAP=$ol_enable_ldap
38080 if test "$ol_enable_ldap" = mod ; then
38081 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38082 MFLAG=SLAPD_MOD_DYNAMIC
38084 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38085 MFLAG=SLAPD_MOD_STATIC
38088 cat >>confdefs.h <<_ACEOF
38089 #define SLAPD_LDAP $MFLAG
38094 if test "$ol_enable_meta" != no ; then
38096 BUILD_META=$ol_enable_meta
38098 if test "$ol_enable_meta" = mod ; then
38099 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38100 MFLAG=SLAPD_MOD_DYNAMIC
38102 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38103 MFLAG=SLAPD_MOD_STATIC
38106 cat >>confdefs.h <<_ACEOF
38107 #define SLAPD_META $MFLAG
38112 if test "$ol_enable_ndb" != no ; then
38114 BUILD_NDB=$ol_enable_ndb
38115 if test "$ol_enable_ndb" = mod ; then
38116 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38117 MFLAG=SLAPD_MOD_DYNAMIC
38119 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38120 MFLAG=SLAPD_MOD_STATIC
38123 cat >>confdefs.h <<_ACEOF
38124 #define SLAPD_NDB $MFLAG
38129 if test "$ol_enable_null" != no ; then
38131 BUILD_NULL=$ol_enable_null
38132 if test "$ol_enable_null" = mod ; then
38133 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38134 MFLAG=SLAPD_MOD_DYNAMIC
38136 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38137 MFLAG=SLAPD_MOD_STATIC
38140 cat >>confdefs.h <<_ACEOF
38141 #define SLAPD_NULL $MFLAG
38146 if test "$ol_enable_passwd" != no ; then
38148 BUILD_PASSWD=$ol_enable_passwd
38149 if test "$ol_enable_passwd" = mod ; then
38150 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38151 MFLAG=SLAPD_MOD_DYNAMIC
38153 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38154 MFLAG=SLAPD_MOD_STATIC
38157 cat >>confdefs.h <<_ACEOF
38158 #define SLAPD_PASSWD $MFLAG
38163 if test "$ol_link_perl" != no ; then
38165 BUILD_PERL=$ol_enable_perl
38166 if test "$ol_enable_perl" = mod ; then
38167 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38168 MFLAG=SLAPD_MOD_DYNAMIC
38170 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38171 MFLAG=SLAPD_MOD_STATIC
38174 cat >>confdefs.h <<_ACEOF
38175 #define SLAPD_PERL $MFLAG
38180 if test "$ol_enable_relay" != no ; then
38182 BUILD_RELAY=$ol_enable_relay
38183 if test "$ol_enable_relay" = mod ; then
38184 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38185 MFLAG=SLAPD_MOD_DYNAMIC
38187 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38188 MFLAG=SLAPD_MOD_STATIC
38191 cat >>confdefs.h <<_ACEOF
38192 #define SLAPD_RELAY $MFLAG
38197 if test "$ol_enable_shell" != no ; then
38198 if test "$ol_link_threads" != no ; then
38199 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38200 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38203 BUILD_SHELL=$ol_enable_shell
38204 if test "$ol_enable_shell" = mod ; then
38205 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38206 MFLAG=SLAPD_MOD_DYNAMIC
38208 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38209 MFLAG=SLAPD_MOD_STATIC
38212 cat >>confdefs.h <<_ACEOF
38213 #define SLAPD_SHELL $MFLAG
38218 if test "$ol_enable_sock" != no ; then
38220 BUILD_SOCK=$ol_enable_sock
38221 if test "$ol_enable_sock" = mod ; then
38222 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38223 MFLAG=SLAPD_MOD_DYNAMIC
38225 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38226 MFLAG=SLAPD_MOD_STATIC
38229 cat >>confdefs.h <<_ACEOF
38230 #define SLAPD_SOCK $MFLAG
38235 if test "$ol_link_sql" != no ; then
38237 BUILD_SQL=$ol_enable_sql
38238 if test "$ol_enable_sql" = mod; then
38239 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38240 MFLAG=SLAPD_MOD_DYNAMIC
38242 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38243 MFLAG=SLAPD_MOD_STATIC
38246 cat >>confdefs.h <<_ACEOF
38247 #define SLAPD_SQL $MFLAG
38252 if test "$ol_enable_accesslog" != no ; then
38253 BUILD_ACCESSLOG=$ol_enable_accesslog
38254 if test "$ol_enable_accesslog" = mod ; then
38255 MFLAG=SLAPD_MOD_DYNAMIC
38256 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38258 MFLAG=SLAPD_MOD_STATIC
38259 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38262 cat >>confdefs.h <<_ACEOF
38263 #define SLAPD_OVER_ACCESSLOG $MFLAG
38268 if test "$ol_enable_auditlog" != no ; then
38269 BUILD_AUDITLOG=$ol_enable_auditlog
38270 if test "$ol_enable_auditlog" = mod ; then
38271 MFLAG=SLAPD_MOD_DYNAMIC
38272 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38274 MFLAG=SLAPD_MOD_STATIC
38275 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38278 cat >>confdefs.h <<_ACEOF
38279 #define SLAPD_OVER_AUDITLOG $MFLAG
38284 if test "$ol_enable_collect" != no ; then
38285 BUILD_COLLECT=$ol_enable_collect
38286 if test "$ol_enable_collect" = mod ; then
38287 MFLAG=SLAPD_MOD_DYNAMIC
38288 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38290 MFLAG=SLAPD_MOD_STATIC
38291 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38294 cat >>confdefs.h <<_ACEOF
38295 #define SLAPD_OVER_COLLECT $MFLAG
38300 if test "$ol_enable_constraint" != no ; then
38301 BUILD_CONSTRAINT=$ol_enable_constraint
38302 if test "$ol_enable_constraint" = mod ; then
38303 MFLAG=SLAPD_MOD_DYNAMIC
38304 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38306 MFLAG=SLAPD_MOD_STATIC
38307 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38310 cat >>confdefs.h <<_ACEOF
38311 #define SLAPD_OVER_CONSTRAINT $MFLAG
38316 if test "$ol_enable_dds" != no ; then
38317 BUILD_DDS=$ol_enable_dds
38318 if test "$ol_enable_dds" = mod ; then
38319 MFLAG=SLAPD_MOD_DYNAMIC
38320 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38322 MFLAG=SLAPD_MOD_STATIC
38323 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38326 cat >>confdefs.h <<_ACEOF
38327 #define SLAPD_OVER_DDS $MFLAG
38332 if test "$ol_enable_deref" != no ; then
38333 BUILD_DEREF=$ol_enable_deref
38334 if test "$ol_enable_deref" = mod ; then
38335 MFLAG=SLAPD_MOD_DYNAMIC
38336 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38338 MFLAG=SLAPD_MOD_STATIC
38339 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38342 cat >>confdefs.h <<_ACEOF
38343 #define SLAPD_OVER_DEREF $MFLAG
38348 if test "$ol_enable_dyngroup" != no ; then
38349 BUILD_DYNGROUP=$ol_enable_dyngroup
38350 if test "$ol_enable_dyngroup" = mod ; then
38351 MFLAG=SLAPD_MOD_DYNAMIC
38352 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38354 MFLAG=SLAPD_MOD_STATIC
38355 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_OVER_DYNGROUP $MFLAG
38364 if test "$ol_enable_dynlist" != no ; then
38365 BUILD_DYNLIST=$ol_enable_dynlist
38366 if test "$ol_enable_dynlist" = mod ; then
38367 MFLAG=SLAPD_MOD_DYNAMIC
38368 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38370 MFLAG=SLAPD_MOD_STATIC
38371 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38374 cat >>confdefs.h <<_ACEOF
38375 #define SLAPD_OVER_DYNLIST $MFLAG
38380 if test "$ol_enable_memberof" != no ; then
38381 BUILD_MEMBEROF=$ol_enable_memberof
38382 if test "$ol_enable_memberof" = mod ; then
38383 MFLAG=SLAPD_MOD_DYNAMIC
38384 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38386 MFLAG=SLAPD_MOD_STATIC
38387 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38390 cat >>confdefs.h <<_ACEOF
38391 #define SLAPD_OVER_MEMBEROF $MFLAG
38396 if test "$ol_enable_ppolicy" != no ; then
38397 BUILD_PPOLICY=$ol_enable_ppolicy
38398 if test "$ol_enable_ppolicy" = mod ; then
38399 MFLAG=SLAPD_MOD_DYNAMIC
38400 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38402 MFLAG=SLAPD_MOD_STATIC
38403 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38406 cat >>confdefs.h <<_ACEOF
38407 #define SLAPD_OVER_PPOLICY $MFLAG
38412 if test "$ol_enable_proxycache" != no ; then
38413 BUILD_PROXYCACHE=$ol_enable_proxycache
38414 if test "$ol_enable_proxycache" = mod ; then
38415 MFLAG=SLAPD_MOD_DYNAMIC
38416 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38418 MFLAG=SLAPD_MOD_STATIC
38419 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38422 cat >>confdefs.h <<_ACEOF
38423 #define SLAPD_OVER_PROXYCACHE $MFLAG
38428 if test "$ol_enable_refint" != no ; then
38429 BUILD_REFINT=$ol_enable_refint
38430 if test "$ol_enable_refint" = mod ; then
38431 MFLAG=SLAPD_MOD_DYNAMIC
38432 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38434 MFLAG=SLAPD_MOD_STATIC
38435 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38438 cat >>confdefs.h <<_ACEOF
38439 #define SLAPD_OVER_REFINT $MFLAG
38444 if test "$ol_enable_retcode" != no ; then
38445 BUILD_RETCODE=$ol_enable_retcode
38446 if test "$ol_enable_retcode" = mod ; then
38447 MFLAG=SLAPD_MOD_DYNAMIC
38448 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38450 MFLAG=SLAPD_MOD_STATIC
38451 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38454 cat >>confdefs.h <<_ACEOF
38455 #define SLAPD_OVER_RETCODE $MFLAG
38460 if test "$ol_enable_rwm" != no ; then
38462 BUILD_RWM=$ol_enable_rwm
38463 if test "$ol_enable_rwm" = mod ; then
38464 MFLAG=SLAPD_MOD_DYNAMIC
38465 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38467 MFLAG=SLAPD_MOD_STATIC
38468 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38471 cat >>confdefs.h <<_ACEOF
38472 #define SLAPD_OVER_RWM $MFLAG
38477 if test "$ol_enable_seqmod" != no ; then
38478 BUILD_SEQMOD=$ol_enable_seqmod
38479 if test "$ol_enable_seqmod" = mod ; then
38480 MFLAG=SLAPD_MOD_DYNAMIC
38481 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38483 MFLAG=SLAPD_MOD_STATIC
38484 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38487 cat >>confdefs.h <<_ACEOF
38488 #define SLAPD_OVER_SEQMOD $MFLAG
38493 if test "$ol_enable_sssvlv" != no ; then
38494 BUILD_SSSVLV=$ol_enable_sssvlv
38495 if test "$ol_enable_sssvlv" = mod ; then
38496 MFLAG=SLAPD_MOD_DYNAMIC
38497 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38499 MFLAG=SLAPD_MOD_STATIC
38500 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38503 cat >>confdefs.h <<_ACEOF
38504 #define SLAPD_OVER_SSSVLV $MFLAG
38509 if test "$ol_enable_syncprov" != no ; then
38510 BUILD_SYNCPROV=$ol_enable_syncprov
38511 if test "$ol_enable_syncprov" = mod ; then
38512 MFLAG=SLAPD_MOD_DYNAMIC
38513 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38515 MFLAG=SLAPD_MOD_STATIC
38516 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38519 cat >>confdefs.h <<_ACEOF
38520 #define SLAPD_OVER_SYNCPROV $MFLAG
38525 if test "$ol_enable_translucent" != no ; then
38526 BUILD_TRANSLUCENT=$ol_enable_translucent
38527 if test "$ol_enable_translucent" = mod ; then
38528 MFLAG=SLAPD_MOD_DYNAMIC
38529 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38531 MFLAG=SLAPD_MOD_STATIC
38532 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38535 cat >>confdefs.h <<_ACEOF
38536 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38541 if test "$ol_enable_unique" != no ; then
38542 BUILD_UNIQUE=$ol_enable_unique
38543 if test "$ol_enable_unique" = mod ; then
38544 MFLAG=SLAPD_MOD_DYNAMIC
38545 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38547 MFLAG=SLAPD_MOD_STATIC
38548 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38551 cat >>confdefs.h <<_ACEOF
38552 #define SLAPD_OVER_UNIQUE $MFLAG
38557 if test "$ol_enable_valsort" != no ; then
38558 BUILD_VALSORT=$ol_enable_valsort
38559 if test "$ol_enable_valsort" = mod ; then
38560 MFLAG=SLAPD_MOD_DYNAMIC
38561 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38563 MFLAG=SLAPD_MOD_STATIC
38564 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38567 cat >>confdefs.h <<_ACEOF
38568 #define SLAPD_OVER_VALSORT $MFLAG
38573 if test "$ol_enable_rewrite" != no ; then
38575 cat >>confdefs.h <<\_ACEOF
38576 #define ENABLE_REWRITE 1
38582 if test "$ol_enable_slapi" != no ; then
38584 cat >>confdefs.h <<\_ACEOF
38585 #define ENABLE_SLAPI 1
38589 SLAPD_SLAPI_DEPEND=libslapi.a
38594 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38596 SLAPD_MODULES_LDFLAGS=
38691 # Check whether --with-xxinstall was given.
38692 if test "${with_xxinstall+set}" = set; then
38693 withval=$with_xxinstall;
38698 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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/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"
38701 ac_config_commands="$ac_config_commands default"
38705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38706 # Let make expand exec_prefix.
38707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38709 DEFS=-DHAVE_CONFIG_H
38713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38714 # 1. Remove the extension, and $U if already installed.
38715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38716 ac_i=`echo "$ac_i" | sed "$ac_script"`
38717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38718 # will be set to the directory where LIBOBJS objects are built.
38719 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38720 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38722 LIBOBJS=$ac_libobjs
38724 LTLIBOBJS=$ac_ltlibobjs
38727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38728 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38729 Usually this means the macro was only invoked conditionally." >&5
38730 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38731 Usually this means the macro was only invoked conditionally." >&2;}
38732 { (exit 1); exit 1; }; }
38734 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38735 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38736 Usually this means the macro was only invoked conditionally." >&5
38737 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38738 Usually this means the macro was only invoked conditionally." >&2;}
38739 { (exit 1); exit 1; }; }
38741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38742 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38743 Usually this means the macro was only invoked conditionally." >&5
38744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38745 Usually this means the macro was only invoked conditionally." >&2;}
38746 { (exit 1); exit 1; }; }
38749 : ${CONFIG_STATUS=./config.status}
38750 ac_clean_files_save=$ac_clean_files
38751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38754 cat >$CONFIG_STATUS <<_ACEOF
38756 # Generated by $as_me.
38757 # Run this file to recreate the current configuration.
38758 # Compiler output produced by configure, useful for debugging
38759 # configure, is in config.log if it exists.
38762 ac_cs_recheck=false
38764 SHELL=\${CONFIG_SHELL-$SHELL}
38767 cat >>$CONFIG_STATUS <<\_ACEOF
38768 ## --------------------- ##
38769 ## M4sh Initialization. ##
38770 ## --------------------- ##
38772 # Be more Bourne compatible
38773 DUALCASE=1; export DUALCASE # for MKS sh
38774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38778 # is contrary to our usage. Disable this feature.
38779 alias -g '${1+"$@"}'='"$@"'
38780 setopt NO_GLOB_SUBST
38782 case `(set -o) 2>/dev/null` in
38783 *posix*) set -o posix ;;
38792 # Avoid depending upon Character Ranges.
38793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38796 as_cr_digits='0123456789'
38797 as_cr_alnum=$as_cr_Letters$as_cr_digits
38799 # The user is always right.
38800 if test "${PATH_SEPARATOR+set}" != set; then
38801 echo "#! /bin/sh" >conf$$.sh
38802 echo "exit 0" >>conf$$.sh
38804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38812 # Support unset when possible.
38813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38821 # We need space, tab and new line, in precisely that order. Quoting is
38822 # there to prevent editors from complaining about space-tab.
38823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38824 # splitting by setting IFS to empty value.)
38829 # Find who we are. Look in the path if we contain no directory separator.
38831 *[\\/]* ) as_myself=$0 ;;
38832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38833 for as_dir in $PATH
38836 test -z "$as_dir" && as_dir=.
38837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38843 # We did not find ourselves, most probably we were run as `sh COMMAND'
38844 # in which case we are not to be found in the path.
38845 if test "x$as_myself" = x; then
38848 if test ! -f "$as_myself"; then
38849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38850 { (exit 1); exit 1; }
38853 # Work around bugs in pre-3.0 UWIN ksh.
38854 for as_var in ENV MAIL MAILPATH
38855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38865 LC_TELEPHONE LC_TIME
38867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38868 eval $as_var=C; export $as_var
38870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38874 # Required to use basename.
38875 if expr a : '\(a\)' >/dev/null 2>&1 &&
38876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38883 as_basename=basename
38889 # Name of the executable.
38890 as_me=`$as_basename -- "$0" ||
38891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38892 X"$0" : 'X\(//\)$' \| \
38893 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38895 sed '/^.*\/\([^/][^/]*\)\/*$/{
38914 as_lineno_1=$LINENO
38915 as_lineno_2=$LINENO
38916 test "x$as_lineno_1" != "x$as_lineno_2" &&
38917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38920 # uniformly replaced by the line number. The first 'sed' inserts a
38921 # line-number line after each line using $LINENO; the second 'sed'
38922 # does the real work. The second script uses 'N' to pair each
38923 # line-number line with the line containing $LINENO, and appends
38924 # trailing '-' during substitution so that $LINENO is not a special
38925 # case at line end.
38926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38927 # scripts with optimization help from Paolo Bonzini. Blame Lee
38928 # E. McMahon (1931-1989) for sed's syntax. :-)
38940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38943 ' >$as_me.lineno &&
38944 chmod +x "$as_me.lineno" ||
38945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38946 { (exit 1); exit 1; }; }
38948 # Don't try to exec as it changes $[0], causing all sort of problems
38949 # (the dirname of $[0] is not the place where we might find the
38950 # original and so on. Autoconf is especially sensitive to this).
38951 . "./$as_me.lineno"
38952 # Exit status is that of the last command.
38957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38963 ECHO_C= ECHO_N= ECHO_T=
38964 case `echo -n x` in
38966 case `echo 'x\c'` in
38967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38974 if expr a : '\(a\)' >/dev/null 2>&1 &&
38975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38981 rm -f conf$$ conf$$.exe conf$$.file
38982 if test -d conf$$.dir; then
38983 rm -f conf$$.dir/conf$$.file
38989 if ln -s conf$$.file conf$$ 2>/dev/null; then
38991 # ... but there are two gotchas:
38992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38994 # In both cases, we have to default to `cp -p'.
38995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38997 elif ln conf$$.file conf$$ 2>/dev/null; then
39002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39003 rmdir conf$$.dir 2>/dev/null
39005 if mkdir -p . 2>/dev/null; then
39008 test -d ./-p && rmdir ./-p
39012 if test -x / >/dev/null 2>&1; then
39013 as_test_x='test -x'
39015 if ls -dL / >/dev/null 2>&1; then
39022 if test -d "$1"; then
39028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39029 ???[sx]*):;;*)false;;esac;fi
39033 as_executable_p=$as_test_x
39035 # Sed expression to map a string onto a valid CPP name.
39036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39038 # Sed expression to map a string onto a valid variable name.
39039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39044 # Save the log message, to keep $[0] and so on meaningful, and to
39045 # report actual input values of CONFIG_FILES etc. instead of their
39046 # values after options handling.
39048 This file was extended by $as_me, which was
39049 generated by GNU Autoconf 2.61. Invocation command line was
39051 CONFIG_FILES = $CONFIG_FILES
39052 CONFIG_HEADERS = $CONFIG_HEADERS
39053 CONFIG_LINKS = $CONFIG_LINKS
39054 CONFIG_COMMANDS = $CONFIG_COMMANDS
39057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39062 cat >>$CONFIG_STATUS <<_ACEOF
39063 # Files that config.status was made for.
39064 config_files="$ac_config_files"
39065 config_headers="$ac_config_headers"
39066 config_commands="$ac_config_commands"
39070 cat >>$CONFIG_STATUS <<\_ACEOF
39072 \`$as_me' instantiates files from templates according to the
39073 current configuration.
39075 Usage: $0 [OPTIONS] [FILE]...
39077 -h, --help print this help, then exit
39078 -V, --version print version number and configuration settings, then exit
39079 -q, --quiet do not print progress messages
39080 -d, --debug don't remove temporary files
39081 --recheck update $as_me by reconfiguring in the same conditions
39082 --file=FILE[:TEMPLATE]
39083 instantiate the configuration file FILE
39084 --header=FILE[:TEMPLATE]
39085 instantiate the configuration header FILE
39087 Configuration files:
39090 Configuration headers:
39093 Configuration commands:
39096 Report bugs to <bug-autoconf@gnu.org>."
39099 cat >>$CONFIG_STATUS <<_ACEOF
39102 configured by $0, generated by GNU Autoconf 2.61,
39103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39105 Copyright (C) 2006 Free Software Foundation, Inc.
39106 This config.status script is free software; the Free Software Foundation
39107 gives unlimited permission to copy, distribute and modify it."
39114 cat >>$CONFIG_STATUS <<\_ACEOF
39115 # If no file are specified by the user, then we need to provide default
39116 # value. By we need to know if files were specified by the user.
39122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39134 # Handling of the options.
39135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39138 echo "$ac_cs_version"; exit ;;
39139 --debug | --debu | --deb | --de | --d | -d )
39141 --file | --fil | --fi | --f )
39143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39144 ac_need_defaults=false;;
39145 --header | --heade | --head | --hea )
39147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39148 ac_need_defaults=false;;
39150 # Conflict between --help and --header
39151 { echo "$as_me: error: ambiguous option: $1
39152 Try \`$0 --help' for more information." >&2
39153 { (exit 1); exit 1; }; };;
39154 --help | --hel | -h )
39155 echo "$ac_cs_usage"; exit ;;
39156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39160 # This is an error.
39161 -*) { echo "$as_me: error: unrecognized option: $1
39162 Try \`$0 --help' for more information." >&2
39163 { (exit 1); exit 1; }; } ;;
39165 *) ac_config_targets="$ac_config_targets $1"
39166 ac_need_defaults=false ;;
39172 ac_configure_extra_args=
39174 if $ac_cs_silent; then
39176 ac_configure_extra_args="$ac_configure_extra_args --silent"
39180 cat >>$CONFIG_STATUS <<_ACEOF
39181 if \$ac_cs_recheck; then
39182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39183 CONFIG_SHELL=$SHELL
39184 export CONFIG_SHELL
39185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39189 cat >>$CONFIG_STATUS <<\_ACEOF
39193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39194 ## Running $as_me. ##
39200 cat >>$CONFIG_STATUS <<_ACEOF
39204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39206 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39207 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39212 cat >>$CONFIG_STATUS <<\_ACEOF
39214 # Handling of arguments.
39215 for ac_config_target in $ac_config_targets
39217 case $ac_config_target in
39218 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39219 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39220 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39223 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39224 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39225 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39226 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39227 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39228 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39229 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39230 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39231 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39232 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39233 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39234 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39235 "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" ;;
39236 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39237 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39238 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39239 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39240 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39241 "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" ;;
39242 "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" ;;
39243 "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" ;;
39244 "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" ;;
39245 "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" ;;
39246 "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" ;;
39247 "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" ;;
39248 "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39249 "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" ;;
39250 "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" ;;
39251 "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" ;;
39252 "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" ;;
39253 "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" ;;
39254 "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39255 "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" ;;
39256 "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" ;;
39257 "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" ;;
39258 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39259 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39260 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39261 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39262 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39266 { (exit 1); exit 1; }; };;
39271 # If the user did not use the arguments to specify the items to instantiate,
39272 # then the envvar interface is used. Set only those that are not.
39273 # We use the long form for the default assignment because of an extremely
39274 # bizarre bug on SunOS 4.1.3.
39275 if $ac_need_defaults; then
39276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39281 # Have a temporary directory for convenience. Make it in the build tree
39282 # simply because there is no reason against having it here, and in addition,
39283 # creating and moving files from /tmp can sometimes cause problems.
39284 # Hook for its removal unless debugging.
39285 # Note that there is a small window in which the directory will not be cleaned:
39286 # after its creation but before its name has been assigned to `$tmp'.
39290 trap 'exit_status=$?
39291 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39293 trap '{ (exit 1); exit 1; }' 1 2 13 15
39295 # Create a (secure) tmp directory for tmp files.
39298 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39299 test -n "$tmp" && test -d "$tmp"
39302 tmp=./conf$$-$RANDOM
39303 (umask 077 && mkdir "$tmp")
39306 echo "$me: cannot create a temporary directory in ." >&2
39307 { (exit 1); exit 1; }
39311 # Set up the sed scripts for CONFIG_FILES section.
39314 # No need to generate the scripts if there are no CONFIG_FILES.
39315 # This happens for instance when ./config.status config.h
39316 if test -n "$CONFIG_FILES"; then
39323 for ac_last_try in false false false false false :; do
39324 cat >conf$$subs.sed <<_ACEOF
39325 SHELL!$SHELL$ac_delim
39326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39332 exec_prefix!$exec_prefix$ac_delim
39333 prefix!$prefix$ac_delim
39334 program_transform_name!$program_transform_name$ac_delim
39335 bindir!$bindir$ac_delim
39336 sbindir!$sbindir$ac_delim
39337 libexecdir!$libexecdir$ac_delim
39338 datarootdir!$datarootdir$ac_delim
39339 datadir!$datadir$ac_delim
39340 sysconfdir!$sysconfdir$ac_delim
39341 sharedstatedir!$sharedstatedir$ac_delim
39342 localstatedir!$localstatedir$ac_delim
39343 includedir!$includedir$ac_delim
39344 oldincludedir!$oldincludedir$ac_delim
39345 docdir!$docdir$ac_delim
39346 infodir!$infodir$ac_delim
39347 htmldir!$htmldir$ac_delim
39348 dvidir!$dvidir$ac_delim
39349 pdfdir!$pdfdir$ac_delim
39350 psdir!$psdir$ac_delim
39351 libdir!$libdir$ac_delim
39352 localedir!$localedir$ac_delim
39353 mandir!$mandir$ac_delim
39354 DEFS!$DEFS$ac_delim
39355 ECHO_C!$ECHO_C$ac_delim
39356 ECHO_N!$ECHO_N$ac_delim
39357 ECHO_T!$ECHO_T$ac_delim
39358 LIBS!$LIBS$ac_delim
39359 build_alias!$build_alias$ac_delim
39360 host_alias!$host_alias$ac_delim
39361 target_alias!$target_alias$ac_delim
39362 build!$build$ac_delim
39363 build_cpu!$build_cpu$ac_delim
39364 build_vendor!$build_vendor$ac_delim
39365 build_os!$build_os$ac_delim
39366 host!$host$ac_delim
39367 host_cpu!$host_cpu$ac_delim
39368 host_vendor!$host_vendor$ac_delim
39369 host_os!$host_os$ac_delim
39370 target!$target$ac_delim
39371 target_cpu!$target_cpu$ac_delim
39372 target_vendor!$target_vendor$ac_delim
39373 target_os!$target_os$ac_delim
39374 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39375 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39376 INSTALL_DATA!$INSTALL_DATA$ac_delim
39377 CYGPATH_W!$CYGPATH_W$ac_delim
39378 PACKAGE!$PACKAGE$ac_delim
39379 VERSION!$VERSION$ac_delim
39380 ACLOCAL!$ACLOCAL$ac_delim
39381 AUTOCONF!$AUTOCONF$ac_delim
39382 AUTOMAKE!$AUTOMAKE$ac_delim
39383 AUTOHEADER!$AUTOHEADER$ac_delim
39384 MAKEINFO!$MAKEINFO$ac_delim
39385 install_sh!$install_sh$ac_delim
39386 STRIP!$STRIP$ac_delim
39387 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39388 mkdir_p!$mkdir_p$ac_delim
39390 SET_MAKE!$SET_MAKE$ac_delim
39391 am__leading_dot!$am__leading_dot$ac_delim
39392 AMTAR!$AMTAR$ac_delim
39393 am__tar!$am__tar$ac_delim
39394 am__untar!$am__untar$ac_delim
39395 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39396 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39397 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39398 top_builddir!$top_builddir$ac_delim
39399 ldap_subdir!$ldap_subdir$ac_delim
39402 CFLAGS!$CFLAGS$ac_delim
39403 LDFLAGS!$LDFLAGS$ac_delim
39404 CPPFLAGS!$CPPFLAGS$ac_delim
39405 ac_ct_CC!$ac_ct_CC$ac_delim
39406 EXEEXT!$EXEEXT$ac_delim
39407 OBJEXT!$OBJEXT$ac_delim
39408 DEPDIR!$DEPDIR$ac_delim
39409 am__include!$am__include$ac_delim
39410 am__quote!$am__quote$ac_delim
39411 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39412 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39413 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39414 CCDEPMODE!$CCDEPMODE$ac_delim
39415 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39416 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39417 GREP!$GREP$ac_delim
39418 EGREP!$EGREP$ac_delim
39419 LN_S!$LN_S$ac_delim
39420 ECHO!$ECHO$ac_delim
39421 RANLIB!$RANLIB$ac_delim
39424 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39426 elif $ac_last_try; then
39427 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39429 { (exit 1); exit 1; }; }
39431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39436 if test -n "$ac_eof"; then
39437 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39438 ac_eof=`expr $ac_eof + 1`
39441 cat >>$CONFIG_STATUS <<_ACEOF
39442 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39447 s/^/s,@/; s/!/@,|#_!!_#|/
39450 s/'"$ac_delim"'$/,g/; t
39452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39453 ' >>$CONFIG_STATUS <conf$$subs.sed
39454 rm -f conf$$subs.sed
39455 cat >>$CONFIG_STATUS <<_ACEOF
39461 for ac_last_try in false false false false false :; do
39462 cat >conf$$subs.sed <<_ACEOF
39463 DLLTOOL!$DLLTOOL$ac_delim
39465 OBJDUMP!$OBJDUMP$ac_delim
39467 LIBTOOL!$LIBTOOL$ac_delim
39468 PERLBIN!$PERLBIN$ac_delim
39469 OL_MKDEP!$OL_MKDEP$ac_delim
39470 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39471 LTSTATIC!$LTSTATIC$ac_delim
39472 MYSQL!$MYSQL$ac_delim
39473 LIBOBJS!$LIBOBJS$ac_delim
39474 LIBSRCS!$LIBSRCS$ac_delim
39475 PLAT!$PLAT$ac_delim
39476 WITH_SASL!$WITH_SASL$ac_delim
39477 WITH_TLS!$WITH_TLS$ac_delim
39478 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39479 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39480 BUILD_THREAD!$BUILD_THREAD$ac_delim
39481 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39482 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39483 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39484 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39485 BUILD_BDB!$BUILD_BDB$ac_delim
39486 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39487 BUILD_HDB!$BUILD_HDB$ac_delim
39488 BUILD_LDAP!$BUILD_LDAP$ac_delim
39489 BUILD_META!$BUILD_META$ac_delim
39490 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39491 BUILD_NDB!$BUILD_NDB$ac_delim
39492 BUILD_NULL!$BUILD_NULL$ac_delim
39493 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39494 BUILD_RELAY!$BUILD_RELAY$ac_delim
39495 BUILD_PERL!$BUILD_PERL$ac_delim
39496 BUILD_SHELL!$BUILD_SHELL$ac_delim
39497 BUILD_SOCK!$BUILD_SOCK$ac_delim
39498 BUILD_SQL!$BUILD_SQL$ac_delim
39499 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39500 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39501 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39502 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39503 BUILD_DDS!$BUILD_DDS$ac_delim
39504 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39505 BUILD_DEREF!$BUILD_DEREF$ac_delim
39506 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39507 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39508 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39509 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39510 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39511 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39512 BUILD_REFINT!$BUILD_REFINT$ac_delim
39513 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39514 BUILD_RWM!$BUILD_RWM$ac_delim
39515 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39516 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39517 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39518 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39519 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39520 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39521 LDAP_LIBS!$LDAP_LIBS$ac_delim
39522 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39523 BDB_LIBS!$BDB_LIBS$ac_delim
39524 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39525 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39526 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39527 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39528 WRAP_LIBS!$WRAP_LIBS$ac_delim
39529 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39530 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39531 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39532 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39533 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39534 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39535 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39536 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39537 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39538 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39539 KRB4_LIBS!$KRB4_LIBS$ac_delim
39540 KRB5_LIBS!$KRB5_LIBS$ac_delim
39541 SASL_LIBS!$SASL_LIBS$ac_delim
39542 TLS_LIBS!$TLS_LIBS$ac_delim
39543 MODULES_LIBS!$MODULES_LIBS$ac_delim
39544 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39545 LIBSLAPI!$LIBSLAPI$ac_delim
39546 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39547 AUTH_LIBS!$AUTH_LIBS$ac_delim
39548 ICU_LIBS!$ICU_LIBS$ac_delim
39549 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39550 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39551 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39552 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39553 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39554 LTLIBOBJS!$LTLIBOBJS$ac_delim
39557 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39559 elif $ac_last_try; then
39560 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39562 { (exit 1); exit 1; }; }
39564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39569 if test -n "$ac_eof"; then
39570 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39571 ac_eof=`expr $ac_eof + 1`
39574 cat >>$CONFIG_STATUS <<_ACEOF
39575 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39580 s/^/s,@/; s/!/@,|#_!!_#|/
39583 s/'"$ac_delim"'$/,g/; t
39585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39586 ' >>$CONFIG_STATUS <conf$$subs.sed
39587 rm -f conf$$subs.sed
39588 cat >>$CONFIG_STATUS <<_ACEOF
39595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39597 # trailing colons and then remove the whole line if VPATH becomes empty
39598 # (actually we leave an empty line to preserve line numbers).
39599 if test "x$srcdir" = x.; then
39600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39601 s/:*\$(srcdir):*/:/
39602 s/:*\${srcdir}:*/:/
39604 s/^\([^=]*=[ ]*\):*/\1/
39610 cat >>$CONFIG_STATUS <<\_ACEOF
39611 fi # test -n "$CONFIG_FILES"
39614 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39617 :[FHLC]) ac_mode=$ac_tag; continue;;
39619 case $ac_mode$ac_tag in
39621 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39622 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39623 { (exit 1); exit 1; }; };;
39624 :[FH]-) ac_tag=-:-;;
39625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39642 -) ac_f="$tmp/stdin";;
39643 *) # Look for the file first in the build tree, then in the source tree
39644 # (if the path is not absolute). The absolute path cannot be DOS-style,
39645 # because $ac_f cannot contain `:'.
39649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39651 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39652 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39653 { (exit 1); exit 1; }; };;
39655 ac_file_inputs="$ac_file_inputs $ac_f"
39658 # Let's still pretend it is `configure' which instantiates (i.e., don't
39659 # use $as_me), people would be surprised to read:
39660 # /* config.h. Generated by config.status. */
39661 configure_input="Generated from "`IFS=:
39662 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39663 if test x"$ac_file" != x-; then
39664 configure_input="$ac_file. $configure_input"
39665 { echo "$as_me:$LINENO: creating $ac_file" >&5
39666 echo "$as_me: creating $ac_file" >&6;}
39670 *:-:* | *:-) cat >"$tmp/stdin";;
39675 ac_dir=`$as_dirname -- "$ac_file" ||
39676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39677 X"$ac_file" : 'X\(//\)[^/]' \| \
39678 X"$ac_file" : 'X\(//\)$' \| \
39679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39685 /^X\(\/\/\)[^/].*/{
39700 -*) as_dir=./$as_dir;;
39702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39707 *) as_qdir=$as_dir;;
39709 as_dirs="'$as_qdir' $as_dirs"
39710 as_dir=`$as_dirname -- "$as_dir" ||
39711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39712 X"$as_dir" : 'X\(//\)[^/]' \| \
39713 X"$as_dir" : 'X\(//\)$' \| \
39714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39720 /^X\(\/\/\)[^/].*/{
39733 test -d "$as_dir" && break
39735 test -z "$as_dirs" || eval "mkdir $as_dirs"
39736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39738 { (exit 1); exit 1; }; }; }
39742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39745 # A ".." for each directory in $ac_dir_suffix.
39746 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39747 case $ac_top_builddir_sub in
39748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39752 ac_abs_top_builddir=$ac_pwd
39753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39754 # for backward compatibility:
39755 ac_top_builddir=$ac_top_build_prefix
39758 .) # We are building in place.
39760 ac_top_srcdir=$ac_top_builddir_sub
39761 ac_abs_top_srcdir=$ac_pwd ;;
39762 [\\/]* | ?:[\\/]* ) # Absolute name.
39763 ac_srcdir=$srcdir$ac_dir_suffix;
39764 ac_top_srcdir=$srcdir
39765 ac_abs_top_srcdir=$srcdir ;;
39766 *) # Relative name.
39767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39768 ac_top_srcdir=$ac_top_build_prefix$srcdir
39769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39781 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39782 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39786 cat >>$CONFIG_STATUS <<\_ACEOF
39787 # If the template does not know about datarootdir, expand it.
39788 # FIXME: This hack should be removed a few years after 2.60.
39789 ac_datarootdir_hack=; ac_datarootdir_seen=
39791 case `sed -n '/datarootdir/ {
39800 ' $ac_file_inputs` in
39801 *datarootdir*) ac_datarootdir_seen=yes;;
39802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39803 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39804 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39806 cat >>$CONFIG_STATUS <<_ACEOF
39807 ac_datarootdir_hack='
39808 s&@datadir@&$datadir&g
39809 s&@docdir@&$docdir&g
39810 s&@infodir@&$infodir&g
39811 s&@localedir@&$localedir&g
39812 s&@mandir@&$mandir&g
39813 s&\\\${datarootdir}&$datarootdir&g' ;;
39817 # Neutralize VPATH when `$srcdir' = `.'.
39818 # Shell code in configure.ac might set extrasub.
39819 # FIXME: do we really want to maintain this feature?
39820 cat >>$CONFIG_STATUS <<_ACEOF
39824 cat >>$CONFIG_STATUS <<\_ACEOF
39826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39827 s&@configure_input@&$configure_input&;t t
39828 s&@top_builddir@&$ac_top_builddir_sub&;t t
39829 s&@srcdir@&$ac_srcdir&;t t
39830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39831 s&@top_srcdir@&$ac_top_srcdir&;t t
39832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39833 s&@builddir@&$ac_builddir&;t t
39834 s&@abs_builddir@&$ac_abs_builddir&;t t
39835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39836 s&@INSTALL@&$ac_INSTALL&;t t
39837 $ac_datarootdir_hack
39838 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39841 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39842 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39843 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39844 which seems to be undefined. Please make sure it is defined." >&5
39845 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39846 which seems to be undefined. Please make sure it is defined." >&2;}
39850 -) cat "$tmp/out"; rm -f "$tmp/out";;
39851 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39860 # Transform confdefs.h into a sed script `conftest.defines', that
39861 # substitutes the proper values into config.h.in to produce config.h.
39862 rm -f conftest.defines conftest.tail
39863 # First, append a space to every undef/define line, to ease matching.
39864 echo 's/$/ /' >conftest.defines
39865 # Then, protect against being on the right side of a sed subst, or in
39866 # an unquoted here document, in config.status. If some macros were
39867 # called several times there might be several #defines for the same
39868 # symbol, which is useless. But do not sort them, since the last
39869 # AC_DEFINE must be honored.
39870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39871 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39872 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39873 # PARAMS is the parameter list in the macro definition--in most cases, it's
39874 # just an empty string.
39875 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39876 ac_dB='\\)[ (].*,\\1define\\2'
39884 s/^[ ]*#[ ]*define[ ][ ]*//
39889 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39890 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39891 ' >>conftest.defines
39893 # Remove the space that was appended to ease matching.
39894 # Then replace #undef with comments. This is necessary, for
39895 # example, in the case of _POSIX_SOURCE, which is predefined and required
39896 # on some systems where configure will not decide to define it.
39897 # (The regexp can be short, since the line contains either #define or #undef.)
39899 s,^[ #]*u.*,/* & */,' >>conftest.defines
39901 # Break up conftest.defines:
39902 ac_max_sed_lines=50
39904 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39905 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39906 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39908 ac_in='$ac_file_inputs'
39909 ac_out='"$tmp/out1"'
39910 ac_nxt='"$tmp/out2"'
39914 # Write a here document:
39915 cat >>$CONFIG_STATUS <<_ACEOF
39916 # First, check the format of the line:
39917 cat >"\$tmp/defines.sed" <<\\CEOF
39918 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39919 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39923 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39925 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39926 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39927 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39928 grep . conftest.tail >/dev/null || break
39929 rm -f conftest.defines
39930 mv conftest.tail conftest.defines
39932 rm -f conftest.defines conftest.tail
39934 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39935 cat >>$CONFIG_STATUS <<\_ACEOF
39936 if test x"$ac_file" != x-; then
39937 echo "/* $configure_input */" >"$tmp/config.h"
39938 cat "$ac_result" >>"$tmp/config.h"
39939 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39940 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39941 echo "$as_me: $ac_file is unchanged" >&6;}
39944 mv "$tmp/config.h" $ac_file
39947 echo "/* $configure_input */"
39951 # Compute $ac_file's index in $config_headers.
39953 for _am_header in $config_headers :; do
39954 case $_am_header in
39955 $ac_file | $ac_file:* )
39958 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39961 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39962 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39963 X$ac_file : 'X\(//\)[^/]' \| \
39964 X$ac_file : 'X\(//\)$' \| \
39965 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39971 /^X\(\/\/\)[^/].*/{
39983 s/.*/./; q'`/stamp-h$_am_stamp_count
39986 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39987 echo "$as_me: executing $ac_file commands" >&6;}
39992 case $ac_file$ac_mode in
39993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39994 # Strip MF so we end up with the name of the file.
39995 mf=`echo "$mf" | sed -e 's/:.*$//'`
39996 # Check whether this is an Automake generated Makefile or not.
39997 # We used to match only the files named `Makefile.in', but
39998 # some people rename them; so instead we look at the file content.
39999 # Grep'ing the first line is not enough: some people post-process
40000 # each Makefile.in and add a new line on top of each file to say so.
40001 # So let's grep whole file.
40002 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40003 dirpart=`$as_dirname -- "$mf" ||
40004 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40005 X"$mf" : 'X\(//\)[^/]' \| \
40006 X"$mf" : 'X\(//\)$' \| \
40007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40013 /^X\(\/\/\)[^/].*/{
40029 # Extract the definition of DEPDIR, am__include, and am__quote
40030 # from the Makefile without running `make'.
40031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40032 test -z "$DEPDIR" && continue
40033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40034 test -z "am__include" && continue
40035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40036 # When using ansi2knr, U may be empty or an underscore; expand it
40037 U=`sed -n 's/^U = //p' < "$mf"`
40038 # Find all dependency output files, they are included files with
40039 # $(DEPDIR) in their names. We invoke sed twice because it is the
40040 # simplest approach to changing $(DEPDIR) to its actual value in the
40042 for file in `sed -n "
40043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40045 # Make sure the directory exists.
40046 test -f "$dirpart/$file" && continue
40047 fdir=`$as_dirname -- "$file" ||
40048 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40049 X"$file" : 'X\(//\)[^/]' \| \
40050 X"$file" : 'X\(//\)$' \| \
40051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40057 /^X\(\/\/\)[^/].*/{
40070 { as_dir=$dirpart/$fdir
40072 -*) as_dir=./$as_dir;;
40074 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40078 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40079 *) as_qdir=$as_dir;;
40081 as_dirs="'$as_qdir' $as_dirs"
40082 as_dir=`$as_dirname -- "$as_dir" ||
40083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40084 X"$as_dir" : 'X\(//\)[^/]' \| \
40085 X"$as_dir" : 'X\(//\)$' \| \
40086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40092 /^X\(\/\/\)[^/].*/{
40105 test -d "$as_dir" && break
40107 test -z "$as_dirs" || eval "mkdir $as_dirs"
40108 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40109 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40110 { (exit 1); exit 1; }; }; }
40111 # echo "creating $dirpart/$file"
40112 echo '# dummy' > "$dirpart/$file"
40119 BACKENDSC="servers/slapd/backends.c"
40120 echo "Making $BACKENDSC"
40122 cat > $BACKENDSC << ENDX
40123 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40125 * Copyright 1998-2010 The OpenLDAP Foundation.
40126 * All rights reserved.
40128 * Redistribution and use in source and binary forms, with or without
40129 * modification, are permitted only as authorized by the OpenLDAP
40132 * A copy of this license is available in the file LICENSE in the
40133 * top-level directory of the distribution or, alternatively, at
40134 * <http://www.OpenLDAP.org/license.html>.
40136 /* This file is automatically generated by configure; please do not edit. */
40138 #include "portable.h"
40142 if test "${STATIC_BACKENDS}"; then
40143 for b in config ${STATIC_BACKENDS}; do
40144 bb=`echo "${b}" | sed -e 's/back-//'`
40145 cat >> $BACKENDSC << ENDX
40146 extern BI_init ${bb}_back_initialize;
40150 cat >> $BACKENDSC << ENDX
40152 BackendInfo slap_binfo[] = {
40155 for b in config ${STATIC_BACKENDS}; do
40156 bb=`echo "${b}" | sed -e 's/back-//'`
40157 echo " Add ${bb} ..."
40158 cat >> $BACKENDSC << ENDX
40159 { "${bb}", ${bb}_back_initialize },
40163 cat >> $BACKENDSC << ENDX
40167 /* end of generated file */
40170 OVERLAYSC="servers/slapd/overlays/statover.c"
40171 echo "Making $OVERLAYSC"
40173 cat > $OVERLAYSC << ENDX
40174 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40176 * Copyright 1998-2010 The OpenLDAP Foundation.
40177 * All rights reserved.
40179 * Redistribution and use in source and binary forms, with or without
40180 * modification, are permitted only as authorized by the OpenLDAP
40183 * A copy of this license is available in the file LICENSE in the
40184 * top-level directory of the distribution or, alternatively, at
40185 * <http://www.OpenLDAP.org/license.html>.
40187 /* This file is automatically generated by configure; please do not edit. */
40189 #include "portable.h"
40193 if test "${STATIC_OVERLAYS}"; then
40194 for o in ${STATIC_OVERLAYS}; do
40195 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40196 cat >> $OVERLAYSC << ENDX
40197 extern OV_init ${oo}_initialize;
40202 cat >> $OVERLAYSC << ENDX
40204 OverlayInit slap_oinfo[] = {
40207 if test "${STATIC_OVERLAYS}"; then
40208 for o in ${STATIC_OVERLAYS}; do
40209 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40210 echo " Add ${oo} ..."
40211 cat >> $OVERLAYSC << ENDX
40212 { "${oo}", ${oo}_initialize },
40217 cat >> $OVERLAYSC << ENDX
40221 /* end of generated file */
40224 if test "${ol_cv_mkdep}" = no; then
40225 echo '(Do not "make depend"; we do not know how to build dependencies)'
40227 echo 'Please run "make depend" to build dependencies'
40235 { (exit 0); exit 0; }
40237 chmod +x $CONFIG_STATUS
40238 ac_clean_files=$ac_clean_files_save
40241 # configure is writing to config.log, and then calls config.status.
40242 # config.status does its own redirection, appending to config.log.
40243 # Unfortunately, on DOS this fails, as config.log is still kept open
40244 # by configure, so config.status won't be able to write to it; its
40245 # output is simply discarded. So we exec the FD to /dev/null,
40246 # effectively closing config.log, so it can be properly (re)opened and
40247 # appended to by config.status. When coming back to configure, we
40248 # need to make the FD available again.
40249 if test "$no_create" != yes; then
40251 ac_config_status_args=
40252 test "$silent" = yes &&
40253 ac_config_status_args="$ac_config_status_args --quiet"
40255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40258 # would make configure fail if this is the last instruction.
40259 $ac_cs_success || { (exit 1); exit 1; }