2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.20 2009/01/26 21:16:37 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2009 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
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
961 ac_precious_vars='build_alias
972 # Initialize some variables set by options.
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name=s,x,x,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098 eval enable_$ac_feature=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1262 -site=* | --site=* | --sit=*)
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295 eval with_$ac_package=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_$ac_package=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val=\$$ac_var
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1541 if test -n "$ac_init_help"; then
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-debug enable debugging no|yes|traditional [yes]
1549 --enable-dynamic enable linking built binaries with dynamic libs [no]
1550 --enable-syslog enable syslog support [auto]
1551 --enable-proctitle enable proctitle support [yes]
1552 --enable-ipv6 enable IPv6 support [auto]
1553 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1555 SLAPD (Standalone LDAP Daemon) Options:
1556 --enable-slapd enable building slapd [yes]
1557 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1558 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1559 --enable-cleartext enable cleartext passwords [yes]
1560 --enable-crypt enable crypt(3) passwords [no]
1561 --enable-lmpasswd enable LAN Manager passwords [no]
1562 --enable-spasswd enable (Cyrus) SASL password verification [no]
1563 --enable-modules enable dynamic module support [no]
1564 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1565 --enable-rlookups enable reverse lookups of client hostnames [no]
1566 --enable-slapi enable SLAPI support (experimental) [no]
1567 --enable-slp enable SLPv2 support [no]
1568 --enable-wrappers enable tcp wrapper support [no]
1570 SLAPD Backend Options:
1571 --enable-backends enable all available backends no|yes|mod
1572 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1573 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1574 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1575 --enable-ldap enable ldap backend no|yes|mod [no]
1576 --enable-meta enable metadirectory backend no|yes|mod [no]
1577 --enable-monitor enable monitor backend no|yes|mod [yes]
1578 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1579 --enable-null enable null backend no|yes|mod [no]
1580 --enable-passwd enable passwd backend no|yes|mod [no]
1581 --enable-perl enable perl backend no|yes|mod [no]
1582 --enable-relay enable relay backend no|yes|mod [yes]
1583 --enable-shell enable shell backend no|yes|mod [no]
1584 --enable-sock enable sock backend no|yes|mod [no]
1585 --enable-sql enable sql backend no|yes|mod [no]
1587 SLAPD Overlay Options:
1588 --enable-overlays enable all available overlays no|yes|mod
1589 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1590 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1591 --enable-collect Collect overlay no|yes|mod [no]
1592 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1593 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1594 --enable-deref Dereference overlay no|yes|mod [no]
1595 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1596 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1597 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1598 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1599 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1600 --enable-refint Referential Integrity overlay no|yes|mod [no]
1601 --enable-retcode Return Code testing overlay no|yes|mod [no]
1602 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1603 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1604 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1605 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1606 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1607 --enable-valsort Value Sorting overlay no|yes|mod [no]
1609 Library Generation & Linking Options
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-dependency-tracking speeds up one-time build
1615 --enable-dependency-tracking do not reject slow dependency extractors
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-subdir=DIR change default subdirectory used for installs
1622 --with-cyrus-sasl with Cyrus SASL support [auto]
1623 --with-fetch with fetch(3) URL support [auto]
1624 --with-gssapi with GSSAPI support [auto]
1625 --with-threads with threads [auto]
1626 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1627 --with-yielding-select with implicitly yielding select [auto]
1628 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631 --with-pic try to use only PIC/non-PIC objects [default=use
1633 --with-tags[=TAGS] include additional configurations [automatic]
1635 See INSTALL file for further details.
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" || continue
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1677 .) # We are building in place.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1701 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1711 generated by GNU Autoconf 2.61
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61. Invocation command line was
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1749 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1750 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1753 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1754 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1755 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 echo "PATH: $as_dir"
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1788 ac_must_keep_next=false
1794 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796 | -silent | --silent | --silen | --sile | --sil)
1799 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805 if test $ac_must_keep_next = true; then
1806 ac_must_keep_next=false # Got value, back to normal.
1809 *=* | --config-cache | -C | -disable-* | --disable-* \
1810 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812 | -with-* | --with-* | -without-* | --without-* | --x)
1813 case "$ac_configure_args0 " in
1814 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1817 -* ) ac_must_keep_next=true ;;
1820 ac_configure_args="$ac_configure_args '$ac_arg'"
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log. We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834 # Save into config.log some information that might help in debugging.
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1844 # The following way of writing the cache mishandles newlines in values,
1846 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847 eval ac_val=\$$ac_var
1851 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1855 _ | IFS | as_nl) ;; #(
1856 *) $as_unset $ac_var ;;
1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862 *${as_nl}ac_space=\ *)
1864 "s/'\''/'\''\\\\'\'''\''/g;
1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1881 for ac_var in $ac_subst_vars
1883 eval ac_val=\$$ac_var
1885 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887 echo "$ac_var='\''$ac_val'\''"
1891 if test -n "$ac_subst_files"; then
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1898 for ac_var in $ac_subst_files
1900 eval ac_val=\$$ac_var
1902 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 echo "$ac_var='\''$ac_val'\''"
1909 if test -s confdefs.h; then
1919 test "$ac_signal" != 0 &&
1920 echo "$as_me: caught signal $ac_signal"
1921 echo "$as_me: exit $exit_status"
1923 rm -f core *.core core.conftest.* &&
1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1927 for ac_signal in 1 2 13 15; do
1928 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1935 # Predefined preprocessor variables.
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965 set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 set x "$ac_default_prefix/share/config.site" \
1970 "$ac_default_prefix/etc/config.site"
1975 if test -r "$ac_site_file"; then
1976 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1984 # Check that the precious variables saved in the cache have kept the same
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989 eval ac_new_set=\$ac_env_${ac_var}_set
1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991 eval ac_new_val=\$ac_env_${ac_var}_value
1992 case $ac_old_set,$ac_new_set in
1994 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted=: ;;
1998 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
2004 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2007 echo "$as_me: former value: $ac_old_val" >&2;}
2008 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2009 echo "$as_me: current value: $ac_new_val" >&2;}
2010 ac_cache_corrupted=:
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2016 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 *) ac_arg=$ac_var=$ac_new_val ;;
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025 if $ac_cache_corrupted; then
2026 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030 { (exit 1); exit 1; }; }
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 for ac_dir in build "$srcdir"/build; do
2084 if test -f "$ac_dir/install-sh"; then
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2088 elif test -f "$ac_dir/install.sh"; then
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2092 elif test -f "$ac_dir/shtool"; then
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117 { (exit 1); exit 1; }; }
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121 ac_cv_shtool="$ac_aux_dir/shtool"
2123 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125 { (exit 1); exit 1; }; }
2128 SHTOOL="$ac_cv_shtool"
2132 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2137 if test -d $ac_aux_dir/CVS; then
2138 OPENLDAP_CVS="(from CVS sources) "
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2176 ac_save_IFS=$IFS; IFS='-'
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2213 ac_save_IFS=$IFS; IFS='-'
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2268 program_prefix=${target_alias}-
2270 am__api_version="1.9"
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 # Account for people who put trailing slashes in PATH elements.
2297 ./ | .// | /cC/* | \
2298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2302 # OSF1 and SCO ODT 3.0 have their own names for install.
2303 # Don't use installbsd from OSF since it installs stuff as root
2305 for ac_prog in ginstall scoinst install; do
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308 if test $ac_prog = install &&
2309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # AIX install. It has an incompatible calling convention.
2312 elif test $ac_prog = install &&
2313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314 # program-specific install script used by HP pwplus--don't use.
2317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330 if test "${ac_cv_path_install+set}" = set; then
2331 INSTALL=$ac_cv_path_install
2333 # As a last resort, use the slow shell script. Don't cache a
2334 # value for INSTALL within a source directory, because that will
2335 # break other packages using the cache if that directory is
2336 # removed, or if the value is a relative name.
2337 INSTALL=$ac_install_sh
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments. Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2362 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2365 set X `ls -t $srcdir/configure conftest.file`
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2378 alias in your environment" >&2;}
2379 { (exit 1); exit 1; }; }
2382 test "$2" = conftest.file
2388 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392 { (exit 1); exit 1; }; }
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $. echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415 am_missing_run="$MISSING --run "
2418 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423 # We used to keeping the `.' as first argument, in order to
2424 # allow $(mkdir_p) to be used without argument. As in
2425 # $(mkdir_p) $(somedir)
2426 # where $(somedir) is conditionally defined. However this is wrong
2428 # 1. if the package is installed by a user who cannot write `.'
2429 # make install will fail,
2430 # 2. the above comment should most certainly read
2431 # $(mkdir_p) $(DESTDIR)$(somedir)
2432 # so it does not work when $(somedir) is undefined and
2433 # $(DESTDIR) is not.
2434 # To support the latter case, we have to write
2435 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436 # so the `.' trick is pointless.
2437 mkdir_p='mkdir -p --'
2439 # On NextStep and OpenStep, the `mkdir' command does not
2440 # recognize any option. It will interpret all options as
2441 # directories to create, and then abort because `.' already
2443 for d in ./-p ./--version;
2445 test -d $d && rmdir $d
2447 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448 if test -f "$ac_aux_dir/mkinstalldirs"; then
2449 mkdir_p='$(mkinstalldirs)'
2451 mkdir_p='$(install_sh) -d'
2455 for ac_prog in gawk mawk nawk awk
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$AWK"; then
2465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_AWK="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$AWK"; then
2486 { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2494 test -n "$AWK" && break
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.make <<\_ACEOF
2506 @echo '@@@%%%=$(MAKE)=@@@%%%'
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2511 eval ac_cv_prog_make_${ac_make}_set=yes;;
2513 eval ac_cv_prog_make_${ac_make}_set=no;;
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518 { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 SET_MAKE="MAKE=${MAKE-make}"
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2534 rmdir .tst 2>/dev/null
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538 test -f $srcdir/config.status; then
2539 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541 { (exit 1); exit 1; }; }
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546 if (cygpath --version) >/dev/null 2>/dev/null; then
2547 CYGPATH_W='cygpath -w'
2554 # Define the identity of the package.
2559 # Some tools Automake needs.
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'. However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$STRIP"; then
2591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612 { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$ac_cv_prog_STRIP"; then
2623 # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$ac_ct_STRIP"; then
2631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_STRIP="strip"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2659 if test "x$ac_ct_STRIP" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2675 STRIP="$ac_cv_prog_STRIP"
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2681 # We need awk for the "check" target. The system "awk" is bad on
2683 # Always define AMTAR for backward compatibility.
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2749 ldap_subdir="/openldap"
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754 withval=$with_subdir; case "$withval" in
2760 ldap_subdir="$withval"
2763 ldap_subdir="/$withval"
2770 # OpenLDAP --enable-debug
2772 # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774 enableval=$enable_debug;
2776 for ol_val in no yes traditional ; do
2777 if test "$enableval" = "$ol_val" ; then
2781 if test "$ol_arg" = "invalid" ; then
2782 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784 { (exit 1); exit 1; }; }
2786 ol_enable_debug="$ol_arg"
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2795 # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797 enableval=$enable_dynamic;
2799 for ol_val in auto yes no ; do
2800 if test "$enableval" = "$ol_val" ; then
2804 if test "$ol_arg" = "invalid" ; then
2805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807 { (exit 1); exit 1; }; }
2809 ol_enable_dynamic="$ol_arg"
2812 ol_enable_dynamic=no
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2818 # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820 enableval=$enable_syslog;
2822 for ol_val in auto yes no ; do
2823 if test "$enableval" = "$ol_val" ; then
2827 if test "$ol_arg" = "invalid" ; then
2828 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830 { (exit 1); exit 1; }; }
2832 ol_enable_syslog="$ol_arg"
2835 ol_enable_syslog=auto
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2841 # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843 enableval=$enable_proctitle;
2845 for ol_val in auto yes no ; do
2846 if test "$enableval" = "$ol_val" ; then
2850 if test "$ol_arg" = "invalid" ; then
2851 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853 { (exit 1); exit 1; }; }
2855 ol_enable_proctitle="$ol_arg"
2858 ol_enable_proctitle=yes
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2865 # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867 enableval=$enable_ipv6;
2869 for ol_val in auto yes no ; do
2870 if test "$enableval" = "$ol_val" ; then
2874 if test "$ol_arg" = "invalid" ; then
2875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877 { (exit 1); exit 1; }; }
2879 ol_enable_ipv6="$ol_arg"
2886 # OpenLDAP --enable-local
2888 # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890 enableval=$enable_local;
2892 for ol_val in auto yes no ; do
2893 if test "$enableval" = "$ol_val" ; then
2897 if test "$ol_arg" = "invalid" ; then
2898 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900 { (exit 1); exit 1; }; }
2902 ol_enable_local="$ol_arg"
2905 ol_enable_local=auto
2908 # end --enable-local
2910 # OpenLDAP --with-cyrus_sasl
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914 withval=$with_cyrus_sasl;
2916 for ol_val in auto yes no ; do
2917 if test "$withval" = "$ol_val" ; then
2921 if test "$ol_arg" = "invalid" ; then
2922 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924 { (exit 1); exit 1; }; }
2926 ol_with_cyrus_sasl="$ol_arg"
2929 ol_with_cyrus_sasl="auto"
2931 # end --with-cyrus_sasl
2933 # OpenLDAP --with-fetch
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937 withval=$with_fetch;
2939 for ol_val in auto yes no ; do
2940 if test "$withval" = "$ol_val" ; then
2944 if test "$ol_arg" = "invalid" ; then
2945 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947 { (exit 1); exit 1; }; }
2949 ol_with_fetch="$ol_arg"
2952 ol_with_fetch="auto"
2956 # OpenLDAP --with-gssapi
2958 # Check whether --with-gssapi was given.
2959 if test "${with_gssapi+set}" = set; then
2960 withval=$with_gssapi;
2962 for ol_val in auto yes no ; do
2963 if test "$withval" = "$ol_val" ; then
2967 if test "$ol_arg" = "invalid" ; then
2968 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2969 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2970 { (exit 1); exit 1; }; }
2972 ol_with_gssapi="$ol_arg"
2975 ol_with_gssapi="auto"
2979 # OpenLDAP --with-threads
2981 # Check whether --with-threads was given.
2982 if test "${with_threads+set}" = set; then
2983 withval=$with_threads;
2985 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2986 if test "$withval" = "$ol_val" ; then
2990 if test "$ol_arg" = "invalid" ; then
2991 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2992 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2993 { (exit 1); exit 1; }; }
2995 ol_with_threads="$ol_arg"
2998 ol_with_threads="auto"
3000 # end --with-threads
3002 # OpenLDAP --with-tls
3004 # Check whether --with-tls was given.
3005 if test "${with_tls+set}" = set; then
3008 for ol_val in auto openssl gnutls yes no ; do
3009 if test "$withval" = "$ol_val" ; then
3013 if test "$ol_arg" = "invalid" ; then
3014 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3015 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3016 { (exit 1); exit 1; }; }
3018 ol_with_tls="$ol_arg"
3025 # OpenLDAP --with-yielding_select
3027 # Check whether --with-yielding_select was given.
3028 if test "${with_yielding_select+set}" = set; then
3029 withval=$with_yielding_select;
3031 for ol_val in auto yes no manual ; do
3032 if test "$withval" = "$ol_val" ; then
3036 if test "$ol_arg" = "invalid" ; then
3037 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3038 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3039 { (exit 1); exit 1; }; }
3041 ol_with_yielding_select="$ol_arg"
3044 ol_with_yielding_select="auto"
3046 # end --with-yielding_select
3048 # OpenLDAP --with-mp
3050 # Check whether --with-mp was given.
3051 if test "${with_mp+set}" = set; then
3054 for ol_val in auto longlong long bignum gmp yes no ; do
3055 if test "$withval" = "$ol_val" ; then
3059 if test "$ol_arg" = "invalid" ; then
3060 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3061 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3062 { (exit 1); exit 1; }; }
3064 ol_with_mp="$ol_arg"
3071 # OpenLDAP --with-odbc
3073 # Check whether --with-odbc was given.
3074 if test "${with_odbc+set}" = set; then
3077 for ol_val in auto iodbc unixodbc odbc32 ; do
3078 if test "$withval" = "$ol_val" ; then
3082 if test "$ol_arg" = "invalid" ; then
3083 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3084 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3085 { (exit 1); exit 1; }; }
3087 ol_with_odbc="$ol_arg"
3096 # Check whether --enable-xxslapdoptions was given.
3097 if test "${enable_xxslapdoptions+set}" = set; then
3098 enableval=$enable_xxslapdoptions;
3101 # OpenLDAP --enable-slapd
3103 # Check whether --enable-slapd was given.
3104 if test "${enable_slapd+set}" = set; then
3105 enableval=$enable_slapd;
3107 for ol_val in auto yes no ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_slapd="$ol_arg"
3123 # end --enable-slapd
3124 # OpenLDAP --enable-dynacl
3126 # Check whether --enable-dynacl was given.
3127 if test "${enable_dynacl+set}" = set; then
3128 enableval=$enable_dynacl;
3130 for ol_val in auto yes no ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_dynacl="$ol_arg"
3146 # end --enable-dynacl
3147 # OpenLDAP --enable-aci
3149 # Check whether --enable-aci was given.
3150 if test "${enable_aci+set}" = set; then
3151 enableval=$enable_aci;
3153 for ol_val in no yes mod ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_aci="$ol_arg"
3170 # OpenLDAP --enable-cleartext
3172 # Check whether --enable-cleartext was given.
3173 if test "${enable_cleartext+set}" = set; then
3174 enableval=$enable_cleartext;
3176 for ol_val in auto yes no ; do
3177 if test "$enableval" = "$ol_val" ; then
3181 if test "$ol_arg" = "invalid" ; then
3182 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3184 { (exit 1); exit 1; }; }
3186 ol_enable_cleartext="$ol_arg"
3189 ol_enable_cleartext=yes
3192 # end --enable-cleartext
3193 # OpenLDAP --enable-crypt
3195 # Check whether --enable-crypt was given.
3196 if test "${enable_crypt+set}" = set; then
3197 enableval=$enable_crypt;
3199 for ol_val in auto yes no ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_crypt="$ol_arg"
3215 # end --enable-crypt
3216 # OpenLDAP --enable-lmpasswd
3218 # Check whether --enable-lmpasswd was given.
3219 if test "${enable_lmpasswd+set}" = set; then
3220 enableval=$enable_lmpasswd;
3222 for ol_val in auto yes no ; do
3223 if test "$enableval" = "$ol_val" ; then
3227 if test "$ol_arg" = "invalid" ; then
3228 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3230 { (exit 1); exit 1; }; }
3232 ol_enable_lmpasswd="$ol_arg"
3235 ol_enable_lmpasswd=no
3238 # end --enable-lmpasswd
3239 # OpenLDAP --enable-spasswd
3241 # Check whether --enable-spasswd was given.
3242 if test "${enable_spasswd+set}" = set; then
3243 enableval=$enable_spasswd;
3245 for ol_val in auto yes no ; do
3246 if test "$enableval" = "$ol_val" ; then
3250 if test "$ol_arg" = "invalid" ; then
3251 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_spasswd="$ol_arg"
3258 ol_enable_spasswd=no
3261 # end --enable-spasswd
3262 # OpenLDAP --enable-modules
3264 # Check whether --enable-modules was given.
3265 if test "${enable_modules+set}" = set; then
3266 enableval=$enable_modules;
3268 for ol_val in auto yes no ; do
3269 if test "$enableval" = "$ol_val" ; then
3273 if test "$ol_arg" = "invalid" ; then
3274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3276 { (exit 1); exit 1; }; }
3278 ol_enable_modules="$ol_arg"
3281 ol_enable_modules=no
3284 # end --enable-modules
3285 # OpenLDAP --enable-rewrite
3287 # Check whether --enable-rewrite was given.
3288 if test "${enable_rewrite+set}" = set; then
3289 enableval=$enable_rewrite;
3291 for ol_val in auto yes no ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_rewrite="$ol_arg"
3304 ol_enable_rewrite=auto
3307 # end --enable-rewrite
3308 # OpenLDAP --enable-rlookups
3310 # Check whether --enable-rlookups was given.
3311 if test "${enable_rlookups+set}" = set; then
3312 enableval=$enable_rlookups;
3314 for ol_val in auto yes no ; do
3315 if test "$enableval" = "$ol_val" ; then
3319 if test "$ol_arg" = "invalid" ; then
3320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_rlookups="$ol_arg"
3327 ol_enable_rlookups=no
3330 # end --enable-rlookups
3331 # OpenLDAP --enable-slapi
3333 # Check whether --enable-slapi was given.
3334 if test "${enable_slapi+set}" = set; then
3335 enableval=$enable_slapi;
3337 for ol_val in auto yes no ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_slapi="$ol_arg"
3353 # end --enable-slapi
3354 # OpenLDAP --enable-slp
3356 # Check whether --enable-slp was given.
3357 if test "${enable_slp+set}" = set; then
3358 enableval=$enable_slp;
3360 for ol_val in auto yes no ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_slp="$ol_arg"
3377 # OpenLDAP --enable-wrappers
3379 # Check whether --enable-wrappers was given.
3380 if test "${enable_wrappers+set}" = set; then
3381 enableval=$enable_wrappers;
3383 for ol_val in auto yes no ; do
3384 if test "$enableval" = "$ol_val" ; then
3388 if test "$ol_arg" = "invalid" ; then
3389 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3390 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3391 { (exit 1); exit 1; }; }
3393 ol_enable_wrappers="$ol_arg"
3396 ol_enable_wrappers=no
3399 # end --enable-wrappers
3416 # Check whether --enable-xxslapbackends was given.
3417 if test "${enable_xxslapbackends+set}" = set; then
3418 enableval=$enable_xxslapbackends;
3422 # OpenLDAP --enable-backends
3424 # Check whether --enable-backends was given.
3425 if test "${enable_backends+set}" = set; then
3426 enableval=$enable_backends;
3428 for ol_val in no yes mod ; do
3429 if test "$enableval" = "$ol_val" ; then
3433 if test "$ol_arg" = "invalid" ; then
3434 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3435 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3436 { (exit 1); exit 1; }; }
3438 ol_enable_backends="$ol_arg"
3442 # end --enable-backends
3443 # OpenLDAP --enable-bdb
3445 # Check whether --enable-bdb was given.
3446 if test "${enable_bdb+set}" = set; then
3447 enableval=$enable_bdb;
3449 for ol_val in no yes mod ; do
3450 if test "$enableval" = "$ol_val" ; then
3454 if test "$ol_arg" = "invalid" ; then
3455 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3457 { (exit 1); exit 1; }; }
3459 ol_enable_bdb="$ol_arg"
3462 ol_enable_bdb=${ol_enable_backends:-yes}
3466 # OpenLDAP --enable-dnssrv
3468 # Check whether --enable-dnssrv was given.
3469 if test "${enable_dnssrv+set}" = set; then
3470 enableval=$enable_dnssrv;
3472 for ol_val in no yes mod ; do
3473 if test "$enableval" = "$ol_val" ; then
3477 if test "$ol_arg" = "invalid" ; then
3478 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3480 { (exit 1); exit 1; }; }
3482 ol_enable_dnssrv="$ol_arg"
3485 ol_enable_dnssrv=${ol_enable_backends:-no}
3488 # end --enable-dnssrv
3489 # OpenLDAP --enable-hdb
3491 # Check whether --enable-hdb was given.
3492 if test "${enable_hdb+set}" = set; then
3493 enableval=$enable_hdb;
3495 for ol_val in no yes mod ; do
3496 if test "$enableval" = "$ol_val" ; then
3500 if test "$ol_arg" = "invalid" ; then
3501 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3503 { (exit 1); exit 1; }; }
3505 ol_enable_hdb="$ol_arg"
3508 ol_enable_hdb=${ol_enable_backends:-yes}
3512 # OpenLDAP --enable-ldap
3514 # Check whether --enable-ldap was given.
3515 if test "${enable_ldap+set}" = set; then
3516 enableval=$enable_ldap;
3518 for ol_val in no yes mod ; do
3519 if test "$enableval" = "$ol_val" ; then
3523 if test "$ol_arg" = "invalid" ; then
3524 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3526 { (exit 1); exit 1; }; }
3528 ol_enable_ldap="$ol_arg"
3531 ol_enable_ldap=${ol_enable_backends:-no}
3535 # OpenLDAP --enable-meta
3537 # Check whether --enable-meta was given.
3538 if test "${enable_meta+set}" = set; then
3539 enableval=$enable_meta;
3541 for ol_val in no yes mod ; do
3542 if test "$enableval" = "$ol_val" ; then
3546 if test "$ol_arg" = "invalid" ; then
3547 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_meta="$ol_arg"
3554 ol_enable_meta=${ol_enable_backends:-no}
3558 # OpenLDAP --enable-monitor
3560 # Check whether --enable-monitor was given.
3561 if test "${enable_monitor+set}" = set; then
3562 enableval=$enable_monitor;
3564 for ol_val in no yes mod ; do
3565 if test "$enableval" = "$ol_val" ; then
3569 if test "$ol_arg" = "invalid" ; then
3570 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3572 { (exit 1); exit 1; }; }
3574 ol_enable_monitor="$ol_arg"
3577 ol_enable_monitor=${ol_enable_backends:-yes}
3580 # end --enable-monitor
3581 # OpenLDAP --enable-ndb
3583 # Check whether --enable-ndb was given.
3584 if test "${enable_ndb+set}" = set; then
3585 enableval=$enable_ndb;
3587 for ol_val in no yes mod ; do
3588 if test "$enableval" = "$ol_val" ; then
3592 if test "$ol_arg" = "invalid" ; then
3593 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3595 { (exit 1); exit 1; }; }
3597 ol_enable_ndb="$ol_arg"
3600 ol_enable_ndb=${ol_enable_backends:-no}
3604 # OpenLDAP --enable-null
3606 # Check whether --enable-null was given.
3607 if test "${enable_null+set}" = set; then
3608 enableval=$enable_null;
3610 for ol_val in no yes mod ; do
3611 if test "$enableval" = "$ol_val" ; then
3615 if test "$ol_arg" = "invalid" ; then
3616 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3618 { (exit 1); exit 1; }; }
3620 ol_enable_null="$ol_arg"
3623 ol_enable_null=${ol_enable_backends:-no}
3627 # OpenLDAP --enable-passwd
3629 # Check whether --enable-passwd was given.
3630 if test "${enable_passwd+set}" = set; then
3631 enableval=$enable_passwd;
3633 for ol_val in no yes mod ; do
3634 if test "$enableval" = "$ol_val" ; then
3638 if test "$ol_arg" = "invalid" ; then
3639 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3641 { (exit 1); exit 1; }; }
3643 ol_enable_passwd="$ol_arg"
3646 ol_enable_passwd=${ol_enable_backends:-no}
3649 # end --enable-passwd
3650 # OpenLDAP --enable-perl
3652 # Check whether --enable-perl was given.
3653 if test "${enable_perl+set}" = set; then
3654 enableval=$enable_perl;
3656 for ol_val in no yes mod ; do
3657 if test "$enableval" = "$ol_val" ; then
3661 if test "$ol_arg" = "invalid" ; then
3662 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3664 { (exit 1); exit 1; }; }
3666 ol_enable_perl="$ol_arg"
3669 ol_enable_perl=${ol_enable_backends:-no}
3673 # OpenLDAP --enable-relay
3675 # Check whether --enable-relay was given.
3676 if test "${enable_relay+set}" = set; then
3677 enableval=$enable_relay;
3679 for ol_val in no yes mod ; do
3680 if test "$enableval" = "$ol_val" ; then
3684 if test "$ol_arg" = "invalid" ; then
3685 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3687 { (exit 1); exit 1; }; }
3689 ol_enable_relay="$ol_arg"
3692 ol_enable_relay=${ol_enable_backends:-yes}
3695 # end --enable-relay
3696 # OpenLDAP --enable-shell
3698 # Check whether --enable-shell was given.
3699 if test "${enable_shell+set}" = set; then
3700 enableval=$enable_shell;
3702 for ol_val in no yes mod ; do
3703 if test "$enableval" = "$ol_val" ; then
3707 if test "$ol_arg" = "invalid" ; then
3708 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3710 { (exit 1); exit 1; }; }
3712 ol_enable_shell="$ol_arg"
3715 ol_enable_shell=${ol_enable_backends:-no}
3718 # end --enable-shell
3719 # OpenLDAP --enable-sock
3721 # Check whether --enable-sock was given.
3722 if test "${enable_sock+set}" = set; then
3723 enableval=$enable_sock;
3725 for ol_val in no yes mod ; do
3726 if test "$enableval" = "$ol_val" ; then
3730 if test "$ol_arg" = "invalid" ; then
3731 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3733 { (exit 1); exit 1; }; }
3735 ol_enable_sock="$ol_arg"
3738 ol_enable_sock=${ol_enable_backends:-no}
3742 # OpenLDAP --enable-sql
3744 # Check whether --enable-sql was given.
3745 if test "${enable_sql+set}" = set; then
3746 enableval=$enable_sql;
3748 for ol_val in no yes mod ; do
3749 if test "$enableval" = "$ol_val" ; then
3753 if test "$ol_arg" = "invalid" ; then
3754 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3755 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3756 { (exit 1); exit 1; }; }
3758 ol_enable_sql="$ol_arg"
3761 ol_enable_sql=${ol_enable_backends:-no}
3766 Overlays="accesslog \
3786 # Check whether --enable-xxslapoverlays was given.
3787 if test "${enable_xxslapoverlays+set}" = set; then
3788 enableval=$enable_xxslapoverlays;
3792 # OpenLDAP --enable-overlays
3794 # Check whether --enable-overlays was given.
3795 if test "${enable_overlays+set}" = set; then
3796 enableval=$enable_overlays;
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-overlays" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3806 { (exit 1); exit 1; }; }
3808 ol_enable_overlays="$ol_arg"
3812 # end --enable-overlays
3813 # OpenLDAP --enable-accesslog
3815 # Check whether --enable-accesslog was given.
3816 if test "${enable_accesslog+set}" = set; then
3817 enableval=$enable_accesslog;
3819 for ol_val in no yes mod ; do
3820 if test "$enableval" = "$ol_val" ; then
3824 if test "$ol_arg" = "invalid" ; then
3825 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3826 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3827 { (exit 1); exit 1; }; }
3829 ol_enable_accesslog="$ol_arg"
3832 ol_enable_accesslog=${ol_enable_overlays:-no}
3835 # end --enable-accesslog
3837 # OpenLDAP --enable-auditlog
3839 # Check whether --enable-auditlog was given.
3840 if test "${enable_auditlog+set}" = set; then
3841 enableval=$enable_auditlog;
3843 for ol_val in no yes mod ; do
3844 if test "$enableval" = "$ol_val" ; then
3848 if test "$ol_arg" = "invalid" ; then
3849 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3850 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3851 { (exit 1); exit 1; }; }
3853 ol_enable_auditlog="$ol_arg"
3856 ol_enable_auditlog=${ol_enable_overlays:-no}
3859 # end --enable-auditlog
3861 # OpenLDAP --enable-collect
3863 # Check whether --enable-collect was given.
3864 if test "${enable_collect+set}" = set; then
3865 enableval=$enable_collect;
3867 for ol_val in no yes mod ; do
3868 if test "$enableval" = "$ol_val" ; then
3872 if test "$ol_arg" = "invalid" ; then
3873 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3874 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3875 { (exit 1); exit 1; }; }
3877 ol_enable_collect="$ol_arg"
3880 ol_enable_collect=${ol_enable_overlays:-no}
3883 # end --enable-collect
3885 # OpenLDAP --enable-constraint
3887 # Check whether --enable-constraint was given.
3888 if test "${enable_constraint+set}" = set; then
3889 enableval=$enable_constraint;
3891 for ol_val in no yes mod ; do
3892 if test "$enableval" = "$ol_val" ; then
3896 if test "$ol_arg" = "invalid" ; then
3897 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3898 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3899 { (exit 1); exit 1; }; }
3901 ol_enable_constraint="$ol_arg"
3904 ol_enable_constraint=${ol_enable_overlays:-no}
3907 # end --enable-constraint
3909 # OpenLDAP --enable-dds
3911 # Check whether --enable-dds was given.
3912 if test "${enable_dds+set}" = set; then
3913 enableval=$enable_dds;
3915 for ol_val in no yes mod ; do
3916 if test "$enableval" = "$ol_val" ; then
3920 if test "$ol_arg" = "invalid" ; then
3921 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3922 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3923 { (exit 1); exit 1; }; }
3925 ol_enable_dds="$ol_arg"
3928 ol_enable_dds=${ol_enable_overlays:-no}
3933 # OpenLDAP --enable-deref
3935 # Check whether --enable-deref was given.
3936 if test "${enable_deref+set}" = set; then
3937 enableval=$enable_deref;
3939 for ol_val in no yes mod ; do
3940 if test "$enableval" = "$ol_val" ; then
3944 if test "$ol_arg" = "invalid" ; then
3945 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3946 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3947 { (exit 1); exit 1; }; }
3949 ol_enable_deref="$ol_arg"
3952 ol_enable_deref=${ol_enable_overlays:-no}
3955 # end --enable-deref
3957 # OpenLDAP --enable-dyngroup
3959 # Check whether --enable-dyngroup was given.
3960 if test "${enable_dyngroup+set}" = set; then
3961 enableval=$enable_dyngroup;
3963 for ol_val in no yes mod ; do
3964 if test "$enableval" = "$ol_val" ; then
3968 if test "$ol_arg" = "invalid" ; then
3969 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3970 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3971 { (exit 1); exit 1; }; }
3973 ol_enable_dyngroup="$ol_arg"
3976 ol_enable_dyngroup=${ol_enable_overlays:-no}
3979 # end --enable-dyngroup
3981 # OpenLDAP --enable-dynlist
3983 # Check whether --enable-dynlist was given.
3984 if test "${enable_dynlist+set}" = set; then
3985 enableval=$enable_dynlist;
3987 for ol_val in no yes mod ; do
3988 if test "$enableval" = "$ol_val" ; then
3992 if test "$ol_arg" = "invalid" ; then
3993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3994 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3995 { (exit 1); exit 1; }; }
3997 ol_enable_dynlist="$ol_arg"
4000 ol_enable_dynlist=${ol_enable_overlays:-no}
4003 # end --enable-dynlist
4005 # OpenLDAP --enable-memberof
4007 # Check whether --enable-memberof was given.
4008 if test "${enable_memberof+set}" = set; then
4009 enableval=$enable_memberof;
4011 for ol_val in no yes mod ; do
4012 if test "$enableval" = "$ol_val" ; then
4016 if test "$ol_arg" = "invalid" ; then
4017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4018 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4019 { (exit 1); exit 1; }; }
4021 ol_enable_memberof="$ol_arg"
4024 ol_enable_memberof=${ol_enable_overlays:-no}
4027 # end --enable-memberof
4029 # OpenLDAP --enable-ppolicy
4031 # Check whether --enable-ppolicy was given.
4032 if test "${enable_ppolicy+set}" = set; then
4033 enableval=$enable_ppolicy;
4035 for ol_val in no yes mod ; do
4036 if test "$enableval" = "$ol_val" ; then
4040 if test "$ol_arg" = "invalid" ; then
4041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4042 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4043 { (exit 1); exit 1; }; }
4045 ol_enable_ppolicy="$ol_arg"
4048 ol_enable_ppolicy=${ol_enable_overlays:-no}
4051 # end --enable-ppolicy
4053 # OpenLDAP --enable-proxycache
4055 # Check whether --enable-proxycache was given.
4056 if test "${enable_proxycache+set}" = set; then
4057 enableval=$enable_proxycache;
4059 for ol_val in no yes mod ; do
4060 if test "$enableval" = "$ol_val" ; then
4064 if test "$ol_arg" = "invalid" ; then
4065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4066 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4067 { (exit 1); exit 1; }; }
4069 ol_enable_proxycache="$ol_arg"
4072 ol_enable_proxycache=${ol_enable_overlays:-no}
4075 # end --enable-proxycache
4077 # OpenLDAP --enable-refint
4079 # Check whether --enable-refint was given.
4080 if test "${enable_refint+set}" = set; then
4081 enableval=$enable_refint;
4083 for ol_val in no yes mod ; do
4084 if test "$enableval" = "$ol_val" ; then
4088 if test "$ol_arg" = "invalid" ; then
4089 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4090 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4091 { (exit 1); exit 1; }; }
4093 ol_enable_refint="$ol_arg"
4096 ol_enable_refint=${ol_enable_overlays:-no}
4099 # end --enable-refint
4101 # OpenLDAP --enable-retcode
4103 # Check whether --enable-retcode was given.
4104 if test "${enable_retcode+set}" = set; then
4105 enableval=$enable_retcode;
4107 for ol_val in no yes mod ; do
4108 if test "$enableval" = "$ol_val" ; then
4112 if test "$ol_arg" = "invalid" ; then
4113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4114 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4115 { (exit 1); exit 1; }; }
4117 ol_enable_retcode="$ol_arg"
4120 ol_enable_retcode=${ol_enable_overlays:-no}
4123 # end --enable-retcode
4125 # OpenLDAP --enable-rwm
4127 # Check whether --enable-rwm was given.
4128 if test "${enable_rwm+set}" = set; then
4129 enableval=$enable_rwm;
4131 for ol_val in no yes mod ; do
4132 if test "$enableval" = "$ol_val" ; then
4136 if test "$ol_arg" = "invalid" ; then
4137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4138 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4139 { (exit 1); exit 1; }; }
4141 ol_enable_rwm="$ol_arg"
4144 ol_enable_rwm=${ol_enable_overlays:-no}
4149 # OpenLDAP --enable-seqmod
4151 # Check whether --enable-seqmod was given.
4152 if test "${enable_seqmod+set}" = set; then
4153 enableval=$enable_seqmod;
4155 for ol_val in no yes mod ; do
4156 if test "$enableval" = "$ol_val" ; then
4160 if test "$ol_arg" = "invalid" ; then
4161 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4162 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4163 { (exit 1); exit 1; }; }
4165 ol_enable_seqmod="$ol_arg"
4168 ol_enable_seqmod=${ol_enable_overlays:-yes}
4171 # end --enable-seqmod
4173 # OpenLDAP --enable-syncprov
4175 # Check whether --enable-syncprov was given.
4176 if test "${enable_syncprov+set}" = set; then
4177 enableval=$enable_syncprov;
4179 for ol_val in no yes mod ; do
4180 if test "$enableval" = "$ol_val" ; then
4184 if test "$ol_arg" = "invalid" ; then
4185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4187 { (exit 1); exit 1; }; }
4189 ol_enable_syncprov="$ol_arg"
4192 ol_enable_syncprov=${ol_enable_overlays:-yes}
4195 # end --enable-syncprov
4197 # OpenLDAP --enable-translucent
4199 # Check whether --enable-translucent was given.
4200 if test "${enable_translucent+set}" = set; then
4201 enableval=$enable_translucent;
4203 for ol_val in no yes mod ; do
4204 if test "$enableval" = "$ol_val" ; then
4208 if test "$ol_arg" = "invalid" ; then
4209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4211 { (exit 1); exit 1; }; }
4213 ol_enable_translucent="$ol_arg"
4216 ol_enable_translucent=${ol_enable_overlays:-no}
4219 # end --enable-translucent
4221 # OpenLDAP --enable-unique
4223 # Check whether --enable-unique was given.
4224 if test "${enable_unique+set}" = set; then
4225 enableval=$enable_unique;
4227 for ol_val in no yes mod ; do
4228 if test "$enableval" = "$ol_val" ; then
4232 if test "$ol_arg" = "invalid" ; then
4233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4235 { (exit 1); exit 1; }; }
4237 ol_enable_unique="$ol_arg"
4240 ol_enable_unique=${ol_enable_overlays:-no}
4243 # end --enable-unique
4245 # OpenLDAP --enable-valsort
4247 # Check whether --enable-valsort was given.
4248 if test "${enable_valsort+set}" = set; then
4249 enableval=$enable_valsort;
4251 for ol_val in no yes mod ; do
4252 if test "$enableval" = "$ol_val" ; then
4256 if test "$ol_arg" = "invalid" ; then
4257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4259 { (exit 1); exit 1; }; }
4261 ol_enable_valsort="$ol_arg"
4264 ol_enable_valsort=${ol_enable_overlays:-no}
4267 # end --enable-valsort
4270 # Check whether --enable-xxliboptions was given.
4271 if test "${enable_xxliboptions+set}" = set; then
4272 enableval=$enable_xxliboptions;
4275 # Check whether --enable-static was given.
4276 if test "${enable_static+set}" = set; then
4277 enableval=$enable_static; p=${PACKAGE-default}
4279 yes) enable_static=yes ;;
4280 no) enable_static=no ;;
4283 # Look at the argument we got. We use all the common list separators.
4284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4285 for pkg in $enableval; do
4287 if test "X$pkg" = "X$p"; then
4299 # Check whether --enable-shared was given.
4300 if test "${enable_shared+set}" = set; then
4301 enableval=$enable_shared; p=${PACKAGE-default}
4303 yes) enable_shared=yes ;;
4304 no) enable_shared=no ;;
4307 # Look at the argument we got. We use all the common list separators.
4308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309 for pkg in $enableval; do
4311 if test "X$pkg" = "X$p"; then
4326 if test $ol_enable_slapd = no ; then
4327 if test $ol_enable_slapi = yes ; then
4328 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4329 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4331 case "$ol_enable_backends" in yes | mod)
4332 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4333 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4335 for i in $Backends; do
4336 eval "ol_tmp=\$ol_enable_$i"
4337 if test $ol_tmp != no ; then
4338 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4339 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4340 eval "ol_enable_$i=no"
4343 if test $ol_enable_modules = yes ; then
4344 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4345 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4347 if test $ol_enable_wrappers = yes ; then
4348 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4349 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4351 if test $ol_enable_rlookups = yes ; then
4352 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4355 if test $ol_enable_dynacl = yes ; then
4356 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4359 if test $ol_enable_aci != no ; then
4360 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4361 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4363 if test $ol_enable_rewrite = yes ; then
4364 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4365 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4367 case "$ol_enable_overlays" in yes | mod)
4368 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4371 for i in $Overlays; do
4372 eval "ol_tmp=\$ol_enable_$i"
4373 if test $ol_tmp != no ; then
4374 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4375 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4376 eval "ol_enable_$i=no"
4380 # force settings to no
4385 ol_enable_modules=no
4386 ol_enable_rlookups=no
4389 ol_enable_wrappers=no
4391 ol_enable_rewrite=no
4393 elif test $ol_enable_modules != yes &&
4394 test $ol_enable_bdb = no &&
4395 test $ol_enable_dnssrv = no &&
4396 test $ol_enable_hdb = no &&
4397 test $ol_enable_ldap = no &&
4398 test $ol_enable_meta = no &&
4399 test $ol_enable_monitor = no &&
4400 test $ol_enable_ndb = no &&
4401 test $ol_enable_null = no &&
4402 test $ol_enable_passwd = no &&
4403 test $ol_enable_perl = no &&
4404 test $ol_enable_relay = no &&
4405 test $ol_enable_shell = no &&
4406 test $ol_enable_sock = no &&
4407 test $ol_enable_sql = no ; then
4409 if test $ol_enable_slapd = yes ; then
4410 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4411 echo "$as_me: error: slapd requires a backend" >&2;}
4412 { (exit 1); exit 1; }; }
4414 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4415 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4420 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4421 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4422 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4423 { (exit 1); exit 1; }; }
4426 if test $ol_enable_lmpasswd = yes ; then
4427 if test $ol_with_tls = no ; then
4428 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4429 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4430 { (exit 1); exit 1; }; }
4434 if test $ol_enable_spasswd = yes ; then
4435 if test $ol_with_cyrus_sasl = no ; then
4436 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4437 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4438 { (exit 1); exit 1; }; }
4440 ol_with_cyrus_sasl=yes
4443 { echo "$as_me:$LINENO: result: done" >&5
4444 echo "${ECHO_T}done" >&6; }
4493 BUILD_TRANSLUCENT=no
4497 SLAPD_STATIC_OVERLAYS=
4498 SLAPD_DYNAMIC_OVERLAYS=
4500 SLAPD_MODULES_LDFLAGS=
4501 SLAPD_MODULES_CPPFLAGS=
4503 SLAPD_STATIC_BACKENDS=back-ldif
4504 SLAPD_DYNAMIC_BACKENDS=
4531 cat >>confdefs.h <<\_ACEOF
4532 #define HAVE_MKVERSION 1
4540 *-*-aix*) if test -z "$CC" ; then
4541 case "$ol_with_threads" in
4542 auto | yes | posix) ol_aix_threads=yes ;;
4548 if test $ol_aix_threads = yes ; then
4549 if test -z "${CC}" ; then
4550 for ac_prog in cc_r xlc_r cc
4552 # Extract the first word of "$ac_prog", so it can be a program name with args.
4553 set dummy $ac_prog; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CC="$ac_prog"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$CC"; then
4581 { echo "$as_me:$LINENO: result: $CC" >&5
4582 echo "${ECHO_T}$CC" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 test -n "$CC" && break
4593 if test "$CC" = cc ; then
4594 if test $ol_with_threads != auto ; then
4595 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4596 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4597 { (exit 1); exit 1; }; }
4599 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4600 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4606 case ${CC} in cc_r | xlc_r)
4607 ol_with_threads=posix
4608 ol_cv_pthread_create=yes
4613 if test -z "${CC}"; then
4614 for ac_prog in cc gcc
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CC="$ac_prog"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$CC"; then
4645 { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4653 test -n "$CC" && break
4655 test -n "$CC" || CC="missing"
4658 if test "${CC}" = "missing" ; then
4659 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4660 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4661 { (exit 1); exit 1; }; }
4665 if test -z "${AR}"; then
4666 for ac_prog in ar gar
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_AR+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$AR"; then
4676 ac_cv_prog_AR="$AR" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_AR="$ac_prog"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 if test -n "$AR"; then
4697 { echo "$as_me:$LINENO: result: $AR" >&5
4698 echo "${ECHO_T}$AR" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4705 test -n "$AR" && break
4707 test -n "$AR" || AR="missing"
4710 if test "${AR}" = "missing" ; then
4711 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4712 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4713 { (exit 1); exit 1; }; }
4721 # Check whether --enable-fast-install was given.
4722 if test "${enable_fast_install+set}" = set; then
4723 enableval=$enable_fast_install; p=${PACKAGE-default}
4725 yes) enable_fast_install=yes ;;
4726 no) enable_fast_install=no ;;
4728 enable_fast_install=no
4729 # Look at the argument we got. We use all the common list separators.
4730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4731 for pkg in $enableval; do
4733 if test "X$pkg" = "X$p"; then
4734 enable_fast_install=yes
4741 enable_fast_install=yes
4745 DEPDIR="${am__leading_dot}deps"
4747 ac_config_commands="$ac_config_commands depfiles"
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4756 # If we don't find an include directive, just comment out the code.
4757 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776 echo '.include "confinc"' > confmf
4777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778 am__include=.include
4785 { echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6; }
4787 rm -f confinc confmf
4789 # Check whether --enable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791 enableval=$enable_dependency_tracking;
4794 if test "x$enable_dependency_tracking" != xno; then
4795 am_depcomp="$ac_aux_dir/depcomp"
4800 if test "x$enable_dependency_tracking" != xno; then
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 if test -n "$CC"; then
4845 { echo "$as_me:$LINENO: result: $CC" >&5
4846 echo "${ECHO_T}$CC" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4854 if test -z "$ac_cv_prog_CC"; then
4856 # Extract the first word of "gcc", so it can be a program name with args.
4857 set dummy gcc; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CC="gcc"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4886 echo "${ECHO_T}$ac_ct_CC" >&6; }
4888 { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4892 if test "x$ac_ct_CC" = x; then
4895 case $cross_compiling:$ac_tool_warned in
4897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4898 whose name does not start with the host triplet. If you think this
4899 configuration is useful to you, please write to autoconf@gnu.org." >&5
4900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4901 whose name does not start with the host triplet. If you think this
4902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4903 ac_tool_warned=yes ;;
4911 if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$CC"; then
4921 ac_cv_prog_CC="$CC" # Let the user override the test.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_CC="${ac_tool_prefix}cc"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 if test -n "$CC"; then
4942 { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4952 if test -z "$CC"; then
4953 # Extract the first word of "cc", so it can be a program name with args.
4954 set dummy cc; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CC+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 if test -n "$CC"; then
4961 ac_cv_prog_CC="$CC" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972 ac_prog_rejected=yes
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 if test $ac_prog_rejected = yes; then
4984 # We found a bogon in the path, so make sure we never use it.
4985 set dummy $ac_cv_prog_CC
4987 if test $# != 0; then
4988 # We chose a different compiler from the bogus one.
4989 # However, it has the same basename, so the bogon will be chosen
4990 # first if we set CC to just the basename; use the full file name.
4992 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4998 if test -n "$CC"; then
4999 { echo "$as_me:$LINENO: result: $CC" >&5
5000 echo "${ECHO_T}$CC" >&6; }
5002 { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5008 if test -z "$CC"; then
5009 if test -n "$ac_tool_prefix"; then
5010 for ac_prog in cl.exe
5012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 if test -n "$CC"; then
5041 { echo "$as_me:$LINENO: result: $CC" >&5
5042 echo "${ECHO_T}$CC" >&6; }
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5049 test -n "$CC" && break
5052 if test -z "$CC"; then
5054 for ac_prog in cl.exe
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 if test -n "$ac_ct_CC"; then
5064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ac_ct_CC="$ac_prog"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084 if test -n "$ac_ct_CC"; then
5085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5086 echo "${ECHO_T}$ac_ct_CC" >&6; }
5088 { echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6; }
5093 test -n "$ac_ct_CC" && break
5096 if test "x$ac_ct_CC" = x; then
5099 case $cross_compiling:$ac_tool_warned in
5101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet. If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&5
5104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5105 whose name does not start with the host triplet. If you think this
5106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5107 ac_tool_warned=yes ;;
5116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5122 # Provide some information about the compiler.
5123 echo "$as_me:$LINENO: checking for C compiler version" >&5
5124 ac_compiler=`set X $ac_compile; echo $2`
5125 { (ac_try="$ac_compiler --version >&5"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compiler --version >&5") 2>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }
5135 { (ac_try="$ac_compiler -v >&5"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_compiler -v >&5") 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }
5145 { (ac_try="$ac_compiler -V >&5"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_compiler -V >&5") 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5171 ac_clean_files_save=$ac_clean_files
5172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5173 # Try to create an executable without -o first, disregard a.out.
5174 # It will help us diagnose broken compilers, and finding out an intuition
5176 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5180 # List of possible output files, starting from the most likely.
5181 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5182 # only as a last resort. b.out is created by i960 compilers.
5183 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5185 # The IRIX 6 linker writes into existing files which may not be
5186 # executable, retaining their permissions. Remove them first so a
5187 # subsequent execution test works.
5189 for ac_file in $ac_files
5192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5193 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5198 if { (ac_try="$ac_link_default"
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_link_default") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; then
5208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5211 # so that the user can short-circuit this test for compilers unknown to
5213 for ac_file in $ac_files ''
5215 test -f "$ac_file" || continue
5217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5220 # We found the default executable, but exeext='' is most
5224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5228 # We set ac_cv_exeext here because the later test for it is not
5229 # safe: cross compilers may not add the suffix if given an `-o'
5230 # argument, so we may need to know it at that point already.
5231 # Even if this section looks crufty: it has the advantage of
5238 test "$ac_cv_exeext" = no && ac_cv_exeext=
5244 { echo "$as_me:$LINENO: result: $ac_file" >&5
5245 echo "${ECHO_T}$ac_file" >&6; }
5246 if test -z "$ac_file"; then
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5251 See \`config.log' for more details." >&5
5252 echo "$as_me: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&2;}
5254 { (exit 77); exit 77; }; }
5257 ac_exeext=$ac_cv_exeext
5259 # Check that the compiler produces executables we can run. If not, either
5260 # the compiler is broken, or we cross compile.
5261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5264 # If not cross compiling, check that we can run a simple program.
5265 if test "$cross_compiling" != yes; then
5266 if { ac_try='./$ac_file'
5267 { (case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_try") 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5278 if test "$cross_compiling" = maybe; then
5281 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5282 If you meant to cross compile, use \`--host'.
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: cannot run C compiled programs.
5285 If you meant to cross compile, use \`--host'.
5286 See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5291 { echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6; }
5294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5295 ac_clean_files=$ac_clean_files_save
5296 # Check that the compiler produces executables we can run. If not, either
5297 # the compiler is broken, or we cross compile.
5298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5301 echo "${ECHO_T}$cross_compiling" >&6; }
5303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5305 if { (ac_try="$ac_link"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_link") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; then
5315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5319 for ac_file in conftest.exe conftest conftest.*; do
5320 test -f "$ac_file" || continue
5322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5329 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&2;}
5333 { (exit 1); exit 1; }; }
5336 rm -f conftest$ac_cv_exeext
5337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5340 rm -f conftest.$ac_ext
5341 EXEEXT=$ac_cv_exeext
5343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5345 if test "${ac_cv_objext+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5363 rm -f conftest.o conftest.obj
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; then
5374 for ac_file in conftest.o conftest.obj conftest.*; do
5375 test -f "$ac_file" || continue;
5377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&2;}
5390 { (exit 1); exit 1; }; }
5393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5396 echo "${ECHO_T}$ac_cv_objext" >&6; }
5397 OBJEXT=$ac_cv_objext
5399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_c_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5453 GCC=`test $ac_compiler_gnu = yes && echo yes`
5454 ac_test_CFLAGS=${CFLAGS+set}
5455 ac_save_CFLAGS=$CFLAGS
5456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_cc_g+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 ac_save_c_werror_flag=$ac_c_werror_flag
5462 ac_c_werror_flag=yes
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_c_werror_flag=$ac_save_c_werror_flag
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 ac_c_werror_flag=$ac_save_c_werror_flag
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5593 if test "$ac_test_CFLAGS" = set; then
5594 CFLAGS=$ac_save_CFLAGS
5595 elif test $ac_cv_prog_cc_g = yes; then
5596 if test "$GCC" = yes; then
5602 if test "$GCC" = yes; then
5608 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5609 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 ac_cv_prog_cc_c89=no
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/stat.h>
5625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5626 struct buf { int x; };
5627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5628 static char *e (p, i)
5634 static char *f (char * (*g) (char **, int), char **p, ...)
5639 s = g (p, va_arg (v,int));
5644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5645 function prototypes and stuff, but not '\xHH' hex character constants.
5646 These don't provoke an error unfortunately, instead are silently treated
5647 as 'x'. The following induces an error, until -std is added to get
5648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5649 array size at least. It's necessary to write '\x00'==0 to get something
5650 that's true only with -std. */
5651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5654 inside strings and character constants. */
5656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5658 int test (int i, double x);
5659 struct s1 {int (*f) (int a);};
5660 struct s2 {int (*f) (double a);};
5661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5675 CC="$ac_save_CC $ac_arg"
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1 >conftest.err
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 ac_cv_prog_cc_c89=$ac_arg
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5701 rm -f core conftest.err conftest.$ac_objext
5702 test "x$ac_cv_prog_cc_c89" != "xno" && break
5704 rm -f conftest.$ac_ext
5709 case "x$ac_cv_prog_cc_c89" in
5711 { echo "$as_me:$LINENO: result: none needed" >&5
5712 echo "${ECHO_T}none needed" >&6; } ;;
5714 { echo "$as_me:$LINENO: result: unsupported" >&5
5715 echo "${ECHO_T}unsupported" >&6; } ;;
5717 CC="$CC $ac_cv_prog_cc_c89"
5718 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5719 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 depcc="$CC" am_compiler_list=
5731 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5737 # We make a subdir and do the tests there. Otherwise we can end up
5738 # making bogus files that we don't know about and never remove. For
5739 # instance it was reported that on HP-UX the gcc test will end up
5740 # making a dummy file named `D' -- because `-MD' means `put the output
5743 # Copy depcomp to subdir because otherwise we won't find it if we're
5744 # using a relative directory.
5745 cp "$am_depcomp" conftest.dir
5747 # We will build objects and dependencies in a subdirectory because
5748 # it helps to detect inapplicable dependency modes. For instance
5749 # both Tru64's cc and ICC support -MD to output dependencies as a
5750 # side effect of compilation, but ICC will put the dependencies in
5751 # the current directory while Tru64 will put them in the object
5755 am_cv_CC_dependencies_compiler_type=none
5756 if test "$am_compiler_list" = ""; then
5757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5759 for depmode in $am_compiler_list; do
5760 # Setup a source with many dependencies, because some compilers
5761 # like to wrap large dependency lists on column 80 (with \), and
5762 # we should not choose a depcomp mode which is confused by this.
5764 # We need to recreate these files for each test, as the compiler may
5765 # overwrite some of them when testing with obscure command lines.
5766 # This happens at least with the AIX C compiler.
5768 for i in 1 2 3 4 5 6; do
5769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5771 # Solaris 8's {/usr,}/bin/sh.
5772 touch sub/conftst$i.h
5774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778 # after this tag, mechanisms are not by side-effect, so they'll
5779 # only be used when explicitly requested
5780 if test "x$enable_dependency_tracking" = xyes; then
5788 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5789 # mode. It turns out that the SunPro C++ compiler does not properly
5790 # handle `-M -o', and we need to detect this.
5791 if depmode=$depmode \
5792 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5794 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5795 >/dev/null 2>conftest.err &&
5796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5797 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5799 # icc doesn't choke on unknown options, it will just issue warnings
5800 # or remarks (even with -Werror). So we grep stderr for any message
5801 # that says an option was ignored or not supported.
5802 # When given -MP, icc 7.0 and 7.1 complain thusly:
5803 # icc: Command line warning: ignoring option '-M'; no argument required
5804 # The diagnosis changed in icc 8.0:
5805 # icc: Command line remark: option '-MP' not supported
5806 if (grep 'ignoring option' conftest.err ||
5807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5808 am_cv_CC_dependencies_compiler_type=$depmode
5817 am_cv_CC_dependencies_compiler_type=none
5821 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5828 test "x$enable_dependency_tracking" != xno \
5829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5831 am__fastdepCC_FALSE='#'
5833 am__fastdepCC_TRUE='#'
5834 am__fastdepCC_FALSE=
5838 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5839 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5840 if test "${lt_cv_path_SED+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 # Loop through the user's path and test for sed and gsed.
5844 # Then use that list of sed's as ones to test for truncation.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for lt_ac_prog in sed gsed; do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5853 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5860 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5861 # along with /bin/sed that truncates output.
5862 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5863 test ! -f $lt_ac_sed && continue
5864 cat /dev/null > conftest.in
5866 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5867 # Check for GNU sed and select it if it is found.
5868 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5869 lt_cv_path_SED=$lt_ac_sed
5873 cat conftest.in conftest.in >conftest.tmp
5874 mv conftest.tmp conftest.in
5875 cp conftest.in conftest.nl
5877 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5878 cmp -s conftest.out conftest.nl || break
5879 # 10000 chars as input seems more than enough
5880 test $lt_ac_count -gt 10 && break
5881 lt_ac_count=`expr $lt_ac_count + 1`
5882 if test $lt_ac_count -gt $lt_ac_max; then
5883 lt_ac_max=$lt_ac_count
5884 lt_cv_path_SED=$lt_ac_sed
5892 { echo "$as_me:$LINENO: result: $SED" >&5
5893 echo "${ECHO_T}$SED" >&6; }
5895 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5896 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 # Extract the first word of "grep ggrep" to use in msg output
5901 if test -z "$GREP"; then
5902 set dummy grep ggrep; ac_prog_name=$2
5903 if test "${ac_cv_path_GREP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_path_GREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 test -z "$as_dir" && as_dir=.
5913 for ac_prog in grep ggrep; do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5916 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5917 # Check for GNU ac_path_GREP and select it if it is found.
5918 # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5924 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 echo 'GREP' >> "conftest.nl"
5931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933 ac_count=`expr $ac_count + 1`
5934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_GREP="$ac_path_GREP"
5937 ac_path_GREP_max=$ac_count
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946 $ac_path_GREP_found && break 3
5956 GREP="$ac_cv_path_GREP"
5957 if test -z "$GREP"; then
5958 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5960 { (exit 1); exit 1; }; }
5964 ac_cv_path_GREP=$GREP
5969 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5970 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5971 GREP="$ac_cv_path_GREP"
5974 { echo "$as_me:$LINENO: checking for egrep" >&5
5975 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980 then ac_cv_path_EGREP="$GREP -E"
5982 # Extract the first word of "egrep" to use in msg output
5983 if test -z "$EGREP"; then
5984 set dummy egrep; ac_prog_name=$2
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_path_EGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994 test -z "$as_dir" && as_dir=.
5995 for ac_prog in egrep; do
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5998 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5999 # Check for GNU ac_path_EGREP and select it if it is found.
6000 # Check for GNU $ac_path_EGREP
6001 case `"$ac_path_EGREP" --version 2>&1` in
6003 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6009 cat "conftest.in" "conftest.in" >"conftest.tmp"
6010 mv "conftest.tmp" "conftest.in"
6011 cp "conftest.in" "conftest.nl"
6012 echo 'EGREP' >> "conftest.nl"
6013 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015 ac_count=`expr $ac_count + 1`
6016 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6017 # Best one so far, save it but keep looking for a better one
6018 ac_cv_path_EGREP="$ac_path_EGREP"
6019 ac_path_EGREP_max=$ac_count
6021 # 10*(2^10) chars as input seems more than enough
6022 test $ac_count -gt 10 && break
6024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6028 $ac_path_EGREP_found && break 3
6038 EGREP="$ac_cv_path_EGREP"
6039 if test -z "$EGREP"; then
6040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6042 { (exit 1); exit 1; }; }
6046 ac_cv_path_EGREP=$EGREP
6052 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6053 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6054 EGREP="$ac_cv_path_EGREP"
6058 # Check whether --with-gnu-ld was given.
6059 if test "${with_gnu_ld+set}" = set; then
6060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6066 if test "$GCC" = yes; then
6067 # Check if gcc -print-prog-name=ld gives a path.
6068 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6069 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6072 # gcc leaves a trailing carriage return which upsets mingw
6073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6078 # Accept absolute paths.
6080 re_direlt='/[^/][^/]*/\.\./'
6081 # Canonicalize the pathname of ld
6082 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6083 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6084 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6086 test -z "$LD" && LD="$ac_prog"
6089 # If it fails, then pretend we aren't using GCC.
6093 # If it is relative, then search for the first ld in PATH.
6097 elif test "$with_gnu_ld" = yes; then
6098 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6099 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6101 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6102 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6104 if test "${lt_cv_path_LD+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 if test -z "$LD"; then
6108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109 for ac_dir in $PATH; do
6111 test -z "$ac_dir" && ac_dir=.
6112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113 lt_cv_path_LD="$ac_dir/$ac_prog"
6114 # Check to see if the program is GNU ld. I'd rather use --version,
6115 # but apparently some variants of GNU ld only accept -v.
6116 # Break only if it was the GNU/non-GNU ld that we prefer.
6117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118 *GNU* | *'with BFD'*)
6119 test "$with_gnu_ld" != no && break
6122 test "$with_gnu_ld" != yes && break
6129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6134 if test -n "$LD"; then
6135 { echo "$as_me:$LINENO: result: $LD" >&5
6136 echo "${ECHO_T}$LD" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6141 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6142 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6143 { (exit 1); exit 1; }; }
6144 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6145 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6146 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6150 case `$LD -v 2>&1 </dev/null` in
6151 *GNU* | *'with BFD'*)
6152 lt_cv_prog_gnu_ld=yes
6155 lt_cv_prog_gnu_ld=no
6159 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6161 with_gnu_ld=$lt_cv_prog_gnu_ld
6164 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_reload_flag+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 lt_cv_ld_reload_flag='-r'
6171 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6176 *) reload_flag=" $reload_flag" ;;
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 if test "$GCC" = yes; then
6182 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6190 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6191 if test "${lt_cv_path_NM+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$NM"; then
6195 # Let the user override the test.
6198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6201 test -z "$ac_dir" && ac_dir=.
6202 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204 # Check to see if the nm accepts a BSD-compat flag.
6205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206 # nm: unknown option "B" ignored
6207 # Tru64's nm complains that /dev/null is an invalid object file
6208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209 */dev/null* | *'Invalid file or object type'*)
6210 lt_cv_path_NM="$tmp_nm -B"
6214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6216 lt_cv_path_NM="$tmp_nm -p"
6220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221 continue # so that we can try to find one that supports BSD flags
6228 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6238 if test "$LN_S" = "ln -s"; then
6239 { echo "$as_me:$LINENO: result: yes" >&5
6240 echo "${ECHO_T}yes" >&6; }
6242 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6243 echo "${ECHO_T}no, using $LN_S" >&6; }
6246 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6247 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6248 if test "${lt_cv_deplibs_check_method+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 lt_cv_file_magic_cmd='$MAGIC_CMD'
6252 lt_cv_file_magic_test_file=
6253 lt_cv_deplibs_check_method='unknown'
6254 # Need to set the preceding variable on all platforms that support
6255 # interlibrary dependencies.
6256 # 'none' -- dependencies not supported.
6257 # `unknown' -- same as none, but documents that we really don't know.
6258 # 'pass_all' -- all dependencies passed with no checks.
6259 # 'test_compile' -- check by making test program.
6260 # 'file_magic [[regex]]' -- check by looking for files in library path
6261 # which responds to the $file_magic_cmd with a given extended regex.
6262 # If you have `file' or equivalent on your system and you're not sure
6263 # whether `pass_all' will *always* work, you probably want this one.
6267 lt_cv_deplibs_check_method=pass_all
6271 lt_cv_deplibs_check_method=pass_all
6275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6276 lt_cv_file_magic_cmd='/usr/bin/file -L'
6277 lt_cv_file_magic_test_file=/shlib/libc.so
6281 # func_win32_libid is a shell function defined in ltmain.sh
6282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283 lt_cv_file_magic_cmd='func_win32_libid'
6287 # Base MSYS/MinGW do not provide the 'file' command needed by
6288 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6289 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6290 lt_cv_file_magic_cmd='$OBJDUMP -f'
6293 darwin* | rhapsody*)
6294 lt_cv_deplibs_check_method=pass_all
6297 freebsd* | kfreebsd*-gnu | dragonfly*)
6298 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6301 # Not sure whether the presence of OpenBSD here was a mistake.
6302 # Let's accept both of them until this is cleared up.
6303 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6304 lt_cv_file_magic_cmd=/usr/bin/file
6305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6309 lt_cv_deplibs_check_method=pass_all
6314 lt_cv_deplibs_check_method=pass_all
6317 hpux10.20* | hpux11*)
6318 lt_cv_file_magic_cmd=/usr/bin/file
6321 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6322 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6325 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]'
6326 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6330 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6335 irix5* | irix6* | nonstopux*)
6337 *-32|*"-32 ") libmagic=32-bit;;
6338 *-n32|*"-n32 ") libmagic=N32;;
6339 *-64|*"-64 ") libmagic=64-bit;;
6340 *) libmagic=never-match;;
6342 lt_cv_deplibs_check_method=pass_all
6345 # This must be Linux ELF.
6347 lt_cv_deplibs_check_method=pass_all
6351 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6360 lt_cv_file_magic_cmd=/usr/bin/file
6361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6365 lt_cv_deplibs_check_method=unknown
6369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6376 osf3* | osf4* | osf5*)
6377 lt_cv_deplibs_check_method=pass_all
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6388 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6389 case $host_vendor in
6391 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]'
6392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395 lt_cv_deplibs_check_method=pass_all
6398 lt_cv_file_magic_cmd='/bin/file'
6399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402 lt_cv_file_magic_cmd='/bin/file'
6403 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6404 lt_cv_file_magic_test_file=/lib/libc.so
6407 lt_cv_deplibs_check_method=pass_all
6412 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6413 lt_cv_deplibs_check_method=pass_all
6418 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6427 # If no C compiler was specified, use CC.
6430 # Allow CC to be a program name with arguments.
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436 enableval=$enable_libtool_lock;
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6441 # Some flags need to be propagated to the compiler or linker for good
6445 # Find out which ABI we are using.
6446 echo 'int i;' > conftest.$ac_ext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; then
6452 case `/usr/bin/file conftest.$ac_objext` in
6464 # Find out which ABI we are using.
6465 echo '#line 6465 "configure"' > conftest.$ac_ext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467 (eval $ac_compile) 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; then
6471 if test "$lt_cv_prog_gnu_ld" = yes; then
6472 case `/usr/bin/file conftest.$ac_objext` in
6474 LD="${LD-ld} -melf32bsmip"
6477 LD="${LD-ld} -melf32bmipn32"
6480 LD="${LD-ld} -melf64bmip"
6484 case `/usr/bin/file conftest.$ac_objext` in
6500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6501 # Find out which ABI we are using.
6502 echo 'int i;' > conftest.$ac_ext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; then
6508 case `/usr/bin/file conftest.o` in
6512 LD="${LD-ld} -m elf_i386"
6514 ppc64-*linux*|powerpc64-*linux*)
6515 LD="${LD-ld} -m elf32ppclinux"
6518 LD="${LD-ld} -m elf_s390"
6521 LD="${LD-ld} -m elf32_sparc"
6528 LD="${LD-ld} -m elf_x86_64"
6530 ppc*-*linux*|powerpc*-*linux*)
6531 LD="${LD-ld} -m elf64ppc"
6534 LD="${LD-ld} -m elf64_s390"
6537 LD="${LD-ld} -m elf64_sparc"
6547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6548 SAVE_CFLAGS="$CFLAGS"
6549 CFLAGS="$CFLAGS -belf"
6550 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6552 if test "${lt_cv_cc_needs_belf+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_link") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest$ac_exeext &&
6593 $as_test_x conftest$ac_exeext; then
6594 lt_cv_cc_needs_belf=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 lt_cv_cc_needs_belf=no
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603 conftest$ac_exeext conftest.$ac_ext
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615 CFLAGS="$SAVE_CFLAGS"
6618 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 if test -n "$DLLTOOL"; then
6628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6650 echo "${ECHO_T}$DLLTOOL" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659 ac_ct_DLLTOOL=$DLLTOOL
6660 # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 if test -n "$ac_ct_DLLTOOL"; then
6668 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6688 if test -n "$ac_ct_DLLTOOL"; then
6689 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6690 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6696 if test "x$ac_ct_DLLTOOL" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet. If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet. If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6709 DLLTOOL=$ac_ct_DLLTOOL
6712 DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}as; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AS+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$AS"; then
6724 ac_cv_prog_AS="$AS" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_AS="${ac_tool_prefix}as"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 if test -n "$AS"; then
6745 { echo "$as_me:$LINENO: result: $AS" >&5
6746 echo "${ECHO_T}$AS" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6754 if test -z "$ac_cv_prog_AS"; then
6756 # Extract the first word of "as", so it can be a program name with args.
6757 set dummy as; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 if test -n "$ac_ct_AS"; then
6764 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_AS="as"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6784 if test -n "$ac_ct_AS"; then
6785 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6786 echo "${ECHO_T}$ac_ct_AS" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6792 if test "x$ac_ct_AS" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet. If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 if test -n "$OBJDUMP"; then
6820 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 OBJDUMP=$ac_cv_prog_OBJDUMP
6840 if test -n "$OBJDUMP"; then
6841 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6842 echo "${ECHO_T}$OBJDUMP" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6850 if test -z "$ac_cv_prog_OBJDUMP"; then
6851 ac_ct_OBJDUMP=$OBJDUMP
6852 # Extract the first word of "objdump", so it can be a program name with args.
6853 set dummy objdump; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$ac_ct_OBJDUMP"; then
6860 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6880 if test -n "$ac_ct_OBJDUMP"; then
6881 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6882 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6888 if test "x$ac_ct_OBJDUMP" = x; then
6891 case $cross_compiling:$ac_tool_warned in
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet. If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6901 OBJDUMP=$ac_ct_OBJDUMP
6904 OBJDUMP="$ac_cv_prog_OBJDUMP"
6911 need_locks="$enable_libtool_lock"
6915 ac_cpp='$CPP $CPPFLAGS'
6916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6921 # On Suns, sometimes $CPP names a directory.
6922 if test -n "$CPP" && test -d "$CPP"; then
6925 if test -z "$CPP"; then
6926 if test "${ac_cv_prog_CPP+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 # Double quotes because CPP needs to be expanded
6930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6933 for ac_c_preproc_warn_flag in '' yes
6935 # Use a header file that comes with gcc, so configuring glibc
6936 # with a fresh cross-compiler works.
6937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938 # <limits.h> exists even on freestanding compilers.
6939 # On the NeXT, cc -E runs the code through the compiler's parser,
6940 # not just through cpp. "Syntax error" is here to catch this case.
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 # include <limits.h>
6950 # include <assert.h>
6954 if { (ac_try="$ac_cpp conftest.$ac_ext"
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 # Broken: fails on valid input.
6979 rm -f conftest.err conftest.$ac_ext
6981 # OK, works on sane cases. Now check whether nonexistent headers
6982 # can be detected and how.
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <ac_nonexistent.h>
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7007 # Broken: success on invalid input.
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 # Passes both tests.
7018 rm -f conftest.err conftest.$ac_ext
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7035 { echo "$as_me:$LINENO: result: $CPP" >&5
7036 echo "${ECHO_T}$CPP" >&6; }
7038 for ac_c_preproc_warn_flag in '' yes
7040 # Use a header file that comes with gcc, so configuring glibc
7041 # with a fresh cross-compiler works.
7042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7043 # <limits.h> exists even on freestanding compilers.
7044 # On the NeXT, cc -E runs the code through the compiler's parser,
7045 # not just through cpp. "Syntax error" is here to catch this case.
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7053 # include <limits.h>
7055 # include <assert.h>
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } >/dev/null && {
7072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 # Broken: fails on valid input.
7084 rm -f conftest.err conftest.$ac_ext
7086 # OK, works on sane cases. Now check whether nonexistent headers
7087 # can be detected and how.
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <ac_nonexistent.h>
7096 if { (ac_try="$ac_cpp conftest.$ac_ext"
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } >/dev/null && {
7109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7112 # Broken: success on invalid input.
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 # Passes both tests.
7123 rm -f conftest.err conftest.$ac_ext
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then
7131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details." >&5
7133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&2;}
7135 { (exit 1); exit 1; }; }
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7147 if test "${ac_cv_header_stdc+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 ac_cv_header_stdc=yes
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_header_stdc=no
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 if test $ac_cv_header_stdc = yes; then
7197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "memchr" >/dev/null 2>&1; then
7211 ac_cv_header_stdc=no
7217 if test $ac_cv_header_stdc = yes; then
7218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "free" >/dev/null 2>&1; then
7232 ac_cv_header_stdc=no
7238 if test $ac_cv_header_stdc = yes; then
7239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7240 if test "$cross_compiling" = yes; then
7243 cat >conftest.$ac_ext <<_ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7251 #if ((' ' & 0x0FF) == 0x020)
7252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7255 # define ISLOWER(c) \
7256 (('a' <= (c) && (c) <= 'i') \
7257 || ('j' <= (c) && (c) <= 'r') \
7258 || ('s' <= (c) && (c) <= 'z'))
7259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267 for (i = 0; i < 256; i++)
7268 if (XOR (islower (i), ISLOWER (i))
7269 || toupper (i) != TOUPPER (i))
7274 rm -f conftest$ac_exeext
7275 if { (ac_try="$ac_link"
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_link") 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285 { (case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_try") 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7296 echo "$as_me: program exited with status $ac_status" >&5
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7301 ac_cv_header_stdc=no
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7309 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7310 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7311 if test $ac_cv_header_stdc = yes; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define STDC_HEADERS 1
7319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7330 inttypes.h stdint.h unistd.h
7332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7346 #include <$ac_header>
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 eval "$as_ac_Header=yes"
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 eval "$as_ac_Header=no"
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_res=`eval echo '${'$as_ac_Header'}'`
7376 { echo "$as_me:$LINENO: result: $ac_res" >&5
7377 echo "${ECHO_T}$ac_res" >&6; }
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379 cat >>confdefs.h <<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7389 for ac_header in dlfcn.h
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_res=`eval echo '${'$as_ac_Header'}'`
7399 { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7402 # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #include <$ac_header>
7414 rm -f conftest.$ac_objext
7415 if { (ac_try="$ac_compile"
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_compile") 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest.$ac_objext; then
7431 ac_header_compiler=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_header_compiler=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #include <$ac_header>
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev/null && {
7467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7470 ac_header_preproc=yes
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_header_preproc=no
7478 rm -f conftest.err conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7482 # So? What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489 ac_header_preproc=yes
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7505 ## --------------------------------------------- ##
7506 ## Report this to <http://www.openldap.org/its/> ##
7507 ## --------------------------------------------- ##
7509 ) | sed "s/^/$as_me: WARNING: /" >&2
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 eval "$as_ac_Header=\$ac_header_preproc"
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520 { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7536 # find the maximum length of command line arguments
7537 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7538 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 # On DJGPP, this test can blow up pretty badly due to problems in libc
7548 # (any single argument exceeding 2000 bytes causes a buffer overrun
7549 # during glob expansion). Even if it were fixed, the result of this
7550 # check would be larger than it should be.
7551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7555 # Under GNU Hurd, this test is not required because there is
7556 # no limit to the length of command line arguments.
7557 # Libtool will interpret -1 as no limit whatsoever
7558 lt_cv_sys_max_cmd_len=-1;
7562 # On Win9x/ME, this test blows up -- it succeeds, but takes
7563 # about 5 minutes as the teststring grows exponentially.
7564 # Worse, since 9x/ME are not pre-emptively multitasking,
7565 # you end up with a "frozen" computer, even though with patience
7566 # the test eventually succeeds (with a max line length of 256k).
7567 # Instead, let's just punt: use the minimum linelength reported by
7568 # all of the supported platforms: 8192 (on NT/2K/XP).
7569 lt_cv_sys_max_cmd_len=8192;
7573 # On AmigaOS with pdksh, this test takes hours, literally.
7574 # So we just punt and use a minimum line length of 8192.
7575 lt_cv_sys_max_cmd_len=8192;
7578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7579 # This has been around since 386BSD, at least. Likely further.
7580 if test -x /sbin/sysctl; then
7581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7582 elif test -x /usr/sbin/sysctl; then
7583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7587 # And add a safety zone
7588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7594 # nice to cause kernel panics so lets avoid the loop below.
7595 # First set a reasonable default.
7596 lt_cv_sys_max_cmd_len=16384
7598 if test -x /sbin/sysconfig; then
7599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7605 # If test is not a shell built-in, we'll probably end up computing a
7606 # maximum length that is only half of the actual maximum length, but
7608 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7609 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7610 = "XX$teststring") >/dev/null 2>&1 &&
7611 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7612 lt_cv_sys_max_cmd_len=$new_result &&
7613 test $i != 17 # 1/2 MB should be enough
7616 teststring=$teststring$teststring
7619 # Add a significant safety factor because C++ compilers can tack on massive
7620 # amounts of additional arguments before passing them to the linker.
7621 # It appears as though 1/2 is a usable value.
7622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7628 if test -n $lt_cv_sys_max_cmd_len ; then
7629 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7630 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7632 { echo "$as_me:$LINENO: result: none" >&5
7633 echo "${ECHO_T}none" >&6; }
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7641 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7642 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 # These are sane defaults that work on at least a few old systems.
7647 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7649 # Character class describing NM global symbol codes.
7650 symcode='[BCDEGRST]'
7652 # Regexp to match symbols that can be accessed directly from C.
7653 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7655 # Transform an extracted symbol line into a proper C declaration
7656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7658 # Transform an extracted symbol line into symbol name and symbol address
7659 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'"
7661 # Define system-specific variables.
7666 cygwin* | mingw* | pw32*)
7667 symcode='[ABCDGISTW]'
7669 hpux*) # Its linker distinguishes data from code symbols
7670 if test "$host_cpu" = ia64; then
7671 symcode='[ABCDEGRST]'
7673 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7677 if test "$host_cpu" = ia64; then
7678 symcode='[ABCDGIRSTW]'
7679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7680 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'"
7684 symcode='[BCDEGRST]'
7687 symcode='[BCDEGQRST]'
7697 # Handle CRLF in mingw tool chain
7701 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7705 # If we're using GNU nm, then use its standard symbol codes.
7706 case `$NM -V 2>&1` in
7707 *GNU* | *'with BFD'*)
7708 symcode='[ABCDGIRSTW]' ;;
7711 # Try without a prefix undercore, then with it.
7712 for ac_symprfx in "" "_"; do
7714 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7715 symxfrm="\\1 $ac_symprfx\\2 \\2"
7717 # Write the raw and C identifiers.
7718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7720 # Check to see that the pipe works correctly.
7724 cat > conftest.$ac_ext <<EOF
7729 void nm_test_func(){}
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; then
7741 # Now try to grab the symbols.
7743 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7744 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && test -s "$nlist"; then
7748 # Try sorting and uniquifying the output.
7749 if sort "$nlist" | uniq > "$nlist"T; then
7750 mv -f "$nlist"T "$nlist"
7755 # Make sure that we snagged all the symbols we need.
7756 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7757 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7758 cat <<EOF > conftest.$ac_ext
7764 # Now generate the symbol file.
7765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7767 cat <<EOF >> conftest.$ac_ext
7768 #if defined (__STDC__) && __STDC__
7769 # define lt_ptr_t void *
7771 # define lt_ptr_t char *
7775 /* The mapping between symbol names and symbols. */
7780 lt_preloaded_symbols[] =
7783 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7784 cat <<\EOF >> conftest.$ac_ext
7792 # Now try linking the two files.
7793 mv conftest.$ac_objext conftstm.$ac_objext
7794 lt_save_LIBS="$LIBS"
7795 lt_save_CFLAGS="$CFLAGS"
7796 LIBS="conftstm.$ac_objext"
7797 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799 (eval $ac_link) 2>&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7805 LIBS="$lt_save_LIBS"
7806 CFLAGS="$lt_save_CFLAGS"
7808 echo "cannot find nm_test_func in $nlist" >&5
7811 echo "cannot find nm_test_var in $nlist" >&5
7814 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817 echo "$progname: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 rm -f conftest* conftst*
7822 # Do not use the global_symbol_pipe unless it works.
7823 if test "$pipe_works" = yes; then
7826 lt_cv_sys_global_symbol_pipe=
7832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7833 lt_cv_sys_global_symbol_to_cdecl=
7835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7836 { echo "$as_me:$LINENO: result: failed" >&5
7837 echo "${ECHO_T}failed" >&6; }
7839 { echo "$as_me:$LINENO: result: ok" >&5
7840 echo "${ECHO_T}ok" >&6; }
7843 { echo "$as_me:$LINENO: checking for objdir" >&5
7844 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7845 if test "${lt_cv_objdir+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 rm -f .libs 2>/dev/null
7849 mkdir .libs 2>/dev/null
7850 if test -d .libs; then
7853 # MS-DOS does not allow filenames that begin with a dot.
7856 rmdir .libs 2>/dev/null
7858 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7859 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7860 objdir=$lt_cv_objdir
7868 # AIX sometimes has problems with the GCC collect2 program. For some
7869 # reason, if we set the COLLECT_NAMES environment variable, the problems
7870 # vanish in a puff of smoke.
7871 if test "X${COLLECT_NAMES+set}" != Xset; then
7873 export COLLECT_NAMES
7878 # Sed substitution that helps us do robust quoting. It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 Xsed='sed -e 1s/^X//'
7881 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7883 # Same as above, but do not quote variable references.
7884 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7886 # Sed substitution to delay expansion of an escaped shell variable in a
7887 # double_quote_subst'ed string.
7888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7890 # Sed substitution to avoid accidental globbing in evaled expressions
7891 no_glob_subst='s/\*/\\\*/g'
7897 default_ofile=libtool
7898 can_build_shared=yes
7900 # All known linkers require a `.a' archive for static linking (except MSVC,
7901 # which needs '.lib').
7903 ltmain="$ac_aux_dir/ltmain.sh"
7904 ofile="$default_ofile"
7905 with_gnu_ld="$lt_cv_prog_gnu_ld"
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}ar; ac_word=$2
7910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7912 if test "${ac_cv_prog_AR+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 if test -n "$AR"; then
7916 ac_cv_prog_AR="$AR" # Let the user override the test.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_AR="${ac_tool_prefix}ar"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 if test -n "$AR"; then
7937 { echo "$as_me:$LINENO: result: $AR" >&5
7938 echo "${ECHO_T}$AR" >&6; }
7940 { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7946 if test -z "$ac_cv_prog_AR"; then
7948 # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy ar; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 if test -n "$ac_ct_AR"; then
7956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_ac_ct_AR="ar"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7976 if test -n "$ac_ct_AR"; then
7977 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7978 echo "${ECHO_T}$ac_ct_AR" >&6; }
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7984 if test "x$ac_ct_AR" = x; then
7987 case $cross_compiling:$ac_tool_warned in
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet. If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet. If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned=yes ;;
8003 if test -n "$ac_tool_prefix"; then
8004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_prog_RANLIB+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 if test -n "$RANLIB"; then
8012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 RANLIB=$ac_cv_prog_RANLIB
8032 if test -n "$RANLIB"; then
8033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8034 echo "${ECHO_T}$RANLIB" >&6; }
8036 { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043 ac_ct_RANLIB=$RANLIB
8044 # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 if test -n "$ac_ct_RANLIB"; then
8052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_prog_ac_ct_RANLIB="ranlib"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8076 { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8080 if test "x$ac_ct_RANLIB" = x; then
8083 case $cross_compiling:$ac_tool_warned in
8085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8086 whose name does not start with the host triplet. If you think this
8087 configuration is useful to you, please write to autoconf@gnu.org." >&5
8088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8089 whose name does not start with the host triplet. If you think this
8090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8091 ac_tool_warned=yes ;;
8093 RANLIB=$ac_ct_RANLIB
8096 RANLIB="$ac_cv_prog_RANLIB"
8099 if test -n "$ac_tool_prefix"; then
8100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}strip; ac_word=$2
8102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104 if test "${ac_cv_prog_STRIP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 STRIP=$ac_cv_prog_STRIP
8128 if test -n "$STRIP"; then
8129 { echo "$as_me:$LINENO: result: $STRIP" >&5
8130 echo "${ECHO_T}$STRIP" >&6; }
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8138 if test -z "$ac_cv_prog_STRIP"; then
8140 # Extract the first word of "strip", so it can be a program name with args.
8141 set dummy strip; ac_word=$2
8142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 if test -n "$ac_ct_STRIP"; then
8148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_ac_ct_STRIP="strip"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8168 if test -n "$ac_ct_STRIP"; then
8169 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8176 if test "x$ac_ct_STRIP" = x; then
8179 case $cross_compiling:$ac_tool_warned in
8181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8182 whose name does not start with the host triplet. If you think this
8183 configuration is useful to you, please write to autoconf@gnu.org." >&5
8184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8185 whose name does not start with the host triplet. If you think this
8186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8187 ac_tool_warned=yes ;;
8192 STRIP="$ac_cv_prog_STRIP"
8197 old_CFLAGS="$CFLAGS"
8199 # Set sane defaults for various variables
8200 test -z "$AR" && AR=ar
8201 test -z "$AR_FLAGS" && AR_FLAGS=cru
8202 test -z "$AS" && AS=as
8203 test -z "$CC" && CC=cc
8204 test -z "$LTCC" && LTCC=$CC
8205 test -z "$DLLTOOL" && DLLTOOL=dlltool
8206 test -z "$LD" && LD=ld
8207 test -z "$LN_S" && LN_S="ln -s"
8208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8209 test -z "$NM" && NM=nm
8210 test -z "$SED" && SED=sed
8211 test -z "$OBJDUMP" && OBJDUMP=objdump
8212 test -z "$RANLIB" && RANLIB=:
8213 test -z "$STRIP" && STRIP=:
8214 test -z "$ac_objext" && ac_objext=o
8216 # Determine commands to create old-style static archives.
8217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8218 old_postinstall_cmds='chmod 644 $oldlib'
8219 old_postuninstall_cmds=
8221 if test -n "$RANLIB"; then
8224 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8227 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8230 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8233 for cc_temp in $compiler""; do
8235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8244 # Only perform the check for file, if the check method requires it
8245 case $deplibs_check_method in
8247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8249 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258 lt_save_MAGIC_CMD="$MAGIC_CMD"
8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261 for ac_dir in $ac_dummy; do
8263 test -z "$ac_dir" && ac_dir=.
8264 if test -f $ac_dir/${ac_tool_prefix}file; then
8265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266 if test -n "$file_magic_test_file"; then
8267 case $deplibs_check_method in
8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272 $EGREP "$file_magic_regex" > /dev/null; then
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such. This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem. Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8294 MAGIC_CMD="$lt_save_MAGIC_CMD"
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8302 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8304 { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8308 if test -z "$lt_cv_path_MAGIC_CMD"; then
8309 if test -n "$ac_tool_prefix"; then
8310 { echo "$as_me:$LINENO: checking for file" >&5
8311 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8320 lt_save_MAGIC_CMD="$MAGIC_CMD"
8321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323 for ac_dir in $ac_dummy; do
8325 test -z "$ac_dir" && ac_dir=.
8326 if test -f $ac_dir/file; then
8327 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8328 if test -n "$file_magic_test_file"; then
8329 case $deplibs_check_method in
8331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334 $EGREP "$file_magic_regex" > /dev/null; then
8339 *** Warning: the command libtool uses to detect shared libraries,
8340 *** $file_magic_cmd, produces output that libtool cannot recognize.
8341 *** The result is that libtool may fail to recognize shared libraries
8342 *** as such. This will affect the creation of libtool libraries that
8343 *** depend on shared libraries, but programs linked with such libtool
8344 *** libraries will work regardless of this problem. Nevertheless, you
8345 *** may want to report the problem to your system manager and/or to
8346 *** bug-libtool@gnu.org
8356 MAGIC_CMD="$lt_save_MAGIC_CMD"
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if test -n "$MAGIC_CMD"; then
8363 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8364 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8366 { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8380 enable_win32_dll=yes
8382 # Check whether --enable-libtool-lock was given.
8383 if test "${enable_libtool_lock+set}" = set; then
8384 enableval=$enable_libtool_lock;
8387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8390 # Check whether --with-pic was given.
8391 if test "${with_pic+set}" = set; then
8392 withval=$with_pic; pic_mode="$withval"
8397 test -z "$pic_mode" && pic_mode=default
8399 # Use C for the default configuration in the libtool script
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409 # Source file extension for C test sources.
8412 # Object file extension for compiled C test sources.
8416 # Code to be used in simple compile tests
8417 lt_simple_compile_test_code="int some_variable = 0;\n"
8419 # Code to be used in simple link tests
8420 lt_simple_link_test_code='int main(){return(0);}\n'
8423 # If no C compiler was specified, use CC.
8426 # Allow CC to be a program name with arguments.
8430 # save warnings/boilerplate of simple test code
8431 ac_outfile=conftest.$ac_objext
8432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8434 _lt_compiler_boilerplate=`cat conftest.err`
8437 ac_outfile=conftest.$ac_objext
8438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8440 _lt_linker_boilerplate=`cat conftest.err`
8445 # Check for any special shared library compilation flags.
8448 if test "$GCC" = no; then
8451 lt_prog_cc_shlib='-belf'
8455 if test -n "$lt_prog_cc_shlib"; then
8456 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8457 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8458 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8460 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8461 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8462 lt_cv_prog_cc_can_build_shared=no
8468 # Check to make sure the static flag actually works.
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8472 if test "${lt_prog_compiler_static_works+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 lt_prog_compiler_static_works=no
8476 save_LDFLAGS="$LDFLAGS"
8477 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8478 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480 # The linker can only warn and ignore the option if not recognized
8481 # So say no if there are warnings
8482 if test -s conftest.err; then
8483 # Append any errors to the config.log.
8484 cat conftest.err 1>&5
8485 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8486 $SED '/^$/d' conftest.err >conftest.er2
8487 if diff conftest.exp conftest.er2 >/dev/null; then
8488 lt_prog_compiler_static_works=yes
8491 lt_prog_compiler_static_works=yes
8495 LDFLAGS="$save_LDFLAGS"
8498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8501 if test x"$lt_prog_compiler_static_works" = xyes; then
8504 lt_prog_compiler_static=
8510 lt_prog_compiler_no_builtin_flag=
8512 if test "$GCC" = yes; then
8513 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8516 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8517 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 lt_cv_prog_compiler_rtti_exceptions=no
8522 ac_outfile=conftest.$ac_objext
8523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524 lt_compiler_flag="-fno-rtti -fno-exceptions"
8525 # Insert the option either (1) after the last *FLAGS variable, or
8526 # (2) before a word containing "conftest.", or (3) at the end.
8527 # Note that $ac_compile itself does not contain backslashes and begins
8528 # with a dollar sign (not a hyphen), so the echo should work correctly.
8529 # The option is referenced via a variable to avoid confusing sed.
8530 lt_compile=`echo "$ac_compile" | $SED \
8531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533 -e 's:$: $lt_compiler_flag:'`
8534 (eval echo "\"\$as_me:8534: $lt_compile\"" >&5)
8535 (eval "$lt_compile" 2>conftest.err)
8537 cat conftest.err >&5
8538 echo "$as_me:8538: \$? = $ac_status" >&5
8539 if (exit $ac_status) && test -s "$ac_outfile"; then
8540 # The compiler can only warn and ignore the option if not recognized
8541 # So say no if there are warnings other than the usual output.
8542 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8543 $SED '/^$/d' conftest.err >conftest.er2
8544 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8545 lt_cv_prog_compiler_rtti_exceptions=yes
8551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8552 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8562 lt_prog_compiler_wl=
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_static=
8566 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8569 if test "$GCC" = yes; then
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_static='-static'
8575 # All AIX code is PIC.
8576 if test "$host_cpu" = ia64; then
8577 # AIX 5 now supports IA64 processor
8578 lt_prog_compiler_static='-Bstatic'
8583 # FIXME: we need at least 68020 code to build shared libraries, but
8584 # adding the `-m68020' flag to GCC prevents building anything better,
8586 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8590 # PIC is the default for these OSes.
8593 mingw* | pw32* | os2*)
8594 # This hack is so that the source file can tell whether it is being
8595 # built for inclusion in a dll (and should export symbols for example).
8596 lt_prog_compiler_pic='-DDLL_EXPORT'
8599 darwin* | rhapsody*)
8600 # PIC is the default on this platform
8601 # Common symbols not allowed in MH_DYLIB files
8602 lt_prog_compiler_pic='-fno-common'
8606 # Just because we use GCC doesn't mean we suddenly get shared libraries
8607 # on systems that don't support them.
8608 lt_prog_compiler_can_build_shared=no
8613 if test -d /usr/nec; then
8614 lt_prog_compiler_pic=-Kconform_pic
8619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8626 lt_prog_compiler_pic='-fPIC'
8632 lt_prog_compiler_pic='-fPIC'
8636 # PORTME Check for flag to pass linker flags through the system compiler.
8639 lt_prog_compiler_wl='-Wl,'
8640 if test "$host_cpu" = ia64; then
8641 # AIX 5 now supports IA64 processor
8642 lt_prog_compiler_static='-Bstatic'
8644 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8648 # PIC is the default on this platform
8649 # Common symbols not allowed in MH_DYLIB files
8650 case $cc_basename in
8652 lt_prog_compiler_pic='-qnocommon'
8653 lt_prog_compiler_wl='-Wl,'
8658 mingw* | pw32* | os2*)
8659 # This hack is so that the source file can tell whether it is being
8660 # built for inclusion in a dll (and should export symbols for example).
8661 lt_prog_compiler_pic='-DDLL_EXPORT'
8664 hpux9* | hpux10* | hpux11*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8673 lt_prog_compiler_pic='+Z'
8676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677 lt_prog_compiler_static='${wl}-a ${wl}archive'
8680 irix5* | irix6* | nonstopux*)
8681 lt_prog_compiler_wl='-Wl,'
8682 # PIC (with -KPIC) is the default.
8683 lt_prog_compiler_static='-non_shared'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8692 case $cc_basename in
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-static'
8698 pgcc* | pgf77* | pgf90* | pgf95*)
8699 # Portland Group compilers (*not* the Pentium gcc compiler,
8700 # which looks to be a dead project)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-fpic'
8703 lt_prog_compiler_static='-Bstatic'
8706 lt_prog_compiler_wl='-Wl,'
8707 # All Alpha code is PIC.
8708 lt_prog_compiler_static='-non_shared'
8713 osf3* | osf4* | osf5*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # All OSF/1 code is PIC.
8716 lt_prog_compiler_static='-non_shared'
8720 lt_prog_compiler_pic='-Kpic'
8721 lt_prog_compiler_static='-dn'
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 case $cc_basename in
8729 lt_prog_compiler_wl='-Qoption ld ';;
8731 lt_prog_compiler_wl='-Wl,';;
8736 lt_prog_compiler_wl='-Qoption ld '
8737 lt_prog_compiler_pic='-PIC'
8738 lt_prog_compiler_static='-Bstatic'
8741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8742 lt_prog_compiler_wl='-Wl,'
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8748 if test -d /usr/nec ;then
8749 lt_prog_compiler_pic='-Kconform_pic'
8750 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_can_build_shared=no
8760 lt_prog_compiler_pic='-pic'
8761 lt_prog_compiler_static='-Bstatic'
8765 lt_prog_compiler_can_build_shared=no
8770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8771 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8774 # Check to make sure the PIC flag actually works.
8776 if test -n "$lt_prog_compiler_pic"; then
8778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8780 if test "${lt_prog_compiler_pic_works+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 lt_prog_compiler_pic_works=no
8784 ac_outfile=conftest.$ac_objext
8785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787 # Insert the option either (1) after the last *FLAGS variable, or
8788 # (2) before a word containing "conftest.", or (3) at the end.
8789 # Note that $ac_compile itself does not contain backslashes and begins
8790 # with a dollar sign (not a hyphen), so the echo should work correctly.
8791 # The option is referenced via a variable to avoid confusing sed.
8792 lt_compile=`echo "$ac_compile" | $SED \
8793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795 -e 's:$: $lt_compiler_flag:'`
8796 (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797 (eval "$lt_compile" 2>conftest.err)
8799 cat conftest.err >&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 if (exit $ac_status) && test -s "$ac_outfile"; then
8802 # The compiler can only warn and ignore the option if not recognized
8803 # So say no if there are warnings other than the usual output.
8804 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8805 $SED '/^$/d' conftest.err >conftest.er2
8806 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8807 lt_prog_compiler_pic_works=yes
8813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8814 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8816 if test x"$lt_prog_compiler_pic_works" = xyes; then
8817 case $lt_prog_compiler_pic in
8819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822 lt_prog_compiler_pic=
8823 lt_prog_compiler_can_build_shared=no
8828 # For platforms which do not support PIC, -DPIC is meaningless:
8830 lt_prog_compiler_pic=
8833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 lt_cv_prog_compiler_c_o=no
8843 $rm -r conftest 2>/dev/null
8847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8861 cat out/conftest.err >&5
8862 echo "$as_me:8862: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8868 $SED '/^$/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8878 $rm out/* && rmdir out
8884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8888 hard_links="nottested"
8889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8890 # do not overwrite the value of need_locks provided by the user
8891 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8897 ln conftest.a conftest.b 2>&5 || hard_links=no
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 { echo "$as_me:$LINENO: result: $hard_links" >&5
8900 echo "${ECHO_T}$hard_links" >&6; }
8901 if test "$hard_links" = no; then
8902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8914 allow_undefined_flag=
8915 enable_shared_with_static_runtimes=no
8917 archive_expsym_cmds=
8918 old_archive_From_new_cmds=
8919 old_archive_from_expsyms_cmds=
8920 export_dynamic_flag_spec=
8921 whole_archive_flag_spec=
8922 thread_safe_flag_spec=
8923 hardcode_libdir_flag_spec=
8924 hardcode_libdir_flag_spec_ld=
8925 hardcode_libdir_separator=
8928 hardcode_shlibpath_var=unsupported
8929 link_all_deplibs=unknown
8930 hardcode_automatic=no
8933 always_export_symbols=no
8934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935 # include_expsyms should be a list of space-separated symbols to be *always*
8936 # included in the symbol list
8938 # exclude_expsyms can be an extended regexp of symbols to exclude
8939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8941 # as well as any symbol that contains `d'.
8942 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944 # platforms (ab)use it in PIC code, but their linkers get confused if
8945 # the symbol is explicitly referenced. Since portable code cannot
8946 # rely on this symbol name, it's probably fine to never include it in
8947 # preloaded symbol tables.
8948 extract_expsyms_cmds=
8949 # Just being paranoid about ensuring that cc_basename is set.
8950 for cc_temp in $compiler""; do
8952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8961 cygwin* | mingw* | pw32*)
8962 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8963 # When not using gcc, we currently assume that we are using
8964 # Microsoft Visual C++.
8965 if test "$GCC" != yes; then
8975 if test "$with_gnu_ld" = yes; then
8976 # If archive_cmds runs LD, not CC, wlarc should be empty
8979 # Set some defaults for GNU ld with shared library support. These
8980 # are reset later if shared libraries are not supported. Putting them
8981 # here allows them to be overridden if necessary.
8982 runpath_var=LD_RUN_PATH
8983 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8984 export_dynamic_flag_spec='${wl}--export-dynamic'
8985 # ancient GNU ld didn't support --whole-archive et. al.
8986 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8987 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8989 whole_archive_flag_spec=
8991 supports_anon_versioning=no
8992 case `$LD -v 2>/dev/null` in
8993 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8996 *\ 2.11.*) ;; # other 2.11 versions
8997 *) supports_anon_versioning=yes ;;
9000 # See if GNU ld supports shared libraries.
9002 aix3* | aix4* | aix5*)
9003 # On AIX/PPC, the GNU linker is very broken
9004 if test "$host_cpu" != ia64; then
9008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support. If you
9011 *** really care for shared libraries, you may want to modify your PATH
9012 *** so that a non-GNU linker is found, and then restart.
9019 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)'
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9023 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9024 # that the semantics of dynamic libraries on AmigaOS, at least up
9025 # to version 4, is to share data among multiple programs linked
9026 # with the same dynamic library. Since this doesn't match the
9027 # behavior of shared libraries on other platforms, we can't use
9033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034 allow_undefined_flag=unsupported
9035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9036 # support --undefined. This deserves some investigation. FIXME
9037 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 cygwin* | mingw* | pw32*)
9044 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9045 # as there is no search path for DLLs.
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 allow_undefined_flag=unsupported
9048 always_export_symbols=no
9049 enable_shared_with_static_runtimes=yes
9050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9054 # If the export-symbols file already is a .def file (1st line
9055 # is EXPORTS), use it as is; otherwise, prepend...
9056 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057 cp $export_symbols $output_objdir/$soname.def;
9059 echo EXPORTS > $output_objdir/$soname.def;
9060 cat $export_symbols >> $output_objdir/$soname.def;
9062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9071 case $cc_basename,$host_cpu in
9072 pgcc*) # Portland Group C compiler
9073 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'
9074 tmp_addflag=' $pic_flag'
9076 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9080 tmp_addflag=' -i_dynamic' ;;
9081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9082 tmp_addflag=' -i_dynamic -nofor_main' ;;
9083 ifc* | ifort*) # Intel Fortran compiler
9084 tmp_addflag=' -nofor_main' ;;
9086 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 if test $supports_anon_versioning = yes; then
9089 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091 $echo "local: *; };" >> $output_objdir/$libname.ver~
9092 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9115 *** create shared libraries on Solaris systems. Therefore, libtool
9116 *** is disabling shared libraries support. We urge you to upgrade GNU
9117 *** binutils to release 2.9.1 or newer. Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9131 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9147 if test "$ld_shlibs" = no; then
9149 hardcode_libdir_flag_spec=
9150 export_dynamic_flag_spec=
9151 whole_archive_flag_spec=
9154 # PORTME fill in a description of your system's linker (not GNU ld)
9157 allow_undefined_flag=unsupported
9158 always_export_symbols=yes
9159 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'
9160 # Note: this linker hardcodes the directories in LIBPATH if there
9161 # are no directories specified by -L.
9162 hardcode_minus_L=yes
9163 if test "$GCC" = yes && test -z "$link_static_flag"; then
9164 # Neither direct hardcoding nor static linking is supported with a
9166 hardcode_direct=unsupported
9171 if test "$host_cpu" = ia64; then
9172 # On IA64, the linker does run time linking by default, so we don't
9173 # have to do anything special.
9174 aix_use_runtimelinking=no
9175 exp_sym_flag='-Bexport'
9178 # If we're using GNU nm, then we don't want the "-C" option.
9179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9181 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'
9183 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'
9185 aix_use_runtimelinking=no
9187 # Test if we are trying to use run time linking or normal
9188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9189 # need to do runtime linking.
9190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9191 for ld_flag in $LDFLAGS; do
9192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9193 aix_use_runtimelinking=yes
9199 exp_sym_flag='-bexport'
9200 no_entry_flag='-bnoentry'
9203 # When large executables or shared objects are built, AIX ld can
9204 # have problems creating the table of contents. If linking a library
9205 # or program results in "error TOC overflow" add -mminimal-toc to
9206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9211 hardcode_libdir_separator=':'
9212 link_all_deplibs=yes
9214 if test "$GCC" = yes; then
9215 case $host_os in aix4.[012]|aix4.[012].*)
9216 # We only want to do this on AIX 4.2 and lower, the check
9217 # below for broken collect2 doesn't work under 4.3+
9218 collect2name=`${CC} -print-prog-name=collect2`
9219 if test -f "$collect2name" && \
9220 strings "$collect2name" | grep resolve_lib_name >/dev/null
9222 # We have reworked collect2
9225 # We have old collect2
9226 hardcode_direct=unsupported
9227 # It fails to find uninstalled libraries when the uninstalled
9228 # path is not listed in the libpath. Setting hardcode_minus_L
9229 # to unsupported forces relinking
9230 hardcode_minus_L=yes
9231 hardcode_libdir_flag_spec='-L$libdir'
9232 hardcode_libdir_separator=
9235 shared_flag='-shared'
9236 if test "$aix_use_runtimelinking" = yes; then
9237 shared_flag="$shared_flag "'${wl}-G'
9241 if test "$host_cpu" = ia64; then
9242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9243 # chokes on -Wl,-G. The following line is correct:
9246 if test "$aix_use_runtimelinking" = yes; then
9247 shared_flag='${wl}-G'
9249 shared_flag='${wl}-bM:SRE'
9254 # It seems that -bexpall does not export symbols beginning with
9255 # underscore (_), so it is better to generate a list of symbols to export.
9256 always_export_symbols=yes
9257 if test "$aix_use_runtimelinking" = yes; then
9258 # Warning - without using the other runtime loading flags (-brtl),
9259 # -berok will link without error, but may produce a broken library.
9260 allow_undefined_flag='-berok'
9261 # Determine the default libpath from the value encoded in an empty executable.
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest$ac_exeext &&
9294 $as_test_x conftest$ac_exeext; then
9296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9298 # Check for a 64-bit object if we didn't find anything.
9299 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; }
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309 conftest$ac_exeext conftest.$ac_ext
9310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 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"
9315 if test "$host_cpu" = ia64; then
9316 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9317 allow_undefined_flag="-z nodefs"
9318 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"
9320 # Determine the default libpath from the value encoded in an empty executable.
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9357 # Check for a 64-bit object if we didn't find anything.
9358 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; }
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368 conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9371 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372 # Warning - without using the other run time loading flags,
9373 # -berok will link without error, but may produce a broken library.
9374 no_undefined_flag=' ${wl}-bernotok'
9375 allow_undefined_flag=' ${wl}-berok'
9376 # -bexpall does not export symbols beginning with underscore (_)
9377 always_export_symbols=yes
9378 # Exported symbols can be pulled into shared objects from archives
9379 whole_archive_flag_spec=' '
9380 archive_cmds_need_lc=yes
9381 # This is similar to how AIX traditionally builds its shared libraries.
9382 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'
9388 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)'
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9391 # see comment about different semantics on the GNU ld section
9396 export_dynamic_flag_spec=-rdynamic
9399 cygwin* | mingw* | pw32*)
9400 # When not using gcc, we currently assume that we are using
9401 # Microsoft Visual C++.
9402 # hardcode_libdir_flag_spec is actually meaningless, as there is
9403 # no search path for DLLs.
9404 hardcode_libdir_flag_spec=' '
9405 allow_undefined_flag=unsupported
9406 # Tell ltmain to make .lib files, not .a files.
9408 # Tell ltmain to make .dll files, not .so files.
9410 # FIXME: Setting linknames here is a bad hack.
9411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9412 # The linker will automatically build a .lib file if we build a DLL.
9413 old_archive_From_new_cmds='true'
9414 # FIXME: Should let the user specify the lib program.
9415 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9416 fix_srcfile_path='`cygpath -w "$srcfile"`'
9417 enable_shared_with_static_runtimes=yes
9420 darwin* | rhapsody*)
9422 rhapsody* | darwin1.[012])
9423 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9427 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9429 case ${MACOSX_DEPLOYMENT_TARGET} in
9431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9434 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9440 archive_cmds_need_lc=no
9442 hardcode_automatic=yes
9443 hardcode_shlibpath_var=unsupported
9444 whole_archive_flag_spec=''
9445 link_all_deplibs=yes
9446 if test "$GCC" = yes ; then
9447 output_verbose_link_cmd='echo'
9448 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9449 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9451 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}'
9452 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}'
9454 case $cc_basename in
9456 output_verbose_link_cmd='echo'
9457 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9460 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}'
9461 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}'
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 hardcode_shlibpath_var=no
9480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9481 # support. Future versions do this automatically, but an explicit c++rt0.o
9482 # does not break anything, and helps significantly (at the cost of a little
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9486 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_shlibpath_var=no
9491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_minus_L=yes
9496 hardcode_shlibpath_var=no
9499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9500 freebsd* | kfreebsd*-gnu | dragonfly*)
9501 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9502 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_shlibpath_var=no
9508 if test "$GCC" = yes; then
9509 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'
9511 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'
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_separator=:
9517 # hardcode_minus_L: Not really in the search PATH,
9518 # but as the default location of the library.
9519 hardcode_minus_L=yes
9520 export_dynamic_flag_spec='${wl}-E'
9524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9543 if test "$with_gnu_ld" = no; then
9546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547 hardcode_libdir_flag_spec_ld='+b $libdir'
9548 hardcode_libdir_separator=:
9550 hardcode_shlibpath_var=no
9553 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_shlibpath_var=no
9557 # hardcode_minus_L: Not really in the search PATH,
9558 # but as the default location of the library.
9559 hardcode_minus_L=yes
9562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563 hardcode_libdir_separator=:
9565 export_dynamic_flag_spec='${wl}-E'
9567 # hardcode_minus_L: Not really in the search PATH,
9568 # but as the default location of the library.
9569 hardcode_minus_L=yes
9575 irix5* | irix6* | nonstopux*)
9576 if test "$GCC" = yes; then
9577 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'
9579 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'
9580 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 link_all_deplibs=yes
9588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9593 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_shlibpath_var=no
9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602 hardcode_libdir_separator=:
9603 hardcode_shlibpath_var=no
9608 hardcode_shlibpath_var=no
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613 export_dynamic_flag_spec='${wl}-E'
9616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_libdir_flag_spec='-R$libdir'
9621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_minus_L=yes
9631 allow_undefined_flag=unsupported
9632 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'
9633 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9637 if test "$GCC" = yes; then
9638 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639 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'
9641 allow_undefined_flag=' -expect_unresolved \*'
9642 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'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9648 osf4* | osf5*) # as osf3* with the addition of -msym flag
9649 if test "$GCC" = yes; then
9650 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9651 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'
9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 allow_undefined_flag=' -expect_unresolved \*'
9655 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'
9656 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9657 $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'
9659 # Both c and cxx compiler support -rpath directly
9660 hardcode_libdir_flag_spec='-rpath $libdir'
9662 hardcode_libdir_separator=:
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_shlibpath_var=no
9668 export_dynamic_flag_spec='${wl}-Bexport'
9669 runpath_var=LD_RUN_PATH
9670 hardcode_runpath_var=yes
9674 no_undefined_flag=' -z text'
9675 if test "$GCC" = yes; then
9677 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9686 hardcode_libdir_flag_spec='-R$libdir'
9687 hardcode_shlibpath_var=no
9689 solaris2.[0-5] | solaris2.[0-5].*) ;;
9691 # The compiler driver will combine linker options so we
9692 # cannot just pass the convience library names through
9693 # without $wl, iff we do not link with $LD.
9694 # Luckily, gcc supports the same syntax we need for Sun Studio.
9695 # Supported since Solaris 2.6 (maybe 2.5.1?)
9698 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9700 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' ;;
9703 link_all_deplibs=yes
9707 if test "x$host_vendor" = xsequent; then
9708 # Use $CC to link under sequent, because it throws in some extra .o
9709 # files that make .init and .fini sections work.
9710 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_minus_L=yes
9717 hardcode_shlibpath_var=no
9721 case $host_vendor in
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=yes # is this really true???
9727 ## LD is ld it makes a PLAMLIB
9728 ## CC just makes a GrossModule.
9729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730 reload_cmds='$CC -r -o $output$reload_objs'
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738 runpath_var='LD_RUN_PATH'
9739 hardcode_shlibpath_var=no
9743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_shlibpath_var=no
9745 export_dynamic_flag_spec='-Bexport'
9749 if test -d /usr/nec; then
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_shlibpath_var=no
9752 runpath_var=LD_RUN_PATH
9753 hardcode_runpath_var=yes
9759 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_shlibpath_var=no
9763 hardcode_runpath_var=yes
9764 runpath_var=LD_RUN_PATH
9767 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9768 no_undefined_flag='${wl}-z ${wl}text'
9769 if test "$GCC" = yes; then
9770 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 runpath_var='LD_RUN_PATH'
9775 hardcode_shlibpath_var=no
9779 no_undefined_flag=' -z text'
9780 # $CC -shared without GNU ld will not create a library from C++
9781 # object files and a static libstdc++, better avoid it by now
9782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9785 hardcode_libdir_flag_spec=
9786 hardcode_shlibpath_var=no
9787 runpath_var='LD_RUN_PATH'
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_shlibpath_var=no
9802 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9803 echo "${ECHO_T}$ld_shlibs" >&6; }
9804 test "$ld_shlibs" = no && can_build_shared=no
9806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807 if test "$GCC" = yes; then
9808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9812 # Do we need to explicitly link libc?
9814 case "x$archive_cmds_need_lc" in
9816 # Assume -lc should be added
9817 archive_cmds_need_lc=yes
9819 if test "$enable_shared" = yes && test "$GCC" = yes; then
9820 case $archive_cmds in
9822 # FIXME: we may have to deal with multi-command sequences.
9825 # Test whether the compiler implicitly links with -lc since on some
9826 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9827 # to ld, don't add -lc before -lgcc.
9828 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9829 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } 2>conftest.err; then
9840 libobjs=conftest.$ac_objext
9842 wl=$lt_prog_compiler_wl
9848 lt_save_allow_undefined_flag=$allow_undefined_flag
9849 allow_undefined_flag=
9850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9851 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }
9856 archive_cmds_need_lc=no
9858 archive_cmds_need_lc=yes
9860 allow_undefined_flag=$lt_save_allow_undefined_flag
9862 cat conftest.err 1>&5
9865 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9876 libname_spec='lib$name'
9884 shlibpath_overrides_runpath=unknown
9886 dynamic_linker="$host_os ld.so"
9887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9888 if test "$GCC" = yes; then
9889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9891 # if the path contains ";" then we assume it to be the separator
9892 # otherwise default to the standard path separator (i.e. ":") - it is
9893 # assumed that no part of a normal pathname contains ";" but that should
9894 # okay in the real world where ";" in dirpaths is itself problematic.
9895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913 shlibpath_var=LIBPATH
9915 # AIX 3 has no versioning support, so we append a major version to the name.
9916 soname_spec='${libname}${release}${shared_ext}$major'
9923 hardcode_into_libs=yes
9924 if test "$host_cpu" = ia64; then
9925 # AIX 5 supports IA64
9926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927 shlibpath_var=LD_LIBRARY_PATH
9929 # With GCC up to 2.95.x, collect2 would create an import file
9930 # for dependence libraries. The import file would start with
9931 # the line `#! .'. This would cause the generated library to
9932 # depend on `.', always an invalid library. This was fixed in
9933 # development snapshots of GCC prior to 3.0.
9935 aix4 | aix4.[01] | aix4.[01].*)
9936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946 # soname into executable. Probably we can add versioning support to
9947 # collect2, so additional links can be useful in future.
9948 if test "$aix_use_runtimelinking" = yes; then
9949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950 # instead of lib<name>.a to let people know that these are not
9951 # typical AIX shared libraries.
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954 # We preserve .a as extension for shared libraries through AIX4.2
9955 # and later when we are not doing run time linking.
9956 library_names_spec='${libname}${release}.a $libname.a'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LIBPATH
9964 library_names_spec='$libname.ixlibrary $libname.a'
9965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9966 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'
9970 library_names_spec='${libname}${shared_ext}'
9971 dynamic_linker="$host_os ld.so"
9972 shlibpath_var=LIBRARY_PATH
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9984 # the default ld.so.conf also contains /usr/contrib/lib and
9985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9986 # libtool to hard-code these into programs
9989 cygwin* | mingw* | pw32*)
9990 version_type=windows
9995 case $GCC,$host_os in
9996 yes,cygwin* | yes,mingw* | yes,pw32*)
9997 library_names_spec='$libname.dll.a'
9998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999 postinstall_cmds='base_file=`basename \${file}`~
10000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10001 dldir=$destdir/`dirname \$dlpath`~
10002 test -d \$dldir || mkdir -p \$dldir~
10003 $install_prog $dir/$dlname \$dldir/$dlname~
10004 chmod a+x \$dldir/$dlname'
10005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10006 dlpath=$dir/\$dldll~
10008 shlibpath_overrides_runpath=yes
10012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10017 # MinGW DLLs use traditional 'lib' prefix
10018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10021 # It is most probably a Windows format PATH printed by
10022 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10023 # path with ; separators, and with drive letters. We can handle the
10024 # drive letters (cygwin fileutils understands them), so leave them,
10025 # especially as we might pass files found there to a mingw objdump,
10026 # which wouldn't understand a cygwinified path. Ahh.
10027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10033 # pw32 DLLs use 'pw' prefix rather than 'lib'
10034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10043 dynamic_linker='Win32 ld.exe'
10044 # FIXME: first we should search . and the directory the executable is in
10048 darwin* | rhapsody*)
10049 dynamic_linker="$host_os dyld"
10050 version_type=darwin
10053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10054 soname_spec='${libname}${release}${major}$shared_ext'
10055 shlibpath_overrides_runpath=yes
10056 shlibpath_var=DYLD_LIBRARY_PATH
10057 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10059 if test "$GCC" = yes; then
10060 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"`
10062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 shlibpath_var=LD_LIBRARY_PATH
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=no
10088 hardcode_into_libs=yes
10089 dynamic_linker='GNU ld.so'
10092 freebsd* | dragonfly*)
10093 # DragonFly does not have aout. When/if they implement a new
10094 # versioning mechanism, adjust this.
10095 if test -x /usr/bin/objformat; then
10096 objformat=`/usr/bin/objformat`
10099 freebsd[123]*) objformat=aout ;;
10100 *) objformat=elf ;;
10103 version_type=freebsd-$objformat
10104 case $version_type in
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10115 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=yes
10120 freebsd3.[01]* | freebsdelf3.[01]*)
10121 shlibpath_overrides_runpath=yes
10122 hardcode_into_libs=yes
10125 shlibpath_overrides_runpath=no
10126 hardcode_into_libs=yes
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 hardcode_into_libs=yes
10141 hpux9* | hpux10* | hpux11*)
10142 # Give a soname corresponding to the major version so that dld.sl refuses to
10143 # link against other versions.
10150 hardcode_into_libs=yes
10151 dynamic_linker="$host_os dld.so"
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 if test "X$HPUX_IA64_MODE" = X32; then
10157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10165 hardcode_into_libs=yes
10166 dynamic_linker="$host_os dld.sl"
10167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10176 dynamic_linker="$host_os dld.sl"
10177 shlibpath_var=SHLIB_PATH
10178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10183 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10184 postinstall_cmds='chmod 555 $lib'
10187 irix5* | irix6* | nonstopux*)
10189 nonstopux*) version_type=nonstopux ;;
10191 if test "$lt_cv_prog_gnu_ld" = yes; then
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10202 irix5* | nonstopux*)
10203 libsuff= shlibsuff=
10206 case $LD in # libtool.m4 will add one of these switches to LD
10207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208 libsuff= shlibsuff= libmagic=32-bit;;
10209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210 libsuff=32 shlibsuff=N32 libmagic=N32;;
10211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213 *) libsuff= shlibsuff= libmagic=never-match;;
10217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218 shlibpath_overrides_runpath=no
10219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221 hardcode_into_libs=yes
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10229 # This must be Linux ELF.
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 # This implies no fast_install, which is unacceptable.
10240 # Some rework will be needed to allow for fast_install
10241 # before this can be enabled.
10242 hardcode_into_libs=yes
10244 # Append ld.so.conf contents to the search path
10245 if test -f /etc/ld.so.conf; then
10246 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' ' '`
10247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10250 # We used to test for /lib/ld.so.1 and disable shared libraries on
10251 # powerpc, because MkLinux only supported shared libraries with the
10252 # GNU dynamic linker. Since this was broken with cross compilers,
10253 # most powerpc-linux boxes support dynamic linking these days and
10254 # people can always --disable-shared, the test was removed, and we
10255 # assume the GNU/Linux dynamic linker is in use.
10256 dynamic_linker='GNU/Linux ld.so'
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=no
10267 hardcode_into_libs=yes
10268 dynamic_linker='GNU ld.so'
10275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278 dynamic_linker='NetBSD (a.out) ld.so'
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 dynamic_linker='NetBSD ld.elf_so'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 hardcode_into_libs=yes
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312 *) need_version=no ;;
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319 openbsd2.[89] | openbsd2.[89].*)
10320 shlibpath_overrides_runpath=no
10323 shlibpath_overrides_runpath=yes
10327 shlibpath_overrides_runpath=yes
10332 libname_spec='$name'
10335 library_names_spec='$libname${shared_ext} $libname.a'
10336 dynamic_linker='OS/2 ld.exe'
10337 shlibpath_var=LIBPATH
10340 osf3* | osf4* | osf5*)
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 shlibpath_var=LD_LIBRARY_PATH
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10367 # ldd complains unless libraries are executable
10368 postinstall_cmds='chmod +x $lib'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 if test "$with_gnu_ld" = yes; then
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 case $host_vendor in
10390 shlibpath_overrides_runpath=no
10392 export_dynamic_flag_spec='${wl}-Blargedynsym'
10393 runpath_var=LD_RUN_PATH
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10408 if test -d /usr/nec ;then
10410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411 soname_spec='$libname${shared_ext}.$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10428 echo "${ECHO_T}$dynamic_linker" >&6; }
10429 test "$dynamic_linker" = no && can_build_shared=no
10431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10434 if test -n "$hardcode_libdir_flag_spec" || \
10435 test -n "$runpath_var" || \
10436 test "X$hardcode_automatic" = "Xyes" ; then
10438 # We can hardcode non-existant directories.
10439 if test "$hardcode_direct" != no &&
10440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10441 # have to relink, otherwise we might link with an installed library
10442 # when we should be linking with a yet-to-be-installed one
10443 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10444 test "$hardcode_minus_L" != no; then
10445 # Linking always hardcodes the temporary library directory.
10446 hardcode_action=relink
10448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10449 hardcode_action=immediate
10452 # We cannot hardcode anything, or else we can only hardcode existing
10454 hardcode_action=unsupported
10456 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10457 echo "${ECHO_T}$hardcode_action" >&6; }
10459 if test "$hardcode_action" = relink; then
10460 # Fast installation is not supported
10461 enable_fast_install=no
10462 elif test "$shlibpath_overrides_runpath" = yes ||
10463 test "$enable_shared" = no; then
10464 # Fast installation is not necessary
10465 enable_fast_install=needless
10470 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10475 { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10478 # FIXME - insert some real tests, host_os isn't really good enough
10481 if test -n "$STRIP" ; then
10482 striplib="$STRIP -x"
10483 { echo "$as_me:$LINENO: result: yes" >&5
10484 echo "${ECHO_T}yes" >&6; }
10486 { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10491 { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10497 if test "x$enable_dlopen" != xyes; then
10498 enable_dlopen=unknown
10499 enable_dlopen_self=unknown
10500 enable_dlopen_self_static=unknown
10507 lt_cv_dlopen="load_add_on"
10509 lt_cv_dlopen_self=yes
10513 lt_cv_dlopen="LoadLibrary"
10518 lt_cv_dlopen="dlopen"
10523 # if libdl is installed we need to link against it
10524 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 ac_check_lib_save_LIBS=$LIBS
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (ac_try="$ac_link"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_link") 2>conftest.er1
10562 grep -v '^ *+' conftest.er1 >conftest.err
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && {
10567 test -z "$ac_c_werror_flag" ||
10568 test ! -s conftest.err
10569 } && test -s conftest$ac_exeext &&
10570 $as_test_x conftest$ac_exeext; then
10571 ac_cv_lib_dl_dlopen=yes
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_cv_lib_dl_dlopen=no
10579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10585 if test $ac_cv_lib_dl_dlopen = yes; then
10586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10589 lt_cv_dlopen="dyld"
10591 lt_cv_dlopen_self=yes
10598 { echo "$as_me:$LINENO: checking for shl_load" >&5
10599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10600 if test "${ac_cv_func_shl_load+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define shl_load innocuous_shl_load
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char shl_load (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10619 # include <limits.h>
10621 # include <assert.h>
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10633 /* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
10636 #if defined __stub_shl_load || defined __stub___shl_load
10643 return shl_load ();
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest$ac_exeext &&
10665 $as_test_x conftest$ac_exeext; then
10666 ac_cv_func_shl_load=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_func_shl_load=no
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675 conftest$ac_exeext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10679 if test $ac_cv_func_shl_load = yes; then
10680 lt_cv_dlopen="shl_load"
10682 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 ac_check_lib_save_LIBS=$LIBS
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10706 return shl_load ();
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_link") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext &&
10728 $as_test_x conftest$ac_exeext; then
10729 ac_cv_lib_dld_shl_load=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_lib_dld_shl_load=no
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743 if test $ac_cv_lib_dld_shl_load = yes; then
10744 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10746 { echo "$as_me:$LINENO: checking for dlopen" >&5
10747 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_dlopen+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759 #define dlopen innocuous_dlopen
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char dlopen (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10767 # include <limits.h>
10769 # include <assert.h>
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined __stub_dlopen || defined __stub___dlopen
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest$ac_exeext &&
10813 $as_test_x conftest$ac_exeext; then
10814 ac_cv_func_dlopen=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_cv_func_dlopen=no
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823 conftest$ac_exeext conftest.$ac_ext
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10827 if test $ac_cv_func_dlopen = yes; then
10828 lt_cv_dlopen="dlopen"
10830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 ac_check_lib_save_LIBS=$LIBS
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest$ac_exeext &&
10876 $as_test_x conftest$ac_exeext; then
10877 ac_cv_lib_dl_dlopen=yes
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 ac_cv_lib_dl_dlopen=no
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886 conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10889 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10891 if test $ac_cv_lib_dl_dlopen = yes; then
10892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10894 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lsvld $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_link") 2>conftest.er1
10932 grep -v '^ *+' conftest.er1 >conftest.err
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest$ac_exeext &&
10940 $as_test_x conftest$ac_exeext; then
10941 ac_cv_lib_svld_dlopen=yes
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 ac_cv_lib_svld_dlopen=no
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10955 if test $ac_cv_lib_svld_dlopen = yes; then
10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10958 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 ac_check_lib_save_LIBS=$LIBS
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10982 return dld_link ();
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_link") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest$ac_exeext &&
11004 $as_test_x conftest$ac_exeext; then
11005 ac_cv_lib_dld_dld_link=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_cv_lib_dld_dld_link=no
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11019 if test $ac_cv_lib_dld_dld_link = yes; then
11020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11041 if test "x$lt_cv_dlopen" != xno; then
11047 case $lt_cv_dlopen in
11049 save_CPPFLAGS="$CPPFLAGS"
11050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11052 save_LDFLAGS="$LDFLAGS"
11053 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11056 LIBS="$lt_cv_dlopen_libs $LIBS"
11058 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11060 if test "${lt_cv_dlopen_self+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 if test "$cross_compiling" = yes; then :
11064 lt_cv_dlopen_self=cross
11066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11067 lt_status=$lt_dlunknown
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11069 "configure"
11070 #include "confdefs.h"
11079 # define LT_DLGLOBAL RTLD_GLOBAL
11082 # define LT_DLGLOBAL DL_GLOBAL
11084 # define LT_DLGLOBAL 0
11088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11089 find out it does not work in some platform. */
11090 #ifndef LT_DLLAZY_OR_NOW
11092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11095 # define LT_DLLAZY_OR_NOW DL_LAZY
11098 # define LT_DLLAZY_OR_NOW RTLD_NOW
11101 # define LT_DLLAZY_OR_NOW DL_NOW
11103 # define LT_DLLAZY_OR_NOW 0
11111 extern "C" void exit (int);
11114 void fnord() { int i=42;}
11117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11118 int status = $lt_dlunknown;
11122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11124 /* dlclose (self); */
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11135 (./conftest; exit; ) >&5 2>/dev/null
11137 case x$lt_status in
11138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11140 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11143 # compilation failed
11144 lt_cv_dlopen_self=no
11151 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11154 if test "x$lt_cv_dlopen_self" = xyes; then
11155 LDFLAGS="$LDFLAGS $link_static_flag"
11156 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11158 if test "${lt_cv_dlopen_self_static+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 if test "$cross_compiling" = yes; then :
11162 lt_cv_dlopen_self_static=cross
11164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11165 lt_status=$lt_dlunknown
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11167 "configure"
11168 #include "confdefs.h"
11177 # define LT_DLGLOBAL RTLD_GLOBAL
11180 # define LT_DLGLOBAL DL_GLOBAL
11182 # define LT_DLGLOBAL 0
11186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11187 find out it does not work in some platform. */
11188 #ifndef LT_DLLAZY_OR_NOW
11190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11193 # define LT_DLLAZY_OR_NOW DL_LAZY
11196 # define LT_DLLAZY_OR_NOW RTLD_NOW
11199 # define LT_DLLAZY_OR_NOW DL_NOW
11201 # define LT_DLLAZY_OR_NOW 0
11209 extern "C" void exit (int);
11212 void fnord() { int i=42;}
11215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216 int status = $lt_dlunknown;
11220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222 /* dlclose (self); */
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11233 (./conftest; exit; ) >&5 2>/dev/null
11235 case x$lt_status in
11236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11238 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11241 # compilation failed
11242 lt_cv_dlopen_self_static=no
11249 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11253 CPPFLAGS="$save_CPPFLAGS"
11254 LDFLAGS="$save_LDFLAGS"
11259 case $lt_cv_dlopen_self in
11260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11261 *) enable_dlopen_self=unknown ;;
11264 case $lt_cv_dlopen_self_static in
11265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11266 *) enable_dlopen_self_static=unknown ;;
11271 # Report which librarie types wil actually be built
11272 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11273 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11274 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11275 echo "${ECHO_T}$can_build_shared" >&6; }
11277 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11278 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11279 test "$can_build_shared" = "no" && enable_shared=no
11281 # On AIX, shared libraries and static libraries use the same namespace, and
11282 # are all built from PIC.
11285 test "$enable_shared" = yes && enable_static=no
11286 if test -n "$RANLIB"; then
11287 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11288 postinstall_cmds='$RANLIB $lib'
11293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11294 test "$enable_shared" = yes && enable_static=no
11298 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11299 echo "${ECHO_T}$enable_shared" >&6; }
11301 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11302 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11303 # Make sure either enable_shared or enable_static is yes.
11304 test "$enable_shared" = yes || enable_static=yes
11305 { echo "$as_me:$LINENO: result: $enable_static" >&5
11306 echo "${ECHO_T}$enable_static" >&6; }
11308 # The else clause should only fire when bootstrapping the
11309 # libtool distribution, otherwise you forgot to ship ltmain.sh
11310 # with your package, and you will get complaints that there are
11311 # no rules to generate ltmain.sh.
11312 if test -f "$ltmain"; then
11313 # See if we are running on zsh, and set the options which allow our commands through
11314 # without removal of \ escapes.
11315 if test -n "${ZSH_VERSION+set}" ; then
11316 setopt NO_GLOB_SUBST
11318 # Now quote all the things that may contain metacharacters while being
11319 # careful not to overquote the AC_SUBSTed values. We take copies of the
11320 # variables and quote the copies for generation of the libtool script.
11321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11325 deplibs_check_method reload_flag reload_cmds need_locks \
11326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11327 lt_cv_sys_global_symbol_to_c_name_address \
11328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11329 old_postinstall_cmds old_postuninstall_cmds \
11333 lt_prog_compiler_wl \
11334 lt_prog_compiler_pic \
11335 lt_prog_compiler_static \
11336 lt_prog_compiler_no_builtin_flag \
11337 export_dynamic_flag_spec \
11338 thread_safe_flag_spec \
11339 whole_archive_flag_spec \
11340 enable_shared_with_static_runtimes \
11342 old_archive_from_new_cmds \
11347 compiler_lib_search_path \
11349 archive_expsym_cmds \
11351 postuninstall_cmds \
11352 old_archive_from_expsyms_cmds \
11353 allow_undefined_flag \
11354 no_undefined_flag \
11355 export_symbols_cmds \
11356 hardcode_libdir_flag_spec \
11357 hardcode_libdir_flag_spec_ld \
11358 hardcode_libdir_separator \
11359 hardcode_automatic \
11361 module_expsym_cmds \
11362 lt_cv_prog_compiler_c_o \
11364 include_expsyms; do
11367 old_archive_cmds | \
11368 old_archive_from_new_cmds | \
11370 archive_expsym_cmds | \
11372 module_expsym_cmds | \
11373 old_archive_from_expsyms_cmds | \
11374 export_symbols_cmds | \
11375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11376 postinstall_cmds | postuninstall_cmds | \
11377 old_postinstall_cmds | old_postuninstall_cmds | \
11378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11379 # Double-quote double-evaled strings.
11380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11389 *'\$0 --fallback-echo"')
11390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11394 cfgfile="${ofile}T"
11395 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11397 { echo "$as_me:$LINENO: creating $ofile" >&5
11398 echo "$as_me: creating $ofile" >&6;}
11400 cat <<__EOF__ >> "$cfgfile"
11403 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11404 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11408 # Free Software Foundation, Inc.
11410 # This file is part of GNU Libtool:
11411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11413 # This program is free software; you can redistribute it and/or modify
11414 # it under the terms of the GNU General Public License as published by
11415 # the Free Software Foundation; either version 2 of the License, or
11416 # (at your option) any later version.
11418 # This program is distributed in the hope that it will be useful, but
11419 # WITHOUT ANY WARRANTY; without even the implied warranty of
11420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11421 # General Public License for more details.
11423 # You should have received a copy of the GNU General Public License
11424 # along with this program; if not, write to the Free Software
11425 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11427 # As a special exception to the GNU General Public License, if you
11428 # distribute this file as part of a program that contains a
11429 # configuration script generated by Autoconf, you may include it under
11430 # the same distribution terms that you use for the rest of that program.
11432 # A sed program that does not truncate output.
11435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11436 Xsed="$SED -e 1s/^X//"
11438 # The HP-UX ksh and POSIX shell print the target directory to stdout
11439 # if CDPATH is set.
11440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11442 # The names of the tagged configurations supported by this script.
11445 # ### BEGIN LIBTOOL CONFIG
11447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11449 # Shell to use when invoking shell scripts.
11452 # Whether or not to build shared libraries.
11453 build_libtool_libs=$enable_shared
11455 # Whether or not to build static libraries.
11456 build_old_libs=$enable_static
11458 # Whether or not to add -lc for building shared libraries.
11459 build_libtool_need_lc=$archive_cmds_need_lc
11461 # Whether or not to disallow shared libs when runtime libs are static
11462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11464 # Whether or not to optimize for fast installation.
11465 fast_install=$enable_fast_install
11468 host_alias=$host_alias
11472 # The build system.
11473 build_alias=$build_alias
11477 # An echo program that does not interpret backslashes.
11482 AR_FLAGS=$lt_AR_FLAGS
11487 # A language-specific compiler.
11490 # Is the compiler the GNU C compiler?
11496 # The linker used to build libraries.
11499 # Whether we need hard or soft links.
11502 # A BSD-compatible nm program.
11505 # A symbol stripping program
11508 # Used to examine libraries when file_magic_cmd begins "file"
11509 MAGIC_CMD=$MAGIC_CMD
11511 # Used on cygwin: DLL creation program.
11514 # Used on cygwin: object dumper.
11517 # Used on cygwin: assembler.
11520 # The name of the directory that contains temporary libtool files.
11523 # How to create reloadable object files.
11524 reload_flag=$lt_reload_flag
11525 reload_cmds=$lt_reload_cmds
11527 # How to pass a linker flag through the compiler.
11528 wl=$lt_lt_prog_compiler_wl
11530 # Object file suffix (normally "o").
11531 objext="$ac_objext"
11533 # Old archive suffix (normally "a").
11536 # Shared library suffix (normally ".so").
11537 shrext_cmds='$shrext_cmds'
11539 # Executable file suffix (normally "").
11542 # Additional compiler flags for building library objects.
11543 pic_flag=$lt_lt_prog_compiler_pic
11546 # What is the maximum length of a command?
11547 max_cmd_len=$lt_cv_sys_max_cmd_len
11549 # Does compiler simultaneously support -c and -o options?
11550 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11552 # Must we lock files when doing compilation?
11553 need_locks=$lt_need_locks
11555 # Do we need the lib prefix for modules?
11556 need_lib_prefix=$need_lib_prefix
11558 # Do we need a version for libraries?
11559 need_version=$need_version
11561 # Whether dlopen is supported.
11562 dlopen_support=$enable_dlopen
11564 # Whether dlopen of programs is supported.
11565 dlopen_self=$enable_dlopen_self
11567 # Whether dlopen of statically linked programs is supported.
11568 dlopen_self_static=$enable_dlopen_self_static
11570 # Compiler flag to prevent dynamic linking.
11571 link_static_flag=$lt_lt_prog_compiler_static
11573 # Compiler flag to turn off builtin functions.
11574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11576 # Compiler flag to allow reflexive dlopens.
11577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11579 # Compiler flag to generate shared objects directly from archives.
11580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11582 # Compiler flag to generate thread-safe objects.
11583 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11585 # Library versioning type.
11586 version_type=$version_type
11588 # Format of library name prefix.
11589 libname_spec=$lt_libname_spec
11591 # List of archive names. First name is the real one, the rest are links.
11592 # The last name is the one that the linker finds with -lNAME.
11593 library_names_spec=$lt_library_names_spec
11595 # The coded name of the library, if different from the real name.
11596 soname_spec=$lt_soname_spec
11598 # Commands used to build and install an old-style archive.
11600 old_archive_cmds=$lt_old_archive_cmds
11601 old_postinstall_cmds=$lt_old_postinstall_cmds
11602 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11604 # Create an old-style archive from a shared archive.
11605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11607 # Create a temporary old-style archive to link instead of a shared archive.
11608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11610 # Commands used to build and install a shared archive.
11611 archive_cmds=$lt_archive_cmds
11612 archive_expsym_cmds=$lt_archive_expsym_cmds
11613 postinstall_cmds=$lt_postinstall_cmds
11614 postuninstall_cmds=$lt_postuninstall_cmds
11616 # Commands used to build a loadable module (assumed same as above if empty)
11617 module_cmds=$lt_module_cmds
11618 module_expsym_cmds=$lt_module_expsym_cmds
11620 # Commands to strip libraries.
11621 old_striplib=$lt_old_striplib
11622 striplib=$lt_striplib
11624 # Dependencies to place before the objects being linked to create a
11626 predep_objects=$lt_predep_objects
11628 # Dependencies to place after the objects being linked to create a
11630 postdep_objects=$lt_postdep_objects
11632 # Dependencies to place before the objects being linked to create a
11634 predeps=$lt_predeps
11636 # Dependencies to place after the objects being linked to create a
11638 postdeps=$lt_postdeps
11640 # The library search path used internally by the compiler when linking
11641 # a shared library.
11642 compiler_lib_search_path=$lt_compiler_lib_search_path
11644 # Method to check whether dependent libraries are shared objects.
11645 deplibs_check_method=$lt_deplibs_check_method
11647 # Command to use when deplibs_check_method == file_magic.
11648 file_magic_cmd=$lt_file_magic_cmd
11650 # Flag that allows shared libraries with undefined symbols to be built.
11651 allow_undefined_flag=$lt_allow_undefined_flag
11653 # Flag that forces no undefined symbols.
11654 no_undefined_flag=$lt_no_undefined_flag
11656 # Commands used to finish a libtool library installation in a directory.
11657 finish_cmds=$lt_finish_cmds
11659 # Same as above, but a single script fragment to be evaled but not shown.
11660 finish_eval=$lt_finish_eval
11662 # Take the output of nm and produce a listing of raw symbols and C names.
11663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11665 # Transform the output of nm in a proper C declaration
11666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11668 # Transform the output of nm in a C name address pair
11669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11671 # This is the shared library runtime path variable.
11672 runpath_var=$runpath_var
11674 # This is the shared library path variable.
11675 shlibpath_var=$shlibpath_var
11677 # Is shlibpath searched before the hard-coded library search path?
11678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11680 # How to hardcode a shared library path into an executable.
11681 hardcode_action=$hardcode_action
11683 # Whether we should hardcode library paths into libraries.
11684 hardcode_into_libs=$hardcode_into_libs
11686 # Flag to hardcode \$libdir into a binary during linking.
11687 # This must work even if \$libdir does not exist.
11688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11690 # If ld is used when linking, flag to hardcode \$libdir into
11691 # a binary during linking. This must work even if \$libdir does
11693 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11695 # Whether we need a single -rpath flag with a separated argument.
11696 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11698 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11699 # resulting binary.
11700 hardcode_direct=$hardcode_direct
11702 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_minus_L=$hardcode_minus_L
11706 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11707 # the resulting binary.
11708 hardcode_shlibpath_var=$hardcode_shlibpath_var
11710 # Set to yes if building a shared library automatically hardcodes DIR into the library
11711 # and all subsequent libraries and executables linked against it.
11712 hardcode_automatic=$hardcode_automatic
11714 # Variables whose values should be saved in libtool wrapper scripts and
11715 # restored at relink time.
11716 variables_saved_for_relink="$variables_saved_for_relink"
11718 # Whether libtool must link a program against all its dependency libraries.
11719 link_all_deplibs=$link_all_deplibs
11721 # Compile-time system search path for libraries
11722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11724 # Run-time system search path for libraries
11725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11727 # Fix the shell variable \$srcfile for the compiler.
11728 fix_srcfile_path="$fix_srcfile_path"
11730 # Set to yes if exported symbols are required.
11731 always_export_symbols=$always_export_symbols
11733 # The commands to list exported symbols.
11734 export_symbols_cmds=$lt_export_symbols_cmds
11736 # The commands to extract the exported symbol list from a shared archive.
11737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11739 # Symbols that should not be listed in the preloaded symbols.
11740 exclude_expsyms=$lt_exclude_expsyms
11742 # Symbols that must always be exported.
11743 include_expsyms=$lt_include_expsyms
11745 # ### END LIBTOOL CONFIG
11752 cat <<\EOF >> "$cfgfile"
11754 # AIX sometimes has problems with the GCC collect2 program. For some
11755 # reason, if we set the COLLECT_NAMES environment variable, the problems
11756 # vanish in a puff of smoke.
11757 if test "X${COLLECT_NAMES+set}" != Xset; then
11759 export COLLECT_NAMES
11765 # We use sed instead of cat because bash on DJGPP gets confused if
11766 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11767 # text mode, it properly converts lines to CR/LF. This bash problem
11768 # is reportedly fixed, but why not run on old versions too?
11769 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11771 mv -f "$cfgfile" "$ofile" || \
11772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11776 # If there is no Makefile yet, we rely on a make rule to execute
11777 # `config.status --recheck' to rerun these tests and create the
11778 # libtool script then.
11779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11780 if test -f "$ltmain_in"; then
11781 test -f Makefile && make "$ltmain"
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795 # Check whether --with-tags was given.
11796 if test "${with_tags+set}" = set; then
11797 withval=$with_tags; tagnames="$withval"
11801 if test -f "$ltmain" && test -n "$tagnames"; then
11802 if test ! -f "${ofile}"; then
11803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11804 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11807 if test -z "$LTCC"; then
11808 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11809 if test -z "$LTCC"; then
11810 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11811 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11814 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11818 # Extract list of available tagged configurations in $ofile.
11819 # Note that this assumes the entire list is on one line.
11820 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11823 for tagname in $tagnames; do
11825 # Check whether tagname contains only valid characters
11826 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11828 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11829 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11830 { (exit 1); exit 1; }; }
11834 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11836 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11837 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11838 { (exit 1); exit 1; }; }
11841 # Update the list of available tags.
11842 if test -n "$tagname"; then
11843 echo appending configuration tag \"$tagname\" to $ofile
11847 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11848 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11849 (test "X$CXX" != "Xg++"))) ; then
11857 if test -n "$F77" && test "X$F77" != "Xno"; then
11865 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11875 # Source file extension for RC test sources.
11878 # Object file extension for compiled RC test sources.
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code="$lt_simple_compile_test_code"
11888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11890 # If no C compiler was specified, use CC.
11893 # Allow CC to be a program name with arguments.
11897 # save warnings/boilerplate of simple test code
11898 ac_outfile=conftest.$ac_objext
11899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11901 _lt_compiler_boilerplate=`cat conftest.err`
11904 ac_outfile=conftest.$ac_objext
11905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11907 _lt_linker_boilerplate=`cat conftest.err`
11911 # Allow CC to be a program name with arguments.
11916 for cc_temp in $compiler""; do
11918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11926 lt_cv_prog_compiler_c_o_RC=yes
11928 # The else clause should only fire when bootstrapping the
11929 # libtool distribution, otherwise you forgot to ship ltmain.sh
11930 # with your package, and you will get complaints that there are
11931 # no rules to generate ltmain.sh.
11932 if test -f "$ltmain"; then
11933 # See if we are running on zsh, and set the options which allow our commands through
11934 # without removal of \ escapes.
11935 if test -n "${ZSH_VERSION+set}" ; then
11936 setopt NO_GLOB_SUBST
11938 # Now quote all the things that may contain metacharacters while being
11939 # careful not to overquote the AC_SUBSTed values. We take copies of the
11940 # variables and quote the copies for generation of the libtool script.
11941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11945 deplibs_check_method reload_flag reload_cmds need_locks \
11946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11947 lt_cv_sys_global_symbol_to_c_name_address \
11948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11949 old_postinstall_cmds old_postuninstall_cmds \
11953 lt_prog_compiler_wl_RC \
11954 lt_prog_compiler_pic_RC \
11955 lt_prog_compiler_static_RC \
11956 lt_prog_compiler_no_builtin_flag_RC \
11957 export_dynamic_flag_spec_RC \
11958 thread_safe_flag_spec_RC \
11959 whole_archive_flag_spec_RC \
11960 enable_shared_with_static_runtimes_RC \
11961 old_archive_cmds_RC \
11962 old_archive_from_new_cmds_RC \
11963 predep_objects_RC \
11964 postdep_objects_RC \
11967 compiler_lib_search_path_RC \
11969 archive_expsym_cmds_RC \
11970 postinstall_cmds_RC \
11971 postuninstall_cmds_RC \
11972 old_archive_from_expsyms_cmds_RC \
11973 allow_undefined_flag_RC \
11974 no_undefined_flag_RC \
11975 export_symbols_cmds_RC \
11976 hardcode_libdir_flag_spec_RC \
11977 hardcode_libdir_flag_spec_ld_RC \
11978 hardcode_libdir_separator_RC \
11979 hardcode_automatic_RC \
11981 module_expsym_cmds_RC \
11982 lt_cv_prog_compiler_c_o_RC \
11983 exclude_expsyms_RC \
11984 include_expsyms_RC; do
11987 old_archive_cmds_RC | \
11988 old_archive_from_new_cmds_RC | \
11989 archive_cmds_RC | \
11990 archive_expsym_cmds_RC | \
11992 module_expsym_cmds_RC | \
11993 old_archive_from_expsyms_cmds_RC | \
11994 export_symbols_cmds_RC | \
11995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11996 postinstall_cmds | postuninstall_cmds | \
11997 old_postinstall_cmds | old_postuninstall_cmds | \
11998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11999 # Double-quote double-evaled strings.
12000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12009 *'\$0 --fallback-echo"')
12010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12016 cat <<__EOF__ >> "$cfgfile"
12017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12021 # Shell to use when invoking shell scripts.
12024 # Whether or not to build shared libraries.
12025 build_libtool_libs=$enable_shared
12027 # Whether or not to build static libraries.
12028 build_old_libs=$enable_static
12030 # Whether or not to add -lc for building shared libraries.
12031 build_libtool_need_lc=$archive_cmds_need_lc_RC
12033 # Whether or not to disallow shared libs when runtime libs are static
12034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12036 # Whether or not to optimize for fast installation.
12037 fast_install=$enable_fast_install
12040 host_alias=$host_alias
12044 # The build system.
12045 build_alias=$build_alias
12049 # An echo program that does not interpret backslashes.
12054 AR_FLAGS=$lt_AR_FLAGS
12059 # A language-specific compiler.
12062 # Is the compiler the GNU C compiler?
12068 # The linker used to build libraries.
12071 # Whether we need hard or soft links.
12074 # A BSD-compatible nm program.
12077 # A symbol stripping program
12080 # Used to examine libraries when file_magic_cmd begins "file"
12081 MAGIC_CMD=$MAGIC_CMD
12083 # Used on cygwin: DLL creation program.
12086 # Used on cygwin: object dumper.
12089 # Used on cygwin: assembler.
12092 # The name of the directory that contains temporary libtool files.
12095 # How to create reloadable object files.
12096 reload_flag=$lt_reload_flag
12097 reload_cmds=$lt_reload_cmds
12099 # How to pass a linker flag through the compiler.
12100 wl=$lt_lt_prog_compiler_wl_RC
12102 # Object file suffix (normally "o").
12103 objext="$ac_objext"
12105 # Old archive suffix (normally "a").
12108 # Shared library suffix (normally ".so").
12109 shrext_cmds='$shrext_cmds'
12111 # Executable file suffix (normally "").
12114 # Additional compiler flags for building library objects.
12115 pic_flag=$lt_lt_prog_compiler_pic_RC
12118 # What is the maximum length of a command?
12119 max_cmd_len=$lt_cv_sys_max_cmd_len
12121 # Does compiler simultaneously support -c and -o options?
12122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12124 # Must we lock files when doing compilation?
12125 need_locks=$lt_need_locks
12127 # Do we need the lib prefix for modules?
12128 need_lib_prefix=$need_lib_prefix
12130 # Do we need a version for libraries?
12131 need_version=$need_version
12133 # Whether dlopen is supported.
12134 dlopen_support=$enable_dlopen
12136 # Whether dlopen of programs is supported.
12137 dlopen_self=$enable_dlopen_self
12139 # Whether dlopen of statically linked programs is supported.
12140 dlopen_self_static=$enable_dlopen_self_static
12142 # Compiler flag to prevent dynamic linking.
12143 link_static_flag=$lt_lt_prog_compiler_static_RC
12145 # Compiler flag to turn off builtin functions.
12146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12148 # Compiler flag to allow reflexive dlopens.
12149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12151 # Compiler flag to generate shared objects directly from archives.
12152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12154 # Compiler flag to generate thread-safe objects.
12155 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12157 # Library versioning type.
12158 version_type=$version_type
12160 # Format of library name prefix.
12161 libname_spec=$lt_libname_spec
12163 # List of archive names. First name is the real one, the rest are links.
12164 # The last name is the one that the linker finds with -lNAME.
12165 library_names_spec=$lt_library_names_spec
12167 # The coded name of the library, if different from the real name.
12168 soname_spec=$lt_soname_spec
12170 # Commands used to build and install an old-style archive.
12172 old_archive_cmds=$lt_old_archive_cmds_RC
12173 old_postinstall_cmds=$lt_old_postinstall_cmds
12174 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12176 # Create an old-style archive from a shared archive.
12177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12179 # Create a temporary old-style archive to link instead of a shared archive.
12180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12182 # Commands used to build and install a shared archive.
12183 archive_cmds=$lt_archive_cmds_RC
12184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12185 postinstall_cmds=$lt_postinstall_cmds
12186 postuninstall_cmds=$lt_postuninstall_cmds
12188 # Commands used to build a loadable module (assumed same as above if empty)
12189 module_cmds=$lt_module_cmds_RC
12190 module_expsym_cmds=$lt_module_expsym_cmds_RC
12192 # Commands to strip libraries.
12193 old_striplib=$lt_old_striplib
12194 striplib=$lt_striplib
12196 # Dependencies to place before the objects being linked to create a
12198 predep_objects=$lt_predep_objects_RC
12200 # Dependencies to place after the objects being linked to create a
12202 postdep_objects=$lt_postdep_objects_RC
12204 # Dependencies to place before the objects being linked to create a
12206 predeps=$lt_predeps_RC
12208 # Dependencies to place after the objects being linked to create a
12210 postdeps=$lt_postdeps_RC
12212 # The library search path used internally by the compiler when linking
12213 # a shared library.
12214 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12216 # Method to check whether dependent libraries are shared objects.
12217 deplibs_check_method=$lt_deplibs_check_method
12219 # Command to use when deplibs_check_method == file_magic.
12220 file_magic_cmd=$lt_file_magic_cmd
12222 # Flag that allows shared libraries with undefined symbols to be built.
12223 allow_undefined_flag=$lt_allow_undefined_flag_RC
12225 # Flag that forces no undefined symbols.
12226 no_undefined_flag=$lt_no_undefined_flag_RC
12228 # Commands used to finish a libtool library installation in a directory.
12229 finish_cmds=$lt_finish_cmds
12231 # Same as above, but a single script fragment to be evaled but not shown.
12232 finish_eval=$lt_finish_eval
12234 # Take the output of nm and produce a listing of raw symbols and C names.
12235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12237 # Transform the output of nm in a proper C declaration
12238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12240 # Transform the output of nm in a C name address pair
12241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12243 # This is the shared library runtime path variable.
12244 runpath_var=$runpath_var
12246 # This is the shared library path variable.
12247 shlibpath_var=$shlibpath_var
12249 # Is shlibpath searched before the hard-coded library search path?
12250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12252 # How to hardcode a shared library path into an executable.
12253 hardcode_action=$hardcode_action_RC
12255 # Whether we should hardcode library paths into libraries.
12256 hardcode_into_libs=$hardcode_into_libs
12258 # Flag to hardcode \$libdir into a binary during linking.
12259 # This must work even if \$libdir does not exist.
12260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12262 # If ld is used when linking, flag to hardcode \$libdir into
12263 # a binary during linking. This must work even if \$libdir does
12265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12267 # Whether we need a single -rpath flag with a separated argument.
12268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12270 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12271 # resulting binary.
12272 hardcode_direct=$hardcode_direct_RC
12274 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_minus_L=$hardcode_minus_L_RC
12278 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12279 # the resulting binary.
12280 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12282 # Set to yes if building a shared library automatically hardcodes DIR into the library
12283 # and all subsequent libraries and executables linked against it.
12284 hardcode_automatic=$hardcode_automatic_RC
12286 # Variables whose values should be saved in libtool wrapper scripts and
12287 # restored at relink time.
12288 variables_saved_for_relink="$variables_saved_for_relink"
12290 # Whether libtool must link a program against all its dependency libraries.
12291 link_all_deplibs=$link_all_deplibs_RC
12293 # Compile-time system search path for libraries
12294 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12296 # Run-time system search path for libraries
12297 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12299 # Fix the shell variable \$srcfile for the compiler.
12300 fix_srcfile_path="$fix_srcfile_path_RC"
12302 # Set to yes if exported symbols are required.
12303 always_export_symbols=$always_export_symbols_RC
12305 # The commands to list exported symbols.
12306 export_symbols_cmds=$lt_export_symbols_cmds_RC
12308 # The commands to extract the exported symbol list from a shared archive.
12309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12311 # Symbols that should not be listed in the preloaded symbols.
12312 exclude_expsyms=$lt_exclude_expsyms_RC
12314 # Symbols that must always be exported.
12315 include_expsyms=$lt_include_expsyms_RC
12317 # ### END LIBTOOL TAG CONFIG: $tagname
12323 # If there is no Makefile yet, we rely on a make rule to execute
12324 # `config.status --recheck' to rerun these tests and create the
12325 # libtool script then.
12326 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12327 if test -f "$ltmain_in"; then
12328 test -f Makefile && make "$ltmain"
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12345 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12346 { (exit 1); exit 1; }; }
12350 # Append the new tag name to the list of available tags.
12351 if test -n "$tagname" ; then
12352 available_tags="$available_tags $tagname"
12358 # Now substitute the updated list of available tags.
12359 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12360 mv "${ofile}T" "$ofile"
12364 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12365 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12366 { (exit 1); exit 1; }; }
12372 # This can be used to rebuild libtool when needed
12373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12375 # Always use our own libtool.
12376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12378 # Prevent multiple expansion
12390 if test $ol_enable_perl != no ; then
12391 # Extract the first word of "perl", so it can be a program name with args.
12392 set dummy perl; ac_word=$2
12393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12395 if test "${ac_cv_path_PERLBIN+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12410 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12422 PERLBIN=$ac_cv_path_PERLBIN
12423 if test -n "$PERLBIN"; then
12424 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12425 echo "${ECHO_T}$PERLBIN" >&6; }
12427 { echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6; }
12433 if test "no$PERLBIN" = "no" ; then
12434 if test $ol_enable_perl = yes ; then
12435 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12436 echo "$as_me: error: could not locate perl" >&2;}
12437 { (exit 1); exit 1; }; }
12441 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12442 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12444 if test x"$ol_enable_perl" = "xyes" ; then
12445 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12447 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12459 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12460 # On Suns, sometimes $CPP names a directory.
12461 if test -n "$CPP" && test -d "$CPP"; then
12464 if test -z "$CPP"; then
12465 if test "${ac_cv_prog_CPP+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 # Double quotes because CPP needs to be expanded
12469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12471 ac_preproc_ok=false
12472 for ac_c_preproc_warn_flag in '' yes
12474 # Use a header file that comes with gcc, so configuring glibc
12475 # with a fresh cross-compiler works.
12476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 # <limits.h> exists even on freestanding compilers.
12478 # On the NeXT, cc -E runs the code through the compiler's parser,
12479 # not just through cpp. "Syntax error" is here to catch this case.
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 # include <limits.h>
12489 # include <assert.h>
12493 if { (ac_try="$ac_cpp conftest.$ac_ext"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } >/dev/null && {
12506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 # Broken: fails on valid input.
12518 rm -f conftest.err conftest.$ac_ext
12520 # OK, works on sane cases. Now check whether nonexistent headers
12521 # can be detected and how.
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #include <ac_nonexistent.h>
12530 if { (ac_try="$ac_cpp conftest.$ac_ext"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } >/dev/null && {
12543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12546 # Broken: success on invalid input.
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 # Passes both tests.
12557 rm -f conftest.err conftest.$ac_ext
12560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12561 rm -f conftest.err conftest.$ac_ext
12562 if $ac_preproc_ok; then
12567 ac_cv_prog_CPP=$CPP
12570 CPP=$ac_cv_prog_CPP
12572 ac_cv_prog_CPP=$CPP
12574 { echo "$as_me:$LINENO: result: $CPP" >&5
12575 echo "${ECHO_T}$CPP" >&6; }
12576 ac_preproc_ok=false
12577 for ac_c_preproc_warn_flag in '' yes
12579 # Use a header file that comes with gcc, so configuring glibc
12580 # with a fresh cross-compiler works.
12581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582 # <limits.h> exists even on freestanding compilers.
12583 # On the NeXT, cc -E runs the code through the compiler's parser,
12584 # not just through cpp. "Syntax error" is here to catch this case.
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12592 # include <limits.h>
12594 # include <assert.h>
12598 if { (ac_try="$ac_cpp conftest.$ac_ext"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } >/dev/null && {
12611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 # Broken: fails on valid input.
12623 rm -f conftest.err conftest.$ac_ext
12625 # OK, works on sane cases. Now check whether nonexistent headers
12626 # can be detected and how.
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 #include <ac_nonexistent.h>
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } >/dev/null && {
12648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12651 # Broken: success on invalid input.
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 # Passes both tests.
12662 rm -f conftest.err conftest.$ac_ext
12665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12666 rm -f conftest.err conftest.$ac_ext
12667 if $ac_preproc_ok; then
12670 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12671 See \`config.log' for more details." >&5
12672 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&2;}
12674 { (exit 1); exit 1; }; }
12678 ac_cpp='$CPP $CPPFLAGS'
12679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12683 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12684 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12685 if test "${ol_cv_msvc+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12696 #include <__FOO__/generate_error.h>
12700 if { (ac_try="$ac_cpp conftest.$ac_ext"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null && {
12713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12724 rm -f conftest.err conftest.$ac_ext
12726 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12727 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12730 *mingw32* ) ac_cv_mingw32=yes ;;
12731 *cygwin* ) ac_cv_cygwin=yes ;;
12732 *interix* ) ac_cv_interix=yes ;;
12738 cat >>confdefs.h <<_ACEOF
12739 #define EXEEXT "${EXEEXT}"
12743 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12744 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12745 if test "${ac_cv_lib_be_be_app+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-lbe -lroot -lnet $LIBS"
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest$ac_exeext &&
12789 $as_test_x conftest$ac_exeext; then
12790 ac_cv_lib_be_be_app=yes
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 ac_cv_lib_be_be_app=no
12798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799 conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12802 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12803 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12804 if test $ac_cv_lib_be_be_app = yes; then
12805 LIBS="$LIBS -lbe -lroot -lnet"
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816 if test -n "$ac_tool_prefix"; then
12817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821 if test "${ac_cv_prog_CC+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 if test -n "$CC"; then
12825 ac_cv_prog_CC="$CC" # Let the user override the test.
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 if test -n "$CC"; then
12846 { echo "$as_me:$LINENO: result: $CC" >&5
12847 echo "${ECHO_T}$CC" >&6; }
12849 { echo "$as_me:$LINENO: result: no" >&5
12850 echo "${ECHO_T}no" >&6; }
12855 if test -z "$ac_cv_prog_CC"; then
12857 # Extract the first word of "gcc", so it can be a program name with args.
12858 set dummy gcc; ac_word=$2
12859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 if test -n "$ac_ct_CC"; then
12865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874 ac_cv_prog_ac_ct_CC="gcc"
12875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12885 if test -n "$ac_ct_CC"; then
12886 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12887 echo "${ECHO_T}$ac_ct_CC" >&6; }
12889 { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12893 if test "x$ac_ct_CC" = x; then
12896 case $cross_compiling:$ac_tool_warned in
12898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12899 whose name does not start with the host triplet. If you think this
12900 configuration is useful to you, please write to autoconf@gnu.org." >&5
12901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12902 whose name does not start with the host triplet. If you think this
12903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12904 ac_tool_warned=yes ;;
12909 CC="$ac_cv_prog_CC"
12912 if test -z "$CC"; then
12913 if test -n "$ac_tool_prefix"; then
12914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12915 set dummy ${ac_tool_prefix}cc; ac_word=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_prog_CC+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 if test -n "$CC"; then
12922 ac_cv_prog_CC="$CC" # Let the user override the test.
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12931 ac_cv_prog_CC="${ac_tool_prefix}cc"
12932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 if test -n "$CC"; then
12943 { echo "$as_me:$LINENO: result: $CC" >&5
12944 echo "${ECHO_T}$CC" >&6; }
12946 { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12953 if test -z "$CC"; then
12954 # Extract the first word of "cc", so it can be a program name with args.
12955 set dummy cc; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_CC+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 if test -n "$CC"; then
12962 ac_cv_prog_CC="$CC" # Let the user override the test.
12964 ac_prog_rejected=no
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12973 ac_prog_rejected=yes
12977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 if test $ac_prog_rejected = yes; then
12985 # We found a bogon in the path, so make sure we never use it.
12986 set dummy $ac_cv_prog_CC
12988 if test $# != 0; then
12989 # We chose a different compiler from the bogus one.
12990 # However, it has the same basename, so the bogon will be chosen
12991 # first if we set CC to just the basename; use the full file name.
12993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12999 if test -n "$CC"; then
13000 { echo "$as_me:$LINENO: result: $CC" >&5
13001 echo "${ECHO_T}$CC" >&6; }
13003 { echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6; }
13009 if test -z "$CC"; then
13010 if test -n "$ac_tool_prefix"; then
13011 for ac_prog in cl.exe
13013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_prog_CC+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 if test -n "$CC"; then
13021 ac_cv_prog_CC="$CC" # Let the user override the test.
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 if test -n "$CC"; then
13042 { echo "$as_me:$LINENO: result: $CC" >&5
13043 echo "${ECHO_T}$CC" >&6; }
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13050 test -n "$CC" && break
13053 if test -z "$CC"; then
13055 for ac_prog in cl.exe
13057 # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 if test -n "$ac_ct_CC"; then
13065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074 ac_cv_prog_ac_ct_CC="$ac_prog"
13075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13085 if test -n "$ac_ct_CC"; then
13086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13087 echo "${ECHO_T}$ac_ct_CC" >&6; }
13089 { echo "$as_me:$LINENO: result: no" >&5
13090 echo "${ECHO_T}no" >&6; }
13094 test -n "$ac_ct_CC" && break
13097 if test "x$ac_ct_CC" = x; then
13100 case $cross_compiling:$ac_tool_warned in
13102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13103 whose name does not start with the host triplet. If you think this
13104 configuration is useful to you, please write to autoconf@gnu.org." >&5
13105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13106 whose name does not start with the host triplet. If you think this
13107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13108 ac_tool_warned=yes ;;
13117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13118 See \`config.log' for more details." >&5
13119 echo "$as_me: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&2;}
13121 { (exit 1); exit 1; }; }
13123 # Provide some information about the compiler.
13124 echo "$as_me:$LINENO: checking for C compiler version" >&5
13125 ac_compiler=`set X $ac_compile; echo $2`
13126 { (ac_try="$ac_compiler --version >&5"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_compiler --version >&5") 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }
13136 { (ac_try="$ac_compiler -v >&5"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_compiler -v >&5") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }
13146 { (ac_try="$ac_compiler -V >&5"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_compiler -V >&5") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }
13157 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_compile") 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest.$ac_objext; then
13197 ac_compiler_gnu=yes
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13209 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13211 GCC=`test $ac_compiler_gnu = yes && echo yes`
13212 ac_test_CFLAGS=${CFLAGS+set}
13213 ac_save_CFLAGS=$CFLAGS
13214 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13216 if test "${ac_cv_prog_cc_g+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_save_c_werror_flag=$ac_c_werror_flag
13220 ac_c_werror_flag=yes
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13238 rm -f conftest.$ac_objext
13239 if { (ac_try="$ac_compile"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_compile") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
13255 ac_cv_prog_cc_g=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_compile") 2>conftest.er1
13285 grep -v '^ *+' conftest.er1 >conftest.err
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } && {
13290 test -z "$ac_c_werror_flag" ||
13291 test ! -s conftest.err
13292 } && test -s conftest.$ac_objext; then
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_c_werror_flag=$ac_save_c_werror_flag
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compile") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest.$ac_objext; then
13332 ac_cv_prog_cc_g=yes
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 ac_c_werror_flag=$ac_save_c_werror_flag
13349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13351 if test "$ac_test_CFLAGS" = set; then
13352 CFLAGS=$ac_save_CFLAGS
13353 elif test $ac_cv_prog_cc_g = yes; then
13354 if test "$GCC" = yes; then
13360 if test "$GCC" = yes; then
13366 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13367 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13368 if test "${ac_cv_prog_cc_c89+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_cv_prog_cc_c89=no
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13379 #include <stdarg.h>
13381 #include <sys/types.h>
13382 #include <sys/stat.h>
13383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13384 struct buf { int x; };
13385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13386 static char *e (p, i)
13392 static char *f (char * (*g) (char **, int), char **p, ...)
13397 s = g (p, va_arg (v,int));
13402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13403 function prototypes and stuff, but not '\xHH' hex character constants.
13404 These don't provoke an error unfortunately, instead are silently treated
13405 as 'x'. The following induces an error, until -std is added to get
13406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13407 array size at least. It's necessary to write '\x00'==0 to get something
13408 that's true only with -std. */
13409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13412 inside strings and character constants. */
13414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13416 int test (int i, double x);
13417 struct s1 {int (*f) (int a);};
13418 struct s2 {int (*f) (double a);};
13419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13433 CC="$ac_save_CC $ac_arg"
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_cv_prog_cc_c89=$ac_arg
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13459 rm -f core conftest.err conftest.$ac_objext
13460 test "x$ac_cv_prog_cc_c89" != "xno" && break
13462 rm -f conftest.$ac_ext
13467 case "x$ac_cv_prog_cc_c89" in
13469 { echo "$as_me:$LINENO: result: none needed" >&5
13470 echo "${ECHO_T}none needed" >&6; } ;;
13472 { echo "$as_me:$LINENO: result: unsupported" >&5
13473 echo "${ECHO_T}unsupported" >&6; } ;;
13475 CC="$CC $ac_cv_prog_cc_c89"
13476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13482 ac_cpp='$CPP $CPPFLAGS'
13483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13487 depcc="$CC" am_compiler_list=
13489 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13490 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13491 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13495 # We make a subdir and do the tests there. Otherwise we can end up
13496 # making bogus files that we don't know about and never remove. For
13497 # instance it was reported that on HP-UX the gcc test will end up
13498 # making a dummy file named `D' -- because `-MD' means `put the output
13501 # Copy depcomp to subdir because otherwise we won't find it if we're
13502 # using a relative directory.
13503 cp "$am_depcomp" conftest.dir
13505 # We will build objects and dependencies in a subdirectory because
13506 # it helps to detect inapplicable dependency modes. For instance
13507 # both Tru64's cc and ICC support -MD to output dependencies as a
13508 # side effect of compilation, but ICC will put the dependencies in
13509 # the current directory while Tru64 will put them in the object
13513 am_cv_CC_dependencies_compiler_type=none
13514 if test "$am_compiler_list" = ""; then
13515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13517 for depmode in $am_compiler_list; do
13518 # Setup a source with many dependencies, because some compilers
13519 # like to wrap large dependency lists on column 80 (with \), and
13520 # we should not choose a depcomp mode which is confused by this.
13522 # We need to recreate these files for each test, as the compiler may
13523 # overwrite some of them when testing with obscure command lines.
13524 # This happens at least with the AIX C compiler.
13526 for i in 1 2 3 4 5 6; do
13527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13529 # Solaris 8's {/usr,}/bin/sh.
13530 touch sub/conftst$i.h
13532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13536 # after this tag, mechanisms are not by side-effect, so they'll
13537 # only be used when explicitly requested
13538 if test "x$enable_dependency_tracking" = xyes; then
13546 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13547 # mode. It turns out that the SunPro C++ compiler does not properly
13548 # handle `-M -o', and we need to detect this.
13549 if depmode=$depmode \
13550 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13552 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13553 >/dev/null 2>conftest.err &&
13554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13555 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13557 # icc doesn't choke on unknown options, it will just issue warnings
13558 # or remarks (even with -Werror). So we grep stderr for any message
13559 # that says an option was ignored or not supported.
13560 # When given -MP, icc 7.0 and 7.1 complain thusly:
13561 # icc: Command line warning: ignoring option '-M'; no argument required
13562 # The diagnosis changed in icc 8.0:
13563 # icc: Command line remark: option '-MP' not supported
13564 if (grep 'ignoring option' conftest.err ||
13565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13566 am_cv_CC_dependencies_compiler_type=$depmode
13573 rm -rf conftest.dir
13575 am_cv_CC_dependencies_compiler_type=none
13579 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13580 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13586 test "x$enable_dependency_tracking" != xno \
13587 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13588 am__fastdepCC_TRUE=
13589 am__fastdepCC_FALSE='#'
13591 am__fastdepCC_TRUE='#'
13592 am__fastdepCC_FALSE=
13596 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13597 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13598 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13599 { (exit 1); exit 1; }; }
13602 # test for make depend flag
13605 if test -z "${MKDEP}"; then
13606 OL_MKDEP="${CC-cc}"
13607 if test -z "${MKDEP_FLAGS}"; then
13608 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13609 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13610 if test "${ol_cv_mkdep+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 for flag in "-M" "-xM"; do
13616 cat > conftest.c <<EOF
13619 if { ac_try='$OL_MKDEP $flag conftest.c'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } \
13625 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13627 if test ! -f conftest."${ac_object}" ; then
13629 OL_MKDEP_FLAGS="$flag"
13637 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13638 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13639 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13642 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13646 OL_MKDEP="${MKDEP}"
13647 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13652 if test "${ol_cv_mkdep}" = no ; then
13653 # this will soon become an error
13654 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13655 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13658 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13659 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13660 if test "${ac_cv_lib_s_afopen+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 ac_check_lib_save_LIBS=$LIBS
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_link") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest$ac_exeext &&
13704 $as_test_x conftest$ac_exeext; then
13705 ac_cv_lib_s_afopen=yes
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ac_cv_lib_s_afopen=no
13713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13717 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13718 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13719 if test $ac_cv_lib_s_afopen = yes; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_AIX_SECURITY 1
13733 ac_cv_func_getopt=no
13735 cat >>confdefs.h <<\_ACEOF
13736 #define BOTH_STRINGS_H 1
13743 WITH_MODULES_ENABLED=no
13744 if test $ol_enable_modules != no ; then
13746 for ac_header in ltdl.h
13748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_res=`eval echo '${'$as_ac_Header'}'`
13756 { echo "$as_me:$LINENO: result: $ac_res" >&5
13757 echo "${ECHO_T}$ac_res" >&6; }
13759 # Is the header compilable?
13760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 $ac_includes_default
13769 #include <$ac_header>
13771 rm -f conftest.$ac_objext
13772 if { (ac_try="$ac_compile"
13773 case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_compile") 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } && {
13785 test -z "$ac_c_werror_flag" ||
13786 test ! -s conftest.err
13787 } && test -s conftest.$ac_objext; then
13788 ac_header_compiler=yes
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13793 ac_header_compiler=no
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13798 echo "${ECHO_T}$ac_header_compiler" >&6; }
13800 # Is the header present?
13801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 #include <$ac_header>
13811 if { (ac_try="$ac_cpp conftest.$ac_ext"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13819 grep -v '^ *+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } >/dev/null && {
13824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13825 test ! -s conftest.err
13827 ac_header_preproc=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_header_preproc=no
13835 rm -f conftest.err conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13837 echo "${ECHO_T}$ac_header_preproc" >&6; }
13839 # So? What about this header?
13840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13846 ac_header_preproc=yes
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13862 ## --------------------------------------------- ##
13863 ## Report this to <http://www.openldap.org/its/> ##
13864 ## --------------------------------------------- ##
13866 ) | sed "s/^/$as_me: WARNING: /" >&2
13869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 eval "$as_ac_Header=\$ac_header_preproc"
13876 ac_res=`eval echo '${'$as_ac_Header'}'`
13877 { echo "$as_me:$LINENO: result: $ac_res" >&5
13878 echo "${ECHO_T}$ac_res" >&6; }
13881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13882 cat >>confdefs.h <<_ACEOF
13883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13891 if test $ac_cv_header_ltdl_h = no ; then
13892 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13893 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13894 { (exit 1); exit 1; }; }
13897 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13898 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13899 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lltdl $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13911 /* Override any GCC internal prototype to avoid an error.
13912 Use char because int might match the return type of a GCC
13913 builtin and then its argument prototype would still apply. */
13921 return lt_dlinit ();
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (ac_try="$ac_link"
13928 case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_link") 2>conftest.er1
13935 grep -v '^ *+' conftest.er1 >conftest.err
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
13942 } && test -s conftest$ac_exeext &&
13943 $as_test_x conftest$ac_exeext; then
13944 ac_cv_lib_ltdl_lt_dlinit=yes
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13949 ac_cv_lib_ltdl_lt_dlinit=no
13952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13956 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13957 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13958 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13960 MODULES_LIBS=-lltdl
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_LIBLTDL 1
13970 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13971 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13972 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13973 { (exit 1); exit 1; }; }
13975 ol_link_modules=yes
13976 WITH_MODULES_ENABLED=yes
13979 for i in $Backends; do
13980 eval "ol_tmp=\$ol_enable_$i"
13981 if test $ol_tmp = mod ; then
13982 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13983 echo "$as_me: WARNING: building static $i backend" >&2;}
13984 eval "ol_enable_$i=yes"
13987 for i in $Overlays; do
13988 eval "ol_tmp=\$ol_enable_$i"
13989 if test $ol_tmp = mod ; then
13990 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13991 echo "$as_me: WARNING: building static $i overlay" >&2;}
13992 eval "ol_enable_$i=yes"
13998 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13999 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14000 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14012 #include <__ASCII__/generate_error.h>
14016 if { (ac_try="$ac_cpp conftest.$ac_ext"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } >/dev/null && {
14029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14032 ol_cv_cpp_ebcdic=yes
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ol_cv_cpp_ebcdic=no
14040 rm -f conftest.err conftest.$ac_ext
14042 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14043 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14044 if test $ol_cv_cpp_ebcdic = yes ; then
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_EBCDIC 1
14052 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14053 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14054 if test "${ol_cv_header_stdc+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <stdlib.h>
14064 #include <stdarg.h>
14065 #include <string.h>
14068 if { (ac_try="$ac_cpp conftest.$ac_ext"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } >/dev/null && {
14081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14084 ol_cv_header_stdc=yes
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ol_cv_header_stdc=no
14092 rm -f conftest.err conftest.$ac_ext
14094 if test $ol_cv_header_stdc = yes; then
14095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14096 cat >conftest.$ac_ext <<_ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 #include <string.h>
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106 $EGREP "memchr" >/dev/null 2>&1; then
14109 ol_cv_header_stdc=no
14115 if test $ol_cv_header_stdc = yes; then
14116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 #include <stdlib.h>
14126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14127 $EGREP "free" >/dev/null 2>&1; then
14130 ol_cv_header_stdc=no
14136 if test $ol_cv_header_stdc = yes; then
14137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14138 if test "$cross_compiling" = yes; then
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14148 #ifndef HAVE_EBCDIC
14149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14152 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14153 || ('j' <= (c) && (c) <= 'r') \
14154 || ('s' <= (c) && (c) <= 'z'))
14155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14158 int main () { int i; for (i = 0; i < 256; i++)
14159 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14185 echo "$as_me: program exited with status $ac_status" >&5
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 ol_cv_header_stdc=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14199 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14200 if test $ol_cv_header_stdc = yes; then
14201 cat >>confdefs.h <<\_ACEOF
14202 #define STDC_HEADERS 1
14206 ac_cv_header_stdc=disable
14209 if test $ol_cv_header_stdc != yes; then
14210 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14211 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14219 ac_header_dirent=no
14220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14221 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14222 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14223 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_compile") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest.$ac_objext; then
14262 eval "$as_ac_Header=yes"
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 eval "$as_ac_Header=no"
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 ac_res=`eval echo '${'$as_ac_Header'}'`
14273 { echo "$as_me:$LINENO: result: $ac_res" >&5
14274 echo "${ECHO_T}$ac_res" >&6; }
14275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14276 cat >>confdefs.h <<_ACEOF
14277 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14280 ac_header_dirent=$ac_hdr; break
14284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14285 if test $ac_header_dirent = dirent.h; then
14286 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14287 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14288 if test "${ac_cv_search_opendir+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 ac_func_search_save_LIBS=$LIBS
14292 cat >conftest.$ac_ext <<_ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14314 for ac_lib in '' dir; do
14315 if test -z "$ac_lib"; then
14316 ac_res="none required"
14319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest$ac_exeext &&
14338 $as_test_x conftest$ac_exeext; then
14339 ac_cv_search_opendir=$ac_res
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14349 if test "${ac_cv_search_opendir+set}" = set; then
14353 if test "${ac_cv_search_opendir+set}" = set; then
14356 ac_cv_search_opendir=no
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14361 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14362 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14363 ac_res=$ac_cv_search_opendir
14364 if test "$ac_res" != no; then
14365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14372 if test "${ac_cv_search_opendir+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 ac_func_search_save_LIBS=$LIBS
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14398 for ac_lib in '' x; do
14399 if test -z "$ac_lib"; then
14400 ac_res="none required"
14403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 ac_cv_search_opendir=$ac_res
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14433 if test "${ac_cv_search_opendir+set}" = set; then
14437 if test "${ac_cv_search_opendir+set}" = set; then
14440 ac_cv_search_opendir=no
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14455 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14456 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14457 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 #include <sys/types.h>
14467 #include <sys/wait.h>
14468 #ifndef WEXITSTATUS
14469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14480 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest.$ac_objext; then
14502 ac_cv_header_sys_wait_h=yes
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_cv_header_sys_wait_h=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14514 if test $ac_cv_header_sys_wait_h = yes; then
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_SYS_WAIT_H 1
14522 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14523 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14524 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <sys/types.h>
14534 #include <termios.h>
14540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14541 $EGREP "yes" >/dev/null 2>&1; then
14542 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14544 ac_cv_sys_tiocgwinsz_in_termios_h=no
14549 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14550 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14552 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14553 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14554 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14555 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 cat >conftest.$ac_ext <<_ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14565 #include <sys/ioctl.h>
14571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14572 $EGREP "yes" >/dev/null 2>&1; then
14573 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14575 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14580 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14581 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14583 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14585 cat >>confdefs.h <<\_ACEOF
14586 #define GWINSZ_IN_SYS_IOCTL 1
14690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 ac_res=`eval echo '${'$as_ac_Header'}'`
14698 { echo "$as_me:$LINENO: result: $ac_res" >&5
14699 echo "${ECHO_T}$ac_res" >&6; }
14701 # Is the header compilable?
14702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 #include <$ac_header>
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
14722 grep -v '^ *+' conftest.er1 >conftest.err
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && {
14727 test -z "$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14729 } && test -s conftest.$ac_objext; then
14730 ac_header_compiler=yes
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_header_compiler=no
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14740 echo "${ECHO_T}$ac_header_compiler" >&6; }
14742 # Is the header present?
14743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <$ac_header>
14753 if { (ac_try="$ac_cpp conftest.$ac_ext"
14754 case "(($ac_try" in
14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756 *) ac_try_echo=$ac_try;;
14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14761 grep -v '^ *+' conftest.er1 >conftest.err
14763 cat conftest.err >&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } >/dev/null && {
14766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14767 test ! -s conftest.err
14769 ac_header_preproc=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_header_preproc=no
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14781 # So? What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14804 ## --------------------------------------------- ##
14805 ## Report this to <http://www.openldap.org/its/> ##
14806 ## --------------------------------------------- ##
14808 ) | sed "s/^/$as_me: WARNING: /" >&2
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 eval "$as_ac_Header=\$ac_header_preproc"
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14833 if test "$ac_cv_mingw32" = yes \
14834 -o "$ac_cv_interix" = yes \
14835 -o "$ol_cv_msvc" = yes
14839 for ac_header in winsock.h winsock2.h
14841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 ac_res=`eval echo '${'$as_ac_Header'}'`
14849 { echo "$as_me:$LINENO: result: $ac_res" >&5
14850 echo "${ECHO_T}$ac_res" >&6; }
14852 # Is the header compilable?
14853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 $ac_includes_default
14862 #include <$ac_header>
14864 rm -f conftest.$ac_objext
14865 if { (ac_try="$ac_compile"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_compile") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && {
14878 test -z "$ac_c_werror_flag" ||
14879 test ! -s conftest.err
14880 } && test -s conftest.$ac_objext; then
14881 ac_header_compiler=yes
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 ac_header_compiler=no
14889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14891 echo "${ECHO_T}$ac_header_compiler" >&6; }
14893 # Is the header present?
14894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 #include <$ac_header>
14904 if { (ac_try="$ac_cpp conftest.$ac_ext"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } >/dev/null && {
14917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14920 ac_header_preproc=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_header_preproc=no
14928 rm -f conftest.err conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14930 echo "${ECHO_T}$ac_header_preproc" >&6; }
14932 # So? What about this header?
14933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14939 ac_header_preproc=yes
14942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14955 ## --------------------------------------------- ##
14956 ## Report this to <http://www.openldap.org/its/> ##
14957 ## --------------------------------------------- ##
14959 ) | sed "s/^/$as_me: WARNING: /" >&2
14962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 eval "$as_ac_Header=\$ac_header_preproc"
14969 ac_res=`eval echo '${'$as_ac_Header'}'`
14970 { echo "$as_me:$LINENO: result: $ac_res" >&5
14971 echo "${ECHO_T}$ac_res" >&6; }
14974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14975 cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986 for ac_header in resolv.h
14988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 $ac_includes_default
15001 #include <netinet/in.h>
15004 #include <$ac_header>
15006 rm -f conftest.$ac_objext
15007 if { (ac_try="$ac_compile"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_compile") 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest.$ac_objext; then
15023 eval "$as_ac_Header=yes"
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 eval "$as_ac_Header=no"
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15037 cat >>confdefs.h <<_ACEOF
15038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15047 for ac_header in netinet/tcp.h
15049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 $ac_includes_default
15062 #include <netinet/in.h>
15065 #include <$ac_header>
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15084 eval "$as_ac_Header=yes"
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 eval "$as_ac_Header=no"
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 ac_res=`eval echo '${'$as_ac_Header'}'`
15095 { echo "$as_me:$LINENO: result: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15108 for ac_header in sys/ucred.h
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15123 #ifdef HAVE_SYS_PARAM_H
15124 #include <sys/param.h>
15128 #include <$ac_header>
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest.$ac_objext; then
15147 eval "$as_ac_Header=yes"
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 eval "$as_ac_Header=no"
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 ac_res=`eval echo '${'$as_ac_Header'}'`
15158 { echo "$as_me:$LINENO: result: $ac_res" >&5
15159 echo "${ECHO_T}$ac_res" >&6; }
15160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15161 cat >>confdefs.h <<_ACEOF
15162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15173 for ac_func in sigaction sigset
15175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15189 #define $ac_func innocuous_$ac_func
15191 /* System header to define __stub macros and hopefully few prototypes,
15192 which can conflict with char $ac_func (); below.
15193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15194 <limits.h> exists even on freestanding compilers. */
15197 # include <limits.h>
15199 # include <assert.h>
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply. */
15211 /* The GNU C library defines this for functions which it implements
15212 to always fail with ENOSYS. Some functions are actually named
15213 something starting with __ and the normal name is an alias. */
15214 #if defined __stub_$ac_func || defined __stub___$ac_func
15221 return $ac_func ();
15226 rm -f conftest.$ac_objext conftest$ac_exeext
15227 if { (ac_try="$ac_link"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_link") 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } && {
15240 test -z "$ac_c_werror_flag" ||
15241 test ! -s conftest.err
15242 } && test -s conftest$ac_exeext &&
15243 $as_test_x conftest$ac_exeext; then
15244 eval "$as_ac_var=yes"
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 eval "$as_ac_var=no"
15252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15253 conftest$ac_exeext conftest.$ac_ext
15255 ac_res=`eval echo '${'$as_ac_var'}'`
15256 { echo "$as_me:$LINENO: result: $ac_res" >&5
15257 echo "${ECHO_T}$ac_res" >&6; }
15258 if test `eval echo '${'$as_ac_var'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15267 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15269 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15270 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15271 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 ac_check_lib_save_LIBS=$LIBS
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15283 /* Override any GCC internal prototype to avoid an error.
15284 Use char because int might match the return type of a GCC
15285 builtin and then its argument prototype would still apply. */
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (ac_try="$ac_link"
15300 case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_link") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } && {
15312 test -z "$ac_c_werror_flag" ||
15313 test ! -s conftest.err
15314 } && test -s conftest$ac_exeext &&
15315 $as_test_x conftest$ac_exeext; then
15316 ac_cv_lib_V3_sigset=yes
15318 echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15321 ac_cv_lib_V3_sigset=no
15324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15325 conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15328 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15329 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15330 if test $ac_cv_lib_V3_sigset = yes; then
15331 cat >>confdefs.h <<_ACEOF
15332 #define HAVE_LIBV3 1
15341 if test $ol_cv_msvc ; then
15345 if test "$ac_cv_header_winsock_h" = yes; then
15346 { echo "$as_me:$LINENO: checking for winsock" >&5
15347 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15348 if test "${ol_cv_winsock+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 for curlib in none ws2_32 wsock32; do
15354 if test curlib != none ; then
15355 LIBS="$save_LIBS -l$curlib"
15357 cat >conftest.$ac_ext <<_ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 #include <winsock.h>
15370 select(0,NULL,NULL,NULL,NULL);
15372 gethostname(NULL,0);
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 ol_cv_winsock=$curlib
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15407 test "$ol_cv_winsock" != no && break
15412 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15413 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15415 if test $ol_cv_winsock != no ; then
15417 cat >>confdefs.h <<\_ACEOF
15418 #define HAVE_WINSOCK 1
15421 ac_cv_func_socket=yes
15422 ac_cv_func_select=yes
15423 ac_cv_func_closesocket=yes
15424 ac_cv_func_gethostname=yes
15426 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15427 LIBS="$LIBS -l$ol_cv_winsock"
15430 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15432 cat >>confdefs.h <<\_ACEOF
15433 #define HAVE_WINSOCK2 1
15441 { echo "$as_me:$LINENO: checking for socket" >&5
15442 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15443 if test "${ac_cv_func_socket+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15454 #define socket innocuous_socket
15456 /* System header to define __stub macros and hopefully few prototypes,
15457 which can conflict with char socket (); below.
15458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459 <limits.h> exists even on freestanding compilers. */
15462 # include <limits.h>
15464 # include <assert.h>
15469 /* Override any GCC internal prototype to avoid an error.
15470 Use char because int might match the return type of a GCC
15471 builtin and then its argument prototype would still apply. */
15476 /* The GNU C library defines this for functions which it implements
15477 to always fail with ENOSYS. Some functions are actually named
15478 something starting with __ and the normal name is an alias. */
15479 #if defined __stub_socket || defined __stub___socket
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (ac_try="$ac_link"
15493 case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498 (eval "$ac_link") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest$ac_exeext &&
15508 $as_test_x conftest$ac_exeext; then
15509 ac_cv_func_socket=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_cv_func_socket=no
15517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15518 conftest$ac_exeext conftest.$ac_ext
15520 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15521 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15522 if test $ac_cv_func_socket = yes; then
15527 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15528 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15529 if test "${ac_cv_lib_socket_main+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-lsocket $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 ac_cv_lib_socket_main=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_lib_socket_main=no
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15581 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15582 if test $ac_cv_lib_socket_main = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define HAVE_LIBSOCKET 1
15587 LIBS="-lsocket $LIBS"
15592 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15593 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15594 if test "${ac_cv_lib_net_main+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 ac_check_lib_save_LIBS=$LIBS
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (ac_try="$ac_link"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_link") 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } && {
15629 test -z "$ac_c_werror_flag" ||
15630 test ! -s conftest.err
15631 } && test -s conftest$ac_exeext &&
15632 $as_test_x conftest$ac_exeext; then
15633 ac_cv_lib_net_main=yes
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 ac_cv_lib_net_main=no
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15645 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15646 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15647 if test $ac_cv_lib_net_main = yes; then
15648 cat >>confdefs.h <<_ACEOF
15649 #define HAVE_LIBNET 1
15657 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15658 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15659 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15660 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 ac_check_lib_save_LIBS=$LIBS
15663 LIBS="-lnsl_s $LIBS"
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_link") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && {
15694 test -z "$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 } && test -s conftest$ac_exeext &&
15697 $as_test_x conftest$ac_exeext; then
15698 ac_cv_lib_nsl_s_main=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_cv_lib_nsl_s_main=no
15706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15710 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15711 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15712 if test $ac_cv_lib_nsl_s_main = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 #define HAVE_LIBNSL_S 1
15717 LIBS="-lnsl_s $LIBS"
15722 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15723 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15724 if test "${ac_cv_lib_nsl_main+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 ac_check_lib_save_LIBS=$LIBS
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (ac_try="$ac_link"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_link") 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } && {
15759 test -z "$ac_c_werror_flag" ||
15760 test ! -s conftest.err
15761 } && test -s conftest$ac_exeext &&
15762 $as_test_x conftest$ac_exeext; then
15763 ac_cv_lib_nsl_main=yes
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_cv_lib_nsl_main=no
15771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15772 conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15775 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15776 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15777 if test $ac_cv_lib_nsl_main = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_LIBNSL 1
15787 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15788 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15789 if test "${ac_cv_lib_inet_socket+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-linet $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15801 /* Override any GCC internal prototype to avoid an error.
15802 Use char because int might match the return type of a GCC
15803 builtin and then its argument prototype would still apply. */
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (ac_try="$ac_link"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_link") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest$ac_exeext &&
15833 $as_test_x conftest$ac_exeext; then
15834 ac_cv_lib_inet_socket=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_cv_lib_inet_socket=no
15842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15843 conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15846 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15847 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15848 if test $ac_cv_lib_inet_socket = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_LIBINET 1
15853 LIBS="-linet $LIBS"
15858 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15859 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15860 if test "${ac_cv_lib_gen_main+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 ac_check_lib_save_LIBS=$LIBS
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (ac_try="$ac_link"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_link") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && {
15895 test -z "$ac_c_werror_flag" ||
15896 test ! -s conftest.err
15897 } && test -s conftest$ac_exeext &&
15898 $as_test_x conftest$ac_exeext; then
15899 ac_cv_lib_gen_main=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_cv_lib_gen_main=no
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908 conftest$ac_exeext conftest.$ac_ext
15909 LIBS=$ac_check_lib_save_LIBS
15911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15912 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15913 if test $ac_cv_lib_gen_main = yes; then
15914 cat >>confdefs.h <<_ACEOF
15915 #define HAVE_LIBGEN 1
15926 { echo "$as_me:$LINENO: checking for select" >&5
15927 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15928 if test "${ac_cv_func_select+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 cat >conftest.$ac_ext <<_ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 /* Define select to an innocuous variant, in case <limits.h> declares select.
15938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15939 #define select innocuous_select
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char select (); below.
15943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15944 <limits.h> exists even on freestanding compilers. */
15947 # include <limits.h>
15949 # include <assert.h>
15954 /* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined __stub_select || defined __stub___select
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_link") 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && {
15990 test -z "$ac_c_werror_flag" ||
15991 test ! -s conftest.err
15992 } && test -s conftest$ac_exeext &&
15993 $as_test_x conftest$ac_exeext; then
15994 ac_cv_func_select=yes
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_cv_func_select=no
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003 conftest$ac_exeext conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16006 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16007 if test $ac_cv_func_select = yes; then
16010 { { echo "$as_me:$LINENO: error: select() required." >&5
16011 echo "$as_me: error: select() required." >&2;}
16012 { (exit 1); exit 1; }; }
16016 if test "${ac_cv_header_winsock_h}" != yes; then
16019 for ac_header in sys/select.h sys/socket.h
16021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 ac_res=`eval echo '${'$as_ac_Header'}'`
16029 { echo "$as_me:$LINENO: result: $ac_res" >&5
16030 echo "${ECHO_T}$ac_res" >&6; }
16032 # Is the header compilable?
16033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 $ac_includes_default
16042 #include <$ac_header>
16044 rm -f conftest.$ac_objext
16045 if { (ac_try="$ac_compile"
16046 case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_compile") 2>conftest.er1
16053 grep -v '^ *+' conftest.er1 >conftest.err
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } && {
16058 test -z "$ac_c_werror_flag" ||
16059 test ! -s conftest.err
16060 } && test -s conftest.$ac_objext; then
16061 ac_header_compiler=yes
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 ac_header_compiler=no
16069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6; }
16073 # Is the header present?
16074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <$ac_header>
16084 if { (ac_try="$ac_cpp conftest.$ac_ext"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16092 grep -v '^ *+' conftest.er1 >conftest.err
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } >/dev/null && {
16097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16098 test ! -s conftest.err
16100 ac_header_preproc=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_header_preproc=no
16108 rm -f conftest.err conftest.$ac_ext
16109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16110 echo "${ECHO_T}$ac_header_preproc" >&6; }
16112 # So? What about this header?
16113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16119 ac_header_preproc=yes
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16135 ## --------------------------------------------- ##
16136 ## Report this to <http://www.openldap.org/its/> ##
16137 ## --------------------------------------------- ##
16139 ) | sed "s/^/$as_me: WARNING: /" >&2
16142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 eval "$as_ac_Header=\$ac_header_preproc"
16149 ac_res=`eval echo '${'$as_ac_Header'}'`
16150 { echo "$as_me:$LINENO: result: $ac_res" >&5
16151 echo "${ECHO_T}$ac_res" >&6; }
16154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16163 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16164 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16165 if test "${ac_cv_func_select_args+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16169 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16170 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 #ifdef HAVE_SYS_SELECT_H
16179 # include <sys/select.h>
16181 #ifdef HAVE_SYS_SOCKET_H
16182 # include <sys/socket.h>
16188 extern int select ($ac_arg1,
16189 $ac_arg234, $ac_arg234, $ac_arg234,
16195 rm -f conftest.$ac_objext
16196 if { (ac_try="$ac_compile"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_compile") 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest.$ac_objext; then
16212 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 # Provide a safe default value.
16225 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16228 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16229 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16230 ac_save_IFS=$IFS; IFS=','
16231 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16235 cat >>confdefs.h <<_ACEOF
16236 #define SELECT_TYPE_ARG1 $1
16240 cat >>confdefs.h <<_ACEOF
16241 #define SELECT_TYPE_ARG234 ($2)
16245 cat >>confdefs.h <<_ACEOF
16246 #define SELECT_TYPE_ARG5 ($3)
16255 for ac_func in poll
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16271 #define $ac_func innocuous_$ac_func
16273 /* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func (); below.
16275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276 <limits.h> exists even on freestanding compilers. */
16279 # include <limits.h>
16281 # include <assert.h>
16286 /* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined __stub_$ac_func || defined __stub___$ac_func
16303 return $ac_func ();
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_link") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext &&
16325 $as_test_x conftest$ac_exeext; then
16326 eval "$as_ac_var=yes"
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 eval "$as_ac_var=no"
16334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16335 conftest$ac_exeext conftest.$ac_ext
16337 ac_res=`eval echo '${'$as_ac_var'}'`
16338 { echo "$as_me:$LINENO: result: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_var'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16348 if test $ac_cv_func_poll = yes; then
16351 for ac_header in poll.h sys/poll.h
16353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16364 # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <$ac_header>
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } && {
16390 test -z "$ac_c_werror_flag" ||
16391 test ! -s conftest.err
16392 } && test -s conftest.$ac_objext; then
16393 ac_header_compiler=yes
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_header_compiler=no
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16403 echo "${ECHO_T}$ac_header_compiler" >&6; }
16405 # Is the header present?
16406 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 #include <$ac_header>
16416 if { (ac_try="$ac_cpp conftest.$ac_ext"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } >/dev/null && {
16429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16432 ac_header_preproc=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_preproc=no
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16467 ## --------------------------------------------- ##
16468 ## Report this to <http://www.openldap.org/its/> ##
16469 ## --------------------------------------------- ##
16471 ) | sed "s/^/$as_me: WARNING: /" >&2
16474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 eval "$as_ac_Header=\$ac_header_preproc"
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16487 cat >>confdefs.h <<_ACEOF
16488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16498 for ac_header in sys/epoll.h
16500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508 { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16511 # Is the header compilable?
16512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 $ac_includes_default
16521 #include <$ac_header>
16523 rm -f conftest.$ac_objext
16524 if { (ac_try="$ac_compile"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_compile") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest.$ac_objext; then
16540 ac_header_compiler=yes
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_header_compiler=no
16548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16550 echo "${ECHO_T}$ac_header_compiler" >&6; }
16552 # Is the header present?
16553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 #include <$ac_header>
16563 if { (ac_try="$ac_cpp conftest.$ac_ext"
16564 case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16571 grep -v '^ *+' conftest.er1 >conftest.err
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } >/dev/null && {
16576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16577 test ! -s conftest.err
16579 ac_header_preproc=yes
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ac_header_preproc=no
16587 rm -f conftest.err conftest.$ac_ext
16588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16589 echo "${ECHO_T}$ac_header_preproc" >&6; }
16591 # So? What about this header?
16592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16598 ac_header_preproc=yes
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16614 ## --------------------------------------------- ##
16615 ## Report this to <http://www.openldap.org/its/> ##
16616 ## --------------------------------------------- ##
16618 ) | sed "s/^/$as_me: WARNING: /" >&2
16621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 eval "$as_ac_Header=\$ac_header_preproc"
16628 ac_res=`eval echo '${'$as_ac_Header'}'`
16629 { echo "$as_me:$LINENO: result: $ac_res" >&5
16630 echo "${ECHO_T}$ac_res" >&6; }
16633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16642 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16643 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16644 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16645 if test "$cross_compiling" = yes; then
16646 { echo "$as_me:$LINENO: result: no" >&5
16647 echo "${ECHO_T}no" >&6; }
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 int main(int argc, char **argv)
16657 int epfd = epoll_create(256);
16658 exit (epfd == -1 ? 1 : 0);
16661 rm -f conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_link") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16672 { (case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_try") 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 { echo "$as_me:$LINENO: result: yes" >&5
16682 echo "${ECHO_T}yes" >&6; }
16684 cat >>confdefs.h <<\_ACEOF
16685 #define HAVE_EPOLL 1
16689 echo "$as_me: program exited with status $ac_status" >&5
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ( exit $ac_status )
16694 { echo "$as_me:$LINENO: result: no" >&5
16695 echo "${ECHO_T}no" >&6; }
16697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16704 for ac_header in sys/devpoll.h
16706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 ac_res=`eval echo '${'$as_ac_Header'}'`
16714 { echo "$as_me:$LINENO: result: $ac_res" >&5
16715 echo "${ECHO_T}$ac_res" >&6; }
16717 # Is the header compilable?
16718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 #include <$ac_header>
16729 rm -f conftest.$ac_objext
16730 if { (ac_try="$ac_compile"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_compile") 2>conftest.er1
16738 grep -v '^ *+' conftest.er1 >conftest.err
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } && {
16743 test -z "$ac_c_werror_flag" ||
16744 test ! -s conftest.err
16745 } && test -s conftest.$ac_objext; then
16746 ac_header_compiler=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_header_compiler=no
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16756 echo "${ECHO_T}$ac_header_compiler" >&6; }
16758 # Is the header present?
16759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <$ac_header>
16769 if { (ac_try="$ac_cpp conftest.$ac_ext"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } >/dev/null && {
16782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16783 test ! -s conftest.err
16785 ac_header_preproc=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_header_preproc=no
16793 rm -f conftest.err conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16795 echo "${ECHO_T}$ac_header_preproc" >&6; }
16797 # So? What about this header?
16798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16804 ac_header_preproc=yes
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16820 ## --------------------------------------------- ##
16821 ## Report this to <http://www.openldap.org/its/> ##
16822 ## --------------------------------------------- ##
16824 ) | sed "s/^/$as_me: WARNING: /" >&2
16827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 eval "$as_ac_Header=\$ac_header_preproc"
16834 ac_res=`eval echo '${'$as_ac_Header'}'`
16835 { echo "$as_me:$LINENO: result: $ac_res" >&5
16836 echo "${ECHO_T}$ac_res" >&6; }
16839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16840 cat >>confdefs.h <<_ACEOF
16841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16848 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16849 -a "${ac_cv_header_poll_h}" = yes ; \
16851 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16852 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16853 if test "$cross_compiling" = yes; then
16854 { echo "$as_me:$LINENO: result: no" >&5
16855 echo "${ECHO_T}no" >&6; }
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 int main(int argc, char **argv)
16865 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16866 exit (devpollfd == -1 ? 1 : 0);
16869 rm -f conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16880 { (case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_try") 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 { echo "$as_me:$LINENO: result: yes" >&5
16890 echo "${ECHO_T}yes" >&6; }
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_DEVPOLL 1
16897 echo "$as_me: program exited with status $ac_status" >&5
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 ( exit $ac_status )
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16911 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16912 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16913 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16925 #include <sys/types.h>
16928 #include <stdlib.h>
16933 char *c = (char *) *sys_errlist
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_compile") 2>conftest.er1
16947 grep -v '^ *+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } && {
16952 test -z "$ac_c_werror_flag" ||
16953 test ! -s conftest.err
16954 } && test -s conftest.$ac_objext; then
16955 ol_cv_dcl_sys_errlist=yes
16956 ol_cv_have_sys_errlist=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ol_cv_dcl_sys_errlist=no
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16967 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16969 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16970 if test $ol_cv_dcl_sys_errlist = no ; then
16972 cat >>confdefs.h <<\_ACEOF
16973 #define DECL_SYS_ERRLIST 1
16977 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16978 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16979 if test "${ol_cv_have_sys_errlist+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16993 char *c = (char *) *sys_errlist
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (ac_try="$ac_link"
17000 case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_link") 2>conftest.er1
17007 grep -v '^ *+' conftest.er1 >conftest.err
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest$ac_exeext &&
17015 $as_test_x conftest$ac_exeext; then
17016 ol_cv_have_sys_errlist=yes
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ol_cv_have_sys_errlist=no
17024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17025 conftest$ac_exeext conftest.$ac_ext
17027 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17028 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17030 if test $ol_cv_have_sys_errlist = yes ; then
17032 cat >>confdefs.h <<\_ACEOF
17033 #define HAVE_SYS_ERRLIST 1
17039 for ac_func in strerror strerror_r
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055 #define $ac_func innocuous_$ac_func
17057 /* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17063 # include <limits.h>
17065 # include <assert.h>
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17077 /* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 return $ac_func ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 eval "$as_ac_var=yes"
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132 ol_cv_func_strerror_r=no
17133 if test "${ac_cv_func_strerror_r}" = yes ; then
17134 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17135 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17136 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <string.h>
17148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17149 $EGREP "strerror_r" >/dev/null 2>&1; then
17150 ol_decl_strerror_r=yes
17152 ol_decl_strerror_r=no
17156 if test $ol_decl_strerror_r = yes ; then
17157 cat >conftest.$ac_ext <<_ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 #include <string.h>
17167 /* from autoconf 2.59 */
17169 char x = *strerror_r (0, buf, sizeof buf);
17170 char *p = strerror_r (0, buf, sizeof buf);
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_compile") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest.$ac_objext; then
17193 ol_cv_nonposix_strerror_r=yes
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ol_cv_nonposix_strerror_r=no
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 if test "$cross_compiling" = yes; then
17204 ol_cv_nonposix_strerror=no
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17216 strerror_r( 1, buf, sizeof buf );
17217 exit( buf[0] == 0 );
17221 rm -f conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ol_cv_nonposix_strerror_r=yes
17243 echo "$as_me: program exited with status $ac_status" >&5
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ( exit $ac_status )
17248 ol_cv_nonposix_strerror=no
17250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17258 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17259 if test $ol_cv_nonposix_strerror_r = yes ; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_NONPOSIX_STRERROR_R 1
17267 elif test "${ac_cv_func_strerror}" = no ; then
17268 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17269 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17270 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17282 #include <sys/types.h>
17285 #include <stdlib.h>
17290 char *c = (char *) *sys_errlist
17295 rm -f conftest.$ac_objext
17296 if { (ac_try="$ac_compile"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_compile") 2>conftest.er1
17304 grep -v '^ *+' conftest.er1 >conftest.err
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest.$ac_objext; then
17312 ol_cv_dcl_sys_errlist=yes
17313 ol_cv_have_sys_errlist=yes
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 ol_cv_dcl_sys_errlist=no
17321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17324 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17326 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17327 if test $ol_cv_dcl_sys_errlist = no ; then
17329 cat >>confdefs.h <<\_ACEOF
17330 #define DECL_SYS_ERRLIST 1
17334 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17335 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17336 if test "${ol_cv_have_sys_errlist+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17350 char *c = (char *) *sys_errlist
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 ol_cv_have_sys_errlist=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ol_cv_have_sys_errlist=no
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17384 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17385 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17387 if test $ol_cv_have_sys_errlist = yes ; then
17389 cat >>confdefs.h <<\_ACEOF
17390 #define HAVE_SYS_ERRLIST 1
17399 for ac_header in regex.h
17401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17414 #ifdef HAVE_SYS_TYPES_H
17415 #include <sys/types.h>
17419 #include <$ac_header>
17421 rm -f conftest.$ac_objext
17422 if { (ac_try="$ac_compile"
17423 case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.$ac_objext; then
17438 eval "$as_ac_Header=yes"
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 eval "$as_ac_Header=no"
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 ac_res=`eval echo '${'$as_ac_Header'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17461 if test "$ac_cv_header_regex_h" != yes ; then
17462 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17463 echo "$as_me: error: POSIX regex.h required." >&2;}
17464 { (exit 1); exit 1; }; }
17466 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17467 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17468 if test "${ac_cv_search_regfree+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 ac_func_search_save_LIBS=$LIBS
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17479 /* Override any GCC internal prototype to avoid an error.
17480 Use char because int might match the return type of a GCC
17481 builtin and then its argument prototype would still apply. */
17494 for ac_lib in '' regex gnuregex; do
17495 if test -z "$ac_lib"; then
17496 ac_res="none required"
17499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_link") 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } && {
17515 test -z "$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17517 } && test -s conftest$ac_exeext &&
17518 $as_test_x conftest$ac_exeext; then
17519 ac_cv_search_regfree=$ac_res
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17529 if test "${ac_cv_search_regfree+set}" = set; then
17533 if test "${ac_cv_search_regfree+set}" = set; then
17536 ac_cv_search_regfree=no
17538 rm conftest.$ac_ext
17539 LIBS=$ac_func_search_save_LIBS
17541 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17542 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17543 ac_res=$ac_cv_search_regfree
17544 if test "$ac_res" != no; then
17545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17548 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17549 echo "$as_me: error: POSIX regex required." >&2;}
17550 { (exit 1); exit 1; }; }
17555 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17556 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17557 if test "${ol_cv_c_posix_regex+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 if test "$cross_compiling" = yes; then
17562 ol_cv_c_posix_regex=cross
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17571 #include <sys/types.h>
17573 static char *pattern, *string;
17581 if(regcomp(&re, pattern, 0)) {
17585 string = "ALL MATCH";
17587 rc = regexec(&re, string, 0, (void*)0, 0);
17594 rm -f conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17605 { (case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_try") 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ol_cv_c_posix_regex=yes
17616 echo "$as_me: program exited with status $ac_status" >&5
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ( exit $ac_status )
17621 ol_cv_c_posix_regex=no
17623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17629 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17631 if test "$ol_cv_c_posix_regex" = no ; then
17632 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17633 echo "$as_me: error: broken POSIX regex!" >&2;}
17634 { (exit 1); exit 1; }; }
17640 for ac_header in sys/uuid.h
17642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 ac_res=`eval echo '${'$as_ac_Header'}'`
17650 { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17653 # Is the header compilable?
17654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17663 #include <$ac_header>
17665 rm -f conftest.$ac_objext
17666 if { (ac_try="$ac_compile"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_compile") 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest.$ac_objext; then
17682 ac_header_compiler=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_header_compiler=no
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17692 echo "${ECHO_T}$ac_header_compiler" >&6; }
17694 # Is the header present?
17695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17697 cat >conftest.$ac_ext <<_ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 #include <$ac_header>
17705 if { (ac_try="$ac_cpp conftest.$ac_ext"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } >/dev/null && {
17718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17721 ac_header_preproc=yes
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_header_preproc=no
17729 rm -f conftest.err conftest.$ac_ext
17730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17731 echo "${ECHO_T}$ac_header_preproc" >&6; }
17733 # So? What about this header?
17734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17740 ac_header_preproc=yes
17743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17756 ## --------------------------------------------- ##
17757 ## Report this to <http://www.openldap.org/its/> ##
17758 ## --------------------------------------------- ##
17760 ) | sed "s/^/$as_me: WARNING: /" >&2
17763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 eval "$as_ac_Header=\$ac_header_preproc"
17770 ac_res=`eval echo '${'$as_ac_Header'}'`
17771 { echo "$as_me:$LINENO: result: $ac_res" >&5
17772 echo "${ECHO_T}$ac_res" >&6; }
17775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17784 if test $ac_cv_header_sys_uuid_h = yes ; then
17786 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17787 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17788 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ac_func_search_save_LIBS=$LIBS
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 /* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17805 char uuid_to_str ();
17809 return uuid_to_str ();
17814 for ac_lib in '' uuid; do
17815 if test -z "$ac_lib"; then
17816 ac_res="none required"
17819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (ac_try="$ac_link"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_link") 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } && {
17835 test -z "$ac_c_werror_flag" ||
17836 test ! -s conftest.err
17837 } && test -s conftest$ac_exeext &&
17838 $as_test_x conftest$ac_exeext; then
17839 ac_cv_search_uuid_to_str=$ac_res
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17853 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17856 ac_cv_search_uuid_to_str=no
17858 rm conftest.$ac_ext
17859 LIBS=$ac_func_search_save_LIBS
17861 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17862 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17863 ac_res=$ac_cv_search_uuid_to_str
17864 if test "$ac_res" != no; then
17865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17873 if test $have_uuid = yes ; then
17875 cat >>confdefs.h <<\_ACEOF
17876 #define HAVE_UUID_TO_STR 1
17880 test "$ac_cv_search_uuid_to_str" = "none required" || \
17881 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17885 if test $have_uuid = no ; then
17887 for ac_header in uuid/uuid.h
17889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 ac_res=`eval echo '${'$as_ac_Header'}'`
17897 { echo "$as_me:$LINENO: result: $ac_res" >&5
17898 echo "${ECHO_T}$ac_res" >&6; }
17900 # Is the header compilable?
17901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17903 cat >conftest.$ac_ext <<_ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909 $ac_includes_default
17910 #include <$ac_header>
17912 rm -f conftest.$ac_objext
17913 if { (ac_try="$ac_compile"
17914 case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && {
17926 test -z "$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 } && test -s conftest.$ac_objext; then
17929 ac_header_compiler=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_header_compiler=no
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17939 echo "${ECHO_T}$ac_header_compiler" >&6; }
17941 # Is the header present?
17942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 #include <$ac_header>
17952 if { (ac_try="$ac_cpp conftest.$ac_ext"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } >/dev/null && {
17965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17968 ac_header_preproc=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_preproc=no
17976 rm -f conftest.err conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17978 echo "${ECHO_T}$ac_header_preproc" >&6; }
17980 # So? What about this header?
17981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17987 ac_header_preproc=yes
17990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18003 ## --------------------------------------------- ##
18004 ## Report this to <http://www.openldap.org/its/> ##
18005 ## --------------------------------------------- ##
18007 ) | sed "s/^/$as_me: WARNING: /" >&2
18010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 eval "$as_ac_Header=\$ac_header_preproc"
18017 ac_res=`eval echo '${'$as_ac_Header'}'`
18018 { echo "$as_me:$LINENO: result: $ac_res" >&5
18019 echo "${ECHO_T}$ac_res" >&6; }
18022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18023 cat >>confdefs.h <<_ACEOF
18024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18031 if test $ac_cv_header_uuid_uuid_h = yes ; then
18033 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18034 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18035 if test "${ac_cv_search_uuid_generate+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 ac_func_search_save_LIBS=$LIBS
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18052 char uuid_generate ();
18056 return uuid_generate ();
18061 for ac_lib in '' uuid; do
18062 if test -z "$ac_lib"; then
18063 ac_res="none required"
18066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (ac_try="$ac_link"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest$ac_exeext &&
18085 $as_test_x conftest$ac_exeext; then
18086 ac_cv_search_uuid_generate=$ac_res
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 if test "${ac_cv_search_uuid_generate+set}" = set; then
18100 if test "${ac_cv_search_uuid_generate+set}" = set; then
18103 ac_cv_search_uuid_generate=no
18105 rm conftest.$ac_ext
18106 LIBS=$ac_func_search_save_LIBS
18108 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18109 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18110 ac_res=$ac_cv_search_uuid_generate
18111 if test "$ac_res" != no; then
18112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18120 if test $have_uuid = yes ; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE_UUID_GENERATE 1
18127 test "$ac_cv_search_uuid_generate" = "none required" || \
18128 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18133 if test $have_uuid = no ; then
18134 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18135 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18137 LIBS="$LIBS -lrpcrt4"
18138 cat >conftest.$ac_ext <<_ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18145 int __stdcall UuidCreate(void *);
18146 int __stdcall UuidToStringA(void *,void **);
18153 UuidToStringA(0,0);
18159 rm -f conftest.$ac_objext conftest$ac_exeext
18160 if { (ac_try="$ac_link"
18161 case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_link") 2>conftest.er1
18168 grep -v '^ *+' conftest.er1 >conftest.err
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest$ac_exeext &&
18176 $as_test_x conftest$ac_exeext; then
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18186 conftest$ac_exeext conftest.$ac_ext
18187 if test $need_rpcrt = yes; then
18188 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18191 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18192 echo "${ECHO_T}$need_rpcrt" >&6; }
18195 ol_cv_lib_resolver=no
18196 if test $ol_cv_lib_resolver = no ; then
18197 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18198 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18199 if test "${ol_cv_resolver_none+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 LIBS="$ol_RESOLVER_LIB $LIBS"
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18214 #ifdef HAVE_SYS_TYPES_H
18215 # include <sys/types.h>
18217 #include <netinet/in.h>
18218 #ifdef HAVE_ARPA_NAMESER_H
18219 # include <arpa/nameser.h>
18221 #ifdef HAVE_RESOLV_H
18222 # include <resolv.h>
18230 char *request = NULL;
18231 unsigned char reply[64*1024];
18232 unsigned char host[64*1024];
18236 /* Bind 8/9 interface */
18237 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18239 /* Bind 4 interface */
18243 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18247 /* Bind 8/9 interface */
18249 #elif defined(HFIXEDSZ)
18250 /* Bind 4 interface w/ HFIXEDSZ */
18253 /* Bind 4 interface w/o HFIXEDSZ */
18254 p += sizeof(HEADER);
18256 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_link") 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && {
18276 test -z "$ac_c_werror_flag" ||
18277 test ! -s conftest.err
18278 } && test -s conftest$ac_exeext &&
18279 $as_test_x conftest$ac_exeext; then
18280 ol_cv_resolver_none=yes
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ol_cv_resolver_none=no
18288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18289 conftest$ac_exeext conftest.$ac_ext
18294 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18295 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18297 if test $ol_cv_resolver_none = yes ; then
18298 ol_cv_lib_resolver=yes
18302 if test $ol_cv_lib_resolver = no ; then
18303 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18304 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18305 if test "${ol_cv_resolver_resolv+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 ol_RESOLVER_LIB=-lresolv
18311 LIBS="$ol_RESOLVER_LIB $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 #ifdef HAVE_SYS_TYPES_H
18321 # include <sys/types.h>
18323 #include <netinet/in.h>
18324 #ifdef HAVE_ARPA_NAMESER_H
18325 # include <arpa/nameser.h>
18327 #ifdef HAVE_RESOLV_H
18328 # include <resolv.h>
18336 char *request = NULL;
18337 unsigned char reply[64*1024];
18338 unsigned char host[64*1024];
18342 /* Bind 8/9 interface */
18343 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18345 /* Bind 4 interface */
18349 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18353 /* Bind 8/9 interface */
18355 #elif defined(HFIXEDSZ)
18356 /* Bind 4 interface w/ HFIXEDSZ */
18359 /* Bind 4 interface w/o HFIXEDSZ */
18360 p += sizeof(HEADER);
18362 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_link") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && {
18382 test -z "$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 } && test -s conftest$ac_exeext &&
18385 $as_test_x conftest$ac_exeext; then
18386 ol_cv_resolver_resolv=yes
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 ol_cv_resolver_resolv=no
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395 conftest$ac_exeext conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18401 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18403 if test $ol_cv_resolver_resolv = yes ; then
18404 ol_cv_lib_resolver=-lresolv
18408 if test $ol_cv_lib_resolver = no ; then
18409 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18410 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18411 if test "${ol_cv_resolver_bind+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 ol_RESOLVER_LIB=-lbind
18417 LIBS="$ol_RESOLVER_LIB $LIBS"
18419 cat >conftest.$ac_ext <<_ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18426 #ifdef HAVE_SYS_TYPES_H
18427 # include <sys/types.h>
18429 #include <netinet/in.h>
18430 #ifdef HAVE_ARPA_NAMESER_H
18431 # include <arpa/nameser.h>
18433 #ifdef HAVE_RESOLV_H
18434 # include <resolv.h>
18442 char *request = NULL;
18443 unsigned char reply[64*1024];
18444 unsigned char host[64*1024];
18448 /* Bind 8/9 interface */
18449 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18451 /* Bind 4 interface */
18455 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18459 /* Bind 8/9 interface */
18461 #elif defined(HFIXEDSZ)
18462 /* Bind 4 interface w/ HFIXEDSZ */
18465 /* Bind 4 interface w/o HFIXEDSZ */
18466 p += sizeof(HEADER);
18468 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_link") 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && {
18488 test -z "$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 } && test -s conftest$ac_exeext &&
18491 $as_test_x conftest$ac_exeext; then
18492 ol_cv_resolver_bind=yes
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ol_cv_resolver_bind=no
18500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18501 conftest$ac_exeext conftest.$ac_ext
18506 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18507 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18509 if test $ol_cv_resolver_bind = yes ; then
18510 ol_cv_lib_resolver=-lbind
18517 if test "$ol_cv_lib_resolver" != no ; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_RES_QUERY 1
18524 if test "$ol_enable_dnssrv" != no ; then
18528 if test "$ol_cv_lib_resolver" != yes ; then
18529 LIBS="$ol_cv_lib_resolver $LIBS"
18533 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18534 if test "$ol_link_dnssrv" = no ; then
18535 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18536 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18537 { (exit 1); exit 1; }; }
18540 ol_enable_dnssrv=no
18544 for ac_func in hstrerror
18546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 cat >conftest.$ac_ext <<_ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18560 #define $ac_func innocuous_$ac_func
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char $ac_func (); below.
18564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565 <limits.h> exists even on freestanding compilers. */
18568 # include <limits.h>
18570 # include <assert.h>
18575 /* Override any GCC internal prototype to avoid an error.
18576 Use char because int might match the return type of a GCC
18577 builtin and then its argument prototype would still apply. */
18582 /* The GNU C library defines this for functions which it implements
18583 to always fail with ENOSYS. Some functions are actually named
18584 something starting with __ and the normal name is an alias. */
18585 #if defined __stub_$ac_func || defined __stub___$ac_func
18592 return $ac_func ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest$ac_exeext &&
18614 $as_test_x conftest$ac_exeext; then
18615 eval "$as_ac_var=yes"
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 eval "$as_ac_var=no"
18623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18624 conftest$ac_exeext conftest.$ac_ext
18626 ac_res=`eval echo '${'$as_ac_var'}'`
18627 { echo "$as_me:$LINENO: result: $ac_res" >&5
18628 echo "${ECHO_T}$ac_res" >&6; }
18629 if test `eval echo '${'$as_ac_var'}'` = yes; then
18630 cat >>confdefs.h <<_ACEOF
18631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18642 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18658 #define $ac_func innocuous_$ac_func
18660 /* System header to define __stub macros and hopefully few prototypes,
18661 which can conflict with char $ac_func (); below.
18662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18663 <limits.h> exists even on freestanding compilers. */
18666 # include <limits.h>
18668 # include <assert.h>
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18680 /* The GNU C library defines this for functions which it implements
18681 to always fail with ENOSYS. Some functions are actually named
18682 something starting with __ and the normal name is an alias. */
18683 #if defined __stub_$ac_func || defined __stub___$ac_func
18690 return $ac_func ();
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && {
18709 test -z "$ac_c_werror_flag" ||
18710 test ! -s conftest.err
18711 } && test -s conftest$ac_exeext &&
18712 $as_test_x conftest$ac_exeext; then
18713 eval "$as_ac_var=yes"
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18718 eval "$as_ac_var=no"
18721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18722 conftest$ac_exeext conftest.$ac_ext
18724 ac_res=`eval echo '${'$as_ac_var'}'`
18725 { echo "$as_me:$LINENO: result: $ac_res" >&5
18726 echo "${ECHO_T}$ac_res" >&6; }
18727 if test `eval echo '${'$as_ac_var'}'` = yes; then
18728 cat >>confdefs.h <<_ACEOF
18729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18737 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18738 if test $ol_enable_ipv6 = yes ; then
18739 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18740 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18741 { (exit 1); exit 1; }; }
18743 elif test $ol_enable_ipv6 != no ; then
18744 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18745 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18746 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 # include <netinet/in.h>
18758 # ifdef INET6_ADDRSTRLEN
18759 __has_inet6_addrstrlen__;
18763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18764 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18765 ol_cv_inet6_addrstrlen=yes
18767 ol_cv_inet6_addrstrlen=no
18772 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18773 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18776 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18777 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18778 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18789 #include <sys/types.h>
18790 #include <sys/socket.h>
18796 struct sockaddr_storage ss;
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ol_cv_struct_sockaddr_storage=yes
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ol_cv_struct_sockaddr_storage=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18829 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18830 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18832 if test $ol_cv_inet6_addrstrlen = yes &&
18833 test $ol_cv_struct_sockaddr_storage = yes ; then
18835 elif test $ol_enable_ipv6 = yes &&
18836 test $ol_cv_inet6_addrstrlen = no ; then
18837 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18838 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18839 { (exit 1); exit 1; }; }
18840 elif test $ol_enable_ipv6 = yes &&
18841 test $ol_cv_struct_sockaddr_storage = no ; then
18842 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18843 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18844 { (exit 1); exit 1; }; }
18848 if test $ol_enable_local != no ; then
18850 for ac_header in sys/un.h
18852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 ac_res=`eval echo '${'$as_ac_Header'}'`
18860 { echo "$as_me:$LINENO: result: $ac_res" >&5
18861 echo "${ECHO_T}$ac_res" >&6; }
18863 # Is the header compilable?
18864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18872 $ac_includes_default
18873 #include <$ac_header>
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_compile") 2>conftest.er1
18884 grep -v '^ *+' conftest.er1 >conftest.err
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } && {
18889 test -z "$ac_c_werror_flag" ||
18890 test ! -s conftest.err
18891 } && test -s conftest.$ac_objext; then
18892 ac_header_compiler=yes
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 ac_header_compiler=no
18900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18902 echo "${ECHO_T}$ac_header_compiler" >&6; }
18904 # Is the header present?
18905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18913 #include <$ac_header>
18915 if { (ac_try="$ac_cpp conftest.$ac_ext"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } >/dev/null && {
18928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18931 ac_header_preproc=yes
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_header_preproc=no
18939 rm -f conftest.err conftest.$ac_ext
18940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18941 echo "${ECHO_T}$ac_header_preproc" >&6; }
18943 # So? What about this header?
18944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18950 ac_header_preproc=yes
18953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18966 ## --------------------------------------------- ##
18967 ## Report this to <http://www.openldap.org/its/> ##
18968 ## --------------------------------------------- ##
18970 ) | sed "s/^/$as_me: WARNING: /" >&2
18973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 eval "$as_ac_Header=\$ac_header_preproc"
18980 ac_res=`eval echo '${'$as_ac_Header'}'`
18981 { echo "$as_me:$LINENO: result: $ac_res" >&5
18982 echo "${ECHO_T}$ac_res" >&6; }
18985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18995 if test $ol_enable_local = auto ; then
18996 ol_enable_local=$ac_cv_header_sys_un_h
18997 elif test $ac_cv_header_sys_un_h = no ; then
18998 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18999 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19000 { (exit 1); exit 1; }; }
19006 case $ol_with_gssapi in yes | auto)
19008 ol_header_gssapi=no
19010 for ac_header in gssapi/gssapi.h
19012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 ac_res=`eval echo '${'$as_ac_Header'}'`
19020 { echo "$as_me:$LINENO: result: $ac_res" >&5
19021 echo "${ECHO_T}$ac_res" >&6; }
19023 # Is the header compilable?
19024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 $ac_includes_default
19033 #include <$ac_header>
19035 rm -f conftest.$ac_objext
19036 if { (ac_try="$ac_compile"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_compile") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest.$ac_objext; then
19052 ac_header_compiler=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_header_compiler=no
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19062 echo "${ECHO_T}$ac_header_compiler" >&6; }
19064 # Is the header present?
19065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 #include <$ac_header>
19075 if { (ac_try="$ac_cpp conftest.$ac_ext"
19076 case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19083 grep -v '^ *+' conftest.er1 >conftest.err
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } >/dev/null && {
19088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19089 test ! -s conftest.err
19091 ac_header_preproc=yes
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_header_preproc=no
19099 rm -f conftest.err conftest.$ac_ext
19100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19101 echo "${ECHO_T}$ac_header_preproc" >&6; }
19103 # So? What about this header?
19104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19110 ac_header_preproc=yes
19113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19126 ## --------------------------------------------- ##
19127 ## Report this to <http://www.openldap.org/its/> ##
19128 ## --------------------------------------------- ##
19130 ) | sed "s/^/$as_me: WARNING: /" >&2
19133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 eval "$as_ac_Header=\$ac_header_preproc"
19140 ac_res=`eval echo '${'$as_ac_Header'}'`
19141 { echo "$as_me:$LINENO: result: $ac_res" >&5
19142 echo "${ECHO_T}$ac_res" >&6; }
19145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19154 if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19155 ol_header_gssapi=yes
19158 for ac_header in gssapi.h
19160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 ac_res=`eval echo '${'$as_ac_Header'}'`
19168 { echo "$as_me:$LINENO: result: $ac_res" >&5
19169 echo "${ECHO_T}$ac_res" >&6; }
19171 # Is the header compilable?
19172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19181 #include <$ac_header>
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.$ac_objext; then
19200 ac_header_compiler=yes
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_header_compiler=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19210 echo "${ECHO_T}$ac_header_compiler" >&6; }
19212 # Is the header present?
19213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 #include <$ac_header>
19223 if { (ac_try="$ac_cpp conftest.$ac_ext"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } >/dev/null && {
19236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19239 ac_header_preproc=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_header_preproc=no
19247 rm -f conftest.err conftest.$ac_ext
19248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19249 echo "${ECHO_T}$ac_header_preproc" >&6; }
19251 # So? What about this header?
19252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19258 ac_header_preproc=yes
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19274 ## --------------------------------------------- ##
19275 ## Report this to <http://www.openldap.org/its/> ##
19276 ## --------------------------------------------- ##
19278 ) | sed "s/^/$as_me: WARNING: /" >&2
19281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 eval "$as_ac_Header=\$ac_header_preproc"
19288 ac_res=`eval echo '${'$as_ac_Header'}'`
19289 { echo "$as_me:$LINENO: result: $ac_res" >&5
19290 echo "${ECHO_T}$ac_res" >&6; }
19293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19294 cat >>confdefs.h <<_ACEOF
19295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19302 if test $ac_cv_header_gssapi_h = yes ; then
19303 ol_header_gssapi=yes
19307 LIBS="$LIBS $GSSAPI_LIBS"
19309 for ac_func in gss_oid_to_str
19311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19325 #define $ac_func innocuous_$ac_func
19327 /* System header to define __stub macros and hopefully few prototypes,
19328 which can conflict with char $ac_func (); below.
19329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19330 <limits.h> exists even on freestanding compilers. */
19333 # include <limits.h>
19335 # include <assert.h>
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19347 /* The GNU C library defines this for functions which it implements
19348 to always fail with ENOSYS. Some functions are actually named
19349 something starting with __ and the normal name is an alias. */
19350 #if defined __stub_$ac_func || defined __stub___$ac_func
19357 return $ac_func ();
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_link") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest$ac_exeext &&
19379 $as_test_x conftest$ac_exeext; then
19380 eval "$as_ac_var=yes"
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19385 eval "$as_ac_var=no"
19388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19389 conftest$ac_exeext conftest.$ac_ext
19391 ac_res=`eval echo '${'$as_ac_var'}'`
19392 { echo "$as_me:$LINENO: result: $ac_res" >&5
19393 echo "${ECHO_T}$ac_res" >&6; }
19394 if test `eval echo '${'$as_ac_var'}'` = yes; then
19395 cat >>confdefs.h <<_ACEOF
19396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19405 if test $ol_header_gssapi = yes ; then
19406 { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19407 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6; }
19408 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 ac_check_lib_save_LIBS=$LIBS
19412 LIBS="-lgssapi $LIBS"
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19420 /* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19430 return gss_wrap ();
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 ac_cv_lib_gssapi_gss_wrap=yes
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_cv_lib_gssapi_gss_wrap=no
19461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19466 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6; }
19467 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19468 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19473 if test $ol_link_gssapi != yes ; then
19474 { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19475 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6; }
19476 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lgssapi_krb5 $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19498 return gss_wrap ();
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_lib_gssapi_krb5_gss_wrap=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_lib_gssapi_krb5_gss_wrap=no
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19534 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6; }
19535 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19536 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19542 if test $ol_link_gssapi != yes ; then
19543 { echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19544 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6; }
19545 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 ac_check_lib_save_LIBS=$LIBS
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19567 return gss_wrap ();
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_lib_gss_gss_wrap=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_lib_gss_gss_wrap=no
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19603 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6; }
19604 if test $ac_cv_lib_gss_gss_wrap = yes; then
19605 ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19617 if test $ol_link_gssapi = yes; then
19619 cat >>confdefs.h <<\_ACEOF
19620 #define HAVE_GSSAPI 1
19624 elif test $ol_with_gssapi = auto ; then
19625 { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19626 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19628 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19629 elif test $ol_with_gssapi = yes ; then
19630 { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19631 echo "$as_me: error: GSSAPI detection failed" >&2;}
19632 { (exit 1); exit 1; }; }
19636 if test $ol_with_tls = yes ; then
19641 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19643 for ac_header in openssl/ssl.h
19645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 ac_res=`eval echo '${'$as_ac_Header'}'`
19653 { echo "$as_me:$LINENO: result: $ac_res" >&5
19654 echo "${ECHO_T}$ac_res" >&6; }
19656 # Is the header compilable?
19657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19665 $ac_includes_default
19666 #include <$ac_header>
19668 rm -f conftest.$ac_objext
19669 if { (ac_try="$ac_compile"
19670 case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_compile") 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } && {
19682 test -z "$ac_c_werror_flag" ||
19683 test ! -s conftest.err
19684 } && test -s conftest.$ac_objext; then
19685 ac_header_compiler=yes
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19690 ac_header_compiler=no
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19695 echo "${ECHO_T}$ac_header_compiler" >&6; }
19697 # Is the header present?
19698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 #include <$ac_header>
19708 if { (ac_try="$ac_cpp conftest.$ac_ext"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } >/dev/null && {
19721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19724 ac_header_preproc=yes
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_header_preproc=no
19732 rm -f conftest.err conftest.$ac_ext
19733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19734 echo "${ECHO_T}$ac_header_preproc" >&6; }
19736 # So? What about this header?
19737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19743 ac_header_preproc=yes
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19759 ## --------------------------------------------- ##
19760 ## Report this to <http://www.openldap.org/its/> ##
19761 ## --------------------------------------------- ##
19763 ) | sed "s/^/$as_me: WARNING: /" >&2
19766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 eval "$as_ac_Header=\$ac_header_preproc"
19773 ac_res=`eval echo '${'$as_ac_Header'}'`
19774 { echo "$as_me:$LINENO: result: $ac_res" >&5
19775 echo "${ECHO_T}$ac_res" >&6; }
19778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19779 cat >>confdefs.h <<_ACEOF
19780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19788 if test $ac_cv_header_openssl_ssl_h = yes ; then
19789 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19790 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19791 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lssl -lcrypto $LIBS"
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19809 char SSL_library_init ();
19813 return SSL_library_init ();
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } && {
19832 test -z "$ac_c_werror_flag" ||
19833 test ! -s conftest.err
19834 } && test -s conftest$ac_exeext &&
19835 $as_test_x conftest$ac_exeext; then
19836 ac_cv_lib_ssl_SSL_library_init=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_cv_lib_ssl_SSL_library_init=no
19844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19845 conftest$ac_exeext conftest.$ac_ext
19846 LIBS=$ac_check_lib_save_LIBS
19848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19849 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19850 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19858 if test $have_openssl = no ; then
19859 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19860 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19861 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19873 /* Override any GCC internal prototype to avoid an error.
19874 Use char because int might match the return type of a GCC
19875 builtin and then its argument prototype would still apply. */
19879 char ssl3_accept ();
19883 return ssl3_accept ();
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest$ac_exeext &&
19905 $as_test_x conftest$ac_exeext; then
19906 ac_cv_lib_ssl_ssl3_accept=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_lib_ssl_ssl3_accept=no
19914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915 conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19919 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19920 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19929 if test $have_openssl = yes ; then
19930 ol_with_tls=openssl
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_OPENSSL 1
19939 if test $need_rsaref = yes; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_RSAREF 1
19946 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19948 TLS_LIBS="-lssl -lcrypto"
19951 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19952 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19953 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19964 #ifdef HAVE_OPENSSL_SSL_H
19965 #include <openssl/ssl.h>
19968 /* Require 0.9.7d+ */
19969 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19970 char *__ssl_compat = "0.9.7d";
19974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19975 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19976 ol_cv_ssl_crl_compat=yes
19978 ol_cv_ssl_crl_compat=no
19983 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19984 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19986 if test $ol_cv_ssl_crl_compat = yes ; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_OPENSSL_CRL 1
19997 if test $ol_link_tls = no ; then
19998 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
20000 for ac_header in gnutls/gnutls.h
20002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 ac_res=`eval echo '${'$as_ac_Header'}'`
20010 { echo "$as_me:$LINENO: result: $ac_res" >&5
20011 echo "${ECHO_T}$ac_res" >&6; }
20013 # Is the header compilable?
20014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 #include <$ac_header>
20025 rm -f conftest.$ac_objext
20026 if { (ac_try="$ac_compile"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_compile") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } && {
20039 test -z "$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 } && test -s conftest.$ac_objext; then
20042 ac_header_compiler=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_compiler=no
20050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20052 echo "${ECHO_T}$ac_header_compiler" >&6; }
20054 # Is the header present?
20055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 #include <$ac_header>
20065 if { (ac_try="$ac_cpp conftest.$ac_ext"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } >/dev/null && {
20078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20081 ac_header_preproc=yes
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 ac_header_preproc=no
20089 rm -f conftest.err conftest.$ac_ext
20090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20091 echo "${ECHO_T}$ac_header_preproc" >&6; }
20093 # So? What about this header?
20094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20100 ac_header_preproc=yes
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20116 ## --------------------------------------------- ##
20117 ## Report this to <http://www.openldap.org/its/> ##
20118 ## --------------------------------------------- ##
20120 ) | sed "s/^/$as_me: WARNING: /" >&2
20123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 eval "$as_ac_Header=\$ac_header_preproc"
20130 ac_res=`eval echo '${'$as_ac_Header'}'`
20131 { echo "$as_me:$LINENO: result: $ac_res" >&5
20132 echo "${ECHO_T}$ac_res" >&6; }
20135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20136 cat >>confdefs.h <<_ACEOF
20137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20145 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20146 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20147 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 ac_check_lib_save_LIBS=$LIBS
20152 LIBS="-lgnutls $LIBS"
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20166 char gnutls_init ();
20170 return gnutls_init ();
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest$ac_exeext &&
20192 $as_test_x conftest$ac_exeext; then
20193 ac_cv_lib_gnutls_gnutls_init=yes
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_cv_lib_gnutls_gnutls_init=no
20201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20202 conftest$ac_exeext conftest.$ac_ext
20203 LIBS=$ac_check_lib_save_LIBS
20205 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20206 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20207 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20214 if test $have_gnutls = yes ; then
20218 TLS_LIBS="-lgnutls"
20221 cat >>confdefs.h <<\_ACEOF
20222 #define HAVE_GNUTLS 1
20231 if test $ol_link_tls = yes ; then
20233 cat >>confdefs.h <<\_ACEOF
20238 elif test $ol_with_tls = auto ; then
20239 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20240 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20242 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20243 elif test $ol_with_tls != no ; then
20244 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20245 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20246 { (exit 1); exit 1; }; }
20248 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20249 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20252 if test $ol_enable_lmpasswd != no; then
20253 if test $ol_link_tls != yes ; then
20254 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20255 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20256 { (exit 1); exit 1; }; }
20260 cat >>confdefs.h <<\_ACEOF
20261 #define SLAPD_LMHASH 1
20268 case $ol_with_threads in auto | yes | nt)
20271 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20272 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20273 if test "${ac_cv_func__beginthread+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284 #define _beginthread innocuous__beginthread
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char _beginthread (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20292 # include <limits.h>
20294 # include <assert.h>
20297 #undef _beginthread
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20305 char _beginthread ();
20306 /* The GNU C library defines this for functions which it implements
20307 to always fail with ENOSYS. Some functions are actually named
20308 something starting with __ and the normal name is an alias. */
20309 #if defined __stub__beginthread || defined __stub____beginthread
20316 return _beginthread ();
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_link") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest$ac_exeext &&
20338 $as_test_x conftest$ac_exeext; then
20339 ac_cv_func__beginthread=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_func__beginthread=no
20347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20348 conftest$ac_exeext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20351 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20354 if test $ac_cv_func__beginthread = yes ; then
20356 cat >>confdefs.h <<\_ACEOF
20357 #define HAVE_NT_THREADS 1
20360 ol_cv_nt_threads=yes
20364 if test "$ol_cv_nt_threads" = yes ; then
20366 ol_with_threads=found
20367 ol_with_yielding_select=yes
20370 cat >>confdefs.h <<\_ACEOF
20371 #define HAVE_NT_SERVICE_MANAGER 1
20375 cat >>confdefs.h <<\_ACEOF
20376 #define HAVE_NT_EVENT_LOG 1
20381 if test $ol_with_threads = nt ; then
20382 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20383 echo "$as_me: error: could not locate NT Threads" >&2;}
20384 { (exit 1); exit 1; }; }
20389 case $ol_with_threads in auto | yes | posix)
20392 for ac_header in pthread.h
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402 { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20405 # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 #include <$ac_header>
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest.$ac_objext; then
20434 ac_header_compiler=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_compiler=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20444 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446 # Is the header present?
20447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <$ac_header>
20457 if { (ac_try="$ac_cpp conftest.$ac_ext"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } >/dev/null && {
20470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20473 ac_header_preproc=yes
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_preproc=no
20481 rm -f conftest.err conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20483 echo "${ECHO_T}$ac_header_preproc" >&6; }
20485 # So? What about this header?
20486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20492 ac_header_preproc=yes
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20508 ## --------------------------------------------- ##
20509 ## Report this to <http://www.openldap.org/its/> ##
20510 ## --------------------------------------------- ##
20512 ) | sed "s/^/$as_me: WARNING: /" >&2
20515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 eval "$as_ac_Header=\$ac_header_preproc"
20522 ac_res=`eval echo '${'$as_ac_Header'}'`
20523 { echo "$as_me:$LINENO: result: $ac_res" >&5
20524 echo "${ECHO_T}$ac_res" >&6; }
20527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20528 cat >>confdefs.h <<_ACEOF
20529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 if test $ac_cv_header_pthread_h = yes ; then
20538 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20539 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20540 if test "${ol_cv_pthread_version+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 # include <pthread.h>
20557 int i = PTHREAD_CREATE_JOINABLE;
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20572 grep -v '^ *+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.$ac_objext; then
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <pthread.h>
20590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20591 $EGREP "pthread_detach" >/dev/null 2>&1; then
20592 ol_cv_pthread_version=10
20594 ol_cv_pthread_version=8
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 # include <pthread.h>
20611 # ifdef PTHREAD_CREATE_UNDETACHED
20616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20617 $EGREP "draft7" >/dev/null 2>&1; then
20618 ol_cv_pthread_version=7
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <pthread.h>
20630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20631 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20632 ol_cv_pthread_version=6
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 # include <pthread.h>
20643 #ifdef PTHREAD_MUTEX_INITIALIZER
20648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20649 $EGREP "draft5" >/dev/null 2>&1; then
20650 ol_cv_pthread_version=5
20652 ol_cv_pthread_version=4
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20668 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20671 if test $ol_cv_pthread_version != 0 ; then
20673 cat >>confdefs.h <<_ACEOF
20674 #define HAVE_PTHREADS $ol_cv_pthread_version
20678 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20679 echo "$as_me: error: unknown pthread version" >&2;}
20680 { (exit 1); exit 1; }; }
20683 # consider threads found
20684 ol_with_threads=found
20687 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20688 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20689 if test "${ol_cv_header_linux_threads+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <pthread.h>
20700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20701 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20702 ol_cv_header_linux_threads=yes
20704 ol_cv_header_linux_threads=no
20710 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20711 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20712 if test $ol_cv_header_linux_threads = yes; then
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_LINUX_THREADS 1
20721 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20722 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20723 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include <pthread.h>
20733 #ifdef _POSIX_THREAD_IS_GNU_PTH
20738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20739 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20740 ol_cv_header_gnu_pth_pthread_h=yes
20742 ol_cv_header_gnu_pth_pthread_h=no
20748 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20749 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20752 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20754 for ac_header in sched.h
20756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 ac_res=`eval echo '${'$as_ac_Header'}'`
20764 { echo "$as_me:$LINENO: result: $ac_res" >&5
20765 echo "${ECHO_T}$ac_res" >&6; }
20767 # Is the header compilable?
20768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 $ac_includes_default
20777 #include <$ac_header>
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20796 ac_header_compiler=yes
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_header_compiler=no
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20806 echo "${ECHO_T}$ac_header_compiler" >&6; }
20808 # Is the header present?
20809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 #include <$ac_header>
20819 if { (ac_try="$ac_cpp conftest.$ac_ext"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } >/dev/null && {
20832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20835 ac_header_preproc=yes
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_header_preproc=no
20843 rm -f conftest.err conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20845 echo "${ECHO_T}$ac_header_preproc" >&6; }
20847 # So? What about this header?
20848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20854 ac_header_preproc=yes
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20870 ## --------------------------------------------- ##
20871 ## Report this to <http://www.openldap.org/its/> ##
20872 ## --------------------------------------------- ##
20874 ) | sed "s/^/$as_me: WARNING: /" >&2
20877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 eval "$as_ac_Header=\$ac_header_preproc"
20884 ac_res=`eval echo '${'$as_ac_Header'}'`
20885 { echo "$as_me:$LINENO: result: $ac_res" >&5
20886 echo "${ECHO_T}$ac_res" >&6; }
20889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20901 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20902 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20903 if test "${ol_cv_pthread_create+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 if test "$cross_compiling" = yes; then
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20915 /* pthread test headers */
20916 #include <pthread.h>
20917 #if HAVE_PTHREADS < 7
20921 #define NULL (void*)0
20924 static void *task(p)
20927 return (void *) (p == NULL);
20934 /* pthread test function */
20935 #ifndef PTHREAD_CREATE_DETACHED
20936 #define PTHREAD_CREATE_DETACHED 1
20940 int detach = PTHREAD_CREATE_DETACHED;
20942 #if HAVE_PTHREADS > 4
20943 /* Final pthreads */
20944 pthread_attr_t attr;
20946 status = pthread_attr_init(&attr);
20947 if( status ) return status;
20949 #if HAVE_PTHREADS < 7
20950 status = pthread_attr_setdetachstate(&attr, &detach);
20951 if( status < 0 ) status = errno;
20953 status = pthread_attr_setdetachstate(&attr, detach);
20955 if( status ) return status;
20956 status = pthread_create( &t, &attr, task, NULL );
20957 #if HAVE_PTHREADS < 7
20958 if( status < 0 ) status = errno;
20960 if( status ) return status;
20962 /* Draft 4 pthreads */
20963 status = pthread_create( &t, pthread_attr_default, task, NULL );
20964 if( status ) return errno;
20966 /* give thread a chance to complete */
20967 /* it should remain joinable and hence detachable */
20970 status = pthread_detach( &t );
20971 if( status ) return errno;
20974 #ifdef HAVE_LINUX_THREADS
20975 pthread_kill_other_threads_np();
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext &&
21001 $as_test_x conftest$ac_exeext; then
21002 ol_cv_pthread_create=yes
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ol_cv_pthread_create=no
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21020 /* pthread test headers */
21021 #include <pthread.h>
21022 #if HAVE_PTHREADS < 7
21026 #define NULL (void*)0
21029 static void *task(p)
21032 return (void *) (p == NULL);
21036 int main(argc, argv)
21041 /* pthread test function */
21042 #ifndef PTHREAD_CREATE_DETACHED
21043 #define PTHREAD_CREATE_DETACHED 1
21047 int detach = PTHREAD_CREATE_DETACHED;
21049 #if HAVE_PTHREADS > 4
21050 /* Final pthreads */
21051 pthread_attr_t attr;
21053 status = pthread_attr_init(&attr);
21054 if( status ) return status;
21056 #if HAVE_PTHREADS < 7
21057 status = pthread_attr_setdetachstate(&attr, &detach);
21058 if( status < 0 ) status = errno;
21060 status = pthread_attr_setdetachstate(&attr, detach);
21062 if( status ) return status;
21063 status = pthread_create( &t, &attr, task, NULL );
21064 #if HAVE_PTHREADS < 7
21065 if( status < 0 ) status = errno;
21067 if( status ) return status;
21069 /* Draft 4 pthreads */
21070 status = pthread_create( &t, pthread_attr_default, task, NULL );
21071 if( status ) return errno;
21073 /* give thread a chance to complete */
21074 /* it should remain joinable and hence detachable */
21077 status = pthread_detach( &t );
21078 if( status ) return errno;
21081 #ifdef HAVE_LINUX_THREADS
21082 pthread_kill_other_threads_np();
21090 rm -f conftest$ac_exeext
21091 if { (ac_try="$ac_link"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_link") 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21101 { (case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_try") 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ol_cv_pthread_create=yes
21112 echo "$as_me: program exited with status $ac_status" >&5
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ( exit $ac_status )
21117 ol_cv_pthread_create=no
21119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21125 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21127 if test $ol_cv_pthread_create != no ; then
21128 ol_link_threads=posix
21129 ol_link_pthreads=""
21132 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21133 if test "$ol_link_threads" = no ; then
21135 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21136 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21137 if test "${ol_cv_pthread_kthread+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 LIBS="-kthread $LIBS"
21145 if test "$cross_compiling" = yes; then
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 /* pthread test headers */
21154 #include <pthread.h>
21155 #if HAVE_PTHREADS < 7
21159 #define NULL (void*)0
21162 static void *task(p)
21165 return (void *) (p == NULL);
21172 /* pthread test function */
21173 #ifndef PTHREAD_CREATE_DETACHED
21174 #define PTHREAD_CREATE_DETACHED 1
21178 int detach = PTHREAD_CREATE_DETACHED;
21180 #if HAVE_PTHREADS > 4
21181 /* Final pthreads */
21182 pthread_attr_t attr;
21184 status = pthread_attr_init(&attr);
21185 if( status ) return status;
21187 #if HAVE_PTHREADS < 7
21188 status = pthread_attr_setdetachstate(&attr, &detach);
21189 if( status < 0 ) status = errno;
21191 status = pthread_attr_setdetachstate(&attr, detach);
21193 if( status ) return status;
21194 status = pthread_create( &t, &attr, task, NULL );
21195 #if HAVE_PTHREADS < 7
21196 if( status < 0 ) status = errno;
21198 if( status ) return status;
21200 /* Draft 4 pthreads */
21201 status = pthread_create( &t, pthread_attr_default, task, NULL );
21202 if( status ) return errno;
21204 /* give thread a chance to complete */
21205 /* it should remain joinable and hence detachable */
21208 status = pthread_detach( &t );
21209 if( status ) return errno;
21212 #ifdef HAVE_LINUX_THREADS
21213 pthread_kill_other_threads_np();
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_link") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext &&
21239 $as_test_x conftest$ac_exeext; then
21240 ol_cv_pthread_kthread=yes
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ol_cv_pthread_kthread=no
21248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 conftest$ac_exeext conftest.$ac_ext
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21258 /* pthread test headers */
21259 #include <pthread.h>
21260 #if HAVE_PTHREADS < 7
21264 #define NULL (void*)0
21267 static void *task(p)
21270 return (void *) (p == NULL);
21274 int main(argc, argv)
21279 /* pthread test function */
21280 #ifndef PTHREAD_CREATE_DETACHED
21281 #define PTHREAD_CREATE_DETACHED 1
21285 int detach = PTHREAD_CREATE_DETACHED;
21287 #if HAVE_PTHREADS > 4
21288 /* Final pthreads */
21289 pthread_attr_t attr;
21291 status = pthread_attr_init(&attr);
21292 if( status ) return status;
21294 #if HAVE_PTHREADS < 7
21295 status = pthread_attr_setdetachstate(&attr, &detach);
21296 if( status < 0 ) status = errno;
21298 status = pthread_attr_setdetachstate(&attr, detach);
21300 if( status ) return status;
21301 status = pthread_create( &t, &attr, task, NULL );
21302 #if HAVE_PTHREADS < 7
21303 if( status < 0 ) status = errno;
21305 if( status ) return status;
21307 /* Draft 4 pthreads */
21308 status = pthread_create( &t, pthread_attr_default, task, NULL );
21309 if( status ) return errno;
21311 /* give thread a chance to complete */
21312 /* it should remain joinable and hence detachable */
21315 status = pthread_detach( &t );
21316 if( status ) return errno;
21319 #ifdef HAVE_LINUX_THREADS
21320 pthread_kill_other_threads_np();
21328 rm -f conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_try") 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ol_cv_pthread_kthread=yes
21350 echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ( exit $ac_status )
21355 ol_cv_pthread_kthread=no
21357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21366 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21367 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21369 if test $ol_cv_pthread_kthread = yes ; then
21370 ol_link_pthreads="-kthread"
21371 ol_link_threads=posix
21375 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21376 if test "$ol_link_threads" = no ; then
21378 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21379 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21380 if test "${ol_cv_pthread_pthread+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 LIBS="-pthread $LIBS"
21388 if test "$cross_compiling" = yes; then
21389 cat >conftest.$ac_ext <<_ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21396 /* pthread test headers */
21397 #include <pthread.h>
21398 #if HAVE_PTHREADS < 7
21402 #define NULL (void*)0
21405 static void *task(p)
21408 return (void *) (p == NULL);
21415 /* pthread test function */
21416 #ifndef PTHREAD_CREATE_DETACHED
21417 #define PTHREAD_CREATE_DETACHED 1
21421 int detach = PTHREAD_CREATE_DETACHED;
21423 #if HAVE_PTHREADS > 4
21424 /* Final pthreads */
21425 pthread_attr_t attr;
21427 status = pthread_attr_init(&attr);
21428 if( status ) return status;
21430 #if HAVE_PTHREADS < 7
21431 status = pthread_attr_setdetachstate(&attr, &detach);
21432 if( status < 0 ) status = errno;
21434 status = pthread_attr_setdetachstate(&attr, detach);
21436 if( status ) return status;
21437 status = pthread_create( &t, &attr, task, NULL );
21438 #if HAVE_PTHREADS < 7
21439 if( status < 0 ) status = errno;
21441 if( status ) return status;
21443 /* Draft 4 pthreads */
21444 status = pthread_create( &t, pthread_attr_default, task, NULL );
21445 if( status ) return errno;
21447 /* give thread a chance to complete */
21448 /* it should remain joinable and hence detachable */
21451 status = pthread_detach( &t );
21452 if( status ) return errno;
21455 #ifdef HAVE_LINUX_THREADS
21456 pthread_kill_other_threads_np();
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (ac_try="$ac_link"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_link") 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } && {
21479 test -z "$ac_c_werror_flag" ||
21480 test ! -s conftest.err
21481 } && test -s conftest$ac_exeext &&
21482 $as_test_x conftest$ac_exeext; then
21483 ol_cv_pthread_pthread=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ol_cv_pthread_pthread=no
21491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21492 conftest$ac_exeext conftest.$ac_ext
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21501 /* pthread test headers */
21502 #include <pthread.h>
21503 #if HAVE_PTHREADS < 7
21507 #define NULL (void*)0
21510 static void *task(p)
21513 return (void *) (p == NULL);
21517 int main(argc, argv)
21522 /* pthread test function */
21523 #ifndef PTHREAD_CREATE_DETACHED
21524 #define PTHREAD_CREATE_DETACHED 1
21528 int detach = PTHREAD_CREATE_DETACHED;
21530 #if HAVE_PTHREADS > 4
21531 /* Final pthreads */
21532 pthread_attr_t attr;
21534 status = pthread_attr_init(&attr);
21535 if( status ) return status;
21537 #if HAVE_PTHREADS < 7
21538 status = pthread_attr_setdetachstate(&attr, &detach);
21539 if( status < 0 ) status = errno;
21541 status = pthread_attr_setdetachstate(&attr, detach);
21543 if( status ) return status;
21544 status = pthread_create( &t, &attr, task, NULL );
21545 #if HAVE_PTHREADS < 7
21546 if( status < 0 ) status = errno;
21548 if( status ) return status;
21550 /* Draft 4 pthreads */
21551 status = pthread_create( &t, pthread_attr_default, task, NULL );
21552 if( status ) return errno;
21554 /* give thread a chance to complete */
21555 /* it should remain joinable and hence detachable */
21558 status = pthread_detach( &t );
21559 if( status ) return errno;
21562 #ifdef HAVE_LINUX_THREADS
21563 pthread_kill_other_threads_np();
21571 rm -f conftest$ac_exeext
21572 if { (ac_try="$ac_link"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_link") 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ol_cv_pthread_pthread=yes
21593 echo "$as_me: program exited with status $ac_status" >&5
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ( exit $ac_status )
21598 ol_cv_pthread_pthread=no
21600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21610 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21612 if test $ol_cv_pthread_pthread = yes ; then
21613 ol_link_pthreads="-pthread"
21614 ol_link_threads=posix
21618 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21619 if test "$ol_link_threads" = no ; then
21621 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21622 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21623 if test "${ol_cv_pthread_pthreads+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 LIBS="-pthreads $LIBS"
21631 if test "$cross_compiling" = yes; then
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 /* pthread test headers */
21640 #include <pthread.h>
21641 #if HAVE_PTHREADS < 7
21645 #define NULL (void*)0
21648 static void *task(p)
21651 return (void *) (p == NULL);
21658 /* pthread test function */
21659 #ifndef PTHREAD_CREATE_DETACHED
21660 #define PTHREAD_CREATE_DETACHED 1
21664 int detach = PTHREAD_CREATE_DETACHED;
21666 #if HAVE_PTHREADS > 4
21667 /* Final pthreads */
21668 pthread_attr_t attr;
21670 status = pthread_attr_init(&attr);
21671 if( status ) return status;
21673 #if HAVE_PTHREADS < 7
21674 status = pthread_attr_setdetachstate(&attr, &detach);
21675 if( status < 0 ) status = errno;
21677 status = pthread_attr_setdetachstate(&attr, detach);
21679 if( status ) return status;
21680 status = pthread_create( &t, &attr, task, NULL );
21681 #if HAVE_PTHREADS < 7
21682 if( status < 0 ) status = errno;
21684 if( status ) return status;
21686 /* Draft 4 pthreads */
21687 status = pthread_create( &t, pthread_attr_default, task, NULL );
21688 if( status ) return errno;
21690 /* give thread a chance to complete */
21691 /* it should remain joinable and hence detachable */
21694 status = pthread_detach( &t );
21695 if( status ) return errno;
21698 #ifdef HAVE_LINUX_THREADS
21699 pthread_kill_other_threads_np();
21708 rm -f conftest.$ac_objext conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_link") 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest$ac_exeext &&
21725 $as_test_x conftest$ac_exeext; then
21726 ol_cv_pthread_pthreads=yes
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ol_cv_pthread_pthreads=no
21734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21735 conftest$ac_exeext conftest.$ac_ext
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21744 /* pthread test headers */
21745 #include <pthread.h>
21746 #if HAVE_PTHREADS < 7
21750 #define NULL (void*)0
21753 static void *task(p)
21756 return (void *) (p == NULL);
21760 int main(argc, argv)
21765 /* pthread test function */
21766 #ifndef PTHREAD_CREATE_DETACHED
21767 #define PTHREAD_CREATE_DETACHED 1
21771 int detach = PTHREAD_CREATE_DETACHED;
21773 #if HAVE_PTHREADS > 4
21774 /* Final pthreads */
21775 pthread_attr_t attr;
21777 status = pthread_attr_init(&attr);
21778 if( status ) return status;
21780 #if HAVE_PTHREADS < 7
21781 status = pthread_attr_setdetachstate(&attr, &detach);
21782 if( status < 0 ) status = errno;
21784 status = pthread_attr_setdetachstate(&attr, detach);
21786 if( status ) return status;
21787 status = pthread_create( &t, &attr, task, NULL );
21788 #if HAVE_PTHREADS < 7
21789 if( status < 0 ) status = errno;
21791 if( status ) return status;
21793 /* Draft 4 pthreads */
21794 status = pthread_create( &t, pthread_attr_default, task, NULL );
21795 if( status ) return errno;
21797 /* give thread a chance to complete */
21798 /* it should remain joinable and hence detachable */
21801 status = pthread_detach( &t );
21802 if( status ) return errno;
21805 #ifdef HAVE_LINUX_THREADS
21806 pthread_kill_other_threads_np();
21814 rm -f conftest$ac_exeext
21815 if { (ac_try="$ac_link"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_link") 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21825 { (case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_try") 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ol_cv_pthread_pthreads=yes
21836 echo "$as_me: program exited with status $ac_status" >&5
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ( exit $ac_status )
21841 ol_cv_pthread_pthreads=no
21843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21852 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21853 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21855 if test $ol_cv_pthread_pthreads = yes ; then
21856 ol_link_pthreads="-pthreads"
21857 ol_link_threads=posix
21861 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21862 if test "$ol_link_threads" = no ; then
21864 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21865 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21866 if test "${ol_cv_pthread_mthreads+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 LIBS="-mthreads $LIBS"
21874 if test "$cross_compiling" = yes; then
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21882 /* pthread test headers */
21883 #include <pthread.h>
21884 #if HAVE_PTHREADS < 7
21888 #define NULL (void*)0
21891 static void *task(p)
21894 return (void *) (p == NULL);
21901 /* pthread test function */
21902 #ifndef PTHREAD_CREATE_DETACHED
21903 #define PTHREAD_CREATE_DETACHED 1
21907 int detach = PTHREAD_CREATE_DETACHED;
21909 #if HAVE_PTHREADS > 4
21910 /* Final pthreads */
21911 pthread_attr_t attr;
21913 status = pthread_attr_init(&attr);
21914 if( status ) return status;
21916 #if HAVE_PTHREADS < 7
21917 status = pthread_attr_setdetachstate(&attr, &detach);
21918 if( status < 0 ) status = errno;
21920 status = pthread_attr_setdetachstate(&attr, detach);
21922 if( status ) return status;
21923 status = pthread_create( &t, &attr, task, NULL );
21924 #if HAVE_PTHREADS < 7
21925 if( status < 0 ) status = errno;
21927 if( status ) return status;
21929 /* Draft 4 pthreads */
21930 status = pthread_create( &t, pthread_attr_default, task, NULL );
21931 if( status ) return errno;
21933 /* give thread a chance to complete */
21934 /* it should remain joinable and hence detachable */
21937 status = pthread_detach( &t );
21938 if( status ) return errno;
21941 #ifdef HAVE_LINUX_THREADS
21942 pthread_kill_other_threads_np();
21951 rm -f conftest.$ac_objext conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_link") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest$ac_exeext &&
21968 $as_test_x conftest$ac_exeext; then
21969 ol_cv_pthread_mthreads=yes
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ol_cv_pthread_mthreads=no
21977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21978 conftest$ac_exeext conftest.$ac_ext
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 /* pthread test headers */
21988 #include <pthread.h>
21989 #if HAVE_PTHREADS < 7
21993 #define NULL (void*)0
21996 static void *task(p)
21999 return (void *) (p == NULL);
22003 int main(argc, argv)
22008 /* pthread test function */
22009 #ifndef PTHREAD_CREATE_DETACHED
22010 #define PTHREAD_CREATE_DETACHED 1
22014 int detach = PTHREAD_CREATE_DETACHED;
22016 #if HAVE_PTHREADS > 4
22017 /* Final pthreads */
22018 pthread_attr_t attr;
22020 status = pthread_attr_init(&attr);
22021 if( status ) return status;
22023 #if HAVE_PTHREADS < 7
22024 status = pthread_attr_setdetachstate(&attr, &detach);
22025 if( status < 0 ) status = errno;
22027 status = pthread_attr_setdetachstate(&attr, detach);
22029 if( status ) return status;
22030 status = pthread_create( &t, &attr, task, NULL );
22031 #if HAVE_PTHREADS < 7
22032 if( status < 0 ) status = errno;
22034 if( status ) return status;
22036 /* Draft 4 pthreads */
22037 status = pthread_create( &t, pthread_attr_default, task, NULL );
22038 if( status ) return errno;
22040 /* give thread a chance to complete */
22041 /* it should remain joinable and hence detachable */
22044 status = pthread_detach( &t );
22045 if( status ) return errno;
22048 #ifdef HAVE_LINUX_THREADS
22049 pthread_kill_other_threads_np();
22057 rm -f conftest$ac_exeext
22058 if { (ac_try="$ac_link"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_link") 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22068 { (case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_try") 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 ol_cv_pthread_mthreads=yes
22079 echo "$as_me: program exited with status $ac_status" >&5
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ( exit $ac_status )
22084 ol_cv_pthread_mthreads=no
22086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22096 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22098 if test $ol_cv_pthread_mthreads = yes ; then
22099 ol_link_pthreads="-mthreads"
22100 ol_link_threads=posix
22104 # Pthread try link: -thread (ol_cv_pthread_thread)
22105 if test "$ol_link_threads" = no ; then
22107 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22108 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22109 if test "${ol_cv_pthread_thread+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 LIBS="-thread $LIBS"
22117 if test "$cross_compiling" = yes; then
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22125 /* pthread test headers */
22126 #include <pthread.h>
22127 #if HAVE_PTHREADS < 7
22131 #define NULL (void*)0
22134 static void *task(p)
22137 return (void *) (p == NULL);
22144 /* pthread test function */
22145 #ifndef PTHREAD_CREATE_DETACHED
22146 #define PTHREAD_CREATE_DETACHED 1
22150 int detach = PTHREAD_CREATE_DETACHED;
22152 #if HAVE_PTHREADS > 4
22153 /* Final pthreads */
22154 pthread_attr_t attr;
22156 status = pthread_attr_init(&attr);
22157 if( status ) return status;
22159 #if HAVE_PTHREADS < 7
22160 status = pthread_attr_setdetachstate(&attr, &detach);
22161 if( status < 0 ) status = errno;
22163 status = pthread_attr_setdetachstate(&attr, detach);
22165 if( status ) return status;
22166 status = pthread_create( &t, &attr, task, NULL );
22167 #if HAVE_PTHREADS < 7
22168 if( status < 0 ) status = errno;
22170 if( status ) return status;
22172 /* Draft 4 pthreads */
22173 status = pthread_create( &t, pthread_attr_default, task, NULL );
22174 if( status ) return errno;
22176 /* give thread a chance to complete */
22177 /* it should remain joinable and hence detachable */
22180 status = pthread_detach( &t );
22181 if( status ) return errno;
22184 #ifdef HAVE_LINUX_THREADS
22185 pthread_kill_other_threads_np();
22194 rm -f conftest.$ac_objext conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_link") 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest$ac_exeext &&
22211 $as_test_x conftest$ac_exeext; then
22212 ol_cv_pthread_thread=yes
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ol_cv_pthread_thread=no
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221 conftest$ac_exeext conftest.$ac_ext
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22230 /* pthread test headers */
22231 #include <pthread.h>
22232 #if HAVE_PTHREADS < 7
22236 #define NULL (void*)0
22239 static void *task(p)
22242 return (void *) (p == NULL);
22246 int main(argc, argv)
22251 /* pthread test function */
22252 #ifndef PTHREAD_CREATE_DETACHED
22253 #define PTHREAD_CREATE_DETACHED 1
22257 int detach = PTHREAD_CREATE_DETACHED;
22259 #if HAVE_PTHREADS > 4
22260 /* Final pthreads */
22261 pthread_attr_t attr;
22263 status = pthread_attr_init(&attr);
22264 if( status ) return status;
22266 #if HAVE_PTHREADS < 7
22267 status = pthread_attr_setdetachstate(&attr, &detach);
22268 if( status < 0 ) status = errno;
22270 status = pthread_attr_setdetachstate(&attr, detach);
22272 if( status ) return status;
22273 status = pthread_create( &t, &attr, task, NULL );
22274 #if HAVE_PTHREADS < 7
22275 if( status < 0 ) status = errno;
22277 if( status ) return status;
22279 /* Draft 4 pthreads */
22280 status = pthread_create( &t, pthread_attr_default, task, NULL );
22281 if( status ) return errno;
22283 /* give thread a chance to complete */
22284 /* it should remain joinable and hence detachable */
22287 status = pthread_detach( &t );
22288 if( status ) return errno;
22291 #ifdef HAVE_LINUX_THREADS
22292 pthread_kill_other_threads_np();
22300 rm -f conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_link") 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22311 { (case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_try") 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ol_cv_pthread_thread=yes
22322 echo "$as_me: program exited with status $ac_status" >&5
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ( exit $ac_status )
22327 ol_cv_pthread_thread=no
22329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22339 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22341 if test $ol_cv_pthread_thread = yes ; then
22342 ol_link_pthreads="-thread"
22343 ol_link_threads=posix
22348 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22349 if test "$ol_link_threads" = no ; then
22350 # try -lpthread -lmach -lexc -lc_r
22351 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22352 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22353 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22361 if test "$cross_compiling" = yes; then
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 /* pthread test headers */
22370 #include <pthread.h>
22371 #if HAVE_PTHREADS < 7
22375 #define NULL (void*)0
22378 static void *task(p)
22381 return (void *) (p == NULL);
22388 /* pthread test function */
22389 #ifndef PTHREAD_CREATE_DETACHED
22390 #define PTHREAD_CREATE_DETACHED 1
22394 int detach = PTHREAD_CREATE_DETACHED;
22396 #if HAVE_PTHREADS > 4
22397 /* Final pthreads */
22398 pthread_attr_t attr;
22400 status = pthread_attr_init(&attr);
22401 if( status ) return status;
22403 #if HAVE_PTHREADS < 7
22404 status = pthread_attr_setdetachstate(&attr, &detach);
22405 if( status < 0 ) status = errno;
22407 status = pthread_attr_setdetachstate(&attr, detach);
22409 if( status ) return status;
22410 status = pthread_create( &t, &attr, task, NULL );
22411 #if HAVE_PTHREADS < 7
22412 if( status < 0 ) status = errno;
22414 if( status ) return status;
22416 /* Draft 4 pthreads */
22417 status = pthread_create( &t, pthread_attr_default, task, NULL );
22418 if( status ) return errno;
22420 /* give thread a chance to complete */
22421 /* it should remain joinable and hence detachable */
22424 status = pthread_detach( &t );
22425 if( status ) return errno;
22428 #ifdef HAVE_LINUX_THREADS
22429 pthread_kill_other_threads_np();
22438 rm -f conftest.$ac_objext conftest$ac_exeext
22439 if { (ac_try="$ac_link"
22440 case "(($ac_try" in
22441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442 *) ac_try_echo=$ac_try;;
22444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445 (eval "$ac_link") 2>conftest.er1
22447 grep -v '^ *+' conftest.er1 >conftest.err
22449 cat conftest.err >&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest$ac_exeext &&
22455 $as_test_x conftest$ac_exeext; then
22456 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465 conftest$ac_exeext conftest.$ac_ext
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22474 /* pthread test headers */
22475 #include <pthread.h>
22476 #if HAVE_PTHREADS < 7
22480 #define NULL (void*)0
22483 static void *task(p)
22486 return (void *) (p == NULL);
22490 int main(argc, argv)
22495 /* pthread test function */
22496 #ifndef PTHREAD_CREATE_DETACHED
22497 #define PTHREAD_CREATE_DETACHED 1
22501 int detach = PTHREAD_CREATE_DETACHED;
22503 #if HAVE_PTHREADS > 4
22504 /* Final pthreads */
22505 pthread_attr_t attr;
22507 status = pthread_attr_init(&attr);
22508 if( status ) return status;
22510 #if HAVE_PTHREADS < 7
22511 status = pthread_attr_setdetachstate(&attr, &detach);
22512 if( status < 0 ) status = errno;
22514 status = pthread_attr_setdetachstate(&attr, detach);
22516 if( status ) return status;
22517 status = pthread_create( &t, &attr, task, NULL );
22518 #if HAVE_PTHREADS < 7
22519 if( status < 0 ) status = errno;
22521 if( status ) return status;
22523 /* Draft 4 pthreads */
22524 status = pthread_create( &t, pthread_attr_default, task, NULL );
22525 if( status ) return errno;
22527 /* give thread a chance to complete */
22528 /* it should remain joinable and hence detachable */
22531 status = pthread_detach( &t );
22532 if( status ) return errno;
22535 #ifdef HAVE_LINUX_THREADS
22536 pthread_kill_other_threads_np();
22544 rm -f conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_link") 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22566 echo "$as_me: program exited with status $ac_status" >&5
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ( exit $ac_status )
22571 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22583 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22585 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22586 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22587 ol_link_threads=posix
22591 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22592 if test "$ol_link_threads" = no ; then
22593 # try -lpthread -lmach -lexc
22594 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22595 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22596 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 LIBS="-lpthread -lmach -lexc $LIBS"
22604 if test "$cross_compiling" = yes; then
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22612 /* pthread test headers */
22613 #include <pthread.h>
22614 #if HAVE_PTHREADS < 7
22618 #define NULL (void*)0
22621 static void *task(p)
22624 return (void *) (p == NULL);
22631 /* pthread test function */
22632 #ifndef PTHREAD_CREATE_DETACHED
22633 #define PTHREAD_CREATE_DETACHED 1
22637 int detach = PTHREAD_CREATE_DETACHED;
22639 #if HAVE_PTHREADS > 4
22640 /* Final pthreads */
22641 pthread_attr_t attr;
22643 status = pthread_attr_init(&attr);
22644 if( status ) return status;
22646 #if HAVE_PTHREADS < 7
22647 status = pthread_attr_setdetachstate(&attr, &detach);
22648 if( status < 0 ) status = errno;
22650 status = pthread_attr_setdetachstate(&attr, detach);
22652 if( status ) return status;
22653 status = pthread_create( &t, &attr, task, NULL );
22654 #if HAVE_PTHREADS < 7
22655 if( status < 0 ) status = errno;
22657 if( status ) return status;
22659 /* Draft 4 pthreads */
22660 status = pthread_create( &t, pthread_attr_default, task, NULL );
22661 if( status ) return errno;
22663 /* give thread a chance to complete */
22664 /* it should remain joinable and hence detachable */
22667 status = pthread_detach( &t );
22668 if( status ) return errno;
22671 #ifdef HAVE_LINUX_THREADS
22672 pthread_kill_other_threads_np();
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_link") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest$ac_exeext &&
22698 $as_test_x conftest$ac_exeext; then
22699 ol_cv_pthread_lpthread_lmach_lexc=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ol_cv_pthread_lpthread_lmach_lexc=no
22707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708 conftest$ac_exeext conftest.$ac_ext
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22717 /* pthread test headers */
22718 #include <pthread.h>
22719 #if HAVE_PTHREADS < 7
22723 #define NULL (void*)0
22726 static void *task(p)
22729 return (void *) (p == NULL);
22733 int main(argc, argv)
22738 /* pthread test function */
22739 #ifndef PTHREAD_CREATE_DETACHED
22740 #define PTHREAD_CREATE_DETACHED 1
22744 int detach = PTHREAD_CREATE_DETACHED;
22746 #if HAVE_PTHREADS > 4
22747 /* Final pthreads */
22748 pthread_attr_t attr;
22750 status = pthread_attr_init(&attr);
22751 if( status ) return status;
22753 #if HAVE_PTHREADS < 7
22754 status = pthread_attr_setdetachstate(&attr, &detach);
22755 if( status < 0 ) status = errno;
22757 status = pthread_attr_setdetachstate(&attr, detach);
22759 if( status ) return status;
22760 status = pthread_create( &t, &attr, task, NULL );
22761 #if HAVE_PTHREADS < 7
22762 if( status < 0 ) status = errno;
22764 if( status ) return status;
22766 /* Draft 4 pthreads */
22767 status = pthread_create( &t, pthread_attr_default, task, NULL );
22768 if( status ) return errno;
22770 /* give thread a chance to complete */
22771 /* it should remain joinable and hence detachable */
22774 status = pthread_detach( &t );
22775 if( status ) return errno;
22778 #ifdef HAVE_LINUX_THREADS
22779 pthread_kill_other_threads_np();
22787 rm -f conftest$ac_exeext
22788 if { (ac_try="$ac_link"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_link") 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22798 { (case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_try") 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
22807 ol_cv_pthread_lpthread_lmach_lexc=yes
22809 echo "$as_me: program exited with status $ac_status" >&5
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ( exit $ac_status )
22814 ol_cv_pthread_lpthread_lmach_lexc=no
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22825 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22826 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22828 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22829 ol_link_pthreads="-lpthread -lmach -lexc"
22830 ol_link_threads=posix
22835 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22836 if test "$ol_link_threads" = no ; then
22837 # try -lpthread -Wl,-woff,85
22838 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22839 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22840 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22848 if test "$cross_compiling" = yes; then
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22856 /* pthread test headers */
22857 #include <pthread.h>
22858 #if HAVE_PTHREADS < 7
22862 #define NULL (void*)0
22865 static void *task(p)
22868 return (void *) (p == NULL);
22875 /* pthread test function */
22876 #ifndef PTHREAD_CREATE_DETACHED
22877 #define PTHREAD_CREATE_DETACHED 1
22881 int detach = PTHREAD_CREATE_DETACHED;
22883 #if HAVE_PTHREADS > 4
22884 /* Final pthreads */
22885 pthread_attr_t attr;
22887 status = pthread_attr_init(&attr);
22888 if( status ) return status;
22890 #if HAVE_PTHREADS < 7
22891 status = pthread_attr_setdetachstate(&attr, &detach);
22892 if( status < 0 ) status = errno;
22894 status = pthread_attr_setdetachstate(&attr, detach);
22896 if( status ) return status;
22897 status = pthread_create( &t, &attr, task, NULL );
22898 #if HAVE_PTHREADS < 7
22899 if( status < 0 ) status = errno;
22901 if( status ) return status;
22903 /* Draft 4 pthreads */
22904 status = pthread_create( &t, pthread_attr_default, task, NULL );
22905 if( status ) return errno;
22907 /* give thread a chance to complete */
22908 /* it should remain joinable and hence detachable */
22911 status = pthread_detach( &t );
22912 if( status ) return errno;
22915 #ifdef HAVE_LINUX_THREADS
22916 pthread_kill_other_threads_np();
22925 rm -f conftest.$ac_objext conftest$ac_exeext
22926 if { (ac_try="$ac_link"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_link") 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest$ac_exeext &&
22942 $as_test_x conftest$ac_exeext; then
22943 ol_cv_pthread_lib_lpthread_woff=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ol_cv_pthread_lib_lpthread_woff=no
22951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22952 conftest$ac_exeext conftest.$ac_ext
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22961 /* pthread test headers */
22962 #include <pthread.h>
22963 #if HAVE_PTHREADS < 7
22967 #define NULL (void*)0
22970 static void *task(p)
22973 return (void *) (p == NULL);
22977 int main(argc, argv)
22982 /* pthread test function */
22983 #ifndef PTHREAD_CREATE_DETACHED
22984 #define PTHREAD_CREATE_DETACHED 1
22988 int detach = PTHREAD_CREATE_DETACHED;
22990 #if HAVE_PTHREADS > 4
22991 /* Final pthreads */
22992 pthread_attr_t attr;
22994 status = pthread_attr_init(&attr);
22995 if( status ) return status;
22997 #if HAVE_PTHREADS < 7
22998 status = pthread_attr_setdetachstate(&attr, &detach);
22999 if( status < 0 ) status = errno;
23001 status = pthread_attr_setdetachstate(&attr, detach);
23003 if( status ) return status;
23004 status = pthread_create( &t, &attr, task, NULL );
23005 #if HAVE_PTHREADS < 7
23006 if( status < 0 ) status = errno;
23008 if( status ) return status;
23010 /* Draft 4 pthreads */
23011 status = pthread_create( &t, pthread_attr_default, task, NULL );
23012 if( status ) return errno;
23014 /* give thread a chance to complete */
23015 /* it should remain joinable and hence detachable */
23018 status = pthread_detach( &t );
23019 if( status ) return errno;
23022 #ifdef HAVE_LINUX_THREADS
23023 pthread_kill_other_threads_np();
23031 rm -f conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_link") 2>&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23042 { (case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047 (eval "$ac_try") 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ol_cv_pthread_lib_lpthread_woff=yes
23053 echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ( exit $ac_status )
23058 ol_cv_pthread_lib_lpthread_woff=no
23060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23070 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23072 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23073 ol_link_pthreads="-lpthread -Wl,-woff,85"
23074 ol_link_threads=posix
23079 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23080 if test "$ol_link_threads" = no ; then
23082 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23083 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23084 if test "${ol_cv_pthread_lpthread+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 LIBS="-lpthread $LIBS"
23092 if test "$cross_compiling" = yes; then
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23100 /* pthread test headers */
23101 #include <pthread.h>
23102 #if HAVE_PTHREADS < 7
23106 #define NULL (void*)0
23109 static void *task(p)
23112 return (void *) (p == NULL);
23119 /* pthread test function */
23120 #ifndef PTHREAD_CREATE_DETACHED
23121 #define PTHREAD_CREATE_DETACHED 1
23125 int detach = PTHREAD_CREATE_DETACHED;
23127 #if HAVE_PTHREADS > 4
23128 /* Final pthreads */
23129 pthread_attr_t attr;
23131 status = pthread_attr_init(&attr);
23132 if( status ) return status;
23134 #if HAVE_PTHREADS < 7
23135 status = pthread_attr_setdetachstate(&attr, &detach);
23136 if( status < 0 ) status = errno;
23138 status = pthread_attr_setdetachstate(&attr, detach);
23140 if( status ) return status;
23141 status = pthread_create( &t, &attr, task, NULL );
23142 #if HAVE_PTHREADS < 7
23143 if( status < 0 ) status = errno;
23145 if( status ) return status;
23147 /* Draft 4 pthreads */
23148 status = pthread_create( &t, pthread_attr_default, task, NULL );
23149 if( status ) return errno;
23151 /* give thread a chance to complete */
23152 /* it should remain joinable and hence detachable */
23155 status = pthread_detach( &t );
23156 if( status ) return errno;
23159 #ifdef HAVE_LINUX_THREADS
23160 pthread_kill_other_threads_np();
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (ac_try="$ac_link"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176 (eval "$ac_link") 2>conftest.er1
23178 grep -v '^ *+' conftest.er1 >conftest.err
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } && {
23183 test -z "$ac_c_werror_flag" ||
23184 test ! -s conftest.err
23185 } && test -s conftest$ac_exeext &&
23186 $as_test_x conftest$ac_exeext; then
23187 ol_cv_pthread_lpthread=yes
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ol_cv_pthread_lpthread=no
23195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23196 conftest$ac_exeext conftest.$ac_ext
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23205 /* pthread test headers */
23206 #include <pthread.h>
23207 #if HAVE_PTHREADS < 7
23211 #define NULL (void*)0
23214 static void *task(p)
23217 return (void *) (p == NULL);
23221 int main(argc, argv)
23226 /* pthread test function */
23227 #ifndef PTHREAD_CREATE_DETACHED
23228 #define PTHREAD_CREATE_DETACHED 1
23232 int detach = PTHREAD_CREATE_DETACHED;
23234 #if HAVE_PTHREADS > 4
23235 /* Final pthreads */
23236 pthread_attr_t attr;
23238 status = pthread_attr_init(&attr);
23239 if( status ) return status;
23241 #if HAVE_PTHREADS < 7
23242 status = pthread_attr_setdetachstate(&attr, &detach);
23243 if( status < 0 ) status = errno;
23245 status = pthread_attr_setdetachstate(&attr, detach);
23247 if( status ) return status;
23248 status = pthread_create( &t, &attr, task, NULL );
23249 #if HAVE_PTHREADS < 7
23250 if( status < 0 ) status = errno;
23252 if( status ) return status;
23254 /* Draft 4 pthreads */
23255 status = pthread_create( &t, pthread_attr_default, task, NULL );
23256 if( status ) return errno;
23258 /* give thread a chance to complete */
23259 /* it should remain joinable and hence detachable */
23262 status = pthread_detach( &t );
23263 if( status ) return errno;
23266 #ifdef HAVE_LINUX_THREADS
23267 pthread_kill_other_threads_np();
23275 rm -f conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_link") 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23286 { (case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_try") 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ol_cv_pthread_lpthread=yes
23297 echo "$as_me: program exited with status $ac_status" >&5
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ( exit $ac_status )
23302 ol_cv_pthread_lpthread=no
23304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23314 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23316 if test $ol_cv_pthread_lpthread = yes ; then
23317 ol_link_pthreads="-lpthread"
23318 ol_link_threads=posix
23322 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23323 if test "$ol_link_threads" = no ; then
23325 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23326 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23327 if test "${ol_cv_pthread_lc_r+set}" = set; then
23328 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 if test "$cross_compiling" = yes; then
23336 cat >conftest.$ac_ext <<_ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h. */
23343 /* pthread test headers */
23344 #include <pthread.h>
23345 #if HAVE_PTHREADS < 7
23349 #define NULL (void*)0
23352 static void *task(p)
23355 return (void *) (p == NULL);
23362 /* pthread test function */
23363 #ifndef PTHREAD_CREATE_DETACHED
23364 #define PTHREAD_CREATE_DETACHED 1
23368 int detach = PTHREAD_CREATE_DETACHED;
23370 #if HAVE_PTHREADS > 4
23371 /* Final pthreads */
23372 pthread_attr_t attr;
23374 status = pthread_attr_init(&attr);
23375 if( status ) return status;
23377 #if HAVE_PTHREADS < 7
23378 status = pthread_attr_setdetachstate(&attr, &detach);
23379 if( status < 0 ) status = errno;
23381 status = pthread_attr_setdetachstate(&attr, detach);
23383 if( status ) return status;
23384 status = pthread_create( &t, &attr, task, NULL );
23385 #if HAVE_PTHREADS < 7
23386 if( status < 0 ) status = errno;
23388 if( status ) return status;
23390 /* Draft 4 pthreads */
23391 status = pthread_create( &t, pthread_attr_default, task, NULL );
23392 if( status ) return errno;
23394 /* give thread a chance to complete */
23395 /* it should remain joinable and hence detachable */
23398 status = pthread_detach( &t );
23399 if( status ) return errno;
23402 #ifdef HAVE_LINUX_THREADS
23403 pthread_kill_other_threads_np();
23412 rm -f conftest.$ac_objext conftest$ac_exeext
23413 if { (ac_try="$ac_link"
23414 case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_link") 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && {
23426 test -z "$ac_c_werror_flag" ||
23427 test ! -s conftest.err
23428 } && test -s conftest$ac_exeext &&
23429 $as_test_x conftest$ac_exeext; then
23430 ol_cv_pthread_lc_r=yes
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ol_cv_pthread_lc_r=no
23438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23439 conftest$ac_exeext conftest.$ac_ext
23441 cat >conftest.$ac_ext <<_ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23448 /* pthread test headers */
23449 #include <pthread.h>
23450 #if HAVE_PTHREADS < 7
23454 #define NULL (void*)0
23457 static void *task(p)
23460 return (void *) (p == NULL);
23464 int main(argc, argv)
23469 /* pthread test function */
23470 #ifndef PTHREAD_CREATE_DETACHED
23471 #define PTHREAD_CREATE_DETACHED 1
23475 int detach = PTHREAD_CREATE_DETACHED;
23477 #if HAVE_PTHREADS > 4
23478 /* Final pthreads */
23479 pthread_attr_t attr;
23481 status = pthread_attr_init(&attr);
23482 if( status ) return status;
23484 #if HAVE_PTHREADS < 7
23485 status = pthread_attr_setdetachstate(&attr, &detach);
23486 if( status < 0 ) status = errno;
23488 status = pthread_attr_setdetachstate(&attr, detach);
23490 if( status ) return status;
23491 status = pthread_create( &t, &attr, task, NULL );
23492 #if HAVE_PTHREADS < 7
23493 if( status < 0 ) status = errno;
23495 if( status ) return status;
23497 /* Draft 4 pthreads */
23498 status = pthread_create( &t, pthread_attr_default, task, NULL );
23499 if( status ) return errno;
23501 /* give thread a chance to complete */
23502 /* it should remain joinable and hence detachable */
23505 status = pthread_detach( &t );
23506 if( status ) return errno;
23509 #ifdef HAVE_LINUX_THREADS
23510 pthread_kill_other_threads_np();
23518 rm -f conftest$ac_exeext
23519 if { (ac_try="$ac_link"
23520 case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_link") 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23529 { (case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_try") 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538 ol_cv_pthread_lc_r=yes
23540 echo "$as_me: program exited with status $ac_status" >&5
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ( exit $ac_status )
23545 ol_cv_pthread_lc_r=no
23547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23556 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23557 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23559 if test $ol_cv_pthread_lc_r = yes ; then
23560 ol_link_pthreads="-lc_r"
23561 ol_link_threads=posix
23566 # Pthread try link: -threads (ol_cv_pthread_threads)
23567 if test "$ol_link_threads" = no ; then
23569 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23570 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23571 if test "${ol_cv_pthread_threads+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 LIBS="-threads $LIBS"
23579 if test "$cross_compiling" = yes; then
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23587 /* pthread test headers */
23588 #include <pthread.h>
23589 #if HAVE_PTHREADS < 7
23593 #define NULL (void*)0
23596 static void *task(p)
23599 return (void *) (p == NULL);
23606 /* pthread test function */
23607 #ifndef PTHREAD_CREATE_DETACHED
23608 #define PTHREAD_CREATE_DETACHED 1
23612 int detach = PTHREAD_CREATE_DETACHED;
23614 #if HAVE_PTHREADS > 4
23615 /* Final pthreads */
23616 pthread_attr_t attr;
23618 status = pthread_attr_init(&attr);
23619 if( status ) return status;
23621 #if HAVE_PTHREADS < 7
23622 status = pthread_attr_setdetachstate(&attr, &detach);
23623 if( status < 0 ) status = errno;
23625 status = pthread_attr_setdetachstate(&attr, detach);
23627 if( status ) return status;
23628 status = pthread_create( &t, &attr, task, NULL );
23629 #if HAVE_PTHREADS < 7
23630 if( status < 0 ) status = errno;
23632 if( status ) return status;
23634 /* Draft 4 pthreads */
23635 status = pthread_create( &t, pthread_attr_default, task, NULL );
23636 if( status ) return errno;
23638 /* give thread a chance to complete */
23639 /* it should remain joinable and hence detachable */
23642 status = pthread_detach( &t );
23643 if( status ) return errno;
23646 #ifdef HAVE_LINUX_THREADS
23647 pthread_kill_other_threads_np();
23656 rm -f conftest.$ac_objext conftest$ac_exeext
23657 if { (ac_try="$ac_link"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_link") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest$ac_exeext &&
23673 $as_test_x conftest$ac_exeext; then
23674 ol_cv_pthread_threads=yes
23676 echo "$as_me: failed program was:" >&5
23677 sed 's/^/| /' conftest.$ac_ext >&5
23679 ol_cv_pthread_threads=no
23682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23683 conftest$ac_exeext conftest.$ac_ext
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23692 /* pthread test headers */
23693 #include <pthread.h>
23694 #if HAVE_PTHREADS < 7
23698 #define NULL (void*)0
23701 static void *task(p)
23704 return (void *) (p == NULL);
23708 int main(argc, argv)
23713 /* pthread test function */
23714 #ifndef PTHREAD_CREATE_DETACHED
23715 #define PTHREAD_CREATE_DETACHED 1
23719 int detach = PTHREAD_CREATE_DETACHED;
23721 #if HAVE_PTHREADS > 4
23722 /* Final pthreads */
23723 pthread_attr_t attr;
23725 status = pthread_attr_init(&attr);
23726 if( status ) return status;
23728 #if HAVE_PTHREADS < 7
23729 status = pthread_attr_setdetachstate(&attr, &detach);
23730 if( status < 0 ) status = errno;
23732 status = pthread_attr_setdetachstate(&attr, detach);
23734 if( status ) return status;
23735 status = pthread_create( &t, &attr, task, NULL );
23736 #if HAVE_PTHREADS < 7
23737 if( status < 0 ) status = errno;
23739 if( status ) return status;
23741 /* Draft 4 pthreads */
23742 status = pthread_create( &t, pthread_attr_default, task, NULL );
23743 if( status ) return errno;
23745 /* give thread a chance to complete */
23746 /* it should remain joinable and hence detachable */
23749 status = pthread_detach( &t );
23750 if( status ) return errno;
23753 #ifdef HAVE_LINUX_THREADS
23754 pthread_kill_other_threads_np();
23762 rm -f conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_link") 2>&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23773 { (case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_try") 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 ol_cv_pthread_threads=yes
23784 echo "$as_me: program exited with status $ac_status" >&5
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 ( exit $ac_status )
23789 ol_cv_pthread_threads=no
23791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23800 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23801 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23803 if test $ol_cv_pthread_threads = yes ; then
23804 ol_link_pthreads="-threads"
23805 ol_link_threads=posix
23810 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23811 if test "$ol_link_threads" = no ; then
23812 # try -lpthreads -lmach -lexc -lc_r
23813 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23814 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23815 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23821 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23823 if test "$cross_compiling" = yes; then
23824 cat >conftest.$ac_ext <<_ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23831 /* pthread test headers */
23832 #include <pthread.h>
23833 #if HAVE_PTHREADS < 7
23837 #define NULL (void*)0
23840 static void *task(p)
23843 return (void *) (p == NULL);
23850 /* pthread test function */
23851 #ifndef PTHREAD_CREATE_DETACHED
23852 #define PTHREAD_CREATE_DETACHED 1
23856 int detach = PTHREAD_CREATE_DETACHED;
23858 #if HAVE_PTHREADS > 4
23859 /* Final pthreads */
23860 pthread_attr_t attr;
23862 status = pthread_attr_init(&attr);
23863 if( status ) return status;
23865 #if HAVE_PTHREADS < 7
23866 status = pthread_attr_setdetachstate(&attr, &detach);
23867 if( status < 0 ) status = errno;
23869 status = pthread_attr_setdetachstate(&attr, detach);
23871 if( status ) return status;
23872 status = pthread_create( &t, &attr, task, NULL );
23873 #if HAVE_PTHREADS < 7
23874 if( status < 0 ) status = errno;
23876 if( status ) return status;
23878 /* Draft 4 pthreads */
23879 status = pthread_create( &t, pthread_attr_default, task, NULL );
23880 if( status ) return errno;
23882 /* give thread a chance to complete */
23883 /* it should remain joinable and hence detachable */
23886 status = pthread_detach( &t );
23887 if( status ) return errno;
23890 #ifdef HAVE_LINUX_THREADS
23891 pthread_kill_other_threads_np();
23900 rm -f conftest.$ac_objext conftest$ac_exeext
23901 if { (ac_try="$ac_link"
23902 case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907 (eval "$ac_link") 2>conftest.er1
23909 grep -v '^ *+' conftest.er1 >conftest.err
23911 cat conftest.err >&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } && {
23914 test -z "$ac_c_werror_flag" ||
23915 test ! -s conftest.err
23916 } && test -s conftest$ac_exeext &&
23917 $as_test_x conftest$ac_exeext; then
23918 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23927 conftest$ac_exeext conftest.$ac_ext
23929 cat >conftest.$ac_ext <<_ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23936 /* pthread test headers */
23937 #include <pthread.h>
23938 #if HAVE_PTHREADS < 7
23942 #define NULL (void*)0
23945 static void *task(p)
23948 return (void *) (p == NULL);
23952 int main(argc, argv)
23957 /* pthread test function */
23958 #ifndef PTHREAD_CREATE_DETACHED
23959 #define PTHREAD_CREATE_DETACHED 1
23963 int detach = PTHREAD_CREATE_DETACHED;
23965 #if HAVE_PTHREADS > 4
23966 /* Final pthreads */
23967 pthread_attr_t attr;
23969 status = pthread_attr_init(&attr);
23970 if( status ) return status;
23972 #if HAVE_PTHREADS < 7
23973 status = pthread_attr_setdetachstate(&attr, &detach);
23974 if( status < 0 ) status = errno;
23976 status = pthread_attr_setdetachstate(&attr, detach);
23978 if( status ) return status;
23979 status = pthread_create( &t, &attr, task, NULL );
23980 #if HAVE_PTHREADS < 7
23981 if( status < 0 ) status = errno;
23983 if( status ) return status;
23985 /* Draft 4 pthreads */
23986 status = pthread_create( &t, pthread_attr_default, task, NULL );
23987 if( status ) return errno;
23989 /* give thread a chance to complete */
23990 /* it should remain joinable and hence detachable */
23993 status = pthread_detach( &t );
23994 if( status ) return errno;
23997 #ifdef HAVE_LINUX_THREADS
23998 pthread_kill_other_threads_np();
24006 rm -f conftest$ac_exeext
24007 if { (ac_try="$ac_link"
24008 case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_link") 2>&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24017 { (case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_try") 2>&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24028 echo "$as_me: program exited with status $ac_status" >&5
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ( exit $ac_status )
24033 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24044 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
24045 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24047 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24048 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24049 ol_link_threads=posix
24053 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24054 if test "$ol_link_threads" = no ; then
24055 # try -lpthreads -lmach -lexc
24056 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24057 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24058 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 LIBS="-lpthreads -lmach -lexc $LIBS"
24066 if test "$cross_compiling" = yes; then
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24074 /* pthread test headers */
24075 #include <pthread.h>
24076 #if HAVE_PTHREADS < 7
24080 #define NULL (void*)0
24083 static void *task(p)
24086 return (void *) (p == NULL);
24093 /* pthread test function */
24094 #ifndef PTHREAD_CREATE_DETACHED
24095 #define PTHREAD_CREATE_DETACHED 1
24099 int detach = PTHREAD_CREATE_DETACHED;
24101 #if HAVE_PTHREADS > 4
24102 /* Final pthreads */
24103 pthread_attr_t attr;
24105 status = pthread_attr_init(&attr);
24106 if( status ) return status;
24108 #if HAVE_PTHREADS < 7
24109 status = pthread_attr_setdetachstate(&attr, &detach);
24110 if( status < 0 ) status = errno;
24112 status = pthread_attr_setdetachstate(&attr, detach);
24114 if( status ) return status;
24115 status = pthread_create( &t, &attr, task, NULL );
24116 #if HAVE_PTHREADS < 7
24117 if( status < 0 ) status = errno;
24119 if( status ) return status;
24121 /* Draft 4 pthreads */
24122 status = pthread_create( &t, pthread_attr_default, task, NULL );
24123 if( status ) return errno;
24125 /* give thread a chance to complete */
24126 /* it should remain joinable and hence detachable */
24129 status = pthread_detach( &t );
24130 if( status ) return errno;
24133 #ifdef HAVE_LINUX_THREADS
24134 pthread_kill_other_threads_np();
24143 rm -f conftest.$ac_objext conftest$ac_exeext
24144 if { (ac_try="$ac_link"
24145 case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24150 (eval "$ac_link") 2>conftest.er1
24152 grep -v '^ *+' conftest.er1 >conftest.err
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } && {
24157 test -z "$ac_c_werror_flag" ||
24158 test ! -s conftest.err
24159 } && test -s conftest$ac_exeext &&
24160 $as_test_x conftest$ac_exeext; then
24161 ol_cv_pthread_lpthreads_lmach_lexc=yes
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ol_cv_pthread_lpthreads_lmach_lexc=no
24169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24170 conftest$ac_exeext conftest.$ac_ext
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24179 /* pthread test headers */
24180 #include <pthread.h>
24181 #if HAVE_PTHREADS < 7
24185 #define NULL (void*)0
24188 static void *task(p)
24191 return (void *) (p == NULL);
24195 int main(argc, argv)
24200 /* pthread test function */
24201 #ifndef PTHREAD_CREATE_DETACHED
24202 #define PTHREAD_CREATE_DETACHED 1
24206 int detach = PTHREAD_CREATE_DETACHED;
24208 #if HAVE_PTHREADS > 4
24209 /* Final pthreads */
24210 pthread_attr_t attr;
24212 status = pthread_attr_init(&attr);
24213 if( status ) return status;
24215 #if HAVE_PTHREADS < 7
24216 status = pthread_attr_setdetachstate(&attr, &detach);
24217 if( status < 0 ) status = errno;
24219 status = pthread_attr_setdetachstate(&attr, detach);
24221 if( status ) return status;
24222 status = pthread_create( &t, &attr, task, NULL );
24223 #if HAVE_PTHREADS < 7
24224 if( status < 0 ) status = errno;
24226 if( status ) return status;
24228 /* Draft 4 pthreads */
24229 status = pthread_create( &t, pthread_attr_default, task, NULL );
24230 if( status ) return errno;
24232 /* give thread a chance to complete */
24233 /* it should remain joinable and hence detachable */
24236 status = pthread_detach( &t );
24237 if( status ) return errno;
24240 #ifdef HAVE_LINUX_THREADS
24241 pthread_kill_other_threads_np();
24249 rm -f conftest$ac_exeext
24250 if { (ac_try="$ac_link"
24251 case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_link") 2>&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24260 { (case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_try") 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 ol_cv_pthread_lpthreads_lmach_lexc=yes
24271 echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ( exit $ac_status )
24276 ol_cv_pthread_lpthreads_lmach_lexc=no
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24288 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24290 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24291 ol_link_pthreads="-lpthreads -lmach -lexc"
24292 ol_link_threads=posix
24296 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24297 if test "$ol_link_threads" = no ; then
24298 # try -lpthreads -lexc
24299 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24300 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24301 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 LIBS="-lpthreads -lexc $LIBS"
24309 if test "$cross_compiling" = yes; then
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24317 /* pthread test headers */
24318 #include <pthread.h>
24319 #if HAVE_PTHREADS < 7
24323 #define NULL (void*)0
24326 static void *task(p)
24329 return (void *) (p == NULL);
24336 /* pthread test function */
24337 #ifndef PTHREAD_CREATE_DETACHED
24338 #define PTHREAD_CREATE_DETACHED 1
24342 int detach = PTHREAD_CREATE_DETACHED;
24344 #if HAVE_PTHREADS > 4
24345 /* Final pthreads */
24346 pthread_attr_t attr;
24348 status = pthread_attr_init(&attr);
24349 if( status ) return status;
24351 #if HAVE_PTHREADS < 7
24352 status = pthread_attr_setdetachstate(&attr, &detach);
24353 if( status < 0 ) status = errno;
24355 status = pthread_attr_setdetachstate(&attr, detach);
24357 if( status ) return status;
24358 status = pthread_create( &t, &attr, task, NULL );
24359 #if HAVE_PTHREADS < 7
24360 if( status < 0 ) status = errno;
24362 if( status ) return status;
24364 /* Draft 4 pthreads */
24365 status = pthread_create( &t, pthread_attr_default, task, NULL );
24366 if( status ) return errno;
24368 /* give thread a chance to complete */
24369 /* it should remain joinable and hence detachable */
24372 status = pthread_detach( &t );
24373 if( status ) return errno;
24376 #ifdef HAVE_LINUX_THREADS
24377 pthread_kill_other_threads_np();
24386 rm -f conftest.$ac_objext conftest$ac_exeext
24387 if { (ac_try="$ac_link"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_link") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest$ac_exeext &&
24403 $as_test_x conftest$ac_exeext; then
24404 ol_cv_pthread_lpthreads_lexc=yes
24406 echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24409 ol_cv_pthread_lpthreads_lexc=no
24412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24413 conftest$ac_exeext conftest.$ac_ext
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24422 /* pthread test headers */
24423 #include <pthread.h>
24424 #if HAVE_PTHREADS < 7
24428 #define NULL (void*)0
24431 static void *task(p)
24434 return (void *) (p == NULL);
24438 int main(argc, argv)
24443 /* pthread test function */
24444 #ifndef PTHREAD_CREATE_DETACHED
24445 #define PTHREAD_CREATE_DETACHED 1
24449 int detach = PTHREAD_CREATE_DETACHED;
24451 #if HAVE_PTHREADS > 4
24452 /* Final pthreads */
24453 pthread_attr_t attr;
24455 status = pthread_attr_init(&attr);
24456 if( status ) return status;
24458 #if HAVE_PTHREADS < 7
24459 status = pthread_attr_setdetachstate(&attr, &detach);
24460 if( status < 0 ) status = errno;
24462 status = pthread_attr_setdetachstate(&attr, detach);
24464 if( status ) return status;
24465 status = pthread_create( &t, &attr, task, NULL );
24466 #if HAVE_PTHREADS < 7
24467 if( status < 0 ) status = errno;
24469 if( status ) return status;
24471 /* Draft 4 pthreads */
24472 status = pthread_create( &t, pthread_attr_default, task, NULL );
24473 if( status ) return errno;
24475 /* give thread a chance to complete */
24476 /* it should remain joinable and hence detachable */
24479 status = pthread_detach( &t );
24480 if( status ) return errno;
24483 #ifdef HAVE_LINUX_THREADS
24484 pthread_kill_other_threads_np();
24492 rm -f conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_link") 2>&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24503 { (case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_try") 2>&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); }; }; then
24512 ol_cv_pthread_lpthreads_lexc=yes
24514 echo "$as_me: program exited with status $ac_status" >&5
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24518 ( exit $ac_status )
24519 ol_cv_pthread_lpthreads_lexc=no
24521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24531 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24533 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24534 ol_link_pthreads="-lpthreads -lexc"
24535 ol_link_threads=posix
24540 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24541 if test "$ol_link_threads" = no ; then
24543 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24544 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24545 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 LIBS="-lpthreads $LIBS"
24553 if test "$cross_compiling" = yes; then
24554 cat >conftest.$ac_ext <<_ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24561 /* pthread test headers */
24562 #include <pthread.h>
24563 #if HAVE_PTHREADS < 7
24567 #define NULL (void*)0
24570 static void *task(p)
24573 return (void *) (p == NULL);
24580 /* pthread test function */
24581 #ifndef PTHREAD_CREATE_DETACHED
24582 #define PTHREAD_CREATE_DETACHED 1
24586 int detach = PTHREAD_CREATE_DETACHED;
24588 #if HAVE_PTHREADS > 4
24589 /* Final pthreads */
24590 pthread_attr_t attr;
24592 status = pthread_attr_init(&attr);
24593 if( status ) return status;
24595 #if HAVE_PTHREADS < 7
24596 status = pthread_attr_setdetachstate(&attr, &detach);
24597 if( status < 0 ) status = errno;
24599 status = pthread_attr_setdetachstate(&attr, detach);
24601 if( status ) return status;
24602 status = pthread_create( &t, &attr, task, NULL );
24603 #if HAVE_PTHREADS < 7
24604 if( status < 0 ) status = errno;
24606 if( status ) return status;
24608 /* Draft 4 pthreads */
24609 status = pthread_create( &t, pthread_attr_default, task, NULL );
24610 if( status ) return errno;
24612 /* give thread a chance to complete */
24613 /* it should remain joinable and hence detachable */
24616 status = pthread_detach( &t );
24617 if( status ) return errno;
24620 #ifdef HAVE_LINUX_THREADS
24621 pthread_kill_other_threads_np();
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1 >conftest.err
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest$ac_exeext &&
24647 $as_test_x conftest$ac_exeext; then
24648 ol_cv_pthread_lib_lpthreads=yes
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ol_cv_pthread_lib_lpthreads=no
24656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657 conftest$ac_exeext conftest.$ac_ext
24659 cat >conftest.$ac_ext <<_ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h. */
24666 /* pthread test headers */
24667 #include <pthread.h>
24668 #if HAVE_PTHREADS < 7
24672 #define NULL (void*)0
24675 static void *task(p)
24678 return (void *) (p == NULL);
24682 int main(argc, argv)
24687 /* pthread test function */
24688 #ifndef PTHREAD_CREATE_DETACHED
24689 #define PTHREAD_CREATE_DETACHED 1
24693 int detach = PTHREAD_CREATE_DETACHED;
24695 #if HAVE_PTHREADS > 4
24696 /* Final pthreads */
24697 pthread_attr_t attr;
24699 status = pthread_attr_init(&attr);
24700 if( status ) return status;
24702 #if HAVE_PTHREADS < 7
24703 status = pthread_attr_setdetachstate(&attr, &detach);
24704 if( status < 0 ) status = errno;
24706 status = pthread_attr_setdetachstate(&attr, detach);
24708 if( status ) return status;
24709 status = pthread_create( &t, &attr, task, NULL );
24710 #if HAVE_PTHREADS < 7
24711 if( status < 0 ) status = errno;
24713 if( status ) return status;
24715 /* Draft 4 pthreads */
24716 status = pthread_create( &t, pthread_attr_default, task, NULL );
24717 if( status ) return errno;
24719 /* give thread a chance to complete */
24720 /* it should remain joinable and hence detachable */
24723 status = pthread_detach( &t );
24724 if( status ) return errno;
24727 #ifdef HAVE_LINUX_THREADS
24728 pthread_kill_other_threads_np();
24736 rm -f conftest$ac_exeext
24737 if { (ac_try="$ac_link"
24738 case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_link") 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24747 { (case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_try") 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; }; then
24756 ol_cv_pthread_lib_lpthreads=yes
24758 echo "$as_me: program exited with status $ac_status" >&5
24759 echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24762 ( exit $ac_status )
24763 ol_cv_pthread_lib_lpthreads=no
24765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24774 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24775 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24777 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24778 ol_link_pthreads="-lpthreads"
24779 ol_link_threads=posix
24784 if test $ol_link_threads != no ; then
24785 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24787 save_CPPFLAGS="$CPPFLAGS"
24789 LIBS="$LTHREAD_LIBS $LIBS"
24794 for ac_func in sched_yield pthread_yield thr_yield
24796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24810 #define $ac_func innocuous_$ac_func
24812 /* System header to define __stub macros and hopefully few prototypes,
24813 which can conflict with char $ac_func (); below.
24814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24815 <limits.h> exists even on freestanding compilers. */
24818 # include <limits.h>
24820 # include <assert.h>
24825 /* Override any GCC internal prototype to avoid an error.
24826 Use char because int might match the return type of a GCC
24827 builtin and then its argument prototype would still apply. */
24832 /* The GNU C library defines this for functions which it implements
24833 to always fail with ENOSYS. Some functions are actually named
24834 something starting with __ and the normal name is an alias. */
24835 #if defined __stub_$ac_func || defined __stub___$ac_func
24842 return $ac_func ();
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_link") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest$ac_exeext &&
24864 $as_test_x conftest$ac_exeext; then
24865 eval "$as_ac_var=yes"
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 eval "$as_ac_var=no"
24873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24874 conftest$ac_exeext conftest.$ac_ext
24876 ac_res=`eval echo '${'$as_ac_var'}'`
24877 { echo "$as_me:$LINENO: result: $ac_res" >&5
24878 echo "${ECHO_T}$ac_res" >&6; }
24879 if test `eval echo '${'$as_ac_var'}'` = yes; then
24880 cat >>confdefs.h <<_ACEOF
24881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24888 if test $ac_cv_func_sched_yield = no &&
24889 test $ac_cv_func_pthread_yield = no &&
24890 test $ac_cv_func_thr_yield = no ; then
24891 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24892 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24893 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24896 ac_check_lib_save_LIBS=$LIBS
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24905 /* Override any GCC internal prototype to avoid an error.
24906 Use char because int might match the return type of a GCC
24907 builtin and then its argument prototype would still apply. */
24911 char sched_yield ();
24915 return sched_yield ();
24920 rm -f conftest.$ac_objext conftest$ac_exeext
24921 if { (ac_try="$ac_link"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_link") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest$ac_exeext &&
24937 $as_test_x conftest$ac_exeext; then
24938 ac_cv_lib_rt_sched_yield=yes
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_cv_lib_rt_sched_yield=no
24946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24947 conftest$ac_exeext conftest.$ac_ext
24948 LIBS=$ac_check_lib_save_LIBS
24950 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24951 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24952 if test $ac_cv_lib_rt_sched_yield = yes; then
24953 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24955 cat >>confdefs.h <<\_ACEOF
24956 #define HAVE_SCHED_YIELD 1
24959 ac_cv_func_sched_yield=yes
24961 ac_cv_func_sched_yield=no
24965 if test $ac_cv_func_sched_yield = no &&
24966 test $ac_cv_func_pthread_yield = no &&
24967 test "$ac_cv_func_thr_yield" = no ; then
24968 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24969 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24973 for ac_func in pthread_kill
24975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24989 #define $ac_func innocuous_$ac_func
24991 /* System header to define __stub macros and hopefully few prototypes,
24992 which can conflict with char $ac_func (); below.
24993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24994 <limits.h> exists even on freestanding compilers. */
24997 # include <limits.h>
24999 # include <assert.h>
25004 /* Override any GCC internal prototype to avoid an error.
25005 Use char because int might match the return type of a GCC
25006 builtin and then its argument prototype would still apply. */
25011 /* The GNU C library defines this for functions which it implements
25012 to always fail with ENOSYS. Some functions are actually named
25013 something starting with __ and the normal name is an alias. */
25014 #if defined __stub_$ac_func || defined __stub___$ac_func
25021 return $ac_func ();
25026 rm -f conftest.$ac_objext conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_link") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest$ac_exeext &&
25043 $as_test_x conftest$ac_exeext; then
25044 eval "$as_ac_var=yes"
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 eval "$as_ac_var=no"
25052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25053 conftest$ac_exeext conftest.$ac_ext
25055 ac_res=`eval echo '${'$as_ac_var'}'`
25056 { echo "$as_me:$LINENO: result: $ac_res" >&5
25057 echo "${ECHO_T}$ac_res" >&6; }
25058 if test `eval echo '${'$as_ac_var'}'` = yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25067 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25068 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25069 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25073 cat >conftest.$ac_ext <<_ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25080 #include <pthread.h>
25081 pthread_rwlock_t rwlock;
25086 pthread_rwlock_destroy(&rwlock);
25091 rm -f conftest.$ac_objext conftest$ac_exeext
25092 if { (ac_try="$ac_link"
25093 case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_link") 2>conftest.er1
25100 grep -v '^ *+' conftest.er1 >conftest.err
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } && {
25105 test -z "$ac_c_werror_flag" ||
25106 test ! -s conftest.err
25107 } && test -s conftest$ac_exeext &&
25108 $as_test_x conftest$ac_exeext; then
25109 ol_cv_func_pthread_rwlock_destroy=yes
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25114 ol_cv_func_pthread_rwlock_destroy=no
25117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25118 conftest$ac_exeext conftest.$ac_ext
25121 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25122 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25123 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25131 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25132 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25133 if test "${ol_cv_func_pthread_detach+set}" = set; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 cat >conftest.$ac_ext <<_ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h. */
25144 #include <pthread.h>
25146 #define NULL (void*)0
25152 pthread_detach(NULL);
25157 rm -f conftest.$ac_objext conftest$ac_exeext
25158 if { (ac_try="$ac_link"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164 (eval "$ac_link") 2>conftest.er1
25166 grep -v '^ *+' conftest.er1 >conftest.err
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } && {
25171 test -z "$ac_c_werror_flag" ||
25172 test ! -s conftest.err
25173 } && test -s conftest$ac_exeext &&
25174 $as_test_x conftest$ac_exeext; then
25175 ol_cv_func_pthread_detach=yes
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ol_cv_func_pthread_detach=no
25183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25184 conftest$ac_exeext conftest.$ac_ext
25187 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25188 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25190 if test $ol_cv_func_pthread_detach = no ; then
25191 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25192 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25193 { (exit 1); exit 1; }; }
25197 cat >>confdefs.h <<\_ACEOF
25198 #define HAVE_PTHREAD_DETACH 1
25207 pthread_setconcurrency \
25208 pthread_getconcurrency \
25209 thr_setconcurrency \
25210 thr_getconcurrency \
25213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25219 cat >conftest.$ac_ext <<_ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25227 #define $ac_func innocuous_$ac_func
25229 /* System header to define __stub macros and hopefully few prototypes,
25230 which can conflict with char $ac_func (); below.
25231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25232 <limits.h> exists even on freestanding compilers. */
25235 # include <limits.h>
25237 # include <assert.h>
25242 /* Override any GCC internal prototype to avoid an error.
25243 Use char because int might match the return type of a GCC
25244 builtin and then its argument prototype would still apply. */
25249 /* The GNU C library defines this for functions which it implements
25250 to always fail with ENOSYS. Some functions are actually named
25251 something starting with __ and the normal name is an alias. */
25252 #if defined __stub_$ac_func || defined __stub___$ac_func
25259 return $ac_func ();
25264 rm -f conftest.$ac_objext conftest$ac_exeext
25265 if { (ac_try="$ac_link"
25266 case "(($ac_try" in
25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268 *) ac_try_echo=$ac_try;;
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271 (eval "$ac_link") 2>conftest.er1
25273 grep -v '^ *+' conftest.er1 >conftest.err
25275 cat conftest.err >&5
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } && {
25278 test -z "$ac_c_werror_flag" ||
25279 test ! -s conftest.err
25280 } && test -s conftest$ac_exeext &&
25281 $as_test_x conftest$ac_exeext; then
25282 eval "$as_ac_var=yes"
25284 echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25287 eval "$as_ac_var=no"
25290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25291 conftest$ac_exeext conftest.$ac_ext
25293 ac_res=`eval echo '${'$as_ac_var'}'`
25294 { echo "$as_me:$LINENO: result: $ac_res" >&5
25295 echo "${ECHO_T}$ac_res" >&6; }
25296 if test `eval echo '${'$as_ac_var'}'` = yes; then
25297 cat >>confdefs.h <<_ACEOF
25298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25307 for ac_func in pthread_kill_other_threads_np
25309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25323 #define $ac_func innocuous_$ac_func
25325 /* System header to define __stub macros and hopefully few prototypes,
25326 which can conflict with char $ac_func (); below.
25327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25328 <limits.h> exists even on freestanding compilers. */
25331 # include <limits.h>
25333 # include <assert.h>
25338 /* Override any GCC internal prototype to avoid an error.
25339 Use char because int might match the return type of a GCC
25340 builtin and then its argument prototype would still apply. */
25345 /* The GNU C library defines this for functions which it implements
25346 to always fail with ENOSYS. Some functions are actually named
25347 something starting with __ and the normal name is an alias. */
25348 #if defined __stub_$ac_func || defined __stub___$ac_func
25355 return $ac_func ();
25360 rm -f conftest.$ac_objext conftest$ac_exeext
25361 if { (ac_try="$ac_link"
25362 case "(($ac_try" in
25363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364 *) ac_try_echo=$ac_try;;
25366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25367 (eval "$ac_link") 2>conftest.er1
25369 grep -v '^ *+' conftest.er1 >conftest.err
25371 cat conftest.err >&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest$ac_exeext &&
25377 $as_test_x conftest$ac_exeext; then
25378 eval "$as_ac_var=yes"
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 eval "$as_ac_var=no"
25386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25387 conftest$ac_exeext conftest.$ac_ext
25389 ac_res=`eval echo '${'$as_ac_var'}'`
25390 { echo "$as_me:$LINENO: result: $ac_res" >&5
25391 echo "${ECHO_T}$ac_res" >&6; }
25392 if test `eval echo '${'$as_ac_var'}'` = yes; then
25393 cat >>confdefs.h <<_ACEOF
25394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25400 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25401 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25402 if test "${ol_cv_sys_linux_threads+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25407 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25408 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25413 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25414 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25415 if test "${ol_cv_linux_threads+set}" = set; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25419 if test $ol_cv_header_linux_threads = yes &&
25420 test $ol_cv_sys_linux_threads = yes; then
25421 ol_cv_linux_threads=yes
25422 elif test $ol_cv_header_linux_threads = no &&
25423 test $ol_cv_sys_linux_threads = no; then
25424 ol_cv_linux_threads=no
25426 ol_cv_linux_threads=error
25430 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25431 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25434 if test $ol_cv_linux_threads = error; then
25435 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25436 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25437 { (exit 1); exit 1; }; };
25440 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25441 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25442 if test "${ol_cv_pthread_create_works+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 if test "$cross_compiling" = yes; then
25447 ol_cv_pthread_create_works=yes
25449 cat >conftest.$ac_ext <<_ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25456 /* pthread test headers */
25457 #include <pthread.h>
25458 #if HAVE_PTHREADS < 7
25462 #define NULL (void*)0
25465 static void *task(p)
25468 return (void *) (p == NULL);
25472 int main(argc, argv)
25477 /* pthread test function */
25478 #ifndef PTHREAD_CREATE_DETACHED
25479 #define PTHREAD_CREATE_DETACHED 1
25483 int detach = PTHREAD_CREATE_DETACHED;
25485 #if HAVE_PTHREADS > 4
25486 /* Final pthreads */
25487 pthread_attr_t attr;
25489 status = pthread_attr_init(&attr);
25490 if( status ) return status;
25492 #if HAVE_PTHREADS < 7
25493 status = pthread_attr_setdetachstate(&attr, &detach);
25494 if( status < 0 ) status = errno;
25496 status = pthread_attr_setdetachstate(&attr, detach);
25498 if( status ) return status;
25499 status = pthread_create( &t, &attr, task, NULL );
25500 #if HAVE_PTHREADS < 7
25501 if( status < 0 ) status = errno;
25503 if( status ) return status;
25505 /* Draft 4 pthreads */
25506 status = pthread_create( &t, pthread_attr_default, task, NULL );
25507 if( status ) return errno;
25509 /* give thread a chance to complete */
25510 /* it should remain joinable and hence detachable */
25513 status = pthread_detach( &t );
25514 if( status ) return errno;
25517 #ifdef HAVE_LINUX_THREADS
25518 pthread_kill_other_threads_np();
25526 rm -f conftest$ac_exeext
25527 if { (ac_try="$ac_link"
25528 case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_link") 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25537 { (case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_try") 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ol_cv_pthread_create_works=yes
25548 echo "$as_me: program exited with status $ac_status" >&5
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25552 ( exit $ac_status )
25553 ol_cv_pthread_create_works=no
25555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25560 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25561 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25563 if test $ol_cv_pthread_create_works = no ; then
25564 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25565 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25566 { (exit 1); exit 1; }; }
25569 ol_replace_broken_yield=no
25571 if test $ol_replace_broken_yield = yes ; then
25573 cat >>confdefs.h <<\_ACEOF
25574 #define REPLACE_BROKEN_YIELD 1
25579 if test $ol_with_yielding_select = auto ; then
25580 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25581 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25582 if test "${ol_cv_pthread_select_yields+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25586 if test "$cross_compiling" = yes; then
25587 ol_cv_pthread_select_yields=cross
25589 cat >conftest.$ac_ext <<_ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h. */
25596 #include <sys/types.h>
25597 #include <sys/time.h>
25598 #include <unistd.h>
25599 #include <pthread.h>
25601 #define NULL (void*) 0
25604 static int fildes[2];
25606 static void *task(p)
25618 FD_SET(fildes[0], &rfds);
25620 /* we're not interested in any fds */
25621 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25628 exit(0); /* if we exit here, the select blocked the whole process */
25631 int main(argc, argv)
25637 /* create a pipe to select */
25638 if(pipe(&fildes[0])) {
25643 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25644 (void) pthread_setconcurrency(2);
25646 #ifdef HAVE_THR_SETCONCURRENCY
25647 /* Set Solaris LWP concurrency to 2 */
25648 thr_setconcurrency(2);
25652 #if HAVE_PTHREADS < 6
25653 pthread_create(&t, pthread_attr_default, task, NULL);
25655 pthread_create(&t, NULL, task, NULL);
25658 /* make sure task runs first */
25659 #ifdef HAVE_THR_YIELD
25661 #elif defined( HAVE_SCHED_YIELD )
25663 #elif defined( HAVE_PTHREAD_YIELD )
25670 rm -f conftest$ac_exeext
25671 if { (ac_try="$ac_link"
25672 case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677 (eval "$ac_link") 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25681 { (case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25686 (eval "$ac_try") 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ol_cv_pthread_select_yields=no
25692 echo "$as_me: program exited with status $ac_status" >&5
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ( exit $ac_status )
25697 ol_cv_pthread_select_yields=yes
25699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25704 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25705 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25707 if test $ol_cv_pthread_select_yields = cross ; then
25708 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25709 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25710 { (exit 1); exit 1; }; }
25713 if test $ol_cv_pthread_select_yields = yes ; then
25714 ol_with_yielding_select=yes
25718 CPPFLAGS="$save_CPPFLAGS"
25721 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25722 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25723 { (exit 1); exit 1; }; }
25727 if test $ol_with_threads = posix ; then
25728 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25729 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25730 { (exit 1); exit 1; }; }
25735 case $ol_with_threads in auto | yes | mach)
25739 for ac_header in mach/cthreads.h cthreads.h
25741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25748 ac_res=`eval echo '${'$as_ac_Header'}'`
25749 { echo "$as_me:$LINENO: result: $ac_res" >&5
25750 echo "${ECHO_T}$ac_res" >&6; }
25752 # Is the header compilable?
25753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25761 $ac_includes_default
25762 #include <$ac_header>
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_compile") 2>conftest.er1
25773 grep -v '^ *+' conftest.er1 >conftest.err
25775 cat conftest.err >&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && {
25778 test -z "$ac_c_werror_flag" ||
25779 test ! -s conftest.err
25780 } && test -s conftest.$ac_objext; then
25781 ac_header_compiler=yes
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 ac_header_compiler=no
25789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25791 echo "${ECHO_T}$ac_header_compiler" >&6; }
25793 # Is the header present?
25794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25796 cat >conftest.$ac_ext <<_ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h. */
25802 #include <$ac_header>
25804 if { (ac_try="$ac_cpp conftest.$ac_ext"
25805 case "(($ac_try" in
25806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25812 grep -v '^ *+' conftest.er1 >conftest.err
25814 cat conftest.err >&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } >/dev/null && {
25817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25820 ac_header_preproc=yes
25822 echo "$as_me: failed program was:" >&5
25823 sed 's/^/| /' conftest.$ac_ext >&5
25825 ac_header_preproc=no
25828 rm -f conftest.err conftest.$ac_ext
25829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25830 echo "${ECHO_T}$ac_header_preproc" >&6; }
25832 # So? What about this header?
25833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25839 ac_header_preproc=yes
25842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25855 ## --------------------------------------------- ##
25856 ## Report this to <http://www.openldap.org/its/> ##
25857 ## --------------------------------------------- ##
25859 ) | sed "s/^/$as_me: WARNING: /" >&2
25862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 eval "$as_ac_Header=\$ac_header_preproc"
25869 ac_res=`eval echo '${'$as_ac_Header'}'`
25870 { echo "$as_me:$LINENO: result: $ac_res" >&5
25871 echo "${ECHO_T}$ac_res" >&6; }
25874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25875 cat >>confdefs.h <<_ACEOF
25876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25883 if test $ac_cv_header_mach_cthreads_h = yes ; then
25884 ol_with_threads=found
25886 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25887 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25888 if test "${ac_cv_func_cthread_fork+set}" = set; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 cat >conftest.$ac_ext <<_ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25897 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25899 #define cthread_fork innocuous_cthread_fork
25901 /* System header to define __stub macros and hopefully few prototypes,
25902 which can conflict with char cthread_fork (); below.
25903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25904 <limits.h> exists even on freestanding compilers. */
25907 # include <limits.h>
25909 # include <assert.h>
25912 #undef cthread_fork
25914 /* Override any GCC internal prototype to avoid an error.
25915 Use char because int might match the return type of a GCC
25916 builtin and then its argument prototype would still apply. */
25920 char cthread_fork ();
25921 /* The GNU C library defines this for functions which it implements
25922 to always fail with ENOSYS. Some functions are actually named
25923 something starting with __ and the normal name is an alias. */
25924 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25931 return cthread_fork ();
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (ac_try="$ac_link"
25938 case "(($ac_try" in
25939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940 *) ac_try_echo=$ac_try;;
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943 (eval "$ac_link") 2>conftest.er1
25945 grep -v '^ *+' conftest.er1 >conftest.err
25947 cat conftest.err >&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } && {
25950 test -z "$ac_c_werror_flag" ||
25951 test ! -s conftest.err
25952 } && test -s conftest$ac_exeext &&
25953 $as_test_x conftest$ac_exeext; then
25954 ac_cv_func_cthread_fork=yes
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 ac_cv_func_cthread_fork=no
25962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25963 conftest$ac_exeext conftest.$ac_ext
25965 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25966 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25967 if test $ac_cv_func_cthread_fork = yes; then
25968 ol_link_threads=yes
25972 if test $ol_link_threads = no ; then
25973 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25974 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25975 if test "${ol_cv_cthread_all_load+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25980 LIBS="-all_load $LIBS"
25981 cat >conftest.$ac_ext <<_ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h. */
25987 #include <mach/cthreads.h>
25992 cthread_fork((void *)0, (void *)0);
25998 rm -f conftest.$ac_objext conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005 (eval "$ac_link") 2>conftest.er1
26007 grep -v '^ *+' conftest.er1 >conftest.err
26009 cat conftest.err >&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest$ac_exeext &&
26015 $as_test_x conftest$ac_exeext; then
26016 ol_cv_cthread_all_load=yes
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ol_cv_cthread_all_load=no
26024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26025 conftest$ac_exeext conftest.$ac_ext
26029 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
26030 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
26032 if test $ol_cv_cthread_all_load = yes ; then
26033 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26034 ol_link_threads=mach
26035 ol_with_threads=found
26039 elif test $ac_cv_header_cthreads_h = yes ; then
26041 ol_with_threads=found
26044 LIBS="$LIBS -lthreads"
26045 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26046 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26047 if test "${ac_cv_func_cthread_fork+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26050 cat >conftest.$ac_ext <<_ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26058 #define cthread_fork innocuous_cthread_fork
26060 /* System header to define __stub macros and hopefully few prototypes,
26061 which can conflict with char cthread_fork (); below.
26062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26063 <limits.h> exists even on freestanding compilers. */
26066 # include <limits.h>
26068 # include <assert.h>
26071 #undef cthread_fork
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26079 char cthread_fork ();
26080 /* The GNU C library defines this for functions which it implements
26081 to always fail with ENOSYS. Some functions are actually named
26082 something starting with __ and the normal name is an alias. */
26083 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26090 return cthread_fork ();
26095 rm -f conftest.$ac_objext conftest$ac_exeext
26096 if { (ac_try="$ac_link"
26097 case "(($ac_try" in
26098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099 *) ac_try_echo=$ac_try;;
26101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26102 (eval "$ac_link") 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest$ac_exeext &&
26112 $as_test_x conftest$ac_exeext; then
26113 ac_cv_func_cthread_fork=yes
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ac_cv_func_cthread_fork=no
26121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26122 conftest$ac_exeext conftest.$ac_ext
26124 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26125 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26126 if test $ac_cv_func_cthread_fork = yes; then
26127 ol_link_threads=yes
26132 if test $ol_link_threads = yes ; then
26133 LTHREAD_LIBS="-lthreads"
26134 ol_link_threads=mach
26135 ol_with_threads=found
26137 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26138 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26139 { (exit 1); exit 1; }; }
26142 elif test $ol_with_threads = mach ; then
26143 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26144 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26145 { (exit 1); exit 1; }; }
26148 if test $ol_link_threads = mach ; then
26150 cat >>confdefs.h <<\_ACEOF
26151 #define HAVE_MACH_CTHREADS 1
26154 elif test $ol_with_threads = found ; then
26155 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26156 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26157 { (exit 1); exit 1; }; }
26162 case $ol_with_threads in auto | yes | pth)
26165 for ac_header in pth.h
26167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26172 echo $ECHO_N "(cached) $ECHO_C" >&6
26174 ac_res=`eval echo '${'$as_ac_Header'}'`
26175 { echo "$as_me:$LINENO: result: $ac_res" >&5
26176 echo "${ECHO_T}$ac_res" >&6; }
26178 # Is the header compilable?
26179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26188 #include <$ac_header>
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_compile") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1 >conftest.err
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest.$ac_objext; then
26207 ac_header_compiler=yes
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26212 ac_header_compiler=no
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26217 echo "${ECHO_T}$ac_header_compiler" >&6; }
26219 # Is the header present?
26220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 #include <$ac_header>
26230 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
26243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26246 ac_header_preproc=yes
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 ac_header_preproc=no
26254 rm -f conftest.err conftest.$ac_ext
26255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26256 echo "${ECHO_T}$ac_header_preproc" >&6; }
26258 # So? What about this header?
26259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26265 ac_header_preproc=yes
26268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26281 ## --------------------------------------------- ##
26282 ## Report this to <http://www.openldap.org/its/> ##
26283 ## --------------------------------------------- ##
26285 ) | sed "s/^/$as_me: WARNING: /" >&2
26288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26291 echo $ECHO_N "(cached) $ECHO_C" >&6
26293 eval "$as_ac_Header=\$ac_header_preproc"
26295 ac_res=`eval echo '${'$as_ac_Header'}'`
26296 { echo "$as_me:$LINENO: result: $ac_res" >&5
26297 echo "${ECHO_T}$ac_res" >&6; }
26300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26301 cat >>confdefs.h <<_ACEOF
26302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26310 if test $ac_cv_header_pth_h = yes ; then
26311 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26312 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26313 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 ac_check_lib_save_LIBS=$LIBS
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26325 /* Override any GCC internal prototype to avoid an error.
26326 Use char because int might match the return type of a GCC
26327 builtin and then its argument prototype would still apply. */
26331 char pth_version ();
26335 return pth_version ();
26340 rm -f conftest.$ac_objext conftest$ac_exeext
26341 if { (ac_try="$ac_link"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347 (eval "$ac_link") 2>conftest.er1
26349 grep -v '^ *+' conftest.er1 >conftest.err
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } && {
26354 test -z "$ac_c_werror_flag" ||
26355 test ! -s conftest.err
26356 } && test -s conftest$ac_exeext &&
26357 $as_test_x conftest$ac_exeext; then
26358 ac_cv_lib_pth_pth_version=yes
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_cv_lib_pth_pth_version=no
26366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26367 conftest$ac_exeext conftest.$ac_ext
26368 LIBS=$ac_check_lib_save_LIBS
26370 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26371 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26372 if test $ac_cv_lib_pth_pth_version = yes; then
26379 if test $have_pth = yes ; then
26381 cat >>confdefs.h <<\_ACEOF
26382 #define HAVE_GNU_PTH 1
26385 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26386 ol_link_threads=pth
26387 ol_with_threads=found
26389 if test $ol_with_yielding_select = auto ; then
26390 ol_with_yielding_select=yes
26397 case $ol_with_threads in auto | yes | lwp)
26401 for ac_header in thread.h synch.h
26403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 ac_res=`eval echo '${'$as_ac_Header'}'`
26411 { echo "$as_me:$LINENO: result: $ac_res" >&5
26412 echo "${ECHO_T}$ac_res" >&6; }
26414 # Is the header compilable?
26415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26417 cat >conftest.$ac_ext <<_ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 $ac_includes_default
26424 #include <$ac_header>
26426 rm -f conftest.$ac_objext
26427 if { (ac_try="$ac_compile"
26428 case "(($ac_try" in
26429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26430 *) ac_try_echo=$ac_try;;
26432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26433 (eval "$ac_compile") 2>conftest.er1
26435 grep -v '^ *+' conftest.er1 >conftest.err
26437 cat conftest.err >&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } && {
26440 test -z "$ac_c_werror_flag" ||
26441 test ! -s conftest.err
26442 } && test -s conftest.$ac_objext; then
26443 ac_header_compiler=yes
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 ac_header_compiler=no
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26453 echo "${ECHO_T}$ac_header_compiler" >&6; }
26455 # Is the header present?
26456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26458 cat >conftest.$ac_ext <<_ACEOF
26461 cat confdefs.h >>conftest.$ac_ext
26462 cat >>conftest.$ac_ext <<_ACEOF
26463 /* end confdefs.h. */
26464 #include <$ac_header>
26466 if { (ac_try="$ac_cpp conftest.$ac_ext"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26474 grep -v '^ *+' conftest.er1 >conftest.err
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } >/dev/null && {
26479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26480 test ! -s conftest.err
26482 ac_header_preproc=yes
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 ac_header_preproc=no
26490 rm -f conftest.err conftest.$ac_ext
26491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26492 echo "${ECHO_T}$ac_header_preproc" >&6; }
26494 # So? What about this header?
26495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26501 ac_header_preproc=yes
26504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26517 ## --------------------------------------------- ##
26518 ## Report this to <http://www.openldap.org/its/> ##
26519 ## --------------------------------------------- ##
26521 ) | sed "s/^/$as_me: WARNING: /" >&2
26524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26529 eval "$as_ac_Header=\$ac_header_preproc"
26531 ac_res=`eval echo '${'$as_ac_Header'}'`
26532 { echo "$as_me:$LINENO: result: $ac_res" >&5
26533 echo "${ECHO_T}$ac_res" >&6; }
26536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26537 cat >>confdefs.h <<_ACEOF
26538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26545 if test $ac_cv_header_thread_h = yes &&
26546 test $ac_cv_header_synch_h = yes ; then
26547 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26548 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26549 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26552 ac_check_lib_save_LIBS=$LIBS
26553 LIBS="-lthread $LIBS"
26554 cat >conftest.$ac_ext <<_ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h. */
26561 /* Override any GCC internal prototype to avoid an error.
26562 Use char because int might match the return type of a GCC
26563 builtin and then its argument prototype would still apply. */
26567 char thr_create ();
26571 return thr_create ();
26576 rm -f conftest.$ac_objext conftest$ac_exeext
26577 if { (ac_try="$ac_link"
26578 case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26583 (eval "$ac_link") 2>conftest.er1
26585 grep -v '^ *+' conftest.er1 >conftest.err
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && {
26590 test -z "$ac_c_werror_flag" ||
26591 test ! -s conftest.err
26592 } && test -s conftest$ac_exeext &&
26593 $as_test_x conftest$ac_exeext; then
26594 ac_cv_lib_thread_thr_create=yes
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 ac_cv_lib_thread_thr_create=no
26602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26603 conftest$ac_exeext conftest.$ac_ext
26604 LIBS=$ac_check_lib_save_LIBS
26606 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26607 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26608 if test $ac_cv_lib_thread_thr_create = yes; then
26615 if test $have_thr = yes ; then
26617 cat >>confdefs.h <<\_ACEOF
26621 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26622 ol_link_threads=thr
26624 if test $ol_with_yielding_select = auto ; then
26625 ol_with_yielding_select=yes
26631 thr_setconcurrency \
26632 thr_getconcurrency \
26635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26639 echo $ECHO_N "(cached) $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26649 #define $ac_func innocuous_$ac_func
26651 /* System header to define __stub macros and hopefully few prototypes,
26652 which can conflict with char $ac_func (); below.
26653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26654 <limits.h> exists even on freestanding compilers. */
26657 # include <limits.h>
26659 # include <assert.h>
26664 /* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26671 /* The GNU C library defines this for functions which it implements
26672 to always fail with ENOSYS. Some functions are actually named
26673 something starting with __ and the normal name is an alias. */
26674 #if defined __stub_$ac_func || defined __stub___$ac_func
26681 return $ac_func ();
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690 *) ac_try_echo=$ac_try;;
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693 (eval "$ac_link") 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } && {
26700 test -z "$ac_c_werror_flag" ||
26701 test ! -s conftest.err
26702 } && test -s conftest$ac_exeext &&
26703 $as_test_x conftest$ac_exeext; then
26704 eval "$as_ac_var=yes"
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 eval "$as_ac_var=no"
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713 conftest$ac_exeext conftest.$ac_ext
26715 ac_res=`eval echo '${'$as_ac_var'}'`
26716 { echo "$as_me:$LINENO: result: $ac_res" >&5
26717 echo "${ECHO_T}$ac_res" >&6; }
26718 if test `eval echo '${'$as_ac_var'}'` = yes; then
26719 cat >>confdefs.h <<_ACEOF
26720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26730 for ac_header in lwp/lwp.h
26732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26737 echo $ECHO_N "(cached) $ECHO_C" >&6
26739 ac_res=`eval echo '${'$as_ac_Header'}'`
26740 { echo "$as_me:$LINENO: result: $ac_res" >&5
26741 echo "${ECHO_T}$ac_res" >&6; }
26743 # Is the header compilable?
26744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26746 cat >conftest.$ac_ext <<_ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h. */
26752 $ac_includes_default
26753 #include <$ac_header>
26755 rm -f conftest.$ac_objext
26756 if { (ac_try="$ac_compile"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_compile") 2>conftest.er1
26764 grep -v '^ *+' conftest.er1 >conftest.err
26766 cat conftest.err >&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } && {
26769 test -z "$ac_c_werror_flag" ||
26770 test ! -s conftest.err
26771 } && test -s conftest.$ac_objext; then
26772 ac_header_compiler=yes
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26777 ac_header_compiler=no
26780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26782 echo "${ECHO_T}$ac_header_compiler" >&6; }
26784 # Is the header present?
26785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 #include <$ac_header>
26795 if { (ac_try="$ac_cpp conftest.$ac_ext"
26796 case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26803 grep -v '^ *+' conftest.er1 >conftest.err
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } >/dev/null && {
26808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26809 test ! -s conftest.err
26811 ac_header_preproc=yes
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 ac_header_preproc=no
26819 rm -f conftest.err conftest.$ac_ext
26820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26821 echo "${ECHO_T}$ac_header_preproc" >&6; }
26823 # So? What about this header?
26824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26830 ac_header_preproc=yes
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26846 ## --------------------------------------------- ##
26847 ## Report this to <http://www.openldap.org/its/> ##
26848 ## --------------------------------------------- ##
26850 ) | sed "s/^/$as_me: WARNING: /" >&2
26853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26858 eval "$as_ac_Header=\$ac_header_preproc"
26860 ac_res=`eval echo '${'$as_ac_Header'}'`
26861 { echo "$as_me:$LINENO: result: $ac_res" >&5
26862 echo "${ECHO_T}$ac_res" >&6; }
26865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26866 cat >>confdefs.h <<_ACEOF
26867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26874 if test $ac_cv_header_lwp_lwp_h = yes ; then
26875 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26876 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26877 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 ac_check_lib_save_LIBS=$LIBS
26882 cat >conftest.$ac_ext <<_ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26889 /* Override any GCC internal prototype to avoid an error.
26890 Use char because int might match the return type of a GCC
26891 builtin and then its argument prototype would still apply. */
26895 char lwp_create ();
26899 return lwp_create ();
26904 rm -f conftest.$ac_objext conftest$ac_exeext
26905 if { (ac_try="$ac_link"
26906 case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_link") 2>conftest.er1
26913 grep -v '^ *+' conftest.er1 >conftest.err
26915 cat conftest.err >&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } && {
26918 test -z "$ac_c_werror_flag" ||
26919 test ! -s conftest.err
26920 } && test -s conftest$ac_exeext &&
26921 $as_test_x conftest$ac_exeext; then
26922 ac_cv_lib_lwp_lwp_create=yes
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 ac_cv_lib_lwp_lwp_create=no
26930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26931 conftest$ac_exeext conftest.$ac_ext
26932 LIBS=$ac_check_lib_save_LIBS
26934 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26935 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26936 if test $ac_cv_lib_lwp_lwp_create = yes; then
26943 if test $have_lwp = yes ; then
26945 cat >>confdefs.h <<\_ACEOF
26949 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26950 ol_link_threads=lwp
26952 if test $ol_with_yielding_select = auto ; then
26953 ol_with_yielding_select=no
26960 if test $ol_with_yielding_select = yes ; then
26962 cat >>confdefs.h <<\_ACEOF
26963 #define HAVE_YIELDING_SELECT 1
26968 if test $ol_with_threads = manual ; then
26969 ol_link_threads=yes
26971 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26972 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26976 for ac_header in pthread.h sched.h
26978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
26985 ac_res=`eval echo '${'$as_ac_Header'}'`
26986 { echo "$as_me:$LINENO: result: $ac_res" >&5
26987 echo "${ECHO_T}$ac_res" >&6; }
26989 # Is the header compilable?
26990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 $ac_includes_default
26999 #include <$ac_header>
27001 rm -f conftest.$ac_objext
27002 if { (ac_try="$ac_compile"
27003 case "(($ac_try" in
27004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005 *) ac_try_echo=$ac_try;;
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008 (eval "$ac_compile") 2>conftest.er1
27010 grep -v '^ *+' conftest.er1 >conftest.err
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } && {
27015 test -z "$ac_c_werror_flag" ||
27016 test ! -s conftest.err
27017 } && test -s conftest.$ac_objext; then
27018 ac_header_compiler=yes
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27023 ac_header_compiler=no
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27028 echo "${ECHO_T}$ac_header_compiler" >&6; }
27030 # Is the header present?
27031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039 #include <$ac_header>
27041 if { (ac_try="$ac_cpp conftest.$ac_ext"
27042 case "(($ac_try" in
27043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044 *) ac_try_echo=$ac_try;;
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27049 grep -v '^ *+' conftest.er1 >conftest.err
27051 cat conftest.err >&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } >/dev/null && {
27054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27055 test ! -s conftest.err
27057 ac_header_preproc=yes
27059 echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27062 ac_header_preproc=no
27065 rm -f conftest.err conftest.$ac_ext
27066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27067 echo "${ECHO_T}$ac_header_preproc" >&6; }
27069 # So? What about this header?
27070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27076 ac_header_preproc=yes
27079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27092 ## --------------------------------------------- ##
27093 ## Report this to <http://www.openldap.org/its/> ##
27094 ## --------------------------------------------- ##
27096 ) | sed "s/^/$as_me: WARNING: /" >&2
27099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27104 eval "$as_ac_Header=\$ac_header_preproc"
27106 ac_res=`eval echo '${'$as_ac_Header'}'`
27107 { echo "$as_me:$LINENO: result: $ac_res" >&5
27108 echo "${ECHO_T}$ac_res" >&6; }
27111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27112 cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27122 for ac_func in sched_yield pthread_yield
27124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27130 cat >conftest.$ac_ext <<_ACEOF
27133 cat confdefs.h >>conftest.$ac_ext
27134 cat >>conftest.$ac_ext <<_ACEOF
27135 /* end confdefs.h. */
27136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27138 #define $ac_func innocuous_$ac_func
27140 /* System header to define __stub macros and hopefully few prototypes,
27141 which can conflict with char $ac_func (); below.
27142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27143 <limits.h> exists even on freestanding compilers. */
27146 # include <limits.h>
27148 # include <assert.h>
27153 /* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27160 /* The GNU C library defines this for functions which it implements
27161 to always fail with ENOSYS. Some functions are actually named
27162 something starting with __ and the normal name is an alias. */
27163 #if defined __stub_$ac_func || defined __stub___$ac_func
27170 return $ac_func ();
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } && {
27189 test -z "$ac_c_werror_flag" ||
27190 test ! -s conftest.err
27191 } && test -s conftest$ac_exeext &&
27192 $as_test_x conftest$ac_exeext; then
27193 eval "$as_ac_var=yes"
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 eval "$as_ac_var=no"
27201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27202 conftest$ac_exeext conftest.$ac_ext
27204 ac_res=`eval echo '${'$as_ac_var'}'`
27205 { echo "$as_me:$LINENO: result: $ac_res" >&5
27206 echo "${ECHO_T}$ac_res" >&6; }
27207 if test `eval echo '${'$as_ac_var'}'` = yes; then
27208 cat >>confdefs.h <<_ACEOF
27209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27216 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27217 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
27218 if test "${ol_cv_header_linux_threads+set}" = set; then
27219 echo $ECHO_N "(cached) $ECHO_C" >&6
27221 cat >conftest.$ac_ext <<_ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27227 #include <pthread.h>
27229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27230 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27231 ol_cv_header_linux_threads=yes
27233 ol_cv_header_linux_threads=no
27239 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27240 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27241 if test $ol_cv_header_linux_threads = yes; then
27243 cat >>confdefs.h <<\_ACEOF
27244 #define HAVE_LINUX_THREADS 1
27251 for ac_header in mach/cthreads.h
27253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27260 ac_res=`eval echo '${'$as_ac_Header'}'`
27261 { echo "$as_me:$LINENO: result: $ac_res" >&5
27262 echo "${ECHO_T}$ac_res" >&6; }
27264 # Is the header compilable?
27265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27266 echo $ECHO_N "checking $ac_header usability... $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. */
27273 $ac_includes_default
27274 #include <$ac_header>
27276 rm -f conftest.$ac_objext
27277 if { (ac_try="$ac_compile"
27278 case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_compile") 2>conftest.er1
27285 grep -v '^ *+' conftest.er1 >conftest.err
27287 cat conftest.err >&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); } && {
27290 test -z "$ac_c_werror_flag" ||
27291 test ! -s conftest.err
27292 } && test -s conftest.$ac_objext; then
27293 ac_header_compiler=yes
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ac_header_compiler=no
27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27303 echo "${ECHO_T}$ac_header_compiler" >&6; }
27305 # Is the header present?
27306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27314 #include <$ac_header>
27316 if { (ac_try="$ac_cpp conftest.$ac_ext"
27317 case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27324 grep -v '^ *+' conftest.er1 >conftest.err
27326 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } >/dev/null && {
27329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27330 test ! -s conftest.err
27332 ac_header_preproc=yes
27334 echo "$as_me: failed program was:" >&5
27335 sed 's/^/| /' conftest.$ac_ext >&5
27337 ac_header_preproc=no
27340 rm -f conftest.err conftest.$ac_ext
27341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27342 echo "${ECHO_T}$ac_header_preproc" >&6; }
27344 # So? What about this header?
27345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27351 ac_header_preproc=yes
27354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27367 ## --------------------------------------------- ##
27368 ## Report this to <http://www.openldap.org/its/> ##
27369 ## --------------------------------------------- ##
27371 ) | sed "s/^/$as_me: WARNING: /" >&2
27374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 eval "$as_ac_Header=\$ac_header_preproc"
27381 ac_res=`eval echo '${'$as_ac_Header'}'`
27382 { echo "$as_me:$LINENO: result: $ac_res" >&5
27383 echo "${ECHO_T}$ac_res" >&6; }
27386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27387 cat >>confdefs.h <<_ACEOF
27388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27396 for ac_header in lwp/lwp.h
27398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 ac_res=`eval echo '${'$as_ac_Header'}'`
27406 { echo "$as_me:$LINENO: result: $ac_res" >&5
27407 echo "${ECHO_T}$ac_res" >&6; }
27409 # Is the header compilable?
27410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27412 cat >conftest.$ac_ext <<_ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h. */
27418 $ac_includes_default
27419 #include <$ac_header>
27421 rm -f conftest.$ac_objext
27422 if { (ac_try="$ac_compile"
27423 case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_compile") 2>conftest.er1
27430 grep -v '^ *+' conftest.er1 >conftest.err
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } && {
27435 test -z "$ac_c_werror_flag" ||
27436 test ! -s conftest.err
27437 } && test -s conftest.$ac_objext; then
27438 ac_header_compiler=yes
27440 echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 ac_header_compiler=no
27446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27448 echo "${ECHO_T}$ac_header_compiler" >&6; }
27450 # Is the header present?
27451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27453 cat >conftest.$ac_ext <<_ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h. */
27459 #include <$ac_header>
27461 if { (ac_try="$ac_cpp conftest.$ac_ext"
27462 case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } >/dev/null && {
27474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27475 test ! -s conftest.err
27477 ac_header_preproc=yes
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ac_header_preproc=no
27485 rm -f conftest.err conftest.$ac_ext
27486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27487 echo "${ECHO_T}$ac_header_preproc" >&6; }
27489 # So? What about this header?
27490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27496 ac_header_preproc=yes
27499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27512 ## --------------------------------------------- ##
27513 ## Report this to <http://www.openldap.org/its/> ##
27514 ## --------------------------------------------- ##
27516 ) | sed "s/^/$as_me: WARNING: /" >&2
27519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 eval "$as_ac_Header=\$ac_header_preproc"
27526 ac_res=`eval echo '${'$as_ac_Header'}'`
27527 { echo "$as_me:$LINENO: result: $ac_res" >&5
27528 echo "${ECHO_T}$ac_res" >&6; }
27531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27532 cat >>confdefs.h <<_ACEOF
27533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27542 for ac_header in thread.h synch.h
27544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27551 ac_res=`eval echo '${'$as_ac_Header'}'`
27552 { echo "$as_me:$LINENO: result: $ac_res" >&5
27553 echo "${ECHO_T}$ac_res" >&6; }
27555 # Is the header compilable?
27556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 $ac_includes_default
27565 #include <$ac_header>
27567 rm -f conftest.$ac_objext
27568 if { (ac_try="$ac_compile"
27569 case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_compile") 2>conftest.er1
27576 grep -v '^ *+' conftest.er1 >conftest.err
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest.$ac_objext; then
27584 ac_header_compiler=yes
27586 echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27589 ac_header_compiler=no
27592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27594 echo "${ECHO_T}$ac_header_compiler" >&6; }
27596 # Is the header present?
27597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27599 cat >conftest.$ac_ext <<_ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h. */
27605 #include <$ac_header>
27607 if { (ac_try="$ac_cpp conftest.$ac_ext"
27608 case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27615 grep -v '^ *+' conftest.er1 >conftest.err
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } >/dev/null && {
27620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27623 ac_header_preproc=yes
27625 echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27628 ac_header_preproc=no
27631 rm -f conftest.err conftest.$ac_ext
27632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27633 echo "${ECHO_T}$ac_header_preproc" >&6; }
27635 # So? What about this header?
27636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27642 ac_header_preproc=yes
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27658 ## --------------------------------------------- ##
27659 ## Report this to <http://www.openldap.org/its/> ##
27660 ## --------------------------------------------- ##
27662 ) | sed "s/^/$as_me: WARNING: /" >&2
27665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 eval "$as_ac_Header=\$ac_header_preproc"
27672 ac_res=`eval echo '${'$as_ac_Header'}'`
27673 { echo "$as_me:$LINENO: result: $ac_res" >&5
27674 echo "${ECHO_T}$ac_res" >&6; }
27677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27678 cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27688 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27689 cat >>confdefs.h <<\_ACEOF
27690 #define REENTRANT 1
27693 cat >>confdefs.h <<\_ACEOF
27694 #define _REENTRANT 1
27697 cat >>confdefs.h <<\_ACEOF
27698 #define THREAD_SAFE 1
27701 cat >>confdefs.h <<\_ACEOF
27702 #define _THREAD_SAFE 1
27705 cat >>confdefs.h <<\_ACEOF
27706 #define THREADSAFE 1
27709 cat >>confdefs.h <<\_ACEOF
27710 #define _THREADSAFE 1
27713 cat >>confdefs.h <<\_ACEOF
27714 #define _SGI_MP_SOURCE 1
27718 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27719 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27720 if test "${ol_cv_errno_thread_specific+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
27748 grep -v '^ *+' conftest.er1 >conftest.err
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } && {
27753 test -z "$ac_c_werror_flag" ||
27754 test ! -s conftest.err
27755 } && test -s conftest$ac_exeext &&
27756 $as_test_x conftest$ac_exeext; then
27757 ol_cv_errno_thread_specific=yes
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 ol_cv_errno_thread_specific=no
27765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27766 conftest$ac_exeext conftest.$ac_ext
27769 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27770 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27772 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27773 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27774 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 cat >conftest.$ac_ext <<_ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h. */
27793 rm -f conftest.$ac_objext conftest$ac_exeext
27794 if { (ac_try="$ac_link"
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_link") 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_exeext &&
27810 $as_test_x conftest$ac_exeext; then
27811 ol_cv_h_errno_thread_specific=yes
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27816 ol_cv_h_errno_thread_specific=no
27819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27820 conftest$ac_exeext conftest.$ac_ext
27823 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27824 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27826 if test $ol_cv_errno_thread_specific != yes ||
27827 test $ol_cv_h_errno_thread_specific != yes ; then
27828 LIBS="$LTHREAD_LIBS $LIBS"
27834 if test $ol_link_threads = no ; then
27835 if test $ol_with_threads = yes ; then
27836 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27837 echo "$as_me: error: no suitable thread support" >&2;}
27838 { (exit 1); exit 1; }; }
27841 if test $ol_with_threads = auto ; then
27842 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27843 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27848 cat >>confdefs.h <<\_ACEOF
27849 #define NO_THREADS 1
27858 if test $ol_link_threads != no ; then
27860 cat >>confdefs.h <<\_ACEOF
27861 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27871 gethostbyname_r gethostbyaddr_r \
27874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27878 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27888 #define $ac_func innocuous_$ac_func
27890 /* System header to define __stub macros and hopefully few prototypes,
27891 which can conflict with char $ac_func (); below.
27892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27893 <limits.h> exists even on freestanding compilers. */
27896 # include <limits.h>
27898 # include <assert.h>
27903 /* Override any GCC internal prototype to avoid an error.
27904 Use char because int might match the return type of a GCC
27905 builtin and then its argument prototype would still apply. */
27910 /* The GNU C library defines this for functions which it implements
27911 to always fail with ENOSYS. Some functions are actually named
27912 something starting with __ and the normal name is an alias. */
27913 #if defined __stub_$ac_func || defined __stub___$ac_func
27920 return $ac_func ();
27925 rm -f conftest.$ac_objext conftest$ac_exeext
27926 if { (ac_try="$ac_link"
27927 case "(($ac_try" in
27928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27929 *) ac_try_echo=$ac_try;;
27931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27932 (eval "$ac_link") 2>conftest.er1
27934 grep -v '^ *+' conftest.er1 >conftest.err
27936 cat conftest.err >&5
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); } && {
27939 test -z "$ac_c_werror_flag" ||
27940 test ! -s conftest.err
27941 } && test -s conftest$ac_exeext &&
27942 $as_test_x conftest$ac_exeext; then
27943 eval "$as_ac_var=yes"
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 eval "$as_ac_var=no"
27951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27952 conftest$ac_exeext conftest.$ac_ext
27954 ac_res=`eval echo '${'$as_ac_var'}'`
27955 { echo "$as_me:$LINENO: result: $ac_res" >&5
27956 echo "${ECHO_T}$ac_res" >&6; }
27957 if test `eval echo '${'$as_ac_var'}'` = yes; then
27958 cat >>confdefs.h <<_ACEOF
27959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27966 if test "$ac_cv_func_ctime_r" = no ; then
27967 ol_cv_func_ctime_r_nargs=0
27969 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27970 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27971 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27984 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27989 rm -f conftest.$ac_objext
27990 if { (ac_try="$ac_compile"
27991 case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_compile") 2>conftest.er1
27998 grep -v '^ *+' conftest.er1 >conftest.err
28000 cat conftest.err >&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); } && {
28003 test -z "$ac_c_werror_flag" ||
28004 test ! -s conftest.err
28005 } && test -s conftest.$ac_objext; then
28006 ol_cv_func_ctime_r_nargs3=yes
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 ol_cv_func_ctime_r_nargs3=no
28014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 cat >conftest.$ac_ext <<_ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h. */
28026 time_t ti; char *buffer; ctime_r(&ti,buffer);
28031 rm -f conftest.$ac_objext
28032 if { (ac_try="$ac_compile"
28033 case "(($ac_try" in
28034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28035 *) ac_try_echo=$ac_try;;
28037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28038 (eval "$ac_compile") 2>conftest.er1
28040 grep -v '^ *+' conftest.er1 >conftest.err
28042 cat conftest.err >&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } && {
28045 test -z "$ac_c_werror_flag" ||
28046 test ! -s conftest.err
28047 } && test -s conftest.$ac_objext; then
28048 ol_cv_func_ctime_r_nargs2=yes
28050 echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28053 ol_cv_func_ctime_r_nargs2=no
28056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28058 if test $ol_cv_func_ctime_r_nargs3 = yes &&
28059 test $ol_cv_func_ctime_r_nargs2 = no ; then
28061 ol_cv_func_ctime_r_nargs=3
28063 elif test $ol_cv_func_ctime_r_nargs3 = no &&
28064 test $ol_cv_func_ctime_r_nargs2 = yes ; then
28066 ol_cv_func_ctime_r_nargs=2
28069 ol_cv_func_ctime_r_nargs=0
28073 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28074 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
28076 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28078 cat >>confdefs.h <<_ACEOF
28079 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28086 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28087 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28088 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
28089 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 cat >conftest.$ac_ext <<_ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098 #include <sys/types.h>
28099 #include <sys/socket.h>
28100 #include <netinet/in.h>
28102 #define BUFSIZE (sizeof(struct hostent)+10)
28106 struct hostent hent; char buffer[BUFSIZE];
28107 int bufsize=BUFSIZE;int h_errno;
28108 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28109 buffer, bufsize, &h_errno);
28114 rm -f conftest.$ac_objext
28115 if { (ac_try="$ac_compile"
28116 case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_compile") 2>conftest.er1
28123 grep -v '^ *+' conftest.er1 >conftest.err
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); } && {
28128 test -z "$ac_c_werror_flag" ||
28129 test ! -s conftest.err
28130 } && test -s conftest.$ac_objext; then
28131 ol_cv_func_gethostbyname_r_nargs5=yes
28133 echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28136 ol_cv_func_gethostbyname_r_nargs5=no
28139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28141 cat >conftest.$ac_ext <<_ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28147 #include <sys/types.h>
28148 #include <sys/socket.h>
28149 #include <netinet/in.h>
28151 #define BUFSIZE (sizeof(struct hostent)+10)
28155 struct hostent hent;struct hostent *rhent;
28156 char buffer[BUFSIZE];
28157 int bufsize=BUFSIZE;int h_errno;
28158 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28164 rm -f conftest.$ac_objext
28165 if { (ac_try="$ac_compile"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_compile") 2>conftest.er1
28173 grep -v '^ *+' conftest.er1 >conftest.err
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } && {
28178 test -z "$ac_c_werror_flag" ||
28179 test ! -s conftest.err
28180 } && test -s conftest.$ac_objext; then
28181 ol_cv_func_gethostbyname_r_nargs6=yes
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 ol_cv_func_gethostbyname_r_nargs6=no
28189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28192 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28194 ol_cv_func_gethostbyname_r_nargs=5
28196 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28197 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28199 ol_cv_func_gethostbyname_r_nargs=6
28202 ol_cv_func_gethostbyname_r_nargs=0
28206 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28207 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
28208 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28210 cat >>confdefs.h <<_ACEOF
28211 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28217 ol_cv_func_gethostbyname_r_nargs=0
28220 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28221 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28222 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28223 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28226 cat >conftest.$ac_ext <<_ACEOF
28229 cat confdefs.h >>conftest.$ac_ext
28230 cat >>conftest.$ac_ext <<_ACEOF
28231 /* end confdefs.h. */
28232 #include <sys/types.h>
28233 #include <sys/socket.h>
28234 #include <netinet/in.h>
28236 #define BUFSIZE (sizeof(struct hostent)+10)
28240 struct hostent hent; char buffer[BUFSIZE];
28241 struct in_addr add;
28242 size_t alen=sizeof(struct in_addr);
28243 int bufsize=BUFSIZE;int h_errno;
28244 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28245 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28250 rm -f conftest.$ac_objext
28251 if { (ac_try="$ac_compile"
28252 case "(($ac_try" in
28253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254 *) ac_try_echo=$ac_try;;
28256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257 (eval "$ac_compile") 2>conftest.er1
28259 grep -v '^ *+' conftest.er1 >conftest.err
28261 cat conftest.err >&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } && {
28264 test -z "$ac_c_werror_flag" ||
28265 test ! -s conftest.err
28266 } && test -s conftest.$ac_objext; then
28267 ol_cv_func_gethostbyaddr_r_nargs7=yes
28269 echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28272 ol_cv_func_gethostbyaddr_r_nargs7=no
28275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28277 cat >conftest.$ac_ext <<_ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h. */
28283 #include <sys/types.h>
28284 #include <sys/socket.h>
28285 #include <netinet/in.h>
28287 #define BUFSIZE (sizeof(struct hostent)+10)
28291 struct hostent hent;
28292 struct hostent *rhent; char buffer[BUFSIZE];
28293 struct in_addr add;
28294 size_t alen=sizeof(struct in_addr);
28295 int bufsize=BUFSIZE;int h_errno;
28296 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28297 alen, AF_INET, &hent, buffer, bufsize,
28303 rm -f conftest.$ac_objext
28304 if { (ac_try="$ac_compile"
28305 case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310 (eval "$ac_compile") 2>conftest.er1
28312 grep -v '^ *+' conftest.er1 >conftest.err
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } && {
28317 test -z "$ac_c_werror_flag" ||
28318 test ! -s conftest.err
28319 } && test -s conftest.$ac_objext; then
28320 ol_cv_func_gethostbyaddr_r_nargs8=yes
28322 echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28325 ol_cv_func_gethostbyaddr_r_nargs8=no
28328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28331 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28333 ol_cv_func_gethostbyaddr_r_nargs=7
28335 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28336 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28338 ol_cv_func_gethostbyaddr_r_nargs=8
28341 ol_cv_func_gethostbyaddr_r_nargs=0
28345 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28346 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28347 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28349 cat >>confdefs.h <<_ACEOF
28350 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28356 ol_cv_func_gethostbyaddr_r_nargs=0
28361 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28362 ol_cv_berkeley_db=no
28364 for ac_header in db.h
28366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28373 ac_res=`eval echo '${'$as_ac_Header'}'`
28374 { echo "$as_me:$LINENO: result: $ac_res" >&5
28375 echo "${ECHO_T}$ac_res" >&6; }
28377 # Is the header compilable?
28378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28380 cat >conftest.$ac_ext <<_ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 $ac_includes_default
28387 #include <$ac_header>
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_compile") 2>conftest.er1
28398 grep -v '^ *+' conftest.er1 >conftest.err
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } && {
28403 test -z "$ac_c_werror_flag" ||
28404 test ! -s conftest.err
28405 } && test -s conftest.$ac_objext; then
28406 ac_header_compiler=yes
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_header_compiler=no
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28416 echo "${ECHO_T}$ac_header_compiler" >&6; }
28418 # Is the header present?
28419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28427 #include <$ac_header>
28429 if { (ac_try="$ac_cpp conftest.$ac_ext"
28430 case "(($ac_try" in
28431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432 *) ac_try_echo=$ac_try;;
28434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28437 grep -v '^ *+' conftest.er1 >conftest.err
28439 cat conftest.err >&5
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); } >/dev/null && {
28442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28443 test ! -s conftest.err
28445 ac_header_preproc=yes
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28450 ac_header_preproc=no
28453 rm -f conftest.err conftest.$ac_ext
28454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28455 echo "${ECHO_T}$ac_header_preproc" >&6; }
28457 # So? What about this header?
28458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28464 ac_header_preproc=yes
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28480 ## --------------------------------------------- ##
28481 ## Report this to <http://www.openldap.org/its/> ##
28482 ## --------------------------------------------- ##
28484 ) | sed "s/^/$as_me: WARNING: /" >&2
28487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 eval "$as_ac_Header=\$ac_header_preproc"
28494 ac_res=`eval echo '${'$as_ac_Header'}'`
28495 { echo "$as_me:$LINENO: result: $ac_res" >&5
28496 echo "${ECHO_T}$ac_res" >&6; }
28499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28500 cat >>confdefs.h <<_ACEOF
28501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28508 if test $ac_cv_header_db_h = yes; then
28509 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28510 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28511 if test "${ol_cv_bdb_major+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28515 cat >conftest.$ac_ext <<_ACEOF
28518 #ifndef DB_VERSION_MAJOR
28519 # define DB_VERSION_MAJOR 1
28521 __db_version DB_VERSION_MAJOR
28524 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28525 ol_cv_bdb_major=${3}
28528 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28529 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28530 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28531 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28532 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28533 { (exit 1); exit 1; }; } ;;
28536 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28537 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28538 if test "${ol_cv_bdb_minor+set}" = set; then
28539 echo $ECHO_N "(cached) $ECHO_C" >&6
28542 cat >conftest.$ac_ext <<_ACEOF
28545 #ifndef DB_VERSION_MINOR
28546 # define DB_VERSION_MINOR 0
28548 __db_version DB_VERSION_MINOR
28551 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28552 ol_cv_bdb_minor=${3}
28555 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28556 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28557 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28558 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28559 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28560 { (exit 1); exit 1; }; } ;;
28563 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28564 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28565 if test "${ol_cv_bdb_compat+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28569 cat >conftest.$ac_ext <<_ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28578 /* this check could be improved */
28579 #ifndef DB_VERSION_MAJOR
28580 # define DB_VERSION_MAJOR 1
28582 #ifndef DB_VERSION_MINOR
28583 # define DB_VERSION_MINOR 0
28586 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28588 /* require 4.4 or later */
28589 #if DB_VERSION_MM >= 0x0404
28590 __db_version_compat
28594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28595 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28596 ol_cv_bdb_compat=yes
28598 ol_cv_bdb_compat=no
28603 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28604 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28607 if test $ol_cv_bdb_compat != yes ; then
28608 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28609 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28610 { (exit 1); exit 1; }; }
28615 if test $ol_cv_bdb_major = 4 ; then
28616 if test $ol_cv_lib_db = no ; then
28617 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28618 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28619 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28625 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28627 cat >conftest.$ac_ext <<_ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h. */
28634 #ifdef HAVE_DB_185_H
28635 # include <db_185.h>
28640 #ifndef DB_VERSION_MAJOR
28641 # define DB_VERSION_MAJOR 1
28645 #define NULL ((void*)0)
28652 #if DB_VERSION_MAJOR > 2
28653 db_env_create( NULL, 0 );
28654 #elif DB_VERSION_MAJOR > 1
28655 db_appexit( NULL );
28657 (void) dbopen( NULL, 0, 0, 0, NULL);
28664 rm -f conftest.$ac_objext conftest$ac_exeext
28665 if { (ac_try="$ac_link"
28666 case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_link") 2>conftest.er1
28673 grep -v '^ *+' conftest.er1 >conftest.err
28675 cat conftest.err >&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); } && {
28678 test -z "$ac_c_werror_flag" ||
28679 test ! -s conftest.err
28680 } && test -s conftest$ac_exeext &&
28681 $as_test_x conftest$ac_exeext; then
28682 ol_cv_db_db_4_dot_m=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ol_cv_db_db_4_dot_m=no
28690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28691 conftest$ac_exeext conftest.$ac_ext
28696 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28697 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28699 if test $ol_cv_db_db_4_dot_m = yes ; then
28700 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28704 if test $ol_cv_lib_db = no ; then
28705 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28706 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28707 if test "${ol_cv_db_db4m+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28711 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28713 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28722 #ifdef HAVE_DB_185_H
28723 # include <db_185.h>
28728 #ifndef DB_VERSION_MAJOR
28729 # define DB_VERSION_MAJOR 1
28733 #define NULL ((void*)0)
28740 #if DB_VERSION_MAJOR > 2
28741 db_env_create( NULL, 0 );
28742 #elif DB_VERSION_MAJOR > 1
28743 db_appexit( NULL );
28745 (void) dbopen( NULL, 0, 0, 0, NULL);
28752 rm -f conftest.$ac_objext conftest$ac_exeext
28753 if { (ac_try="$ac_link"
28754 case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_link") 2>conftest.er1
28761 grep -v '^ *+' conftest.er1 >conftest.err
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } && {
28766 test -z "$ac_c_werror_flag" ||
28767 test ! -s conftest.err
28768 } && test -s conftest$ac_exeext &&
28769 $as_test_x conftest$ac_exeext; then
28772 echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28779 conftest$ac_exeext conftest.$ac_ext
28784 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28785 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28787 if test $ol_cv_db_db4m = yes ; then
28788 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28792 if test $ol_cv_lib_db = no ; then
28793 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28794 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28795 if test "${ol_cv_db_db_4m+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28799 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28803 cat >conftest.$ac_ext <<_ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28810 #ifdef HAVE_DB_185_H
28811 # include <db_185.h>
28816 #ifndef DB_VERSION_MAJOR
28817 # define DB_VERSION_MAJOR 1
28821 #define NULL ((void*)0)
28828 #if DB_VERSION_MAJOR > 2
28829 db_env_create( NULL, 0 );
28830 #elif DB_VERSION_MAJOR > 1
28831 db_appexit( NULL );
28833 (void) dbopen( NULL, 0, 0, 0, NULL);
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (ac_try="$ac_link"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_link") 2>conftest.er1
28849 grep -v '^ *+' conftest.er1 >conftest.err
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } && {
28854 test -z "$ac_c_werror_flag" ||
28855 test ! -s conftest.err
28856 } && test -s conftest$ac_exeext &&
28857 $as_test_x conftest$ac_exeext; then
28860 echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28867 conftest$ac_exeext conftest.$ac_ext
28872 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28873 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28875 if test $ol_cv_db_db_4m = yes ; then
28876 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28880 if test $ol_cv_lib_db = no ; then
28881 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28882 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28883 if test "${ol_cv_db_db_4_m+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28887 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28889 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28898 #ifdef HAVE_DB_185_H
28899 # include <db_185.h>
28904 #ifndef DB_VERSION_MAJOR
28905 # define DB_VERSION_MAJOR 1
28909 #define NULL ((void*)0)
28916 #if DB_VERSION_MAJOR > 2
28917 db_env_create( NULL, 0 );
28918 #elif DB_VERSION_MAJOR > 1
28919 db_appexit( NULL );
28921 (void) dbopen( NULL, 0, 0, 0, NULL);
28928 rm -f conftest.$ac_objext conftest$ac_exeext
28929 if { (ac_try="$ac_link"
28930 case "(($ac_try" in
28931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932 *) ac_try_echo=$ac_try;;
28934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28935 (eval "$ac_link") 2>conftest.er1
28937 grep -v '^ *+' conftest.er1 >conftest.err
28939 cat conftest.err >&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); } && {
28942 test -z "$ac_c_werror_flag" ||
28943 test ! -s conftest.err
28944 } && test -s conftest$ac_exeext &&
28945 $as_test_x conftest$ac_exeext; then
28946 ol_cv_db_db_4_m=yes
28948 echo "$as_me: failed program was:" >&5
28949 sed 's/^/| /' conftest.$ac_ext >&5
28954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28955 conftest$ac_exeext conftest.$ac_ext
28960 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28961 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28963 if test $ol_cv_db_db_4_m = yes ; then
28964 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28968 if test $ol_cv_lib_db = no ; then
28969 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28970 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28971 if test "${ol_cv_db_db_4+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28977 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28979 cat >conftest.$ac_ext <<_ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28986 #ifdef HAVE_DB_185_H
28987 # include <db_185.h>
28992 #ifndef DB_VERSION_MAJOR
28993 # define DB_VERSION_MAJOR 1
28997 #define NULL ((void*)0)
29004 #if DB_VERSION_MAJOR > 2
29005 db_env_create( NULL, 0 );
29006 #elif DB_VERSION_MAJOR > 1
29007 db_appexit( NULL );
29009 (void) dbopen( NULL, 0, 0, 0, NULL);
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (ac_try="$ac_link"
29018 case "(($ac_try" in
29019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29020 *) ac_try_echo=$ac_try;;
29022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29023 (eval "$ac_link") 2>conftest.er1
29025 grep -v '^ *+' conftest.er1 >conftest.err
29027 cat conftest.err >&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); } && {
29030 test -z "$ac_c_werror_flag" ||
29031 test ! -s conftest.err
29032 } && test -s conftest$ac_exeext &&
29033 $as_test_x conftest$ac_exeext; then
29036 echo "$as_me: failed program was:" >&5
29037 sed 's/^/| /' conftest.$ac_ext >&5
29042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29043 conftest$ac_exeext conftest.$ac_ext
29048 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29049 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29051 if test $ol_cv_db_db_4 = yes ; then
29052 ol_cv_lib_db=-ldb-4
29056 if test $ol_cv_lib_db = no ; then
29057 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29058 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29059 if test "${ol_cv_db_db4+set}" = set; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29067 cat >conftest.$ac_ext <<_ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29074 #ifdef HAVE_DB_185_H
29075 # include <db_185.h>
29080 #ifndef DB_VERSION_MAJOR
29081 # define DB_VERSION_MAJOR 1
29085 #define NULL ((void*)0)
29092 #if DB_VERSION_MAJOR > 2
29093 db_env_create( NULL, 0 );
29094 #elif DB_VERSION_MAJOR > 1
29095 db_appexit( NULL );
29097 (void) dbopen( NULL, 0, 0, 0, NULL);
29104 rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (ac_try="$ac_link"
29106 case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_link") 2>conftest.er1
29113 grep -v '^ *+' conftest.er1 >conftest.err
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } && {
29118 test -z "$ac_c_werror_flag" ||
29119 test ! -s conftest.err
29120 } && test -s conftest$ac_exeext &&
29121 $as_test_x conftest$ac_exeext; then
29124 echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29131 conftest$ac_exeext conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29137 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29139 if test $ol_cv_db_db4 = yes ; then
29144 if test $ol_cv_lib_db = no ; then
29145 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29146 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29147 if test "${ol_cv_db_db+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29153 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29155 cat >conftest.$ac_ext <<_ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h. */
29162 #ifdef HAVE_DB_185_H
29163 # include <db_185.h>
29168 #ifndef DB_VERSION_MAJOR
29169 # define DB_VERSION_MAJOR 1
29173 #define NULL ((void*)0)
29180 #if DB_VERSION_MAJOR > 2
29181 db_env_create( NULL, 0 );
29182 #elif DB_VERSION_MAJOR > 1
29183 db_appexit( NULL );
29185 (void) dbopen( NULL, 0, 0, 0, NULL);
29192 rm -f conftest.$ac_objext conftest$ac_exeext
29193 if { (ac_try="$ac_link"
29194 case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_link") 2>conftest.er1
29201 grep -v '^ *+' conftest.er1 >conftest.err
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } && {
29206 test -z "$ac_c_werror_flag" ||
29207 test ! -s conftest.err
29208 } && test -s conftest$ac_exeext &&
29209 $as_test_x conftest$ac_exeext; then
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29219 conftest$ac_exeext conftest.$ac_ext
29224 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29225 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29227 if test $ol_cv_db_db = yes ; then
29233 if test $ol_cv_lib_db = no ; then
29234 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29235 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29236 if test "${ol_cv_db_none+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29244 cat >conftest.$ac_ext <<_ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29251 #ifdef HAVE_DB_185_H
29252 # include <db_185.h>
29257 #ifndef DB_VERSION_MAJOR
29258 # define DB_VERSION_MAJOR 1
29262 #define NULL ((void*)0)
29269 #if DB_VERSION_MAJOR > 2
29270 db_env_create( NULL, 0 );
29271 #elif DB_VERSION_MAJOR > 1
29272 db_appexit( NULL );
29274 (void) dbopen( NULL, 0, 0, 0, NULL);
29281 rm -f conftest.$ac_objext conftest$ac_exeext
29282 if { (ac_try="$ac_link"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_link") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } && {
29295 test -z "$ac_c_werror_flag" ||
29296 test ! -s conftest.err
29297 } && test -s conftest$ac_exeext &&
29298 $as_test_x conftest$ac_exeext; then
29301 echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29308 conftest$ac_exeext conftest.$ac_ext
29313 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29314 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29316 if test $ol_cv_db_none = yes ; then
29322 if test "$ol_cv_lib_db" != no ; then
29323 ol_cv_berkeley_db=yes
29324 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29325 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29326 if test "${ol_cv_berkeley_db_version+set}" = set; then
29327 echo $ECHO_N "(cached) $ECHO_C" >&6
29331 LIBS="$LTHREAD_LIBS $LIBS"
29332 if test $ol_cv_lib_db != yes ; then
29333 LIBS="$ol_cv_lib_db $LIBS"
29336 if test "$cross_compiling" = yes; then
29337 ol_cv_berkeley_db_version=cross
29339 cat >conftest.$ac_ext <<_ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29346 #ifdef HAVE_DB_185_H
29351 #ifndef DB_VERSION_MAJOR
29352 # define DB_VERSION_MAJOR 1
29355 #define NULL ((void *)0)
29359 #if DB_VERSION_MAJOR > 1
29361 int major, minor, patch;
29363 version = db_version( &major, &minor, &patch );
29365 if( major != DB_VERSION_MAJOR ||
29366 minor != DB_VERSION_MINOR ||
29367 patch != DB_VERSION_PATCH )
29369 printf("Berkeley DB version mismatch\n"
29370 "\theader: %s\n\tlibrary: %s\n",
29371 DB_VERSION_STRING, version);
29379 rm -f conftest$ac_exeext
29380 if { (ac_try="$ac_link"
29381 case "(($ac_try" in
29382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383 *) ac_try_echo=$ac_try;;
29385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29386 (eval "$ac_link") 2>&5
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29390 { (case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_try") 2>&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; }; then
29399 ol_cv_berkeley_db_version=yes
29401 echo "$as_me: program exited with status $ac_status" >&5
29402 echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29405 ( exit $ac_status )
29406 ol_cv_berkeley_db_version=no
29408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29416 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29417 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29419 if test $ol_cv_berkeley_db_version = no ; then
29420 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29421 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29422 { (exit 1); exit 1; }; }
29425 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29426 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29427 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 LIBS="$LTHREAD_LIBS $LIBS"
29433 if test $ol_cv_lib_db != yes ; then
29434 LIBS="$ol_cv_lib_db $LIBS"
29437 if test "$cross_compiling" = yes; then
29438 ol_cv_berkeley_db_thread=cross
29440 cat >conftest.$ac_ext <<_ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29447 #ifdef HAVE_DB_185_H
29453 #define NULL ((void *)0)
29458 u_int32_t flags = DB_CREATE |
29464 #if DB_VERSION_MAJOR > 2
29465 DB_ENV *env = NULL;
29467 rc = db_env_create( &env, 0 );
29469 flags |= DB_INIT_MPOOL;
29470 #ifdef DB_MPOOL_PRIVATE
29471 flags |= DB_MPOOL_PRIVATE;
29475 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29479 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29480 rc = (env->open)( env, NULL, flags, 0 );
29482 rc = (env->open)( env, NULL, NULL, flags, 0 );
29486 rc = env->close( env, 0 );
29490 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29496 memset( &env, '\0', sizeof(env) );
29498 rc = db_appinit( NULL, NULL, &env, flags );
29501 db_appexit( &env );
29504 unlink("__db_mpool.share");
29505 unlink("__db_lock.share");
29511 rm -f conftest$ac_exeext
29512 if { (ac_try="$ac_link"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_link") 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29522 { (case "(($ac_try" in
29523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524 *) ac_try_echo=$ac_try;;
29526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29527 (eval "$ac_try") 2>&5
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); }; }; then
29531 ol_cv_berkeley_db_thread=yes
29533 echo "$as_me: program exited with status $ac_status" >&5
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ( exit $ac_status )
29538 ol_cv_berkeley_db_thread=no
29540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29548 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29549 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29551 if test $ol_cv_berkeley_db_thread != no ; then
29553 cat >>confdefs.h <<\_ACEOF
29554 #define HAVE_BERKELEY_DB_THREAD 1
29563 if test $ol_cv_berkeley_db = no ; then
29564 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29565 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29566 { (exit 1); exit 1; }; }
29570 cat >>confdefs.h <<\_ACEOF
29571 #define HAVE_BERKELEY_DB 1
29575 if test $ol_cv_lib_db != yes ; then
29576 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29579 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29585 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29586 BUILD_LIBS_DYNAMIC=shared
29588 cat >>confdefs.h <<\_ACEOF
29589 #define LDAP_LIBS_DYNAMIC 1
29594 BUILD_LIBS_DYNAMIC=static
29598 if test $ol_enable_wrappers != no ; then
29600 for ac_header in tcpd.h
29602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29609 ac_res=`eval echo '${'$as_ac_Header'}'`
29610 { echo "$as_me:$LINENO: result: $ac_res" >&5
29611 echo "${ECHO_T}$ac_res" >&6; }
29613 # Is the header compilable?
29614 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29616 cat >conftest.$ac_ext <<_ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h. */
29622 $ac_includes_default
29623 #include <$ac_header>
29625 rm -f conftest.$ac_objext
29626 if { (ac_try="$ac_compile"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_compile") 2>conftest.er1
29634 grep -v '^ *+' conftest.er1 >conftest.err
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } && {
29639 test -z "$ac_c_werror_flag" ||
29640 test ! -s conftest.err
29641 } && test -s conftest.$ac_objext; then
29642 ac_header_compiler=yes
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29647 ac_header_compiler=no
29650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29652 echo "${ECHO_T}$ac_header_compiler" >&6; }
29654 # Is the header present?
29655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29657 cat >conftest.$ac_ext <<_ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h. */
29663 #include <$ac_header>
29665 if { (ac_try="$ac_cpp conftest.$ac_ext"
29666 case "(($ac_try" in
29667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29668 *) ac_try_echo=$ac_try;;
29670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29673 grep -v '^ *+' conftest.er1 >conftest.err
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } >/dev/null && {
29678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29679 test ! -s conftest.err
29681 ac_header_preproc=yes
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29686 ac_header_preproc=no
29689 rm -f conftest.err conftest.$ac_ext
29690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29691 echo "${ECHO_T}$ac_header_preproc" >&6; }
29693 # So? What about this header?
29694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29700 ac_header_preproc=yes
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29716 ## --------------------------------------------- ##
29717 ## Report this to <http://www.openldap.org/its/> ##
29718 ## --------------------------------------------- ##
29720 ) | sed "s/^/$as_me: WARNING: /" >&2
29723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29728 eval "$as_ac_Header=\$ac_header_preproc"
29730 ac_res=`eval echo '${'$as_ac_Header'}'`
29731 { echo "$as_me:$LINENO: result: $ac_res" >&5
29732 echo "${ECHO_T}$ac_res" >&6; }
29735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29736 cat >>confdefs.h <<_ACEOF
29737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29740 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29741 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29743 LIBS="$LIBS -lwrap"
29744 cat >conftest.$ac_ext <<_ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29752 int allow_severity = 0;
29753 int deny_severity = 0;
29755 struct request_info *req;
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_link") 2>conftest.er1
29776 grep -v '^ *+' conftest.er1 >conftest.err
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && {
29781 test -z "$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 } && test -s conftest$ac_exeext &&
29784 $as_test_x conftest$ac_exeext; then
29785 { echo "$as_me:$LINENO: result: -lwrap" >&5
29786 echo "${ECHO_T}-lwrap" >&6; }
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29795 cat >conftest.$ac_ext <<_ACEOF
29798 cat confdefs.h >>conftest.$ac_ext
29799 cat >>conftest.$ac_ext <<_ACEOF
29800 /* end confdefs.h. */
29803 int allow_severity = 0;
29804 int deny_severity = 0;
29806 struct request_info *req;
29818 rm -f conftest.$ac_objext conftest$ac_exeext
29819 if { (ac_try="$ac_link"
29820 case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_link") 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } && {
29832 test -z "$ac_c_werror_flag" ||
29833 test ! -s conftest.err
29834 } && test -s conftest$ac_exeext &&
29835 $as_test_x conftest$ac_exeext; then
29836 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29837 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29839 LIBS="$save_LIBS -lnsl"
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29845 { echo "$as_me:$LINENO: result: no" >&5
29846 echo "${ECHO_T}no" >&6; }
29851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29852 conftest$ac_exeext conftest.$ac_ext
29855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29856 conftest$ac_exeext conftest.$ac_ext
29864 if test $have_wrappers = yes ; then
29866 cat >>confdefs.h <<\_ACEOF
29867 #define HAVE_TCPD 1
29871 elif test $ol_enable_wrappers = yes ; then
29872 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29873 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29874 { (exit 1); exit 1; }; }
29876 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29877 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29882 if test $ol_enable_syslog != no ; then
29883 { echo "$as_me:$LINENO: checking for openlog" >&5
29884 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29885 if test "${ac_cv_func_openlog+set}" = set; then
29886 echo $ECHO_N "(cached) $ECHO_C" >&6
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29894 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29896 #define openlog innocuous_openlog
29898 /* System header to define __stub macros and hopefully few prototypes,
29899 which can conflict with char openlog (); below.
29900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29901 <limits.h> exists even on freestanding compilers. */
29904 # include <limits.h>
29906 # include <assert.h>
29911 /* Override any GCC internal prototype to avoid an error.
29912 Use char because int might match the return type of a GCC
29913 builtin and then its argument prototype would still apply. */
29918 /* The GNU C library defines this for functions which it implements
29919 to always fail with ENOSYS. Some functions are actually named
29920 something starting with __ and the normal name is an alias. */
29921 #if defined __stub_openlog || defined __stub___openlog
29933 rm -f conftest.$ac_objext conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_link") 2>conftest.er1
29942 grep -v '^ *+' conftest.er1 >conftest.err
29944 cat conftest.err >&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } && {
29947 test -z "$ac_c_werror_flag" ||
29948 test ! -s conftest.err
29949 } && test -s conftest$ac_exeext &&
29950 $as_test_x conftest$ac_exeext; then
29951 ac_cv_func_openlog=yes
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_func_openlog=no
29959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29960 conftest$ac_exeext conftest.$ac_ext
29962 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29963 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29965 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29966 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29967 echo "$as_me: error: could not find syslog" >&2;}
29968 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29970 ol_enable_syslog=$ac_cv_func_openlog
29974 if test $ol_enable_sql != no ; then
29977 for ac_header in sql.h sqlext.h
29979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29984 echo $ECHO_N "(cached) $ECHO_C" >&6
29986 ac_res=`eval echo '${'$as_ac_Header'}'`
29987 { echo "$as_me:$LINENO: result: $ac_res" >&5
29988 echo "${ECHO_T}$ac_res" >&6; }
29990 # Is the header compilable?
29991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
29999 $ac_includes_default
30000 #include <$ac_header>
30002 rm -f conftest.$ac_objext
30003 if { (ac_try="$ac_compile"
30004 case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_compile") 2>conftest.er1
30011 grep -v '^ *+' conftest.er1 >conftest.err
30013 cat conftest.err >&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } && {
30016 test -z "$ac_c_werror_flag" ||
30017 test ! -s conftest.err
30018 } && test -s conftest.$ac_objext; then
30019 ac_header_compiler=yes
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30024 ac_header_compiler=no
30027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30029 echo "${ECHO_T}$ac_header_compiler" >&6; }
30031 # Is the header present?
30032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30034 cat >conftest.$ac_ext <<_ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h. */
30040 #include <$ac_header>
30042 if { (ac_try="$ac_cpp conftest.$ac_ext"
30043 case "(($ac_try" in
30044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045 *) ac_try_echo=$ac_try;;
30047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30050 grep -v '^ *+' conftest.er1 >conftest.err
30052 cat conftest.err >&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); } >/dev/null && {
30055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30056 test ! -s conftest.err
30058 ac_header_preproc=yes
30060 echo "$as_me: failed program was:" >&5
30061 sed 's/^/| /' conftest.$ac_ext >&5
30063 ac_header_preproc=no
30066 rm -f conftest.err conftest.$ac_ext
30067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30068 echo "${ECHO_T}$ac_header_preproc" >&6; }
30070 # So? What about this header?
30071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30077 ac_header_preproc=yes
30080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30093 ## --------------------------------------------- ##
30094 ## Report this to <http://www.openldap.org/its/> ##
30095 ## --------------------------------------------- ##
30097 ) | sed "s/^/$as_me: WARNING: /" >&2
30100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30103 echo $ECHO_N "(cached) $ECHO_C" >&6
30105 eval "$as_ac_Header=\$ac_header_preproc"
30107 ac_res=`eval echo '${'$as_ac_Header'}'`
30108 { echo "$as_me:$LINENO: result: $ac_res" >&5
30109 echo "${ECHO_T}$ac_res" >&6; }
30112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30113 cat >>confdefs.h <<_ACEOF
30114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30119 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30120 echo "$as_me: error: could not locate SQL headers" >&2;}
30121 { (exit 1); exit 1; }; }
30129 LIBS="$LTHREAD_LIBS"
30131 if test $ol_with_odbc = auto ; then
30132 ol_with_odbc="iodbc unixodbc odbc32"
30135 for odbc in $ol_with_odbc ; do
30136 if test $ol_link_sql = no ; then
30139 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30140 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30141 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30144 ac_check_lib_save_LIBS=$LIBS
30145 LIBS="-liodbc $LIBS"
30146 cat >conftest.$ac_ext <<_ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h. */
30153 /* Override any GCC internal prototype to avoid an error.
30154 Use char because int might match the return type of a GCC
30155 builtin and then its argument prototype would still apply. */
30159 char SQLDriverConnect ();
30163 return SQLDriverConnect ();
30168 rm -f conftest.$ac_objext conftest$ac_exeext
30169 if { (ac_try="$ac_link"
30170 case "(($ac_try" in
30171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30172 *) ac_try_echo=$ac_try;;
30174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30175 (eval "$ac_link") 2>conftest.er1
30177 grep -v '^ *+' conftest.er1 >conftest.err
30179 cat conftest.err >&5
30180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); } && {
30182 test -z "$ac_c_werror_flag" ||
30183 test ! -s conftest.err
30184 } && test -s conftest$ac_exeext &&
30185 $as_test_x conftest$ac_exeext; then
30186 ac_cv_lib_iodbc_SQLDriverConnect=yes
30188 echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30191 ac_cv_lib_iodbc_SQLDriverConnect=no
30194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30195 conftest$ac_exeext conftest.$ac_ext
30196 LIBS=$ac_check_lib_save_LIBS
30198 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30199 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30200 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30206 if test $have_iodbc = yes ; then
30207 ol_link_sql="-liodbc"
30212 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30213 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30214 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30215 echo $ECHO_N "(cached) $ECHO_C" >&6
30217 ac_check_lib_save_LIBS=$LIBS
30218 LIBS="-lodbc $LIBS"
30219 cat >conftest.$ac_ext <<_ACEOF
30222 cat confdefs.h >>conftest.$ac_ext
30223 cat >>conftest.$ac_ext <<_ACEOF
30224 /* end confdefs.h. */
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30232 char SQLDriverConnect ();
30236 return SQLDriverConnect ();
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (ac_try="$ac_link"
30243 case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_link") 2>conftest.er1
30250 grep -v '^ *+' conftest.er1 >conftest.err
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } && {
30255 test -z "$ac_c_werror_flag" ||
30256 test ! -s conftest.err
30257 } && test -s conftest$ac_exeext &&
30258 $as_test_x conftest$ac_exeext; then
30259 ac_cv_lib_odbc_SQLDriverConnect=yes
30261 echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30264 ac_cv_lib_odbc_SQLDriverConnect=no
30267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30268 conftest$ac_exeext conftest.$ac_ext
30269 LIBS=$ac_check_lib_save_LIBS
30271 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30272 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30273 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30279 if test $have_odbc = yes ; then
30280 ol_link_sql="-lodbc"
30285 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30286 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30287 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30290 ac_check_lib_save_LIBS=$LIBS
30291 LIBS="-lodbc32 $LIBS"
30292 cat >conftest.$ac_ext <<_ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h. */
30299 /* Override any GCC internal prototype to avoid an error.
30300 Use char because int might match the return type of a GCC
30301 builtin and then its argument prototype would still apply. */
30305 char SQLDriverConnect ();
30309 return SQLDriverConnect ();
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (ac_try="$ac_link"
30316 case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_link") 2>conftest.er1
30323 grep -v '^ *+' conftest.er1 >conftest.err
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } && {
30328 test -z "$ac_c_werror_flag" ||
30329 test ! -s conftest.err
30330 } && test -s conftest$ac_exeext &&
30331 $as_test_x conftest$ac_exeext; then
30332 ac_cv_lib_odbc32_SQLDriverConnect=yes
30334 echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30337 ac_cv_lib_odbc32_SQLDriverConnect=no
30340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30341 conftest$ac_exeext conftest.$ac_ext
30342 LIBS=$ac_check_lib_save_LIBS
30344 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30345 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30346 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30352 if test $have_odbc32 = yes ; then
30353 ol_link_sql="-lodbc32"
30358 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30359 echo "$as_me: error: unknown ODBC library" >&2;}
30360 { (exit 1); exit 1; }; }
30368 if test $ol_link_sql != no ; then
30369 SLAPD_SQL_LIBS="$ol_link_sql"
30371 elif test $ol_enable_sql != auto ; then
30372 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30373 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30374 { (exit 1); exit 1; }; }
30379 if test $ol_enable_ndb != no ; then
30380 # Extract the first word of "mysql_config", so it can be a program name with args.
30381 set dummy mysql_config; ac_word=$2
30382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30384 if test "${ac_cv_prog_MYSQL+set}" = set; then
30385 echo $ECHO_N "(cached) $ECHO_C" >&6
30387 if test -n "$MYSQL"; then
30388 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30391 for as_dir in $PATH
30394 test -z "$as_dir" && as_dir=.
30395 for ac_exec_ext in '' $ac_executable_extensions; do
30396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30397 ac_cv_prog_MYSQL="yes"
30398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30407 MYSQL=$ac_cv_prog_MYSQL
30408 if test -n "$MYSQL"; then
30409 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30410 echo "${ECHO_T}$MYSQL" >&6; }
30412 { echo "$as_me:$LINENO: result: no" >&5
30413 echo "${ECHO_T}no" >&6; }
30417 if test "$MYSQL" != yes ; then
30418 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30419 echo "$as_me: error: could not locate mysql_config" >&2;}
30420 { (exit 1); exit 1; }; }
30423 SQL_INC=`mysql_config --include`
30424 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30426 save_CPPFLAGS="$CPPFLAGS"
30427 CPPFLAGS="$SLAPD_NDB_INCS"
30428 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30429 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30430 cat >conftest.$ac_ext <<_ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h. */
30436 #include <NdbApi.hpp>
30438 if { (ac_try="$ac_cpp conftest.$ac_ext"
30439 case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30446 grep -v '^ *+' conftest.er1 >conftest.err
30448 cat conftest.err >&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } >/dev/null && {
30451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30452 test ! -s conftest.err
30454 { echo "$as_me:$LINENO: result: yes" >&5
30455 echo "${ECHO_T}yes" >&6; }
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30461 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30462 { (exit 1); exit 1; }; }
30466 rm -f conftest.err conftest.$ac_ext
30467 CPPFLAGS="$save_CPPFLAGS"
30469 SQL_LIB=`mysql_config --libs_r`
30470 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30472 save_LDFLAGS="$LDFLAGS"
30475 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30476 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30477 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30480 ac_check_lib_save_LIBS=$LIBS
30481 LIBS="-lndbclient -lstdc++ $LIBS"
30482 cat >conftest.$ac_ext <<_ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h. */
30489 /* Override any GCC internal prototype to avoid an error.
30490 Use char because int might match the return type of a GCC
30491 builtin and then its argument prototype would still apply. */
30499 return ndb_init ();
30504 rm -f conftest.$ac_objext conftest$ac_exeext
30505 if { (ac_try="$ac_link"
30506 case "(($ac_try" in
30507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508 *) ac_try_echo=$ac_try;;
30510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30511 (eval "$ac_link") 2>conftest.er1
30513 grep -v '^ *+' conftest.er1 >conftest.err
30515 cat conftest.err >&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); } && {
30518 test -z "$ac_c_werror_flag" ||
30519 test ! -s conftest.err
30520 } && test -s conftest$ac_exeext &&
30521 $as_test_x conftest$ac_exeext; then
30522 ac_cv_lib_ndbclient_ndb_init=yes
30524 echo "$as_me: failed program was:" >&5
30525 sed 's/^/| /' conftest.$ac_ext >&5
30527 ac_cv_lib_ndbclient_ndb_init=no
30530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30531 conftest$ac_exeext conftest.$ac_ext
30532 LIBS=$ac_check_lib_save_LIBS
30534 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30535 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30536 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30540 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30541 echo "$as_me: error: could not locate ndbclient library" >&2;}
30542 { (exit 1); exit 1; }; }
30547 LDFLAGS="$save_LDFLAGS"
30549 if test "$ol_enable_ndb" = yes ; then
30550 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30556 for ac_header in unicode/utypes.h
30558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30563 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 ac_res=`eval echo '${'$as_ac_Header'}'`
30566 { echo "$as_me:$LINENO: result: $ac_res" >&5
30567 echo "${ECHO_T}$ac_res" >&6; }
30569 # Is the header compilable?
30570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30572 cat >conftest.$ac_ext <<_ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30578 $ac_includes_default
30579 #include <$ac_header>
30581 rm -f conftest.$ac_objext
30582 if { (ac_try="$ac_compile"
30583 case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_compile") 2>conftest.er1
30590 grep -v '^ *+' conftest.er1 >conftest.err
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } && {
30595 test -z "$ac_c_werror_flag" ||
30596 test ! -s conftest.err
30597 } && test -s conftest.$ac_objext; then
30598 ac_header_compiler=yes
30600 echo "$as_me: failed program was:" >&5
30601 sed 's/^/| /' conftest.$ac_ext >&5
30603 ac_header_compiler=no
30606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30608 echo "${ECHO_T}$ac_header_compiler" >&6; }
30610 # Is the header present?
30611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30613 cat >conftest.$ac_ext <<_ACEOF
30616 cat confdefs.h >>conftest.$ac_ext
30617 cat >>conftest.$ac_ext <<_ACEOF
30618 /* end confdefs.h. */
30619 #include <$ac_header>
30621 if { (ac_try="$ac_cpp conftest.$ac_ext"
30622 case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30629 grep -v '^ *+' conftest.er1 >conftest.err
30631 cat conftest.err >&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); } >/dev/null && {
30634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30635 test ! -s conftest.err
30637 ac_header_preproc=yes
30639 echo "$as_me: failed program was:" >&5
30640 sed 's/^/| /' conftest.$ac_ext >&5
30642 ac_header_preproc=no
30645 rm -f conftest.err conftest.$ac_ext
30646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30647 echo "${ECHO_T}$ac_header_preproc" >&6; }
30649 # So? What about this header?
30650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30656 ac_header_preproc=yes
30659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30672 ## --------------------------------------------- ##
30673 ## Report this to <http://www.openldap.org/its/> ##
30674 ## --------------------------------------------- ##
30676 ) | sed "s/^/$as_me: WARNING: /" >&2
30679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30682 echo $ECHO_N "(cached) $ECHO_C" >&6
30684 eval "$as_ac_Header=\$ac_header_preproc"
30686 ac_res=`eval echo '${'$as_ac_Header'}'`
30687 { echo "$as_me:$LINENO: result: $ac_res" >&5
30688 echo "${ECHO_T}$ac_res" >&6; }
30691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30692 cat >>confdefs.h <<_ACEOF
30693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30700 if test $ac_cv_header_unicode_utypes_h = yes ; then
30701 OL_ICULIBS="-licuuc -licudata"
30703 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30704 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30705 if test "${ol_cv_lib_icu+set}" = set; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30710 LIBS="$OL_ICULIBS $LIBS"
30711 cat >conftest.$ac_ext <<_ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h. */
30718 #include <unicode/utypes.h>
30724 (void) u_errorName(0);
30730 rm -f conftest.$ac_objext conftest$ac_exeext
30731 if { (ac_try="$ac_link"
30732 case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_link") 2>conftest.er1
30739 grep -v '^ *+' conftest.er1 >conftest.err
30741 cat conftest.err >&5
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); } && {
30744 test -z "$ac_c_werror_flag" ||
30745 test ! -s conftest.err
30746 } && test -s conftest$ac_exeext &&
30747 $as_test_x conftest$ac_exeext; then
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30757 conftest$ac_exeext conftest.$ac_ext
30761 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30762 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30764 if test $ol_cv_lib_icu != no ; then
30765 ol_icu="$OL_ICULIBS"
30767 cat >>confdefs.h <<\_ACEOF
30774 if test "$ol_icu" = no ; then
30775 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30776 echo "$as_me: WARNING: ICU not available" >&2;}
30783 if test $ol_with_cyrus_sasl != no ; then
30786 for ac_header in sasl/sasl.h sasl.h
30788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30795 ac_res=`eval echo '${'$as_ac_Header'}'`
30796 { echo "$as_me:$LINENO: result: $ac_res" >&5
30797 echo "${ECHO_T}$ac_res" >&6; }
30799 # Is the header compilable?
30800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30802 cat >conftest.$ac_ext <<_ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h. */
30808 $ac_includes_default
30809 #include <$ac_header>
30811 rm -f conftest.$ac_objext
30812 if { (ac_try="$ac_compile"
30813 case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_compile") 2>conftest.er1
30820 grep -v '^ *+' conftest.er1 >conftest.err
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } && {
30825 test -z "$ac_c_werror_flag" ||
30826 test ! -s conftest.err
30827 } && test -s conftest.$ac_objext; then
30828 ac_header_compiler=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_header_compiler=no
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30838 echo "${ECHO_T}$ac_header_compiler" >&6; }
30840 # Is the header present?
30841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30843 cat >conftest.$ac_ext <<_ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h. */
30849 #include <$ac_header>
30851 if { (ac_try="$ac_cpp conftest.$ac_ext"
30852 case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30859 grep -v '^ *+' conftest.er1 >conftest.err
30861 cat conftest.err >&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } >/dev/null && {
30864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30865 test ! -s conftest.err
30867 ac_header_preproc=yes
30869 echo "$as_me: failed program was:" >&5
30870 sed 's/^/| /' conftest.$ac_ext >&5
30872 ac_header_preproc=no
30875 rm -f conftest.err conftest.$ac_ext
30876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30877 echo "${ECHO_T}$ac_header_preproc" >&6; }
30879 # So? What about this header?
30880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30886 ac_header_preproc=yes
30889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30902 ## --------------------------------------------- ##
30903 ## Report this to <http://www.openldap.org/its/> ##
30904 ## --------------------------------------------- ##
30906 ) | sed "s/^/$as_me: WARNING: /" >&2
30909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30912 echo $ECHO_N "(cached) $ECHO_C" >&6
30914 eval "$as_ac_Header=\$ac_header_preproc"
30916 ac_res=`eval echo '${'$as_ac_Header'}'`
30917 { echo "$as_me:$LINENO: result: $ac_res" >&5
30918 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30931 if test $ac_cv_header_sasl_sasl_h = yes ||
30932 test $ac_cv_header_sasl_h = yes; then
30933 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30934 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30935 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30936 echo $ECHO_N "(cached) $ECHO_C" >&6
30938 ac_check_lib_save_LIBS=$LIBS
30939 LIBS="-lsasl2 $LIBS"
30940 cat >conftest.$ac_ext <<_ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h. */
30947 /* Override any GCC internal prototype to avoid an error.
30948 Use char because int might match the return type of a GCC
30949 builtin and then its argument prototype would still apply. */
30953 char sasl_client_init ();
30957 return sasl_client_init ();
30962 rm -f conftest.$ac_objext conftest$ac_exeext
30963 if { (ac_try="$ac_link"
30964 case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_link") 2>conftest.er1
30971 grep -v '^ *+' conftest.er1 >conftest.err
30973 cat conftest.err >&5
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); } && {
30976 test -z "$ac_c_werror_flag" ||
30977 test ! -s conftest.err
30978 } && test -s conftest$ac_exeext &&
30979 $as_test_x conftest$ac_exeext; then
30980 ac_cv_lib_sasl2_sasl_client_init=yes
30982 echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30985 ac_cv_lib_sasl2_sasl_client_init=no
30988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30989 conftest$ac_exeext conftest.$ac_ext
30990 LIBS=$ac_check_lib_save_LIBS
30992 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30993 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30994 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30995 ol_link_sasl="-lsasl2"
30997 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30998 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30999 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31002 ac_check_lib_save_LIBS=$LIBS
31003 LIBS="-lsasl $LIBS"
31004 cat >conftest.$ac_ext <<_ACEOF
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h. */
31011 /* Override any GCC internal prototype to avoid an error.
31012 Use char because int might match the return type of a GCC
31013 builtin and then its argument prototype would still apply. */
31017 char sasl_client_init ();
31021 return sasl_client_init ();
31026 rm -f conftest.$ac_objext conftest$ac_exeext
31027 if { (ac_try="$ac_link"
31028 case "(($ac_try" in
31029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31030 *) ac_try_echo=$ac_try;;
31032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31033 (eval "$ac_link") 2>conftest.er1
31035 grep -v '^ *+' conftest.er1 >conftest.err
31037 cat conftest.err >&5
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); } && {
31040 test -z "$ac_c_werror_flag" ||
31041 test ! -s conftest.err
31042 } && test -s conftest$ac_exeext &&
31043 $as_test_x conftest$ac_exeext; then
31044 ac_cv_lib_sasl_sasl_client_init=yes
31046 echo "$as_me: failed program was:" >&5
31047 sed 's/^/| /' conftest.$ac_ext >&5
31049 ac_cv_lib_sasl_sasl_client_init=no
31052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31053 conftest$ac_exeext conftest.$ac_ext
31054 LIBS=$ac_check_lib_save_LIBS
31056 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31057 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31058 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31059 ol_link_sasl="-lsasl"
31066 if test $ol_link_sasl = no ; then
31067 if test $ol_with_cyrus_sasl != auto ; then
31068 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31069 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31070 { (exit 1); exit 1; }; }
31072 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31073 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31074 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31075 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31076 if test $ol_link_tls = no ; then
31077 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31078 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31082 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31083 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31084 if test "${ol_cv_sasl_compat+set}" = set; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
31088 cat >conftest.$ac_ext <<_ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h. */
31095 #ifdef HAVE_SASL_SASL_H
31096 #include <sasl/sasl.h>
31101 /* Require 2.1.15+ */
31102 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
31103 char *__sasl_compat = "2.2+ or better okay (we guess)";
31104 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
31105 && SASL_VERSION_STEP >=15
31106 char *__sasl_compat = "2.1.15+ or better okay";
31110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31111 $EGREP "__sasl_compat" >/dev/null 2>&1; then
31112 ol_cv_sasl_compat=yes
31114 ol_cv_sasl_compat=no
31119 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31120 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31122 if test $ol_cv_sasl_compat = no ; then
31124 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31125 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31126 { (exit 1); exit 1; }; }
31130 cat >>confdefs.h <<\_ACEOF
31131 #define HAVE_CYRUS_SASL 1
31134 SASL_LIBS="$ol_link_sasl"
31135 if test $ol_enable_spasswd != no ; then
31136 ol_link_spasswd=yes
31139 ac_save_LIBS="$LIBS"
31140 LIBS="$LIBS $ol_link_sasl"
31141 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31142 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31143 if test "${ac_cv_func_sasl_version+set}" = set; then
31144 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 cat >conftest.$ac_ext <<_ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h. */
31152 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31154 #define sasl_version innocuous_sasl_version
31156 /* System header to define __stub macros and hopefully few prototypes,
31157 which can conflict with char sasl_version (); below.
31158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31159 <limits.h> exists even on freestanding compilers. */
31162 # include <limits.h>
31164 # include <assert.h>
31167 #undef sasl_version
31169 /* Override any GCC internal prototype to avoid an error.
31170 Use char because int might match the return type of a GCC
31171 builtin and then its argument prototype would still apply. */
31175 char sasl_version ();
31176 /* The GNU C library defines this for functions which it implements
31177 to always fail with ENOSYS. Some functions are actually named
31178 something starting with __ and the normal name is an alias. */
31179 #if defined __stub_sasl_version || defined __stub___sasl_version
31186 return sasl_version ();
31191 rm -f conftest.$ac_objext conftest$ac_exeext
31192 if { (ac_try="$ac_link"
31193 case "(($ac_try" in
31194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195 *) ac_try_echo=$ac_try;;
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198 (eval "$ac_link") 2>conftest.er1
31200 grep -v '^ *+' conftest.er1 >conftest.err
31202 cat conftest.err >&5
31203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); } && {
31205 test -z "$ac_c_werror_flag" ||
31206 test ! -s conftest.err
31207 } && test -s conftest$ac_exeext &&
31208 $as_test_x conftest$ac_exeext; then
31209 ac_cv_func_sasl_version=yes
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31214 ac_cv_func_sasl_version=no
31217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31218 conftest$ac_exeext conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31221 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31222 if test $ac_cv_func_sasl_version = yes; then
31224 cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_SASL_VERSION 1
31230 LIBS="$ac_save_LIBS"
31236 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31237 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31238 if test $ol_link_tls = no ; then
31239 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31240 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31244 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31246 if test -r /dev/urandom ; then
31247 dev="/dev/urandom";
31248 elif test -r /idev/urandom ; then
31249 dev="/idev/urandom";
31250 elif test -r /dev/srandom ; then
31251 dev="/dev/srandom";
31252 elif test -r /dev/random ; then
31254 elif test -r /idev/random ; then
31255 dev="/idev/random";
31258 if test $dev != no ; then
31260 cat >>confdefs.h <<_ACEOF
31261 #define URANDOM_DEVICE "$dev"
31268 if test $ol_with_fetch != no ; then
31270 LIBS="-lfetch -lcom_err $LIBS"
31271 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31272 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31273 if test "${ol_cv_lib_fetch+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31277 cat >conftest.$ac_ext <<_ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31284 #ifdef HAVE_SYS_PARAM_H
31285 #include <sys/param.h>
31292 struct url *u = fetchParseURL("file:///");
31297 rm -f conftest.$ac_objext conftest$ac_exeext
31298 if { (ac_try="$ac_link"
31299 case "(($ac_try" in
31300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301 *) ac_try_echo=$ac_try;;
31303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304 (eval "$ac_link") 2>conftest.er1
31306 grep -v '^ *+' conftest.er1 >conftest.err
31308 cat conftest.err >&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } && {
31311 test -z "$ac_c_werror_flag" ||
31312 test ! -s conftest.err
31313 } && test -s conftest$ac_exeext &&
31314 $as_test_x conftest$ac_exeext; then
31315 ol_cv_lib_fetch=yes
31317 echo "$as_me: failed program was:" >&5
31318 sed 's/^/| /' conftest.$ac_ext >&5
31323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31324 conftest$ac_exeext conftest.$ac_ext
31326 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31327 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31329 if test $ol_cv_lib_fetch != no ; then
31330 ol_link_fetch="-lfetch -lcom_err"
31332 cat >>confdefs.h <<\_ACEOF
31333 #define HAVE_FETCH 1
31339 if test $ol_cv_lib_fetch != no ; then
31340 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31341 ol_link_fetch=freebsd
31343 elif test $ol_with_fetch != auto ; then
31344 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31345 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31346 { (exit 1); exit 1; }; }
31350 if test $ol_enable_crypt != no ; then
31352 LIBS="$TLS_LIBS $LIBS"
31354 { echo "$as_me:$LINENO: checking for crypt" >&5
31355 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31356 if test "${ac_cv_func_crypt+set}" = set; then
31357 echo $ECHO_N "(cached) $ECHO_C" >&6
31359 cat >conftest.$ac_ext <<_ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h. */
31365 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31367 #define crypt innocuous_crypt
31369 /* System header to define __stub macros and hopefully few prototypes,
31370 which can conflict with char crypt (); below.
31371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31372 <limits.h> exists even on freestanding compilers. */
31375 # include <limits.h>
31377 # include <assert.h>
31382 /* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31389 /* The GNU C library defines this for functions which it implements
31390 to always fail with ENOSYS. Some functions are actually named
31391 something starting with __ and the normal name is an alias. */
31392 #if defined __stub_crypt || defined __stub___crypt
31404 rm -f conftest.$ac_objext conftest$ac_exeext
31405 if { (ac_try="$ac_link"
31406 case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_link") 2>conftest.er1
31413 grep -v '^ *+' conftest.er1 >conftest.err
31415 cat conftest.err >&5
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); } && {
31418 test -z "$ac_c_werror_flag" ||
31419 test ! -s conftest.err
31420 } && test -s conftest$ac_exeext &&
31421 $as_test_x conftest$ac_exeext; then
31422 ac_cv_func_crypt=yes
31424 echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31427 ac_cv_func_crypt=no
31430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31431 conftest$ac_exeext conftest.$ac_ext
31433 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31434 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31435 if test $ac_cv_func_crypt = yes; then
31440 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31441 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31442 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31445 ac_check_lib_save_LIBS=$LIBS
31446 LIBS="-lcrypt $LIBS"
31447 cat >conftest.$ac_ext <<_ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h. */
31454 /* Override any GCC internal prototype to avoid an error.
31455 Use char because int might match the return type of a GCC
31456 builtin and then its argument prototype would still apply. */
31469 rm -f conftest.$ac_objext conftest$ac_exeext
31470 if { (ac_try="$ac_link"
31471 case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_link") 2>conftest.er1
31478 grep -v '^ *+' conftest.er1 >conftest.err
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } && {
31483 test -z "$ac_c_werror_flag" ||
31484 test ! -s conftest.err
31485 } && test -s conftest$ac_exeext &&
31486 $as_test_x conftest$ac_exeext; then
31487 ac_cv_lib_crypt_crypt=yes
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31492 ac_cv_lib_crypt_crypt=no
31495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31496 conftest$ac_exeext conftest.$ac_ext
31497 LIBS=$ac_check_lib_save_LIBS
31499 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31500 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31501 if test $ac_cv_lib_crypt_crypt = yes; then
31502 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31513 if test $have_crypt = yes ; then
31515 cat >>confdefs.h <<\_ACEOF
31516 #define HAVE_CRYPT 1
31520 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31521 echo "$as_me: WARNING: could not find crypt" >&2;}
31522 if test $ol_enable_crypt = yes ; then
31523 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31524 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31525 { (exit 1); exit 1; }; }
31528 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31529 echo "$as_me: WARNING: disabling crypt support" >&2;}
31534 if test $ol_enable_proctitle != no ; then
31535 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31536 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31537 if test "${ac_cv_func_setproctitle+set}" = set; then
31538 echo $ECHO_N "(cached) $ECHO_C" >&6
31540 cat >conftest.$ac_ext <<_ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h. */
31546 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31548 #define setproctitle innocuous_setproctitle
31550 /* System header to define __stub macros and hopefully few prototypes,
31551 which can conflict with char setproctitle (); below.
31552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31553 <limits.h> exists even on freestanding compilers. */
31556 # include <limits.h>
31558 # include <assert.h>
31561 #undef setproctitle
31563 /* Override any GCC internal prototype to avoid an error.
31564 Use char because int might match the return type of a GCC
31565 builtin and then its argument prototype would still apply. */
31569 char setproctitle ();
31570 /* The GNU C library defines this for functions which it implements
31571 to always fail with ENOSYS. Some functions are actually named
31572 something starting with __ and the normal name is an alias. */
31573 #if defined __stub_setproctitle || defined __stub___setproctitle
31580 return setproctitle ();
31585 rm -f conftest.$ac_objext conftest$ac_exeext
31586 if { (ac_try="$ac_link"
31587 case "(($ac_try" in
31588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31589 *) ac_try_echo=$ac_try;;
31591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31592 (eval "$ac_link") 2>conftest.er1
31594 grep -v '^ *+' conftest.er1 >conftest.err
31596 cat conftest.err >&5
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); } && {
31599 test -z "$ac_c_werror_flag" ||
31600 test ! -s conftest.err
31601 } && test -s conftest$ac_exeext &&
31602 $as_test_x conftest$ac_exeext; then
31603 ac_cv_func_setproctitle=yes
31605 echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31608 ac_cv_func_setproctitle=no
31611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31612 conftest$ac_exeext conftest.$ac_ext
31614 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31615 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31616 if test $ac_cv_func_setproctitle = yes; then
31617 have_setproctitle=yes
31620 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31621 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31622 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31625 ac_check_lib_save_LIBS=$LIBS
31626 LIBS="-lutil $LIBS"
31627 cat >conftest.$ac_ext <<_ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31634 /* Override any GCC internal prototype to avoid an error.
31635 Use char because int might match the return type of a GCC
31636 builtin and then its argument prototype would still apply. */
31640 char setproctitle ();
31644 return setproctitle ();
31649 rm -f conftest.$ac_objext conftest$ac_exeext
31650 if { (ac_try="$ac_link"
31651 case "(($ac_try" in
31652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653 *) ac_try_echo=$ac_try;;
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_link") 2>conftest.er1
31658 grep -v '^ *+' conftest.er1 >conftest.err
31660 cat conftest.err >&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); } && {
31663 test -z "$ac_c_werror_flag" ||
31664 test ! -s conftest.err
31665 } && test -s conftest$ac_exeext &&
31666 $as_test_x conftest$ac_exeext; then
31667 ac_cv_lib_util_setproctitle=yes
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 ac_cv_lib_util_setproctitle=no
31675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31676 conftest$ac_exeext conftest.$ac_ext
31677 LIBS=$ac_check_lib_save_LIBS
31679 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31680 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31681 if test $ac_cv_lib_util_setproctitle = yes; then
31682 have_setproctitle=yes
31683 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31685 have_setproctitle=no
31686 case " $LIBOBJS " in
31687 *" setproctitle.$ac_objext "* ) ;;
31688 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31692 LIBSRCS="$LIBSRCS setproctitle.c"
31698 if test $have_setproctitle = yes ; then
31700 cat >>confdefs.h <<\_ACEOF
31701 #define HAVE_SETPROCTITLE 1
31707 if test $ol_enable_slp != no ; then
31709 for ac_header in slp.h
31711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31716 echo $ECHO_N "(cached) $ECHO_C" >&6
31718 ac_res=`eval echo '${'$as_ac_Header'}'`
31719 { echo "$as_me:$LINENO: result: $ac_res" >&5
31720 echo "${ECHO_T}$ac_res" >&6; }
31722 # Is the header compilable?
31723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31725 cat >conftest.$ac_ext <<_ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31731 $ac_includes_default
31732 #include <$ac_header>
31734 rm -f conftest.$ac_objext
31735 if { (ac_try="$ac_compile"
31736 case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_compile") 2>conftest.er1
31743 grep -v '^ *+' conftest.er1 >conftest.err
31745 cat conftest.err >&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } && {
31748 test -z "$ac_c_werror_flag" ||
31749 test ! -s conftest.err
31750 } && test -s conftest.$ac_objext; then
31751 ac_header_compiler=yes
31753 echo "$as_me: failed program was:" >&5
31754 sed 's/^/| /' conftest.$ac_ext >&5
31756 ac_header_compiler=no
31759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31761 echo "${ECHO_T}$ac_header_compiler" >&6; }
31763 # Is the header present?
31764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31766 cat >conftest.$ac_ext <<_ACEOF
31769 cat confdefs.h >>conftest.$ac_ext
31770 cat >>conftest.$ac_ext <<_ACEOF
31771 /* end confdefs.h. */
31772 #include <$ac_header>
31774 if { (ac_try="$ac_cpp conftest.$ac_ext"
31775 case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31782 grep -v '^ *+' conftest.er1 >conftest.err
31784 cat conftest.err >&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } >/dev/null && {
31787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31788 test ! -s conftest.err
31790 ac_header_preproc=yes
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31795 ac_header_preproc=no
31798 rm -f conftest.err conftest.$ac_ext
31799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31800 echo "${ECHO_T}$ac_header_preproc" >&6; }
31802 # So? What about this header?
31803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31809 ac_header_preproc=yes
31812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31825 ## --------------------------------------------- ##
31826 ## Report this to <http://www.openldap.org/its/> ##
31827 ## --------------------------------------------- ##
31829 ) | sed "s/^/$as_me: WARNING: /" >&2
31832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 eval "$as_ac_Header=\$ac_header_preproc"
31839 ac_res=`eval echo '${'$as_ac_Header'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841 echo "${ECHO_T}$ac_res" >&6; }
31844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31845 cat >>confdefs.h <<_ACEOF
31846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31854 if test $ac_cv_header_slp_h = yes ; then
31855 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31856 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31857 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31860 ac_check_lib_save_LIBS=$LIBS
31862 cat >conftest.$ac_ext <<_ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31869 /* Override any GCC internal prototype to avoid an error.
31870 Use char because int might match the return type of a GCC
31871 builtin and then its argument prototype would still apply. */
31884 rm -f conftest.$ac_objext conftest$ac_exeext
31885 if { (ac_try="$ac_link"
31886 case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_link") 2>conftest.er1
31893 grep -v '^ *+' conftest.er1 >conftest.err
31895 cat conftest.err >&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } && {
31898 test -z "$ac_c_werror_flag" ||
31899 test ! -s conftest.err
31900 } && test -s conftest$ac_exeext &&
31901 $as_test_x conftest$ac_exeext; then
31902 ac_cv_lib_slp_SLPOpen=yes
31904 echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31907 ac_cv_lib_slp_SLPOpen=no
31910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31911 conftest$ac_exeext conftest.$ac_ext
31912 LIBS=$ac_check_lib_save_LIBS
31914 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31915 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31916 if test $ac_cv_lib_slp_SLPOpen = yes; then
31922 if test $have_slp = yes ; then
31924 cat >>confdefs.h <<\_ACEOF
31928 SLAPD_SLP_LIBS=-lslp
31931 elif test $ol_enable_slp = yes ; then
31932 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31933 echo "$as_me: error: SLP not found" >&2;}
31934 { (exit 1); exit 1; }; }
31939 { echo "$as_me:$LINENO: checking for mode_t" >&5
31940 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31941 if test "${ac_cv_type_mode_t+set}" = set; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31944 cat >conftest.$ac_ext <<_ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 $ac_includes_default
31951 typedef mode_t ac__type_new_;
31955 if ((ac__type_new_ *) 0)
31957 if (sizeof (ac__type_new_))
31963 rm -f conftest.$ac_objext
31964 if { (ac_try="$ac_compile"
31965 case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_compile") 2>conftest.er1
31972 grep -v '^ *+' conftest.er1 >conftest.err
31974 cat conftest.err >&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } && {
31977 test -z "$ac_c_werror_flag" ||
31978 test ! -s conftest.err
31979 } && test -s conftest.$ac_objext; then
31980 ac_cv_type_mode_t=yes
31982 echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31985 ac_cv_type_mode_t=no
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31990 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31991 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31992 if test $ac_cv_type_mode_t = yes; then
31996 cat >>confdefs.h <<_ACEOF
32002 { echo "$as_me:$LINENO: checking for off_t" >&5
32003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32004 if test "${ac_cv_type_off_t+set}" = set; then
32005 echo $ECHO_N "(cached) $ECHO_C" >&6
32007 cat >conftest.$ac_ext <<_ACEOF
32010 cat confdefs.h >>conftest.$ac_ext
32011 cat >>conftest.$ac_ext <<_ACEOF
32012 /* end confdefs.h. */
32013 $ac_includes_default
32014 typedef off_t ac__type_new_;
32018 if ((ac__type_new_ *) 0)
32020 if (sizeof (ac__type_new_))
32026 rm -f conftest.$ac_objext
32027 if { (ac_try="$ac_compile"
32028 case "(($ac_try" in
32029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030 *) ac_try_echo=$ac_try;;
32032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32033 (eval "$ac_compile") 2>conftest.er1
32035 grep -v '^ *+' conftest.er1 >conftest.err
32037 cat conftest.err >&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); } && {
32040 test -z "$ac_c_werror_flag" ||
32041 test ! -s conftest.err
32042 } && test -s conftest.$ac_objext; then
32043 ac_cv_type_off_t=yes
32045 echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32048 ac_cv_type_off_t=no
32051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32055 if test $ac_cv_type_off_t = yes; then
32059 cat >>confdefs.h <<_ACEOF
32065 { echo "$as_me:$LINENO: checking for pid_t" >&5
32066 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32067 if test "${ac_cv_type_pid_t+set}" = set; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
32070 cat >conftest.$ac_ext <<_ACEOF
32073 cat confdefs.h >>conftest.$ac_ext
32074 cat >>conftest.$ac_ext <<_ACEOF
32075 /* end confdefs.h. */
32076 $ac_includes_default
32077 typedef pid_t ac__type_new_;
32081 if ((ac__type_new_ *) 0)
32083 if (sizeof (ac__type_new_))
32089 rm -f conftest.$ac_objext
32090 if { (ac_try="$ac_compile"
32091 case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_compile") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest.$ac_objext; then
32106 ac_cv_type_pid_t=yes
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_cv_type_pid_t=no
32114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32116 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32117 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32118 if test $ac_cv_type_pid_t = yes; then
32122 cat >>confdefs.h <<_ACEOF
32128 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32129 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32130 if test "${ac_cv_type_ssize_t+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32139 $ac_includes_default
32140 typedef ssize_t ac__type_new_;
32144 if ((ac__type_new_ *) 0)
32146 if (sizeof (ac__type_new_))
32152 rm -f conftest.$ac_objext
32153 if { (ac_try="$ac_compile"
32154 case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_compile") 2>conftest.er1
32161 grep -v '^ *+' conftest.er1 >conftest.err
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } && {
32166 test -z "$ac_c_werror_flag" ||
32167 test ! -s conftest.err
32168 } && test -s conftest.$ac_objext; then
32169 ac_cv_type_ssize_t=yes
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_cv_type_ssize_t=no
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32179 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32180 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32181 if test $ac_cv_type_ssize_t = yes; then
32185 cat >>confdefs.h <<_ACEOF
32186 #define ssize_t signed int
32191 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32192 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32193 if test "${ac_cv_type_caddr_t+set}" = set; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 $ac_includes_default
32203 typedef caddr_t ac__type_new_;
32207 if ((ac__type_new_ *) 0)
32209 if (sizeof (ac__type_new_))
32215 rm -f conftest.$ac_objext
32216 if { (ac_try="$ac_compile"
32217 case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222 (eval "$ac_compile") 2>conftest.er1
32224 grep -v '^ *+' conftest.er1 >conftest.err
32226 cat conftest.err >&5
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); } && {
32229 test -z "$ac_c_werror_flag" ||
32230 test ! -s conftest.err
32231 } && test -s conftest.$ac_objext; then
32232 ac_cv_type_caddr_t=yes
32234 echo "$as_me: failed program was:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32237 ac_cv_type_caddr_t=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32243 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32244 if test $ac_cv_type_caddr_t = yes; then
32248 cat >>confdefs.h <<_ACEOF
32249 #define caddr_t char *
32254 { echo "$as_me:$LINENO: checking for size_t" >&5
32255 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32256 if test "${ac_cv_type_size_t+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 cat >conftest.$ac_ext <<_ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 $ac_includes_default
32266 typedef size_t ac__type_new_;
32270 if ((ac__type_new_ *) 0)
32272 if (sizeof (ac__type_new_))
32278 rm -f conftest.$ac_objext
32279 if { (ac_try="$ac_compile"
32280 case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_compile") 2>conftest.er1
32287 grep -v '^ *+' conftest.er1 >conftest.err
32289 cat conftest.err >&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } && {
32292 test -z "$ac_c_werror_flag" ||
32293 test ! -s conftest.err
32294 } && test -s conftest.$ac_objext; then
32295 ac_cv_type_size_t=yes
32297 echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32300 ac_cv_type_size_t=no
32303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32305 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32306 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32307 if test $ac_cv_type_size_t = yes; then
32311 cat >>confdefs.h <<_ACEOF
32312 #define size_t unsigned
32318 { echo "$as_me:$LINENO: checking for long long" >&5
32319 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32320 if test "${ac_cv_type_long_long+set}" = set; then
32321 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 cat >conftest.$ac_ext <<_ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h. */
32329 $ac_includes_default
32330 typedef long long ac__type_new_;
32334 if ((ac__type_new_ *) 0)
32336 if (sizeof (ac__type_new_))
32342 rm -f conftest.$ac_objext
32343 if { (ac_try="$ac_compile"
32344 case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_compile") 2>conftest.er1
32351 grep -v '^ *+' conftest.er1 >conftest.err
32353 cat conftest.err >&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } && {
32356 test -z "$ac_c_werror_flag" ||
32357 test ! -s conftest.err
32358 } && test -s conftest.$ac_objext; then
32359 ac_cv_type_long_long=yes
32361 echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32364 ac_cv_type_long_long=no
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32369 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32370 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32371 if test $ac_cv_type_long_long = yes; then
32373 cat >>confdefs.h <<_ACEOF
32374 #define HAVE_LONG_LONG 1
32380 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32381 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32382 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32383 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32391 $ac_includes_default
32392 typedef ptrdiff_t ac__type_new_;
32396 if ((ac__type_new_ *) 0)
32398 if (sizeof (ac__type_new_))
32404 rm -f conftest.$ac_objext
32405 if { (ac_try="$ac_compile"
32406 case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_compile") 2>conftest.er1
32413 grep -v '^ *+' conftest.er1 >conftest.err
32415 cat conftest.err >&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } && {
32418 test -z "$ac_c_werror_flag" ||
32419 test ! -s conftest.err
32420 } && test -s conftest.$ac_objext; then
32421 ac_cv_type_ptrdiff_t=yes
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_type_ptrdiff_t=no
32429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32431 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32432 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32433 if test $ac_cv_type_ptrdiff_t = yes; then
32435 cat >>confdefs.h <<_ACEOF
32436 #define HAVE_PTRDIFF_T 1
32444 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32445 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32446 if test "${ac_cv_type_socklen_t+set}" = set; then
32447 echo $ECHO_N "(cached) $ECHO_C" >&6
32449 cat >conftest.$ac_ext <<_ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32455 $ac_includes_default
32456 #ifdef HAVE_SYS_SOCKET_H
32457 #include <sys/socket.h>
32460 typedef socklen_t ac__type_new_;
32464 if ((ac__type_new_ *) 0)
32466 if (sizeof (ac__type_new_))
32472 rm -f conftest.$ac_objext
32473 if { (ac_try="$ac_compile"
32474 case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_compile") 2>conftest.er1
32481 grep -v '^ *+' conftest.er1 >conftest.err
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); } && {
32486 test -z "$ac_c_werror_flag" ||
32487 test ! -s conftest.err
32488 } && test -s conftest.$ac_objext; then
32489 ac_cv_type_socklen_t=yes
32491 echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32494 ac_cv_type_socklen_t=no
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32500 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32503 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32504 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32505 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32506 echo $ECHO_N "(cached) $ECHO_C" >&6
32509 set socklen_t int unsigned "unsigned long" long size_t
32510 test "$ac_cv_type_socklen_t" = yes || shift
32511 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32512 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32513 cat >conftest.$ac_ext <<_ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h. */
32519 $ac_includes_default
32520 #ifdef HAVE_SYS_SOCKET_H
32521 #include <sys/socket.h>
32523 extern int accept(int s, $addrtype *ap, $lentype *lp);
32529 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32535 rm -f conftest.$ac_objext
32536 if { (ac_try="$ac_compile"
32537 case "(($ac_try" in
32538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32539 *) ac_try_echo=$ac_try;;
32541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542 (eval "$ac_compile") 2>conftest.er1
32544 grep -v '^ *+' conftest.er1 >conftest.err
32546 cat conftest.err >&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } && {
32549 test -z "$ac_c_werror_flag" ||
32550 test ! -s conftest.err
32551 } && test -s conftest.$ac_objext; then
32552 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32554 echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32564 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32565 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32567 cat >>confdefs.h <<_ACEOF
32568 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32572 if test "$ac_cv_type_socklen_t" != yes; then
32574 cat >>confdefs.h <<_ACEOF
32575 #define socklen_t $ol_cv_type_ber_socklen_t
32581 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32582 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32583 if test "${ac_cv_type_signal+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32586 cat >conftest.$ac_ext <<_ACEOF
32589 cat confdefs.h >>conftest.$ac_ext
32590 cat >>conftest.$ac_ext <<_ACEOF
32591 /* end confdefs.h. */
32592 #include <sys/types.h>
32593 #include <signal.h>
32598 return *(signal (0, 0)) (0) == 1;
32603 rm -f conftest.$ac_objext
32604 if { (ac_try="$ac_compile"
32605 case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_compile") 2>conftest.er1
32612 grep -v '^ *+' conftest.er1 >conftest.err
32614 cat conftest.err >&5
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } && {
32617 test -z "$ac_c_werror_flag" ||
32618 test ! -s conftest.err
32619 } && test -s conftest.$ac_objext; then
32620 ac_cv_type_signal=int
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32625 ac_cv_type_signal=void
32628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32631 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32633 cat >>confdefs.h <<_ACEOF
32634 #define RETSIGTYPE $ac_cv_type_signal
32639 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32640 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32641 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32644 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32650 $ac_includes_default
32651 #include <signal.h>
32654 typedef sig_atomic_t ac__type_new_;
32658 if ((ac__type_new_ *) 0)
32660 if (sizeof (ac__type_new_))
32666 rm -f conftest.$ac_objext
32667 if { (ac_try="$ac_compile"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_compile") 2>conftest.er1
32675 grep -v '^ *+' conftest.er1 >conftest.err
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && {
32680 test -z "$ac_c_werror_flag" ||
32681 test ! -s conftest.err
32682 } && test -s conftest.$ac_objext; then
32683 ac_cv_type_sig_atomic_t=yes
32685 echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32688 ac_cv_type_sig_atomic_t=no
32691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32693 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32694 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32695 if test $ac_cv_type_sig_atomic_t = yes; then
32699 cat >>confdefs.h <<_ACEOF
32700 #define sig_atomic_t int
32706 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32707 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32708 if test "${ac_cv_type_uid_t+set}" = set; then
32709 echo $ECHO_N "(cached) $ECHO_C" >&6
32711 cat >conftest.$ac_ext <<_ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h. */
32717 #include <sys/types.h>
32720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32721 $EGREP "uid_t" >/dev/null 2>&1; then
32722 ac_cv_type_uid_t=yes
32724 ac_cv_type_uid_t=no
32729 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32730 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32731 if test $ac_cv_type_uid_t = no; then
32733 cat >>confdefs.h <<\_ACEOF
32738 cat >>confdefs.h <<\_ACEOF
32745 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32746 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32747 if test "${ac_cv_header_time+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32750 cat >conftest.$ac_ext <<_ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 #include <sys/types.h>
32757 #include <sys/time.h>
32763 if ((struct tm *) 0)
32769 rm -f conftest.$ac_objext
32770 if { (ac_try="$ac_compile"
32771 case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_compile") 2>conftest.er1
32778 grep -v '^ *+' conftest.er1 >conftest.err
32780 cat conftest.err >&5
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); } && {
32783 test -z "$ac_c_werror_flag" ||
32784 test ! -s conftest.err
32785 } && test -s conftest.$ac_objext; then
32786 ac_cv_header_time=yes
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 ac_cv_header_time=no
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32796 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32797 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32798 if test $ac_cv_header_time = yes; then
32800 cat >>confdefs.h <<\_ACEOF
32801 #define TIME_WITH_SYS_TIME 1
32806 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32807 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32808 if test "${ac_cv_struct_tm+set}" = set; then
32809 echo $ECHO_N "(cached) $ECHO_C" >&6
32811 cat >conftest.$ac_ext <<_ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 #include <sys/types.h>
32824 int *p = &tm.tm_sec;
32830 rm -f conftest.$ac_objext
32831 if { (ac_try="$ac_compile"
32832 case "(($ac_try" in
32833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834 *) ac_try_echo=$ac_try;;
32836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32837 (eval "$ac_compile") 2>conftest.er1
32839 grep -v '^ *+' conftest.er1 >conftest.err
32841 cat conftest.err >&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } && {
32844 test -z "$ac_c_werror_flag" ||
32845 test ! -s conftest.err
32846 } && test -s conftest.$ac_objext; then
32847 ac_cv_struct_tm=time.h
32849 echo "$as_me: failed program was:" >&5
32850 sed 's/^/| /' conftest.$ac_ext >&5
32852 ac_cv_struct_tm=sys/time.h
32855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32859 if test $ac_cv_struct_tm = sys/time.h; then
32861 cat >>confdefs.h <<\_ACEOF
32862 #define TM_IN_SYS_TIME 1
32867 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32868 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32869 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32870 echo $ECHO_N "(cached) $ECHO_C" >&6
32872 cat >conftest.$ac_ext <<_ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32878 $ac_includes_default
32882 static struct stat ac_aggr;
32883 if (ac_aggr.st_blksize)
32889 rm -f conftest.$ac_objext
32890 if { (ac_try="$ac_compile"
32891 case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_compile") 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } && {
32903 test -z "$ac_c_werror_flag" ||
32904 test ! -s conftest.err
32905 } && test -s conftest.$ac_objext; then
32906 ac_cv_member_struct_stat_st_blksize=yes
32908 echo "$as_me: failed program was:" >&5
32909 sed 's/^/| /' conftest.$ac_ext >&5
32911 cat >conftest.$ac_ext <<_ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h. */
32917 $ac_includes_default
32921 static struct stat ac_aggr;
32922 if (sizeof ac_aggr.st_blksize)
32928 rm -f conftest.$ac_objext
32929 if { (ac_try="$ac_compile"
32930 case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_compile") 2>conftest.er1
32937 grep -v '^ *+' conftest.er1 >conftest.err
32939 cat conftest.err >&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } && {
32942 test -z "$ac_c_werror_flag" ||
32943 test ! -s conftest.err
32944 } && test -s conftest.$ac_objext; then
32945 ac_cv_member_struct_stat_st_blksize=yes
32947 echo "$as_me: failed program was:" >&5
32948 sed 's/^/| /' conftest.$ac_ext >&5
32950 ac_cv_member_struct_stat_st_blksize=no
32953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32958 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32959 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32960 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32962 cat >>confdefs.h <<_ACEOF
32963 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32969 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32970 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32971 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32980 $ac_includes_default
32986 static struct passwd ac_aggr;
32987 if (ac_aggr.pw_gecos)
32993 rm -f conftest.$ac_objext
32994 if { (ac_try="$ac_compile"
32995 case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_compile") 2>conftest.er1
33002 grep -v '^ *+' conftest.er1 >conftest.err
33004 cat conftest.err >&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } && {
33007 test -z "$ac_c_werror_flag" ||
33008 test ! -s conftest.err
33009 } && test -s conftest.$ac_objext; then
33010 ac_cv_member_struct_passwd_pw_gecos=yes
33012 echo "$as_me: failed program was:" >&5
33013 sed 's/^/| /' conftest.$ac_ext >&5
33015 cat >conftest.$ac_ext <<_ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h. */
33021 $ac_includes_default
33027 static struct passwd ac_aggr;
33028 if (sizeof ac_aggr.pw_gecos)
33034 rm -f conftest.$ac_objext
33035 if { (ac_try="$ac_compile"
33036 case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_compile") 2>conftest.er1
33043 grep -v '^ *+' conftest.er1 >conftest.err
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } && {
33048 test -z "$ac_c_werror_flag" ||
33049 test ! -s conftest.err
33050 } && test -s conftest.$ac_objext; then
33051 ac_cv_member_struct_passwd_pw_gecos=yes
33053 echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33056 ac_cv_member_struct_passwd_pw_gecos=no
33059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33065 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33066 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33068 cat >>confdefs.h <<_ACEOF
33069 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33075 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33076 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33077 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33078 echo $ECHO_N "(cached) $ECHO_C" >&6
33080 cat >conftest.$ac_ext <<_ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h. */
33086 $ac_includes_default
33092 static struct passwd ac_aggr;
33093 if (ac_aggr.pw_passwd)
33099 rm -f conftest.$ac_objext
33100 if { (ac_try="$ac_compile"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_compile") 2>conftest.er1
33108 grep -v '^ *+' conftest.er1 >conftest.err
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } && {
33113 test -z "$ac_c_werror_flag" ||
33114 test ! -s conftest.err
33115 } && test -s conftest.$ac_objext; then
33116 ac_cv_member_struct_passwd_pw_passwd=yes
33118 echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.$ac_ext >&5
33121 cat >conftest.$ac_ext <<_ACEOF
33124 cat confdefs.h >>conftest.$ac_ext
33125 cat >>conftest.$ac_ext <<_ACEOF
33126 /* end confdefs.h. */
33127 $ac_includes_default
33133 static struct passwd ac_aggr;
33134 if (sizeof ac_aggr.pw_passwd)
33140 rm -f conftest.$ac_objext
33141 if { (ac_try="$ac_compile"
33142 case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_compile") 2>conftest.er1
33149 grep -v '^ *+' conftest.er1 >conftest.err
33151 cat conftest.err >&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } && {
33154 test -z "$ac_c_werror_flag" ||
33155 test ! -s conftest.err
33156 } && test -s conftest.$ac_objext; then
33157 ac_cv_member_struct_passwd_pw_passwd=yes
33159 echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33162 ac_cv_member_struct_passwd_pw_passwd=no
33165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33171 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33172 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33174 cat >>confdefs.h <<_ACEOF
33175 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33182 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33183 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33184 if test "${ol_cv_c_upper_lower+set}" = set; then
33185 echo $ECHO_N "(cached) $ECHO_C" >&6
33188 if test "$cross_compiling" = yes; then
33189 ol_cv_c_upper_lower=safe
33191 cat >conftest.$ac_ext <<_ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h. */
33201 if ('C' == toupper('C'))
33207 rm -f conftest$ac_exeext
33208 if { (ac_try="$ac_link"
33209 case "(($ac_try" in
33210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211 *) ac_try_echo=$ac_try;;
33213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33214 (eval "$ac_link") 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 ol_cv_c_upper_lower=no
33229 echo "$as_me: program exited with status $ac_status" >&5
33230 echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33233 ( exit $ac_status )
33234 ol_cv_c_upper_lower=yes
33236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33241 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33242 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33243 if test $ol_cv_c_upper_lower != no ; then
33245 cat >>confdefs.h <<\_ACEOF
33246 #define C_UPPER_LOWER 1
33251 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33253 if test "${ac_cv_c_const+set}" = set; then
33254 echo $ECHO_N "(cached) $ECHO_C" >&6
33256 cat >conftest.$ac_ext <<_ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h. */
33266 /* FIXME: Include the comments suggested by Paul. */
33267 #ifndef __cplusplus
33268 /* Ultrix mips cc rejects this. */
33269 typedef int charset[2];
33271 /* SunOS 4.1.1 cc rejects this. */
33272 char const *const *pcpcc;
33274 /* NEC SVR4.0.2 mips cc rejects this. */
33275 struct point {int x, y;};
33276 static struct point const zero = {0,0};
33277 /* AIX XL C 1.02.0.0 rejects this.
33278 It does not let you subtract one const X* pointer from another in
33279 an arm of an if-expression whose if-part is not a constant
33281 const char *g = "string";
33282 pcpcc = &g + (g ? g-g : 0);
33283 /* HPUX 7.0 cc rejects these. */
33285 ppc = (char**) pcpcc;
33286 pcpcc = (char const *const *) ppc;
33287 { /* SCO 3.2v4 cc rejects this. */
33289 char const *s = 0 ? (char *) 0 : (char const *) 0;
33294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33295 int x[] = {25, 17};
33296 const int *foo = &x[0];
33299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33300 typedef const int *iptr;
33304 { /* AIX XL C 1.02.0.0 rejects this saying
33305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33306 struct s { int j; const int *ap[3]; };
33307 struct s *b; b->j = 5;
33309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33310 const int foo = 10;
33311 if (!foo) return 0;
33313 return !cs[0] && !zero.x;
33320 rm -f conftest.$ac_objext
33321 if { (ac_try="$ac_compile"
33322 case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_compile") 2>conftest.er1
33329 grep -v '^ *+' conftest.er1 >conftest.err
33331 cat conftest.err >&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); } && {
33334 test -z "$ac_c_werror_flag" ||
33335 test ! -s conftest.err
33336 } && test -s conftest.$ac_objext; then
33339 echo "$as_me: failed program was:" >&5
33340 sed 's/^/| /' conftest.$ac_ext >&5
33345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33347 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33348 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33349 if test $ac_cv_c_const = no; then
33351 cat >>confdefs.h <<\_ACEOF
33357 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33358 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33359 if test "${ol_cv_c_volatile+set}" = set; then
33360 echo $ECHO_N "(cached) $ECHO_C" >&6
33362 cat >conftest.$ac_ext <<_ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33372 volatile int a; int * volatile b = x ? &y : &z;
33373 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33379 rm -f conftest.$ac_objext
33380 if { (ac_try="$ac_compile"
33381 case "(($ac_try" in
33382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383 *) ac_try_echo=$ac_try;;
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386 (eval "$ac_compile") 2>conftest.er1
33388 grep -v '^ *+' conftest.er1 >conftest.err
33390 cat conftest.err >&5
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); } && {
33393 test -z "$ac_c_werror_flag" ||
33394 test ! -s conftest.err
33395 } && test -s conftest.$ac_objext; then
33396 ol_cv_c_volatile=yes
33398 echo "$as_me: failed program was:" >&5
33399 sed 's/^/| /' conftest.$ac_ext >&5
33401 ol_cv_c_volatile=no
33404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33406 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33407 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33408 if test $ol_cv_c_volatile = yes; then
33412 cat >>confdefs.h <<\_ACEOF
33419 if test $cross_compiling = yes ; then
33420 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33421 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33423 cat >>confdefs.h <<\_ACEOF
33424 #define CROSS_COMPILING 1
33428 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33429 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33430 if test "${ac_cv_c_bigendian+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33433 # See if sys/param.h defines the BYTE_ORDER macro.
33434 cat >conftest.$ac_ext <<_ACEOF
33437 cat confdefs.h >>conftest.$ac_ext
33438 cat >>conftest.$ac_ext <<_ACEOF
33439 /* end confdefs.h. */
33440 #include <sys/types.h>
33441 #include <sys/param.h>
33446 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33447 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33448 bogus endian macros
33455 rm -f conftest.$ac_objext
33456 if { (ac_try="$ac_compile"
33457 case "(($ac_try" in
33458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459 *) ac_try_echo=$ac_try;;
33461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462 (eval "$ac_compile") 2>conftest.er1
33464 grep -v '^ *+' conftest.er1 >conftest.err
33466 cat conftest.err >&5
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); } && {
33469 test -z "$ac_c_werror_flag" ||
33470 test ! -s conftest.err
33471 } && test -s conftest.$ac_objext; then
33472 # It does; now see whether it defined to BIG_ENDIAN or not.
33473 cat >conftest.$ac_ext <<_ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479 #include <sys/types.h>
33480 #include <sys/param.h>
33485 #if BYTE_ORDER != BIG_ENDIAN
33493 rm -f conftest.$ac_objext
33494 if { (ac_try="$ac_compile"
33495 case "(($ac_try" in
33496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33497 *) ac_try_echo=$ac_try;;
33499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33500 (eval "$ac_compile") 2>conftest.er1
33502 grep -v '^ *+' conftest.er1 >conftest.err
33504 cat conftest.err >&5
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); } && {
33507 test -z "$ac_c_werror_flag" ||
33508 test ! -s conftest.err
33509 } && test -s conftest.$ac_objext; then
33510 ac_cv_c_bigendian=yes
33512 echo "$as_me: failed program was:" >&5
33513 sed 's/^/| /' conftest.$ac_ext >&5
33515 ac_cv_c_bigendian=no
33518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33520 echo "$as_me: failed program was:" >&5
33521 sed 's/^/| /' conftest.$ac_ext >&5
33523 # It does not; compile a test program.
33524 if test "$cross_compiling" = yes; then
33525 # try to guess the endianness by grepping values into an object file
33526 ac_cv_c_bigendian=unknown
33527 cat >conftest.$ac_ext <<_ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h. */
33533 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33534 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33535 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33536 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33537 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33538 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33542 _ascii (); _ebcdic ();
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551 *) ac_try_echo=$ac_try;;
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554 (eval "$ac_compile") 2>conftest.er1
33556 grep -v '^ *+' conftest.er1 >conftest.err
33558 cat conftest.err >&5
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); } && {
33561 test -z "$ac_c_werror_flag" ||
33562 test ! -s conftest.err
33563 } && test -s conftest.$ac_objext; then
33564 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33565 ac_cv_c_bigendian=yes
33567 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33568 if test "$ac_cv_c_bigendian" = unknown; then
33569 ac_cv_c_bigendian=no
33571 # finding both strings is unlikely to happen, but who knows?
33572 ac_cv_c_bigendian=unknown
33576 echo "$as_me: failed program was:" >&5
33577 sed 's/^/| /' conftest.$ac_ext >&5
33582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33584 cat >conftest.$ac_ext <<_ACEOF
33587 cat confdefs.h >>conftest.$ac_ext
33588 cat >>conftest.$ac_ext <<_ACEOF
33589 /* end confdefs.h. */
33590 $ac_includes_default
33595 /* Are we little or big endian? From Harbison&Steele. */
33599 char c[sizeof (long int)];
33602 return u.c[sizeof (long int) - 1] == 1;
33608 rm -f conftest$ac_exeext
33609 if { (ac_try="$ac_link"
33610 case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_link") 2>&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33619 { (case "(($ac_try" in
33620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621 *) ac_try_echo=$ac_try;;
33623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624 (eval "$ac_try") 2>&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 ac_cv_c_bigendian=no
33630 echo "$as_me: program exited with status $ac_status" >&5
33631 echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33634 ( exit $ac_status )
33635 ac_cv_c_bigendian=yes
33637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33645 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33646 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33647 case $ac_cv_c_bigendian in
33650 cat >>confdefs.h <<\_ACEOF
33651 #define WORDS_BIGENDIAN 1
33657 { { echo "$as_me:$LINENO: error: unknown endianness
33658 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33659 echo "$as_me: error: unknown endianness
33660 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33661 { (exit 1); exit 1; }; } ;;
33666 { echo "$as_me:$LINENO: checking for short" >&5
33667 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33668 if test "${ac_cv_type_short+set}" = set; then
33669 echo $ECHO_N "(cached) $ECHO_C" >&6
33671 cat >conftest.$ac_ext <<_ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h. */
33677 $ac_includes_default
33678 typedef short ac__type_new_;
33682 if ((ac__type_new_ *) 0)
33684 if (sizeof (ac__type_new_))
33690 rm -f conftest.$ac_objext
33691 if { (ac_try="$ac_compile"
33692 case "(($ac_try" in
33693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33694 *) ac_try_echo=$ac_try;;
33696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33697 (eval "$ac_compile") 2>conftest.er1
33699 grep -v '^ *+' conftest.er1 >conftest.err
33701 cat conftest.err >&5
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); } && {
33704 test -z "$ac_c_werror_flag" ||
33705 test ! -s conftest.err
33706 } && test -s conftest.$ac_objext; then
33707 ac_cv_type_short=yes
33709 echo "$as_me: failed program was:" >&5
33710 sed 's/^/| /' conftest.$ac_ext >&5
33712 ac_cv_type_short=no
33715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33717 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33718 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33720 # The cast to long int works around a bug in the HP C Compiler
33721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33723 # This bug is HP SR number 8606223364.
33724 { echo "$as_me:$LINENO: checking size of short" >&5
33725 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33726 if test "${ac_cv_sizeof_short+set}" = set; then
33727 echo $ECHO_N "(cached) $ECHO_C" >&6
33729 if test "$cross_compiling" = yes; then
33730 # Depending upon the size, compute the lo and hi bounds.
33731 cat >conftest.$ac_ext <<_ACEOF
33734 cat confdefs.h >>conftest.$ac_ext
33735 cat >>conftest.$ac_ext <<_ACEOF
33736 /* end confdefs.h. */
33737 $ac_includes_default
33738 typedef short ac__type_sizeof_;
33742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33749 rm -f conftest.$ac_objext
33750 if { (ac_try="$ac_compile"
33751 case "(($ac_try" in
33752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753 *) ac_try_echo=$ac_try;;
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756 (eval "$ac_compile") 2>conftest.er1
33758 grep -v '^ *+' conftest.er1 >conftest.err
33760 cat conftest.err >&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); } && {
33763 test -z "$ac_c_werror_flag" ||
33764 test ! -s conftest.err
33765 } && test -s conftest.$ac_objext; then
33768 cat >conftest.$ac_ext <<_ACEOF
33771 cat confdefs.h >>conftest.$ac_ext
33772 cat >>conftest.$ac_ext <<_ACEOF
33773 /* end confdefs.h. */
33774 $ac_includes_default
33775 typedef short ac__type_sizeof_;
33779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33786 rm -f conftest.$ac_objext
33787 if { (ac_try="$ac_compile"
33788 case "(($ac_try" in
33789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790 *) ac_try_echo=$ac_try;;
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793 (eval "$ac_compile") 2>conftest.er1
33795 grep -v '^ *+' conftest.er1 >conftest.err
33797 cat conftest.err >&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } && {
33800 test -z "$ac_c_werror_flag" ||
33801 test ! -s conftest.err
33802 } && test -s conftest.$ac_objext; then
33803 ac_hi=$ac_mid; break
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_lo=`expr $ac_mid + 1`
33809 if test $ac_lo -le $ac_mid; then
33813 ac_mid=`expr 2 '*' $ac_mid + 1`
33816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33819 echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33822 cat >conftest.$ac_ext <<_ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h. */
33828 $ac_includes_default
33829 typedef short ac__type_sizeof_;
33833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33840 rm -f conftest.$ac_objext
33841 if { (ac_try="$ac_compile"
33842 case "(($ac_try" in
33843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_compile") 2>conftest.er1
33849 grep -v '^ *+' conftest.er1 >conftest.err
33851 cat conftest.err >&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); } && {
33854 test -z "$ac_c_werror_flag" ||
33855 test ! -s conftest.err
33856 } && test -s conftest.$ac_objext; then
33859 cat >conftest.$ac_ext <<_ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h. */
33865 $ac_includes_default
33866 typedef short ac__type_sizeof_;
33870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33877 rm -f conftest.$ac_objext
33878 if { (ac_try="$ac_compile"
33879 case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_compile") 2>conftest.er1
33886 grep -v '^ *+' conftest.er1 >conftest.err
33888 cat conftest.err >&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } && {
33891 test -z "$ac_c_werror_flag" ||
33892 test ! -s conftest.err
33893 } && test -s conftest.$ac_objext; then
33894 ac_lo=$ac_mid; break
33896 echo "$as_me: failed program was:" >&5
33897 sed 's/^/| /' conftest.$ac_ext >&5
33899 ac_hi=`expr '(' $ac_mid ')' - 1`
33900 if test $ac_mid -le $ac_hi; then
33904 ac_mid=`expr 2 '*' $ac_mid`
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33910 echo "$as_me: failed program was:" >&5
33911 sed 's/^/| /' conftest.$ac_ext >&5
33916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 # Binary search between lo and hi bounds.
33921 while test "x$ac_lo" != "x$ac_hi"; do
33922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33923 cat >conftest.$ac_ext <<_ACEOF
33926 cat confdefs.h >>conftest.$ac_ext
33927 cat >>conftest.$ac_ext <<_ACEOF
33928 /* end confdefs.h. */
33929 $ac_includes_default
33930 typedef short ac__type_sizeof_;
33934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_compile") 2>conftest.er1
33950 grep -v '^ *+' conftest.er1 >conftest.err
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } && {
33955 test -z "$ac_c_werror_flag" ||
33956 test ! -s conftest.err
33957 } && test -s conftest.$ac_objext; then
33960 echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33963 ac_lo=`expr '(' $ac_mid ')' + 1`
33966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33969 ?*) ac_cv_sizeof_short=$ac_lo;;
33970 '') if test "$ac_cv_type_short" = yes; then
33971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33972 See \`config.log' for more details." >&5
33973 echo "$as_me: error: cannot compute sizeof (short)
33974 See \`config.log' for more details." >&2;}
33975 { (exit 77); exit 77; }; }
33977 ac_cv_sizeof_short=0
33981 cat >conftest.$ac_ext <<_ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h. */
33987 $ac_includes_default
33988 typedef short ac__type_sizeof_;
33989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33992 #include <stdlib.h>
33997 FILE *f = fopen ("conftest.val", "w");
34000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34002 long int i = longval ();
34003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34005 fprintf (f, "%ld\n", i);
34009 unsigned long int i = ulongval ();
34010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34012 fprintf (f, "%lu\n", i);
34014 return ferror (f) || fclose (f) != 0;
34020 rm -f conftest$ac_exeext
34021 if { (ac_try="$ac_link"
34022 case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027 (eval "$ac_link") 2>&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34031 { (case "(($ac_try" in
34032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033 *) ac_try_echo=$ac_try;;
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036 (eval "$ac_try") 2>&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; }; then
34040 ac_cv_sizeof_short=`cat conftest.val`
34042 echo "$as_me: program exited with status $ac_status" >&5
34043 echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34046 ( exit $ac_status )
34047 if test "$ac_cv_type_short" = yes; then
34048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34049 See \`config.log' for more details." >&5
34050 echo "$as_me: error: cannot compute sizeof (short)
34051 See \`config.log' for more details." >&2;}
34052 { (exit 77); exit 77; }; }
34054 ac_cv_sizeof_short=0
34057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34062 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34066 cat >>confdefs.h <<_ACEOF
34067 #define SIZEOF_SHORT $ac_cv_sizeof_short
34071 { echo "$as_me:$LINENO: checking for int" >&5
34072 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34073 if test "${ac_cv_type_int+set}" = set; then
34074 echo $ECHO_N "(cached) $ECHO_C" >&6
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34082 $ac_includes_default
34083 typedef int ac__type_new_;
34087 if ((ac__type_new_ *) 0)
34089 if (sizeof (ac__type_new_))
34095 rm -f conftest.$ac_objext
34096 if { (ac_try="$ac_compile"
34097 case "(($ac_try" in
34098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34099 *) ac_try_echo=$ac_try;;
34101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34102 (eval "$ac_compile") 2>conftest.er1
34104 grep -v '^ *+' conftest.er1 >conftest.err
34106 cat conftest.err >&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); } && {
34109 test -z "$ac_c_werror_flag" ||
34110 test ! -s conftest.err
34111 } && test -s conftest.$ac_objext; then
34114 echo "$as_me: failed program was:" >&5
34115 sed 's/^/| /' conftest.$ac_ext >&5
34120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34122 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34123 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34125 # The cast to long int works around a bug in the HP C Compiler
34126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34128 # This bug is HP SR number 8606223364.
34129 { echo "$as_me:$LINENO: checking size of int" >&5
34130 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34131 if test "${ac_cv_sizeof_int+set}" = set; then
34132 echo $ECHO_N "(cached) $ECHO_C" >&6
34134 if test "$cross_compiling" = yes; then
34135 # Depending upon the size, compute the lo and hi bounds.
34136 cat >conftest.$ac_ext <<_ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h. */
34142 $ac_includes_default
34143 typedef int ac__type_sizeof_;
34147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34154 rm -f conftest.$ac_objext
34155 if { (ac_try="$ac_compile"
34156 case "(($ac_try" in
34157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34158 *) ac_try_echo=$ac_try;;
34160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34161 (eval "$ac_compile") 2>conftest.er1
34163 grep -v '^ *+' conftest.er1 >conftest.err
34165 cat conftest.err >&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); } && {
34168 test -z "$ac_c_werror_flag" ||
34169 test ! -s conftest.err
34170 } && test -s conftest.$ac_objext; then
34173 cat >conftest.$ac_ext <<_ACEOF
34176 cat confdefs.h >>conftest.$ac_ext
34177 cat >>conftest.$ac_ext <<_ACEOF
34178 /* end confdefs.h. */
34179 $ac_includes_default
34180 typedef int ac__type_sizeof_;
34184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34191 rm -f conftest.$ac_objext
34192 if { (ac_try="$ac_compile"
34193 case "(($ac_try" in
34194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34195 *) ac_try_echo=$ac_try;;
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198 (eval "$ac_compile") 2>conftest.er1
34200 grep -v '^ *+' conftest.er1 >conftest.err
34202 cat conftest.err >&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } && {
34205 test -z "$ac_c_werror_flag" ||
34206 test ! -s conftest.err
34207 } && test -s conftest.$ac_objext; then
34208 ac_hi=$ac_mid; break
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34213 ac_lo=`expr $ac_mid + 1`
34214 if test $ac_lo -le $ac_mid; then
34218 ac_mid=`expr 2 '*' $ac_mid + 1`
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 cat >conftest.$ac_ext <<_ACEOF
34230 cat confdefs.h >>conftest.$ac_ext
34231 cat >>conftest.$ac_ext <<_ACEOF
34232 /* end confdefs.h. */
34233 $ac_includes_default
34234 typedef int ac__type_sizeof_;
34238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34245 rm -f conftest.$ac_objext
34246 if { (ac_try="$ac_compile"
34247 case "(($ac_try" in
34248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249 *) ac_try_echo=$ac_try;;
34251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34252 (eval "$ac_compile") 2>conftest.er1
34254 grep -v '^ *+' conftest.er1 >conftest.err
34256 cat conftest.err >&5
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); } && {
34259 test -z "$ac_c_werror_flag" ||
34260 test ! -s conftest.err
34261 } && test -s conftest.$ac_objext; then
34264 cat >conftest.$ac_ext <<_ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h. */
34270 $ac_includes_default
34271 typedef int ac__type_sizeof_;
34275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34282 rm -f conftest.$ac_objext
34283 if { (ac_try="$ac_compile"
34284 case "(($ac_try" in
34285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286 *) ac_try_echo=$ac_try;;
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289 (eval "$ac_compile") 2>conftest.er1
34291 grep -v '^ *+' conftest.er1 >conftest.err
34293 cat conftest.err >&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } && {
34296 test -z "$ac_c_werror_flag" ||
34297 test ! -s conftest.err
34298 } && test -s conftest.$ac_objext; then
34299 ac_lo=$ac_mid; break
34301 echo "$as_me: failed program was:" >&5
34302 sed 's/^/| /' conftest.$ac_ext >&5
34304 ac_hi=`expr '(' $ac_mid ')' - 1`
34305 if test $ac_mid -le $ac_hi; then
34309 ac_mid=`expr 2 '*' $ac_mid`
34312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34315 echo "$as_me: failed program was:" >&5
34316 sed 's/^/| /' conftest.$ac_ext >&5
34321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34325 # Binary search between lo and hi bounds.
34326 while test "x$ac_lo" != "x$ac_hi"; do
34327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34328 cat >conftest.$ac_ext <<_ACEOF
34331 cat confdefs.h >>conftest.$ac_ext
34332 cat >>conftest.$ac_ext <<_ACEOF
34333 /* end confdefs.h. */
34334 $ac_includes_default
34335 typedef int ac__type_sizeof_;
34339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34346 rm -f conftest.$ac_objext
34347 if { (ac_try="$ac_compile"
34348 case "(($ac_try" in
34349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350 *) ac_try_echo=$ac_try;;
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353 (eval "$ac_compile") 2>conftest.er1
34355 grep -v '^ *+' conftest.er1 >conftest.err
34357 cat conftest.err >&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } && {
34360 test -z "$ac_c_werror_flag" ||
34361 test ! -s conftest.err
34362 } && test -s conftest.$ac_objext; then
34365 echo "$as_me: failed program was:" >&5
34366 sed 's/^/| /' conftest.$ac_ext >&5
34368 ac_lo=`expr '(' $ac_mid ')' + 1`
34371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374 ?*) ac_cv_sizeof_int=$ac_lo;;
34375 '') if test "$ac_cv_type_int" = yes; then
34376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34377 See \`config.log' for more details." >&5
34378 echo "$as_me: error: cannot compute sizeof (int)
34379 See \`config.log' for more details." >&2;}
34380 { (exit 77); exit 77; }; }
34386 cat >conftest.$ac_ext <<_ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h. */
34392 $ac_includes_default
34393 typedef int ac__type_sizeof_;
34394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34397 #include <stdlib.h>
34402 FILE *f = fopen ("conftest.val", "w");
34405 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34407 long int i = longval ();
34408 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34410 fprintf (f, "%ld\n", i);
34414 unsigned long int i = ulongval ();
34415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34417 fprintf (f, "%lu\n", i);
34419 return ferror (f) || fclose (f) != 0;
34425 rm -f conftest$ac_exeext
34426 if { (ac_try="$ac_link"
34427 case "(($ac_try" in
34428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429 *) ac_try_echo=$ac_try;;
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432 (eval "$ac_link") 2>&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34436 { (case "(($ac_try" in
34437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34438 *) ac_try_echo=$ac_try;;
34440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34441 (eval "$ac_try") 2>&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; }; then
34445 ac_cv_sizeof_int=`cat conftest.val`
34447 echo "$as_me: program exited with status $ac_status" >&5
34448 echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34451 ( exit $ac_status )
34452 if test "$ac_cv_type_int" = yes; then
34453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34454 See \`config.log' for more details." >&5
34455 echo "$as_me: error: cannot compute sizeof (int)
34456 See \`config.log' for more details." >&2;}
34457 { (exit 77); exit 77; }; }
34462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34471 cat >>confdefs.h <<_ACEOF
34472 #define SIZEOF_INT $ac_cv_sizeof_int
34476 { echo "$as_me:$LINENO: checking for long" >&5
34477 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34478 if test "${ac_cv_type_long+set}" = set; then
34479 echo $ECHO_N "(cached) $ECHO_C" >&6
34481 cat >conftest.$ac_ext <<_ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h. */
34487 $ac_includes_default
34488 typedef long ac__type_new_;
34492 if ((ac__type_new_ *) 0)
34494 if (sizeof (ac__type_new_))
34500 rm -f conftest.$ac_objext
34501 if { (ac_try="$ac_compile"
34502 case "(($ac_try" in
34503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34504 *) ac_try_echo=$ac_try;;
34506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34507 (eval "$ac_compile") 2>conftest.er1
34509 grep -v '^ *+' conftest.er1 >conftest.err
34511 cat conftest.err >&5
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); } && {
34514 test -z "$ac_c_werror_flag" ||
34515 test ! -s conftest.err
34516 } && test -s conftest.$ac_objext; then
34517 ac_cv_type_long=yes
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34530 # The cast to long int works around a bug in the HP C Compiler
34531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34533 # This bug is HP SR number 8606223364.
34534 { echo "$as_me:$LINENO: checking size of long" >&5
34535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34536 if test "${ac_cv_sizeof_long+set}" = set; then
34537 echo $ECHO_N "(cached) $ECHO_C" >&6
34539 if test "$cross_compiling" = yes; then
34540 # Depending upon the size, compute the lo and hi bounds.
34541 cat >conftest.$ac_ext <<_ACEOF
34544 cat confdefs.h >>conftest.$ac_ext
34545 cat >>conftest.$ac_ext <<_ACEOF
34546 /* end confdefs.h. */
34547 $ac_includes_default
34548 typedef long ac__type_sizeof_;
34552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34559 rm -f conftest.$ac_objext
34560 if { (ac_try="$ac_compile"
34561 case "(($ac_try" in
34562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34563 *) ac_try_echo=$ac_try;;
34565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34566 (eval "$ac_compile") 2>conftest.er1
34568 grep -v '^ *+' conftest.er1 >conftest.err
34570 cat conftest.err >&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); } && {
34573 test -z "$ac_c_werror_flag" ||
34574 test ! -s conftest.err
34575 } && test -s conftest.$ac_objext; then
34578 cat >conftest.$ac_ext <<_ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h. */
34584 $ac_includes_default
34585 typedef long ac__type_sizeof_;
34589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34596 rm -f conftest.$ac_objext
34597 if { (ac_try="$ac_compile"
34598 case "(($ac_try" in
34599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600 *) ac_try_echo=$ac_try;;
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603 (eval "$ac_compile") 2>conftest.er1
34605 grep -v '^ *+' conftest.er1 >conftest.err
34607 cat conftest.err >&5
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } && {
34610 test -z "$ac_c_werror_flag" ||
34611 test ! -s conftest.err
34612 } && test -s conftest.$ac_objext; then
34613 ac_hi=$ac_mid; break
34615 echo "$as_me: failed program was:" >&5
34616 sed 's/^/| /' conftest.$ac_ext >&5
34618 ac_lo=`expr $ac_mid + 1`
34619 if test $ac_lo -le $ac_mid; then
34623 ac_mid=`expr 2 '*' $ac_mid + 1`
34626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34629 echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34632 cat >conftest.$ac_ext <<_ACEOF
34635 cat confdefs.h >>conftest.$ac_ext
34636 cat >>conftest.$ac_ext <<_ACEOF
34637 /* end confdefs.h. */
34638 $ac_includes_default
34639 typedef long ac__type_sizeof_;
34643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34650 rm -f conftest.$ac_objext
34651 if { (ac_try="$ac_compile"
34652 case "(($ac_try" in
34653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654 *) ac_try_echo=$ac_try;;
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657 (eval "$ac_compile") 2>conftest.er1
34659 grep -v '^ *+' conftest.er1 >conftest.err
34661 cat conftest.err >&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } && {
34664 test -z "$ac_c_werror_flag" ||
34665 test ! -s conftest.err
34666 } && test -s conftest.$ac_objext; then
34669 cat >conftest.$ac_ext <<_ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h. */
34675 $ac_includes_default
34676 typedef long ac__type_sizeof_;
34680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34687 rm -f conftest.$ac_objext
34688 if { (ac_try="$ac_compile"
34689 case "(($ac_try" in
34690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34691 *) ac_try_echo=$ac_try;;
34693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34694 (eval "$ac_compile") 2>conftest.er1
34696 grep -v '^ *+' conftest.er1 >conftest.err
34698 cat conftest.err >&5
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); } && {
34701 test -z "$ac_c_werror_flag" ||
34702 test ! -s conftest.err
34703 } && test -s conftest.$ac_objext; then
34704 ac_lo=$ac_mid; break
34706 echo "$as_me: failed program was:" >&5
34707 sed 's/^/| /' conftest.$ac_ext >&5
34709 ac_hi=`expr '(' $ac_mid ')' - 1`
34710 if test $ac_mid -le $ac_hi; then
34714 ac_mid=`expr 2 '*' $ac_mid`
34717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34720 echo "$as_me: failed program was:" >&5
34721 sed 's/^/| /' conftest.$ac_ext >&5
34726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34730 # Binary search between lo and hi bounds.
34731 while test "x$ac_lo" != "x$ac_hi"; do
34732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34733 cat >conftest.$ac_ext <<_ACEOF
34736 cat confdefs.h >>conftest.$ac_ext
34737 cat >>conftest.$ac_ext <<_ACEOF
34738 /* end confdefs.h. */
34739 $ac_includes_default
34740 typedef long ac__type_sizeof_;
34744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34751 rm -f conftest.$ac_objext
34752 if { (ac_try="$ac_compile"
34753 case "(($ac_try" in
34754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34755 *) ac_try_echo=$ac_try;;
34757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34758 (eval "$ac_compile") 2>conftest.er1
34760 grep -v '^ *+' conftest.er1 >conftest.err
34762 cat conftest.err >&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } && {
34765 test -z "$ac_c_werror_flag" ||
34766 test ! -s conftest.err
34767 } && test -s conftest.$ac_objext; then
34770 echo "$as_me: failed program was:" >&5
34771 sed 's/^/| /' conftest.$ac_ext >&5
34773 ac_lo=`expr '(' $ac_mid ')' + 1`
34776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34779 ?*) ac_cv_sizeof_long=$ac_lo;;
34780 '') if test "$ac_cv_type_long" = yes; then
34781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34782 See \`config.log' for more details." >&5
34783 echo "$as_me: error: cannot compute sizeof (long)
34784 See \`config.log' for more details." >&2;}
34785 { (exit 77); exit 77; }; }
34787 ac_cv_sizeof_long=0
34791 cat >conftest.$ac_ext <<_ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h. */
34797 $ac_includes_default
34798 typedef long ac__type_sizeof_;
34799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34802 #include <stdlib.h>
34807 FILE *f = fopen ("conftest.val", "w");
34810 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34812 long int i = longval ();
34813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34815 fprintf (f, "%ld\n", i);
34819 unsigned long int i = ulongval ();
34820 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34822 fprintf (f, "%lu\n", i);
34824 return ferror (f) || fclose (f) != 0;
34830 rm -f conftest$ac_exeext
34831 if { (ac_try="$ac_link"
34832 case "(($ac_try" in
34833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34834 *) ac_try_echo=$ac_try;;
34836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34837 (eval "$ac_link") 2>&5
34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34841 { (case "(($ac_try" in
34842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34843 *) ac_try_echo=$ac_try;;
34845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34846 (eval "$ac_try") 2>&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; }; then
34850 ac_cv_sizeof_long=`cat conftest.val`
34852 echo "$as_me: program exited with status $ac_status" >&5
34853 echo "$as_me: failed program was:" >&5
34854 sed 's/^/| /' conftest.$ac_ext >&5
34856 ( exit $ac_status )
34857 if test "$ac_cv_type_long" = yes; then
34858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34859 See \`config.log' for more details." >&5
34860 echo "$as_me: error: cannot compute sizeof (long)
34861 See \`config.log' for more details." >&2;}
34862 { (exit 77); exit 77; }; }
34864 ac_cv_sizeof_long=0
34867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34876 cat >>confdefs.h <<_ACEOF
34877 #define SIZEOF_LONG $ac_cv_sizeof_long
34881 { echo "$as_me:$LINENO: checking for long long" >&5
34882 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34883 if test "${ac_cv_type_long_long+set}" = set; then
34884 echo $ECHO_N "(cached) $ECHO_C" >&6
34886 cat >conftest.$ac_ext <<_ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h. */
34892 $ac_includes_default
34893 typedef long long ac__type_new_;
34897 if ((ac__type_new_ *) 0)
34899 if (sizeof (ac__type_new_))
34905 rm -f conftest.$ac_objext
34906 if { (ac_try="$ac_compile"
34907 case "(($ac_try" in
34908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34909 *) ac_try_echo=$ac_try;;
34911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34912 (eval "$ac_compile") 2>conftest.er1
34914 grep -v '^ *+' conftest.er1 >conftest.err
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } && {
34919 test -z "$ac_c_werror_flag" ||
34920 test ! -s conftest.err
34921 } && test -s conftest.$ac_objext; then
34922 ac_cv_type_long_long=yes
34924 echo "$as_me: failed program was:" >&5
34925 sed 's/^/| /' conftest.$ac_ext >&5
34927 ac_cv_type_long_long=no
34930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34932 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34933 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34935 # The cast to long int works around a bug in the HP C Compiler
34936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34938 # This bug is HP SR number 8606223364.
34939 { echo "$as_me:$LINENO: checking size of long long" >&5
34940 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34941 if test "${ac_cv_sizeof_long_long+set}" = set; then
34942 echo $ECHO_N "(cached) $ECHO_C" >&6
34944 if test "$cross_compiling" = yes; then
34945 # Depending upon the size, compute the lo and hi bounds.
34946 cat >conftest.$ac_ext <<_ACEOF
34949 cat confdefs.h >>conftest.$ac_ext
34950 cat >>conftest.$ac_ext <<_ACEOF
34951 /* end confdefs.h. */
34952 $ac_includes_default
34953 typedef long long ac__type_sizeof_;
34957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34964 rm -f conftest.$ac_objext
34965 if { (ac_try="$ac_compile"
34966 case "(($ac_try" in
34967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34968 *) ac_try_echo=$ac_try;;
34970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34971 (eval "$ac_compile") 2>conftest.er1
34973 grep -v '^ *+' conftest.er1 >conftest.err
34975 cat conftest.err >&5
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } && {
34978 test -z "$ac_c_werror_flag" ||
34979 test ! -s conftest.err
34980 } && test -s conftest.$ac_objext; then
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34989 $ac_includes_default
34990 typedef long long ac__type_sizeof_;
34994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35001 rm -f conftest.$ac_objext
35002 if { (ac_try="$ac_compile"
35003 case "(($ac_try" in
35004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35005 *) ac_try_echo=$ac_try;;
35007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35008 (eval "$ac_compile") 2>conftest.er1
35010 grep -v '^ *+' conftest.er1 >conftest.err
35012 cat conftest.err >&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); } && {
35015 test -z "$ac_c_werror_flag" ||
35016 test ! -s conftest.err
35017 } && test -s conftest.$ac_objext; then
35018 ac_hi=$ac_mid; break
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35023 ac_lo=`expr $ac_mid + 1`
35024 if test $ac_lo -le $ac_mid; then
35028 ac_mid=`expr 2 '*' $ac_mid + 1`
35031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35034 echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35037 cat >conftest.$ac_ext <<_ACEOF
35040 cat confdefs.h >>conftest.$ac_ext
35041 cat >>conftest.$ac_ext <<_ACEOF
35042 /* end confdefs.h. */
35043 $ac_includes_default
35044 typedef long long ac__type_sizeof_;
35048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35055 rm -f conftest.$ac_objext
35056 if { (ac_try="$ac_compile"
35057 case "(($ac_try" in
35058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35059 *) ac_try_echo=$ac_try;;
35061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35062 (eval "$ac_compile") 2>conftest.er1
35064 grep -v '^ *+' conftest.er1 >conftest.err
35066 cat conftest.err >&5
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); } && {
35069 test -z "$ac_c_werror_flag" ||
35070 test ! -s conftest.err
35071 } && test -s conftest.$ac_objext; then
35074 cat >conftest.$ac_ext <<_ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h. */
35080 $ac_includes_default
35081 typedef long long ac__type_sizeof_;
35085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35092 rm -f conftest.$ac_objext
35093 if { (ac_try="$ac_compile"
35094 case "(($ac_try" in
35095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096 *) ac_try_echo=$ac_try;;
35098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099 (eval "$ac_compile") 2>conftest.er1
35101 grep -v '^ *+' conftest.er1 >conftest.err
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } && {
35106 test -z "$ac_c_werror_flag" ||
35107 test ! -s conftest.err
35108 } && test -s conftest.$ac_objext; then
35109 ac_lo=$ac_mid; break
35111 echo "$as_me: failed program was:" >&5
35112 sed 's/^/| /' conftest.$ac_ext >&5
35114 ac_hi=`expr '(' $ac_mid ')' - 1`
35115 if test $ac_mid -le $ac_hi; then
35119 ac_mid=`expr 2 '*' $ac_mid`
35122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35125 echo "$as_me: failed program was:" >&5
35126 sed 's/^/| /' conftest.$ac_ext >&5
35131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35135 # Binary search between lo and hi bounds.
35136 while test "x$ac_lo" != "x$ac_hi"; do
35137 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35138 cat >conftest.$ac_ext <<_ACEOF
35141 cat confdefs.h >>conftest.$ac_ext
35142 cat >>conftest.$ac_ext <<_ACEOF
35143 /* end confdefs.h. */
35144 $ac_includes_default
35145 typedef long long ac__type_sizeof_;
35149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35156 rm -f conftest.$ac_objext
35157 if { (ac_try="$ac_compile"
35158 case "(($ac_try" in
35159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160 *) ac_try_echo=$ac_try;;
35162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163 (eval "$ac_compile") 2>conftest.er1
35165 grep -v '^ *+' conftest.er1 >conftest.err
35167 cat conftest.err >&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); } && {
35170 test -z "$ac_c_werror_flag" ||
35171 test ! -s conftest.err
35172 } && test -s conftest.$ac_objext; then
35175 echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35178 ac_lo=`expr '(' $ac_mid ')' + 1`
35181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35184 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35185 '') if test "$ac_cv_type_long_long" = yes; then
35186 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35187 See \`config.log' for more details." >&5
35188 echo "$as_me: error: cannot compute sizeof (long long)
35189 See \`config.log' for more details." >&2;}
35190 { (exit 77); exit 77; }; }
35192 ac_cv_sizeof_long_long=0
35196 cat >conftest.$ac_ext <<_ACEOF
35199 cat confdefs.h >>conftest.$ac_ext
35200 cat >>conftest.$ac_ext <<_ACEOF
35201 /* end confdefs.h. */
35202 $ac_includes_default
35203 typedef long long ac__type_sizeof_;
35204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35207 #include <stdlib.h>
35212 FILE *f = fopen ("conftest.val", "w");
35215 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35217 long int i = longval ();
35218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35220 fprintf (f, "%ld\n", i);
35224 unsigned long int i = ulongval ();
35225 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35227 fprintf (f, "%lu\n", i);
35229 return ferror (f) || fclose (f) != 0;
35235 rm -f conftest$ac_exeext
35236 if { (ac_try="$ac_link"
35237 case "(($ac_try" in
35238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35239 *) ac_try_echo=$ac_try;;
35241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35242 (eval "$ac_link") 2>&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35246 { (case "(($ac_try" in
35247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35248 *) ac_try_echo=$ac_try;;
35250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35251 (eval "$ac_try") 2>&5
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; }; then
35255 ac_cv_sizeof_long_long=`cat conftest.val`
35257 echo "$as_me: program exited with status $ac_status" >&5
35258 echo "$as_me: failed program was:" >&5
35259 sed 's/^/| /' conftest.$ac_ext >&5
35261 ( exit $ac_status )
35262 if test "$ac_cv_type_long_long" = yes; then
35263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35264 See \`config.log' for more details." >&5
35265 echo "$as_me: error: cannot compute sizeof (long long)
35266 See \`config.log' for more details." >&2;}
35267 { (exit 77); exit 77; }; }
35269 ac_cv_sizeof_long_long=0
35272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35277 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35281 cat >>confdefs.h <<_ACEOF
35282 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35286 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35287 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35288 if test "${ac_cv_type_wchar_t+set}" = set; then
35289 echo $ECHO_N "(cached) $ECHO_C" >&6
35291 cat >conftest.$ac_ext <<_ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35297 $ac_includes_default
35298 typedef wchar_t ac__type_new_;
35302 if ((ac__type_new_ *) 0)
35304 if (sizeof (ac__type_new_))
35310 rm -f conftest.$ac_objext
35311 if { (ac_try="$ac_compile"
35312 case "(($ac_try" in
35313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35314 *) ac_try_echo=$ac_try;;
35316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35317 (eval "$ac_compile") 2>conftest.er1
35319 grep -v '^ *+' conftest.er1 >conftest.err
35321 cat conftest.err >&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); } && {
35324 test -z "$ac_c_werror_flag" ||
35325 test ! -s conftest.err
35326 } && test -s conftest.$ac_objext; then
35327 ac_cv_type_wchar_t=yes
35329 echo "$as_me: failed program was:" >&5
35330 sed 's/^/| /' conftest.$ac_ext >&5
35332 ac_cv_type_wchar_t=no
35335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35337 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35338 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35340 # The cast to long int works around a bug in the HP C Compiler
35341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35343 # This bug is HP SR number 8606223364.
35344 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35345 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35346 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35347 echo $ECHO_N "(cached) $ECHO_C" >&6
35349 if test "$cross_compiling" = yes; then
35350 # Depending upon the size, compute the lo and hi bounds.
35351 cat >conftest.$ac_ext <<_ACEOF
35354 cat confdefs.h >>conftest.$ac_ext
35355 cat >>conftest.$ac_ext <<_ACEOF
35356 /* end confdefs.h. */
35357 $ac_includes_default
35358 typedef wchar_t ac__type_sizeof_;
35362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35369 rm -f conftest.$ac_objext
35370 if { (ac_try="$ac_compile"
35371 case "(($ac_try" in
35372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35373 *) ac_try_echo=$ac_try;;
35375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35376 (eval "$ac_compile") 2>conftest.er1
35378 grep -v '^ *+' conftest.er1 >conftest.err
35380 cat conftest.err >&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); } && {
35383 test -z "$ac_c_werror_flag" ||
35384 test ! -s conftest.err
35385 } && test -s conftest.$ac_objext; then
35388 cat >conftest.$ac_ext <<_ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h. */
35394 $ac_includes_default
35395 typedef wchar_t ac__type_sizeof_;
35399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35406 rm -f conftest.$ac_objext
35407 if { (ac_try="$ac_compile"
35408 case "(($ac_try" in
35409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410 *) ac_try_echo=$ac_try;;
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413 (eval "$ac_compile") 2>conftest.er1
35415 grep -v '^ *+' conftest.er1 >conftest.err
35417 cat conftest.err >&5
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); } && {
35420 test -z "$ac_c_werror_flag" ||
35421 test ! -s conftest.err
35422 } && test -s conftest.$ac_objext; then
35423 ac_hi=$ac_mid; break
35425 echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35428 ac_lo=`expr $ac_mid + 1`
35429 if test $ac_lo -le $ac_mid; then
35433 ac_mid=`expr 2 '*' $ac_mid + 1`
35436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35439 echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35442 cat >conftest.$ac_ext <<_ACEOF
35445 cat confdefs.h >>conftest.$ac_ext
35446 cat >>conftest.$ac_ext <<_ACEOF
35447 /* end confdefs.h. */
35448 $ac_includes_default
35449 typedef wchar_t ac__type_sizeof_;
35453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35460 rm -f conftest.$ac_objext
35461 if { (ac_try="$ac_compile"
35462 case "(($ac_try" in
35463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464 *) ac_try_echo=$ac_try;;
35466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35467 (eval "$ac_compile") 2>conftest.er1
35469 grep -v '^ *+' conftest.er1 >conftest.err
35471 cat conftest.err >&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } && {
35474 test -z "$ac_c_werror_flag" ||
35475 test ! -s conftest.err
35476 } && test -s conftest.$ac_objext; then
35479 cat >conftest.$ac_ext <<_ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35485 $ac_includes_default
35486 typedef wchar_t ac__type_sizeof_;
35490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35497 rm -f conftest.$ac_objext
35498 if { (ac_try="$ac_compile"
35499 case "(($ac_try" in
35500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501 *) ac_try_echo=$ac_try;;
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504 (eval "$ac_compile") 2>conftest.er1
35506 grep -v '^ *+' conftest.er1 >conftest.err
35508 cat conftest.err >&5
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); } && {
35511 test -z "$ac_c_werror_flag" ||
35512 test ! -s conftest.err
35513 } && test -s conftest.$ac_objext; then
35514 ac_lo=$ac_mid; break
35516 echo "$as_me: failed program was:" >&5
35517 sed 's/^/| /' conftest.$ac_ext >&5
35519 ac_hi=`expr '(' $ac_mid ')' - 1`
35520 if test $ac_mid -le $ac_hi; then
35524 ac_mid=`expr 2 '*' $ac_mid`
35527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35530 echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540 # Binary search between lo and hi bounds.
35541 while test "x$ac_lo" != "x$ac_hi"; do
35542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35543 cat >conftest.$ac_ext <<_ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h. */
35549 $ac_includes_default
35550 typedef wchar_t ac__type_sizeof_;
35554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35561 rm -f conftest.$ac_objext
35562 if { (ac_try="$ac_compile"
35563 case "(($ac_try" in
35564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35565 *) ac_try_echo=$ac_try;;
35567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35568 (eval "$ac_compile") 2>conftest.er1
35570 grep -v '^ *+' conftest.er1 >conftest.err
35572 cat conftest.err >&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); } && {
35575 test -z "$ac_c_werror_flag" ||
35576 test ! -s conftest.err
35577 } && test -s conftest.$ac_objext; then
35580 echo "$as_me: failed program was:" >&5
35581 sed 's/^/| /' conftest.$ac_ext >&5
35583 ac_lo=`expr '(' $ac_mid ')' + 1`
35586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35589 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35590 '') if test "$ac_cv_type_wchar_t" = yes; then
35591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35592 See \`config.log' for more details." >&5
35593 echo "$as_me: error: cannot compute sizeof (wchar_t)
35594 See \`config.log' for more details." >&2;}
35595 { (exit 77); exit 77; }; }
35597 ac_cv_sizeof_wchar_t=0
35601 cat >conftest.$ac_ext <<_ACEOF
35604 cat confdefs.h >>conftest.$ac_ext
35605 cat >>conftest.$ac_ext <<_ACEOF
35606 /* end confdefs.h. */
35607 $ac_includes_default
35608 typedef wchar_t ac__type_sizeof_;
35609 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35610 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35612 #include <stdlib.h>
35617 FILE *f = fopen ("conftest.val", "w");
35620 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35622 long int i = longval ();
35623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35625 fprintf (f, "%ld\n", i);
35629 unsigned long int i = ulongval ();
35630 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35632 fprintf (f, "%lu\n", i);
35634 return ferror (f) || fclose (f) != 0;
35640 rm -f conftest$ac_exeext
35641 if { (ac_try="$ac_link"
35642 case "(($ac_try" in
35643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35644 *) ac_try_echo=$ac_try;;
35646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35647 (eval "$ac_link") 2>&5
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35651 { (case "(($ac_try" in
35652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35653 *) ac_try_echo=$ac_try;;
35655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35656 (eval "$ac_try") 2>&5
35658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); }; }; then
35660 ac_cv_sizeof_wchar_t=`cat conftest.val`
35662 echo "$as_me: program exited with status $ac_status" >&5
35663 echo "$as_me: failed program was:" >&5
35664 sed 's/^/| /' conftest.$ac_ext >&5
35666 ( exit $ac_status )
35667 if test "$ac_cv_type_wchar_t" = yes; then
35668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35669 See \`config.log' for more details." >&5
35670 echo "$as_me: error: cannot compute sizeof (wchar_t)
35671 See \`config.log' for more details." >&2;}
35672 { (exit 77); exit 77; }; }
35674 ac_cv_sizeof_wchar_t=0
35677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35681 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35682 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35686 cat >>confdefs.h <<_ACEOF
35687 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35692 if test "$ac_cv_sizeof_int" -lt 4 ; then
35693 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35694 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35697 cat >>confdefs.h <<\_ACEOF
35698 #define LBER_INT_T long
35703 cat >>confdefs.h <<\_ACEOF
35704 #define LBER_INT_T int
35710 cat >>confdefs.h <<\_ACEOF
35711 #define LBER_LEN_T long
35715 cat >>confdefs.h <<\_ACEOF
35716 #define LBER_SOCKET_T int
35720 cat >>confdefs.h <<\_ACEOF
35721 #define LBER_TAG_T long
35725 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35726 if test $ac_cv_sizeof_long_long -gt 4 ; then
35727 ol_with_mp=longlong
35729 cat >>confdefs.h <<\_ACEOF
35730 #define USE_MP_LONG_LONG 1
35733 elif test $ol_with_mp = longlong ; then
35734 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35735 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35736 { (exit 1); exit 1; }; }
35739 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35740 if test $ac_cv_sizeof_long -gt 4 ; then
35743 cat >>confdefs.h <<\_ACEOF
35744 #define USE_MP_LONG 1
35747 elif test $ol_with_mp = long ; then
35748 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35749 echo "$as_me: error: long unusable for multiple precision" >&2;}
35750 { (exit 1); exit 1; }; }
35753 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35755 for ac_header in openssl/bn.h
35757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35762 echo $ECHO_N "(cached) $ECHO_C" >&6
35764 ac_res=`eval echo '${'$as_ac_Header'}'`
35765 { echo "$as_me:$LINENO: result: $ac_res" >&5
35766 echo "${ECHO_T}$ac_res" >&6; }
35768 # Is the header compilable?
35769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35771 cat >conftest.$ac_ext <<_ACEOF
35774 cat confdefs.h >>conftest.$ac_ext
35775 cat >>conftest.$ac_ext <<_ACEOF
35776 /* end confdefs.h. */
35777 $ac_includes_default
35778 #include <$ac_header>
35780 rm -f conftest.$ac_objext
35781 if { (ac_try="$ac_compile"
35782 case "(($ac_try" in
35783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35784 *) ac_try_echo=$ac_try;;
35786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35787 (eval "$ac_compile") 2>conftest.er1
35789 grep -v '^ *+' conftest.er1 >conftest.err
35791 cat conftest.err >&5
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); } && {
35794 test -z "$ac_c_werror_flag" ||
35795 test ! -s conftest.err
35796 } && test -s conftest.$ac_objext; then
35797 ac_header_compiler=yes
35799 echo "$as_me: failed program was:" >&5
35800 sed 's/^/| /' conftest.$ac_ext >&5
35802 ac_header_compiler=no
35805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35807 echo "${ECHO_T}$ac_header_compiler" >&6; }
35809 # Is the header present?
35810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35812 cat >conftest.$ac_ext <<_ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h. */
35818 #include <$ac_header>
35820 if { (ac_try="$ac_cpp conftest.$ac_ext"
35821 case "(($ac_try" in
35822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35823 *) ac_try_echo=$ac_try;;
35825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35828 grep -v '^ *+' conftest.er1 >conftest.err
35830 cat conftest.err >&5
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); } >/dev/null && {
35833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35834 test ! -s conftest.err
35836 ac_header_preproc=yes
35838 echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35841 ac_header_preproc=no
35844 rm -f conftest.err conftest.$ac_ext
35845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35846 echo "${ECHO_T}$ac_header_preproc" >&6; }
35848 # So? What about this header?
35849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35855 ac_header_preproc=yes
35858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35871 ## --------------------------------------------- ##
35872 ## Report this to <http://www.openldap.org/its/> ##
35873 ## --------------------------------------------- ##
35875 ) | sed "s/^/$as_me: WARNING: /" >&2
35878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35883 eval "$as_ac_Header=\$ac_header_preproc"
35885 ac_res=`eval echo '${'$as_ac_Header'}'`
35886 { echo "$as_me:$LINENO: result: $ac_res" >&5
35887 echo "${ECHO_T}$ac_res" >&6; }
35890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35891 cat >>confdefs.h <<_ACEOF
35892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35900 for ac_header in openssl/crypto.h
35902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35907 echo $ECHO_N "(cached) $ECHO_C" >&6
35909 ac_res=`eval echo '${'$as_ac_Header'}'`
35910 { echo "$as_me:$LINENO: result: $ac_res" >&5
35911 echo "${ECHO_T}$ac_res" >&6; }
35913 # Is the header compilable?
35914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35916 cat >conftest.$ac_ext <<_ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35922 $ac_includes_default
35923 #include <$ac_header>
35925 rm -f conftest.$ac_objext
35926 if { (ac_try="$ac_compile"
35927 case "(($ac_try" in
35928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35929 *) ac_try_echo=$ac_try;;
35931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35932 (eval "$ac_compile") 2>conftest.er1
35934 grep -v '^ *+' conftest.er1 >conftest.err
35936 cat conftest.err >&5
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } && {
35939 test -z "$ac_c_werror_flag" ||
35940 test ! -s conftest.err
35941 } && test -s conftest.$ac_objext; then
35942 ac_header_compiler=yes
35944 echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35947 ac_header_compiler=no
35950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35952 echo "${ECHO_T}$ac_header_compiler" >&6; }
35954 # Is the header present?
35955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35957 cat >conftest.$ac_ext <<_ACEOF
35960 cat confdefs.h >>conftest.$ac_ext
35961 cat >>conftest.$ac_ext <<_ACEOF
35962 /* end confdefs.h. */
35963 #include <$ac_header>
35965 if { (ac_try="$ac_cpp conftest.$ac_ext"
35966 case "(($ac_try" in
35967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968 *) ac_try_echo=$ac_try;;
35970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35973 grep -v '^ *+' conftest.er1 >conftest.err
35975 cat conftest.err >&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } >/dev/null && {
35978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35979 test ! -s conftest.err
35981 ac_header_preproc=yes
35983 echo "$as_me: failed program was:" >&5
35984 sed 's/^/| /' conftest.$ac_ext >&5
35986 ac_header_preproc=no
35989 rm -f conftest.err conftest.$ac_ext
35990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35991 echo "${ECHO_T}$ac_header_preproc" >&6; }
35993 # So? What about this header?
35994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36000 ac_header_preproc=yes
36003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36016 ## --------------------------------------------- ##
36017 ## Report this to <http://www.openldap.org/its/> ##
36018 ## --------------------------------------------- ##
36020 ) | sed "s/^/$as_me: WARNING: /" >&2
36023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36026 echo $ECHO_N "(cached) $ECHO_C" >&6
36028 eval "$as_ac_Header=\$ac_header_preproc"
36030 ac_res=`eval echo '${'$as_ac_Header'}'`
36031 { echo "$as_me:$LINENO: result: $ac_res" >&5
36032 echo "${ECHO_T}$ac_res" >&6; }
36035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36036 cat >>confdefs.h <<_ACEOF
36037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36044 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36045 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36046 test "$ol_with_tls" = "found" ; then
36049 cat >>confdefs.h <<\_ACEOF
36050 #define USE_MP_BIGNUM 1
36053 elif test $ol_with_mp = bignum ; then
36054 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36055 echo "$as_me: error: bignum not available" >&2;}
36056 { (exit 1); exit 1; }; }
36059 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36061 for ac_header in gmp.h
36063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36068 echo $ECHO_N "(cached) $ECHO_C" >&6
36070 ac_res=`eval echo '${'$as_ac_Header'}'`
36071 { echo "$as_me:$LINENO: result: $ac_res" >&5
36072 echo "${ECHO_T}$ac_res" >&6; }
36074 # Is the header compilable?
36075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36077 cat >conftest.$ac_ext <<_ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h. */
36083 $ac_includes_default
36084 #include <$ac_header>
36086 rm -f conftest.$ac_objext
36087 if { (ac_try="$ac_compile"
36088 case "(($ac_try" in
36089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36090 *) ac_try_echo=$ac_try;;
36092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36093 (eval "$ac_compile") 2>conftest.er1
36095 grep -v '^ *+' conftest.er1 >conftest.err
36097 cat conftest.err >&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); } && {
36100 test -z "$ac_c_werror_flag" ||
36101 test ! -s conftest.err
36102 } && test -s conftest.$ac_objext; then
36103 ac_header_compiler=yes
36105 echo "$as_me: failed program was:" >&5
36106 sed 's/^/| /' conftest.$ac_ext >&5
36108 ac_header_compiler=no
36111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36113 echo "${ECHO_T}$ac_header_compiler" >&6; }
36115 # Is the header present?
36116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36118 cat >conftest.$ac_ext <<_ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h. */
36124 #include <$ac_header>
36126 if { (ac_try="$ac_cpp conftest.$ac_ext"
36127 case "(($ac_try" in
36128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129 *) ac_try_echo=$ac_try;;
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36134 grep -v '^ *+' conftest.er1 >conftest.err
36136 cat conftest.err >&5
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); } >/dev/null && {
36139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36140 test ! -s conftest.err
36142 ac_header_preproc=yes
36144 echo "$as_me: failed program was:" >&5
36145 sed 's/^/| /' conftest.$ac_ext >&5
36147 ac_header_preproc=no
36150 rm -f conftest.err conftest.$ac_ext
36151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36152 echo "${ECHO_T}$ac_header_preproc" >&6; }
36154 # So? What about this header?
36155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36161 ac_header_preproc=yes
36164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36177 ## --------------------------------------------- ##
36178 ## Report this to <http://www.openldap.org/its/> ##
36179 ## --------------------------------------------- ##
36181 ) | sed "s/^/$as_me: WARNING: /" >&2
36184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36187 echo $ECHO_N "(cached) $ECHO_C" >&6
36189 eval "$as_ac_Header=\$ac_header_preproc"
36191 ac_res=`eval echo '${'$as_ac_Header'}'`
36192 { echo "$as_me:$LINENO: result: $ac_res" >&5
36193 echo "${ECHO_T}$ac_res" >&6; }
36196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36197 cat >>confdefs.h <<_ACEOF
36198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36206 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36207 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36208 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36209 echo $ECHO_N "(cached) $ECHO_C" >&6
36211 ac_check_lib_save_LIBS=$LIBS
36213 cat >conftest.$ac_ext <<_ACEOF
36216 cat confdefs.h >>conftest.$ac_ext
36217 cat >>conftest.$ac_ext <<_ACEOF
36218 /* end confdefs.h. */
36220 /* Override any GCC internal prototype to avoid an error.
36221 Use char because int might match the return type of a GCC
36222 builtin and then its argument prototype would still apply. */
36226 char __gmpz_add_ui ();
36230 return __gmpz_add_ui ();
36235 rm -f conftest.$ac_objext conftest$ac_exeext
36236 if { (ac_try="$ac_link"
36237 case "(($ac_try" in
36238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239 *) ac_try_echo=$ac_try;;
36241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36242 (eval "$ac_link") 2>conftest.er1
36244 grep -v '^ *+' conftest.er1 >conftest.err
36246 cat conftest.err >&5
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); } && {
36249 test -z "$ac_c_werror_flag" ||
36250 test ! -s conftest.err
36251 } && test -s conftest$ac_exeext &&
36252 $as_test_x conftest$ac_exeext; then
36253 ac_cv_lib_gmp___gmpz_add_ui=yes
36255 echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36258 ac_cv_lib_gmp___gmpz_add_ui=no
36261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36262 conftest$ac_exeext conftest.$ac_ext
36263 LIBS=$ac_check_lib_save_LIBS
36265 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36266 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36267 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36268 cat >>confdefs.h <<_ACEOF
36269 #define HAVE_LIBGMP 1
36276 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36278 cat >>confdefs.h <<\_ACEOF
36279 #define USE_MP_GMP 1
36283 elif test $ol_with_mp = gmp ; then
36284 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36285 echo "$as_me: error: gmp not available" >&2;}
36286 { (exit 1); exit 1; }; }
36289 if test $ol_with_mp = auto ; then
36293 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36294 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36295 if test "${ac_cv_func_memcmp_working+set}" = set; then
36296 echo $ECHO_N "(cached) $ECHO_C" >&6
36298 if test "$cross_compiling" = yes; then
36299 ac_cv_func_memcmp_working=no
36301 cat >conftest.$ac_ext <<_ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h. */
36307 $ac_includes_default
36312 /* Some versions of memcmp are not 8-bit clean. */
36313 char c0 = '\100', c1 = '\200', c2 = '\201';
36314 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36317 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36318 or more and with at least one buffer not starting on a 4-byte boundary.
36319 William Lewis provided this test program. */
36324 for (i = 0; i < 4; i++)
36328 strcpy (a, "--------01111111");
36329 strcpy (b, "--------10000000");
36330 if (memcmp (a, b, 16) >= 0)
36340 rm -f conftest$ac_exeext
36341 if { (ac_try="$ac_link"
36342 case "(($ac_try" in
36343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36344 *) ac_try_echo=$ac_try;;
36346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36347 (eval "$ac_link") 2>&5
36349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36351 { (case "(($ac_try" in
36352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36353 *) ac_try_echo=$ac_try;;
36355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36356 (eval "$ac_try") 2>&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; }; then
36360 ac_cv_func_memcmp_working=yes
36362 echo "$as_me: program exited with status $ac_status" >&5
36363 echo "$as_me: failed program was:" >&5
36364 sed 's/^/| /' conftest.$ac_ext >&5
36366 ( exit $ac_status )
36367 ac_cv_func_memcmp_working=no
36369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36374 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36375 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36376 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36377 *" memcmp.$ac_objext "* ) ;;
36378 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36384 if test $ac_cv_func_memcmp_working = no ; then
36386 cat >>confdefs.h <<\_ACEOF
36387 #define NEED_MEMCMP_REPLACEMENT 1
36393 for ac_func in strftime
36395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36399 echo $ECHO_N "(cached) $ECHO_C" >&6
36401 cat >conftest.$ac_ext <<_ACEOF
36404 cat confdefs.h >>conftest.$ac_ext
36405 cat >>conftest.$ac_ext <<_ACEOF
36406 /* end confdefs.h. */
36407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36409 #define $ac_func innocuous_$ac_func
36411 /* System header to define __stub macros and hopefully few prototypes,
36412 which can conflict with char $ac_func (); below.
36413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36414 <limits.h> exists even on freestanding compilers. */
36417 # include <limits.h>
36419 # include <assert.h>
36424 /* Override any GCC internal prototype to avoid an error.
36425 Use char because int might match the return type of a GCC
36426 builtin and then its argument prototype would still apply. */
36431 /* The GNU C library defines this for functions which it implements
36432 to always fail with ENOSYS. Some functions are actually named
36433 something starting with __ and the normal name is an alias. */
36434 #if defined __stub_$ac_func || defined __stub___$ac_func
36441 return $ac_func ();
36446 rm -f conftest.$ac_objext conftest$ac_exeext
36447 if { (ac_try="$ac_link"
36448 case "(($ac_try" in
36449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450 *) ac_try_echo=$ac_try;;
36452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36453 (eval "$ac_link") 2>conftest.er1
36455 grep -v '^ *+' conftest.er1 >conftest.err
36457 cat conftest.err >&5
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); } && {
36460 test -z "$ac_c_werror_flag" ||
36461 test ! -s conftest.err
36462 } && test -s conftest$ac_exeext &&
36463 $as_test_x conftest$ac_exeext; then
36464 eval "$as_ac_var=yes"
36466 echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36469 eval "$as_ac_var=no"
36472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36473 conftest$ac_exeext conftest.$ac_ext
36475 ac_res=`eval echo '${'$as_ac_var'}'`
36476 { echo "$as_me:$LINENO: result: $ac_res" >&5
36477 echo "${ECHO_T}$ac_res" >&6; }
36478 if test `eval echo '${'$as_ac_var'}'` = yes; then
36479 cat >>confdefs.h <<_ACEOF
36480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36484 # strftime is in -lintl on SCO UNIX.
36485 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36486 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36487 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36488 echo $ECHO_N "(cached) $ECHO_C" >&6
36490 ac_check_lib_save_LIBS=$LIBS
36491 LIBS="-lintl $LIBS"
36492 cat >conftest.$ac_ext <<_ACEOF
36495 cat confdefs.h >>conftest.$ac_ext
36496 cat >>conftest.$ac_ext <<_ACEOF
36497 /* end confdefs.h. */
36499 /* Override any GCC internal prototype to avoid an error.
36500 Use char because int might match the return type of a GCC
36501 builtin and then its argument prototype would still apply. */
36509 return strftime ();
36514 rm -f conftest.$ac_objext conftest$ac_exeext
36515 if { (ac_try="$ac_link"
36516 case "(($ac_try" in
36517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36518 *) ac_try_echo=$ac_try;;
36520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36521 (eval "$ac_link") 2>conftest.er1
36523 grep -v '^ *+' conftest.er1 >conftest.err
36525 cat conftest.err >&5
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); } && {
36528 test -z "$ac_c_werror_flag" ||
36529 test ! -s conftest.err
36530 } && test -s conftest$ac_exeext &&
36531 $as_test_x conftest$ac_exeext; then
36532 ac_cv_lib_intl_strftime=yes
36534 echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36537 ac_cv_lib_intl_strftime=no
36540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36541 conftest$ac_exeext conftest.$ac_ext
36542 LIBS=$ac_check_lib_save_LIBS
36544 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36545 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36546 if test $ac_cv_lib_intl_strftime = yes; then
36547 cat >>confdefs.h <<\_ACEOF
36548 #define HAVE_STRFTIME 1
36551 LIBS="-lintl $LIBS"
36558 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36559 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36560 if test "${ol_cv_func_inet_aton+set}" = set; then
36561 echo $ECHO_N "(cached) $ECHO_C" >&6
36563 cat >conftest.$ac_ext <<_ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h. */
36570 #ifdef HAVE_SYS_TYPES_H
36571 # include <sys/types.h>
36573 #ifdef HAVE_SYS_SOCKET_H
36574 # include <sys/socket.h>
36575 # ifdef HAVE_SYS_SELECT_H
36576 # include <sys/select.h>
36578 # include <netinet/in.h>
36579 # ifdef HAVE_ARPA_INET_H
36580 # include <arpa/inet.h>
36588 int rc = inet_aton( "255.255.255.255", &in );
36593 rm -f conftest.$ac_objext conftest$ac_exeext
36594 if { (ac_try="$ac_link"
36595 case "(($ac_try" in
36596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36597 *) ac_try_echo=$ac_try;;
36599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36600 (eval "$ac_link") 2>conftest.er1
36602 grep -v '^ *+' conftest.er1 >conftest.err
36604 cat conftest.err >&5
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); } && {
36607 test -z "$ac_c_werror_flag" ||
36608 test ! -s conftest.err
36609 } && test -s conftest$ac_exeext &&
36610 $as_test_x conftest$ac_exeext; then
36611 ol_cv_func_inet_aton=yes
36613 echo "$as_me: failed program was:" >&5
36614 sed 's/^/| /' conftest.$ac_ext >&5
36616 ol_cv_func_inet_aton=no
36619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36620 conftest$ac_exeext conftest.$ac_ext
36622 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36623 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36624 if test $ol_cv_func_inet_aton != no; then
36626 cat >>confdefs.h <<\_ACEOF
36627 #define HAVE_INET_ATON 1
36633 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36634 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36635 if test "${ac_cv_func__spawnlp+set}" = set; then
36636 echo $ECHO_N "(cached) $ECHO_C" >&6
36638 cat >conftest.$ac_ext <<_ACEOF
36641 cat confdefs.h >>conftest.$ac_ext
36642 cat >>conftest.$ac_ext <<_ACEOF
36643 /* end confdefs.h. */
36644 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36646 #define _spawnlp innocuous__spawnlp
36648 /* System header to define __stub macros and hopefully few prototypes,
36649 which can conflict with char _spawnlp (); below.
36650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36651 <limits.h> exists even on freestanding compilers. */
36654 # include <limits.h>
36656 # include <assert.h>
36661 /* Override any GCC internal prototype to avoid an error.
36662 Use char because int might match the return type of a GCC
36663 builtin and then its argument prototype would still apply. */
36668 /* The GNU C library defines this for functions which it implements
36669 to always fail with ENOSYS. Some functions are actually named
36670 something starting with __ and the normal name is an alias. */
36671 #if defined __stub__spawnlp || defined __stub____spawnlp
36678 return _spawnlp ();
36683 rm -f conftest.$ac_objext conftest$ac_exeext
36684 if { (ac_try="$ac_link"
36685 case "(($ac_try" in
36686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36687 *) ac_try_echo=$ac_try;;
36689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36690 (eval "$ac_link") 2>conftest.er1
36692 grep -v '^ *+' conftest.er1 >conftest.err
36694 cat conftest.err >&5
36695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696 (exit $ac_status); } && {
36697 test -z "$ac_c_werror_flag" ||
36698 test ! -s conftest.err
36699 } && test -s conftest$ac_exeext &&
36700 $as_test_x conftest$ac_exeext; then
36701 ac_cv_func__spawnlp=yes
36703 echo "$as_me: failed program was:" >&5
36704 sed 's/^/| /' conftest.$ac_ext >&5
36706 ac_cv_func__spawnlp=no
36709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36710 conftest$ac_exeext conftest.$ac_ext
36712 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36713 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36714 if test $ac_cv_func__spawnlp = yes; then
36716 cat >>confdefs.h <<\_ACEOF
36717 #define HAVE_SPAWNLP 1
36723 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36724 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36725 if test "${ac_cv_func__snprintf+set}" = set; then
36726 echo $ECHO_N "(cached) $ECHO_C" >&6
36728 cat >conftest.$ac_ext <<_ACEOF
36731 cat confdefs.h >>conftest.$ac_ext
36732 cat >>conftest.$ac_ext <<_ACEOF
36733 /* end confdefs.h. */
36734 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36736 #define _snprintf innocuous__snprintf
36738 /* System header to define __stub macros and hopefully few prototypes,
36739 which can conflict with char _snprintf (); below.
36740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36741 <limits.h> exists even on freestanding compilers. */
36744 # include <limits.h>
36746 # include <assert.h>
36751 /* Override any GCC internal prototype to avoid an error.
36752 Use char because int might match the return type of a GCC
36753 builtin and then its argument prototype would still apply. */
36758 /* The GNU C library defines this for functions which it implements
36759 to always fail with ENOSYS. Some functions are actually named
36760 something starting with __ and the normal name is an alias. */
36761 #if defined __stub__snprintf || defined __stub____snprintf
36768 return _snprintf ();
36773 rm -f conftest.$ac_objext conftest$ac_exeext
36774 if { (ac_try="$ac_link"
36775 case "(($ac_try" in
36776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36777 *) ac_try_echo=$ac_try;;
36779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36780 (eval "$ac_link") 2>conftest.er1
36782 grep -v '^ *+' conftest.er1 >conftest.err
36784 cat conftest.err >&5
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); } && {
36787 test -z "$ac_c_werror_flag" ||
36788 test ! -s conftest.err
36789 } && test -s conftest$ac_exeext &&
36790 $as_test_x conftest$ac_exeext; then
36791 ac_cv_func__snprintf=yes
36793 echo "$as_me: failed program was:" >&5
36794 sed 's/^/| /' conftest.$ac_ext >&5
36796 ac_cv_func__snprintf=no
36799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36800 conftest$ac_exeext conftest.$ac_ext
36802 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36803 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36804 if test $ac_cv_func__snprintf = yes; then
36805 ac_cv_func_snprintf=yes
36807 cat >>confdefs.h <<\_ACEOF
36808 #define snprintf _snprintf
36817 for ac_func in vsnprintf _vsnprintf
36819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36823 echo $ECHO_N "(cached) $ECHO_C" >&6
36825 cat >conftest.$ac_ext <<_ACEOF
36828 cat confdefs.h >>conftest.$ac_ext
36829 cat >>conftest.$ac_ext <<_ACEOF
36830 /* end confdefs.h. */
36831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36833 #define $ac_func innocuous_$ac_func
36835 /* System header to define __stub macros and hopefully few prototypes,
36836 which can conflict with char $ac_func (); below.
36837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36838 <limits.h> exists even on freestanding compilers. */
36841 # include <limits.h>
36843 # include <assert.h>
36848 /* Override any GCC internal prototype to avoid an error.
36849 Use char because int might match the return type of a GCC
36850 builtin and then its argument prototype would still apply. */
36855 /* The GNU C library defines this for functions which it implements
36856 to always fail with ENOSYS. Some functions are actually named
36857 something starting with __ and the normal name is an alias. */
36858 #if defined __stub_$ac_func || defined __stub___$ac_func
36865 return $ac_func ();
36870 rm -f conftest.$ac_objext conftest$ac_exeext
36871 if { (ac_try="$ac_link"
36872 case "(($ac_try" in
36873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36874 *) ac_try_echo=$ac_try;;
36876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36877 (eval "$ac_link") 2>conftest.er1
36879 grep -v '^ *+' conftest.er1 >conftest.err
36881 cat conftest.err >&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); } && {
36884 test -z "$ac_c_werror_flag" ||
36885 test ! -s conftest.err
36886 } && test -s conftest$ac_exeext &&
36887 $as_test_x conftest$ac_exeext; then
36888 eval "$as_ac_var=yes"
36890 echo "$as_me: failed program was:" >&5
36891 sed 's/^/| /' conftest.$ac_ext >&5
36893 eval "$as_ac_var=no"
36896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36897 conftest$ac_exeext conftest.$ac_ext
36899 ac_res=`eval echo '${'$as_ac_var'}'`
36900 { echo "$as_me:$LINENO: result: $ac_res" >&5
36901 echo "${ECHO_T}$ac_res" >&6; }
36902 if test `eval echo '${'$as_ac_var'}'` = yes; then
36903 cat >>confdefs.h <<_ACEOF
36904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36911 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36912 ac_cv_func_vsnprintf=yes
36914 cat >>confdefs.h <<\_ACEOF
36915 #define vsnprintf _vsnprintf
36921 for ac_func in vprintf
36923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36929 cat >conftest.$ac_ext <<_ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h. */
36935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36937 #define $ac_func innocuous_$ac_func
36939 /* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char $ac_func (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36945 # include <limits.h>
36947 # include <assert.h>
36952 /* Override any GCC internal prototype to avoid an error.
36953 Use char because int might match the return type of a GCC
36954 builtin and then its argument prototype would still apply. */
36959 /* The GNU C library defines this for functions which it implements
36960 to always fail with ENOSYS. Some functions are actually named
36961 something starting with __ and the normal name is an alias. */
36962 #if defined __stub_$ac_func || defined __stub___$ac_func
36969 return $ac_func ();
36974 rm -f conftest.$ac_objext conftest$ac_exeext
36975 if { (ac_try="$ac_link"
36976 case "(($ac_try" in
36977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36978 *) ac_try_echo=$ac_try;;
36980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36981 (eval "$ac_link") 2>conftest.er1
36983 grep -v '^ *+' conftest.er1 >conftest.err
36985 cat conftest.err >&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } && {
36988 test -z "$ac_c_werror_flag" ||
36989 test ! -s conftest.err
36990 } && test -s conftest$ac_exeext &&
36991 $as_test_x conftest$ac_exeext; then
36992 eval "$as_ac_var=yes"
36994 echo "$as_me: failed program was:" >&5
36995 sed 's/^/| /' conftest.$ac_ext >&5
36997 eval "$as_ac_var=no"
37000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37001 conftest$ac_exeext conftest.$ac_ext
37003 ac_res=`eval echo '${'$as_ac_var'}'`
37004 { echo "$as_me:$LINENO: result: $ac_res" >&5
37005 echo "${ECHO_T}$ac_res" >&6; }
37006 if test `eval echo '${'$as_ac_var'}'` = yes; then
37007 cat >>confdefs.h <<_ACEOF
37008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37011 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37012 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37013 if test "${ac_cv_func__doprnt+set}" = set; then
37014 echo $ECHO_N "(cached) $ECHO_C" >&6
37016 cat >conftest.$ac_ext <<_ACEOF
37019 cat confdefs.h >>conftest.$ac_ext
37020 cat >>conftest.$ac_ext <<_ACEOF
37021 /* end confdefs.h. */
37022 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37024 #define _doprnt innocuous__doprnt
37026 /* System header to define __stub macros and hopefully few prototypes,
37027 which can conflict with char _doprnt (); below.
37028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37029 <limits.h> exists even on freestanding compilers. */
37032 # include <limits.h>
37034 # include <assert.h>
37039 /* Override any GCC internal prototype to avoid an error.
37040 Use char because int might match the return type of a GCC
37041 builtin and then its argument prototype would still apply. */
37046 /* The GNU C library defines this for functions which it implements
37047 to always fail with ENOSYS. Some functions are actually named
37048 something starting with __ and the normal name is an alias. */
37049 #if defined __stub__doprnt || defined __stub____doprnt
37061 rm -f conftest.$ac_objext conftest$ac_exeext
37062 if { (ac_try="$ac_link"
37063 case "(($ac_try" in
37064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065 *) ac_try_echo=$ac_try;;
37067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37068 (eval "$ac_link") 2>conftest.er1
37070 grep -v '^ *+' conftest.er1 >conftest.err
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } && {
37075 test -z "$ac_c_werror_flag" ||
37076 test ! -s conftest.err
37077 } && test -s conftest$ac_exeext &&
37078 $as_test_x conftest$ac_exeext; then
37079 ac_cv_func__doprnt=yes
37081 echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37084 ac_cv_func__doprnt=no
37087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37088 conftest$ac_exeext conftest.$ac_ext
37090 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37092 if test $ac_cv_func__doprnt = yes; then
37094 cat >>confdefs.h <<\_ACEOF
37095 #define HAVE_DOPRNT 1
37105 if test $ac_cv_func_vprintf = yes ; then
37108 for ac_func in snprintf vsnprintf
37110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37114 echo $ECHO_N "(cached) $ECHO_C" >&6
37116 cat >conftest.$ac_ext <<_ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h. */
37122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37124 #define $ac_func innocuous_$ac_func
37126 /* System header to define __stub macros and hopefully few prototypes,
37127 which can conflict with char $ac_func (); below.
37128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37129 <limits.h> exists even on freestanding compilers. */
37132 # include <limits.h>
37134 # include <assert.h>
37139 /* Override any GCC internal prototype to avoid an error.
37140 Use char because int might match the return type of a GCC
37141 builtin and then its argument prototype would still apply. */
37146 /* The GNU C library defines this for functions which it implements
37147 to always fail with ENOSYS. Some functions are actually named
37148 something starting with __ and the normal name is an alias. */
37149 #if defined __stub_$ac_func || defined __stub___$ac_func
37156 return $ac_func ();
37161 rm -f conftest.$ac_objext conftest$ac_exeext
37162 if { (ac_try="$ac_link"
37163 case "(($ac_try" in
37164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37165 *) ac_try_echo=$ac_try;;
37167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37168 (eval "$ac_link") 2>conftest.er1
37170 grep -v '^ *+' conftest.er1 >conftest.err
37172 cat conftest.err >&5
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); } && {
37175 test -z "$ac_c_werror_flag" ||
37176 test ! -s conftest.err
37177 } && test -s conftest$ac_exeext &&
37178 $as_test_x conftest$ac_exeext; then
37179 eval "$as_ac_var=yes"
37181 echo "$as_me: failed program was:" >&5
37182 sed 's/^/| /' conftest.$ac_ext >&5
37184 eval "$as_ac_var=no"
37187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37188 conftest$ac_exeext conftest.$ac_ext
37190 ac_res=`eval echo '${'$as_ac_var'}'`
37191 { echo "$as_me:$LINENO: result: $ac_res" >&5
37192 echo "${ECHO_T}$ac_res" >&6; }
37193 if test `eval echo '${'$as_ac_var'}'` = yes; then
37194 cat >>confdefs.h <<_ACEOF
37195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37322 echo $ECHO_N "(cached) $ECHO_C" >&6
37324 cat >conftest.$ac_ext <<_ACEOF
37327 cat confdefs.h >>conftest.$ac_ext
37328 cat >>conftest.$ac_ext <<_ACEOF
37329 /* end confdefs.h. */
37330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37332 #define $ac_func innocuous_$ac_func
37334 /* System header to define __stub macros and hopefully few prototypes,
37335 which can conflict with char $ac_func (); below.
37336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37337 <limits.h> exists even on freestanding compilers. */
37340 # include <limits.h>
37342 # include <assert.h>
37347 /* Override any GCC internal prototype to avoid an error.
37348 Use char because int might match the return type of a GCC
37349 builtin and then its argument prototype would still apply. */
37354 /* The GNU C library defines this for functions which it implements
37355 to always fail with ENOSYS. Some functions are actually named
37356 something starting with __ and the normal name is an alias. */
37357 #if defined __stub_$ac_func || defined __stub___$ac_func
37364 return $ac_func ();
37369 rm -f conftest.$ac_objext conftest$ac_exeext
37370 if { (ac_try="$ac_link"
37371 case "(($ac_try" in
37372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37373 *) ac_try_echo=$ac_try;;
37375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37376 (eval "$ac_link") 2>conftest.er1
37378 grep -v '^ *+' conftest.er1 >conftest.err
37380 cat conftest.err >&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } && {
37383 test -z "$ac_c_werror_flag" ||
37384 test ! -s conftest.err
37385 } && test -s conftest$ac_exeext &&
37386 $as_test_x conftest$ac_exeext; then
37387 eval "$as_ac_var=yes"
37389 echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37392 eval "$as_ac_var=no"
37395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37396 conftest$ac_exeext conftest.$ac_ext
37398 ac_res=`eval echo '${'$as_ac_var'}'`
37399 { echo "$as_me:$LINENO: result: $ac_res" >&5
37400 echo "${ECHO_T}$ac_res" >&6; }
37401 if test `eval echo '${'$as_ac_var'}'` = yes; then
37402 cat >>confdefs.h <<_ACEOF
37403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37412 for ac_func in getopt getpeereid
37414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37418 echo $ECHO_N "(cached) $ECHO_C" >&6
37420 cat >conftest.$ac_ext <<_ACEOF
37423 cat confdefs.h >>conftest.$ac_ext
37424 cat >>conftest.$ac_ext <<_ACEOF
37425 /* end confdefs.h. */
37426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37428 #define $ac_func innocuous_$ac_func
37430 /* System header to define __stub macros and hopefully few prototypes,
37431 which can conflict with char $ac_func (); below.
37432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37433 <limits.h> exists even on freestanding compilers. */
37436 # include <limits.h>
37438 # include <assert.h>
37443 /* Override any GCC internal prototype to avoid an error.
37444 Use char because int might match the return type of a GCC
37445 builtin and then its argument prototype would still apply. */
37450 /* The GNU C library defines this for functions which it implements
37451 to always fail with ENOSYS. Some functions are actually named
37452 something starting with __ and the normal name is an alias. */
37453 #if defined __stub_$ac_func || defined __stub___$ac_func
37460 return $ac_func ();
37465 rm -f conftest.$ac_objext conftest$ac_exeext
37466 if { (ac_try="$ac_link"
37467 case "(($ac_try" in
37468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37469 *) ac_try_echo=$ac_try;;
37471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37472 (eval "$ac_link") 2>conftest.er1
37474 grep -v '^ *+' conftest.er1 >conftest.err
37476 cat conftest.err >&5
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); } && {
37479 test -z "$ac_c_werror_flag" ||
37480 test ! -s conftest.err
37481 } && test -s conftest$ac_exeext &&
37482 $as_test_x conftest$ac_exeext; then
37483 eval "$as_ac_var=yes"
37485 echo "$as_me: failed program was:" >&5
37486 sed 's/^/| /' conftest.$ac_ext >&5
37488 eval "$as_ac_var=no"
37491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37492 conftest$ac_exeext conftest.$ac_ext
37494 ac_res=`eval echo '${'$as_ac_var'}'`
37495 { echo "$as_me:$LINENO: result: $ac_res" >&5
37496 echo "${ECHO_T}$ac_res" >&6; }
37497 if test `eval echo '${'$as_ac_var'}'` = yes; then
37498 cat >>confdefs.h <<_ACEOF
37499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37503 case " $LIBOBJS " in
37504 *" $ac_func.$ac_objext "* ) ;;
37505 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37514 if test "$ac_cv_func_getopt" != yes; then
37515 LIBSRCS="$LIBSRCS getopt.c"
37518 if test "$ac_cv_func_getpeereid" != yes; then
37520 for ac_func in getpeerucred
37522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37526 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 cat >conftest.$ac_ext <<_ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h. */
37534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37536 #define $ac_func innocuous_$ac_func
37538 /* System header to define __stub macros and hopefully few prototypes,
37539 which can conflict with char $ac_func (); below.
37540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37541 <limits.h> exists even on freestanding compilers. */
37544 # include <limits.h>
37546 # include <assert.h>
37551 /* Override any GCC internal prototype to avoid an error.
37552 Use char because int might match the return type of a GCC
37553 builtin and then its argument prototype would still apply. */
37558 /* The GNU C library defines this for functions which it implements
37559 to always fail with ENOSYS. Some functions are actually named
37560 something starting with __ and the normal name is an alias. */
37561 #if defined __stub_$ac_func || defined __stub___$ac_func
37568 return $ac_func ();
37573 rm -f conftest.$ac_objext conftest$ac_exeext
37574 if { (ac_try="$ac_link"
37575 case "(($ac_try" in
37576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577 *) ac_try_echo=$ac_try;;
37579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37580 (eval "$ac_link") 2>conftest.er1
37582 grep -v '^ *+' conftest.er1 >conftest.err
37584 cat conftest.err >&5
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); } && {
37587 test -z "$ac_c_werror_flag" ||
37588 test ! -s conftest.err
37589 } && test -s conftest$ac_exeext &&
37590 $as_test_x conftest$ac_exeext; then
37591 eval "$as_ac_var=yes"
37593 echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37596 eval "$as_ac_var=no"
37599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37600 conftest$ac_exeext conftest.$ac_ext
37602 ac_res=`eval echo '${'$as_ac_var'}'`
37603 { echo "$as_me:$LINENO: result: $ac_res" >&5
37604 echo "${ECHO_T}$ac_res" >&6; }
37605 if test `eval echo '${'$as_ac_var'}'` = yes; then
37606 cat >>confdefs.h <<_ACEOF
37607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37613 if test "$ac_cv_func_getpeerucred" != yes ; then
37614 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37615 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37616 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37617 echo $ECHO_N "(cached) $ECHO_C" >&6
37619 cat >conftest.$ac_ext <<_ACEOF
37622 cat confdefs.h >>conftest.$ac_ext
37623 cat >>conftest.$ac_ext <<_ACEOF
37624 /* end confdefs.h. */
37625 $ac_includes_default
37626 #ifdef HAVE_SYS_SOCKET_H
37627 #include <sys/socket.h>
37633 static struct msghdr ac_aggr;
37634 if (ac_aggr.msg_accrightslen)
37640 rm -f conftest.$ac_objext
37641 if { (ac_try="$ac_compile"
37642 case "(($ac_try" in
37643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37644 *) ac_try_echo=$ac_try;;
37646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37647 (eval "$ac_compile") 2>conftest.er1
37649 grep -v '^ *+' conftest.er1 >conftest.err
37651 cat conftest.err >&5
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); } && {
37654 test -z "$ac_c_werror_flag" ||
37655 test ! -s conftest.err
37656 } && test -s conftest.$ac_objext; then
37657 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37659 echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37662 cat >conftest.$ac_ext <<_ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37668 $ac_includes_default
37669 #ifdef HAVE_SYS_SOCKET_H
37670 #include <sys/socket.h>
37676 static struct msghdr ac_aggr;
37677 if (sizeof ac_aggr.msg_accrightslen)
37683 rm -f conftest.$ac_objext
37684 if { (ac_try="$ac_compile"
37685 case "(($ac_try" in
37686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37687 *) ac_try_echo=$ac_try;;
37689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37690 (eval "$ac_compile") 2>conftest.er1
37692 grep -v '^ *+' conftest.er1 >conftest.err
37694 cat conftest.err >&5
37695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); } && {
37697 test -z "$ac_c_werror_flag" ||
37698 test ! -s conftest.err
37699 } && test -s conftest.$ac_objext; then
37700 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37702 echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37705 ac_cv_member_struct_msghdr_msg_accrightslen=no
37708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37714 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37715 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37717 cat >>confdefs.h <<_ACEOF
37718 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37724 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37725 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37726 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37727 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37728 echo $ECHO_N "(cached) $ECHO_C" >&6
37730 cat >conftest.$ac_ext <<_ACEOF
37733 cat confdefs.h >>conftest.$ac_ext
37734 cat >>conftest.$ac_ext <<_ACEOF
37735 /* end confdefs.h. */
37736 $ac_includes_default
37737 #ifdef HAVE_SYS_SOCKET_H
37738 #include <sys/socket.h>
37744 static struct msghdr ac_aggr;
37745 if (ac_aggr.msg_control)
37751 rm -f conftest.$ac_objext
37752 if { (ac_try="$ac_compile"
37753 case "(($ac_try" in
37754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37755 *) ac_try_echo=$ac_try;;
37757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37758 (eval "$ac_compile") 2>conftest.er1
37760 grep -v '^ *+' conftest.er1 >conftest.err
37762 cat conftest.err >&5
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); } && {
37765 test -z "$ac_c_werror_flag" ||
37766 test ! -s conftest.err
37767 } && test -s conftest.$ac_objext; then
37768 ac_cv_member_struct_msghdr_msg_control=yes
37770 echo "$as_me: failed program was:" >&5
37771 sed 's/^/| /' conftest.$ac_ext >&5
37773 cat >conftest.$ac_ext <<_ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h. */
37779 $ac_includes_default
37780 #ifdef HAVE_SYS_SOCKET_H
37781 #include <sys/socket.h>
37787 static struct msghdr ac_aggr;
37788 if (sizeof ac_aggr.msg_control)
37794 rm -f conftest.$ac_objext
37795 if { (ac_try="$ac_compile"
37796 case "(($ac_try" in
37797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37798 *) ac_try_echo=$ac_try;;
37800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37801 (eval "$ac_compile") 2>conftest.er1
37803 grep -v '^ *+' conftest.er1 >conftest.err
37805 cat conftest.err >&5
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); } && {
37808 test -z "$ac_c_werror_flag" ||
37809 test ! -s conftest.err
37810 } && test -s conftest.$ac_objext; then
37811 ac_cv_member_struct_msghdr_msg_control=yes
37813 echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37816 ac_cv_member_struct_msghdr_msg_control=no
37819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37825 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37826 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37828 cat >>confdefs.h <<_ACEOF
37829 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37836 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37837 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37838 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37839 echo $ECHO_N "(cached) $ECHO_C" >&6
37841 cat >conftest.$ac_ext <<_ACEOF
37844 cat confdefs.h >>conftest.$ac_ext
37845 cat >>conftest.$ac_ext <<_ACEOF
37846 /* end confdefs.h. */
37847 $ac_includes_default
37851 static struct stat ac_aggr;
37852 if (ac_aggr.st_fstype)
37858 rm -f conftest.$ac_objext
37859 if { (ac_try="$ac_compile"
37860 case "(($ac_try" in
37861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37862 *) ac_try_echo=$ac_try;;
37864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37865 (eval "$ac_compile") 2>conftest.er1
37867 grep -v '^ *+' conftest.er1 >conftest.err
37869 cat conftest.err >&5
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); } && {
37872 test -z "$ac_c_werror_flag" ||
37873 test ! -s conftest.err
37874 } && test -s conftest.$ac_objext; then
37875 ac_cv_member_struct_stat_st_fstype=yes
37877 echo "$as_me: failed program was:" >&5
37878 sed 's/^/| /' conftest.$ac_ext >&5
37880 cat >conftest.$ac_ext <<_ACEOF
37883 cat confdefs.h >>conftest.$ac_ext
37884 cat >>conftest.$ac_ext <<_ACEOF
37885 /* end confdefs.h. */
37886 $ac_includes_default
37890 static struct stat ac_aggr;
37891 if (sizeof ac_aggr.st_fstype)
37897 rm -f conftest.$ac_objext
37898 if { (ac_try="$ac_compile"
37899 case "(($ac_try" in
37900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901 *) ac_try_echo=$ac_try;;
37903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37904 (eval "$ac_compile") 2>conftest.er1
37906 grep -v '^ *+' conftest.er1 >conftest.err
37908 cat conftest.err >&5
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } && {
37911 test -z "$ac_c_werror_flag" ||
37912 test ! -s conftest.err
37913 } && test -s conftest.$ac_objext; then
37914 ac_cv_member_struct_stat_st_fstype=yes
37916 echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37919 ac_cv_member_struct_stat_st_fstype=no
37922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37927 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37928 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37929 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37931 cat >>confdefs.h <<_ACEOF
37932 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37937 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37938 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37939 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37940 echo $ECHO_N "(cached) $ECHO_C" >&6
37942 cat >conftest.$ac_ext <<_ACEOF
37945 cat confdefs.h >>conftest.$ac_ext
37946 cat >>conftest.$ac_ext <<_ACEOF
37947 /* end confdefs.h. */
37948 $ac_includes_default
37952 static struct stat ac_aggr;
37953 if (ac_aggr.st_vfstype)
37959 rm -f conftest.$ac_objext
37960 if { (ac_try="$ac_compile"
37961 case "(($ac_try" in
37962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37963 *) ac_try_echo=$ac_try;;
37965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37966 (eval "$ac_compile") 2>conftest.er1
37968 grep -v '^ *+' conftest.er1 >conftest.err
37970 cat conftest.err >&5
37971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37972 (exit $ac_status); } && {
37973 test -z "$ac_c_werror_flag" ||
37974 test ! -s conftest.err
37975 } && test -s conftest.$ac_objext; then
37976 ac_cv_member_struct_stat_st_vfstype=yes
37978 echo "$as_me: failed program was:" >&5
37979 sed 's/^/| /' conftest.$ac_ext >&5
37981 cat >conftest.$ac_ext <<_ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 $ac_includes_default
37991 static struct stat ac_aggr;
37992 if (sizeof ac_aggr.st_vfstype)
37998 rm -f conftest.$ac_objext
37999 if { (ac_try="$ac_compile"
38000 case "(($ac_try" in
38001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38002 *) ac_try_echo=$ac_try;;
38004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38005 (eval "$ac_compile") 2>conftest.er1
38007 grep -v '^ *+' conftest.er1 >conftest.err
38009 cat conftest.err >&5
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); } && {
38012 test -z "$ac_c_werror_flag" ||
38013 test ! -s conftest.err
38014 } && test -s conftest.$ac_objext; then
38015 ac_cv_member_struct_stat_st_vfstype=yes
38017 echo "$as_me: failed program was:" >&5
38018 sed 's/^/| /' conftest.$ac_ext >&5
38020 ac_cv_member_struct_stat_st_vfstype=no
38023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38028 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38029 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38030 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38032 cat >>confdefs.h <<_ACEOF
38033 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38039 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38040 cat >conftest.$ac_ext <<_ACEOF
38041 struct stat st; char *ptr=st.st_fstype;
38043 rm -f conftest.$ac_objext
38044 if { (ac_try="$ac_compile"
38045 case "(($ac_try" in
38046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047 *) ac_try_echo=$ac_try;;
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050 (eval "$ac_compile") 2>conftest.er1
38052 grep -v '^ *+' conftest.er1 >conftest.err
38054 cat conftest.err >&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } && {
38057 test -z "$ac_c_werror_flag" ||
38058 test ! -s conftest.err
38059 } && test -s conftest.$ac_objext; then
38061 cat >>confdefs.h <<\_ACEOF
38062 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38066 echo "$as_me: failed program was:" >&5
38067 sed 's/^/| /' conftest.$ac_ext >&5
38070 cat >>confdefs.h <<\_ACEOF
38071 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38079 LIBSRCS="$LIBSRCS getpeereid.c"
38082 if test "$ac_cv_func_snprintf" != yes ||
38083 test "$ac_cv_func_vsnprintf" != yes; then
38084 if test "$ac_cv_func_snprintf" != yes; then
38086 cat >>confdefs.h <<\_ACEOF
38087 #define snprintf ber_pvt_snprintf
38091 if test "$ac_cv_func_vsnprintf" != yes; then
38093 cat >>confdefs.h <<\_ACEOF
38094 #define vsnprintf ber_pvt_vsnprintf
38101 if test "$ol_enable_slapi" != no ; then
38103 for ac_header in ltdl.h
38105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38110 echo $ECHO_N "(cached) $ECHO_C" >&6
38112 ac_res=`eval echo '${'$as_ac_Header'}'`
38113 { echo "$as_me:$LINENO: result: $ac_res" >&5
38114 echo "${ECHO_T}$ac_res" >&6; }
38116 # Is the header compilable?
38117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38119 cat >conftest.$ac_ext <<_ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h. */
38125 $ac_includes_default
38126 #include <$ac_header>
38128 rm -f conftest.$ac_objext
38129 if { (ac_try="$ac_compile"
38130 case "(($ac_try" in
38131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38132 *) ac_try_echo=$ac_try;;
38134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38135 (eval "$ac_compile") 2>conftest.er1
38137 grep -v '^ *+' conftest.er1 >conftest.err
38139 cat conftest.err >&5
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); } && {
38142 test -z "$ac_c_werror_flag" ||
38143 test ! -s conftest.err
38144 } && test -s conftest.$ac_objext; then
38145 ac_header_compiler=yes
38147 echo "$as_me: failed program was:" >&5
38148 sed 's/^/| /' conftest.$ac_ext >&5
38150 ac_header_compiler=no
38153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38155 echo "${ECHO_T}$ac_header_compiler" >&6; }
38157 # Is the header present?
38158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38160 cat >conftest.$ac_ext <<_ACEOF
38163 cat confdefs.h >>conftest.$ac_ext
38164 cat >>conftest.$ac_ext <<_ACEOF
38165 /* end confdefs.h. */
38166 #include <$ac_header>
38168 if { (ac_try="$ac_cpp conftest.$ac_ext"
38169 case "(($ac_try" in
38170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38171 *) ac_try_echo=$ac_try;;
38173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38176 grep -v '^ *+' conftest.er1 >conftest.err
38178 cat conftest.err >&5
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); } >/dev/null && {
38181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38182 test ! -s conftest.err
38184 ac_header_preproc=yes
38186 echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38189 ac_header_preproc=no
38192 rm -f conftest.err conftest.$ac_ext
38193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38194 echo "${ECHO_T}$ac_header_preproc" >&6; }
38196 # So? What about this header?
38197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38203 ac_header_preproc=yes
38206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38219 ## --------------------------------------------- ##
38220 ## Report this to <http://www.openldap.org/its/> ##
38221 ## --------------------------------------------- ##
38223 ) | sed "s/^/$as_me: WARNING: /" >&2
38226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38229 echo $ECHO_N "(cached) $ECHO_C" >&6
38231 eval "$as_ac_Header=\$ac_header_preproc"
38233 ac_res=`eval echo '${'$as_ac_Header'}'`
38234 { echo "$as_me:$LINENO: result: $ac_res" >&5
38235 echo "${ECHO_T}$ac_res" >&6; }
38238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38239 cat >>confdefs.h <<_ACEOF
38240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38248 if test $ac_cv_header_ltdl_h != yes ; then
38249 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38250 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38251 { (exit 1); exit 1; }; }
38253 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38254 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38255 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38256 echo $ECHO_N "(cached) $ECHO_C" >&6
38258 ac_check_lib_save_LIBS=$LIBS
38259 LIBS="-lltdl $LIBS"
38260 cat >conftest.$ac_ext <<_ACEOF
38263 cat confdefs.h >>conftest.$ac_ext
38264 cat >>conftest.$ac_ext <<_ACEOF
38265 /* end confdefs.h. */
38267 /* Override any GCC internal prototype to avoid an error.
38268 Use char because int might match the return type of a GCC
38269 builtin and then its argument prototype would still apply. */
38277 return lt_dlinit ();
38282 rm -f conftest.$ac_objext conftest$ac_exeext
38283 if { (ac_try="$ac_link"
38284 case "(($ac_try" in
38285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38286 *) ac_try_echo=$ac_try;;
38288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38289 (eval "$ac_link") 2>conftest.er1
38291 grep -v '^ *+' conftest.er1 >conftest.err
38293 cat conftest.err >&5
38294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295 (exit $ac_status); } && {
38296 test -z "$ac_c_werror_flag" ||
38297 test ! -s conftest.err
38298 } && test -s conftest$ac_exeext &&
38299 $as_test_x conftest$ac_exeext; then
38300 ac_cv_lib_ltdl_lt_dlinit=yes
38302 echo "$as_me: failed program was:" >&5
38303 sed 's/^/| /' conftest.$ac_ext >&5
38305 ac_cv_lib_ltdl_lt_dlinit=no
38308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38309 conftest$ac_exeext conftest.$ac_ext
38310 LIBS=$ac_check_lib_save_LIBS
38312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38313 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38314 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38317 LIBSLAPI=libslapi.a
38318 LIBSLAPITOOLS=../libslapi.a
38320 cat >>confdefs.h <<\_ACEOF
38321 #define HAVE_LIBLTDL 1
38326 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38327 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38328 { (exit 1); exit 1; }; }
38333 cat >>confdefs.h <<\_ACEOF
38334 #define LDAP_SLAPI 1
38339 if test "$ol_enable_debug" != no ; then
38340 if test "$ol_enable_debug" = traditional; then
38342 cat >>confdefs.h <<\_ACEOF
38343 #define OLD_DEBUG 1
38348 cat >>confdefs.h <<\_ACEOF
38349 #define LDAP_DEBUG 1
38353 if test "$ol_enable_syslog" = yes ; then
38355 cat >>confdefs.h <<\_ACEOF
38356 #define LDAP_SYSLOG 1
38360 if test "$ol_enable_proctitle" != no ; then
38362 cat >>confdefs.h <<\_ACEOF
38363 #define LDAP_PROCTITLE 1
38367 if test "$ol_enable_referrals" != no ; then
38369 cat >>confdefs.h <<\_ACEOF
38370 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38374 if test "$ol_enable_local" != no; then
38376 cat >>confdefs.h <<\_ACEOF
38377 #define LDAP_PF_LOCAL 1
38381 if test "$ol_link_ipv6" != no; then
38383 cat >>confdefs.h <<\_ACEOF
38384 #define LDAP_PF_INET6 1
38388 if test "$ol_enable_cleartext" != no ; then
38390 cat >>confdefs.h <<\_ACEOF
38391 #define SLAPD_CLEARTEXT 1
38395 if test "$ol_enable_crypt" != no ; then
38397 cat >>confdefs.h <<\_ACEOF
38398 #define SLAPD_CRYPT 1
38402 if test "$ol_link_spasswd" != no ; then
38404 cat >>confdefs.h <<\_ACEOF
38405 #define SLAPD_SPASSWD 1
38409 if test "$ol_enable_rlookups" != no ; then
38411 cat >>confdefs.h <<\_ACEOF
38412 #define SLAPD_RLOOKUPS 1
38416 if test "$ol_enable_aci" != no ; then
38417 if test $ol_enable_dynacl = no ; then
38418 ol_enable_dynacl=yes
38419 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38420 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38422 if test "$ol_enable_aci" = mod ; then
38423 MFLAG=SLAPD_MOD_DYNAMIC
38424 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38425 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38426 { (exit 1); exit 1; }; }
38428 MFLAG=SLAPD_MOD_STATIC
38430 WITH_ACI_ENABLED=$ol_enable_aci
38432 cat >>confdefs.h <<_ACEOF
38433 #define SLAPD_ACI_ENABLED $MFLAG
38437 WITH_ACI_ENABLED=no
38439 if test "$ol_enable_dynacl" != no ; then
38441 cat >>confdefs.h <<\_ACEOF
38442 #define SLAP_DYNACL 1
38447 if test "$ol_link_modules" != no ; then
38449 cat >>confdefs.h <<\_ACEOF
38450 #define SLAPD_MODULES 1
38454 SLAPD_MODULES_LDFLAGS="-dlopen self"
38458 cat >>confdefs.h <<\_ACEOF
38459 #define SLAPD_MOD_STATIC 1
38463 cat >>confdefs.h <<\_ACEOF
38464 #define SLAPD_MOD_DYNAMIC 2
38468 if test "$ol_enable_monitor" != no ; then
38470 BUILD_MONITOR=$ol_enable_monitor
38471 if test "$ol_enable_monitor" = mod ; then
38472 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38473 MFLAG=SLAPD_MOD_DYNAMIC
38475 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38476 MFLAG=SLAPD_MOD_STATIC
38479 cat >>confdefs.h <<_ACEOF
38480 #define SLAPD_MONITOR $MFLAG
38485 if test "$ol_enable_bdb" != no ; then
38487 BUILD_BDB=$ol_enable_bdb
38488 if test "$ol_enable_bdb" = mod ; then
38489 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38490 MFLAG=SLAPD_MOD_DYNAMIC
38492 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38493 MFLAG=SLAPD_MOD_STATIC
38496 cat >>confdefs.h <<_ACEOF
38497 #define SLAPD_BDB $MFLAG
38502 if test "$ol_enable_dnssrv" != no ; then
38504 BUILD_DNSSRV=$ol_enable_dnssrv
38505 if test "$ol_enable_dnssrv" = mod ; then
38506 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38507 MFLAG=SLAPD_MOD_DYNAMIC
38509 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38510 MFLAG=SLAPD_MOD_STATIC
38513 cat >>confdefs.h <<_ACEOF
38514 #define SLAPD_DNSSRV $MFLAG
38519 if test "$ol_enable_hdb" != no ; then
38521 BUILD_HDB=$ol_enable_hdb
38522 if test "$ol_enable_hdb" = mod ; then
38523 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38524 MFLAG=SLAPD_MOD_DYNAMIC
38526 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38527 MFLAG=SLAPD_MOD_STATIC
38530 cat >>confdefs.h <<_ACEOF
38531 #define SLAPD_HDB $MFLAG
38536 if test "$ol_enable_ldap" != no ; then
38538 BUILD_LDAP=$ol_enable_ldap
38539 if test "$ol_enable_ldap" = mod ; then
38540 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38541 MFLAG=SLAPD_MOD_DYNAMIC
38543 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38544 MFLAG=SLAPD_MOD_STATIC
38547 cat >>confdefs.h <<_ACEOF
38548 #define SLAPD_LDAP $MFLAG
38553 if test "$ol_enable_meta" != no ; then
38555 BUILD_META=$ol_enable_meta
38557 if test "$ol_enable_meta" = mod ; then
38558 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38559 MFLAG=SLAPD_MOD_DYNAMIC
38561 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38562 MFLAG=SLAPD_MOD_STATIC
38565 cat >>confdefs.h <<_ACEOF
38566 #define SLAPD_META $MFLAG
38571 if test "$ol_enable_ndb" != no ; then
38573 BUILD_NDB=$ol_enable_ndb
38574 if test "$ol_enable_ndb" = mod ; then
38575 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38576 MFLAG=SLAPD_MOD_DYNAMIC
38578 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38579 MFLAG=SLAPD_MOD_STATIC
38582 cat >>confdefs.h <<_ACEOF
38583 #define SLAPD_NDB $MFLAG
38588 if test "$ol_enable_null" != no ; then
38590 BUILD_NULL=$ol_enable_null
38591 if test "$ol_enable_null" = mod ; then
38592 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38593 MFLAG=SLAPD_MOD_DYNAMIC
38595 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38596 MFLAG=SLAPD_MOD_STATIC
38599 cat >>confdefs.h <<_ACEOF
38600 #define SLAPD_NULL $MFLAG
38605 if test "$ol_enable_passwd" != no ; then
38607 BUILD_PASSWD=$ol_enable_passwd
38608 if test "$ol_enable_passwd" = mod ; then
38609 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38610 MFLAG=SLAPD_MOD_DYNAMIC
38612 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38613 MFLAG=SLAPD_MOD_STATIC
38616 cat >>confdefs.h <<_ACEOF
38617 #define SLAPD_PASSWD $MFLAG
38622 if test "$ol_link_perl" != no ; then
38624 BUILD_PERL=$ol_enable_perl
38625 if test "$ol_enable_perl" = mod ; then
38626 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38627 MFLAG=SLAPD_MOD_DYNAMIC
38629 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38630 MFLAG=SLAPD_MOD_STATIC
38633 cat >>confdefs.h <<_ACEOF
38634 #define SLAPD_PERL $MFLAG
38639 if test "$ol_enable_relay" != no ; then
38641 BUILD_RELAY=$ol_enable_relay
38642 if test "$ol_enable_relay" = mod ; then
38643 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38644 MFLAG=SLAPD_MOD_DYNAMIC
38646 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38647 MFLAG=SLAPD_MOD_STATIC
38650 cat >>confdefs.h <<_ACEOF
38651 #define SLAPD_RELAY $MFLAG
38656 if test "$ol_enable_shell" != no ; then
38657 if test "$ol_link_threads" != no ; then
38658 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38659 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38662 BUILD_SHELL=$ol_enable_shell
38663 if test "$ol_enable_shell" = mod ; then
38664 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38665 MFLAG=SLAPD_MOD_DYNAMIC
38667 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38668 MFLAG=SLAPD_MOD_STATIC
38671 cat >>confdefs.h <<_ACEOF
38672 #define SLAPD_SHELL $MFLAG
38677 if test "$ol_enable_sock" != no ; then
38679 BUILD_SOCK=$ol_enable_sock
38680 if test "$ol_enable_sock" = mod ; then
38681 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38682 MFLAG=SLAPD_MOD_DYNAMIC
38684 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38685 MFLAG=SLAPD_MOD_STATIC
38688 cat >>confdefs.h <<_ACEOF
38689 #define SLAPD_SOCK $MFLAG
38694 if test "$ol_link_sql" != no ; then
38696 BUILD_SQL=$ol_enable_sql
38697 if test "$ol_enable_sql" = mod; then
38698 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38699 MFLAG=SLAPD_MOD_DYNAMIC
38701 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38702 MFLAG=SLAPD_MOD_STATIC
38705 cat >>confdefs.h <<_ACEOF
38706 #define SLAPD_SQL $MFLAG
38711 if test "$ol_enable_accesslog" != no ; then
38712 BUILD_ACCESSLOG=$ol_enable_accesslog
38713 if test "$ol_enable_accesslog" = mod ; then
38714 MFLAG=SLAPD_MOD_DYNAMIC
38715 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38717 MFLAG=SLAPD_MOD_STATIC
38718 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38721 cat >>confdefs.h <<_ACEOF
38722 #define SLAPD_OVER_ACCESSLOG $MFLAG
38727 if test "$ol_enable_auditlog" != no ; then
38728 BUILD_AUDITLOG=$ol_enable_auditlog
38729 if test "$ol_enable_auditlog" = mod ; then
38730 MFLAG=SLAPD_MOD_DYNAMIC
38731 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38733 MFLAG=SLAPD_MOD_STATIC
38734 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38737 cat >>confdefs.h <<_ACEOF
38738 #define SLAPD_OVER_AUDITLOG $MFLAG
38743 if test "$ol_enable_collect" != no ; then
38744 BUILD_COLLECT=$ol_enable_collect
38745 if test "$ol_enable_collect" = mod ; then
38746 MFLAG=SLAPD_MOD_DYNAMIC
38747 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38749 MFLAG=SLAPD_MOD_STATIC
38750 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38753 cat >>confdefs.h <<_ACEOF
38754 #define SLAPD_OVER_COLLECT $MFLAG
38759 if test "$ol_enable_constraint" != no ; then
38760 BUILD_CONSTRAINT=$ol_enable_constraint
38761 if test "$ol_enable_constraint" = mod ; then
38762 MFLAG=SLAPD_MOD_DYNAMIC
38763 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38765 MFLAG=SLAPD_MOD_STATIC
38766 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38769 cat >>confdefs.h <<_ACEOF
38770 #define SLAPD_OVER_CONSTRAINT $MFLAG
38775 if test "$ol_enable_dds" != no ; then
38776 BUILD_DDS=$ol_enable_dds
38777 if test "$ol_enable_dds" = mod ; then
38778 MFLAG=SLAPD_MOD_DYNAMIC
38779 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38781 MFLAG=SLAPD_MOD_STATIC
38782 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38785 cat >>confdefs.h <<_ACEOF
38786 #define SLAPD_OVER_DDS $MFLAG
38791 if test "$ol_enable_deref" != no ; then
38792 BUILD_DDS=$ol_enable_deref
38793 if test "$ol_enable_deref" = mod ; then
38794 MFLAG=SLAPD_MOD_DYNAMIC
38795 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38797 MFLAG=SLAPD_MOD_STATIC
38798 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38801 cat >>confdefs.h <<_ACEOF
38802 #define SLAPD_OVER_DEREF $MFLAG
38807 if test "$ol_enable_dyngroup" != no ; then
38808 BUILD_DYNGROUP=$ol_enable_dyngroup
38809 if test "$ol_enable_dyngroup" = mod ; then
38810 MFLAG=SLAPD_MOD_DYNAMIC
38811 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38813 MFLAG=SLAPD_MOD_STATIC
38814 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_OVER_DYNGROUP $MFLAG
38823 if test "$ol_enable_dynlist" != no ; then
38824 BUILD_DYNLIST=$ol_enable_dynlist
38825 if test "$ol_enable_dynlist" = mod ; then
38826 MFLAG=SLAPD_MOD_DYNAMIC
38827 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38829 MFLAG=SLAPD_MOD_STATIC
38830 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38833 cat >>confdefs.h <<_ACEOF
38834 #define SLAPD_OVER_DYNLIST $MFLAG
38839 if test "$ol_enable_memberof" != no ; then
38840 BUILD_MEMBEROF=$ol_enable_memberof
38841 if test "$ol_enable_memberof" = mod ; then
38842 MFLAG=SLAPD_MOD_DYNAMIC
38843 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38845 MFLAG=SLAPD_MOD_STATIC
38846 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38849 cat >>confdefs.h <<_ACEOF
38850 #define SLAPD_OVER_MEMBEROF $MFLAG
38855 if test "$ol_enable_ppolicy" != no ; then
38856 BUILD_PPOLICY=$ol_enable_ppolicy
38857 if test "$ol_enable_ppolicy" = mod ; then
38858 MFLAG=SLAPD_MOD_DYNAMIC
38859 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38861 MFLAG=SLAPD_MOD_STATIC
38862 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38865 cat >>confdefs.h <<_ACEOF
38866 #define SLAPD_OVER_PPOLICY $MFLAG
38871 if test "$ol_enable_proxycache" != no ; then
38872 BUILD_PROXYCACHE=$ol_enable_proxycache
38873 if test "$ol_enable_proxycache" = mod ; then
38874 MFLAG=SLAPD_MOD_DYNAMIC
38875 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38877 MFLAG=SLAPD_MOD_STATIC
38878 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38881 cat >>confdefs.h <<_ACEOF
38882 #define SLAPD_OVER_PROXYCACHE $MFLAG
38887 if test "$ol_enable_refint" != no ; then
38888 BUILD_REFINT=$ol_enable_refint
38889 if test "$ol_enable_refint" = mod ; then
38890 MFLAG=SLAPD_MOD_DYNAMIC
38891 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38893 MFLAG=SLAPD_MOD_STATIC
38894 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38897 cat >>confdefs.h <<_ACEOF
38898 #define SLAPD_OVER_REFINT $MFLAG
38903 if test "$ol_enable_retcode" != no ; then
38904 BUILD_RETCODE=$ol_enable_retcode
38905 if test "$ol_enable_retcode" = mod ; then
38906 MFLAG=SLAPD_MOD_DYNAMIC
38907 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38909 MFLAG=SLAPD_MOD_STATIC
38910 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38913 cat >>confdefs.h <<_ACEOF
38914 #define SLAPD_OVER_RETCODE $MFLAG
38919 if test "$ol_enable_rwm" != no ; then
38921 BUILD_RWM=$ol_enable_rwm
38922 if test "$ol_enable_rwm" = mod ; then
38923 MFLAG=SLAPD_MOD_DYNAMIC
38924 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38926 MFLAG=SLAPD_MOD_STATIC
38927 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38930 cat >>confdefs.h <<_ACEOF
38931 #define SLAPD_OVER_RWM $MFLAG
38936 if test "$ol_enable_seqmod" != no ; then
38937 BUILD_SEQMOD=$ol_enable_seqmod
38938 if test "$ol_enable_seqmod" = mod ; then
38939 MFLAG=SLAPD_MOD_DYNAMIC
38940 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38942 MFLAG=SLAPD_MOD_STATIC
38943 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38946 cat >>confdefs.h <<_ACEOF
38947 #define SLAPD_OVER_SEQMOD $MFLAG
38952 if test "$ol_enable_syncprov" != no ; then
38953 BUILD_SYNCPROV=$ol_enable_syncprov
38954 if test "$ol_enable_syncprov" = mod ; then
38955 MFLAG=SLAPD_MOD_DYNAMIC
38956 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38958 MFLAG=SLAPD_MOD_STATIC
38959 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38962 cat >>confdefs.h <<_ACEOF
38963 #define SLAPD_OVER_SYNCPROV $MFLAG
38968 if test "$ol_enable_translucent" != no ; then
38969 BUILD_TRANSLUCENT=$ol_enable_translucent
38970 if test "$ol_enable_translucent" = mod ; then
38971 MFLAG=SLAPD_MOD_DYNAMIC
38972 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38974 MFLAG=SLAPD_MOD_STATIC
38975 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38978 cat >>confdefs.h <<_ACEOF
38979 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38984 if test "$ol_enable_unique" != no ; then
38985 BUILD_UNIQUE=$ol_enable_unique
38986 if test "$ol_enable_unique" = mod ; then
38987 MFLAG=SLAPD_MOD_DYNAMIC
38988 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38990 MFLAG=SLAPD_MOD_STATIC
38991 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38994 cat >>confdefs.h <<_ACEOF
38995 #define SLAPD_OVER_UNIQUE $MFLAG
39000 if test "$ol_enable_valsort" != no ; then
39001 BUILD_VALSORT=$ol_enable_valsort
39002 if test "$ol_enable_valsort" = mod ; then
39003 MFLAG=SLAPD_MOD_DYNAMIC
39004 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39006 MFLAG=SLAPD_MOD_STATIC
39007 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39010 cat >>confdefs.h <<_ACEOF
39011 #define SLAPD_OVER_VALSORT $MFLAG
39016 if test "$ol_enable_rewrite" != no ; then
39018 cat >>confdefs.h <<\_ACEOF
39019 #define ENABLE_REWRITE 1
39025 if test "$ol_enable_slapi" != no ; then
39027 cat >>confdefs.h <<\_ACEOF
39028 #define ENABLE_SLAPI 1
39032 SLAPD_SLAPI_DEPEND=libslapi.a
39037 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39039 SLAPD_MODULES_LDFLAGS=
39133 # Check whether --with-xxinstall was given.
39134 if test "${with_xxinstall+set}" = set; then
39135 withval=$with_xxinstall;
39140 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"
39143 ac_config_commands="$ac_config_commands default"
39147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39148 # Let make expand exec_prefix.
39149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39151 DEFS=-DHAVE_CONFIG_H
39155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39156 # 1. Remove the extension, and $U if already installed.
39157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39158 ac_i=`echo "$ac_i" | sed "$ac_script"`
39159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39160 # will be set to the directory where LIBOBJS objects are built.
39161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39164 LIBOBJS=$ac_libobjs
39166 LTLIBOBJS=$ac_ltlibobjs
39169 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39170 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39171 Usually this means the macro was only invoked conditionally." >&5
39172 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39173 Usually this means the macro was only invoked conditionally." >&2;}
39174 { (exit 1); exit 1; }; }
39176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39177 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39178 Usually this means the macro was only invoked conditionally." >&5
39179 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39180 Usually this means the macro was only invoked conditionally." >&2;}
39181 { (exit 1); exit 1; }; }
39183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39184 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39185 Usually this means the macro was only invoked conditionally." >&5
39186 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39187 Usually this means the macro was only invoked conditionally." >&2;}
39188 { (exit 1); exit 1; }; }
39191 : ${CONFIG_STATUS=./config.status}
39192 ac_clean_files_save=$ac_clean_files
39193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39196 cat >$CONFIG_STATUS <<_ACEOF
39198 # Generated by $as_me.
39199 # Run this file to recreate the current configuration.
39200 # Compiler output produced by configure, useful for debugging
39201 # configure, is in config.log if it exists.
39204 ac_cs_recheck=false
39206 SHELL=\${CONFIG_SHELL-$SHELL}
39209 cat >>$CONFIG_STATUS <<\_ACEOF
39210 ## --------------------- ##
39211 ## M4sh Initialization. ##
39212 ## --------------------- ##
39214 # Be more Bourne compatible
39215 DUALCASE=1; export DUALCASE # for MKS sh
39216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39219 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39220 # is contrary to our usage. Disable this feature.
39221 alias -g '${1+"$@"}'='"$@"'
39222 setopt NO_GLOB_SUBST
39224 case `(set -o) 2>/dev/null` in
39225 *posix*) set -o posix ;;
39234 # Avoid depending upon Character Ranges.
39235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39238 as_cr_digits='0123456789'
39239 as_cr_alnum=$as_cr_Letters$as_cr_digits
39241 # The user is always right.
39242 if test "${PATH_SEPARATOR+set}" != set; then
39243 echo "#! /bin/sh" >conf$$.sh
39244 echo "exit 0" >>conf$$.sh
39246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39254 # Support unset when possible.
39255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39263 # We need space, tab and new line, in precisely that order. Quoting is
39264 # there to prevent editors from complaining about space-tab.
39265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39266 # splitting by setting IFS to empty value.)
39271 # Find who we are. Look in the path if we contain no directory separator.
39273 *[\\/]* ) as_myself=$0 ;;
39274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39275 for as_dir in $PATH
39278 test -z "$as_dir" && as_dir=.
39279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39285 # We did not find ourselves, most probably we were run as `sh COMMAND'
39286 # in which case we are not to be found in the path.
39287 if test "x$as_myself" = x; then
39290 if test ! -f "$as_myself"; then
39291 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39292 { (exit 1); exit 1; }
39295 # Work around bugs in pre-3.0 UWIN ksh.
39296 for as_var in ENV MAIL MAILPATH
39297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39305 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39306 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39307 LC_TELEPHONE LC_TIME
39309 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39310 eval $as_var=C; export $as_var
39312 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39316 # Required to use basename.
39317 if expr a : '\(a\)' >/dev/null 2>&1 &&
39318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39325 as_basename=basename
39331 # Name of the executable.
39332 as_me=`$as_basename -- "$0" ||
39333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39334 X"$0" : 'X\(//\)$' \| \
39335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39337 sed '/^.*\/\([^/][^/]*\)\/*$/{
39356 as_lineno_1=$LINENO
39357 as_lineno_2=$LINENO
39358 test "x$as_lineno_1" != "x$as_lineno_2" &&
39359 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39362 # uniformly replaced by the line number. The first 'sed' inserts a
39363 # line-number line after each line using $LINENO; the second 'sed'
39364 # does the real work. The second script uses 'N' to pair each
39365 # line-number line with the line containing $LINENO, and appends
39366 # trailing '-' during substitution so that $LINENO is not a special
39367 # case at line end.
39368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39369 # scripts with optimization help from Paolo Bonzini. Blame Lee
39370 # E. McMahon (1931-1989) for sed's syntax. :-)
39382 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39385 ' >$as_me.lineno &&
39386 chmod +x "$as_me.lineno" ||
39387 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39388 { (exit 1); exit 1; }; }
39390 # Don't try to exec as it changes $[0], causing all sort of problems
39391 # (the dirname of $[0] is not the place where we might find the
39392 # original and so on. Autoconf is especially sensitive to this).
39393 . "./$as_me.lineno"
39394 # Exit status is that of the last command.
39399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39405 ECHO_C= ECHO_N= ECHO_T=
39406 case `echo -n x` in
39408 case `echo 'x\c'` in
39409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39416 if expr a : '\(a\)' >/dev/null 2>&1 &&
39417 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39423 rm -f conf$$ conf$$.exe conf$$.file
39424 if test -d conf$$.dir; then
39425 rm -f conf$$.dir/conf$$.file
39431 if ln -s conf$$.file conf$$ 2>/dev/null; then
39433 # ... but there are two gotchas:
39434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39436 # In both cases, we have to default to `cp -p'.
39437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39439 elif ln conf$$.file conf$$ 2>/dev/null; then
39444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39445 rmdir conf$$.dir 2>/dev/null
39447 if mkdir -p . 2>/dev/null; then
39450 test -d ./-p && rmdir ./-p
39454 if test -x / >/dev/null 2>&1; then
39455 as_test_x='test -x'
39457 if ls -dL / >/dev/null 2>&1; then
39464 if test -d "$1"; then
39470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39471 ???[sx]*):;;*)false;;esac;fi
39475 as_executable_p=$as_test_x
39477 # Sed expression to map a string onto a valid CPP name.
39478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39480 # Sed expression to map a string onto a valid variable name.
39481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39486 # Save the log message, to keep $[0] and so on meaningful, and to
39487 # report actual input values of CONFIG_FILES etc. instead of their
39488 # values after options handling.
39490 This file was extended by $as_me, which was
39491 generated by GNU Autoconf 2.61. Invocation command line was
39493 CONFIG_FILES = $CONFIG_FILES
39494 CONFIG_HEADERS = $CONFIG_HEADERS
39495 CONFIG_LINKS = $CONFIG_LINKS
39496 CONFIG_COMMANDS = $CONFIG_COMMANDS
39499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39504 cat >>$CONFIG_STATUS <<_ACEOF
39505 # Files that config.status was made for.
39506 config_files="$ac_config_files"
39507 config_headers="$ac_config_headers"
39508 config_commands="$ac_config_commands"
39512 cat >>$CONFIG_STATUS <<\_ACEOF
39514 \`$as_me' instantiates files from templates according to the
39515 current configuration.
39517 Usage: $0 [OPTIONS] [FILE]...
39519 -h, --help print this help, then exit
39520 -V, --version print version number and configuration settings, then exit
39521 -q, --quiet do not print progress messages
39522 -d, --debug don't remove temporary files
39523 --recheck update $as_me by reconfiguring in the same conditions
39524 --file=FILE[:TEMPLATE]
39525 instantiate the configuration file FILE
39526 --header=FILE[:TEMPLATE]
39527 instantiate the configuration header FILE
39529 Configuration files:
39532 Configuration headers:
39535 Configuration commands:
39538 Report bugs to <bug-autoconf@gnu.org>."
39541 cat >>$CONFIG_STATUS <<_ACEOF
39544 configured by $0, generated by GNU Autoconf 2.61,
39545 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39547 Copyright (C) 2006 Free Software Foundation, Inc.
39548 This config.status script is free software; the Free Software Foundation
39549 gives unlimited permission to copy, distribute and modify it."
39556 cat >>$CONFIG_STATUS <<\_ACEOF
39557 # If no file are specified by the user, then we need to provide default
39558 # value. By we need to know if files were specified by the user.
39564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39576 # Handling of the options.
39577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39580 echo "$ac_cs_version"; exit ;;
39581 --debug | --debu | --deb | --de | --d | -d )
39583 --file | --fil | --fi | --f )
39585 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39586 ac_need_defaults=false;;
39587 --header | --heade | --head | --hea )
39589 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39590 ac_need_defaults=false;;
39592 # Conflict between --help and --header
39593 { echo "$as_me: error: ambiguous option: $1
39594 Try \`$0 --help' for more information." >&2
39595 { (exit 1); exit 1; }; };;
39596 --help | --hel | -h )
39597 echo "$ac_cs_usage"; exit ;;
39598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39602 # This is an error.
39603 -*) { echo "$as_me: error: unrecognized option: $1
39604 Try \`$0 --help' for more information." >&2
39605 { (exit 1); exit 1; }; } ;;
39607 *) ac_config_targets="$ac_config_targets $1"
39608 ac_need_defaults=false ;;
39614 ac_configure_extra_args=
39616 if $ac_cs_silent; then
39618 ac_configure_extra_args="$ac_configure_extra_args --silent"
39622 cat >>$CONFIG_STATUS <<_ACEOF
39623 if \$ac_cs_recheck; then
39624 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39625 CONFIG_SHELL=$SHELL
39626 export CONFIG_SHELL
39627 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39631 cat >>$CONFIG_STATUS <<\_ACEOF
39635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39636 ## Running $as_me. ##
39642 cat >>$CONFIG_STATUS <<_ACEOF
39646 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39648 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39649 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39654 cat >>$CONFIG_STATUS <<\_ACEOF
39656 # Handling of arguments.
39657 for ac_config_target in $ac_config_targets
39659 case $ac_config_target in
39660 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39661 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39662 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39665 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39666 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39667 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39668 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39669 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39670 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39671 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39672 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39673 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39674 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39675 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39676 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39677 "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" ;;
39678 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39679 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39680 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39681 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39682 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39683 "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" ;;
39684 "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" ;;
39685 "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" ;;
39686 "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" ;;
39687 "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" ;;
39688 "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" ;;
39689 "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" ;;
39690 "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" ;;
39691 "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" ;;
39692 "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" ;;
39693 "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" ;;
39694 "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" ;;
39695 "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" ;;
39696 "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" ;;
39697 "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" ;;
39698 "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" ;;
39699 "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" ;;
39700 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39701 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39702 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39703 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39704 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39706 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39707 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39708 { (exit 1); exit 1; }; };;
39713 # If the user did not use the arguments to specify the items to instantiate,
39714 # then the envvar interface is used. Set only those that are not.
39715 # We use the long form for the default assignment because of an extremely
39716 # bizarre bug on SunOS 4.1.3.
39717 if $ac_need_defaults; then
39718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39719 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39720 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39723 # Have a temporary directory for convenience. Make it in the build tree
39724 # simply because there is no reason against having it here, and in addition,
39725 # creating and moving files from /tmp can sometimes cause problems.
39726 # Hook for its removal unless debugging.
39727 # Note that there is a small window in which the directory will not be cleaned:
39728 # after its creation but before its name has been assigned to `$tmp'.
39732 trap 'exit_status=$?
39733 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39735 trap '{ (exit 1); exit 1; }' 1 2 13 15
39737 # Create a (secure) tmp directory for tmp files.
39740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39741 test -n "$tmp" && test -d "$tmp"
39744 tmp=./conf$$-$RANDOM
39745 (umask 077 && mkdir "$tmp")
39748 echo "$me: cannot create a temporary directory in ." >&2
39749 { (exit 1); exit 1; }
39753 # Set up the sed scripts for CONFIG_FILES section.
39756 # No need to generate the scripts if there are no CONFIG_FILES.
39757 # This happens for instance when ./config.status config.h
39758 if test -n "$CONFIG_FILES"; then
39765 for ac_last_try in false false false false false :; do
39766 cat >conf$$subs.sed <<_ACEOF
39767 SHELL!$SHELL$ac_delim
39768 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39769 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39770 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39771 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39772 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39773 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39774 exec_prefix!$exec_prefix$ac_delim
39775 prefix!$prefix$ac_delim
39776 program_transform_name!$program_transform_name$ac_delim
39777 bindir!$bindir$ac_delim
39778 sbindir!$sbindir$ac_delim
39779 libexecdir!$libexecdir$ac_delim
39780 datarootdir!$datarootdir$ac_delim
39781 datadir!$datadir$ac_delim
39782 sysconfdir!$sysconfdir$ac_delim
39783 sharedstatedir!$sharedstatedir$ac_delim
39784 localstatedir!$localstatedir$ac_delim
39785 includedir!$includedir$ac_delim
39786 oldincludedir!$oldincludedir$ac_delim
39787 docdir!$docdir$ac_delim
39788 infodir!$infodir$ac_delim
39789 htmldir!$htmldir$ac_delim
39790 dvidir!$dvidir$ac_delim
39791 pdfdir!$pdfdir$ac_delim
39792 psdir!$psdir$ac_delim
39793 libdir!$libdir$ac_delim
39794 localedir!$localedir$ac_delim
39795 mandir!$mandir$ac_delim
39796 DEFS!$DEFS$ac_delim
39797 ECHO_C!$ECHO_C$ac_delim
39798 ECHO_N!$ECHO_N$ac_delim
39799 ECHO_T!$ECHO_T$ac_delim
39800 LIBS!$LIBS$ac_delim
39801 build_alias!$build_alias$ac_delim
39802 host_alias!$host_alias$ac_delim
39803 target_alias!$target_alias$ac_delim
39804 build!$build$ac_delim
39805 build_cpu!$build_cpu$ac_delim
39806 build_vendor!$build_vendor$ac_delim
39807 build_os!$build_os$ac_delim
39808 host!$host$ac_delim
39809 host_cpu!$host_cpu$ac_delim
39810 host_vendor!$host_vendor$ac_delim
39811 host_os!$host_os$ac_delim
39812 target!$target$ac_delim
39813 target_cpu!$target_cpu$ac_delim
39814 target_vendor!$target_vendor$ac_delim
39815 target_os!$target_os$ac_delim
39816 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39817 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39818 INSTALL_DATA!$INSTALL_DATA$ac_delim
39819 CYGPATH_W!$CYGPATH_W$ac_delim
39820 PACKAGE!$PACKAGE$ac_delim
39821 VERSION!$VERSION$ac_delim
39822 ACLOCAL!$ACLOCAL$ac_delim
39823 AUTOCONF!$AUTOCONF$ac_delim
39824 AUTOMAKE!$AUTOMAKE$ac_delim
39825 AUTOHEADER!$AUTOHEADER$ac_delim
39826 MAKEINFO!$MAKEINFO$ac_delim
39827 install_sh!$install_sh$ac_delim
39828 STRIP!$STRIP$ac_delim
39829 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39830 mkdir_p!$mkdir_p$ac_delim
39832 SET_MAKE!$SET_MAKE$ac_delim
39833 am__leading_dot!$am__leading_dot$ac_delim
39834 AMTAR!$AMTAR$ac_delim
39835 am__tar!$am__tar$ac_delim
39836 am__untar!$am__untar$ac_delim
39837 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39838 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39839 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39840 top_builddir!$top_builddir$ac_delim
39841 ldap_subdir!$ldap_subdir$ac_delim
39844 CFLAGS!$CFLAGS$ac_delim
39845 LDFLAGS!$LDFLAGS$ac_delim
39846 CPPFLAGS!$CPPFLAGS$ac_delim
39847 ac_ct_CC!$ac_ct_CC$ac_delim
39848 EXEEXT!$EXEEXT$ac_delim
39849 OBJEXT!$OBJEXT$ac_delim
39850 DEPDIR!$DEPDIR$ac_delim
39851 am__include!$am__include$ac_delim
39852 am__quote!$am__quote$ac_delim
39853 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39854 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39855 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39856 CCDEPMODE!$CCDEPMODE$ac_delim
39857 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39858 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39859 GREP!$GREP$ac_delim
39860 EGREP!$EGREP$ac_delim
39861 LN_S!$LN_S$ac_delim
39862 ECHO!$ECHO$ac_delim
39863 RANLIB!$RANLIB$ac_delim
39866 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39868 elif $ac_last_try; then
39869 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39870 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39871 { (exit 1); exit 1; }; }
39873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39877 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39878 if test -n "$ac_eof"; then
39879 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39880 ac_eof=`expr $ac_eof + 1`
39883 cat >>$CONFIG_STATUS <<_ACEOF
39884 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39888 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39889 s/^/s,@/; s/!/@,|#_!!_#|/
39892 s/'"$ac_delim"'$/,g/; t
39894 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39895 ' >>$CONFIG_STATUS <conf$$subs.sed
39896 rm -f conf$$subs.sed
39897 cat >>$CONFIG_STATUS <<_ACEOF
39903 for ac_last_try in false false false false false :; do
39904 cat >conf$$subs.sed <<_ACEOF
39905 DLLTOOL!$DLLTOOL$ac_delim
39907 OBJDUMP!$OBJDUMP$ac_delim
39909 LIBTOOL!$LIBTOOL$ac_delim
39910 PERLBIN!$PERLBIN$ac_delim
39911 OL_MKDEP!$OL_MKDEP$ac_delim
39912 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39913 LTSTATIC!$LTSTATIC$ac_delim
39914 MYSQL!$MYSQL$ac_delim
39915 LIBOBJS!$LIBOBJS$ac_delim
39916 LIBSRCS!$LIBSRCS$ac_delim
39917 PLAT!$PLAT$ac_delim
39918 WITH_SASL!$WITH_SASL$ac_delim
39919 WITH_TLS!$WITH_TLS$ac_delim
39920 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39921 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39922 BUILD_THREAD!$BUILD_THREAD$ac_delim
39923 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39924 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39925 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39926 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39927 BUILD_BDB!$BUILD_BDB$ac_delim
39928 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39929 BUILD_HDB!$BUILD_HDB$ac_delim
39930 BUILD_LDAP!$BUILD_LDAP$ac_delim
39931 BUILD_META!$BUILD_META$ac_delim
39932 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39933 BUILD_NDB!$BUILD_NDB$ac_delim
39934 BUILD_NULL!$BUILD_NULL$ac_delim
39935 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39936 BUILD_RELAY!$BUILD_RELAY$ac_delim
39937 BUILD_PERL!$BUILD_PERL$ac_delim
39938 BUILD_SHELL!$BUILD_SHELL$ac_delim
39939 BUILD_SOCK!$BUILD_SOCK$ac_delim
39940 BUILD_SQL!$BUILD_SQL$ac_delim
39941 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39942 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39943 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39944 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39945 BUILD_DDS!$BUILD_DDS$ac_delim
39946 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39947 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39948 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39949 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39950 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39951 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39952 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39953 BUILD_REFINT!$BUILD_REFINT$ac_delim
39954 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39955 BUILD_RWM!$BUILD_RWM$ac_delim
39956 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39957 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39958 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39959 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39960 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39961 LDAP_LIBS!$LDAP_LIBS$ac_delim
39962 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39963 BDB_LIBS!$BDB_LIBS$ac_delim
39964 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39965 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39966 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39967 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39968 WRAP_LIBS!$WRAP_LIBS$ac_delim
39969 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39970 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39971 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39972 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39973 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39974 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39975 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39976 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39977 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39978 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39979 KRB4_LIBS!$KRB4_LIBS$ac_delim
39980 KRB5_LIBS!$KRB5_LIBS$ac_delim
39981 SASL_LIBS!$SASL_LIBS$ac_delim
39982 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
39983 TLS_LIBS!$TLS_LIBS$ac_delim
39984 MODULES_LIBS!$MODULES_LIBS$ac_delim
39985 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39986 LIBSLAPI!$LIBSLAPI$ac_delim
39987 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39988 AUTH_LIBS!$AUTH_LIBS$ac_delim
39989 ICU_LIBS!$ICU_LIBS$ac_delim
39990 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39991 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39992 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39993 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39994 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39995 LTLIBOBJS!$LTLIBOBJS$ac_delim
39998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
40000 elif $ac_last_try; then
40001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40003 { (exit 1); exit 1; }; }
40005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40010 if test -n "$ac_eof"; then
40011 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40012 ac_eof=`expr $ac_eof + 1`
40015 cat >>$CONFIG_STATUS <<_ACEOF
40016 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40021 s/^/s,@/; s/!/@,|#_!!_#|/
40024 s/'"$ac_delim"'$/,g/; t
40026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40027 ' >>$CONFIG_STATUS <conf$$subs.sed
40028 rm -f conf$$subs.sed
40029 cat >>$CONFIG_STATUS <<_ACEOF
40036 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40037 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40038 # trailing colons and then remove the whole line if VPATH becomes empty
40039 # (actually we leave an empty line to preserve line numbers).
40040 if test "x$srcdir" = x.; then
40041 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40042 s/:*\$(srcdir):*/:/
40043 s/:*\${srcdir}:*/:/
40045 s/^\([^=]*=[ ]*\):*/\1/
40051 cat >>$CONFIG_STATUS <<\_ACEOF
40052 fi # test -n "$CONFIG_FILES"
40055 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
40058 :[FHLC]) ac_mode=$ac_tag; continue;;
40060 case $ac_mode$ac_tag in
40062 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40063 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40064 { (exit 1); exit 1; }; };;
40065 :[FH]-) ac_tag=-:-;;
40066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40083 -) ac_f="$tmp/stdin";;
40084 *) # Look for the file first in the build tree, then in the source tree
40085 # (if the path is not absolute). The absolute path cannot be DOS-style,
40086 # because $ac_f cannot contain `:'.
40090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40092 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40093 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40094 { (exit 1); exit 1; }; };;
40096 ac_file_inputs="$ac_file_inputs $ac_f"
40099 # Let's still pretend it is `configure' which instantiates (i.e., don't
40100 # use $as_me), people would be surprised to read:
40101 # /* config.h. Generated by config.status. */
40102 configure_input="Generated from "`IFS=:
40103 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40104 if test x"$ac_file" != x-; then
40105 configure_input="$ac_file. $configure_input"
40106 { echo "$as_me:$LINENO: creating $ac_file" >&5
40107 echo "$as_me: creating $ac_file" >&6;}
40111 *:-:* | *:-) cat >"$tmp/stdin";;
40116 ac_dir=`$as_dirname -- "$ac_file" ||
40117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40118 X"$ac_file" : 'X\(//\)[^/]' \| \
40119 X"$ac_file" : 'X\(//\)$' \| \
40120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40126 /^X\(\/\/\)[^/].*/{
40141 -*) as_dir=./$as_dir;;
40143 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40147 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40148 *) as_qdir=$as_dir;;
40150 as_dirs="'$as_qdir' $as_dirs"
40151 as_dir=`$as_dirname -- "$as_dir" ||
40152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40153 X"$as_dir" : 'X\(//\)[^/]' \| \
40154 X"$as_dir" : 'X\(//\)$' \| \
40155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40161 /^X\(\/\/\)[^/].*/{
40174 test -d "$as_dir" && break
40176 test -z "$as_dirs" || eval "mkdir $as_dirs"
40177 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40179 { (exit 1); exit 1; }; }; }
40183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40185 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40186 # A ".." for each directory in $ac_dir_suffix.
40187 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40188 case $ac_top_builddir_sub in
40189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40193 ac_abs_top_builddir=$ac_pwd
40194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40195 # for backward compatibility:
40196 ac_top_builddir=$ac_top_build_prefix
40199 .) # We are building in place.
40201 ac_top_srcdir=$ac_top_builddir_sub
40202 ac_abs_top_srcdir=$ac_pwd ;;
40203 [\\/]* | ?:[\\/]* ) # Absolute name.
40204 ac_srcdir=$srcdir$ac_dir_suffix;
40205 ac_top_srcdir=$srcdir
40206 ac_abs_top_srcdir=$srcdir ;;
40207 *) # Relative name.
40208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40209 ac_top_srcdir=$ac_top_build_prefix$srcdir
40210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40227 cat >>$CONFIG_STATUS <<\_ACEOF
40228 # If the template does not know about datarootdir, expand it.
40229 # FIXME: This hack should be removed a few years after 2.60.
40230 ac_datarootdir_hack=; ac_datarootdir_seen=
40232 case `sed -n '/datarootdir/ {
40241 ' $ac_file_inputs` in
40242 *datarootdir*) ac_datarootdir_seen=yes;;
40243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40244 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40247 cat >>$CONFIG_STATUS <<_ACEOF
40248 ac_datarootdir_hack='
40249 s&@datadir@&$datadir&g
40250 s&@docdir@&$docdir&g
40251 s&@infodir@&$infodir&g
40252 s&@localedir@&$localedir&g
40253 s&@mandir@&$mandir&g
40254 s&\\\${datarootdir}&$datarootdir&g' ;;
40258 # Neutralize VPATH when `$srcdir' = `.'.
40259 # Shell code in configure.ac might set extrasub.
40260 # FIXME: do we really want to maintain this feature?
40261 cat >>$CONFIG_STATUS <<_ACEOF
40265 cat >>$CONFIG_STATUS <<\_ACEOF
40267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40268 s&@configure_input@&$configure_input&;t t
40269 s&@top_builddir@&$ac_top_builddir_sub&;t t
40270 s&@srcdir@&$ac_srcdir&;t t
40271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40272 s&@top_srcdir@&$ac_top_srcdir&;t t
40273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40274 s&@builddir@&$ac_builddir&;t t
40275 s&@abs_builddir@&$ac_abs_builddir&;t t
40276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40277 s&@INSTALL@&$ac_INSTALL&;t t
40278 $ac_datarootdir_hack
40279 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40282 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40284 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40285 which seems to be undefined. Please make sure it is defined." >&5
40286 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40287 which seems to be undefined. Please make sure it is defined." >&2;}
40291 -) cat "$tmp/out"; rm -f "$tmp/out";;
40292 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40301 # Transform confdefs.h into a sed script `conftest.defines', that
40302 # substitutes the proper values into config.h.in to produce config.h.
40303 rm -f conftest.defines conftest.tail
40304 # First, append a space to every undef/define line, to ease matching.
40305 echo 's/$/ /' >conftest.defines
40306 # Then, protect against being on the right side of a sed subst, or in
40307 # an unquoted here document, in config.status. If some macros were
40308 # called several times there might be several #defines for the same
40309 # symbol, which is useless. But do not sort them, since the last
40310 # AC_DEFINE must be honored.
40311 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40312 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40313 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40314 # PARAMS is the parameter list in the macro definition--in most cases, it's
40315 # just an empty string.
40316 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40317 ac_dB='\\)[ (].*,\\1define\\2'
40325 s/^[ ]*#[ ]*define[ ][ ]*//
40330 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40331 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40332 ' >>conftest.defines
40334 # Remove the space that was appended to ease matching.
40335 # Then replace #undef with comments. This is necessary, for
40336 # example, in the case of _POSIX_SOURCE, which is predefined and required
40337 # on some systems where configure will not decide to define it.
40338 # (The regexp can be short, since the line contains either #define or #undef.)
40340 s,^[ #]*u.*,/* & */,' >>conftest.defines
40342 # Break up conftest.defines:
40343 ac_max_sed_lines=50
40345 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40346 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40347 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40349 ac_in='$ac_file_inputs'
40350 ac_out='"$tmp/out1"'
40351 ac_nxt='"$tmp/out2"'
40355 # Write a here document:
40356 cat >>$CONFIG_STATUS <<_ACEOF
40357 # First, check the format of the line:
40358 cat >"\$tmp/defines.sed" <<\\CEOF
40359 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40360 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40364 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40366 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40367 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40368 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40369 grep . conftest.tail >/dev/null || break
40370 rm -f conftest.defines
40371 mv conftest.tail conftest.defines
40373 rm -f conftest.defines conftest.tail
40375 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40376 cat >>$CONFIG_STATUS <<\_ACEOF
40377 if test x"$ac_file" != x-; then
40378 echo "/* $configure_input */" >"$tmp/config.h"
40379 cat "$ac_result" >>"$tmp/config.h"
40380 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40381 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40382 echo "$as_me: $ac_file is unchanged" >&6;}
40385 mv "$tmp/config.h" $ac_file
40388 echo "/* $configure_input */"
40392 # Compute $ac_file's index in $config_headers.
40394 for _am_header in $config_headers :; do
40395 case $_am_header in
40396 $ac_file | $ac_file:* )
40399 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40402 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40403 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40404 X$ac_file : 'X\(//\)[^/]' \| \
40405 X$ac_file : 'X\(//\)$' \| \
40406 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40412 /^X\(\/\/\)[^/].*/{
40424 s/.*/./; q'`/stamp-h$_am_stamp_count
40427 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40428 echo "$as_me: executing $ac_file commands" >&6;}
40433 case $ac_file$ac_mode in
40434 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40435 # Strip MF so we end up with the name of the file.
40436 mf=`echo "$mf" | sed -e 's/:.*$//'`
40437 # Check whether this is an Automake generated Makefile or not.
40438 # We used to match only the files named `Makefile.in', but
40439 # some people rename them; so instead we look at the file content.
40440 # Grep'ing the first line is not enough: some people post-process
40441 # each Makefile.in and add a new line on top of each file to say so.
40442 # So let's grep whole file.
40443 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40444 dirpart=`$as_dirname -- "$mf" ||
40445 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40446 X"$mf" : 'X\(//\)[^/]' \| \
40447 X"$mf" : 'X\(//\)$' \| \
40448 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40454 /^X\(\/\/\)[^/].*/{
40470 # Extract the definition of DEPDIR, am__include, and am__quote
40471 # from the Makefile without running `make'.
40472 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40473 test -z "$DEPDIR" && continue
40474 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40475 test -z "am__include" && continue
40476 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40477 # When using ansi2knr, U may be empty or an underscore; expand it
40478 U=`sed -n 's/^U = //p' < "$mf"`
40479 # Find all dependency output files, they are included files with
40480 # $(DEPDIR) in their names. We invoke sed twice because it is the
40481 # simplest approach to changing $(DEPDIR) to its actual value in the
40483 for file in `sed -n "
40484 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40485 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40486 # Make sure the directory exists.
40487 test -f "$dirpart/$file" && continue
40488 fdir=`$as_dirname -- "$file" ||
40489 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40490 X"$file" : 'X\(//\)[^/]' \| \
40491 X"$file" : 'X\(//\)$' \| \
40492 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40498 /^X\(\/\/\)[^/].*/{
40511 { as_dir=$dirpart/$fdir
40513 -*) as_dir=./$as_dir;;
40515 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40519 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40520 *) as_qdir=$as_dir;;
40522 as_dirs="'$as_qdir' $as_dirs"
40523 as_dir=`$as_dirname -- "$as_dir" ||
40524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40525 X"$as_dir" : 'X\(//\)[^/]' \| \
40526 X"$as_dir" : 'X\(//\)$' \| \
40527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40533 /^X\(\/\/\)[^/].*/{
40546 test -d "$as_dir" && break
40548 test -z "$as_dirs" || eval "mkdir $as_dirs"
40549 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40550 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40551 { (exit 1); exit 1; }; }; }
40552 # echo "creating $dirpart/$file"
40553 echo '# dummy' > "$dirpart/$file"
40560 BACKENDSC="servers/slapd/backends.c"
40561 echo "Making $BACKENDSC"
40563 cat > $BACKENDSC << ENDX
40564 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40566 * Copyright 1998-2009 The OpenLDAP Foundation.
40567 * All rights reserved.
40569 * Redistribution and use in source and binary forms, with or without
40570 * modification, are permitted only as authorized by the OpenLDAP
40573 * A copy of this license is available in the file LICENSE in the
40574 * top-level directory of the distribution or, alternatively, at
40575 * <http://www.OpenLDAP.org/license.html>.
40577 /* This file is automatically generated by configure; please do not edit. */
40579 #include "portable.h"
40583 if test "${STATIC_BACKENDS}"; then
40584 for b in config ${STATIC_BACKENDS}; do
40585 bb=`echo "${b}" | sed -e 's/back-//'`
40586 cat >> $BACKENDSC << ENDX
40587 extern BI_init ${bb}_back_initialize;
40591 cat >> $BACKENDSC << ENDX
40593 BackendInfo slap_binfo[] = {
40596 for b in config ${STATIC_BACKENDS}; do
40597 bb=`echo "${b}" | sed -e 's/back-//'`
40598 echo " Add ${bb} ..."
40599 cat >> $BACKENDSC << ENDX
40600 { "${bb}", ${bb}_back_initialize },
40604 cat >> $BACKENDSC << ENDX
40608 /* end of generated file */
40611 OVERLAYSC="servers/slapd/overlays/statover.c"
40612 echo "Making $OVERLAYSC"
40614 cat > $OVERLAYSC << ENDX
40615 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40617 * Copyright 1998-2009 The OpenLDAP Foundation.
40618 * All rights reserved.
40620 * Redistribution and use in source and binary forms, with or without
40621 * modification, are permitted only as authorized by the OpenLDAP
40624 * A copy of this license is available in the file LICENSE in the
40625 * top-level directory of the distribution or, alternatively, at
40626 * <http://www.OpenLDAP.org/license.html>.
40628 /* This file is automatically generated by configure; please do not edit. */
40630 #include "portable.h"
40634 if test "${STATIC_OVERLAYS}"; then
40635 for o in ${STATIC_OVERLAYS}; do
40636 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40637 cat >> $OVERLAYSC << ENDX
40638 extern OV_init ${oo}_initialize;
40643 cat >> $OVERLAYSC << ENDX
40645 OverlayInit slap_oinfo[] = {
40648 if test "${STATIC_OVERLAYS}"; then
40649 for o in ${STATIC_OVERLAYS}; do
40650 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40651 echo " Add ${oo} ..."
40652 cat >> $OVERLAYSC << ENDX
40653 { "${oo}", ${oo}_initialize },
40658 cat >> $OVERLAYSC << ENDX
40662 /* end of generated file */
40665 if test "${ol_cv_mkdep}" = no; then
40666 echo '(Do not "make depend"; we do not know how to build dependencies)'
40668 echo 'Please run "make depend" to build dependencies'
40676 { (exit 0); exit 0; }
40678 chmod +x $CONFIG_STATUS
40679 ac_clean_files=$ac_clean_files_save
40682 # configure is writing to config.log, and then calls config.status.
40683 # config.status does its own redirection, appending to config.log.
40684 # Unfortunately, on DOS this fails, as config.log is still kept open
40685 # by configure, so config.status won't be able to write to it; its
40686 # output is simply discarded. So we exec the FD to /dev/null,
40687 # effectively closing config.log, so it can be properly (re)opened and
40688 # appended to by config.status. When coming back to configure, we
40689 # need to make the FD available again.
40690 if test "$no_create" != yes; then
40692 ac_config_status_args=
40693 test "$silent" = yes &&
40694 ac_config_status_args="$ac_config_status_args --quiet"
40696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40699 # would make configure fail if this is the last instruction.
40700 $ac_cs_success || { (exit 1); exit 1; }