2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.26 2009/08/13 00:11:16 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
934 SLAPD_MODULES_CPPFLAGS
935 SLAPD_MODULES_LDFLAGS
937 SLAPD_STATIC_BACKENDS
938 SLAPD_DYNAMIC_BACKENDS
939 SLAPD_STATIC_OVERLAYS
940 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 [no]
1604 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1605 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1606 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1607 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1608 --enable-valsort Value Sorting overlay no|yes|mod [no]
1610 Library Generation & Linking Options
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-dependency-tracking speeds up one-time build
1616 --enable-dependency-tracking do not reject slow dependency extractors
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-subdir=DIR change default subdirectory used for installs
1623 --with-cyrus-sasl with Cyrus SASL support [auto]
1624 --with-fetch with fetch(3) URL 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-threads
2958 # Check whether --with-threads was given.
2959 if test "${with_threads+set}" = set; then
2960 withval=$with_threads;
2962 for ol_val in auto nt posix mach pth lwp yes no manual ; 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-threads" >&5
2969 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2970 { (exit 1); exit 1; }; }
2972 ol_with_threads="$ol_arg"
2975 ol_with_threads="auto"
2977 # end --with-threads
2979 # OpenLDAP --with-tls
2981 # Check whether --with-tls was given.
2982 if test "${with_tls+set}" = set; then
2985 for ol_val in auto openssl gnutls yes no ; 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-tls" >&5
2992 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2993 { (exit 1); exit 1; }; }
2995 ol_with_tls="$ol_arg"
3002 # OpenLDAP --with-yielding_select
3004 # Check whether --with-yielding_select was given.
3005 if test "${with_yielding_select+set}" = set; then
3006 withval=$with_yielding_select;
3008 for ol_val in auto yes no manual ; 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-yielding_select" >&5
3015 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3016 { (exit 1); exit 1; }; }
3018 ol_with_yielding_select="$ol_arg"
3021 ol_with_yielding_select="auto"
3023 # end --with-yielding_select
3025 # OpenLDAP --with-mp
3027 # Check whether --with-mp was given.
3028 if test "${with_mp+set}" = set; then
3031 for ol_val in auto longlong long bignum gmp yes no ; 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-mp" >&5
3038 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3039 { (exit 1); exit 1; }; }
3041 ol_with_mp="$ol_arg"
3048 # OpenLDAP --with-odbc
3050 # Check whether --with-odbc was given.
3051 if test "${with_odbc+set}" = set; then
3054 for ol_val in auto iodbc unixodbc odbc32 ; 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-odbc" >&5
3061 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3062 { (exit 1); exit 1; }; }
3064 ol_with_odbc="$ol_arg"
3073 # Check whether --enable-xxslapdoptions was given.
3074 if test "${enable_xxslapdoptions+set}" = set; then
3075 enableval=$enable_xxslapdoptions;
3078 # OpenLDAP --enable-slapd
3080 # Check whether --enable-slapd was given.
3081 if test "${enable_slapd+set}" = set; then
3082 enableval=$enable_slapd;
3084 for ol_val in auto yes no ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_slapd="$ol_arg"
3100 # end --enable-slapd
3101 # OpenLDAP --enable-dynacl
3103 # Check whether --enable-dynacl was given.
3104 if test "${enable_dynacl+set}" = set; then
3105 enableval=$enable_dynacl;
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-dynacl" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_dynacl="$ol_arg"
3123 # end --enable-dynacl
3124 # OpenLDAP --enable-aci
3126 # Check whether --enable-aci was given.
3127 if test "${enable_aci+set}" = set; then
3128 enableval=$enable_aci;
3130 for ol_val in no yes mod ; 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-aci" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_aci="$ol_arg"
3147 # OpenLDAP --enable-cleartext
3149 # Check whether --enable-cleartext was given.
3150 if test "${enable_cleartext+set}" = set; then
3151 enableval=$enable_cleartext;
3153 for ol_val in auto yes no ; 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-cleartext" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_cleartext="$ol_arg"
3166 ol_enable_cleartext=yes
3169 # end --enable-cleartext
3170 # OpenLDAP --enable-crypt
3172 # Check whether --enable-crypt was given.
3173 if test "${enable_crypt+set}" = set; then
3174 enableval=$enable_crypt;
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-crypt" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3184 { (exit 1); exit 1; }; }
3186 ol_enable_crypt="$ol_arg"
3192 # end --enable-crypt
3193 # OpenLDAP --enable-lmpasswd
3195 # Check whether --enable-lmpasswd was given.
3196 if test "${enable_lmpasswd+set}" = set; then
3197 enableval=$enable_lmpasswd;
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-lmpasswd" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_lmpasswd="$ol_arg"
3212 ol_enable_lmpasswd=no
3215 # end --enable-lmpasswd
3216 # OpenLDAP --enable-spasswd
3218 # Check whether --enable-spasswd was given.
3219 if test "${enable_spasswd+set}" = set; then
3220 enableval=$enable_spasswd;
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-spasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3230 { (exit 1); exit 1; }; }
3232 ol_enable_spasswd="$ol_arg"
3235 ol_enable_spasswd=no
3238 # end --enable-spasswd
3239 # OpenLDAP --enable-modules
3241 # Check whether --enable-modules was given.
3242 if test "${enable_modules+set}" = set; then
3243 enableval=$enable_modules;
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-modules" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_modules="$ol_arg"
3258 ol_enable_modules=no
3261 # end --enable-modules
3262 # OpenLDAP --enable-rewrite
3264 # Check whether --enable-rewrite was given.
3265 if test "${enable_rewrite+set}" = set; then
3266 enableval=$enable_rewrite;
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-rewrite" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3276 { (exit 1); exit 1; }; }
3278 ol_enable_rewrite="$ol_arg"
3281 ol_enable_rewrite=auto
3284 # end --enable-rewrite
3285 # OpenLDAP --enable-rlookups
3287 # Check whether --enable-rlookups was given.
3288 if test "${enable_rlookups+set}" = set; then
3289 enableval=$enable_rlookups;
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-rlookups" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_rlookups="$ol_arg"
3304 ol_enable_rlookups=no
3307 # end --enable-rlookups
3308 # OpenLDAP --enable-slapi
3310 # Check whether --enable-slapi was given.
3311 if test "${enable_slapi+set}" = set; then
3312 enableval=$enable_slapi;
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-slapi" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_slapi="$ol_arg"
3330 # end --enable-slapi
3331 # OpenLDAP --enable-slp
3333 # Check whether --enable-slp was given.
3334 if test "${enable_slp+set}" = set; then
3335 enableval=$enable_slp;
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-slp" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_slp="$ol_arg"
3354 # OpenLDAP --enable-wrappers
3356 # Check whether --enable-wrappers was given.
3357 if test "${enable_wrappers+set}" = set; then
3358 enableval=$enable_wrappers;
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-wrappers" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_wrappers="$ol_arg"
3373 ol_enable_wrappers=no
3376 # end --enable-wrappers
3393 # Check whether --enable-xxslapbackends was given.
3394 if test "${enable_xxslapbackends+set}" = set; then
3395 enableval=$enable_xxslapbackends;
3399 # OpenLDAP --enable-backends
3401 # Check whether --enable-backends was given.
3402 if test "${enable_backends+set}" = set; then
3403 enableval=$enable_backends;
3405 for ol_val in no yes mod ; do
3406 if test "$enableval" = "$ol_val" ; then
3410 if test "$ol_arg" = "invalid" ; then
3411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3412 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3413 { (exit 1); exit 1; }; }
3415 ol_enable_backends="$ol_arg"
3419 # end --enable-backends
3420 # OpenLDAP --enable-bdb
3422 # Check whether --enable-bdb was given.
3423 if test "${enable_bdb+set}" = set; then
3424 enableval=$enable_bdb;
3426 for ol_val in no yes mod ; do
3427 if test "$enableval" = "$ol_val" ; then
3431 if test "$ol_arg" = "invalid" ; then
3432 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3434 { (exit 1); exit 1; }; }
3436 ol_enable_bdb="$ol_arg"
3439 ol_enable_bdb=${ol_enable_backends:-yes}
3443 # OpenLDAP --enable-dnssrv
3445 # Check whether --enable-dnssrv was given.
3446 if test "${enable_dnssrv+set}" = set; then
3447 enableval=$enable_dnssrv;
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-dnssrv" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3457 { (exit 1); exit 1; }; }
3459 ol_enable_dnssrv="$ol_arg"
3462 ol_enable_dnssrv=${ol_enable_backends:-no}
3465 # end --enable-dnssrv
3466 # OpenLDAP --enable-hdb
3468 # Check whether --enable-hdb was given.
3469 if test "${enable_hdb+set}" = set; then
3470 enableval=$enable_hdb;
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-hdb" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3480 { (exit 1); exit 1; }; }
3482 ol_enable_hdb="$ol_arg"
3485 ol_enable_hdb=${ol_enable_backends:-yes}
3489 # OpenLDAP --enable-ldap
3491 # Check whether --enable-ldap was given.
3492 if test "${enable_ldap+set}" = set; then
3493 enableval=$enable_ldap;
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-ldap" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3503 { (exit 1); exit 1; }; }
3505 ol_enable_ldap="$ol_arg"
3508 ol_enable_ldap=${ol_enable_backends:-no}
3512 # OpenLDAP --enable-meta
3514 # Check whether --enable-meta was given.
3515 if test "${enable_meta+set}" = set; then
3516 enableval=$enable_meta;
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-meta" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3526 { (exit 1); exit 1; }; }
3528 ol_enable_meta="$ol_arg"
3531 ol_enable_meta=${ol_enable_backends:-no}
3535 # OpenLDAP --enable-monitor
3537 # Check whether --enable-monitor was given.
3538 if test "${enable_monitor+set}" = set; then
3539 enableval=$enable_monitor;
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-monitor" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_monitor="$ol_arg"
3554 ol_enable_monitor=${ol_enable_backends:-yes}
3557 # end --enable-monitor
3558 # OpenLDAP --enable-ndb
3560 # Check whether --enable-ndb was given.
3561 if test "${enable_ndb+set}" = set; then
3562 enableval=$enable_ndb;
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-ndb" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3572 { (exit 1); exit 1; }; }
3574 ol_enable_ndb="$ol_arg"
3577 ol_enable_ndb=${ol_enable_backends:-no}
3581 # OpenLDAP --enable-null
3583 # Check whether --enable-null was given.
3584 if test "${enable_null+set}" = set; then
3585 enableval=$enable_null;
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-null" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3595 { (exit 1); exit 1; }; }
3597 ol_enable_null="$ol_arg"
3600 ol_enable_null=${ol_enable_backends:-no}
3604 # OpenLDAP --enable-passwd
3606 # Check whether --enable-passwd was given.
3607 if test "${enable_passwd+set}" = set; then
3608 enableval=$enable_passwd;
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-passwd" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3618 { (exit 1); exit 1; }; }
3620 ol_enable_passwd="$ol_arg"
3623 ol_enable_passwd=${ol_enable_backends:-no}
3626 # end --enable-passwd
3627 # OpenLDAP --enable-perl
3629 # Check whether --enable-perl was given.
3630 if test "${enable_perl+set}" = set; then
3631 enableval=$enable_perl;
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-perl" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3641 { (exit 1); exit 1; }; }
3643 ol_enable_perl="$ol_arg"
3646 ol_enable_perl=${ol_enable_backends:-no}
3650 # OpenLDAP --enable-relay
3652 # Check whether --enable-relay was given.
3653 if test "${enable_relay+set}" = set; then
3654 enableval=$enable_relay;
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-relay" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3664 { (exit 1); exit 1; }; }
3666 ol_enable_relay="$ol_arg"
3669 ol_enable_relay=${ol_enable_backends:-yes}
3672 # end --enable-relay
3673 # OpenLDAP --enable-shell
3675 # Check whether --enable-shell was given.
3676 if test "${enable_shell+set}" = set; then
3677 enableval=$enable_shell;
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-shell" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3687 { (exit 1); exit 1; }; }
3689 ol_enable_shell="$ol_arg"
3692 ol_enable_shell=${ol_enable_backends:-no}
3695 # end --enable-shell
3696 # OpenLDAP --enable-sock
3698 # Check whether --enable-sock was given.
3699 if test "${enable_sock+set}" = set; then
3700 enableval=$enable_sock;
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-sock" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3710 { (exit 1); exit 1; }; }
3712 ol_enable_sock="$ol_arg"
3715 ol_enable_sock=${ol_enable_backends:-no}
3719 # OpenLDAP --enable-sql
3721 # Check whether --enable-sql was given.
3722 if test "${enable_sql+set}" = set; then
3723 enableval=$enable_sql;
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-sql" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3733 { (exit 1); exit 1; }; }
3735 ol_enable_sql="$ol_arg"
3738 ol_enable_sql=${ol_enable_backends:-no}
3743 Overlays="accesslog \
3764 # Check whether --enable-xxslapoverlays was given.
3765 if test "${enable_xxslapoverlays+set}" = set; then
3766 enableval=$enable_xxslapoverlays;
3770 # OpenLDAP --enable-overlays
3772 # Check whether --enable-overlays was given.
3773 if test "${enable_overlays+set}" = set; then
3774 enableval=$enable_overlays;
3776 for ol_val in no yes mod ; do
3777 if test "$enableval" = "$ol_val" ; then
3781 if test "$ol_arg" = "invalid" ; then
3782 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3783 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3784 { (exit 1); exit 1; }; }
3786 ol_enable_overlays="$ol_arg"
3790 # end --enable-overlays
3791 # OpenLDAP --enable-accesslog
3793 # Check whether --enable-accesslog was given.
3794 if test "${enable_accesslog+set}" = set; then
3795 enableval=$enable_accesslog;
3797 for ol_val in no yes mod ; do
3798 if test "$enableval" = "$ol_val" ; then
3802 if test "$ol_arg" = "invalid" ; then
3803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3805 { (exit 1); exit 1; }; }
3807 ol_enable_accesslog="$ol_arg"
3810 ol_enable_accesslog=${ol_enable_overlays:-no}
3813 # end --enable-accesslog
3815 # OpenLDAP --enable-auditlog
3817 # Check whether --enable-auditlog was given.
3818 if test "${enable_auditlog+set}" = set; then
3819 enableval=$enable_auditlog;
3821 for ol_val in no yes mod ; do
3822 if test "$enableval" = "$ol_val" ; then
3826 if test "$ol_arg" = "invalid" ; then
3827 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3828 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3829 { (exit 1); exit 1; }; }
3831 ol_enable_auditlog="$ol_arg"
3834 ol_enable_auditlog=${ol_enable_overlays:-no}
3837 # end --enable-auditlog
3839 # OpenLDAP --enable-collect
3841 # Check whether --enable-collect was given.
3842 if test "${enable_collect+set}" = set; then
3843 enableval=$enable_collect;
3845 for ol_val in no yes mod ; do
3846 if test "$enableval" = "$ol_val" ; then
3850 if test "$ol_arg" = "invalid" ; then
3851 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3852 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3853 { (exit 1); exit 1; }; }
3855 ol_enable_collect="$ol_arg"
3858 ol_enable_collect=${ol_enable_overlays:-no}
3861 # end --enable-collect
3863 # OpenLDAP --enable-constraint
3865 # Check whether --enable-constraint was given.
3866 if test "${enable_constraint+set}" = set; then
3867 enableval=$enable_constraint;
3869 for ol_val in no yes mod ; do
3870 if test "$enableval" = "$ol_val" ; then
3874 if test "$ol_arg" = "invalid" ; then
3875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3876 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3877 { (exit 1); exit 1; }; }
3879 ol_enable_constraint="$ol_arg"
3882 ol_enable_constraint=${ol_enable_overlays:-no}
3885 # end --enable-constraint
3887 # OpenLDAP --enable-dds
3889 # Check whether --enable-dds was given.
3890 if test "${enable_dds+set}" = set; then
3891 enableval=$enable_dds;
3893 for ol_val in no yes mod ; do
3894 if test "$enableval" = "$ol_val" ; then
3898 if test "$ol_arg" = "invalid" ; then
3899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3900 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3901 { (exit 1); exit 1; }; }
3903 ol_enable_dds="$ol_arg"
3906 ol_enable_dds=${ol_enable_overlays:-no}
3911 # OpenLDAP --enable-deref
3913 # Check whether --enable-deref was given.
3914 if test "${enable_deref+set}" = set; then
3915 enableval=$enable_deref;
3917 for ol_val in no yes mod ; do
3918 if test "$enableval" = "$ol_val" ; then
3922 if test "$ol_arg" = "invalid" ; then
3923 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3924 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3925 { (exit 1); exit 1; }; }
3927 ol_enable_deref="$ol_arg"
3930 ol_enable_deref=${ol_enable_overlays:-no}
3933 # end --enable-deref
3935 # OpenLDAP --enable-dyngroup
3937 # Check whether --enable-dyngroup was given.
3938 if test "${enable_dyngroup+set}" = set; then
3939 enableval=$enable_dyngroup;
3941 for ol_val in no yes mod ; do
3942 if test "$enableval" = "$ol_val" ; then
3946 if test "$ol_arg" = "invalid" ; then
3947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3948 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3949 { (exit 1); exit 1; }; }
3951 ol_enable_dyngroup="$ol_arg"
3954 ol_enable_dyngroup=${ol_enable_overlays:-no}
3957 # end --enable-dyngroup
3959 # OpenLDAP --enable-dynlist
3961 # Check whether --enable-dynlist was given.
3962 if test "${enable_dynlist+set}" = set; then
3963 enableval=$enable_dynlist;
3965 for ol_val in no yes mod ; do
3966 if test "$enableval" = "$ol_val" ; then
3970 if test "$ol_arg" = "invalid" ; then
3971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3972 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3973 { (exit 1); exit 1; }; }
3975 ol_enable_dynlist="$ol_arg"
3978 ol_enable_dynlist=${ol_enable_overlays:-no}
3981 # end --enable-dynlist
3983 # OpenLDAP --enable-memberof
3985 # Check whether --enable-memberof was given.
3986 if test "${enable_memberof+set}" = set; then
3987 enableval=$enable_memberof;
3989 for ol_val in no yes mod ; do
3990 if test "$enableval" = "$ol_val" ; then
3994 if test "$ol_arg" = "invalid" ; then
3995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3996 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3997 { (exit 1); exit 1; }; }
3999 ol_enable_memberof="$ol_arg"
4002 ol_enable_memberof=${ol_enable_overlays:-no}
4005 # end --enable-memberof
4007 # OpenLDAP --enable-ppolicy
4009 # Check whether --enable-ppolicy was given.
4010 if test "${enable_ppolicy+set}" = set; then
4011 enableval=$enable_ppolicy;
4013 for ol_val in no yes mod ; do
4014 if test "$enableval" = "$ol_val" ; then
4018 if test "$ol_arg" = "invalid" ; then
4019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4020 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4021 { (exit 1); exit 1; }; }
4023 ol_enable_ppolicy="$ol_arg"
4026 ol_enable_ppolicy=${ol_enable_overlays:-no}
4029 # end --enable-ppolicy
4031 # OpenLDAP --enable-proxycache
4033 # Check whether --enable-proxycache was given.
4034 if test "${enable_proxycache+set}" = set; then
4035 enableval=$enable_proxycache;
4037 for ol_val in no yes mod ; do
4038 if test "$enableval" = "$ol_val" ; then
4042 if test "$ol_arg" = "invalid" ; then
4043 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4044 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4045 { (exit 1); exit 1; }; }
4047 ol_enable_proxycache="$ol_arg"
4050 ol_enable_proxycache=${ol_enable_overlays:-no}
4053 # end --enable-proxycache
4055 # OpenLDAP --enable-refint
4057 # Check whether --enable-refint was given.
4058 if test "${enable_refint+set}" = set; then
4059 enableval=$enable_refint;
4061 for ol_val in no yes mod ; do
4062 if test "$enableval" = "$ol_val" ; then
4066 if test "$ol_arg" = "invalid" ; then
4067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4068 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4069 { (exit 1); exit 1; }; }
4071 ol_enable_refint="$ol_arg"
4074 ol_enable_refint=${ol_enable_overlays:-no}
4077 # end --enable-refint
4079 # OpenLDAP --enable-retcode
4081 # Check whether --enable-retcode was given.
4082 if test "${enable_retcode+set}" = set; then
4083 enableval=$enable_retcode;
4085 for ol_val in no yes mod ; do
4086 if test "$enableval" = "$ol_val" ; then
4090 if test "$ol_arg" = "invalid" ; then
4091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4092 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4093 { (exit 1); exit 1; }; }
4095 ol_enable_retcode="$ol_arg"
4098 ol_enable_retcode=${ol_enable_overlays:-no}
4101 # end --enable-retcode
4103 # OpenLDAP --enable-rwm
4105 # Check whether --enable-rwm was given.
4106 if test "${enable_rwm+set}" = set; then
4107 enableval=$enable_rwm;
4109 for ol_val in no yes mod ; do
4110 if test "$enableval" = "$ol_val" ; then
4114 if test "$ol_arg" = "invalid" ; then
4115 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4116 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4117 { (exit 1); exit 1; }; }
4119 ol_enable_rwm="$ol_arg"
4122 ol_enable_rwm=${ol_enable_overlays:-no}
4127 # OpenLDAP --enable-seqmod
4129 # Check whether --enable-seqmod was given.
4130 if test "${enable_seqmod+set}" = set; then
4131 enableval=$enable_seqmod;
4133 for ol_val in no yes mod ; do
4134 if test "$enableval" = "$ol_val" ; then
4138 if test "$ol_arg" = "invalid" ; then
4139 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4140 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4141 { (exit 1); exit 1; }; }
4143 ol_enable_seqmod="$ol_arg"
4146 ol_enable_seqmod=${ol_enable_overlays:-no}
4149 # end --enable-seqmod
4151 # OpenLDAP --enable-sssvlv
4153 # Check whether --enable-sssvlv was given.
4154 if test "${enable_sssvlv+set}" = set; then
4155 enableval=$enable_sssvlv;
4157 for ol_val in no yes mod ; do
4158 if test "$enableval" = "$ol_val" ; then
4162 if test "$ol_arg" = "invalid" ; then
4163 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4164 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4165 { (exit 1); exit 1; }; }
4167 ol_enable_sssvlv="$ol_arg"
4170 ol_enable_sssvlv=${ol_enable_overlays:-no}
4173 # end --enable-sssvlv
4175 # OpenLDAP --enable-syncprov
4177 # Check whether --enable-syncprov was given.
4178 if test "${enable_syncprov+set}" = set; then
4179 enableval=$enable_syncprov;
4181 for ol_val in no yes mod ; do
4182 if test "$enableval" = "$ol_val" ; then
4186 if test "$ol_arg" = "invalid" ; then
4187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4188 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4189 { (exit 1); exit 1; }; }
4191 ol_enable_syncprov="$ol_arg"
4194 ol_enable_syncprov=${ol_enable_overlays:-yes}
4197 # end --enable-syncprov
4199 # OpenLDAP --enable-translucent
4201 # Check whether --enable-translucent was given.
4202 if test "${enable_translucent+set}" = set; then
4203 enableval=$enable_translucent;
4205 for ol_val in no yes mod ; do
4206 if test "$enableval" = "$ol_val" ; then
4210 if test "$ol_arg" = "invalid" ; then
4211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4212 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4213 { (exit 1); exit 1; }; }
4215 ol_enable_translucent="$ol_arg"
4218 ol_enable_translucent=${ol_enable_overlays:-no}
4221 # end --enable-translucent
4223 # OpenLDAP --enable-unique
4225 # Check whether --enable-unique was given.
4226 if test "${enable_unique+set}" = set; then
4227 enableval=$enable_unique;
4229 for ol_val in no yes mod ; do
4230 if test "$enableval" = "$ol_val" ; then
4234 if test "$ol_arg" = "invalid" ; then
4235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4236 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4237 { (exit 1); exit 1; }; }
4239 ol_enable_unique="$ol_arg"
4242 ol_enable_unique=${ol_enable_overlays:-no}
4245 # end --enable-unique
4247 # OpenLDAP --enable-valsort
4249 # Check whether --enable-valsort was given.
4250 if test "${enable_valsort+set}" = set; then
4251 enableval=$enable_valsort;
4253 for ol_val in no yes mod ; do
4254 if test "$enableval" = "$ol_val" ; then
4258 if test "$ol_arg" = "invalid" ; then
4259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4260 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4261 { (exit 1); exit 1; }; }
4263 ol_enable_valsort="$ol_arg"
4266 ol_enable_valsort=${ol_enable_overlays:-no}
4269 # end --enable-valsort
4272 # Check whether --enable-xxliboptions was given.
4273 if test "${enable_xxliboptions+set}" = set; then
4274 enableval=$enable_xxliboptions;
4277 # Check whether --enable-static was given.
4278 if test "${enable_static+set}" = set; then
4279 enableval=$enable_static; p=${PACKAGE-default}
4281 yes) enable_static=yes ;;
4282 no) enable_static=no ;;
4285 # Look at the argument we got. We use all the common list separators.
4286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287 for pkg in $enableval; do
4289 if test "X$pkg" = "X$p"; then
4301 # Check whether --enable-shared was given.
4302 if test "${enable_shared+set}" = set; then
4303 enableval=$enable_shared; p=${PACKAGE-default}
4305 yes) enable_shared=yes ;;
4306 no) enable_shared=no ;;
4309 # Look at the argument we got. We use all the common list separators.
4310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311 for pkg in $enableval; do
4313 if test "X$pkg" = "X$p"; then
4328 if test $ol_enable_slapd = no ; then
4329 if test $ol_enable_slapi = yes ; then
4330 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4331 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4333 case "$ol_enable_backends" in yes | mod)
4334 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4335 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4337 for i in $Backends; do
4338 eval "ol_tmp=\$ol_enable_$i"
4339 if test $ol_tmp != no ; then
4340 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4341 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4342 eval "ol_enable_$i=no"
4345 if test $ol_enable_modules = yes ; then
4346 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4347 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4349 if test $ol_enable_wrappers = yes ; then
4350 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4351 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4353 if test $ol_enable_rlookups = yes ; then
4354 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4355 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4357 if test $ol_enable_dynacl = yes ; then
4358 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4359 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4361 if test $ol_enable_aci != no ; then
4362 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4365 if test $ol_enable_rewrite = yes ; then
4366 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4367 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4369 case "$ol_enable_overlays" in yes | mod)
4370 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4371 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4373 for i in $Overlays; do
4374 eval "ol_tmp=\$ol_enable_$i"
4375 if test $ol_tmp != no ; then
4376 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4378 eval "ol_enable_$i=no"
4382 # force settings to no
4387 ol_enable_modules=no
4388 ol_enable_rlookups=no
4391 ol_enable_wrappers=no
4393 ol_enable_rewrite=no
4395 elif test $ol_enable_modules != yes &&
4396 test $ol_enable_bdb = no &&
4397 test $ol_enable_dnssrv = no &&
4398 test $ol_enable_hdb = no &&
4399 test $ol_enable_ldap = no &&
4400 test $ol_enable_meta = no &&
4401 test $ol_enable_monitor = no &&
4402 test $ol_enable_ndb = no &&
4403 test $ol_enable_null = no &&
4404 test $ol_enable_passwd = no &&
4405 test $ol_enable_perl = no &&
4406 test $ol_enable_relay = no &&
4407 test $ol_enable_shell = no &&
4408 test $ol_enable_sock = no &&
4409 test $ol_enable_sql = no ; then
4411 if test $ol_enable_slapd = yes ; then
4412 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4413 echo "$as_me: error: slapd requires a backend" >&2;}
4414 { (exit 1); exit 1; }; }
4416 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4417 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4422 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4423 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4424 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4425 { (exit 1); exit 1; }; }
4428 if test $ol_enable_lmpasswd = yes ; then
4429 if test $ol_with_tls = no ; then
4430 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4431 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4432 { (exit 1); exit 1; }; }
4436 if test $ol_enable_spasswd = yes ; then
4437 if test $ol_with_cyrus_sasl = no ; then
4438 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4439 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4440 { (exit 1); exit 1; }; }
4442 ol_with_cyrus_sasl=yes
4445 { echo "$as_me:$LINENO: result: done" >&5
4446 echo "${ECHO_T}done" >&6; }
4496 BUILD_TRANSLUCENT=no
4500 SLAPD_STATIC_OVERLAYS=
4501 SLAPD_DYNAMIC_OVERLAYS=
4503 SLAPD_MODULES_LDFLAGS=
4504 SLAPD_MODULES_CPPFLAGS=
4506 SLAPD_STATIC_BACKENDS=back-ldif
4507 SLAPD_DYNAMIC_BACKENDS=
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_MKVERSION 1
4542 *-*-aix*) if test -z "$CC" ; then
4543 case "$ol_with_threads" in
4544 auto | yes | posix) ol_aix_threads=yes ;;
4550 if test $ol_aix_threads = yes ; then
4551 if test -z "${CC}" ; then
4552 for ac_prog in cc_r xlc_r cc
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC="$CC" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_CC="$ac_prog"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 if test -n "$CC"; then
4583 { echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 test -n "$CC" && break
4595 if test "$CC" = cc ; then
4596 if test $ol_with_threads != auto ; then
4597 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4598 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4599 { (exit 1); exit 1; }; }
4601 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4602 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4608 case ${CC} in cc_r | xlc_r)
4609 ol_with_threads=posix
4610 ol_cv_pthread_create=yes
4615 if test -z "${CC}"; then
4616 for ac_prog in cc gcc
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_prog"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 test -n "$CC" && break
4657 test -n "$CC" || CC="missing"
4660 if test "${CC}" = "missing" ; then
4661 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4662 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4663 { (exit 1); exit 1; }; }
4667 if test -z "${AR}"; then
4668 for ac_prog in ar gar
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$AR"; then
4678 ac_cv_prog_AR="$AR" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_AR="$ac_prog"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test -n "$AR"; then
4699 { echo "$as_me:$LINENO: result: $AR" >&5
4700 echo "${ECHO_T}$AR" >&6; }
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4707 test -n "$AR" && break
4709 test -n "$AR" || AR="missing"
4712 if test "${AR}" = "missing" ; then
4713 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4714 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4715 { (exit 1); exit 1; }; }
4723 # Check whether --enable-fast-install was given.
4724 if test "${enable_fast_install+set}" = set; then
4725 enableval=$enable_fast_install; p=${PACKAGE-default}
4727 yes) enable_fast_install=yes ;;
4728 no) enable_fast_install=no ;;
4730 enable_fast_install=no
4731 # Look at the argument we got. We use all the common list separators.
4732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4733 for pkg in $enableval; do
4735 if test "X$pkg" = "X$p"; then
4736 enable_fast_install=yes
4743 enable_fast_install=yes
4747 DEPDIR="${am__leading_dot}deps"
4749 ac_config_commands="$ac_config_commands depfiles"
4752 am_make=${MAKE-make}
4753 cat > confinc << 'END'
4758 # If we don't find an include directive, just comment out the code.
4759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4764 # First try GNU make style include.
4765 echo "include confinc" > confmf
4766 # We grep out `Entering directory' and `Leaving directory'
4767 # messages which can occur if `w' ends up in MAKEFLAGS.
4768 # In particular we don't look at `^make:' because GNU make might
4769 # be invoked under some other name (usually "gmake"), in which
4770 # case it prints its new name instead of `make'.
4771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4776 # Now try BSD make style include.
4777 if test "$am__include" = "#"; then
4778 echo '.include "confinc"' > confmf
4779 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780 am__include=.include
4787 { echo "$as_me:$LINENO: result: $_am_result" >&5
4788 echo "${ECHO_T}$_am_result" >&6; }
4789 rm -f confinc confmf
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then
4793 enableval=$enable_dependency_tracking;
4796 if test "x$enable_dependency_tracking" != xno; then
4797 am_depcomp="$ac_aux_dir/depcomp"
4802 if test "x$enable_dependency_tracking" != xno; then
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 if test -n "$CC"; then
4847 { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4856 if test -z "$ac_cv_prog_CC"; then
4858 # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_CC="gcc"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4890 { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4894 if test "x$ac_ct_CC" = x; then
4897 case $cross_compiling:$ac_tool_warned in
4899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet. If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&5
4902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4903 whose name does not start with the host triplet. If you think this
4904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 ac_tool_warned=yes ;;
4913 if test -z "$CC"; then
4914 if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}cc; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_CC="${ac_tool_prefix}cc"
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 if test -n "$CC"; then
4944 { echo "$as_me:$LINENO: result: $CC" >&5
4945 echo "${ECHO_T}$CC" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4954 if test -z "$CC"; then
4955 # Extract the first word of "cc", so it can be a program name with args.
4956 set dummy cc; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974 ac_prog_rejected=yes
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 if test $ac_prog_rejected = yes; then
4986 # We found a bogon in the path, so make sure we never use it.
4987 set dummy $ac_cv_prog_CC
4989 if test $# != 0; then
4990 # We chose a different compiler from the bogus one.
4991 # However, it has the same basename, so the bogon will be chosen
4992 # first if we set CC to just the basename; use the full file name.
4994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5000 if test -n "$CC"; then
5001 { echo "$as_me:$LINENO: result: $CC" >&5
5002 echo "${ECHO_T}$CC" >&6; }
5004 { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5010 if test -z "$CC"; then
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog in cl.exe
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -n "$CC"; then
5022 ac_cv_prog_CC="$CC" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test -n "$CC"; then
5043 { echo "$as_me:$LINENO: result: $CC" >&5
5044 echo "${ECHO_T}$CC" >&6; }
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5051 test -n "$CC" && break
5054 if test -z "$CC"; then
5056 for ac_prog in cl.exe
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$ac_ct_CC"; then
5066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_ac_ct_CC="$ac_prog"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086 if test -n "$ac_ct_CC"; then
5087 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5088 echo "${ECHO_T}$ac_ct_CC" >&6; }
5090 { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5095 test -n "$ac_ct_CC" && break
5098 if test "x$ac_ct_CC" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet. If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet. If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5124 # Provide some information about the compiler.
5125 echo "$as_me:$LINENO: checking for C compiler version" >&5
5126 ac_compiler=`set X $ac_compile; echo $2`
5127 { (ac_try="$ac_compiler --version >&5"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compiler --version >&5") 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }
5137 { (ac_try="$ac_compiler -v >&5"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compiler -v >&5") 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }
5147 { (ac_try="$ac_compiler -V >&5"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compiler -V >&5") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5158 cat >conftest.$ac_ext <<_ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5173 ac_clean_files_save=$ac_clean_files
5174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5175 # Try to create an executable without -o first, disregard a.out.
5176 # It will help us diagnose broken compilers, and finding out an intuition
5178 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5182 # List of possible output files, starting from the most likely.
5183 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5184 # only as a last resort. b.out is created by i960 compilers.
5185 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5187 # The IRIX 6 linker writes into existing files which may not be
5188 # executable, retaining their permissions. Remove them first so a
5189 # subsequent execution test works.
5191 for ac_file in $ac_files
5194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5200 if { (ac_try="$ac_link_default"
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_link_default") 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5213 # so that the user can short-circuit this test for compilers unknown to
5215 for ac_file in $ac_files ''
5217 test -f "$ac_file" || continue
5219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5222 # We found the default executable, but exeext='' is most
5226 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5230 # We set ac_cv_exeext here because the later test for it is not
5231 # safe: cross compilers may not add the suffix if given an `-o'
5232 # argument, so we may need to know it at that point already.
5233 # Even if this section looks crufty: it has the advantage of
5240 test "$ac_cv_exeext" = no && ac_cv_exeext=
5246 { echo "$as_me:$LINENO: result: $ac_file" >&5
5247 echo "${ECHO_T}$ac_file" >&6; }
5248 if test -z "$ac_file"; then
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&2;}
5256 { (exit 77); exit 77; }; }
5259 ac_exeext=$ac_cv_exeext
5261 # Check that the compiler produces executables we can run. If not, either
5262 # the compiler is broken, or we cross compile.
5263 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5266 # If not cross compiling, check that we can run a simple program.
5267 if test "$cross_compiling" != yes; then
5268 if { ac_try='./$ac_file'
5269 { (case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_try") 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5280 if test "$cross_compiling" = maybe; then
5283 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5284 If you meant to cross compile, use \`--host'.
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: cannot run C compiled programs.
5287 If you meant to cross compile, use \`--host'.
5288 See \`config.log' for more details." >&2;}
5289 { (exit 1); exit 1; }; }
5293 { echo "$as_me:$LINENO: result: yes" >&5
5294 echo "${ECHO_T}yes" >&6; }
5296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5297 ac_clean_files=$ac_clean_files_save
5298 # Check that the compiler produces executables we can run. If not, either
5299 # the compiler is broken, or we cross compile.
5300 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5302 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5303 echo "${ECHO_T}$cross_compiling" >&6; }
5305 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5307 if { (ac_try="$ac_link"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_link") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; then
5317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5319 # work properly (i.e., refer to `conftest.exe'), while it won't with
5321 for ac_file in conftest.exe conftest conftest.*; do
5322 test -f "$ac_file" || continue
5324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5331 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&5
5333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&2;}
5335 { (exit 1); exit 1; }; }
5338 rm -f conftest$ac_cv_exeext
5339 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5340 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5342 rm -f conftest.$ac_ext
5343 EXEEXT=$ac_cv_exeext
5345 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5347 if test "${ac_cv_objext+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5365 rm -f conftest.o conftest.obj
5366 if { (ac_try="$ac_compile"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; then
5376 for ac_file in conftest.o conftest.obj conftest.*; do
5377 test -f "$ac_file" || continue;
5379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&2;}
5392 { (exit 1); exit 1; }; }
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5398 echo "${ECHO_T}$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5455 GCC=`test $ac_compiler_gnu = yes && echo yes`
5456 ac_test_CFLAGS=${CFLAGS+set}
5457 ac_save_CFLAGS=$CFLAGS
5458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5460 if test "${ac_cv_prog_cc_g+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_save_c_werror_flag=$ac_c_werror_flag
5464 ac_c_werror_flag=yes
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_c_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_c_werror_flag=$ac_save_c_werror_flag
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_c_werror_flag=$ac_save_c_werror_flag
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596 CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598 if test "$GCC" = yes; then
5604 if test "$GCC" = yes; then
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_cv_prog_cc_c89=no
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5641 s = g (p, va_arg (v,int));
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5647 function prototypes and stuff, but not '\xHH' hex character constants.
5648 These don't provoke an error unfortunately, instead are silently treated
5649 as 'x'. The following induces an error, until -std is added to get
5650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5651 array size at least. It's necessary to write '\x00'==0 to get something
5652 that's true only with -std. */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656 inside strings and character constants. */
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5677 CC="$ac_save_CC $ac_arg"
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_prog_cc_c89=$ac_arg
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5706 rm -f conftest.$ac_ext
5711 case "x$ac_cv_prog_cc_c89" in
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 depcc="$CC" am_compiler_list=
5733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5739 # We make a subdir and do the tests there. Otherwise we can end up
5740 # making bogus files that we don't know about and never remove. For
5741 # instance it was reported that on HP-UX the gcc test will end up
5742 # making a dummy file named `D' -- because `-MD' means `put the output
5745 # Copy depcomp to subdir because otherwise we won't find it if we're
5746 # using a relative directory.
5747 cp "$am_depcomp" conftest.dir
5749 # We will build objects and dependencies in a subdirectory because
5750 # it helps to detect inapplicable dependency modes. For instance
5751 # both Tru64's cc and ICC support -MD to output dependencies as a
5752 # side effect of compilation, but ICC will put the dependencies in
5753 # the current directory while Tru64 will put them in the object
5757 am_cv_CC_dependencies_compiler_type=none
5758 if test "$am_compiler_list" = ""; then
5759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5761 for depmode in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5770 for i in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub/conftst$i.h
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5780 # after this tag, mechanisms are not by side-effect, so they'll
5781 # only be used when explicitly requested
5782 if test "x$enable_dependency_tracking" = xyes; then
5790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791 # mode. It turns out that the SunPro C++ compiler does not properly
5792 # handle `-M -o', and we need to detect this.
5793 if depmode=$depmode \
5794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5797 >/dev/null 2>conftest.err &&
5798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801 # icc doesn't choke on unknown options, it will just issue warnings
5802 # or remarks (even with -Werror). So we grep stderr for any message
5803 # that says an option was ignored or not supported.
5804 # When given -MP, icc 7.0 and 7.1 complain thusly:
5805 # icc: Command line warning: ignoring option '-M'; no argument required
5806 # The diagnosis changed in icc 8.0:
5807 # icc: Command line remark: option '-MP' not supported
5808 if (grep 'ignoring option' conftest.err ||
5809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810 am_cv_CC_dependencies_compiler_type=$depmode
5819 am_cv_CC_dependencies_compiler_type=none
5823 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5830 test "x$enable_dependency_tracking" != xno \
5831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5833 am__fastdepCC_FALSE='#'
5835 am__fastdepCC_TRUE='#'
5836 am__fastdepCC_FALSE=
5840 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5842 if test "${lt_cv_path_SED+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 # Loop through the user's path and test for sed and gsed.
5846 # Then use that list of sed's as ones to test for truncation.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for lt_ac_prog in sed gsed; do
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5855 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5863 # along with /bin/sed that truncates output.
5864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5865 test ! -f $lt_ac_sed && continue
5866 cat /dev/null > conftest.in
5868 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5869 # Check for GNU sed and select it if it is found.
5870 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5871 lt_cv_path_SED=$lt_ac_sed
5875 cat conftest.in conftest.in >conftest.tmp
5876 mv conftest.tmp conftest.in
5877 cp conftest.in conftest.nl
5879 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5880 cmp -s conftest.out conftest.nl || break
5881 # 10000 chars as input seems more than enough
5882 test $lt_ac_count -gt 10 && break
5883 lt_ac_count=`expr $lt_ac_count + 1`
5884 if test $lt_ac_count -gt $lt_ac_max; then
5885 lt_ac_max=$lt_ac_count
5886 lt_cv_path_SED=$lt_ac_sed
5894 { echo "$as_me:$LINENO: result: $SED" >&5
5895 echo "${ECHO_T}$SED" >&6; }
5897 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5898 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 # Extract the first word of "grep ggrep" to use in msg output
5903 if test -z "$GREP"; then
5904 set dummy grep ggrep; ac_prog_name=$2
5905 if test "${ac_cv_path_GREP+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_path_GREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in grep ggrep; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5918 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5919 # Check for GNU ac_path_GREP and select it if it is found.
5920 # Check for GNU $ac_path_GREP
5921 case `"$ac_path_GREP" --version 2>&1` in
5923 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5926 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5929 cat "conftest.in" "conftest.in" >"conftest.tmp"
5930 mv "conftest.tmp" "conftest.in"
5931 cp "conftest.in" "conftest.nl"
5932 echo 'GREP' >> "conftest.nl"
5933 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935 ac_count=`expr $ac_count + 1`
5936 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5937 # Best one so far, save it but keep looking for a better one
5938 ac_cv_path_GREP="$ac_path_GREP"
5939 ac_path_GREP_max=$ac_count
5941 # 10*(2^10) chars as input seems more than enough
5942 test $ac_count -gt 10 && break
5944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5948 $ac_path_GREP_found && break 3
5958 GREP="$ac_cv_path_GREP"
5959 if test -z "$GREP"; then
5960 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962 { (exit 1); exit 1; }; }
5966 ac_cv_path_GREP=$GREP
5971 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5972 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5973 GREP="$ac_cv_path_GREP"
5976 { echo "$as_me:$LINENO: checking for egrep" >&5
5977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5978 if test "${ac_cv_path_EGREP+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982 then ac_cv_path_EGREP="$GREP -E"
5984 # Extract the first word of "egrep" to use in msg output
5985 if test -z "$EGREP"; then
5986 set dummy egrep; ac_prog_name=$2
5987 if test "${ac_cv_path_EGREP+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_path_EGREP_found=false
5991 # Loop through the user's path and test for each of PROGNAME-LIST
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5996 test -z "$as_dir" && as_dir=.
5997 for ac_prog in egrep; do
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001 # Check for GNU ac_path_EGREP and select it if it is found.
6002 # Check for GNU $ac_path_EGREP
6003 case `"$ac_path_EGREP" --version 2>&1` in
6005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6008 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6011 cat "conftest.in" "conftest.in" >"conftest.tmp"
6012 mv "conftest.tmp" "conftest.in"
6013 cp "conftest.in" "conftest.nl"
6014 echo 'EGREP' >> "conftest.nl"
6015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017 ac_count=`expr $ac_count + 1`
6018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019 # Best one so far, save it but keep looking for a better one
6020 ac_cv_path_EGREP="$ac_path_EGREP"
6021 ac_path_EGREP_max=$ac_count
6023 # 10*(2^10) chars as input seems more than enough
6024 test $ac_count -gt 10 && break
6026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030 $ac_path_EGREP_found && break 3
6040 EGREP="$ac_cv_path_EGREP"
6041 if test -z "$EGREP"; then
6042 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6044 { (exit 1); exit 1; }; }
6048 ac_cv_path_EGREP=$EGREP
6054 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6055 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6056 EGREP="$ac_cv_path_EGREP"
6060 # Check whether --with-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6068 if test "$GCC" = yes; then
6069 # Check if gcc -print-prog-name=ld gives a path.
6070 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6074 # gcc leaves a trailing carriage return which upsets mingw
6075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6080 # Accept absolute paths.
6082 re_direlt='/[^/][^/]*/\.\./'
6083 # Canonicalize the pathname of ld
6084 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6086 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6088 test -z "$LD" && LD="$ac_prog"
6091 # If it fails, then pretend we aren't using GCC.
6095 # If it is relative, then search for the first ld in PATH.
6099 elif test "$with_gnu_ld" = yes; then
6100 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6103 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6106 if test "${lt_cv_path_LD+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 if test -z "$LD"; then
6110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111 for ac_dir in $PATH; do
6113 test -z "$ac_dir" && ac_dir=.
6114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6115 lt_cv_path_LD="$ac_dir/$ac_prog"
6116 # Check to see if the program is GNU ld. I'd rather use --version,
6117 # but apparently some variants of GNU ld only accept -v.
6118 # Break only if it was the GNU/non-GNU ld that we prefer.
6119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6120 *GNU* | *'with BFD'*)
6121 test "$with_gnu_ld" != no && break
6124 test "$with_gnu_ld" != yes && break
6131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6136 if test -n "$LD"; then
6137 { echo "$as_me:$LINENO: result: $LD" >&5
6138 echo "${ECHO_T}$LD" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6145 { (exit 1); exit 1; }; }
6146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6152 case `$LD -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154 lt_cv_prog_gnu_ld=yes
6157 lt_cv_prog_gnu_ld=no
6161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6163 with_gnu_ld=$lt_cv_prog_gnu_ld
6166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6168 if test "${lt_cv_ld_reload_flag+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 lt_cv_ld_reload_flag='-r'
6173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6175 reload_flag=$lt_cv_ld_reload_flag
6176 case $reload_flag in
6178 *) reload_flag=" $reload_flag" ;;
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 if test "$GCC" = yes; then
6184 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6192 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6193 if test "${lt_cv_path_NM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$NM"; then
6197 # Let the user override the test.
6200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6203 test -z "$ac_dir" && ac_dir=.
6204 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6205 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6206 # Check to see if the nm accepts a BSD-compat flag.
6207 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6208 # nm: unknown option "B" ignored
6209 # Tru64's nm complains that /dev/null is an invalid object file
6210 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6211 */dev/null* | *'Invalid file or object type'*)
6212 lt_cv_path_NM="$tmp_nm -B"
6216 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6218 lt_cv_path_NM="$tmp_nm -p"
6222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6223 continue # so that we can try to find one that supports BSD flags
6230 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6237 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6240 if test "$LN_S" = "ln -s"; then
6241 { echo "$as_me:$LINENO: result: yes" >&5
6242 echo "${ECHO_T}yes" >&6; }
6244 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6245 echo "${ECHO_T}no, using $LN_S" >&6; }
6248 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6250 if test "${lt_cv_deplibs_check_method+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6269 lt_cv_deplibs_check_method=pass_all
6273 lt_cv_deplibs_check_method=pass_all
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278 lt_cv_file_magic_cmd='/usr/bin/file -L'
6279 lt_cv_file_magic_test_file=/shlib/libc.so
6283 # func_win32_libid is a shell function defined in ltmain.sh
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6289 # Base MSYS/MinGW do not provide the 'file' command needed by
6290 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6291 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292 lt_cv_file_magic_cmd='$OBJDUMP -f'
6295 darwin* | rhapsody*)
6296 lt_cv_deplibs_check_method=pass_all
6299 freebsd* | kfreebsd*-gnu | dragonfly*)
6300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303 # Not sure whether the presence of OpenBSD here was a mistake.
6304 # Let's accept both of them until this is cleared up.
6305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6319 hpux10.20* | hpux11*)
6320 lt_cv_file_magic_cmd=/usr/bin/file
6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6327 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]'
6328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6332 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6337 irix5* | irix6* | nonstopux*)
6339 *-32|*"-32 ") libmagic=32-bit;;
6340 *-n32|*"-n32 ") libmagic=N32;;
6341 *-64|*"-64 ") libmagic=64-bit;;
6342 *) libmagic=never-match;;
6344 lt_cv_deplibs_check_method=pass_all
6347 # This must be Linux ELF.
6349 lt_cv_deplibs_check_method=pass_all
6353 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362 lt_cv_file_magic_cmd=/usr/bin/file
6363 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6367 lt_cv_deplibs_check_method=unknown
6371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6378 osf3* | osf4* | osf5*)
6379 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method=pass_all
6387 lt_cv_deplibs_check_method=pass_all
6390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6391 case $host_vendor in
6393 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]'
6394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6397 lt_cv_deplibs_check_method=pass_all
6400 lt_cv_file_magic_cmd='/bin/file'
6401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6404 lt_cv_file_magic_cmd='/bin/file'
6405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406 lt_cv_file_magic_test_file=/lib/libc.so
6409 lt_cv_deplibs_check_method=pass_all
6414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6415 lt_cv_deplibs_check_method=pass_all
6420 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6429 # If no C compiler was specified, use CC.
6432 # Allow CC to be a program name with arguments.
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then
6438 enableval=$enable_libtool_lock;
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6443 # Some flags need to be propagated to the compiler or linker for good
6447 # Find out which ABI we are using.
6448 echo 'int i;' > conftest.$ac_ext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; then
6454 case `/usr/bin/file conftest.$ac_objext` in
6466 # Find out which ABI we are using.
6467 echo '#line 6467 "configure"' > conftest.$ac_ext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 if test "$lt_cv_prog_gnu_ld" = yes; then
6474 case `/usr/bin/file conftest.$ac_objext` in
6476 LD="${LD-ld} -melf32bsmip"
6479 LD="${LD-ld} -melf32bmipn32"
6482 LD="${LD-ld} -melf64bmip"
6486 case `/usr/bin/file conftest.$ac_objext` in
6502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; then
6510 case `/usr/bin/file conftest.o` in
6514 LD="${LD-ld} -m elf_i386"
6516 ppc64-*linux*|powerpc64-*linux*)
6517 LD="${LD-ld} -m elf32ppclinux"
6520 LD="${LD-ld} -m elf_s390"
6523 LD="${LD-ld} -m elf32_sparc"
6530 LD="${LD-ld} -m elf_x86_64"
6532 ppc*-*linux*|powerpc*-*linux*)
6533 LD="${LD-ld} -m elf64ppc"
6536 LD="${LD-ld} -m elf64_s390"
6539 LD="${LD-ld} -m elf64_sparc"
6549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550 SAVE_CFLAGS="$CFLAGS"
6551 CFLAGS="$CFLAGS -belf"
6552 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 lt_cv_cc_needs_belf=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 lt_cv_cc_needs_belf=no
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605 conftest$ac_exeext conftest.$ac_ext
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617 CFLAGS="$SAVE_CFLAGS"
6620 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test -n "$DLLTOOL"; then
6630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6652 echo "${ECHO_T}$DLLTOOL" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661 ac_ct_DLLTOOL=$DLLTOOL
6662 # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_DLLTOOL"; then
6670 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6690 if test -n "$ac_ct_DLLTOOL"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6698 if test "x$ac_ct_DLLTOOL" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet. If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6711 DLLTOOL=$ac_ct_DLLTOOL
6714 DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}as; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_AS+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$AS"; then
6726 ac_cv_prog_AS="$AS" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_AS="${ac_tool_prefix}as"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 if test -n "$AS"; then
6747 { echo "$as_me:$LINENO: result: $AS" >&5
6748 echo "${ECHO_T}$AS" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_AS"; then
6758 # Extract the first word of "as", so it can be a program name with args.
6759 set dummy as; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_AS"; then
6766 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_AS="as"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6786 if test -n "$ac_ct_AS"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6788 echo "${ECHO_T}$ac_ct_AS" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_AS" = x; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$OBJDUMP"; then
6822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6844 echo "${ECHO_T}$OBJDUMP" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853 ac_ct_OBJDUMP=$OBJDUMP
6854 # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$ac_ct_OBJDUMP"; then
6862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6882 if test -n "$ac_ct_OBJDUMP"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6884 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6890 if test "x$ac_ct_OBJDUMP" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet. If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6903 OBJDUMP=$ac_ct_OBJDUMP
6906 OBJDUMP="$ac_cv_prog_OBJDUMP"
6913 need_locks="$enable_libtool_lock"
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6923 # On Suns, sometimes $CPP names a directory.
6924 if test -n "$CPP" && test -d "$CPP"; then
6927 if test -z "$CPP"; then
6928 if test "${ac_cv_prog_CPP+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 # Double quotes because CPP needs to be expanded
6932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6935 for ac_c_preproc_warn_flag in '' yes
6937 # Use a header file that comes with gcc, so configuring glibc
6938 # with a fresh cross-compiler works.
6939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 # <limits.h> exists even on freestanding compilers.
6941 # On the NeXT, cc -E runs the code through the compiler's parser,
6942 # not just through cpp. "Syntax error" is here to catch this case.
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6950 # include <limits.h>
6952 # include <assert.h>
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev/null && {
6969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 # Broken: fails on valid input.
6981 rm -f conftest.err conftest.$ac_ext
6983 # OK, works on sane cases. Now check whether nonexistent headers
6984 # can be detected and how.
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <ac_nonexistent.h>
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } >/dev/null && {
7006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7009 # Broken: success on invalid input.
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 # Passes both tests.
7020 rm -f conftest.err conftest.$ac_ext
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then
7037 { echo "$as_me:$LINENO: result: $CPP" >&5
7038 echo "${ECHO_T}$CPP" >&6; }
7040 for ac_c_preproc_warn_flag in '' yes
7042 # Use a header file that comes with gcc, so configuring glibc
7043 # with a fresh cross-compiler works.
7044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045 # <limits.h> exists even on freestanding compilers.
7046 # On the NeXT, cc -E runs the code through the compiler's parser,
7047 # not just through cpp. "Syntax error" is here to catch this case.
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7055 # include <limits.h>
7057 # include <assert.h>
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null && {
7074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 # Broken: fails on valid input.
7086 rm -f conftest.err conftest.$ac_ext
7088 # OK, works on sane cases. Now check whether nonexistent headers
7089 # can be detected and how.
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <ac_nonexistent.h>
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1 >conftest.err
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } >/dev/null && {
7111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7114 # Broken: success on invalid input.
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 # Passes both tests.
7125 rm -f conftest.err conftest.$ac_ext
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then
7133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&5
7135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&2;}
7137 { (exit 1); exit 1; }; }
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 ac_cv_header_stdc=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 ac_cv_header_stdc=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 if test $ac_cv_header_stdc = yes; then
7199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200 cat >conftest.$ac_ext <<_ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "memchr" >/dev/null 2>&1; then
7213 ac_cv_header_stdc=no
7219 if test $ac_cv_header_stdc = yes; then
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 $EGREP "free" >/dev/null 2>&1; then
7234 ac_cv_header_stdc=no
7240 if test $ac_cv_header_stdc = yes; then
7241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242 if test "$cross_compiling" = yes; then
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7257 # define ISLOWER(c) \
7258 (('a' <= (c) && (c) <= 'i') \
7259 || ('j' <= (c) && (c) <= 'r') \
7260 || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7269 for (i = 0; i < 256; i++)
7270 if (XOR (islower (i), ISLOWER (i))
7271 || toupper (i) != TOUPPER (i))
7276 rm -f conftest$ac_exeext
7277 if { (ac_try="$ac_link"
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_link") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7287 { (case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_try") 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7298 echo "$as_me: program exited with status $ac_status" >&5
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_header_stdc=no
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332 inttypes.h stdint.h unistd.h
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7348 #include <$ac_header>
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 eval "$as_ac_Header=yes"
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 eval "$as_ac_Header=no"
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 ac_res=`eval echo '${'$as_ac_Header'}'`
7378 { echo "$as_me:$LINENO: result: $ac_res" >&5
7379 echo "${ECHO_T}$ac_res" >&6; }
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 for ac_header in dlfcn.h
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_res=`eval echo '${'$as_ac_Header'}'`
7401 { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7404 # Is the header compilable?
7405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 #include <$ac_header>
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_header_compiler=yes
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_header_compiler=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6; }
7445 # Is the header present?
7446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <$ac_header>
7456 if { (ac_try="$ac_cpp conftest.$ac_ext"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } >/dev/null && {
7469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7472 ac_header_preproc=yes
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_header_preproc=no
7480 rm -f conftest.err conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7482 echo "${ECHO_T}$ac_header_preproc" >&6; }
7484 # So? What about this header?
7485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7491 ac_header_preproc=yes
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7507 ## --------------------------------------------- ##
7508 ## Report this to <http://www.openldap.org/its/> ##
7509 ## --------------------------------------------- ##
7511 ) | sed "s/^/$as_me: WARNING: /" >&2
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 eval "$as_ac_Header=\$ac_header_preproc"
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522 { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527 cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7538 # find the maximum length of command line arguments
7539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 # On DJGPP, this test can blow up pretty badly due to problems in libc
7550 # (any single argument exceeding 2000 bytes causes a buffer overrun
7551 # during glob expansion). Even if it were fixed, the result of this
7552 # check would be larger than it should be.
7553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7557 # Under GNU Hurd, this test is not required because there is
7558 # no limit to the length of command line arguments.
7559 # Libtool will interpret -1 as no limit whatsoever
7560 lt_cv_sys_max_cmd_len=-1;
7564 # On Win9x/ME, this test blows up -- it succeeds, but takes
7565 # about 5 minutes as the teststring grows exponentially.
7566 # Worse, since 9x/ME are not pre-emptively multitasking,
7567 # you end up with a "frozen" computer, even though with patience
7568 # the test eventually succeeds (with a max line length of 256k).
7569 # Instead, let's just punt: use the minimum linelength reported by
7570 # all of the supported platforms: 8192 (on NT/2K/XP).
7571 lt_cv_sys_max_cmd_len=8192;
7575 # On AmigaOS with pdksh, this test takes hours, literally.
7576 # So we just punt and use a minimum line length of 8192.
7577 lt_cv_sys_max_cmd_len=8192;
7580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581 # This has been around since 386BSD, at least. Likely further.
7582 if test -x /sbin/sysctl; then
7583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584 elif test -x /usr/sbin/sysctl; then
7585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7589 # And add a safety zone
7590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596 # nice to cause kernel panics so lets avoid the loop below.
7597 # First set a reasonable default.
7598 lt_cv_sys_max_cmd_len=16384
7600 if test -x /sbin/sysconfig; then
7601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7607 # If test is not a shell built-in, we'll probably end up computing a
7608 # maximum length that is only half of the actual maximum length, but
7610 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612 = "XX$teststring") >/dev/null 2>&1 &&
7613 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614 lt_cv_sys_max_cmd_len=$new_result &&
7615 test $i != 17 # 1/2 MB should be enough
7618 teststring=$teststring$teststring
7621 # Add a significant safety factor because C++ compilers can tack on massive
7622 # amounts of additional arguments before passing them to the linker.
7623 # It appears as though 1/2 is a usable value.
7624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7630 if test -n $lt_cv_sys_max_cmd_len ; then
7631 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7634 { echo "$as_me:$LINENO: result: none" >&5
7635 echo "${ECHO_T}none" >&6; }
7641 # Check for command to grab the raw symbol name followed by C symbol from nm.
7642 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 # These are sane defaults that work on at least a few old systems.
7649 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7651 # Character class describing NM global symbol codes.
7652 symcode='[BCDEGRST]'
7654 # Regexp to match symbols that can be accessed directly from C.
7655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7657 # Transform an extracted symbol line into a proper C declaration
7658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 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'"
7663 # Define system-specific variables.
7668 cygwin* | mingw* | pw32*)
7669 symcode='[ABCDGISTW]'
7671 hpux*) # Its linker distinguishes data from code symbols
7672 if test "$host_cpu" = ia64; then
7673 symcode='[ABCDEGRST]'
7675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676 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'"
7679 if test "$host_cpu" = ia64; then
7680 symcode='[ABCDGIRSTW]'
7681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682 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'"
7686 symcode='[BCDEGRST]'
7689 symcode='[BCDEGQRST]'
7699 # Handle CRLF in mingw tool chain
7703 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7707 # If we're using GNU nm, then use its standard symbol codes.
7708 case `$NM -V 2>&1` in
7709 *GNU* | *'with BFD'*)
7710 symcode='[ABCDGIRSTW]' ;;
7713 # Try without a prefix undercore, then with it.
7714 for ac_symprfx in "" "_"; do
7716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717 symxfrm="\\1 $ac_symprfx\\2 \\2"
7719 # Write the raw and C identifiers.
7720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7722 # Check to see that the pipe works correctly.
7726 cat > conftest.$ac_ext <<EOF
7731 void nm_test_func(){}
7735 int main(){nm_test_var='a';nm_test_func();return(0);}
7738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739 (eval $ac_compile) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; then
7743 # Now try to grab the symbols.
7745 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && test -s "$nlist"; then
7750 # Try sorting and uniquifying the output.
7751 if sort "$nlist" | uniq > "$nlist"T; then
7752 mv -f "$nlist"T "$nlist"
7757 # Make sure that we snagged all the symbols we need.
7758 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760 cat <<EOF > conftest.$ac_ext
7766 # Now generate the symbol file.
7767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7769 cat <<EOF >> conftest.$ac_ext
7770 #if defined (__STDC__) && __STDC__
7771 # define lt_ptr_t void *
7773 # define lt_ptr_t char *
7777 /* The mapping between symbol names and symbols. */
7782 lt_preloaded_symbols[] =
7785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786 cat <<\EOF >> conftest.$ac_ext
7794 # Now try linking the two files.
7795 mv conftest.$ac_objext conftstm.$ac_objext
7796 lt_save_LIBS="$LIBS"
7797 lt_save_CFLAGS="$CFLAGS"
7798 LIBS="conftstm.$ac_objext"
7799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7807 LIBS="$lt_save_LIBS"
7808 CFLAGS="$lt_save_CFLAGS"
7810 echo "cannot find nm_test_func in $nlist" >&5
7813 echo "cannot find nm_test_var in $nlist" >&5
7816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7819 echo "$progname: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 rm -f conftest* conftst*
7824 # Do not use the global_symbol_pipe unless it works.
7825 if test "$pipe_works" = yes; then
7828 lt_cv_sys_global_symbol_pipe=
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835 lt_cv_sys_global_symbol_to_cdecl=
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838 { echo "$as_me:$LINENO: result: failed" >&5
7839 echo "${ECHO_T}failed" >&6; }
7841 { echo "$as_me:$LINENO: result: ok" >&5
7842 echo "${ECHO_T}ok" >&6; }
7845 { echo "$as_me:$LINENO: checking for objdir" >&5
7846 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7855 # MS-DOS does not allow filenames that begin with a dot.
7858 rmdir .libs 2>/dev/null
7860 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7870 # AIX sometimes has problems with the GCC collect2 program. For some
7871 # reason, if we set the COLLECT_NAMES environment variable, the problems
7872 # vanish in a puff of smoke.
7873 if test "X${COLLECT_NAMES+set}" != Xset; then
7875 export COLLECT_NAMES
7880 # Sed substitution that helps us do robust quoting. It backslashifies
7881 # metacharacters that are still active within double-quoted strings.
7882 Xsed='sed -e 1s/^X//'
7883 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7885 # Same as above, but do not quote variable references.
7886 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7888 # Sed substitution to delay expansion of an escaped shell variable in a
7889 # double_quote_subst'ed string.
7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7899 default_ofile=libtool
7900 can_build_shared=yes
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7905 ltmain="$ac_aux_dir/ltmain.sh"
7906 ofile="$default_ofile"
7907 with_gnu_ld="$lt_cv_prog_gnu_ld"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ar; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_AR+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 if test -n "$AR"; then
7918 ac_cv_prog_AR="$AR" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_AR="${ac_tool_prefix}ar"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 if test -n "$AR"; then
7939 { echo "$as_me:$LINENO: result: $AR" >&5
7940 echo "${ECHO_T}$AR" >&6; }
7942 { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7948 if test -z "$ac_cv_prog_AR"; then
7950 # Extract the first word of "ar", so it can be a program name with args.
7951 set dummy ar; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 if test -n "$ac_ct_AR"; then
7958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_ac_ct_AR="ar"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7978 if test -n "$ac_ct_AR"; then
7979 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7980 echo "${ECHO_T}$ac_ct_AR" >&6; }
7982 { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7986 if test "x$ac_ct_AR" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet. If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet. If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test -n "$RANLIB"; then
8014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 RANLIB=$ac_cv_prog_RANLIB
8034 if test -n "$RANLIB"; then
8035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8036 echo "${ECHO_T}$RANLIB" >&6; }
8038 { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8044 if test -z "$ac_cv_prog_RANLIB"; then
8045 ac_ct_RANLIB=$RANLIB
8046 # Extract the first word of "ranlib", so it can be a program name with args.
8047 set dummy ranlib; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 if test -n "$ac_ct_RANLIB"; then
8054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_ac_ct_RANLIB="ranlib"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8074 if test -n "$ac_ct_RANLIB"; then
8075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8078 { echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6; }
8082 if test "x$ac_ct_RANLIB" = x; then
8085 case $cross_compiling:$ac_tool_warned in
8087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet. If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&5
8090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8091 whose name does not start with the host triplet. If you think this
8092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8093 ac_tool_warned=yes ;;
8095 RANLIB=$ac_ct_RANLIB
8098 RANLIB="$ac_cv_prog_RANLIB"
8101 if test -n "$ac_tool_prefix"; then
8102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}strip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_STRIP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 if test -n "$STRIP"; then
8110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 STRIP=$ac_cv_prog_STRIP
8130 if test -n "$STRIP"; then
8131 { echo "$as_me:$LINENO: result: $STRIP" >&5
8132 echo "${ECHO_T}$STRIP" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8140 if test -z "$ac_cv_prog_STRIP"; then
8142 # Extract the first word of "strip", so it can be a program name with args.
8143 set dummy strip; ac_word=$2
8144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 if test -n "$ac_ct_STRIP"; then
8150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_ac_ct_STRIP="strip"
8160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8170 if test -n "$ac_ct_STRIP"; then
8171 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8172 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8174 { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8178 if test "x$ac_ct_STRIP" = x; then
8181 case $cross_compiling:$ac_tool_warned in
8183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet. If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&5
8186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8187 whose name does not start with the host triplet. If you think this
8188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8189 ac_tool_warned=yes ;;
8194 STRIP="$ac_cv_prog_STRIP"
8199 old_CFLAGS="$CFLAGS"
8201 # Set sane defaults for various variables
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204 test -z "$AS" && AS=as
8205 test -z "$CC" && CC=cc
8206 test -z "$LTCC" && LTCC=$CC
8207 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$LD" && LD=ld
8209 test -z "$LN_S" && LN_S="ln -s"
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 test -z "$NM" && NM=nm
8212 test -z "$SED" && SED=sed
8213 test -z "$OBJDUMP" && OBJDUMP=objdump
8214 test -z "$RANLIB" && RANLIB=:
8215 test -z "$STRIP" && STRIP=:
8216 test -z "$ac_objext" && ac_objext=o
8218 # Determine commands to create old-style static archives.
8219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8220 old_postinstall_cmds='chmod 644 $oldlib'
8221 old_postuninstall_cmds=
8223 if test -n "$RANLIB"; then
8226 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8229 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8235 for cc_temp in $compiler""; do
8237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8246 # Only perform the check for file, if the check method requires it
8247 case $deplibs_check_method in
8249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8260 lt_save_MAGIC_CMD="$MAGIC_CMD"
8261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263 for ac_dir in $ac_dummy; do
8265 test -z "$ac_dir" && ac_dir=.
8266 if test -f $ac_dir/${ac_tool_prefix}file; then
8267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268 if test -n "$file_magic_test_file"; then
8269 case $deplibs_check_method in
8271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274 $EGREP "$file_magic_regex" > /dev/null; then
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such. This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem. Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8296 MAGIC_CMD="$lt_save_MAGIC_CMD"
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8306 { echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6; }
8310 if test -z "$lt_cv_path_MAGIC_CMD"; then
8311 if test -n "$ac_tool_prefix"; then
8312 { echo "$as_me:$LINENO: checking for file" >&5
8313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 lt_save_MAGIC_CMD="$MAGIC_CMD"
8323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325 for ac_dir in $ac_dummy; do
8327 test -z "$ac_dir" && ac_dir=.
8328 if test -f $ac_dir/file; then
8329 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8330 if test -n "$file_magic_test_file"; then
8331 case $deplibs_check_method in
8333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336 $EGREP "$file_magic_regex" > /dev/null; then
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such. This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem. Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8358 MAGIC_CMD="$lt_save_MAGIC_CMD"
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8382 enable_win32_dll=yes
8384 # Check whether --enable-libtool-lock was given.
8385 if test "${enable_libtool_lock+set}" = set; then
8386 enableval=$enable_libtool_lock;
8389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then
8394 withval=$with_pic; pic_mode="$withval"
8399 test -z "$pic_mode" && pic_mode=default
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;\n"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}\n'
8425 # If no C compiler was specified, use CC.
8428 # Allow CC to be a program name with arguments.
8432 # save warnings/boilerplate of simple test code
8433 ac_outfile=conftest.$ac_objext
8434 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8436 _lt_compiler_boilerplate=`cat conftest.err`
8439 ac_outfile=conftest.$ac_objext
8440 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8442 _lt_linker_boilerplate=`cat conftest.err`
8447 # Check for any special shared library compilation flags.
8450 if test "$GCC" = no; then
8453 lt_prog_cc_shlib='-belf'
8457 if test -n "$lt_prog_cc_shlib"; then
8458 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8459 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8460 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8462 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8463 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8464 lt_cv_prog_cc_can_build_shared=no
8470 # Check to make sure the static flag actually works.
8472 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8473 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8474 if test "${lt_prog_compiler_static_works+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 lt_prog_compiler_static_works=no
8478 save_LDFLAGS="$LDFLAGS"
8479 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8480 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482 # The linker can only warn and ignore the option if not recognized
8483 # So say no if there are warnings
8484 if test -s conftest.err; then
8485 # Append any errors to the config.log.
8486 cat conftest.err 1>&5
8487 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8488 $SED '/^$/d' conftest.err >conftest.er2
8489 if diff conftest.exp conftest.er2 >/dev/null; then
8490 lt_prog_compiler_static_works=yes
8493 lt_prog_compiler_static_works=yes
8497 LDFLAGS="$save_LDFLAGS"
8500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8501 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8503 if test x"$lt_prog_compiler_static_works" = xyes; then
8506 lt_prog_compiler_static=
8512 lt_prog_compiler_no_builtin_flag=
8514 if test "$GCC" = yes; then
8515 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 lt_cv_prog_compiler_rtti_exceptions=no
8524 ac_outfile=conftest.$ac_objext
8525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526 lt_compiler_flag="-fno-rtti -fno-exceptions"
8527 # Insert the option either (1) after the last *FLAGS variable, or
8528 # (2) before a word containing "conftest.", or (3) at the end.
8529 # Note that $ac_compile itself does not contain backslashes and begins
8530 # with a dollar sign (not a hyphen), so the echo should work correctly.
8531 # The option is referenced via a variable to avoid confusing sed.
8532 lt_compile=`echo "$ac_compile" | $SED \
8533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535 -e 's:$: $lt_compiler_flag:'`
8536 (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537 (eval "$lt_compile" 2>conftest.err)
8539 cat conftest.err >&5
8540 echo "$as_me:8540: \$? = $ac_status" >&5
8541 if (exit $ac_status) && test -s "$ac_outfile"; then
8542 # The compiler can only warn and ignore the option if not recognized
8543 # So say no if there are warnings other than the usual output.
8544 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8545 $SED '/^$/d' conftest.err >conftest.er2
8546 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8547 lt_cv_prog_compiler_rtti_exceptions=yes
8553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564 lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8571 if test "$GCC" = yes; then
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_static='-static'
8577 # All AIX code is PIC.
8578 if test "$host_cpu" = ia64; then
8579 # AIX 5 now supports IA64 processor
8580 lt_prog_compiler_static='-Bstatic'
8585 # FIXME: we need at least 68020 code to build shared libraries, but
8586 # adding the `-m68020' flag to GCC prevents building anything better,
8588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8592 # PIC is the default for these OSes.
8595 mingw* | pw32* | os2*)
8596 # This hack is so that the source file can tell whether it is being
8597 # built for inclusion in a dll (and should export symbols for example).
8598 lt_prog_compiler_pic='-DDLL_EXPORT'
8601 darwin* | rhapsody*)
8602 # PIC is the default on this platform
8603 # Common symbols not allowed in MH_DYLIB files
8604 lt_prog_compiler_pic='-fno-common'
8608 # Just because we use GCC doesn't mean we suddenly get shared libraries
8609 # on systems that don't support them.
8610 lt_prog_compiler_can_build_shared=no
8615 if test -d /usr/nec; then
8616 lt_prog_compiler_pic=-Kconform_pic
8621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8628 lt_prog_compiler_pic='-fPIC'
8634 lt_prog_compiler_pic='-fPIC'
8638 # PORTME Check for flag to pass linker flags through the system compiler.
8641 lt_prog_compiler_wl='-Wl,'
8642 if test "$host_cpu" = ia64; then
8643 # AIX 5 now supports IA64 processor
8644 lt_prog_compiler_static='-Bstatic'
8646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8650 # PIC is the default on this platform
8651 # Common symbols not allowed in MH_DYLIB files
8652 case $cc_basename in
8654 lt_prog_compiler_pic='-qnocommon'
8655 lt_prog_compiler_wl='-Wl,'
8660 mingw* | pw32* | os2*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8675 lt_prog_compiler_pic='+Z'
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8694 case $cc_basename in
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-static'
8700 pgcc* | pgf77* | pgf90* | pgf95*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8715 osf3* | osf4* | osf5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All OSF/1 code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8722 lt_prog_compiler_pic='-Kpic'
8723 lt_prog_compiler_static='-dn'
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 case $cc_basename in
8731 lt_prog_compiler_wl='-Qoption ld ';;
8733 lt_prog_compiler_wl='-Wl,';;
8738 lt_prog_compiler_wl='-Qoption ld '
8739 lt_prog_compiler_pic='-PIC'
8740 lt_prog_compiler_static='-Bstatic'
8743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8750 if test -d /usr/nec ;then
8751 lt_prog_compiler_pic='-Kconform_pic'
8752 lt_prog_compiler_static='-Bstatic'
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_can_build_shared=no
8762 lt_prog_compiler_pic='-pic'
8763 lt_prog_compiler_static='-Bstatic'
8767 lt_prog_compiler_can_build_shared=no
8772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8773 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8776 # Check to make sure the PIC flag actually works.
8778 if test -n "$lt_prog_compiler_pic"; then
8780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8782 if test "${lt_prog_compiler_pic_works+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 lt_prog_compiler_pic_works=no
8786 ac_outfile=conftest.$ac_objext
8787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 # The option is referenced via a variable to avoid confusing sed.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>conftest.err)
8801 cat conftest.err >&5
8802 echo "$as_me:8802: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s "$ac_outfile"; then
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings other than the usual output.
8806 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8807 $SED '/^$/d' conftest.err >conftest.er2
8808 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_prog_compiler_pic_works=yes
8815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8816 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8818 if test x"$lt_prog_compiler_pic_works" = xyes; then
8819 case $lt_prog_compiler_pic in
8821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824 lt_prog_compiler_pic=
8825 lt_prog_compiler_can_build_shared=no
8830 # For platforms which do not support PIC, -DPIC is meaningless:
8832 lt_prog_compiler_pic=
8835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 lt_cv_prog_compiler_c_o=no
8845 $rm -r conftest 2>/dev/null
8849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:8860: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8863 cat out/conftest.err >&5
8864 echo "$as_me:8864: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8870 $SED '/^$/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8880 $rm out/* && rmdir out
8886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
8893 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 { echo "$as_me:$LINENO: result: $hard_links" >&5
8902 echo "${ECHO_T}$hard_links" >&6; }
8903 if test "$hard_links" = no; then
8904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8916 allow_undefined_flag=
8917 enable_shared_with_static_runtimes=no
8919 archive_expsym_cmds=
8920 old_archive_From_new_cmds=
8921 old_archive_from_expsyms_cmds=
8922 export_dynamic_flag_spec=
8923 whole_archive_flag_spec=
8924 thread_safe_flag_spec=
8925 hardcode_libdir_flag_spec=
8926 hardcode_libdir_flag_spec_ld=
8927 hardcode_libdir_separator=
8930 hardcode_shlibpath_var=unsupported
8931 link_all_deplibs=unknown
8932 hardcode_automatic=no
8935 always_export_symbols=no
8936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937 # include_expsyms should be a list of space-separated symbols to be *always*
8938 # included in the symbol list
8940 # exclude_expsyms can be an extended regexp of symbols to exclude
8941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943 # as well as any symbol that contains `d'.
8944 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946 # platforms (ab)use it in PIC code, but their linkers get confused if
8947 # the symbol is explicitly referenced. Since portable code cannot
8948 # rely on this symbol name, it's probably fine to never include it in
8949 # preloaded symbol tables.
8950 extract_expsyms_cmds=
8951 # Just being paranoid about ensuring that cc_basename is set.
8952 for cc_temp in $compiler""; do
8954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8963 cygwin* | mingw* | pw32*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8977 if test "$with_gnu_ld" = yes; then
8978 # If archive_cmds runs LD, not CC, wlarc should be empty
8981 # Set some defaults for GNU ld with shared library support. These
8982 # are reset later if shared libraries are not supported. Putting them
8983 # here allows them to be overridden if necessary.
8984 runpath_var=LD_RUN_PATH
8985 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8986 export_dynamic_flag_spec='${wl}--export-dynamic'
8987 # ancient GNU ld didn't support --whole-archive et. al.
8988 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8989 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8991 whole_archive_flag_spec=
8993 supports_anon_versioning=no
8994 case `$LD -v 2>/dev/null` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998 *\ 2.11.*) ;; # other 2.11 versions
8999 *) supports_anon_versioning=yes ;;
9002 # See if GNU ld supports shared libraries.
9004 aix3* | aix4* | aix5*)
9005 # On AIX/PPC, the GNU linker is very broken
9006 if test "$host_cpu" != ia64; then
9010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support. If you
9013 *** really care for shared libraries, you may want to modify your PATH
9014 *** so that a non-GNU linker is found, and then restart.
9021 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)'
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_minus_L=yes
9025 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9026 # that the semantics of dynamic libraries on AmigaOS, at least up
9027 # to version 4, is to share data among multiple programs linked
9028 # with the same dynamic library. Since this doesn't match the
9029 # behavior of shared libraries on other platforms, we can't use
9035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036 allow_undefined_flag=unsupported
9037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038 # support --undefined. This deserves some investigation. FIXME
9039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 cygwin* | mingw* | pw32*)
9046 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047 # as there is no search path for DLLs.
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 allow_undefined_flag=unsupported
9050 always_export_symbols=no
9051 enable_shared_with_static_runtimes=yes
9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9056 # If the export-symbols file already is a .def file (1st line
9057 # is EXPORTS), use it as is; otherwise, prepend...
9058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059 cp $export_symbols $output_objdir/$soname.def;
9061 echo EXPORTS > $output_objdir/$soname.def;
9062 cat $export_symbols >> $output_objdir/$soname.def;
9064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9073 case $cc_basename,$host_cpu in
9074 pgcc*) # Portland Group C compiler
9075 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'
9076 tmp_addflag=' $pic_flag'
9078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9079 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'
9080 tmp_addflag=' $pic_flag -Mnomain' ;;
9081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9082 tmp_addflag=' -i_dynamic' ;;
9083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9084 tmp_addflag=' -i_dynamic -nofor_main' ;;
9085 ifc* | ifort*) # Intel Fortran compiler
9086 tmp_addflag=' -nofor_main' ;;
9088 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 if test $supports_anon_versioning = yes; then
9091 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093 $echo "local: *; };" >> $output_objdir/$libname.ver~
9094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9112 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems. Therefore, libtool
9118 *** is disabling shared libraries support. We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer. Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9124 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_shlibpath_var=no
9140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 if test "$ld_shlibs" = no; then
9151 hardcode_libdir_flag_spec=
9152 export_dynamic_flag_spec=
9153 whole_archive_flag_spec=
9156 # PORTME fill in a description of your system's linker (not GNU ld)
9159 allow_undefined_flag=unsupported
9160 always_export_symbols=yes
9161 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'
9162 # Note: this linker hardcodes the directories in LIBPATH if there
9163 # are no directories specified by -L.
9164 hardcode_minus_L=yes
9165 if test "$GCC" = yes && test -z "$link_static_flag"; then
9166 # Neither direct hardcoding nor static linking is supported with a
9168 hardcode_direct=unsupported
9173 if test "$host_cpu" = ia64; then
9174 # On IA64, the linker does run time linking by default, so we don't
9175 # have to do anything special.
9176 aix_use_runtimelinking=no
9177 exp_sym_flag='-Bexport'
9180 # If we're using GNU nm, then we don't want the "-C" option.
9181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9183 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'
9185 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'
9187 aix_use_runtimelinking=no
9189 # Test if we are trying to use run time linking or normal
9190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191 # need to do runtime linking.
9192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9193 for ld_flag in $LDFLAGS; do
9194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195 aix_use_runtimelinking=yes
9201 exp_sym_flag='-bexport'
9202 no_entry_flag='-bnoentry'
9205 # When large executables or shared objects are built, AIX ld can
9206 # have problems creating the table of contents. If linking a library
9207 # or program results in "error TOC overflow" add -mminimal-toc to
9208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9213 hardcode_libdir_separator=':'
9214 link_all_deplibs=yes
9216 if test "$GCC" = yes; then
9217 case $host_os in aix4.[012]|aix4.[012].*)
9218 # We only want to do this on AIX 4.2 and lower, the check
9219 # below for broken collect2 doesn't work under 4.3+
9220 collect2name=`${CC} -print-prog-name=collect2`
9221 if test -f "$collect2name" && \
9222 strings "$collect2name" | grep resolve_lib_name >/dev/null
9224 # We have reworked collect2
9227 # We have old collect2
9228 hardcode_direct=unsupported
9229 # It fails to find uninstalled libraries when the uninstalled
9230 # path is not listed in the libpath. Setting hardcode_minus_L
9231 # to unsupported forces relinking
9232 hardcode_minus_L=yes
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_libdir_separator=
9237 shared_flag='-shared'
9238 if test "$aix_use_runtimelinking" = yes; then
9239 shared_flag="$shared_flag "'${wl}-G'
9243 if test "$host_cpu" = ia64; then
9244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245 # chokes on -Wl,-G. The following line is correct:
9248 if test "$aix_use_runtimelinking" = yes; then
9249 shared_flag='${wl}-G'
9251 shared_flag='${wl}-bM:SRE'
9256 # It seems that -bexpall does not export symbols beginning with
9257 # underscore (_), so it is better to generate a list of symbols to export.
9258 always_export_symbols=yes
9259 if test "$aix_use_runtimelinking" = yes; then
9260 # Warning - without using the other runtime loading flags (-brtl),
9261 # -berok will link without error, but may produce a broken library.
9262 allow_undefined_flag='-berok'
9263 # Determine the default libpath from the value encoded in an empty executable.
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest$ac_exeext &&
9296 $as_test_x conftest$ac_exeext; then
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9300 # Check for a 64-bit object if we didn't find anything.
9301 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; }
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311 conftest$ac_exeext conftest.$ac_ext
9312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315 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"
9317 if test "$host_cpu" = ia64; then
9318 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319 allow_undefined_flag="-z nodefs"
9320 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"
9322 # Determine the default libpath from the value encoded in an empty executable.
9323 cat >conftest.$ac_ext <<_ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_link") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext &&
9355 $as_test_x conftest$ac_exeext; then
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9359 # Check for a 64-bit object if we didn't find anything.
9360 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; }
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374 # Warning - without using the other run time loading flags,
9375 # -berok will link without error, but may produce a broken library.
9376 no_undefined_flag=' ${wl}-bernotok'
9377 allow_undefined_flag=' ${wl}-berok'
9378 # -bexpall does not export symbols beginning with underscore (_)
9379 always_export_symbols=yes
9380 # Exported symbols can be pulled into shared objects from archives
9381 whole_archive_flag_spec=' '
9382 archive_cmds_need_lc=yes
9383 # This is similar to how AIX traditionally builds its shared libraries.
9384 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'
9390 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)'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_minus_L=yes
9393 # see comment about different semantics on the GNU ld section
9398 export_dynamic_flag_spec=-rdynamic
9401 cygwin* | mingw* | pw32*)
9402 # When not using gcc, we currently assume that we are using
9403 # Microsoft Visual C++.
9404 # hardcode_libdir_flag_spec is actually meaningless, as there is
9405 # no search path for DLLs.
9406 hardcode_libdir_flag_spec=' '
9407 allow_undefined_flag=unsupported
9408 # Tell ltmain to make .lib files, not .a files.
9410 # Tell ltmain to make .dll files, not .so files.
9412 # FIXME: Setting linknames here is a bad hack.
9413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9414 # The linker will automatically build a .lib file if we build a DLL.
9415 old_archive_From_new_cmds='true'
9416 # FIXME: Should let the user specify the lib program.
9417 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9418 fix_srcfile_path='`cygpath -w "$srcfile"`'
9419 enable_shared_with_static_runtimes=yes
9422 darwin* | rhapsody*)
9424 rhapsody* | darwin1.[012])
9425 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9431 case ${MACOSX_DEPLOYMENT_TARGET} in
9433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9436 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9442 archive_cmds_need_lc=no
9444 hardcode_automatic=yes
9445 hardcode_shlibpath_var=unsupported
9446 whole_archive_flag_spec=''
9447 link_all_deplibs=yes
9448 if test "$GCC" = yes ; then
9449 output_verbose_link_cmd='echo'
9450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453 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}'
9454 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}'
9456 case $cc_basename in
9458 output_verbose_link_cmd='echo'
9459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9462 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}'
9463 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}'
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483 # support. Future versions do this automatically, but an explicit c++rt0.o
9484 # does not break anything, and helps significantly (at the cost of a little
9487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_shlibpath_var=no
9493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_minus_L=yes
9498 hardcode_shlibpath_var=no
9501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502 freebsd* | kfreebsd*-gnu | dragonfly*)
9503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504 hardcode_libdir_flag_spec='-R$libdir'
9506 hardcode_shlibpath_var=no
9510 if test "$GCC" = yes; then
9511 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'
9513 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'
9515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516 hardcode_libdir_separator=:
9519 # hardcode_minus_L: Not really in the search PATH,
9520 # but as the default location of the library.
9521 hardcode_minus_L=yes
9522 export_dynamic_flag_spec='${wl}-E'
9526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9545 if test "$with_gnu_ld" = no; then
9548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549 hardcode_libdir_flag_spec_ld='+b $libdir'
9550 hardcode_libdir_separator=:
9552 hardcode_shlibpath_var=no
9555 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_shlibpath_var=no
9559 # hardcode_minus_L: Not really in the search PATH,
9560 # but as the default location of the library.
9561 hardcode_minus_L=yes
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_separator=:
9567 export_dynamic_flag_spec='${wl}-E'
9569 # hardcode_minus_L: Not really in the search PATH,
9570 # but as the default location of the library.
9571 hardcode_minus_L=yes
9577 irix5* | irix6* | nonstopux*)
9578 if test "$GCC" = yes; then
9579 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'
9581 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'
9582 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 hardcode_libdir_separator=:
9586 link_all_deplibs=yes
9590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9593 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9595 hardcode_libdir_flag_spec='-R$libdir'
9597 hardcode_shlibpath_var=no
9601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 hardcode_shlibpath_var=no
9610 hardcode_shlibpath_var=no
9611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 export_dynamic_flag_spec='${wl}-E'
9618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-R$libdir'
9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_minus_L=yes
9633 allow_undefined_flag=unsupported
9634 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'
9635 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9639 if test "$GCC" = yes; then
9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641 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'
9643 allow_undefined_flag=' -expect_unresolved \*'
9644 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'
9646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647 hardcode_libdir_separator=:
9650 osf4* | osf5*) # as osf3* with the addition of -msym flag
9651 if test "$GCC" = yes; then
9652 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653 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'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 allow_undefined_flag=' -expect_unresolved \*'
9657 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'
9658 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659 $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'
9661 # Both c and cxx compiler support -rpath directly
9662 hardcode_libdir_flag_spec='-rpath $libdir'
9664 hardcode_libdir_separator=:
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_shlibpath_var=no
9670 export_dynamic_flag_spec='${wl}-Bexport'
9671 runpath_var=LD_RUN_PATH
9672 hardcode_runpath_var=yes
9676 no_undefined_flag=' -z text'
9677 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9684 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9688 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_shlibpath_var=no
9691 solaris2.[0-5] | solaris2.[0-5].*) ;;
9693 # The compiler driver will combine linker options so we
9694 # cannot just pass the convience library names through
9695 # without $wl, iff we do not link with $LD.
9696 # Luckily, gcc supports the same syntax we need for Sun Studio.
9697 # Supported since Solaris 2.6 (maybe 2.5.1?)
9700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9702 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' ;;
9705 link_all_deplibs=yes
9709 if test "x$host_vendor" = xsequent; then
9710 # Use $CC to link under sequent, because it throws in some extra .o
9711 # files that make .init and .fini sections work.
9712 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_minus_L=yes
9719 hardcode_shlibpath_var=no
9723 case $host_vendor in
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=yes # is this really true???
9729 ## LD is ld it makes a PLAMLIB
9730 ## CC just makes a GrossModule.
9731 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732 reload_cmds='$CC -r -o $output$reload_objs'
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9740 runpath_var='LD_RUN_PATH'
9741 hardcode_shlibpath_var=no
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_shlibpath_var=no
9747 export_dynamic_flag_spec='-Bexport'
9751 if test -d /usr/nec; then
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_shlibpath_var=no
9754 runpath_var=LD_RUN_PATH
9755 hardcode_runpath_var=yes
9761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_shlibpath_var=no
9765 hardcode_runpath_var=yes
9766 runpath_var=LD_RUN_PATH
9769 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9770 no_undefined_flag='${wl}-z ${wl}text'
9771 if test "$GCC" = yes; then
9772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 runpath_var='LD_RUN_PATH'
9777 hardcode_shlibpath_var=no
9781 no_undefined_flag=' -z text'
9782 # $CC -shared without GNU ld will not create a library from C++
9783 # object files and a static libstdc++, better avoid it by now
9784 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9786 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9787 hardcode_libdir_flag_spec=
9788 hardcode_shlibpath_var=no
9789 runpath_var='LD_RUN_PATH'
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_shlibpath_var=no
9804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9805 echo "${ECHO_T}$ld_shlibs" >&6; }
9806 test "$ld_shlibs" = no && can_build_shared=no
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9814 # Do we need to explicitly link libc?
9816 case "x$archive_cmds_need_lc" in
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9824 # FIXME: we may have to deal with multi-command sequences.
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } 2>conftest.err; then
9842 libobjs=conftest.$ac_objext
9844 wl=$lt_prog_compiler_wl
9850 lt_save_allow_undefined_flag=$allow_undefined_flag
9851 allow_undefined_flag=
9852 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9853 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }
9858 archive_cmds_need_lc=no
9860 archive_cmds_need_lc=yes
9862 allow_undefined_flag=$lt_save_allow_undefined_flag
9864 cat conftest.err 1>&5
9867 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9878 libname_spec='lib$name'
9886 shlibpath_overrides_runpath=unknown
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 if test "$GCC" = yes; then
9891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9892 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9893 # if the path contains ";" then we assume it to be the separator
9894 # otherwise default to the standard path separator (i.e. ":") - it is
9895 # assumed that no part of a normal pathname contains ";" but that should
9896 # okay in the real world where ";" in dirpaths is itself problematic.
9897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915 shlibpath_var=LIBPATH
9917 # AIX 3 has no versioning support, so we append a major version to the name.
9918 soname_spec='${libname}${release}${shared_ext}$major'
9925 hardcode_into_libs=yes
9926 if test "$host_cpu" = ia64; then
9927 # AIX 5 supports IA64
9928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929 shlibpath_var=LD_LIBRARY_PATH
9931 # With GCC up to 2.95.x, collect2 would create an import file
9932 # for dependence libraries. The import file would start with
9933 # the line `#! .'. This would cause the generated library to
9934 # depend on `.', always an invalid library. This was fixed in
9935 # development snapshots of GCC prior to 3.0.
9937 aix4 | aix4.[01] | aix4.[01].*)
9938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948 # soname into executable. Probably we can add versioning support to
9949 # collect2, so additional links can be useful in future.
9950 if test "$aix_use_runtimelinking" = yes; then
9951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952 # instead of lib<name>.a to let people know that these are not
9953 # typical AIX shared libraries.
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 # We preserve .a as extension for shared libraries through AIX4.2
9957 # and later when we are not doing run time linking.
9958 library_names_spec='${libname}${release}.a $libname.a'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LIBPATH
9966 library_names_spec='$libname.ixlibrary $libname.a'
9967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968 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'
9972 library_names_spec='${libname}${shared_ext}'
9973 dynamic_linker="$host_os ld.so"
9974 shlibpath_var=LIBRARY_PATH
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986 # the default ld.so.conf also contains /usr/contrib/lib and
9987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988 # libtool to hard-code these into programs
9991 cygwin* | mingw* | pw32*)
9992 version_type=windows
9997 case $GCC,$host_os in
9998 yes,cygwin* | yes,mingw* | yes,pw32*)
9999 library_names_spec='$libname.dll.a'
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname~
10006 chmod a+x \$dldir/$dlname'
10007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008 dlpath=$dir/\$dldll~
10010 shlibpath_overrides_runpath=yes
10014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10019 # MinGW DLLs use traditional 'lib' prefix
10020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023 # It is most probably a Windows format PATH printed by
10024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025 # path with ; separators, and with drive letters. We can handle the
10026 # drive letters (cygwin fileutils understands them), so leave them,
10027 # especially as we might pass files found there to a mingw objdump,
10028 # which wouldn't understand a cygwinified path. Ahh.
10029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10045 dynamic_linker='Win32 ld.exe'
10046 # FIXME: first we should search . and the directory the executable is in
10050 darwin* | rhapsody*)
10051 dynamic_linker="$host_os dyld"
10052 version_type=darwin
10055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056 soname_spec='${libname}${release}${major}$shared_ext'
10057 shlibpath_overrides_runpath=yes
10058 shlibpath_var=DYLD_LIBRARY_PATH
10059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10061 if test "$GCC" = yes; then
10062 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"`
10064 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=no
10090 hardcode_into_libs=yes
10091 dynamic_linker='GNU ld.so'
10094 freebsd* | dragonfly*)
10095 # DragonFly does not have aout. When/if they implement a new
10096 # versioning mechanism, adjust this.
10097 if test -x /usr/bin/objformat; then
10098 objformat=`/usr/bin/objformat`
10101 freebsd[123]*) objformat=aout ;;
10102 *) objformat=elf ;;
10105 version_type=freebsd-$objformat
10106 case $version_type in
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10117 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10122 freebsd3.[01]* | freebsdelf3.[01]*)
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 hardcode_into_libs=yes
10143 hpux9* | hpux10* | hpux11*)
10144 # Give a soname corresponding to the major version so that dld.sl refuses to
10145 # link against other versions.
10152 hardcode_into_libs=yes
10153 dynamic_linker="$host_os dld.so"
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 if test "X$HPUX_IA64_MODE" = X32; then
10159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10167 hardcode_into_libs=yes
10168 dynamic_linker="$host_os dld.sl"
10169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10178 dynamic_linker="$host_os dld.sl"
10179 shlibpath_var=SHLIB_PATH
10180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10185 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186 postinstall_cmds='chmod 555 $lib'
10189 irix5* | irix6* | nonstopux*)
10191 nonstopux*) version_type=nonstopux ;;
10193 if test "$lt_cv_prog_gnu_ld" = yes; then
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 irix5* | nonstopux*)
10205 libsuff= shlibsuff=
10208 case $LD in # libtool.m4 will add one of these switches to LD
10209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210 libsuff= shlibsuff= libmagic=32-bit;;
10211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212 libsuff=32 shlibsuff=N32 libmagic=N32;;
10213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215 *) libsuff= shlibsuff= libmagic=never-match;;
10219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220 shlibpath_overrides_runpath=no
10221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223 hardcode_into_libs=yes
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10231 # This must be Linux ELF.
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=no
10241 # This implies no fast_install, which is unacceptable.
10242 # Some rework will be needed to allow for fast_install
10243 # before this can be enabled.
10244 hardcode_into_libs=yes
10246 # Append ld.so.conf contents to the search path
10247 if test -f /etc/ld.so.conf; then
10248 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' ' '`
10249 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10252 # We used to test for /lib/ld.so.1 and disable shared libraries on
10253 # powerpc, because MkLinux only supported shared libraries with the
10254 # GNU dynamic linker. Since this was broken with cross compilers,
10255 # most powerpc-linux boxes support dynamic linking these days and
10256 # people can always --disable-shared, the test was removed, and we
10257 # assume the GNU/Linux dynamic linker is in use.
10258 dynamic_linker='GNU/Linux ld.so'
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=no
10269 hardcode_into_libs=yes
10270 dynamic_linker='GNU ld.so'
10277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280 dynamic_linker='NetBSD (a.out) ld.so'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 dynamic_linker='NetBSD ld.elf_so'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10325 shlibpath_overrides_runpath=yes
10329 shlibpath_overrides_runpath=yes
10334 libname_spec='$name'
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10342 osf3* | osf4* | osf5*)
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10369 # ldd complains unless libraries are executable
10370 postinstall_cmds='chmod +x $lib'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 if test "$with_gnu_ld" = yes; then
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 case $host_vendor in
10392 shlibpath_overrides_runpath=no
10394 export_dynamic_flag_spec='${wl}-Blargedynsym'
10395 runpath_var=LD_RUN_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410 if test -d /usr/nec ;then
10412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413 soname_spec='$libname${shared_ext}.$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10433 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10436 if test -n "$hardcode_libdir_flag_spec" || \
10437 test -n "$runpath_var" || \
10438 test "X$hardcode_automatic" = "Xyes" ; then
10440 # We can hardcode non-existant directories.
10441 if test "$hardcode_direct" != no &&
10442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443 # have to relink, otherwise we might link with an installed library
10444 # when we should be linking with a yet-to-be-installed one
10445 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446 test "$hardcode_minus_L" != no; then
10447 # Linking always hardcodes the temporary library directory.
10448 hardcode_action=relink
10450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451 hardcode_action=immediate
10454 # We cannot hardcode anything, or else we can only hardcode existing
10456 hardcode_action=unsupported
10458 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459 echo "${ECHO_T}$hardcode_action" >&6; }
10461 if test "$hardcode_action" = relink; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10472 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477 { echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6; }
10480 # FIXME - insert some real tests, host_os isn't really good enough
10483 if test -n "$STRIP" ; then
10484 striplib="$STRIP -x"
10485 { echo "$as_me:$LINENO: result: yes" >&5
10486 echo "${ECHO_T}yes" >&6; }
10488 { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10493 { echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6; }
10499 if test "x$enable_dlopen" != xyes; then
10500 enable_dlopen=unknown
10501 enable_dlopen_self=unknown
10502 enable_dlopen_self_static=unknown
10509 lt_cv_dlopen="load_add_on"
10511 lt_cv_dlopen_self=yes
10515 lt_cv_dlopen="LoadLibrary"
10520 lt_cv_dlopen="dlopen"
10525 # if libdl is installed we need to link against it
10526 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_check_lib_save_LIBS=$LIBS
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext &&
10572 $as_test_x conftest$ac_exeext; then
10573 ac_cv_lib_dl_dlopen=yes
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_dl_dlopen=no
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10591 lt_cv_dlopen="dyld"
10593 lt_cv_dlopen_self=yes
10600 { echo "$as_me:$LINENO: checking for shl_load" >&5
10601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10602 if test "${ac_cv_func_shl_load+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10613 #define shl_load innocuous_shl_load
10615 /* System header to define __stub macros and hopefully few prototypes,
10616 which can conflict with char shl_load (); below.
10617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618 <limits.h> exists even on freestanding compilers. */
10621 # include <limits.h>
10623 # include <assert.h>
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10635 /* The GNU C library defines this for functions which it implements
10636 to always fail with ENOSYS. Some functions are actually named
10637 something starting with __ and the normal name is an alias. */
10638 #if defined __stub_shl_load || defined __stub___shl_load
10645 return shl_load ();
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_link") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest$ac_exeext &&
10667 $as_test_x conftest$ac_exeext; then
10668 ac_cv_func_shl_load=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_func_shl_load=no
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677 conftest$ac_exeext conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10681 if test $ac_cv_func_shl_load = yes; then
10682 lt_cv_dlopen="shl_load"
10684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 ac_check_lib_save_LIBS=$LIBS
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10708 return shl_load ();
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest$ac_exeext &&
10730 $as_test_x conftest$ac_exeext; then
10731 ac_cv_lib_dld_shl_load=yes
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_lib_dld_shl_load=no
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10745 if test $ac_cv_lib_dld_shl_load = yes; then
10746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10748 { echo "$as_me:$LINENO: checking for dlopen" >&5
10749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10750 if test "${ac_cv_func_dlopen+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761 #define dlopen innocuous_dlopen
10763 /* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char dlopen (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
10769 # include <limits.h>
10771 # include <assert.h>
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined __stub_dlopen || defined __stub___dlopen
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext &&
10815 $as_test_x conftest$ac_exeext; then
10816 ac_cv_func_dlopen=yes
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_cv_func_dlopen=no
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10829 if test $ac_cv_func_dlopen = yes; then
10830 lt_cv_dlopen="dlopen"
10832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 ac_check_lib_save_LIBS=$LIBS
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest$ac_exeext &&
10878 $as_test_x conftest$ac_exeext; then
10879 ac_cv_lib_dl_dlopen=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_lib_dl_dlopen=no
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest$ac_exeext &&
10942 $as_test_x conftest$ac_exeext; then
10943 ac_cv_lib_svld_dlopen=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_cv_lib_svld_dlopen=no
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10957 if test $ac_cv_lib_svld_dlopen = yes; then
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10960 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_check_lib_save_LIBS=$LIBS
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10984 return dld_link ();
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_link") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest$ac_exeext &&
11006 $as_test_x conftest$ac_exeext; then
11007 ac_cv_lib_dld_dld_link=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_cv_lib_dld_dld_link=no
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11021 if test $ac_cv_lib_dld_dld_link = yes; then
11022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11043 if test "x$lt_cv_dlopen" != xno; then
11049 case $lt_cv_dlopen in
11051 save_CPPFLAGS="$CPPFLAGS"
11052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11054 save_LDFLAGS="$LDFLAGS"
11055 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11058 LIBS="$lt_cv_dlopen_libs $LIBS"
11060 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11061 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11062 if test "${lt_cv_dlopen_self+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 if test "$cross_compiling" = yes; then :
11066 lt_cv_dlopen_self=cross
11068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11069 lt_status=$lt_dlunknown
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11081 # define LT_DLGLOBAL RTLD_GLOBAL
11084 # define LT_DLGLOBAL DL_GLOBAL
11086 # define LT_DLGLOBAL 0
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11091 find out it does not work in some platform. */
11092 #ifndef LT_DLLAZY_OR_NOW
11094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11097 # define LT_DLLAZY_OR_NOW DL_LAZY
11100 # define LT_DLLAZY_OR_NOW RTLD_NOW
11103 # define LT_DLLAZY_OR_NOW DL_NOW
11105 # define LT_DLLAZY_OR_NOW 0
11113 extern "C" void exit (int);
11116 void fnord() { int i=42;}
11119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120 int status = $lt_dlunknown;
11124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126 /* dlclose (self); */
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11137 (./conftest; exit; ) >&5 2>/dev/null
11139 case x$lt_status in
11140 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11145 # compilation failed
11146 lt_cv_dlopen_self=no
11153 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11154 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11156 if test "x$lt_cv_dlopen_self" = xyes; then
11157 LDFLAGS="$LDFLAGS $link_static_flag"
11158 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11159 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11160 if test "${lt_cv_dlopen_self_static+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 if test "$cross_compiling" = yes; then :
11164 lt_cv_dlopen_self_static=cross
11166 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167 lt_status=$lt_dlunknown
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11169 "configure"
11170 #include "confdefs.h"
11179 # define LT_DLGLOBAL RTLD_GLOBAL
11182 # define LT_DLGLOBAL DL_GLOBAL
11184 # define LT_DLGLOBAL 0
11188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189 find out it does not work in some platform. */
11190 #ifndef LT_DLLAZY_OR_NOW
11192 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11195 # define LT_DLLAZY_OR_NOW DL_LAZY
11198 # define LT_DLLAZY_OR_NOW RTLD_NOW
11201 # define LT_DLLAZY_OR_NOW DL_NOW
11203 # define LT_DLLAZY_OR_NOW 0
11211 extern "C" void exit (int);
11214 void fnord() { int i=42;}
11217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218 int status = $lt_dlunknown;
11222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11223 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224 /* dlclose (self); */
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11243 # compilation failed
11244 lt_cv_dlopen_self_static=no
11251 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11255 CPPFLAGS="$save_CPPFLAGS"
11256 LDFLAGS="$save_LDFLAGS"
11261 case $lt_cv_dlopen_self in
11262 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263 *) enable_dlopen_self=unknown ;;
11266 case $lt_cv_dlopen_self_static in
11267 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268 *) enable_dlopen_self_static=unknown ;;
11273 # Report which librarie types wil actually be built
11274 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11275 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11277 echo "${ECHO_T}$can_build_shared" >&6; }
11279 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11280 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11281 test "$can_build_shared" = "no" && enable_shared=no
11283 # On AIX, shared libraries and static libraries use the same namespace, and
11284 # are all built from PIC.
11287 test "$enable_shared" = yes && enable_static=no
11288 if test -n "$RANLIB"; then
11289 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11290 postinstall_cmds='$RANLIB $lib'
11295 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11296 test "$enable_shared" = yes && enable_static=no
11300 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11301 echo "${ECHO_T}$enable_shared" >&6; }
11303 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11304 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11305 # Make sure either enable_shared or enable_static is yes.
11306 test "$enable_shared" = yes || enable_static=yes
11307 { echo "$as_me:$LINENO: result: $enable_static" >&5
11308 echo "${ECHO_T}$enable_static" >&6; }
11310 # The else clause should only fire when bootstrapping the
11311 # libtool distribution, otherwise you forgot to ship ltmain.sh
11312 # with your package, and you will get complaints that there are
11313 # no rules to generate ltmain.sh.
11314 if test -f "$ltmain"; then
11315 # See if we are running on zsh, and set the options which allow our commands through
11316 # without removal of \ escapes.
11317 if test -n "${ZSH_VERSION+set}" ; then
11318 setopt NO_GLOB_SUBST
11320 # Now quote all the things that may contain metacharacters while being
11321 # careful not to overquote the AC_SUBSTed values. We take copies of the
11322 # variables and quote the copies for generation of the libtool script.
11323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11327 deplibs_check_method reload_flag reload_cmds need_locks \
11328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11329 lt_cv_sys_global_symbol_to_c_name_address \
11330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11331 old_postinstall_cmds old_postuninstall_cmds \
11335 lt_prog_compiler_wl \
11336 lt_prog_compiler_pic \
11337 lt_prog_compiler_static \
11338 lt_prog_compiler_no_builtin_flag \
11339 export_dynamic_flag_spec \
11340 thread_safe_flag_spec \
11341 whole_archive_flag_spec \
11342 enable_shared_with_static_runtimes \
11344 old_archive_from_new_cmds \
11349 compiler_lib_search_path \
11351 archive_expsym_cmds \
11353 postuninstall_cmds \
11354 old_archive_from_expsyms_cmds \
11355 allow_undefined_flag \
11356 no_undefined_flag \
11357 export_symbols_cmds \
11358 hardcode_libdir_flag_spec \
11359 hardcode_libdir_flag_spec_ld \
11360 hardcode_libdir_separator \
11361 hardcode_automatic \
11363 module_expsym_cmds \
11364 lt_cv_prog_compiler_c_o \
11366 include_expsyms; do
11369 old_archive_cmds | \
11370 old_archive_from_new_cmds | \
11372 archive_expsym_cmds | \
11374 module_expsym_cmds | \
11375 old_archive_from_expsyms_cmds | \
11376 export_symbols_cmds | \
11377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11378 postinstall_cmds | postuninstall_cmds | \
11379 old_postinstall_cmds | old_postuninstall_cmds | \
11380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11381 # Double-quote double-evaled strings.
11382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11391 *'\$0 --fallback-echo"')
11392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11396 cfgfile="${ofile}T"
11397 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11399 { echo "$as_me:$LINENO: creating $ofile" >&5
11400 echo "$as_me: creating $ofile" >&6;}
11402 cat <<__EOF__ >> "$cfgfile"
11405 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11406 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11410 # Free Software Foundation, Inc.
11412 # This file is part of GNU Libtool:
11413 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11415 # This program is free software; you can redistribute it and/or modify
11416 # it under the terms of the GNU General Public License as published by
11417 # the Free Software Foundation; either version 2 of the License, or
11418 # (at your option) any later version.
11420 # This program is distributed in the hope that it will be useful, but
11421 # WITHOUT ANY WARRANTY; without even the implied warranty of
11422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11423 # General Public License for more details.
11425 # You should have received a copy of the GNU General Public License
11426 # along with this program; if not, write to the Free Software
11427 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11429 # As a special exception to the GNU General Public License, if you
11430 # distribute this file as part of a program that contains a
11431 # configuration script generated by Autoconf, you may include it under
11432 # the same distribution terms that you use for the rest of that program.
11434 # A sed program that does not truncate output.
11437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11438 Xsed="$SED -e 1s/^X//"
11440 # The HP-UX ksh and POSIX shell print the target directory to stdout
11441 # if CDPATH is set.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11444 # The names of the tagged configurations supported by this script.
11447 # ### BEGIN LIBTOOL CONFIG
11449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11451 # Shell to use when invoking shell scripts.
11454 # Whether or not to build shared libraries.
11455 build_libtool_libs=$enable_shared
11457 # Whether or not to build static libraries.
11458 build_old_libs=$enable_static
11460 # Whether or not to add -lc for building shared libraries.
11461 build_libtool_need_lc=$archive_cmds_need_lc
11463 # Whether or not to disallow shared libs when runtime libs are static
11464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11466 # Whether or not to optimize for fast installation.
11467 fast_install=$enable_fast_install
11470 host_alias=$host_alias
11474 # The build system.
11475 build_alias=$build_alias
11479 # An echo program that does not interpret backslashes.
11484 AR_FLAGS=$lt_AR_FLAGS
11489 # A language-specific compiler.
11492 # Is the compiler the GNU C compiler?
11498 # The linker used to build libraries.
11501 # Whether we need hard or soft links.
11504 # A BSD-compatible nm program.
11507 # A symbol stripping program
11510 # Used to examine libraries when file_magic_cmd begins "file"
11511 MAGIC_CMD=$MAGIC_CMD
11513 # Used on cygwin: DLL creation program.
11516 # Used on cygwin: object dumper.
11519 # Used on cygwin: assembler.
11522 # The name of the directory that contains temporary libtool files.
11525 # How to create reloadable object files.
11526 reload_flag=$lt_reload_flag
11527 reload_cmds=$lt_reload_cmds
11529 # How to pass a linker flag through the compiler.
11530 wl=$lt_lt_prog_compiler_wl
11532 # Object file suffix (normally "o").
11533 objext="$ac_objext"
11535 # Old archive suffix (normally "a").
11538 # Shared library suffix (normally ".so").
11539 shrext_cmds='$shrext_cmds'
11541 # Executable file suffix (normally "").
11544 # Additional compiler flags for building library objects.
11545 pic_flag=$lt_lt_prog_compiler_pic
11548 # What is the maximum length of a command?
11549 max_cmd_len=$lt_cv_sys_max_cmd_len
11551 # Does compiler simultaneously support -c and -o options?
11552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11554 # Must we lock files when doing compilation?
11555 need_locks=$lt_need_locks
11557 # Do we need the lib prefix for modules?
11558 need_lib_prefix=$need_lib_prefix
11560 # Do we need a version for libraries?
11561 need_version=$need_version
11563 # Whether dlopen is supported.
11564 dlopen_support=$enable_dlopen
11566 # Whether dlopen of programs is supported.
11567 dlopen_self=$enable_dlopen_self
11569 # Whether dlopen of statically linked programs is supported.
11570 dlopen_self_static=$enable_dlopen_self_static
11572 # Compiler flag to prevent dynamic linking.
11573 link_static_flag=$lt_lt_prog_compiler_static
11575 # Compiler flag to turn off builtin functions.
11576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11578 # Compiler flag to allow reflexive dlopens.
11579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11581 # Compiler flag to generate shared objects directly from archives.
11582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11584 # Compiler flag to generate thread-safe objects.
11585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11587 # Library versioning type.
11588 version_type=$version_type
11590 # Format of library name prefix.
11591 libname_spec=$lt_libname_spec
11593 # List of archive names. First name is the real one, the rest are links.
11594 # The last name is the one that the linker finds with -lNAME.
11595 library_names_spec=$lt_library_names_spec
11597 # The coded name of the library, if different from the real name.
11598 soname_spec=$lt_soname_spec
11600 # Commands used to build and install an old-style archive.
11602 old_archive_cmds=$lt_old_archive_cmds
11603 old_postinstall_cmds=$lt_old_postinstall_cmds
11604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11606 # Create an old-style archive from a shared archive.
11607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11609 # Create a temporary old-style archive to link instead of a shared archive.
11610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11612 # Commands used to build and install a shared archive.
11613 archive_cmds=$lt_archive_cmds
11614 archive_expsym_cmds=$lt_archive_expsym_cmds
11615 postinstall_cmds=$lt_postinstall_cmds
11616 postuninstall_cmds=$lt_postuninstall_cmds
11618 # Commands used to build a loadable module (assumed same as above if empty)
11619 module_cmds=$lt_module_cmds
11620 module_expsym_cmds=$lt_module_expsym_cmds
11622 # Commands to strip libraries.
11623 old_striplib=$lt_old_striplib
11624 striplib=$lt_striplib
11626 # Dependencies to place before the objects being linked to create a
11628 predep_objects=$lt_predep_objects
11630 # Dependencies to place after the objects being linked to create a
11632 postdep_objects=$lt_postdep_objects
11634 # Dependencies to place before the objects being linked to create a
11636 predeps=$lt_predeps
11638 # Dependencies to place after the objects being linked to create a
11640 postdeps=$lt_postdeps
11642 # The library search path used internally by the compiler when linking
11643 # a shared library.
11644 compiler_lib_search_path=$lt_compiler_lib_search_path
11646 # Method to check whether dependent libraries are shared objects.
11647 deplibs_check_method=$lt_deplibs_check_method
11649 # Command to use when deplibs_check_method == file_magic.
11650 file_magic_cmd=$lt_file_magic_cmd
11652 # Flag that allows shared libraries with undefined symbols to be built.
11653 allow_undefined_flag=$lt_allow_undefined_flag
11655 # Flag that forces no undefined symbols.
11656 no_undefined_flag=$lt_no_undefined_flag
11658 # Commands used to finish a libtool library installation in a directory.
11659 finish_cmds=$lt_finish_cmds
11661 # Same as above, but a single script fragment to be evaled but not shown.
11662 finish_eval=$lt_finish_eval
11664 # Take the output of nm and produce a listing of raw symbols and C names.
11665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11667 # Transform the output of nm in a proper C declaration
11668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11670 # Transform the output of nm in a C name address pair
11671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11673 # This is the shared library runtime path variable.
11674 runpath_var=$runpath_var
11676 # This is the shared library path variable.
11677 shlibpath_var=$shlibpath_var
11679 # Is shlibpath searched before the hard-coded library search path?
11680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11682 # How to hardcode a shared library path into an executable.
11683 hardcode_action=$hardcode_action
11685 # Whether we should hardcode library paths into libraries.
11686 hardcode_into_libs=$hardcode_into_libs
11688 # Flag to hardcode \$libdir into a binary during linking.
11689 # This must work even if \$libdir does not exist.
11690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11692 # If ld is used when linking, flag to hardcode \$libdir into
11693 # a binary during linking. This must work even if \$libdir does
11695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11697 # Whether we need a single -rpath flag with a separated argument.
11698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11701 # resulting binary.
11702 hardcode_direct=$hardcode_direct
11704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11705 # resulting binary.
11706 hardcode_minus_L=$hardcode_minus_L
11708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11709 # the resulting binary.
11710 hardcode_shlibpath_var=$hardcode_shlibpath_var
11712 # Set to yes if building a shared library automatically hardcodes DIR into the library
11713 # and all subsequent libraries and executables linked against it.
11714 hardcode_automatic=$hardcode_automatic
11716 # Variables whose values should be saved in libtool wrapper scripts and
11717 # restored at relink time.
11718 variables_saved_for_relink="$variables_saved_for_relink"
11720 # Whether libtool must link a program against all its dependency libraries.
11721 link_all_deplibs=$link_all_deplibs
11723 # Compile-time system search path for libraries
11724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11726 # Run-time system search path for libraries
11727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11729 # Fix the shell variable \$srcfile for the compiler.
11730 fix_srcfile_path="$fix_srcfile_path"
11732 # Set to yes if exported symbols are required.
11733 always_export_symbols=$always_export_symbols
11735 # The commands to list exported symbols.
11736 export_symbols_cmds=$lt_export_symbols_cmds
11738 # The commands to extract the exported symbol list from a shared archive.
11739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11741 # Symbols that should not be listed in the preloaded symbols.
11742 exclude_expsyms=$lt_exclude_expsyms
11744 # Symbols that must always be exported.
11745 include_expsyms=$lt_include_expsyms
11747 # ### END LIBTOOL CONFIG
11754 cat <<\EOF >> "$cfgfile"
11756 # AIX sometimes has problems with the GCC collect2 program. For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test "X${COLLECT_NAMES+set}" != Xset; then
11761 export COLLECT_NAMES
11767 # We use sed instead of cat because bash on DJGPP gets confused if
11768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11769 # text mode, it properly converts lines to CR/LF. This bash problem
11770 # is reportedly fixed, but why not run on old versions too?
11771 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11773 mv -f "$cfgfile" "$ofile" || \
11774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11778 # If there is no Makefile yet, we rely on a make rule to execute
11779 # `config.status --recheck' to rerun these tests and create the
11780 # libtool script then.
11781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11782 if test -f "$ltmain_in"; then
11783 test -f Makefile && make "$ltmain"
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11797 # Check whether --with-tags was given.
11798 if test "${with_tags+set}" = set; then
11799 withval=$with_tags; tagnames="$withval"
11803 if test -f "$ltmain" && test -n "$tagnames"; then
11804 if test ! -f "${ofile}"; then
11805 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11809 if test -z "$LTCC"; then
11810 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11811 if test -z "$LTCC"; then
11812 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11820 # Extract list of available tagged configurations in $ofile.
11821 # Note that this assumes the entire list is on one line.
11822 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11825 for tagname in $tagnames; do
11827 # Check whether tagname contains only valid characters
11828 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11830 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11831 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11832 { (exit 1); exit 1; }; }
11836 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11838 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11839 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11840 { (exit 1); exit 1; }; }
11843 # Update the list of available tags.
11844 if test -n "$tagname"; then
11845 echo appending configuration tag \"$tagname\" to $ofile
11849 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11850 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11851 (test "X$CXX" != "Xg++"))) ; then
11859 if test -n "$F77" && test "X$F77" != "Xno"; then
11867 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11877 # Source file extension for RC test sources.
11880 # Object file extension for compiled RC test sources.
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code="$lt_simple_compile_test_code"
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11892 # If no C compiler was specified, use CC.
11895 # Allow CC to be a program name with arguments.
11899 # save warnings/boilerplate of simple test code
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_compiler_boilerplate=`cat conftest.err`
11906 ac_outfile=conftest.$ac_objext
11907 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11909 _lt_linker_boilerplate=`cat conftest.err`
11913 # Allow CC to be a program name with arguments.
11918 for cc_temp in $compiler""; do
11920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11928 lt_cv_prog_compiler_c_o_RC=yes
11930 # The else clause should only fire when bootstrapping the
11931 # libtool distribution, otherwise you forgot to ship ltmain.sh
11932 # with your package, and you will get complaints that there are
11933 # no rules to generate ltmain.sh.
11934 if test -f "$ltmain"; then
11935 # See if we are running on zsh, and set the options which allow our commands through
11936 # without removal of \ escapes.
11937 if test -n "${ZSH_VERSION+set}" ; then
11938 setopt NO_GLOB_SUBST
11940 # Now quote all the things that may contain metacharacters while being
11941 # careful not to overquote the AC_SUBSTed values. We take copies of the
11942 # variables and quote the copies for generation of the libtool script.
11943 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947 deplibs_check_method reload_flag reload_cmds need_locks \
11948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949 lt_cv_sys_global_symbol_to_c_name_address \
11950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951 old_postinstall_cmds old_postuninstall_cmds \
11955 lt_prog_compiler_wl_RC \
11956 lt_prog_compiler_pic_RC \
11957 lt_prog_compiler_static_RC \
11958 lt_prog_compiler_no_builtin_flag_RC \
11959 export_dynamic_flag_spec_RC \
11960 thread_safe_flag_spec_RC \
11961 whole_archive_flag_spec_RC \
11962 enable_shared_with_static_runtimes_RC \
11963 old_archive_cmds_RC \
11964 old_archive_from_new_cmds_RC \
11965 predep_objects_RC \
11966 postdep_objects_RC \
11969 compiler_lib_search_path_RC \
11971 archive_expsym_cmds_RC \
11972 postinstall_cmds_RC \
11973 postuninstall_cmds_RC \
11974 old_archive_from_expsyms_cmds_RC \
11975 allow_undefined_flag_RC \
11976 no_undefined_flag_RC \
11977 export_symbols_cmds_RC \
11978 hardcode_libdir_flag_spec_RC \
11979 hardcode_libdir_flag_spec_ld_RC \
11980 hardcode_libdir_separator_RC \
11981 hardcode_automatic_RC \
11983 module_expsym_cmds_RC \
11984 lt_cv_prog_compiler_c_o_RC \
11985 exclude_expsyms_RC \
11986 include_expsyms_RC; do
11989 old_archive_cmds_RC | \
11990 old_archive_from_new_cmds_RC | \
11991 archive_cmds_RC | \
11992 archive_expsym_cmds_RC | \
11994 module_expsym_cmds_RC | \
11995 old_archive_from_expsyms_cmds_RC | \
11996 export_symbols_cmds_RC | \
11997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998 postinstall_cmds | postuninstall_cmds | \
11999 old_postinstall_cmds | old_postuninstall_cmds | \
12000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001 # Double-quote double-evaled strings.
12002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12011 *'\$0 --fallback-echo"')
12012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12018 cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12023 # Shell to use when invoking shell scripts.
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_RC
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12042 host_alias=$host_alias
12046 # The build system.
12047 build_alias=$build_alias
12051 # An echo program that does not interpret backslashes.
12056 AR_FLAGS=$lt_AR_FLAGS
12061 # A language-specific compiler.
12064 # Is the compiler the GNU C compiler?
12070 # The linker used to build libraries.
12073 # Whether we need hard or soft links.
12076 # A BSD-compatible nm program.
12079 # A symbol stripping program
12082 # Used to examine libraries when file_magic_cmd begins "file"
12083 MAGIC_CMD=$MAGIC_CMD
12085 # Used on cygwin: DLL creation program.
12088 # Used on cygwin: object dumper.
12091 # Used on cygwin: assembler.
12094 # The name of the directory that contains temporary libtool files.
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12101 # How to pass a linker flag through the compiler.
12102 wl=$lt_lt_prog_compiler_wl_RC
12104 # Object file suffix (normally "o").
12105 objext="$ac_objext"
12107 # Old archive suffix (normally "a").
12110 # Shared library suffix (normally ".so").
12111 shrext_cmds='$shrext_cmds'
12113 # Executable file suffix (normally "").
12116 # Additional compiler flags for building library objects.
12117 pic_flag=$lt_lt_prog_compiler_pic_RC
12120 # What is the maximum length of a command?
12121 max_cmd_len=$lt_cv_sys_max_cmd_len
12123 # Does compiler simultaneously support -c and -o options?
12124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12126 # Must we lock files when doing compilation?
12127 need_locks=$lt_need_locks
12129 # Do we need the lib prefix for modules?
12130 need_lib_prefix=$need_lib_prefix
12132 # Do we need a version for libraries?
12133 need_version=$need_version
12135 # Whether dlopen is supported.
12136 dlopen_support=$enable_dlopen
12138 # Whether dlopen of programs is supported.
12139 dlopen_self=$enable_dlopen_self
12141 # Whether dlopen of statically linked programs is supported.
12142 dlopen_self_static=$enable_dlopen_self_static
12144 # Compiler flag to prevent dynamic linking.
12145 link_static_flag=$lt_lt_prog_compiler_static_RC
12147 # Compiler flag to turn off builtin functions.
12148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12150 # Compiler flag to allow reflexive dlopens.
12151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12153 # Compiler flag to generate shared objects directly from archives.
12154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12156 # Compiler flag to generate thread-safe objects.
12157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12159 # Library versioning type.
12160 version_type=$version_type
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12165 # List of archive names. First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME.
12167 library_names_spec=$lt_library_names_spec
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12172 # Commands used to build and install an old-style archive.
12174 old_archive_cmds=$lt_old_archive_cmds_RC
12175 old_postinstall_cmds=$lt_old_postinstall_cmds
12176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12184 # Commands used to build and install a shared archive.
12185 archive_cmds=$lt_archive_cmds_RC
12186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12187 postinstall_cmds=$lt_postinstall_cmds
12188 postuninstall_cmds=$lt_postuninstall_cmds
12190 # Commands used to build a loadable module (assumed same as above if empty)
12191 module_cmds=$lt_module_cmds_RC
12192 module_expsym_cmds=$lt_module_expsym_cmds_RC
12194 # Commands to strip libraries.
12195 old_striplib=$lt_old_striplib
12196 striplib=$lt_striplib
12198 # Dependencies to place before the objects being linked to create a
12200 predep_objects=$lt_predep_objects_RC
12202 # Dependencies to place after the objects being linked to create a
12204 postdep_objects=$lt_postdep_objects_RC
12206 # Dependencies to place before the objects being linked to create a
12208 predeps=$lt_predeps_RC
12210 # Dependencies to place after the objects being linked to create a
12212 postdeps=$lt_postdeps_RC
12214 # The library search path used internally by the compiler when linking
12215 # a shared library.
12216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12218 # Method to check whether dependent libraries are shared objects.
12219 deplibs_check_method=$lt_deplibs_check_method
12221 # Command to use when deplibs_check_method == file_magic.
12222 file_magic_cmd=$lt_file_magic_cmd
12224 # Flag that allows shared libraries with undefined symbols to be built.
12225 allow_undefined_flag=$lt_allow_undefined_flag_RC
12227 # Flag that forces no undefined symbols.
12228 no_undefined_flag=$lt_no_undefined_flag_RC
12230 # Commands used to finish a libtool library installation in a directory.
12231 finish_cmds=$lt_finish_cmds
12233 # Same as above, but a single script fragment to be evaled but not shown.
12234 finish_eval=$lt_finish_eval
12236 # Take the output of nm and produce a listing of raw symbols and C names.
12237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12239 # Transform the output of nm in a proper C declaration
12240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12242 # Transform the output of nm in a C name address pair
12243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12245 # This is the shared library runtime path variable.
12246 runpath_var=$runpath_var
12248 # This is the shared library path variable.
12249 shlibpath_var=$shlibpath_var
12251 # Is shlibpath searched before the hard-coded library search path?
12252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12254 # How to hardcode a shared library path into an executable.
12255 hardcode_action=$hardcode_action_RC
12257 # Whether we should hardcode library paths into libraries.
12258 hardcode_into_libs=$hardcode_into_libs
12260 # Flag to hardcode \$libdir into a binary during linking.
12261 # This must work even if \$libdir does not exist.
12262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12264 # If ld is used when linking, flag to hardcode \$libdir into
12265 # a binary during linking. This must work even if \$libdir does
12267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12269 # Whether we need a single -rpath flag with a separated argument.
12270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12273 # resulting binary.
12274 hardcode_direct=$hardcode_direct_RC
12276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12277 # resulting binary.
12278 hardcode_minus_L=$hardcode_minus_L_RC
12280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12281 # the resulting binary.
12282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12284 # Set to yes if building a shared library automatically hardcodes DIR into the library
12285 # and all subsequent libraries and executables linked against it.
12286 hardcode_automatic=$hardcode_automatic_RC
12288 # Variables whose values should be saved in libtool wrapper scripts and
12289 # restored at relink time.
12290 variables_saved_for_relink="$variables_saved_for_relink"
12292 # Whether libtool must link a program against all its dependency libraries.
12293 link_all_deplibs=$link_all_deplibs_RC
12295 # Compile-time system search path for libraries
12296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12298 # Run-time system search path for libraries
12299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12301 # Fix the shell variable \$srcfile for the compiler.
12302 fix_srcfile_path="$fix_srcfile_path_RC"
12304 # Set to yes if exported symbols are required.
12305 always_export_symbols=$always_export_symbols_RC
12307 # The commands to list exported symbols.
12308 export_symbols_cmds=$lt_export_symbols_cmds_RC
12310 # The commands to extract the exported symbol list from a shared archive.
12311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12313 # Symbols that should not be listed in the preloaded symbols.
12314 exclude_expsyms=$lt_exclude_expsyms_RC
12316 # Symbols that must always be exported.
12317 include_expsyms=$lt_include_expsyms_RC
12319 # ### END LIBTOOL TAG CONFIG: $tagname
12325 # If there is no Makefile yet, we rely on a make rule to execute
12326 # `config.status --recheck' to rerun these tests and create the
12327 # libtool script then.
12328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12329 if test -f "$ltmain_in"; then
12330 test -f Makefile && make "$ltmain"
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12346 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12348 { (exit 1); exit 1; }; }
12352 # Append the new tag name to the list of available tags.
12353 if test -n "$tagname" ; then
12354 available_tags="$available_tags $tagname"
12360 # Now substitute the updated list of available tags.
12361 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12362 mv "${ofile}T" "$ofile"
12366 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12368 { (exit 1); exit 1; }; }
12374 # This can be used to rebuild libtool when needed
12375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12377 # Always use our own libtool.
12378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12380 # Prevent multiple expansion
12392 if test $ol_enable_perl != no ; then
12393 # Extract the first word of "perl", so it can be a program name with args.
12394 set dummy perl; ac_word=$2
12395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12397 if test "${ac_cv_path_PERLBIN+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12424 PERLBIN=$ac_cv_path_PERLBIN
12425 if test -n "$PERLBIN"; then
12426 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12427 echo "${ECHO_T}$PERLBIN" >&6; }
12429 { echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6; }
12435 if test "no$PERLBIN" = "no" ; then
12436 if test $ol_enable_perl = yes ; then
12437 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12438 echo "$as_me: error: could not locate perl" >&2;}
12439 { (exit 1); exit 1; }; }
12443 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12444 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12446 if test x"$ol_enable_perl" = "xyes" ; then
12447 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12449 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12462 # On Suns, sometimes $CPP names a directory.
12463 if test -n "$CPP" && test -d "$CPP"; then
12466 if test -z "$CPP"; then
12467 if test "${ac_cv_prog_CPP+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 # Double quotes because CPP needs to be expanded
12471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12473 ac_preproc_ok=false
12474 for ac_c_preproc_warn_flag in '' yes
12476 # Use a header file that comes with gcc, so configuring glibc
12477 # with a fresh cross-compiler works.
12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 # <limits.h> exists even on freestanding compilers.
12480 # On the NeXT, cc -E runs the code through the compiler's parser,
12481 # not just through cpp. "Syntax error" is here to catch this case.
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 # include <limits.h>
12491 # include <assert.h>
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } >/dev/null && {
12508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 # Broken: fails on valid input.
12520 rm -f conftest.err conftest.$ac_ext
12522 # OK, works on sane cases. Now check whether nonexistent headers
12523 # can be detected and how.
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <ac_nonexistent.h>
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null && {
12545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12548 # Broken: success on invalid input.
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 # Passes both tests.
12559 rm -f conftest.err conftest.$ac_ext
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12569 ac_cv_prog_CPP=$CPP
12572 CPP=$ac_cv_prog_CPP
12574 ac_cv_prog_CPP=$CPP
12576 { echo "$as_me:$LINENO: result: $CPP" >&5
12577 echo "${ECHO_T}$CPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_c_preproc_warn_flag in '' yes
12581 # Use a header file that comes with gcc, so configuring glibc
12582 # with a fresh cross-compiler works.
12583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 # <limits.h> exists even on freestanding compilers.
12585 # On the NeXT, cc -E runs the code through the compiler's parser,
12586 # not just through cpp. "Syntax error" is here to catch this case.
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 # include <limits.h>
12596 # include <assert.h>
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } >/dev/null && {
12613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 # Broken: fails on valid input.
12625 rm -f conftest.err conftest.$ac_ext
12627 # OK, works on sane cases. Now check whether nonexistent headers
12628 # can be detected and how.
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <ac_nonexistent.h>
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } >/dev/null && {
12650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12653 # Broken: success on invalid input.
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 # Passes both tests.
12664 rm -f conftest.err conftest.$ac_ext
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&5
12674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&2;}
12676 { (exit 1); exit 1; }; }
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12685 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12686 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12687 if test "${ol_cv_msvc+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12698 #include <__FOO__/generate_error.h>
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } >/dev/null && {
12715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12726 rm -f conftest.err conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12729 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12732 *mingw32* ) ac_cv_mingw32=yes ;;
12733 *cygwin* ) ac_cv_cygwin=yes ;;
12734 *interix* ) ac_cv_interix=yes ;;
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXEEXT "${EXEEXT}"
12745 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12746 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_be_be_app+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lbe -lroot -lnet $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext &&
12791 $as_test_x conftest$ac_exeext; then
12792 ac_cv_lib_be_be_app=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_lib_be_be_app=no
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12805 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12806 if test $ac_cv_lib_be_be_app = yes; then
12807 LIBS="$LIBS -lbe -lroot -lnet"
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 if test -n "$ac_tool_prefix"; then
12819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12823 if test "${ac_cv_prog_CC+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 if test -n "$CC"; then
12827 ac_cv_prog_CC="$CC" # Let the user override the test.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 if test -n "$CC"; then
12848 { echo "$as_me:$LINENO: result: $CC" >&5
12849 echo "${ECHO_T}$CC" >&6; }
12851 { echo "$as_me:$LINENO: result: no" >&5
12852 echo "${ECHO_T}no" >&6; }
12857 if test -z "$ac_cv_prog_CC"; then
12859 # Extract the first word of "gcc", so it can be a program name with args.
12860 set dummy gcc; ac_word=$2
12861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 if test -n "$ac_ct_CC"; then
12867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_prog_ac_ct_CC="gcc"
12877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12887 if test -n "$ac_ct_CC"; then
12888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12889 echo "${ECHO_T}$ac_ct_CC" >&6; }
12891 { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12895 if test "x$ac_ct_CC" = x; then
12898 case $cross_compiling:$ac_tool_warned in
12900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet. If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&5
12903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12904 whose name does not start with the host triplet. If you think this
12905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12906 ac_tool_warned=yes ;;
12911 CC="$ac_cv_prog_CC"
12914 if test -z "$CC"; then
12915 if test -n "$ac_tool_prefix"; then
12916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}cc; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_CC+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 if test -n "$CC"; then
12924 ac_cv_prog_CC="$CC" # Let the user override the test.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_CC="${ac_tool_prefix}cc"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 if test -n "$CC"; then
12945 { echo "$as_me:$LINENO: result: $CC" >&5
12946 echo "${ECHO_T}$CC" >&6; }
12948 { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12955 if test -z "$CC"; then
12956 # Extract the first word of "cc", so it can be a program name with args.
12957 set dummy cc; ac_word=$2
12958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12960 if test "${ac_cv_prog_CC+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 if test -n "$CC"; then
12964 ac_cv_prog_CC="$CC" # Let the user override the test.
12966 ac_prog_rejected=no
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12975 ac_prog_rejected=yes
12979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 if test $ac_prog_rejected = yes; then
12987 # We found a bogon in the path, so make sure we never use it.
12988 set dummy $ac_cv_prog_CC
12990 if test $# != 0; then
12991 # We chose a different compiler from the bogus one.
12992 # However, it has the same basename, so the bogon will be chosen
12993 # first if we set CC to just the basename; use the full file name.
12995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13001 if test -n "$CC"; then
13002 { echo "$as_me:$LINENO: result: $CC" >&5
13003 echo "${ECHO_T}$CC" >&6; }
13005 { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13011 if test -z "$CC"; then
13012 if test -n "$ac_tool_prefix"; then
13013 for ac_prog in cl.exe
13015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_CC+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 if test -n "$CC"; then
13023 ac_cv_prog_CC="$CC" # Let the user override the test.
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 if test -n "$CC"; then
13044 { echo "$as_me:$LINENO: result: $CC" >&5
13045 echo "${ECHO_T}$CC" >&6; }
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13052 test -n "$CC" && break
13055 if test -z "$CC"; then
13057 for ac_prog in cl.exe
13059 # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy $ac_prog; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 if test -n "$ac_ct_CC"; then
13067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_prog_ac_ct_CC="$ac_prog"
13077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13087 if test -n "$ac_ct_CC"; then
13088 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13089 echo "${ECHO_T}$ac_ct_CC" >&6; }
13091 { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13096 test -n "$ac_ct_CC" && break
13099 if test "x$ac_ct_CC" = x; then
13102 case $cross_compiling:$ac_tool_warned in
13104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet. If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&5
13107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13108 whose name does not start with the host triplet. If you think this
13109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13110 ac_tool_warned=yes ;;
13119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&2;}
13123 { (exit 1); exit 1; }; }
13125 # Provide some information about the compiler.
13126 echo "$as_me:$LINENO: checking for C compiler version" >&5
13127 ac_compiler=`set X $ac_compile; echo $2`
13128 { (ac_try="$ac_compiler --version >&5"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compiler --version >&5") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }
13138 { (ac_try="$ac_compiler -v >&5"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_compiler -v >&5") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }
13148 { (ac_try="$ac_compiler -V >&5"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compiler -V >&5") 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }
13159 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_compile") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest.$ac_objext; then
13199 ac_compiler_gnu=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13213 GCC=`test $ac_compiler_gnu = yes && echo yes`
13214 ac_test_CFLAGS=${CFLAGS+set}
13215 ac_save_CFLAGS=$CFLAGS
13216 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13218 if test "${ac_cv_prog_cc_g+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 ac_save_c_werror_flag=$ac_c_werror_flag
13222 ac_c_werror_flag=yes
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_compile") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest.$ac_objext; then
13257 ac_cv_prog_cc_g=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } && {
13292 test -z "$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 } && test -s conftest.$ac_objext; then
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_c_werror_flag=$ac_save_c_werror_flag
13302 cat >conftest.$ac_ext <<_ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_cv_prog_cc_g=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 ac_c_werror_flag=$ac_save_c_werror_flag
13351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13353 if test "$ac_test_CFLAGS" = set; then
13354 CFLAGS=$ac_save_CFLAGS
13355 elif test $ac_cv_prog_cc_g = yes; then
13356 if test "$GCC" = yes; then
13362 if test "$GCC" = yes; then
13368 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13369 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_cc_c89+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_cv_prog_cc_c89=no
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include <stdarg.h>
13383 #include <sys/types.h>
13384 #include <sys/stat.h>
13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13386 struct buf { int x; };
13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13388 static char *e (p, i)
13394 static char *f (char * (*g) (char **, int), char **p, ...)
13399 s = g (p, va_arg (v,int));
13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13405 function prototypes and stuff, but not '\xHH' hex character constants.
13406 These don't provoke an error unfortunately, instead are silently treated
13407 as 'x'. The following induces an error, until -std is added to get
13408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13409 array size at least. It's necessary to write '\x00'==0 to get something
13410 that's true only with -std. */
13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13414 inside strings and character constants. */
13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13418 int test (int i, double x);
13419 struct s1 {int (*f) (int a);};
13420 struct s2 {int (*f) (double a);};
13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13435 CC="$ac_save_CC $ac_arg"
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_cv_prog_cc_c89=$ac_arg
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13461 rm -f core conftest.err conftest.$ac_objext
13462 test "x$ac_cv_prog_cc_c89" != "xno" && break
13464 rm -f conftest.$ac_ext
13469 case "x$ac_cv_prog_cc_c89" in
13471 { echo "$as_me:$LINENO: result: none needed" >&5
13472 echo "${ECHO_T}none needed" >&6; } ;;
13474 { echo "$as_me:$LINENO: result: unsupported" >&5
13475 echo "${ECHO_T}unsupported" >&6; } ;;
13477 CC="$CC $ac_cv_prog_cc_c89"
13478 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489 depcc="$CC" am_compiler_list=
13491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13497 # We make a subdir and do the tests there. Otherwise we can end up
13498 # making bogus files that we don't know about and never remove. For
13499 # instance it was reported that on HP-UX the gcc test will end up
13500 # making a dummy file named `D' -- because `-MD' means `put the output
13503 # Copy depcomp to subdir because otherwise we won't find it if we're
13504 # using a relative directory.
13505 cp "$am_depcomp" conftest.dir
13507 # We will build objects and dependencies in a subdirectory because
13508 # it helps to detect inapplicable dependency modes. For instance
13509 # both Tru64's cc and ICC support -MD to output dependencies as a
13510 # side effect of compilation, but ICC will put the dependencies in
13511 # the current directory while Tru64 will put them in the object
13515 am_cv_CC_dependencies_compiler_type=none
13516 if test "$am_compiler_list" = ""; then
13517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13519 for depmode in $am_compiler_list; do
13520 # Setup a source with many dependencies, because some compilers
13521 # like to wrap large dependency lists on column 80 (with \), and
13522 # we should not choose a depcomp mode which is confused by this.
13524 # We need to recreate these files for each test, as the compiler may
13525 # overwrite some of them when testing with obscure command lines.
13526 # This happens at least with the AIX C compiler.
13528 for i in 1 2 3 4 5 6; do
13529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13531 # Solaris 8's {/usr,}/bin/sh.
13532 touch sub/conftst$i.h
13534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13538 # after this tag, mechanisms are not by side-effect, so they'll
13539 # only be used when explicitly requested
13540 if test "x$enable_dependency_tracking" = xyes; then
13548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13549 # mode. It turns out that the SunPro C++ compiler does not properly
13550 # handle `-M -o', and we need to detect this.
13551 if depmode=$depmode \
13552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13555 >/dev/null 2>conftest.err &&
13556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13559 # icc doesn't choke on unknown options, it will just issue warnings
13560 # or remarks (even with -Werror). So we grep stderr for any message
13561 # that says an option was ignored or not supported.
13562 # When given -MP, icc 7.0 and 7.1 complain thusly:
13563 # icc: Command line warning: ignoring option '-M'; no argument required
13564 # The diagnosis changed in icc 8.0:
13565 # icc: Command line remark: option '-MP' not supported
13566 if (grep 'ignoring option' conftest.err ||
13567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13568 am_cv_CC_dependencies_compiler_type=$depmode
13575 rm -rf conftest.dir
13577 am_cv_CC_dependencies_compiler_type=none
13581 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13582 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13588 test "x$enable_dependency_tracking" != xno \
13589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13590 am__fastdepCC_TRUE=
13591 am__fastdepCC_FALSE='#'
13593 am__fastdepCC_TRUE='#'
13594 am__fastdepCC_FALSE=
13598 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13599 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13600 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13601 { (exit 1); exit 1; }; }
13604 # test for make depend flag
13607 if test -z "${MKDEP}"; then
13608 OL_MKDEP="${CC-cc}"
13609 if test -z "${MKDEP_FLAGS}"; then
13610 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13611 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13612 if test "${ol_cv_mkdep+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 for flag in "-M" "-xM"; do
13618 cat > conftest.c <<EOF
13621 if { ac_try='$OL_MKDEP $flag conftest.c'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } \
13627 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13629 if test ! -f conftest."${ac_object}" ; then
13631 OL_MKDEP_FLAGS="$flag"
13639 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13640 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13641 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13644 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13648 OL_MKDEP="${MKDEP}"
13649 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13654 if test "${ol_cv_mkdep}" = no ; then
13655 # this will soon become an error
13656 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13657 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13660 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13661 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_s_afopen+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 ac_check_lib_save_LIBS=$LIBS
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext &&
13706 $as_test_x conftest$ac_exeext; then
13707 ac_cv_lib_s_afopen=yes
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_s_afopen=no
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13721 if test $ac_cv_lib_s_afopen = yes; then
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_AIX_SECURITY 1
13735 ac_cv_func_getopt=no
13737 cat >>confdefs.h <<\_ACEOF
13738 #define BOTH_STRINGS_H 1
13745 WITH_MODULES_ENABLED=no
13746 if test $ol_enable_modules != no ; then
13748 for ac_header in ltdl.h
13750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_res=`eval echo '${'$as_ac_Header'}'`
13758 { echo "$as_me:$LINENO: result: $ac_res" >&5
13759 echo "${ECHO_T}$ac_res" >&6; }
13761 # Is the header compilable?
13762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13764 cat >conftest.$ac_ext <<_ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 $ac_includes_default
13771 #include <$ac_header>
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_compile") 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && {
13787 test -z "$ac_c_werror_flag" ||
13788 test ! -s conftest.err
13789 } && test -s conftest.$ac_objext; then
13790 ac_header_compiler=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_header_compiler=no
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13800 echo "${ECHO_T}$ac_header_compiler" >&6; }
13802 # Is the header present?
13803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811 #include <$ac_header>
13813 if { (ac_try="$ac_cpp conftest.$ac_ext"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } >/dev/null && {
13826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13829 ac_header_preproc=yes
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_header_preproc=no
13837 rm -f conftest.err conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6; }
13841 # So? What about this header?
13842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13848 ac_header_preproc=yes
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13864 ## --------------------------------------------- ##
13865 ## Report this to <http://www.openldap.org/its/> ##
13866 ## --------------------------------------------- ##
13868 ) | sed "s/^/$as_me: WARNING: /" >&2
13871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 eval "$as_ac_Header=\$ac_header_preproc"
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879 { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13884 cat >>confdefs.h <<_ACEOF
13885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13893 if test $ac_cv_header_ltdl_h = no ; then
13894 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13895 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13896 { (exit 1); exit 1; }; }
13899 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13900 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13901 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lltdl $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13923 return lt_dlinit ();
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } && {
13942 test -z "$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13944 } && test -s conftest$ac_exeext &&
13945 $as_test_x conftest$ac_exeext; then
13946 ac_cv_lib_ltdl_lt_dlinit=yes
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_cv_lib_ltdl_lt_dlinit=no
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13958 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13959 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13960 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13962 MODULES_LIBS=-lltdl
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBLTDL 1
13972 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13973 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13974 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13975 { (exit 1); exit 1; }; }
13977 ol_link_modules=yes
13978 WITH_MODULES_ENABLED=yes
13981 for i in $Backends; do
13982 eval "ol_tmp=\$ol_enable_$i"
13983 if test $ol_tmp = mod ; then
13984 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13985 echo "$as_me: WARNING: building static $i backend" >&2;}
13986 eval "ol_enable_$i=yes"
13989 for i in $Overlays; do
13990 eval "ol_tmp=\$ol_enable_$i"
13991 if test $ol_tmp = mod ; then
13992 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13993 echo "$as_me: WARNING: building static $i overlay" >&2;}
13994 eval "ol_enable_$i=yes"
14000 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14001 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14002 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14014 #include <__ASCII__/generate_error.h>
14018 if { (ac_try="$ac_cpp conftest.$ac_ext"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } >/dev/null && {
14031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14032 test ! -s conftest.err
14034 ol_cv_cpp_ebcdic=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ol_cv_cpp_ebcdic=no
14042 rm -f conftest.err conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14045 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14046 if test $ol_cv_cpp_ebcdic = yes ; then
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_EBCDIC 1
14054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14056 if test "${ol_cv_header_stdc+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <stdlib.h>
14066 #include <stdarg.h>
14067 #include <string.h>
14070 if { (ac_try="$ac_cpp conftest.$ac_ext"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null && {
14083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14086 ol_cv_header_stdc=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ol_cv_header_stdc=no
14094 rm -f conftest.err conftest.$ac_ext
14096 if test $ol_cv_header_stdc = yes; then
14097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <string.h>
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 $EGREP "memchr" >/dev/null 2>&1; then
14111 ol_cv_header_stdc=no
14117 if test $ol_cv_header_stdc = yes; then
14118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #include <stdlib.h>
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129 $EGREP "free" >/dev/null 2>&1; then
14132 ol_cv_header_stdc=no
14138 if test $ol_cv_header_stdc = yes; then
14139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14140 if test "$cross_compiling" = yes; then
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14150 #ifndef HAVE_EBCDIC
14151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14154 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14155 || ('j' <= (c) && (c) <= 'r') \
14156 || ('s' <= (c) && (c) <= 'z'))
14157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14160 int main () { int i; for (i = 0; i < 256; i++)
14161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14187 echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ( exit $ac_status )
14192 ol_cv_header_stdc=no
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14200 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14201 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14202 if test $ol_cv_header_stdc = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define STDC_HEADERS 1
14208 ac_cv_header_stdc=disable
14211 if test $ol_cv_header_stdc != yes; then
14212 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14213 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14221 ac_header_dirent=no
14222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14223 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #include <sys/types.h>
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 eval "$as_ac_Header=yes"
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 eval "$as_ac_Header=no"
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 ac_res=`eval echo '${'$as_ac_Header'}'`
14275 { echo "$as_me:$LINENO: result: $ac_res" >&5
14276 echo "${ECHO_T}$ac_res" >&6; }
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278 cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14282 ac_header_dirent=$ac_hdr; break
14286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14287 if test $ac_header_dirent = dirent.h; then
14288 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_opendir+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14316 for ac_lib in '' dir; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
14339 } && test -s conftest$ac_exeext &&
14340 $as_test_x conftest$ac_exeext; then
14341 ac_cv_search_opendir=$ac_res
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 if test "${ac_cv_search_opendir+set}" = set; then
14355 if test "${ac_cv_search_opendir+set}" = set; then
14358 ac_cv_search_opendir=no
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then
14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14400 for ac_lib in '' x; do
14401 if test -z "$ac_lib"; then
14402 ac_res="none required"
14405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_link") 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } && {
14421 test -z "$ac_c_werror_flag" ||
14422 test ! -s conftest.err
14423 } && test -s conftest$ac_exeext &&
14424 $as_test_x conftest$ac_exeext; then
14425 ac_cv_search_opendir=$ac_res
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14435 if test "${ac_cv_search_opendir+set}" = set; then
14439 if test "${ac_cv_search_opendir+set}" = set; then
14442 ac_cv_search_opendir=no
14444 rm conftest.$ac_ext
14445 LIBS=$ac_func_search_save_LIBS
14447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14449 ac_res=$ac_cv_search_opendir
14450 if test "$ac_res" != no; then
14451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 #include <sys/types.h>
14469 #include <sys/wait.h>
14470 #ifndef WEXITSTATUS
14471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14482 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_compile") 2>conftest.er1
14496 grep -v '^ *+' conftest.er1 >conftest.err
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest.$ac_objext; then
14504 ac_cv_header_sys_wait_h=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_cv_header_sys_wait_h=no
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14516 if test $ac_cv_header_sys_wait_h = yes; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_SYS_WAIT_H 1
14524 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14525 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14526 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 #include <sys/types.h>
14536 #include <termios.h>
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543 $EGREP "yes" >/dev/null 2>&1; then
14544 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14546 ac_cv_sys_tiocgwinsz_in_termios_h=no
14551 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14552 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14554 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14555 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14556 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14557 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #include <sys/ioctl.h>
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574 $EGREP "yes" >/dev/null 2>&1; then
14575 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14577 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14582 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14583 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14585 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define GWINSZ_IN_SYS_IOCTL 1
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700 { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14703 # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <$ac_header>
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 ac_header_compiler=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_header_compiler=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <$ac_header>
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev/null && {
14768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14771 ac_header_preproc=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_header_preproc=no
14779 rm -f conftest.err conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781 echo "${ECHO_T}$ac_header_preproc" >&6; }
14783 # So? What about this header?
14784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790 ac_header_preproc=yes
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14806 ## --------------------------------------------- ##
14807 ## Report this to <http://www.openldap.org/its/> ##
14808 ## --------------------------------------------- ##
14810 ) | sed "s/^/$as_me: WARNING: /" >&2
14813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 eval "$as_ac_Header=\$ac_header_preproc"
14820 ac_res=`eval echo '${'$as_ac_Header'}'`
14821 { echo "$as_me:$LINENO: result: $ac_res" >&5
14822 echo "${ECHO_T}$ac_res" >&6; }
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14835 if test "$ac_cv_mingw32" = yes \
14836 -o "$ac_cv_interix" = yes \
14837 -o "$ol_cv_msvc" = yes
14841 for ac_header in winsock.h winsock2.h
14843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14854 # Is the header compilable?
14855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 $ac_includes_default
14864 #include <$ac_header>
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_compile") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
14883 ac_header_compiler=yes
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_header_compiler=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <$ac_header>
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null && {
14919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14922 ac_header_preproc=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_preproc=no
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14934 # So? What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957 ## --------------------------------------------- ##
14958 ## Report this to <http://www.openldap.org/its/> ##
14959 ## --------------------------------------------- ##
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 eval "$as_ac_Header=\$ac_header_preproc"
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 for ac_header in resolv.h
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <netinet/in.h>
15006 #include <$ac_header>
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest.$ac_objext; then
15025 eval "$as_ac_Header=yes"
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 eval "$as_ac_Header=no"
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15049 for ac_header in netinet/tcp.h
15051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15064 #include <netinet/in.h>
15067 #include <$ac_header>
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest.$ac_objext; then
15086 eval "$as_ac_Header=yes"
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 eval "$as_ac_Header=no"
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097 { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15110 for ac_header in sys/ucred.h
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15125 #ifdef HAVE_SYS_PARAM_H
15126 #include <sys/param.h>
15130 #include <$ac_header>
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 eval "$as_ac_Header=yes"
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 eval "$as_ac_Header=no"
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160 { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15163 cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175 for ac_func in sigaction sigset
15177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15191 #define $ac_func innocuous_$ac_func
15193 /* System header to define __stub macros and hopefully few prototypes,
15194 which can conflict with char $ac_func (); below.
15195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196 <limits.h> exists even on freestanding compilers. */
15199 # include <limits.h>
15201 # include <assert.h>
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15213 /* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216 #if defined __stub_$ac_func || defined __stub___$ac_func
15223 return $ac_func ();
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15246 eval "$as_ac_var=yes"
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 eval "$as_ac_var=no"
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15257 ac_res=`eval echo '${'$as_ac_var'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261 cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15269 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15271 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15272 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 ac_check_lib_save_LIBS=$LIBS
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest$ac_exeext &&
15317 $as_test_x conftest$ac_exeext; then
15318 ac_cv_lib_V3_sigset=yes
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_cv_lib_V3_sigset=no
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15331 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15332 if test $ac_cv_lib_V3_sigset = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBV3 1
15343 if test $ol_cv_msvc = yes ; then
15347 if test "$ac_cv_header_winsock_h" = yes; then
15348 { echo "$as_me:$LINENO: checking for winsock" >&5
15349 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15350 if test "${ol_cv_winsock+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 for curlib in none ws2_32 wsock32; do
15356 if test $curlib != none ; then
15357 LIBS="$save_LIBS -l$curlib"
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #include <winsock.h>
15372 select(0,NULL,NULL,NULL,NULL);
15374 gethostname(NULL,0);
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } && {
15394 test -z "$ac_c_werror_flag" ||
15395 test ! -s conftest.err
15396 } && test -s conftest$ac_exeext &&
15397 $as_test_x conftest$ac_exeext; then
15398 ol_cv_winsock=$curlib
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15407 conftest$ac_exeext conftest.$ac_ext
15409 test "$ol_cv_winsock" != no && break
15414 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15415 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15417 if test $ol_cv_winsock != no ; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_WINSOCK 1
15423 ac_cv_func_socket=yes
15424 ac_cv_func_select=yes
15425 ac_cv_func_closesocket=yes
15426 ac_cv_func_gethostname=yes
15428 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15429 LIBS="$LIBS -l$ol_cv_winsock"
15432 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_WINSOCK2 1
15443 { echo "$as_me:$LINENO: checking for socket" >&5
15444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15445 if test "${ac_cv_func_socket+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define socket innocuous_socket
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char socket (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined __stub_socket || defined __stub___socket
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15511 ac_cv_func_socket=yes
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 ac_cv_func_socket=no
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15524 if test $ac_cv_func_socket = yes; then
15529 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15531 if test "${ac_cv_lib_socket_main+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lsocket $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15561 grep -v '^ *+' conftest.er1 >conftest.err
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 ac_cv_lib_socket_main=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_lib_socket_main=no
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15583 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15584 if test $ac_cv_lib_socket_main = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBSOCKET 1
15589 LIBS="-lsocket $LIBS"
15594 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15595 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_net_main+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 ac_check_lib_save_LIBS=$LIBS
15601 cat >conftest.$ac_ext <<_ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_link") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } && {
15631 test -z "$ac_c_werror_flag" ||
15632 test ! -s conftest.err
15633 } && test -s conftest$ac_exeext &&
15634 $as_test_x conftest$ac_exeext; then
15635 ac_cv_lib_net_main=yes
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_cv_lib_net_main=no
15643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15644 conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15647 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15648 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15649 if test $ac_cv_lib_net_main = yes; then
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_LIBNET 1
15659 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15660 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lnsl_s $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15700 ac_cv_lib_nsl_s_main=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_cv_lib_nsl_s_main=no
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15710 LIBS=$ac_check_lib_save_LIBS
15712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15713 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15714 if test $ac_cv_lib_nsl_s_main = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_LIBNSL_S 1
15719 LIBS="-lnsl_s $LIBS"
15724 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15725 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15726 if test "${ac_cv_lib_nsl_main+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 ac_check_lib_save_LIBS=$LIBS
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_link") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest$ac_exeext &&
15764 $as_test_x conftest$ac_exeext; then
15765 ac_cv_lib_nsl_main=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_cv_lib_nsl_main=no
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15778 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15779 if test $ac_cv_lib_nsl_main = yes; then
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBNSL 1
15789 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_inet_socket+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-linet $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_link") 2>conftest.er1
15827 grep -v '^ *+' conftest.er1 >conftest.err
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } && {
15832 test -z "$ac_c_werror_flag" ||
15833 test ! -s conftest.err
15834 } && test -s conftest$ac_exeext &&
15835 $as_test_x conftest$ac_exeext; then
15836 ac_cv_lib_inet_socket=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_lib_inet_socket=no
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15850 if test $ac_cv_lib_inet_socket = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBINET 1
15855 LIBS="-linet $LIBS"
15860 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15861 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_gen_main+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 ac_check_lib_save_LIBS=$LIBS
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_link") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest$ac_exeext &&
15900 $as_test_x conftest$ac_exeext; then
15901 ac_cv_lib_gen_main=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_cv_lib_gen_main=no
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15915 if test $ac_cv_lib_gen_main = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_LIBGEN 1
15928 { echo "$as_me:$LINENO: checking for select" >&5
15929 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15930 if test "${ac_cv_func_select+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 /* Define select to an innocuous variant, in case <limits.h> declares select.
15940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15941 #define select innocuous_select
15943 /* System header to define __stub macros and hopefully few prototypes,
15944 which can conflict with char select (); below.
15945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946 <limits.h> exists even on freestanding compilers. */
15949 # include <limits.h>
15951 # include <assert.h>
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15963 /* The GNU C library defines this for functions which it implements
15964 to always fail with ENOSYS. Some functions are actually named
15965 something starting with __ and the normal name is an alias. */
15966 #if defined __stub_select || defined __stub___select
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982 *) ac_try_echo=$ac_try;;
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985 (eval "$ac_link") 2>conftest.er1
15987 grep -v '^ *+' conftest.er1 >conftest.err
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } && {
15992 test -z "$ac_c_werror_flag" ||
15993 test ! -s conftest.err
15994 } && test -s conftest$ac_exeext &&
15995 $as_test_x conftest$ac_exeext; then
15996 ac_cv_func_select=yes
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_cv_func_select=no
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005 conftest$ac_exeext conftest.$ac_ext
16007 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16008 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16009 if test $ac_cv_func_select = yes; then
16012 { { echo "$as_me:$LINENO: error: select() required." >&5
16013 echo "$as_me: error: select() required." >&2;}
16014 { (exit 1); exit 1; }; }
16018 if test "${ac_cv_header_winsock_h}" != yes; then
16021 for ac_header in sys/select.h sys/socket.h
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16034 # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest.$ac_objext; then
16063 ac_header_compiler=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_compiler=no
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16073 echo "${ECHO_T}$ac_header_compiler" >&6; }
16075 # Is the header present?
16076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 #include <$ac_header>
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev/null && {
16099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16102 ac_header_preproc=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_header_preproc=no
16110 rm -f conftest.err conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6; }
16114 # So? What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121 ac_header_preproc=yes
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16141 ) | sed "s/^/$as_me: WARNING: /" >&2
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 eval "$as_ac_Header=\$ac_header_preproc"
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152 { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16166 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16167 if test "${ac_cv_func_select_args+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16171 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16172 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 $ac_includes_default
16180 #ifdef HAVE_SYS_SELECT_H
16181 # include <sys/select.h>
16183 #ifdef HAVE_SYS_SOCKET_H
16184 # include <sys/socket.h>
16190 extern int select ($ac_arg1,
16191 $ac_arg234, $ac_arg234, $ac_arg234,
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16214 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 # Provide a safe default value.
16227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16230 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16231 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16232 ac_save_IFS=$IFS; IFS=','
16233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16237 cat >>confdefs.h <<_ACEOF
16238 #define SELECT_TYPE_ARG1 $1
16242 cat >>confdefs.h <<_ACEOF
16243 #define SELECT_TYPE_ARG234 ($2)
16247 cat >>confdefs.h <<_ACEOF
16248 #define SELECT_TYPE_ARG5 ($3)
16257 for ac_func in poll
16259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16273 #define $ac_func innocuous_$ac_func
16275 /* System header to define __stub macros and hopefully few prototypes,
16276 which can conflict with char $ac_func (); below.
16277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278 <limits.h> exists even on freestanding compilers. */
16281 # include <limits.h>
16283 # include <assert.h>
16288 /* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16295 /* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298 #if defined __stub_$ac_func || defined __stub___$ac_func
16305 return $ac_func ();
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_link") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } && {
16324 test -z "$ac_c_werror_flag" ||
16325 test ! -s conftest.err
16326 } && test -s conftest$ac_exeext &&
16327 $as_test_x conftest$ac_exeext; then
16328 eval "$as_ac_var=yes"
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 eval "$as_ac_var=no"
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337 conftest$ac_exeext conftest.$ac_ext
16339 ac_res=`eval echo '${'$as_ac_var'}'`
16340 { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16350 if test $ac_cv_func_poll = yes; then
16353 for ac_header in poll.h sys/poll.h
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16366 # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 #include <$ac_header>
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest.$ac_objext; then
16395 ac_header_compiler=yes
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_header_compiler=no
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 #include <$ac_header>
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null && {
16431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16434 ac_header_preproc=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_preproc=no
16442 rm -f conftest.err conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 echo "${ECHO_T}$ac_header_preproc" >&6; }
16446 # So? What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453 ac_header_preproc=yes
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16469 ## --------------------------------------------- ##
16470 ## Report this to <http://www.openldap.org/its/> ##
16471 ## --------------------------------------------- ##
16473 ) | sed "s/^/$as_me: WARNING: /" >&2
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 eval "$as_ac_Header=\$ac_header_preproc"
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484 { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16500 for ac_header in sys/epoll.h
16502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 ac_res=`eval echo '${'$as_ac_Header'}'`
16510 { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16513 # Is the header compilable?
16514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 $ac_includes_default
16523 #include <$ac_header>
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_compile") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && {
16539 test -z "$ac_c_werror_flag" ||
16540 test ! -s conftest.err
16541 } && test -s conftest.$ac_objext; then
16542 ac_header_compiler=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_header_compiler=no
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6; }
16554 # Is the header present?
16555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <$ac_header>
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } >/dev/null && {
16578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16579 test ! -s conftest.err
16581 ac_header_preproc=yes
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ac_header_preproc=no
16589 rm -f conftest.err conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6; }
16593 # So? What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600 ac_header_preproc=yes
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16616 ## --------------------------------------------- ##
16617 ## Report this to <http://www.openldap.org/its/> ##
16618 ## --------------------------------------------- ##
16620 ) | sed "s/^/$as_me: WARNING: /" >&2
16623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 eval "$as_ac_Header=\$ac_header_preproc"
16630 ac_res=`eval echo '${'$as_ac_Header'}'`
16631 { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636 cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16645 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16646 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16647 if test "$cross_compiling" = yes; then
16648 { echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6; }
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 int main(int argc, char **argv)
16659 int epfd = epoll_create(256);
16660 exit (epfd == -1 ? 1 : 0);
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_EPOLL 1
16691 echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ( exit $ac_status )
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16706 for ac_header in sys/devpoll.h
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 ac_res=`eval echo '${'$as_ac_Header'}'`
16716 { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16719 # Is the header compilable?
16720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16729 #include <$ac_header>
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_compile") 2>conftest.er1
16740 grep -v '^ *+' conftest.er1 >conftest.err
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && {
16745 test -z "$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 } && test -s conftest.$ac_objext; then
16748 ac_header_compiler=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_header_compiler=no
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16758 echo "${ECHO_T}$ac_header_compiler" >&6; }
16760 # Is the header present?
16761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <$ac_header>
16771 if { (ac_try="$ac_cpp conftest.$ac_ext"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } >/dev/null && {
16784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16787 ac_header_preproc=yes
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_header_preproc=no
16795 rm -f conftest.err conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6; }
16799 # So? What about this header?
16800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16806 ac_header_preproc=yes
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16822 ## --------------------------------------------- ##
16823 ## Report this to <http://www.openldap.org/its/> ##
16824 ## --------------------------------------------- ##
16826 ) | sed "s/^/$as_me: WARNING: /" >&2
16829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 eval "$as_ac_Header=\$ac_header_preproc"
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16851 -a "${ac_cv_header_poll_h}" = yes ; \
16853 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16855 if test "$cross_compiling" = yes; then
16856 { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 int main(int argc, char **argv)
16867 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16868 exit (devpollfd == -1 ? 1 : 0);
16871 rm -f conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_link") 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_try") 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_DEVPOLL 1
16899 echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ( exit $ac_status )
16904 { echo "$as_me:$LINENO: result: no" >&5
16905 echo "${ECHO_T}no" >&6; }
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16914 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16915 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16927 #include <sys/types.h>
16930 #include <stdlib.h>
16935 char *c = (char *) *sys_errlist
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest.$ac_objext; then
16957 ol_cv_dcl_sys_errlist=yes
16958 ol_cv_have_sys_errlist=yes
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ol_cv_dcl_sys_errlist=no
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16969 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16971 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16972 if test $ol_cv_dcl_sys_errlist = no ; then
16974 cat >>confdefs.h <<\_ACEOF
16975 #define DECL_SYS_ERRLIST 1
16979 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16980 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16981 if test "${ol_cv_have_sys_errlist+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16995 char *c = (char *) *sys_errlist
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_link") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest$ac_exeext &&
17017 $as_test_x conftest$ac_exeext; then
17018 ol_cv_have_sys_errlist=yes
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ol_cv_have_sys_errlist=no
17026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17027 conftest$ac_exeext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17030 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17032 if test $ol_cv_have_sys_errlist = yes ; then
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_SYS_ERRLIST 1
17041 for ac_func in strerror strerror_r
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17057 #define $ac_func innocuous_$ac_func
17059 /* System header to define __stub macros and hopefully few prototypes,
17060 which can conflict with char $ac_func (); below.
17061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062 <limits.h> exists even on freestanding compilers. */
17065 # include <limits.h>
17067 # include <assert.h>
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17079 /* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17089 return $ac_func ();
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>conftest.er1
17103 grep -v '^ *+' conftest.er1 >conftest.err
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } && {
17108 test -z "$ac_c_werror_flag" ||
17109 test ! -s conftest.err
17110 } && test -s conftest$ac_exeext &&
17111 $as_test_x conftest$ac_exeext; then
17112 eval "$as_ac_var=yes"
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 eval "$as_ac_var=no"
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17123 ac_res=`eval echo '${'$as_ac_var'}'`
17124 { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 if test `eval echo '${'$as_ac_var'}'` = yes; then
17127 cat >>confdefs.h <<_ACEOF
17128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17134 ol_cv_func_strerror_r=no
17135 if test "${ac_cv_func_strerror_r}" = yes ; then
17136 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17137 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17138 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include <string.h>
17150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17151 $EGREP "strerror_r" >/dev/null 2>&1; then
17152 ol_decl_strerror_r=yes
17154 ol_decl_strerror_r=no
17158 if test $ol_decl_strerror_r = yes ; then
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 #include <string.h>
17169 /* from autoconf 2.59 */
17171 char x = *strerror_r (0, buf, sizeof buf);
17172 char *p = strerror_r (0, buf, sizeof buf);
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ol_cv_nonposix_strerror_r=yes
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ol_cv_nonposix_strerror_r=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 if test "$cross_compiling" = yes; then
17206 ol_cv_nonposix_strerror=no
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17218 strerror_r( 1, buf, sizeof buf );
17219 exit( buf[0] == 0 );
17223 rm -f conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ol_cv_nonposix_strerror_r=yes
17245 echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ( exit $ac_status )
17250 ol_cv_nonposix_strerror=no
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17260 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17261 if test $ol_cv_nonposix_strerror_r = yes ; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_NONPOSIX_STRERROR_R 1
17269 elif test "${ac_cv_func_strerror}" = no ; then
17270 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17284 #include <sys/types.h>
17287 #include <stdlib.h>
17292 char *c = (char *) *sys_errlist
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_compile") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest.$ac_objext; then
17314 ol_cv_dcl_sys_errlist=yes
17315 ol_cv_have_sys_errlist=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ol_cv_dcl_sys_errlist=no
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17326 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17328 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17329 if test $ol_cv_dcl_sys_errlist = no ; then
17331 cat >>confdefs.h <<\_ACEOF
17332 #define DECL_SYS_ERRLIST 1
17336 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17337 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17338 if test "${ol_cv_have_sys_errlist+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 cat >conftest.$ac_ext <<_ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17352 char *c = (char *) *sys_errlist
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_link") 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } && {
17371 test -z "$ac_c_werror_flag" ||
17372 test ! -s conftest.err
17373 } && test -s conftest$ac_exeext &&
17374 $as_test_x conftest$ac_exeext; then
17375 ol_cv_have_sys_errlist=yes
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ol_cv_have_sys_errlist=no
17383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384 conftest$ac_exeext conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17387 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17389 if test $ol_cv_have_sys_errlist = yes ; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_SYS_ERRLIST 1
17401 for ac_header in regex.h
17403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 $ac_includes_default
17416 #ifdef HAVE_SYS_TYPES_H
17417 #include <sys/types.h>
17421 #include <$ac_header>
17423 rm -f conftest.$ac_objext
17424 if { (ac_try="$ac_compile"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_compile") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest.$ac_objext; then
17440 eval "$as_ac_Header=yes"
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 eval "$as_ac_Header=no"
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17463 if test "$ac_cv_header_regex_h" != yes ; then
17464 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17465 echo "$as_me: error: POSIX regex.h required." >&2;}
17466 { (exit 1); exit 1; }; }
17468 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17469 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17470 if test "${ac_cv_search_regfree+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 ac_func_search_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17481 /* Override any GCC internal prototype to avoid an error.
17482 Use char because int might match the return type of a GCC
17483 builtin and then its argument prototype would still apply. */
17496 for ac_lib in '' regex gnuregex; do
17497 if test -z "$ac_lib"; then
17498 ac_res="none required"
17501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17503 rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_link") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && {
17517 test -z "$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 } && test -s conftest$ac_exeext &&
17520 $as_test_x conftest$ac_exeext; then
17521 ac_cv_search_regfree=$ac_res
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 if test "${ac_cv_search_regfree+set}" = set; then
17535 if test "${ac_cv_search_regfree+set}" = set; then
17538 ac_cv_search_regfree=no
17540 rm conftest.$ac_ext
17541 LIBS=$ac_func_search_save_LIBS
17543 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17544 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17545 ac_res=$ac_cv_search_regfree
17546 if test "$ac_res" != no; then
17547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17550 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17551 echo "$as_me: error: POSIX regex required." >&2;}
17552 { (exit 1); exit 1; }; }
17557 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17558 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17559 if test "${ol_cv_c_posix_regex+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 if test "$cross_compiling" = yes; then
17564 ol_cv_c_posix_regex=cross
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17573 #include <sys/types.h>
17575 static char *pattern, *string;
17583 if(regcomp(&re, pattern, 0)) {
17587 string = "ALL MATCH";
17589 rc = regexec(&re, string, 0, (void*)0, 0);
17596 rm -f conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ol_cv_c_posix_regex=yes
17618 echo "$as_me: program exited with status $ac_status" >&5
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ( exit $ac_status )
17623 ol_cv_c_posix_regex=no
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17630 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17631 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17633 if test "$ol_cv_c_posix_regex" = no ; then
17634 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17635 echo "$as_me: error: broken POSIX regex!" >&2;}
17636 { (exit 1); exit 1; }; }
17642 for ac_header in sys/uuid.h
17644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652 { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17655 # Is the header compilable?
17656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 $ac_includes_default
17665 #include <$ac_header>
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_compile") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest.$ac_objext; then
17684 ac_header_compiler=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_header_compiler=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17694 echo "${ECHO_T}$ac_header_compiler" >&6; }
17696 # Is the header present?
17697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 #include <$ac_header>
17707 if { (ac_try="$ac_cpp conftest.$ac_ext"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } >/dev/null && {
17720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17723 ac_header_preproc=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_header_preproc=no
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17735 # So? What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742 ac_header_preproc=yes
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17758 ## --------------------------------------------- ##
17759 ## Report this to <http://www.openldap.org/its/> ##
17760 ## --------------------------------------------- ##
17762 ) | sed "s/^/$as_me: WARNING: /" >&2
17765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 eval "$as_ac_Header=\$ac_header_preproc"
17772 ac_res=`eval echo '${'$as_ac_Header'}'`
17773 { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17786 if test $ac_cv_header_sys_uuid_h = yes ; then
17788 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17789 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17790 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 ac_func_search_save_LIBS=$LIBS
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17807 char uuid_to_str ();
17811 return uuid_to_str ();
17816 for ac_lib in '' uuid; do
17817 if test -z "$ac_lib"; then
17818 ac_res="none required"
17821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext &&
17840 $as_test_x conftest$ac_exeext; then
17841 ac_cv_search_uuid_to_str=$ac_res
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17851 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17855 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17858 ac_cv_search_uuid_to_str=no
17860 rm conftest.$ac_ext
17861 LIBS=$ac_func_search_save_LIBS
17863 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17864 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17865 ac_res=$ac_cv_search_uuid_to_str
17866 if test "$ac_res" != no; then
17867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17873 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17874 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17875 if test "${ac_cv_search_uuid_create+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_func_search_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17892 char uuid_create ();
17896 return uuid_create ();
17901 for ac_lib in '' uuid; do
17902 if test -z "$ac_lib"; then
17903 ac_res="none required"
17906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest$ac_exeext &&
17925 $as_test_x conftest$ac_exeext; then
17926 ac_cv_search_uuid_create=$ac_res
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17936 if test "${ac_cv_search_uuid_create+set}" = set; then
17940 if test "${ac_cv_search_uuid_create+set}" = set; then
17943 ac_cv_search_uuid_create=no
17945 rm conftest.$ac_ext
17946 LIBS=$ac_func_search_save_LIBS
17948 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17949 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17950 ac_res=$ac_cv_search_uuid_create
17951 if test "$ac_res" != no; then
17952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17960 if test $have_uuid = yes ; then
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_UUID_TO_STR 1
17967 test "$ac_cv_search_uuid_to_str" = "none required" || \
17968 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17972 if test $have_uuid = no ; then
17974 for ac_header in uuid/uuid.h
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 ac_res=`eval echo '${'$as_ac_Header'}'`
17984 { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17987 # Is the header compilable?
17988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 #include <$ac_header>
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest.$ac_objext; then
18016 ac_header_compiler=yes
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 ac_header_compiler=no
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6; }
18028 # Is the header present?
18029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 #include <$ac_header>
18039 if { (ac_try="$ac_cpp conftest.$ac_ext"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } >/dev/null && {
18052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18053 test ! -s conftest.err
18055 ac_header_preproc=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_header_preproc=no
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18067 # So? What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074 ac_header_preproc=yes
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18090 ## --------------------------------------------- ##
18091 ## Report this to <http://www.openldap.org/its/> ##
18092 ## --------------------------------------------- ##
18094 ) | sed "s/^/$as_me: WARNING: /" >&2
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 eval "$as_ac_Header=\$ac_header_preproc"
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105 { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18118 if test $ac_cv_header_uuid_uuid_h = yes ; then
18120 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18121 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18122 if test "${ac_cv_search_uuid_generate+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 ac_func_search_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18139 char uuid_generate ();
18143 return uuid_generate ();
18148 for ac_lib in '' uuid; do
18149 if test -z "$ac_lib"; then
18150 ac_res="none required"
18153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18164 grep -v '^ *+' conftest.er1 >conftest.err
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest$ac_exeext &&
18172 $as_test_x conftest$ac_exeext; then
18173 ac_cv_search_uuid_generate=$ac_res
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183 if test "${ac_cv_search_uuid_generate+set}" = set; then
18187 if test "${ac_cv_search_uuid_generate+set}" = set; then
18190 ac_cv_search_uuid_generate=no
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18196 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18197 ac_res=$ac_cv_search_uuid_generate
18198 if test "$ac_res" != no; then
18199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18205 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18206 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18207 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 ac_func_search_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18224 char uuid_unparse_lower ();
18228 return uuid_unparse_lower ();
18233 for ac_lib in '' uuid; do
18234 if test -z "$ac_lib"; then
18235 ac_res="none required"
18238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 ac_cv_search_uuid_unparse_lower=$ac_res
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18272 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18275 ac_cv_search_uuid_unparse_lower=no
18277 rm conftest.$ac_ext
18278 LIBS=$ac_func_search_save_LIBS
18280 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18281 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18282 ac_res=$ac_cv_search_uuid_unparse_lower
18283 if test "$ac_res" != no; then
18284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18292 if test $have_uuid = yes ; then
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_UUID_GENERATE 1
18299 test "$ac_cv_search_uuid_generate" = "none required" || \
18300 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18305 if test $have_uuid = no ; then
18306 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18307 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18309 LIBS="$LIBS -lrpcrt4"
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 int __stdcall UuidCreate(void *);
18318 int __stdcall UuidToStringA(void *,void **);
18325 UuidToStringA(0,0);
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_link") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest$ac_exeext &&
18348 $as_test_x conftest$ac_exeext; then
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358 conftest$ac_exeext conftest.$ac_ext
18359 if test $need_rpcrt = yes; then
18360 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18363 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18364 echo "${ECHO_T}$need_rpcrt" >&6; }
18367 ol_cv_lib_resolver=no
18368 if test $ol_cv_lib_resolver = no ; then
18369 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18370 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18371 if test "${ol_cv_resolver_none+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 LIBS="$ol_RESOLVER_LIB $LIBS"
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18386 #ifdef HAVE_SYS_TYPES_H
18387 # include <sys/types.h>
18389 #include <netinet/in.h>
18390 #ifdef HAVE_ARPA_NAMESER_H
18391 # include <arpa/nameser.h>
18393 #ifdef HAVE_RESOLV_H
18394 # include <resolv.h>
18402 char *request = NULL;
18403 unsigned char reply[64*1024];
18404 unsigned char host[64*1024];
18408 /* Bind 8/9 interface */
18409 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18411 /* Bind 4 interface */
18415 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18419 /* Bind 8/9 interface */
18421 #elif defined(HFIXEDSZ)
18422 /* Bind 4 interface w/ HFIXEDSZ */
18425 /* Bind 4 interface w/o HFIXEDSZ */
18426 p += sizeof(HEADER);
18428 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext &&
18451 $as_test_x conftest$ac_exeext; then
18452 ol_cv_resolver_none=yes
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ol_cv_resolver_none=no
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461 conftest$ac_exeext conftest.$ac_ext
18466 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18467 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18469 if test $ol_cv_resolver_none = yes ; then
18470 ol_cv_lib_resolver=yes
18474 if test $ol_cv_lib_resolver = no ; then
18475 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18476 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18477 if test "${ol_cv_resolver_resolv+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ol_RESOLVER_LIB=-lresolv
18483 LIBS="$ol_RESOLVER_LIB $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 #ifdef HAVE_SYS_TYPES_H
18493 # include <sys/types.h>
18495 #include <netinet/in.h>
18496 #ifdef HAVE_ARPA_NAMESER_H
18497 # include <arpa/nameser.h>
18499 #ifdef HAVE_RESOLV_H
18500 # include <resolv.h>
18508 char *request = NULL;
18509 unsigned char reply[64*1024];
18510 unsigned char host[64*1024];
18514 /* Bind 8/9 interface */
18515 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18517 /* Bind 4 interface */
18521 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18525 /* Bind 8/9 interface */
18527 #elif defined(HFIXEDSZ)
18528 /* Bind 4 interface w/ HFIXEDSZ */
18531 /* Bind 4 interface w/o HFIXEDSZ */
18532 p += sizeof(HEADER);
18534 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext &&
18557 $as_test_x conftest$ac_exeext; then
18558 ol_cv_resolver_resolv=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ol_cv_resolver_resolv=no
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18572 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18575 if test $ol_cv_resolver_resolv = yes ; then
18576 ol_cv_lib_resolver=-lresolv
18580 if test $ol_cv_lib_resolver = no ; then
18581 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18583 if test "${ol_cv_resolver_bind+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ol_RESOLVER_LIB=-lbind
18589 LIBS="$ol_RESOLVER_LIB $LIBS"
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 #ifdef HAVE_SYS_TYPES_H
18599 # include <sys/types.h>
18601 #include <netinet/in.h>
18602 #ifdef HAVE_ARPA_NAMESER_H
18603 # include <arpa/nameser.h>
18605 #ifdef HAVE_RESOLV_H
18606 # include <resolv.h>
18614 char *request = NULL;
18615 unsigned char reply[64*1024];
18616 unsigned char host[64*1024];
18620 /* Bind 8/9 interface */
18621 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18623 /* Bind 4 interface */
18627 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18631 /* Bind 8/9 interface */
18633 #elif defined(HFIXEDSZ)
18634 /* Bind 4 interface w/ HFIXEDSZ */
18637 /* Bind 4 interface w/o HFIXEDSZ */
18638 p += sizeof(HEADER);
18640 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_link") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest$ac_exeext &&
18663 $as_test_x conftest$ac_exeext; then
18664 ol_cv_resolver_bind=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ol_cv_resolver_bind=no
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673 conftest$ac_exeext conftest.$ac_ext
18678 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18679 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18681 if test $ol_cv_resolver_bind = yes ; then
18682 ol_cv_lib_resolver=-lbind
18689 if test "$ol_cv_lib_resolver" != no ; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_RES_QUERY 1
18696 if test "$ol_enable_dnssrv" != no ; then
18700 if test "$ol_cv_lib_resolver" != yes ; then
18701 LIBS="$ol_cv_lib_resolver $LIBS"
18705 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18706 if test "$ol_link_dnssrv" = no ; then
18707 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18708 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18709 { (exit 1); exit 1; }; }
18712 ol_enable_dnssrv=no
18716 for ac_func in hstrerror
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18732 #define $ac_func innocuous_$ac_func
18734 /* System header to define __stub macros and hopefully few prototypes,
18735 which can conflict with char $ac_func (); below.
18736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737 <limits.h> exists even on freestanding compilers. */
18740 # include <limits.h>
18742 # include <assert.h>
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18754 /* The GNU C library defines this for functions which it implements
18755 to always fail with ENOSYS. Some functions are actually named
18756 something starting with __ and the normal name is an alias. */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18764 return $ac_func ();
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_link") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest$ac_exeext &&
18786 $as_test_x conftest$ac_exeext; then
18787 eval "$as_ac_var=yes"
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 eval "$as_ac_var=no"
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796 conftest$ac_exeext conftest.$ac_ext
18798 ac_res=`eval echo '${'$as_ac_var'}'`
18799 { echo "$as_me:$LINENO: result: $ac_res" >&5
18800 echo "${ECHO_T}$ac_res" >&6; }
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802 cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 cat >conftest.$ac_ext <<_ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18830 #define $ac_func innocuous_$ac_func
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char $ac_func (); below.
18834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835 <limits.h> exists even on freestanding compilers. */
18838 # include <limits.h>
18840 # include <assert.h>
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18852 /* The GNU C library defines this for functions which it implements
18853 to always fail with ENOSYS. Some functions are actually named
18854 something starting with __ and the normal name is an alias. */
18855 #if defined __stub_$ac_func || defined __stub___$ac_func
18862 return $ac_func ();
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } && {
18881 test -z "$ac_c_werror_flag" ||
18882 test ! -s conftest.err
18883 } && test -s conftest$ac_exeext &&
18884 $as_test_x conftest$ac_exeext; then
18885 eval "$as_ac_var=yes"
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 eval "$as_ac_var=no"
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894 conftest$ac_exeext conftest.$ac_ext
18896 ac_res=`eval echo '${'$as_ac_var'}'`
18897 { echo "$as_me:$LINENO: result: $ac_res" >&5
18898 echo "${ECHO_T}$ac_res" >&6; }
18899 if test `eval echo '${'$as_ac_var'}'` = yes; then
18900 cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18910 if test $ol_enable_ipv6 = yes ; then
18911 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18912 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18913 { (exit 1); exit 1; }; }
18915 elif test $ol_enable_ipv6 != no ; then
18916 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18917 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18918 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 # include <netinet/in.h>
18930 # ifdef INET6_ADDRSTRLEN
18931 __has_inet6_addrstrlen__;
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18937 ol_cv_inet6_addrstrlen=yes
18939 ol_cv_inet6_addrstrlen=no
18944 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18945 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18948 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18949 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18950 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 #include <sys/types.h>
18962 #include <sys/socket.h>
18968 struct sockaddr_storage ss;
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_compile") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest.$ac_objext; then
18991 ol_cv_struct_sockaddr_storage=yes
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ol_cv_struct_sockaddr_storage=no
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19002 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19004 if test $ol_cv_inet6_addrstrlen = yes &&
19005 test $ol_cv_struct_sockaddr_storage = yes ; then
19007 elif test $ol_enable_ipv6 = yes &&
19008 test $ol_cv_inet6_addrstrlen = no ; then
19009 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19010 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19011 { (exit 1); exit 1; }; }
19012 elif test $ol_enable_ipv6 = yes &&
19013 test $ol_cv_struct_sockaddr_storage = no ; then
19014 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19015 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19016 { (exit 1); exit 1; }; }
19020 if test $ol_enable_local != no ; then
19022 for ac_header in sys/un.h
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 ac_res=`eval echo '${'$as_ac_Header'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19035 # Is the header compilable?
19036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 $ac_includes_default
19045 #include <$ac_header>
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_compile") 2>conftest.er1
19056 grep -v '^ *+' conftest.er1 >conftest.err
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } && {
19061 test -z "$ac_c_werror_flag" ||
19062 test ! -s conftest.err
19063 } && test -s conftest.$ac_objext; then
19064 ac_header_compiler=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_header_compiler=no
19072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074 echo "${ECHO_T}$ac_header_compiler" >&6; }
19076 # Is the header present?
19077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 #include <$ac_header>
19087 if { (ac_try="$ac_cpp conftest.$ac_ext"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } >/dev/null && {
19100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19103 ac_header_preproc=yes
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_header_preproc=no
19111 rm -f conftest.err conftest.$ac_ext
19112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19113 echo "${ECHO_T}$ac_header_preproc" >&6; }
19115 # So? What about this header?
19116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19122 ac_header_preproc=yes
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19138 ## --------------------------------------------- ##
19139 ## Report this to <http://www.openldap.org/its/> ##
19140 ## --------------------------------------------- ##
19142 ) | sed "s/^/$as_me: WARNING: /" >&2
19145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 eval "$as_ac_Header=\$ac_header_preproc"
19152 ac_res=`eval echo '${'$as_ac_Header'}'`
19153 { echo "$as_me:$LINENO: result: $ac_res" >&5
19154 echo "${ECHO_T}$ac_res" >&6; }
19157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19158 cat >>confdefs.h <<_ACEOF
19159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19167 if test $ol_enable_local = auto ; then
19168 ol_enable_local=$ac_cv_header_sys_un_h
19169 elif test $ac_cv_header_sys_un_h = no ; then
19170 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19172 { (exit 1); exit 1; }; }
19177 if test $ol_with_tls = yes ; then
19182 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19184 for ac_header in openssl/ssl.h
19186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_res=`eval echo '${'$as_ac_Header'}'`
19194 { echo "$as_me:$LINENO: result: $ac_res" >&5
19195 echo "${ECHO_T}$ac_res" >&6; }
19197 # Is the header compilable?
19198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 $ac_includes_default
19207 #include <$ac_header>
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_compile") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest.$ac_objext; then
19226 ac_header_compiler=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_header_compiler=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6; }
19238 # Is the header present?
19239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <$ac_header>
19249 if { (ac_try="$ac_cpp conftest.$ac_ext"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } >/dev/null && {
19262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19265 ac_header_preproc=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_header_preproc=no
19273 rm -f conftest.err conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6; }
19277 # So? What about this header?
19278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284 ac_header_preproc=yes
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19300 ## --------------------------------------------- ##
19301 ## Report this to <http://www.openldap.org/its/> ##
19302 ## --------------------------------------------- ##
19304 ) | sed "s/^/$as_me: WARNING: /" >&2
19307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 eval "$as_ac_Header=\$ac_header_preproc"
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315 { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19329 if test $ac_cv_header_openssl_ssl_h = yes ; then
19330 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19331 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lssl -lcrypto $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19344 /* Override any GCC internal prototype to avoid an error.
19345 Use char because int might match the return type of a GCC
19346 builtin and then its argument prototype would still apply. */
19350 char SSL_library_init ();
19354 return SSL_library_init ();
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_link") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest$ac_exeext &&
19376 $as_test_x conftest$ac_exeext; then
19377 ac_cv_lib_ssl_SSL_library_init=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_lib_ssl_SSL_library_init=no
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386 conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19399 if test $have_openssl = no ; then
19400 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19420 char ssl3_accept ();
19424 return ssl3_accept ();
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest$ac_exeext &&
19446 $as_test_x conftest$ac_exeext; then
19447 ac_cv_lib_ssl_ssl3_accept=yes
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_cv_lib_ssl_ssl3_accept=no
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19460 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19461 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19470 if test $have_openssl = yes ; then
19471 ol_with_tls=openssl
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_OPENSSL 1
19480 if test $need_rsaref = yes; then
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_RSAREF 1
19487 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19489 TLS_LIBS="-lssl -lcrypto"
19492 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19493 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19494 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19505 #ifdef HAVE_OPENSSL_SSL_H
19506 #include <openssl/ssl.h>
19509 /* Require 0.9.7d+ */
19510 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19511 char *__ssl_compat = "0.9.7d";
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19517 ol_cv_ssl_crl_compat=yes
19519 ol_cv_ssl_crl_compat=no
19524 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19525 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19527 if test $ol_cv_ssl_crl_compat = yes ; then
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_OPENSSL_CRL 1
19538 if test $ol_link_tls = no ; then
19539 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19541 for ac_header in gnutls/gnutls.h
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_res=`eval echo '${'$as_ac_Header'}'`
19551 { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19554 # Is the header compilable?
19555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 $ac_includes_default
19564 #include <$ac_header>
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_compile") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest.$ac_objext; then
19583 ac_header_compiler=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_header_compiler=no
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593 echo "${ECHO_T}$ac_header_compiler" >&6; }
19595 # Is the header present?
19596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 #include <$ac_header>
19606 if { (ac_try="$ac_cpp conftest.$ac_ext"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } >/dev/null && {
19619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19622 ac_header_preproc=yes
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_header_preproc=no
19630 rm -f conftest.err conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6; }
19634 # So? What about this header?
19635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19641 ac_header_preproc=yes
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19657 ## --------------------------------------------- ##
19658 ## Report this to <http://www.openldap.org/its/> ##
19659 ## --------------------------------------------- ##
19661 ) | sed "s/^/$as_me: WARNING: /" >&2
19664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 eval "$as_ac_Header=\$ac_header_preproc"
19671 ac_res=`eval echo '${'$as_ac_Header'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19677 cat >>confdefs.h <<_ACEOF
19678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19686 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19687 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19688 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnutls $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19707 char gnutls_init ();
19711 return gnutls_init ();
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 ac_cv_lib_gnutls_gnutls_init=yes
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_lib_gnutls_gnutls_init=no
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19748 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19755 if test $have_gnutls = yes ; then
19759 TLS_LIBS="-lgnutls"
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_GNUTLS 1
19772 if test $ol_link_tls = yes ; then
19774 cat >>confdefs.h <<\_ACEOF
19779 elif test $ol_with_tls = auto ; then
19780 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19781 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19783 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19784 elif test $ol_with_tls != no ; then
19785 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19786 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19787 { (exit 1); exit 1; }; }
19789 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19790 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19793 if test $ol_enable_lmpasswd != no; then
19794 if test $ol_link_tls != yes ; then
19795 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19796 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19797 { (exit 1); exit 1; }; }
19801 cat >>confdefs.h <<\_ACEOF
19802 #define SLAPD_LMHASH 1
19809 case $ol_with_threads in auto | yes | nt)
19812 { echo "$as_me:$LINENO: checking for _beginthread" >&5
19813 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19814 if test "${ac_cv_func__beginthread+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 cat >conftest.$ac_ext <<_ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19825 #define _beginthread innocuous__beginthread
19827 /* System header to define __stub macros and hopefully few prototypes,
19828 which can conflict with char _beginthread (); below.
19829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830 <limits.h> exists even on freestanding compilers. */
19833 # include <limits.h>
19835 # include <assert.h>
19838 #undef _beginthread
19840 /* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19846 char _beginthread ();
19847 /* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850 #if defined __stub__beginthread || defined __stub____beginthread
19857 return _beginthread ();
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (ac_try="$ac_link"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_link") 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest$ac_exeext &&
19879 $as_test_x conftest$ac_exeext; then
19880 ac_cv_func__beginthread=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_func__beginthread=no
19888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19889 conftest$ac_exeext conftest.$ac_ext
19891 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19892 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19895 if test $ac_cv_func__beginthread = yes ; then
19897 cat >>confdefs.h <<\_ACEOF
19898 #define HAVE_NT_THREADS 1
19901 ol_cv_nt_threads=yes
19905 if test "$ol_cv_nt_threads" = yes ; then
19907 ol_with_threads=found
19908 ol_with_yielding_select=yes
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_NT_SERVICE_MANAGER 1
19916 cat >>confdefs.h <<\_ACEOF
19917 #define HAVE_NT_EVENT_LOG 1
19922 if test $ol_with_threads = nt ; then
19923 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19924 echo "$as_me: error: could not locate NT Threads" >&2;}
19925 { (exit 1); exit 1; }; }
19930 case $ol_with_threads in auto | yes | posix)
19933 for ac_header in pthread.h
19935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943 { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19946 # Is the header compilable?
19947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19955 $ac_includes_default
19956 #include <$ac_header>
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19967 grep -v '^ *+' conftest.er1 >conftest.err
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 ac_header_compiler=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_header_compiler=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19985 echo "${ECHO_T}$ac_header_compiler" >&6; }
19987 # Is the header present?
19988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 #include <$ac_header>
19998 if { (ac_try="$ac_cpp conftest.$ac_ext"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } >/dev/null && {
20011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20014 ac_header_preproc=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_header_preproc=no
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20026 # So? What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20049 ## --------------------------------------------- ##
20050 ## Report this to <http://www.openldap.org/its/> ##
20051 ## --------------------------------------------- ##
20053 ) | sed "s/^/$as_me: WARNING: /" >&2
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 eval "$as_ac_Header=\$ac_header_preproc"
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069 cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 if test $ac_cv_header_pthread_h = yes ; then
20079 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20080 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20081 if test "${ol_cv_pthread_version+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20092 # include <pthread.h>
20098 int i = PTHREAD_CREATE_JOINABLE;
20104 rm -f conftest.$ac_objext
20105 if { (ac_try="$ac_compile"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_compile") 2>conftest.er1
20113 grep -v '^ *+' conftest.er1 >conftest.err
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } && {
20118 test -z "$ac_c_werror_flag" ||
20119 test ! -s conftest.err
20120 } && test -s conftest.$ac_objext; then
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 #include <pthread.h>
20131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132 $EGREP "pthread_detach" >/dev/null 2>&1; then
20133 ol_cv_pthread_version=10
20135 ol_cv_pthread_version=8
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 # include <pthread.h>
20152 # ifdef PTHREAD_CREATE_UNDETACHED
20157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20158 $EGREP "draft7" >/dev/null 2>&1; then
20159 ol_cv_pthread_version=7
20162 cat >conftest.$ac_ext <<_ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #include <pthread.h>
20171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20172 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20173 ol_cv_pthread_version=6
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 # include <pthread.h>
20184 #ifdef PTHREAD_MUTEX_INITIALIZER
20189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20190 $EGREP "draft5" >/dev/null 2>&1; then
20191 ol_cv_pthread_version=5
20193 ol_cv_pthread_version=4
20205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20209 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20212 if test $ol_cv_pthread_version != 0 ; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define HAVE_PTHREADS $ol_cv_pthread_version
20219 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20220 echo "$as_me: error: unknown pthread version" >&2;}
20221 { (exit 1); exit 1; }; }
20224 # consider threads found
20225 ol_with_threads=found
20228 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20229 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20230 if test "${ol_cv_header_linux_threads+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 #include <pthread.h>
20241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20242 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20243 ol_cv_header_linux_threads=yes
20245 ol_cv_header_linux_threads=no
20251 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20252 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20253 if test $ol_cv_header_linux_threads = yes; then
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE_LINUX_THREADS 1
20262 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20263 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20264 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 #include <pthread.h>
20274 #ifdef _POSIX_THREAD_IS_GNU_PTH
20279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20280 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20281 ol_cv_header_gnu_pth_pthread_h=yes
20283 ol_cv_header_gnu_pth_pthread_h=no
20289 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20290 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20293 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20295 for ac_header in sched.h
20297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 ac_res=`eval echo '${'$as_ac_Header'}'`
20305 { echo "$as_me:$LINENO: result: $ac_res" >&5
20306 echo "${ECHO_T}$ac_res" >&6; }
20308 # Is the header compilable?
20309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20317 $ac_includes_default
20318 #include <$ac_header>
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20337 ac_header_compiler=yes
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ac_header_compiler=no
20345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20347 echo "${ECHO_T}$ac_header_compiler" >&6; }
20349 # Is the header present?
20350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 #include <$ac_header>
20360 if { (ac_try="$ac_cpp conftest.$ac_ext"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } >/dev/null && {
20373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20376 ac_header_preproc=yes
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_header_preproc=no
20384 rm -f conftest.err conftest.$ac_ext
20385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20386 echo "${ECHO_T}$ac_header_preproc" >&6; }
20388 # So? What about this header?
20389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20395 ac_header_preproc=yes
20398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20411 ## --------------------------------------------- ##
20412 ## Report this to <http://www.openldap.org/its/> ##
20413 ## --------------------------------------------- ##
20415 ) | sed "s/^/$as_me: WARNING: /" >&2
20418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 eval "$as_ac_Header=\$ac_header_preproc"
20425 ac_res=`eval echo '${'$as_ac_Header'}'`
20426 { echo "$as_me:$LINENO: result: $ac_res" >&5
20427 echo "${ECHO_T}$ac_res" >&6; }
20430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20442 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20443 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20444 if test "${ol_cv_pthread_create+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 if test "$cross_compiling" = yes; then
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 /* pthread test headers */
20457 #include <pthread.h>
20458 #if HAVE_PTHREADS < 7
20462 #define NULL (void*)0
20465 static void *task(p)
20468 return (void *) (p == NULL);
20475 /* pthread test function */
20476 #ifndef PTHREAD_CREATE_DETACHED
20477 #define PTHREAD_CREATE_DETACHED 1
20481 int detach = PTHREAD_CREATE_DETACHED;
20483 #if HAVE_PTHREADS > 4
20484 /* Final pthreads */
20485 pthread_attr_t attr;
20487 status = pthread_attr_init(&attr);
20488 if( status ) return status;
20490 #if HAVE_PTHREADS < 7
20491 status = pthread_attr_setdetachstate(&attr, &detach);
20492 if( status < 0 ) status = errno;
20494 status = pthread_attr_setdetachstate(&attr, detach);
20496 if( status ) return status;
20497 status = pthread_create( &t, &attr, task, NULL );
20498 #if HAVE_PTHREADS < 7
20499 if( status < 0 ) status = errno;
20501 if( status ) return status;
20503 /* Draft 4 pthreads */
20504 status = pthread_create( &t, pthread_attr_default, task, NULL );
20505 if( status ) return errno;
20507 /* give thread a chance to complete */
20508 /* it should remain joinable and hence detachable */
20511 status = pthread_detach( &t );
20512 if( status ) return errno;
20515 #ifdef HAVE_LINUX_THREADS
20516 pthread_kill_other_threads_np();
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_link") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest$ac_exeext &&
20542 $as_test_x conftest$ac_exeext; then
20543 ol_cv_pthread_create=yes
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ol_cv_pthread_create=no
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* pthread test headers */
20562 #include <pthread.h>
20563 #if HAVE_PTHREADS < 7
20567 #define NULL (void*)0
20570 static void *task(p)
20573 return (void *) (p == NULL);
20577 int main(argc, argv)
20582 /* pthread test function */
20583 #ifndef PTHREAD_CREATE_DETACHED
20584 #define PTHREAD_CREATE_DETACHED 1
20588 int detach = PTHREAD_CREATE_DETACHED;
20590 #if HAVE_PTHREADS > 4
20591 /* Final pthreads */
20592 pthread_attr_t attr;
20594 status = pthread_attr_init(&attr);
20595 if( status ) return status;
20597 #if HAVE_PTHREADS < 7
20598 status = pthread_attr_setdetachstate(&attr, &detach);
20599 if( status < 0 ) status = errno;
20601 status = pthread_attr_setdetachstate(&attr, detach);
20603 if( status ) return status;
20604 status = pthread_create( &t, &attr, task, NULL );
20605 #if HAVE_PTHREADS < 7
20606 if( status < 0 ) status = errno;
20608 if( status ) return status;
20610 /* Draft 4 pthreads */
20611 status = pthread_create( &t, pthread_attr_default, task, NULL );
20612 if( status ) return errno;
20614 /* give thread a chance to complete */
20615 /* it should remain joinable and hence detachable */
20618 status = pthread_detach( &t );
20619 if( status ) return errno;
20622 #ifdef HAVE_LINUX_THREADS
20623 pthread_kill_other_threads_np();
20631 rm -f conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20642 { (case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_try") 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651 ol_cv_pthread_create=yes
20653 echo "$as_me: program exited with status $ac_status" >&5
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ( exit $ac_status )
20658 ol_cv_pthread_create=no
20660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20665 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20666 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20668 if test $ol_cv_pthread_create != no ; then
20669 ol_link_threads=posix
20670 ol_link_pthreads=""
20673 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20674 if test "$ol_link_threads" = no ; then
20676 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20677 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20678 if test "${ol_cv_pthread_kthread+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 LIBS="-kthread $LIBS"
20686 if test "$cross_compiling" = yes; then
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20694 /* pthread test headers */
20695 #include <pthread.h>
20696 #if HAVE_PTHREADS < 7
20700 #define NULL (void*)0
20703 static void *task(p)
20706 return (void *) (p == NULL);
20713 /* pthread test function */
20714 #ifndef PTHREAD_CREATE_DETACHED
20715 #define PTHREAD_CREATE_DETACHED 1
20719 int detach = PTHREAD_CREATE_DETACHED;
20721 #if HAVE_PTHREADS > 4
20722 /* Final pthreads */
20723 pthread_attr_t attr;
20725 status = pthread_attr_init(&attr);
20726 if( status ) return status;
20728 #if HAVE_PTHREADS < 7
20729 status = pthread_attr_setdetachstate(&attr, &detach);
20730 if( status < 0 ) status = errno;
20732 status = pthread_attr_setdetachstate(&attr, detach);
20734 if( status ) return status;
20735 status = pthread_create( &t, &attr, task, NULL );
20736 #if HAVE_PTHREADS < 7
20737 if( status < 0 ) status = errno;
20739 if( status ) return status;
20741 /* Draft 4 pthreads */
20742 status = pthread_create( &t, pthread_attr_default, task, NULL );
20743 if( status ) return errno;
20745 /* give thread a chance to complete */
20746 /* it should remain joinable and hence detachable */
20749 status = pthread_detach( &t );
20750 if( status ) return errno;
20753 #ifdef HAVE_LINUX_THREADS
20754 pthread_kill_other_threads_np();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && {
20777 test -z "$ac_c_werror_flag" ||
20778 test ! -s conftest.err
20779 } && test -s conftest$ac_exeext &&
20780 $as_test_x conftest$ac_exeext; then
20781 ol_cv_pthread_kthread=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ol_cv_pthread_kthread=no
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* pthread test headers */
20800 #include <pthread.h>
20801 #if HAVE_PTHREADS < 7
20805 #define NULL (void*)0
20808 static void *task(p)
20811 return (void *) (p == NULL);
20815 int main(argc, argv)
20820 /* pthread test function */
20821 #ifndef PTHREAD_CREATE_DETACHED
20822 #define PTHREAD_CREATE_DETACHED 1
20826 int detach = PTHREAD_CREATE_DETACHED;
20828 #if HAVE_PTHREADS > 4
20829 /* Final pthreads */
20830 pthread_attr_t attr;
20832 status = pthread_attr_init(&attr);
20833 if( status ) return status;
20835 #if HAVE_PTHREADS < 7
20836 status = pthread_attr_setdetachstate(&attr, &detach);
20837 if( status < 0 ) status = errno;
20839 status = pthread_attr_setdetachstate(&attr, detach);
20841 if( status ) return status;
20842 status = pthread_create( &t, &attr, task, NULL );
20843 #if HAVE_PTHREADS < 7
20844 if( status < 0 ) status = errno;
20846 if( status ) return status;
20848 /* Draft 4 pthreads */
20849 status = pthread_create( &t, pthread_attr_default, task, NULL );
20850 if( status ) return errno;
20852 /* give thread a chance to complete */
20853 /* it should remain joinable and hence detachable */
20856 status = pthread_detach( &t );
20857 if( status ) return errno;
20860 #ifdef HAVE_LINUX_THREADS
20861 pthread_kill_other_threads_np();
20869 rm -f conftest$ac_exeext
20870 if { (ac_try="$ac_link"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_link") 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20880 { (case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_try") 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ol_cv_pthread_kthread=yes
20891 echo "$as_me: program exited with status $ac_status" >&5
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ( exit $ac_status )
20896 ol_cv_pthread_kthread=no
20898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20908 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20910 if test $ol_cv_pthread_kthread = yes ; then
20911 ol_link_pthreads="-kthread"
20912 ol_link_threads=posix
20916 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20917 if test "$ol_link_threads" = no ; then
20919 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20920 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20921 if test "${ol_cv_pthread_pthread+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 LIBS="-pthread $LIBS"
20929 if test "$cross_compiling" = yes; then
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20937 /* pthread test headers */
20938 #include <pthread.h>
20939 #if HAVE_PTHREADS < 7
20943 #define NULL (void*)0
20946 static void *task(p)
20949 return (void *) (p == NULL);
20956 /* pthread test function */
20957 #ifndef PTHREAD_CREATE_DETACHED
20958 #define PTHREAD_CREATE_DETACHED 1
20962 int detach = PTHREAD_CREATE_DETACHED;
20964 #if HAVE_PTHREADS > 4
20965 /* Final pthreads */
20966 pthread_attr_t attr;
20968 status = pthread_attr_init(&attr);
20969 if( status ) return status;
20971 #if HAVE_PTHREADS < 7
20972 status = pthread_attr_setdetachstate(&attr, &detach);
20973 if( status < 0 ) status = errno;
20975 status = pthread_attr_setdetachstate(&attr, detach);
20977 if( status ) return status;
20978 status = pthread_create( &t, &attr, task, NULL );
20979 #if HAVE_PTHREADS < 7
20980 if( status < 0 ) status = errno;
20982 if( status ) return status;
20984 /* Draft 4 pthreads */
20985 status = pthread_create( &t, pthread_attr_default, task, NULL );
20986 if( status ) return errno;
20988 /* give thread a chance to complete */
20989 /* it should remain joinable and hence detachable */
20992 status = pthread_detach( &t );
20993 if( status ) return errno;
20996 #ifdef HAVE_LINUX_THREADS
20997 pthread_kill_other_threads_np();
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_link") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest$ac_exeext &&
21023 $as_test_x conftest$ac_exeext; then
21024 ol_cv_pthread_pthread=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ol_cv_pthread_pthread=no
21032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033 conftest$ac_exeext conftest.$ac_ext
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* pthread test headers */
21043 #include <pthread.h>
21044 #if HAVE_PTHREADS < 7
21048 #define NULL (void*)0
21051 static void *task(p)
21054 return (void *) (p == NULL);
21058 int main(argc, argv)
21063 /* pthread test function */
21064 #ifndef PTHREAD_CREATE_DETACHED
21065 #define PTHREAD_CREATE_DETACHED 1
21069 int detach = PTHREAD_CREATE_DETACHED;
21071 #if HAVE_PTHREADS > 4
21072 /* Final pthreads */
21073 pthread_attr_t attr;
21075 status = pthread_attr_init(&attr);
21076 if( status ) return status;
21078 #if HAVE_PTHREADS < 7
21079 status = pthread_attr_setdetachstate(&attr, &detach);
21080 if( status < 0 ) status = errno;
21082 status = pthread_attr_setdetachstate(&attr, detach);
21084 if( status ) return status;
21085 status = pthread_create( &t, &attr, task, NULL );
21086 #if HAVE_PTHREADS < 7
21087 if( status < 0 ) status = errno;
21089 if( status ) return status;
21091 /* Draft 4 pthreads */
21092 status = pthread_create( &t, pthread_attr_default, task, NULL );
21093 if( status ) return errno;
21095 /* give thread a chance to complete */
21096 /* it should remain joinable and hence detachable */
21099 status = pthread_detach( &t );
21100 if( status ) return errno;
21103 #ifdef HAVE_LINUX_THREADS
21104 pthread_kill_other_threads_np();
21112 rm -f conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_link") 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123 { (case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_try") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ol_cv_pthread_pthread=yes
21134 echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ( exit $ac_status )
21139 ol_cv_pthread_pthread=no
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21151 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21153 if test $ol_cv_pthread_pthread = yes ; then
21154 ol_link_pthreads="-pthread"
21155 ol_link_threads=posix
21159 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21160 if test "$ol_link_threads" = no ; then
21162 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21163 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21164 if test "${ol_cv_pthread_pthreads+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 LIBS="-pthreads $LIBS"
21172 if test "$cross_compiling" = yes; then
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 /* pthread test headers */
21181 #include <pthread.h>
21182 #if HAVE_PTHREADS < 7
21186 #define NULL (void*)0
21189 static void *task(p)
21192 return (void *) (p == NULL);
21199 /* pthread test function */
21200 #ifndef PTHREAD_CREATE_DETACHED
21201 #define PTHREAD_CREATE_DETACHED 1
21205 int detach = PTHREAD_CREATE_DETACHED;
21207 #if HAVE_PTHREADS > 4
21208 /* Final pthreads */
21209 pthread_attr_t attr;
21211 status = pthread_attr_init(&attr);
21212 if( status ) return status;
21214 #if HAVE_PTHREADS < 7
21215 status = pthread_attr_setdetachstate(&attr, &detach);
21216 if( status < 0 ) status = errno;
21218 status = pthread_attr_setdetachstate(&attr, detach);
21220 if( status ) return status;
21221 status = pthread_create( &t, &attr, task, NULL );
21222 #if HAVE_PTHREADS < 7
21223 if( status < 0 ) status = errno;
21225 if( status ) return status;
21227 /* Draft 4 pthreads */
21228 status = pthread_create( &t, pthread_attr_default, task, NULL );
21229 if( status ) return errno;
21231 /* give thread a chance to complete */
21232 /* it should remain joinable and hence detachable */
21235 status = pthread_detach( &t );
21236 if( status ) return errno;
21239 #ifdef HAVE_LINUX_THREADS
21240 pthread_kill_other_threads_np();
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (ac_try="$ac_link"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_link") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest$ac_exeext &&
21266 $as_test_x conftest$ac_exeext; then
21267 ol_cv_pthread_pthreads=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ol_cv_pthread_pthreads=no
21275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21276 conftest$ac_exeext conftest.$ac_ext
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 /* pthread test headers */
21286 #include <pthread.h>
21287 #if HAVE_PTHREADS < 7
21291 #define NULL (void*)0
21294 static void *task(p)
21297 return (void *) (p == NULL);
21301 int main(argc, argv)
21306 /* pthread test function */
21307 #ifndef PTHREAD_CREATE_DETACHED
21308 #define PTHREAD_CREATE_DETACHED 1
21312 int detach = PTHREAD_CREATE_DETACHED;
21314 #if HAVE_PTHREADS > 4
21315 /* Final pthreads */
21316 pthread_attr_t attr;
21318 status = pthread_attr_init(&attr);
21319 if( status ) return status;
21321 #if HAVE_PTHREADS < 7
21322 status = pthread_attr_setdetachstate(&attr, &detach);
21323 if( status < 0 ) status = errno;
21325 status = pthread_attr_setdetachstate(&attr, detach);
21327 if( status ) return status;
21328 status = pthread_create( &t, &attr, task, NULL );
21329 #if HAVE_PTHREADS < 7
21330 if( status < 0 ) status = errno;
21332 if( status ) return status;
21334 /* Draft 4 pthreads */
21335 status = pthread_create( &t, pthread_attr_default, task, NULL );
21336 if( status ) return errno;
21338 /* give thread a chance to complete */
21339 /* it should remain joinable and hence detachable */
21342 status = pthread_detach( &t );
21343 if( status ) return errno;
21346 #ifdef HAVE_LINUX_THREADS
21347 pthread_kill_other_threads_np();
21355 rm -f conftest$ac_exeext
21356 if { (ac_try="$ac_link"
21357 case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_link") 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ol_cv_pthread_pthreads=yes
21377 echo "$as_me: program exited with status $ac_status" >&5
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ( exit $ac_status )
21382 ol_cv_pthread_pthreads=no
21384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21393 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21394 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21396 if test $ol_cv_pthread_pthreads = yes ; then
21397 ol_link_pthreads="-pthreads"
21398 ol_link_threads=posix
21402 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21403 if test "$ol_link_threads" = no ; then
21405 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21406 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21407 if test "${ol_cv_pthread_mthreads+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 LIBS="-mthreads $LIBS"
21415 if test "$cross_compiling" = yes; then
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21423 /* pthread test headers */
21424 #include <pthread.h>
21425 #if HAVE_PTHREADS < 7
21429 #define NULL (void*)0
21432 static void *task(p)
21435 return (void *) (p == NULL);
21442 /* pthread test function */
21443 #ifndef PTHREAD_CREATE_DETACHED
21444 #define PTHREAD_CREATE_DETACHED 1
21448 int detach = PTHREAD_CREATE_DETACHED;
21450 #if HAVE_PTHREADS > 4
21451 /* Final pthreads */
21452 pthread_attr_t attr;
21454 status = pthread_attr_init(&attr);
21455 if( status ) return status;
21457 #if HAVE_PTHREADS < 7
21458 status = pthread_attr_setdetachstate(&attr, &detach);
21459 if( status < 0 ) status = errno;
21461 status = pthread_attr_setdetachstate(&attr, detach);
21463 if( status ) return status;
21464 status = pthread_create( &t, &attr, task, NULL );
21465 #if HAVE_PTHREADS < 7
21466 if( status < 0 ) status = errno;
21468 if( status ) return status;
21470 /* Draft 4 pthreads */
21471 status = pthread_create( &t, pthread_attr_default, task, NULL );
21472 if( status ) return errno;
21474 /* give thread a chance to complete */
21475 /* it should remain joinable and hence detachable */
21478 status = pthread_detach( &t );
21479 if( status ) return errno;
21482 #ifdef HAVE_LINUX_THREADS
21483 pthread_kill_other_threads_np();
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && {
21506 test -z "$ac_c_werror_flag" ||
21507 test ! -s conftest.err
21508 } && test -s conftest$ac_exeext &&
21509 $as_test_x conftest$ac_exeext; then
21510 ol_cv_pthread_mthreads=yes
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 ol_cv_pthread_mthreads=no
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21528 /* pthread test headers */
21529 #include <pthread.h>
21530 #if HAVE_PTHREADS < 7
21534 #define NULL (void*)0
21537 static void *task(p)
21540 return (void *) (p == NULL);
21544 int main(argc, argv)
21549 /* pthread test function */
21550 #ifndef PTHREAD_CREATE_DETACHED
21551 #define PTHREAD_CREATE_DETACHED 1
21555 int detach = PTHREAD_CREATE_DETACHED;
21557 #if HAVE_PTHREADS > 4
21558 /* Final pthreads */
21559 pthread_attr_t attr;
21561 status = pthread_attr_init(&attr);
21562 if( status ) return status;
21564 #if HAVE_PTHREADS < 7
21565 status = pthread_attr_setdetachstate(&attr, &detach);
21566 if( status < 0 ) status = errno;
21568 status = pthread_attr_setdetachstate(&attr, detach);
21570 if( status ) return status;
21571 status = pthread_create( &t, &attr, task, NULL );
21572 #if HAVE_PTHREADS < 7
21573 if( status < 0 ) status = errno;
21575 if( status ) return status;
21577 /* Draft 4 pthreads */
21578 status = pthread_create( &t, pthread_attr_default, task, NULL );
21579 if( status ) return errno;
21581 /* give thread a chance to complete */
21582 /* it should remain joinable and hence detachable */
21585 status = pthread_detach( &t );
21586 if( status ) return errno;
21589 #ifdef HAVE_LINUX_THREADS
21590 pthread_kill_other_threads_np();
21598 rm -f conftest$ac_exeext
21599 if { (ac_try="$ac_link"
21600 case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_link") 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21609 { (case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_try") 2>&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ol_cv_pthread_mthreads=yes
21620 echo "$as_me: program exited with status $ac_status" >&5
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ( exit $ac_status )
21625 ol_cv_pthread_mthreads=no
21627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21637 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21639 if test $ol_cv_pthread_mthreads = yes ; then
21640 ol_link_pthreads="-mthreads"
21641 ol_link_threads=posix
21645 # Pthread try link: -thread (ol_cv_pthread_thread)
21646 if test "$ol_link_threads" = no ; then
21648 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21649 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21650 if test "${ol_cv_pthread_thread+set}" = set; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 LIBS="-thread $LIBS"
21658 if test "$cross_compiling" = yes; then
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21666 /* pthread test headers */
21667 #include <pthread.h>
21668 #if HAVE_PTHREADS < 7
21672 #define NULL (void*)0
21675 static void *task(p)
21678 return (void *) (p == NULL);
21685 /* pthread test function */
21686 #ifndef PTHREAD_CREATE_DETACHED
21687 #define PTHREAD_CREATE_DETACHED 1
21691 int detach = PTHREAD_CREATE_DETACHED;
21693 #if HAVE_PTHREADS > 4
21694 /* Final pthreads */
21695 pthread_attr_t attr;
21697 status = pthread_attr_init(&attr);
21698 if( status ) return status;
21700 #if HAVE_PTHREADS < 7
21701 status = pthread_attr_setdetachstate(&attr, &detach);
21702 if( status < 0 ) status = errno;
21704 status = pthread_attr_setdetachstate(&attr, detach);
21706 if( status ) return status;
21707 status = pthread_create( &t, &attr, task, NULL );
21708 #if HAVE_PTHREADS < 7
21709 if( status < 0 ) status = errno;
21711 if( status ) return status;
21713 /* Draft 4 pthreads */
21714 status = pthread_create( &t, pthread_attr_default, task, NULL );
21715 if( status ) return errno;
21717 /* give thread a chance to complete */
21718 /* it should remain joinable and hence detachable */
21721 status = pthread_detach( &t );
21722 if( status ) return errno;
21725 #ifdef HAVE_LINUX_THREADS
21726 pthread_kill_other_threads_np();
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_link") 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest$ac_exeext &&
21752 $as_test_x conftest$ac_exeext; then
21753 ol_cv_pthread_thread=yes
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21758 ol_cv_pthread_thread=no
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762 conftest$ac_exeext conftest.$ac_ext
21764 cat >conftest.$ac_ext <<_ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21771 /* pthread test headers */
21772 #include <pthread.h>
21773 #if HAVE_PTHREADS < 7
21777 #define NULL (void*)0
21780 static void *task(p)
21783 return (void *) (p == NULL);
21787 int main(argc, argv)
21792 /* pthread test function */
21793 #ifndef PTHREAD_CREATE_DETACHED
21794 #define PTHREAD_CREATE_DETACHED 1
21798 int detach = PTHREAD_CREATE_DETACHED;
21800 #if HAVE_PTHREADS > 4
21801 /* Final pthreads */
21802 pthread_attr_t attr;
21804 status = pthread_attr_init(&attr);
21805 if( status ) return status;
21807 #if HAVE_PTHREADS < 7
21808 status = pthread_attr_setdetachstate(&attr, &detach);
21809 if( status < 0 ) status = errno;
21811 status = pthread_attr_setdetachstate(&attr, detach);
21813 if( status ) return status;
21814 status = pthread_create( &t, &attr, task, NULL );
21815 #if HAVE_PTHREADS < 7
21816 if( status < 0 ) status = errno;
21818 if( status ) return status;
21820 /* Draft 4 pthreads */
21821 status = pthread_create( &t, pthread_attr_default, task, NULL );
21822 if( status ) return errno;
21824 /* give thread a chance to complete */
21825 /* it should remain joinable and hence detachable */
21828 status = pthread_detach( &t );
21829 if( status ) return errno;
21832 #ifdef HAVE_LINUX_THREADS
21833 pthread_kill_other_threads_np();
21841 rm -f conftest$ac_exeext
21842 if { (ac_try="$ac_link"
21843 case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_link") 2>&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21852 { (case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_try") 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ol_cv_pthread_thread=yes
21863 echo "$as_me: program exited with status $ac_status" >&5
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21867 ( exit $ac_status )
21868 ol_cv_pthread_thread=no
21870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21879 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21880 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21882 if test $ol_cv_pthread_thread = yes ; then
21883 ol_link_pthreads="-thread"
21884 ol_link_threads=posix
21889 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21890 if test "$ol_link_threads" = no ; then
21891 # try -lpthread -lmach -lexc -lc_r
21892 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21893 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21894 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21902 if test "$cross_compiling" = yes; then
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21910 /* pthread test headers */
21911 #include <pthread.h>
21912 #if HAVE_PTHREADS < 7
21916 #define NULL (void*)0
21919 static void *task(p)
21922 return (void *) (p == NULL);
21929 /* pthread test function */
21930 #ifndef PTHREAD_CREATE_DETACHED
21931 #define PTHREAD_CREATE_DETACHED 1
21935 int detach = PTHREAD_CREATE_DETACHED;
21937 #if HAVE_PTHREADS > 4
21938 /* Final pthreads */
21939 pthread_attr_t attr;
21941 status = pthread_attr_init(&attr);
21942 if( status ) return status;
21944 #if HAVE_PTHREADS < 7
21945 status = pthread_attr_setdetachstate(&attr, &detach);
21946 if( status < 0 ) status = errno;
21948 status = pthread_attr_setdetachstate(&attr, detach);
21950 if( status ) return status;
21951 status = pthread_create( &t, &attr, task, NULL );
21952 #if HAVE_PTHREADS < 7
21953 if( status < 0 ) status = errno;
21955 if( status ) return status;
21957 /* Draft 4 pthreads */
21958 status = pthread_create( &t, pthread_attr_default, task, NULL );
21959 if( status ) return errno;
21961 /* give thread a chance to complete */
21962 /* it should remain joinable and hence detachable */
21965 status = pthread_detach( &t );
21966 if( status ) return errno;
21969 #ifdef HAVE_LINUX_THREADS
21970 pthread_kill_other_threads_np();
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (ac_try="$ac_link"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_link") 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest$ac_exeext &&
21996 $as_test_x conftest$ac_exeext; then
21997 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22006 conftest$ac_exeext conftest.$ac_ext
22008 cat >conftest.$ac_ext <<_ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22015 /* pthread test headers */
22016 #include <pthread.h>
22017 #if HAVE_PTHREADS < 7
22021 #define NULL (void*)0
22024 static void *task(p)
22027 return (void *) (p == NULL);
22031 int main(argc, argv)
22036 /* pthread test function */
22037 #ifndef PTHREAD_CREATE_DETACHED
22038 #define PTHREAD_CREATE_DETACHED 1
22042 int detach = PTHREAD_CREATE_DETACHED;
22044 #if HAVE_PTHREADS > 4
22045 /* Final pthreads */
22046 pthread_attr_t attr;
22048 status = pthread_attr_init(&attr);
22049 if( status ) return status;
22051 #if HAVE_PTHREADS < 7
22052 status = pthread_attr_setdetachstate(&attr, &detach);
22053 if( status < 0 ) status = errno;
22055 status = pthread_attr_setdetachstate(&attr, detach);
22057 if( status ) return status;
22058 status = pthread_create( &t, &attr, task, NULL );
22059 #if HAVE_PTHREADS < 7
22060 if( status < 0 ) status = errno;
22062 if( status ) return status;
22064 /* Draft 4 pthreads */
22065 status = pthread_create( &t, pthread_attr_default, task, NULL );
22066 if( status ) return errno;
22068 /* give thread a chance to complete */
22069 /* it should remain joinable and hence detachable */
22072 status = pthread_detach( &t );
22073 if( status ) return errno;
22076 #ifdef HAVE_LINUX_THREADS
22077 pthread_kill_other_threads_np();
22085 rm -f conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22096 { (case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_try") 2>&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22107 echo "$as_me: program exited with status $ac_status" >&5
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 ( exit $ac_status )
22112 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22124 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22126 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22127 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22128 ol_link_threads=posix
22132 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22133 if test "$ol_link_threads" = no ; then
22134 # try -lpthread -lmach -lexc
22135 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22136 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22137 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 LIBS="-lpthread -lmach -lexc $LIBS"
22145 if test "$cross_compiling" = yes; then
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22153 /* pthread test headers */
22154 #include <pthread.h>
22155 #if HAVE_PTHREADS < 7
22159 #define NULL (void*)0
22162 static void *task(p)
22165 return (void *) (p == NULL);
22172 /* pthread test function */
22173 #ifndef PTHREAD_CREATE_DETACHED
22174 #define PTHREAD_CREATE_DETACHED 1
22178 int detach = PTHREAD_CREATE_DETACHED;
22180 #if HAVE_PTHREADS > 4
22181 /* Final pthreads */
22182 pthread_attr_t attr;
22184 status = pthread_attr_init(&attr);
22185 if( status ) return status;
22187 #if HAVE_PTHREADS < 7
22188 status = pthread_attr_setdetachstate(&attr, &detach);
22189 if( status < 0 ) status = errno;
22191 status = pthread_attr_setdetachstate(&attr, detach);
22193 if( status ) return status;
22194 status = pthread_create( &t, &attr, task, NULL );
22195 #if HAVE_PTHREADS < 7
22196 if( status < 0 ) status = errno;
22198 if( status ) return status;
22200 /* Draft 4 pthreads */
22201 status = pthread_create( &t, pthread_attr_default, task, NULL );
22202 if( status ) return errno;
22204 /* give thread a chance to complete */
22205 /* it should remain joinable and hence detachable */
22208 status = pthread_detach( &t );
22209 if( status ) return errno;
22212 #ifdef HAVE_LINUX_THREADS
22213 pthread_kill_other_threads_np();
22222 rm -f conftest.$ac_objext conftest$ac_exeext
22223 if { (ac_try="$ac_link"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_link") 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } && {
22236 test -z "$ac_c_werror_flag" ||
22237 test ! -s conftest.err
22238 } && test -s conftest$ac_exeext &&
22239 $as_test_x conftest$ac_exeext; then
22240 ol_cv_pthread_lpthread_lmach_lexc=yes
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ol_cv_pthread_lpthread_lmach_lexc=no
22248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22249 conftest$ac_exeext conftest.$ac_ext
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22258 /* pthread test headers */
22259 #include <pthread.h>
22260 #if HAVE_PTHREADS < 7
22264 #define NULL (void*)0
22267 static void *task(p)
22270 return (void *) (p == NULL);
22274 int main(argc, argv)
22279 /* pthread test function */
22280 #ifndef PTHREAD_CREATE_DETACHED
22281 #define PTHREAD_CREATE_DETACHED 1
22285 int detach = PTHREAD_CREATE_DETACHED;
22287 #if HAVE_PTHREADS > 4
22288 /* Final pthreads */
22289 pthread_attr_t attr;
22291 status = pthread_attr_init(&attr);
22292 if( status ) return status;
22294 #if HAVE_PTHREADS < 7
22295 status = pthread_attr_setdetachstate(&attr, &detach);
22296 if( status < 0 ) status = errno;
22298 status = pthread_attr_setdetachstate(&attr, detach);
22300 if( status ) return status;
22301 status = pthread_create( &t, &attr, task, NULL );
22302 #if HAVE_PTHREADS < 7
22303 if( status < 0 ) status = errno;
22305 if( status ) return status;
22307 /* Draft 4 pthreads */
22308 status = pthread_create( &t, pthread_attr_default, task, NULL );
22309 if( status ) return errno;
22311 /* give thread a chance to complete */
22312 /* it should remain joinable and hence detachable */
22315 status = pthread_detach( &t );
22316 if( status ) return errno;
22319 #ifdef HAVE_LINUX_THREADS
22320 pthread_kill_other_threads_np();
22328 rm -f conftest$ac_exeext
22329 if { (ac_try="$ac_link"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_link") 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22339 { (case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_try") 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 ol_cv_pthread_lpthread_lmach_lexc=yes
22350 echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ( exit $ac_status )
22355 ol_cv_pthread_lpthread_lmach_lexc=no
22357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22366 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22367 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22369 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22370 ol_link_pthreads="-lpthread -lmach -lexc"
22371 ol_link_threads=posix
22376 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22377 if test "$ol_link_threads" = no ; then
22378 # try -lpthread -Wl,-woff,85
22379 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22380 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22381 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22389 if test "$cross_compiling" = yes; then
22390 cat >conftest.$ac_ext <<_ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22397 /* pthread test headers */
22398 #include <pthread.h>
22399 #if HAVE_PTHREADS < 7
22403 #define NULL (void*)0
22406 static void *task(p)
22409 return (void *) (p == NULL);
22416 /* pthread test function */
22417 #ifndef PTHREAD_CREATE_DETACHED
22418 #define PTHREAD_CREATE_DETACHED 1
22422 int detach = PTHREAD_CREATE_DETACHED;
22424 #if HAVE_PTHREADS > 4
22425 /* Final pthreads */
22426 pthread_attr_t attr;
22428 status = pthread_attr_init(&attr);
22429 if( status ) return status;
22431 #if HAVE_PTHREADS < 7
22432 status = pthread_attr_setdetachstate(&attr, &detach);
22433 if( status < 0 ) status = errno;
22435 status = pthread_attr_setdetachstate(&attr, detach);
22437 if( status ) return status;
22438 status = pthread_create( &t, &attr, task, NULL );
22439 #if HAVE_PTHREADS < 7
22440 if( status < 0 ) status = errno;
22442 if( status ) return status;
22444 /* Draft 4 pthreads */
22445 status = pthread_create( &t, pthread_attr_default, task, NULL );
22446 if( status ) return errno;
22448 /* give thread a chance to complete */
22449 /* it should remain joinable and hence detachable */
22452 status = pthread_detach( &t );
22453 if( status ) return errno;
22456 #ifdef HAVE_LINUX_THREADS
22457 pthread_kill_other_threads_np();
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (ac_try="$ac_link"
22468 case "(($ac_try" in
22469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470 *) ac_try_echo=$ac_try;;
22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473 (eval "$ac_link") 2>conftest.er1
22475 grep -v '^ *+' conftest.er1 >conftest.err
22477 cat conftest.err >&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext &&
22483 $as_test_x conftest$ac_exeext; then
22484 ol_cv_pthread_lib_lpthread_woff=yes
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ol_cv_pthread_lib_lpthread_woff=no
22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22493 conftest$ac_exeext conftest.$ac_ext
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22508 #define NULL (void*)0
22511 static void *task(p)
22514 return (void *) (p == NULL);
22518 int main(argc, argv)
22523 /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22529 int detach = PTHREAD_CREATE_DETACHED;
22531 #if HAVE_PTHREADS > 4
22532 /* Final pthreads */
22533 pthread_attr_t attr;
22535 status = pthread_attr_init(&attr);
22536 if( status ) return status;
22538 #if HAVE_PTHREADS < 7
22539 status = pthread_attr_setdetachstate(&attr, &detach);
22540 if( status < 0 ) status = errno;
22542 status = pthread_attr_setdetachstate(&attr, detach);
22544 if( status ) return status;
22545 status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547 if( status < 0 ) status = errno;
22549 if( status ) return status;
22551 /* Draft 4 pthreads */
22552 status = pthread_create( &t, pthread_attr_default, task, NULL );
22553 if( status ) return errno;
22555 /* give thread a chance to complete */
22556 /* it should remain joinable and hence detachable */
22559 status = pthread_detach( &t );
22560 if( status ) return errno;
22563 #ifdef HAVE_LINUX_THREADS
22564 pthread_kill_other_threads_np();
22572 rm -f conftest$ac_exeext
22573 if { (ac_try="$ac_link"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_link") 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22583 { (case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588 (eval "$ac_try") 2>&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); }; }; then
22592 ol_cv_pthread_lib_lpthread_woff=yes
22594 echo "$as_me: program exited with status $ac_status" >&5
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ( exit $ac_status )
22599 ol_cv_pthread_lib_lpthread_woff=no
22601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22610 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22611 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22613 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22614 ol_link_pthreads="-lpthread -Wl,-woff,85"
22615 ol_link_threads=posix
22620 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22621 if test "$ol_link_threads" = no ; then
22623 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22624 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22625 if test "${ol_cv_pthread_lpthread+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 LIBS="-lpthread $LIBS"
22633 if test "$cross_compiling" = yes; then
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 /* pthread test headers */
22642 #include <pthread.h>
22643 #if HAVE_PTHREADS < 7
22647 #define NULL (void*)0
22650 static void *task(p)
22653 return (void *) (p == NULL);
22660 /* pthread test function */
22661 #ifndef PTHREAD_CREATE_DETACHED
22662 #define PTHREAD_CREATE_DETACHED 1
22666 int detach = PTHREAD_CREATE_DETACHED;
22668 #if HAVE_PTHREADS > 4
22669 /* Final pthreads */
22670 pthread_attr_t attr;
22672 status = pthread_attr_init(&attr);
22673 if( status ) return status;
22675 #if HAVE_PTHREADS < 7
22676 status = pthread_attr_setdetachstate(&attr, &detach);
22677 if( status < 0 ) status = errno;
22679 status = pthread_attr_setdetachstate(&attr, detach);
22681 if( status ) return status;
22682 status = pthread_create( &t, &attr, task, NULL );
22683 #if HAVE_PTHREADS < 7
22684 if( status < 0 ) status = errno;
22686 if( status ) return status;
22688 /* Draft 4 pthreads */
22689 status = pthread_create( &t, pthread_attr_default, task, NULL );
22690 if( status ) return errno;
22692 /* give thread a chance to complete */
22693 /* it should remain joinable and hence detachable */
22696 status = pthread_detach( &t );
22697 if( status ) return errno;
22700 #ifdef HAVE_LINUX_THREADS
22701 pthread_kill_other_threads_np();
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_link") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest$ac_exeext &&
22727 $as_test_x conftest$ac_exeext; then
22728 ol_cv_pthread_lpthread=yes
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ol_cv_pthread_lpthread=no
22736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737 conftest$ac_exeext conftest.$ac_ext
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22746 /* pthread test headers */
22747 #include <pthread.h>
22748 #if HAVE_PTHREADS < 7
22752 #define NULL (void*)0
22755 static void *task(p)
22758 return (void *) (p == NULL);
22762 int main(argc, argv)
22767 /* pthread test function */
22768 #ifndef PTHREAD_CREATE_DETACHED
22769 #define PTHREAD_CREATE_DETACHED 1
22773 int detach = PTHREAD_CREATE_DETACHED;
22775 #if HAVE_PTHREADS > 4
22776 /* Final pthreads */
22777 pthread_attr_t attr;
22779 status = pthread_attr_init(&attr);
22780 if( status ) return status;
22782 #if HAVE_PTHREADS < 7
22783 status = pthread_attr_setdetachstate(&attr, &detach);
22784 if( status < 0 ) status = errno;
22786 status = pthread_attr_setdetachstate(&attr, detach);
22788 if( status ) return status;
22789 status = pthread_create( &t, &attr, task, NULL );
22790 #if HAVE_PTHREADS < 7
22791 if( status < 0 ) status = errno;
22793 if( status ) return status;
22795 /* Draft 4 pthreads */
22796 status = pthread_create( &t, pthread_attr_default, task, NULL );
22797 if( status ) return errno;
22799 /* give thread a chance to complete */
22800 /* it should remain joinable and hence detachable */
22803 status = pthread_detach( &t );
22804 if( status ) return errno;
22807 #ifdef HAVE_LINUX_THREADS
22808 pthread_kill_other_threads_np();
22816 rm -f conftest$ac_exeext
22817 if { (ac_try="$ac_link"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_link") 2>&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22827 { (case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_try") 2>&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 ol_cv_pthread_lpthread=yes
22838 echo "$as_me: program exited with status $ac_status" >&5
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ( exit $ac_status )
22843 ol_cv_pthread_lpthread=no
22845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22854 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22855 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22857 if test $ol_cv_pthread_lpthread = yes ; then
22858 ol_link_pthreads="-lpthread"
22859 ol_link_threads=posix
22863 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22864 if test "$ol_link_threads" = no ; then
22866 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22867 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22868 if test "${ol_cv_pthread_lc_r+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 if test "$cross_compiling" = yes; then
22877 cat >conftest.$ac_ext <<_ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22884 /* pthread test headers */
22885 #include <pthread.h>
22886 #if HAVE_PTHREADS < 7
22890 #define NULL (void*)0
22893 static void *task(p)
22896 return (void *) (p == NULL);
22903 /* pthread test function */
22904 #ifndef PTHREAD_CREATE_DETACHED
22905 #define PTHREAD_CREATE_DETACHED 1
22909 int detach = PTHREAD_CREATE_DETACHED;
22911 #if HAVE_PTHREADS > 4
22912 /* Final pthreads */
22913 pthread_attr_t attr;
22915 status = pthread_attr_init(&attr);
22916 if( status ) return status;
22918 #if HAVE_PTHREADS < 7
22919 status = pthread_attr_setdetachstate(&attr, &detach);
22920 if( status < 0 ) status = errno;
22922 status = pthread_attr_setdetachstate(&attr, detach);
22924 if( status ) return status;
22925 status = pthread_create( &t, &attr, task, NULL );
22926 #if HAVE_PTHREADS < 7
22927 if( status < 0 ) status = errno;
22929 if( status ) return status;
22931 /* Draft 4 pthreads */
22932 status = pthread_create( &t, pthread_attr_default, task, NULL );
22933 if( status ) return errno;
22935 /* give thread a chance to complete */
22936 /* it should remain joinable and hence detachable */
22939 status = pthread_detach( &t );
22940 if( status ) return errno;
22943 #ifdef HAVE_LINUX_THREADS
22944 pthread_kill_other_threads_np();
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (ac_try="$ac_link"
22955 case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_link") 2>conftest.er1
22962 grep -v '^ *+' conftest.er1 >conftest.err
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest$ac_exeext &&
22970 $as_test_x conftest$ac_exeext; then
22971 ol_cv_pthread_lc_r=yes
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ol_cv_pthread_lc_r=no
22979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22980 conftest$ac_exeext conftest.$ac_ext
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22989 /* pthread test headers */
22990 #include <pthread.h>
22991 #if HAVE_PTHREADS < 7
22995 #define NULL (void*)0
22998 static void *task(p)
23001 return (void *) (p == NULL);
23005 int main(argc, argv)
23010 /* pthread test function */
23011 #ifndef PTHREAD_CREATE_DETACHED
23012 #define PTHREAD_CREATE_DETACHED 1
23016 int detach = PTHREAD_CREATE_DETACHED;
23018 #if HAVE_PTHREADS > 4
23019 /* Final pthreads */
23020 pthread_attr_t attr;
23022 status = pthread_attr_init(&attr);
23023 if( status ) return status;
23025 #if HAVE_PTHREADS < 7
23026 status = pthread_attr_setdetachstate(&attr, &detach);
23027 if( status < 0 ) status = errno;
23029 status = pthread_attr_setdetachstate(&attr, detach);
23031 if( status ) return status;
23032 status = pthread_create( &t, &attr, task, NULL );
23033 #if HAVE_PTHREADS < 7
23034 if( status < 0 ) status = errno;
23036 if( status ) return status;
23038 /* Draft 4 pthreads */
23039 status = pthread_create( &t, pthread_attr_default, task, NULL );
23040 if( status ) return errno;
23042 /* give thread a chance to complete */
23043 /* it should remain joinable and hence detachable */
23046 status = pthread_detach( &t );
23047 if( status ) return errno;
23050 #ifdef HAVE_LINUX_THREADS
23051 pthread_kill_other_threads_np();
23059 rm -f conftest$ac_exeext
23060 if { (ac_try="$ac_link"
23061 case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066 (eval "$ac_link") 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23070 { (case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_try") 2>&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; }; then
23079 ol_cv_pthread_lc_r=yes
23081 echo "$as_me: program exited with status $ac_status" >&5
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ( exit $ac_status )
23086 ol_cv_pthread_lc_r=no
23088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23098 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23100 if test $ol_cv_pthread_lc_r = yes ; then
23101 ol_link_pthreads="-lc_r"
23102 ol_link_threads=posix
23107 # Pthread try link: -threads (ol_cv_pthread_threads)
23108 if test "$ol_link_threads" = no ; then
23110 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23111 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23112 if test "${ol_cv_pthread_threads+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 LIBS="-threads $LIBS"
23120 if test "$cross_compiling" = yes; then
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23128 /* pthread test headers */
23129 #include <pthread.h>
23130 #if HAVE_PTHREADS < 7
23134 #define NULL (void*)0
23137 static void *task(p)
23140 return (void *) (p == NULL);
23147 /* pthread test function */
23148 #ifndef PTHREAD_CREATE_DETACHED
23149 #define PTHREAD_CREATE_DETACHED 1
23153 int detach = PTHREAD_CREATE_DETACHED;
23155 #if HAVE_PTHREADS > 4
23156 /* Final pthreads */
23157 pthread_attr_t attr;
23159 status = pthread_attr_init(&attr);
23160 if( status ) return status;
23162 #if HAVE_PTHREADS < 7
23163 status = pthread_attr_setdetachstate(&attr, &detach);
23164 if( status < 0 ) status = errno;
23166 status = pthread_attr_setdetachstate(&attr, detach);
23168 if( status ) return status;
23169 status = pthread_create( &t, &attr, task, NULL );
23170 #if HAVE_PTHREADS < 7
23171 if( status < 0 ) status = errno;
23173 if( status ) return status;
23175 /* Draft 4 pthreads */
23176 status = pthread_create( &t, pthread_attr_default, task, NULL );
23177 if( status ) return errno;
23179 /* give thread a chance to complete */
23180 /* it should remain joinable and hence detachable */
23183 status = pthread_detach( &t );
23184 if( status ) return errno;
23187 #ifdef HAVE_LINUX_THREADS
23188 pthread_kill_other_threads_np();
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest$ac_exeext &&
23214 $as_test_x conftest$ac_exeext; then
23215 ol_cv_pthread_threads=yes
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ol_cv_pthread_threads=no
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224 conftest$ac_exeext conftest.$ac_ext
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23233 /* pthread test headers */
23234 #include <pthread.h>
23235 #if HAVE_PTHREADS < 7
23239 #define NULL (void*)0
23242 static void *task(p)
23245 return (void *) (p == NULL);
23249 int main(argc, argv)
23254 /* pthread test function */
23255 #ifndef PTHREAD_CREATE_DETACHED
23256 #define PTHREAD_CREATE_DETACHED 1
23260 int detach = PTHREAD_CREATE_DETACHED;
23262 #if HAVE_PTHREADS > 4
23263 /* Final pthreads */
23264 pthread_attr_t attr;
23266 status = pthread_attr_init(&attr);
23267 if( status ) return status;
23269 #if HAVE_PTHREADS < 7
23270 status = pthread_attr_setdetachstate(&attr, &detach);
23271 if( status < 0 ) status = errno;
23273 status = pthread_attr_setdetachstate(&attr, detach);
23275 if( status ) return status;
23276 status = pthread_create( &t, &attr, task, NULL );
23277 #if HAVE_PTHREADS < 7
23278 if( status < 0 ) status = errno;
23280 if( status ) return status;
23282 /* Draft 4 pthreads */
23283 status = pthread_create( &t, pthread_attr_default, task, NULL );
23284 if( status ) return errno;
23286 /* give thread a chance to complete */
23287 /* it should remain joinable and hence detachable */
23290 status = pthread_detach( &t );
23291 if( status ) return errno;
23294 #ifdef HAVE_LINUX_THREADS
23295 pthread_kill_other_threads_np();
23303 rm -f conftest$ac_exeext
23304 if { (ac_try="$ac_link"
23305 case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_link") 2>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23314 { (case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_try") 2>&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 ol_cv_pthread_threads=yes
23325 echo "$as_me: program exited with status $ac_status" >&5
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 ( exit $ac_status )
23330 ol_cv_pthread_threads=no
23332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23342 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23344 if test $ol_cv_pthread_threads = yes ; then
23345 ol_link_pthreads="-threads"
23346 ol_link_threads=posix
23351 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23352 if test "$ol_link_threads" = no ; then
23353 # try -lpthreads -lmach -lexc -lc_r
23354 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23355 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23356 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23364 if test "$cross_compiling" = yes; then
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23372 /* pthread test headers */
23373 #include <pthread.h>
23374 #if HAVE_PTHREADS < 7
23378 #define NULL (void*)0
23381 static void *task(p)
23384 return (void *) (p == NULL);
23391 /* pthread test function */
23392 #ifndef PTHREAD_CREATE_DETACHED
23393 #define PTHREAD_CREATE_DETACHED 1
23397 int detach = PTHREAD_CREATE_DETACHED;
23399 #if HAVE_PTHREADS > 4
23400 /* Final pthreads */
23401 pthread_attr_t attr;
23403 status = pthread_attr_init(&attr);
23404 if( status ) return status;
23406 #if HAVE_PTHREADS < 7
23407 status = pthread_attr_setdetachstate(&attr, &detach);
23408 if( status < 0 ) status = errno;
23410 status = pthread_attr_setdetachstate(&attr, detach);
23412 if( status ) return status;
23413 status = pthread_create( &t, &attr, task, NULL );
23414 #if HAVE_PTHREADS < 7
23415 if( status < 0 ) status = errno;
23417 if( status ) return status;
23419 /* Draft 4 pthreads */
23420 status = pthread_create( &t, pthread_attr_default, task, NULL );
23421 if( status ) return errno;
23423 /* give thread a chance to complete */
23424 /* it should remain joinable and hence detachable */
23427 status = pthread_detach( &t );
23428 if( status ) return errno;
23431 #ifdef HAVE_LINUX_THREADS
23432 pthread_kill_other_threads_np();
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (ac_try="$ac_link"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_link") 2>conftest.er1
23450 grep -v '^ *+' conftest.er1 >conftest.err
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && {
23455 test -z "$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 } && test -s conftest$ac_exeext &&
23458 $as_test_x conftest$ac_exeext; then
23459 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23468 conftest$ac_exeext conftest.$ac_ext
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23477 /* pthread test headers */
23478 #include <pthread.h>
23479 #if HAVE_PTHREADS < 7
23483 #define NULL (void*)0
23486 static void *task(p)
23489 return (void *) (p == NULL);
23493 int main(argc, argv)
23498 /* pthread test function */
23499 #ifndef PTHREAD_CREATE_DETACHED
23500 #define PTHREAD_CREATE_DETACHED 1
23504 int detach = PTHREAD_CREATE_DETACHED;
23506 #if HAVE_PTHREADS > 4
23507 /* Final pthreads */
23508 pthread_attr_t attr;
23510 status = pthread_attr_init(&attr);
23511 if( status ) return status;
23513 #if HAVE_PTHREADS < 7
23514 status = pthread_attr_setdetachstate(&attr, &detach);
23515 if( status < 0 ) status = errno;
23517 status = pthread_attr_setdetachstate(&attr, detach);
23519 if( status ) return status;
23520 status = pthread_create( &t, &attr, task, NULL );
23521 #if HAVE_PTHREADS < 7
23522 if( status < 0 ) status = errno;
23524 if( status ) return status;
23526 /* Draft 4 pthreads */
23527 status = pthread_create( &t, pthread_attr_default, task, NULL );
23528 if( status ) return errno;
23530 /* give thread a chance to complete */
23531 /* it should remain joinable and hence detachable */
23534 status = pthread_detach( &t );
23535 if( status ) return errno;
23538 #ifdef HAVE_LINUX_THREADS
23539 pthread_kill_other_threads_np();
23547 rm -f conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_link") 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23558 { (case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563 (eval "$ac_try") 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23569 echo "$as_me: program exited with status $ac_status" >&5
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ( exit $ac_status )
23574 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23585 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23586 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23588 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23589 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23590 ol_link_threads=posix
23594 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23595 if test "$ol_link_threads" = no ; then
23596 # try -lpthreads -lmach -lexc
23597 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23598 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23599 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 LIBS="-lpthreads -lmach -lexc $LIBS"
23607 if test "$cross_compiling" = yes; then
23608 cat >conftest.$ac_ext <<_ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23615 /* pthread test headers */
23616 #include <pthread.h>
23617 #if HAVE_PTHREADS < 7
23621 #define NULL (void*)0
23624 static void *task(p)
23627 return (void *) (p == NULL);
23634 /* pthread test function */
23635 #ifndef PTHREAD_CREATE_DETACHED
23636 #define PTHREAD_CREATE_DETACHED 1
23640 int detach = PTHREAD_CREATE_DETACHED;
23642 #if HAVE_PTHREADS > 4
23643 /* Final pthreads */
23644 pthread_attr_t attr;
23646 status = pthread_attr_init(&attr);
23647 if( status ) return status;
23649 #if HAVE_PTHREADS < 7
23650 status = pthread_attr_setdetachstate(&attr, &detach);
23651 if( status < 0 ) status = errno;
23653 status = pthread_attr_setdetachstate(&attr, detach);
23655 if( status ) return status;
23656 status = pthread_create( &t, &attr, task, NULL );
23657 #if HAVE_PTHREADS < 7
23658 if( status < 0 ) status = errno;
23660 if( status ) return status;
23662 /* Draft 4 pthreads */
23663 status = pthread_create( &t, pthread_attr_default, task, NULL );
23664 if( status ) return errno;
23666 /* give thread a chance to complete */
23667 /* it should remain joinable and hence detachable */
23670 status = pthread_detach( &t );
23671 if( status ) return errno;
23674 #ifdef HAVE_LINUX_THREADS
23675 pthread_kill_other_threads_np();
23684 rm -f conftest.$ac_objext conftest$ac_exeext
23685 if { (ac_try="$ac_link"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_link") 2>conftest.er1
23693 grep -v '^ *+' conftest.er1 >conftest.err
23695 cat conftest.err >&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && {
23698 test -z "$ac_c_werror_flag" ||
23699 test ! -s conftest.err
23700 } && test -s conftest$ac_exeext &&
23701 $as_test_x conftest$ac_exeext; then
23702 ol_cv_pthread_lpthreads_lmach_lexc=yes
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ol_cv_pthread_lpthreads_lmach_lexc=no
23710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23711 conftest$ac_exeext conftest.$ac_ext
23713 cat >conftest.$ac_ext <<_ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h. */
23720 /* pthread test headers */
23721 #include <pthread.h>
23722 #if HAVE_PTHREADS < 7
23726 #define NULL (void*)0
23729 static void *task(p)
23732 return (void *) (p == NULL);
23736 int main(argc, argv)
23741 /* pthread test function */
23742 #ifndef PTHREAD_CREATE_DETACHED
23743 #define PTHREAD_CREATE_DETACHED 1
23747 int detach = PTHREAD_CREATE_DETACHED;
23749 #if HAVE_PTHREADS > 4
23750 /* Final pthreads */
23751 pthread_attr_t attr;
23753 status = pthread_attr_init(&attr);
23754 if( status ) return status;
23756 #if HAVE_PTHREADS < 7
23757 status = pthread_attr_setdetachstate(&attr, &detach);
23758 if( status < 0 ) status = errno;
23760 status = pthread_attr_setdetachstate(&attr, detach);
23762 if( status ) return status;
23763 status = pthread_create( &t, &attr, task, NULL );
23764 #if HAVE_PTHREADS < 7
23765 if( status < 0 ) status = errno;
23767 if( status ) return status;
23769 /* Draft 4 pthreads */
23770 status = pthread_create( &t, pthread_attr_default, task, NULL );
23771 if( status ) return errno;
23773 /* give thread a chance to complete */
23774 /* it should remain joinable and hence detachable */
23777 status = pthread_detach( &t );
23778 if( status ) return errno;
23781 #ifdef HAVE_LINUX_THREADS
23782 pthread_kill_other_threads_np();
23790 rm -f conftest$ac_exeext
23791 if { (ac_try="$ac_link"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797 (eval "$ac_link") 2>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23801 { (case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_try") 2>&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ol_cv_pthread_lpthreads_lmach_lexc=yes
23812 echo "$as_me: program exited with status $ac_status" >&5
23813 echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23816 ( exit $ac_status )
23817 ol_cv_pthread_lpthreads_lmach_lexc=no
23819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23828 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23829 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23831 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23832 ol_link_pthreads="-lpthreads -lmach -lexc"
23833 ol_link_threads=posix
23837 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23838 if test "$ol_link_threads" = no ; then
23839 # try -lpthreads -lexc
23840 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23841 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23842 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23848 LIBS="-lpthreads -lexc $LIBS"
23850 if test "$cross_compiling" = yes; then
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 /* pthread test headers */
23859 #include <pthread.h>
23860 #if HAVE_PTHREADS < 7
23864 #define NULL (void*)0
23867 static void *task(p)
23870 return (void *) (p == NULL);
23877 /* pthread test function */
23878 #ifndef PTHREAD_CREATE_DETACHED
23879 #define PTHREAD_CREATE_DETACHED 1
23883 int detach = PTHREAD_CREATE_DETACHED;
23885 #if HAVE_PTHREADS > 4
23886 /* Final pthreads */
23887 pthread_attr_t attr;
23889 status = pthread_attr_init(&attr);
23890 if( status ) return status;
23892 #if HAVE_PTHREADS < 7
23893 status = pthread_attr_setdetachstate(&attr, &detach);
23894 if( status < 0 ) status = errno;
23896 status = pthread_attr_setdetachstate(&attr, detach);
23898 if( status ) return status;
23899 status = pthread_create( &t, &attr, task, NULL );
23900 #if HAVE_PTHREADS < 7
23901 if( status < 0 ) status = errno;
23903 if( status ) return status;
23905 /* Draft 4 pthreads */
23906 status = pthread_create( &t, pthread_attr_default, task, NULL );
23907 if( status ) return errno;
23909 /* give thread a chance to complete */
23910 /* it should remain joinable and hence detachable */
23913 status = pthread_detach( &t );
23914 if( status ) return errno;
23917 #ifdef HAVE_LINUX_THREADS
23918 pthread_kill_other_threads_np();
23927 rm -f conftest.$ac_objext conftest$ac_exeext
23928 if { (ac_try="$ac_link"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934 (eval "$ac_link") 2>conftest.er1
23936 grep -v '^ *+' conftest.er1 >conftest.err
23938 cat conftest.err >&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && {
23941 test -z "$ac_c_werror_flag" ||
23942 test ! -s conftest.err
23943 } && test -s conftest$ac_exeext &&
23944 $as_test_x conftest$ac_exeext; then
23945 ol_cv_pthread_lpthreads_lexc=yes
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ol_cv_pthread_lpthreads_lexc=no
23953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23954 conftest$ac_exeext conftest.$ac_ext
23956 cat >conftest.$ac_ext <<_ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h. */
23963 /* pthread test headers */
23964 #include <pthread.h>
23965 #if HAVE_PTHREADS < 7
23969 #define NULL (void*)0
23972 static void *task(p)
23975 return (void *) (p == NULL);
23979 int main(argc, argv)
23984 /* pthread test function */
23985 #ifndef PTHREAD_CREATE_DETACHED
23986 #define PTHREAD_CREATE_DETACHED 1
23990 int detach = PTHREAD_CREATE_DETACHED;
23992 #if HAVE_PTHREADS > 4
23993 /* Final pthreads */
23994 pthread_attr_t attr;
23996 status = pthread_attr_init(&attr);
23997 if( status ) return status;
23999 #if HAVE_PTHREADS < 7
24000 status = pthread_attr_setdetachstate(&attr, &detach);
24001 if( status < 0 ) status = errno;
24003 status = pthread_attr_setdetachstate(&attr, detach);
24005 if( status ) return status;
24006 status = pthread_create( &t, &attr, task, NULL );
24007 #if HAVE_PTHREADS < 7
24008 if( status < 0 ) status = errno;
24010 if( status ) return status;
24012 /* Draft 4 pthreads */
24013 status = pthread_create( &t, pthread_attr_default, task, NULL );
24014 if( status ) return errno;
24016 /* give thread a chance to complete */
24017 /* it should remain joinable and hence detachable */
24020 status = pthread_detach( &t );
24021 if( status ) return errno;
24024 #ifdef HAVE_LINUX_THREADS
24025 pthread_kill_other_threads_np();
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040 (eval "$ac_link") 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24044 { (case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_try") 2>&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; }; then
24053 ol_cv_pthread_lpthreads_lexc=yes
24055 echo "$as_me: program exited with status $ac_status" >&5
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ( exit $ac_status )
24060 ol_cv_pthread_lpthreads_lexc=no
24062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24071 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24072 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24074 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24075 ol_link_pthreads="-lpthreads -lexc"
24076 ol_link_threads=posix
24081 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24082 if test "$ol_link_threads" = no ; then
24084 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24085 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24086 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 LIBS="-lpthreads $LIBS"
24094 if test "$cross_compiling" = yes; then
24095 cat >conftest.$ac_ext <<_ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24102 /* pthread test headers */
24103 #include <pthread.h>
24104 #if HAVE_PTHREADS < 7
24108 #define NULL (void*)0
24111 static void *task(p)
24114 return (void *) (p == NULL);
24121 /* pthread test function */
24122 #ifndef PTHREAD_CREATE_DETACHED
24123 #define PTHREAD_CREATE_DETACHED 1
24127 int detach = PTHREAD_CREATE_DETACHED;
24129 #if HAVE_PTHREADS > 4
24130 /* Final pthreads */
24131 pthread_attr_t attr;
24133 status = pthread_attr_init(&attr);
24134 if( status ) return status;
24136 #if HAVE_PTHREADS < 7
24137 status = pthread_attr_setdetachstate(&attr, &detach);
24138 if( status < 0 ) status = errno;
24140 status = pthread_attr_setdetachstate(&attr, detach);
24142 if( status ) return status;
24143 status = pthread_create( &t, &attr, task, NULL );
24144 #if HAVE_PTHREADS < 7
24145 if( status < 0 ) status = errno;
24147 if( status ) return status;
24149 /* Draft 4 pthreads */
24150 status = pthread_create( &t, pthread_attr_default, task, NULL );
24151 if( status ) return errno;
24153 /* give thread a chance to complete */
24154 /* it should remain joinable and hence detachable */
24157 status = pthread_detach( &t );
24158 if( status ) return errno;
24161 #ifdef HAVE_LINUX_THREADS
24162 pthread_kill_other_threads_np();
24171 rm -f conftest.$ac_objext conftest$ac_exeext
24172 if { (ac_try="$ac_link"
24173 case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_link") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && {
24185 test -z "$ac_c_werror_flag" ||
24186 test ! -s conftest.err
24187 } && test -s conftest$ac_exeext &&
24188 $as_test_x conftest$ac_exeext; then
24189 ol_cv_pthread_lib_lpthreads=yes
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24194 ol_cv_pthread_lib_lpthreads=no
24197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24198 conftest$ac_exeext conftest.$ac_ext
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24207 /* pthread test headers */
24208 #include <pthread.h>
24209 #if HAVE_PTHREADS < 7
24213 #define NULL (void*)0
24216 static void *task(p)
24219 return (void *) (p == NULL);
24223 int main(argc, argv)
24228 /* pthread test function */
24229 #ifndef PTHREAD_CREATE_DETACHED
24230 #define PTHREAD_CREATE_DETACHED 1
24234 int detach = PTHREAD_CREATE_DETACHED;
24236 #if HAVE_PTHREADS > 4
24237 /* Final pthreads */
24238 pthread_attr_t attr;
24240 status = pthread_attr_init(&attr);
24241 if( status ) return status;
24243 #if HAVE_PTHREADS < 7
24244 status = pthread_attr_setdetachstate(&attr, &detach);
24245 if( status < 0 ) status = errno;
24247 status = pthread_attr_setdetachstate(&attr, detach);
24249 if( status ) return status;
24250 status = pthread_create( &t, &attr, task, NULL );
24251 #if HAVE_PTHREADS < 7
24252 if( status < 0 ) status = errno;
24254 if( status ) return status;
24256 /* Draft 4 pthreads */
24257 status = pthread_create( &t, pthread_attr_default, task, NULL );
24258 if( status ) return errno;
24260 /* give thread a chance to complete */
24261 /* it should remain joinable and hence detachable */
24264 status = pthread_detach( &t );
24265 if( status ) return errno;
24268 #ifdef HAVE_LINUX_THREADS
24269 pthread_kill_other_threads_np();
24277 rm -f conftest$ac_exeext
24278 if { (ac_try="$ac_link"
24279 case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_link") 2>&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24288 { (case "(($ac_try" in
24289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290 *) ac_try_echo=$ac_try;;
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293 (eval "$ac_try") 2>&5
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; }; then
24297 ol_cv_pthread_lib_lpthreads=yes
24299 echo "$as_me: program exited with status $ac_status" >&5
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 ( exit $ac_status )
24304 ol_cv_pthread_lib_lpthreads=no
24306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24316 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24318 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24319 ol_link_pthreads="-lpthreads"
24320 ol_link_threads=posix
24325 if test $ol_link_threads != no ; then
24326 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24328 save_CPPFLAGS="$CPPFLAGS"
24330 LIBS="$LTHREAD_LIBS $LIBS"
24335 for ac_func in sched_yield pthread_yield thr_yield
24337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24341 echo $ECHO_N "(cached) $ECHO_C" >&6
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24351 #define $ac_func innocuous_$ac_func
24353 /* System header to define __stub macros and hopefully few prototypes,
24354 which can conflict with char $ac_func (); below.
24355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24356 <limits.h> exists even on freestanding compilers. */
24359 # include <limits.h>
24361 # include <assert.h>
24366 /* Override any GCC internal prototype to avoid an error.
24367 Use char because int might match the return type of a GCC
24368 builtin and then its argument prototype would still apply. */
24373 /* The GNU C library defines this for functions which it implements
24374 to always fail with ENOSYS. Some functions are actually named
24375 something starting with __ and the normal name is an alias. */
24376 #if defined __stub_$ac_func || defined __stub___$ac_func
24383 return $ac_func ();
24388 rm -f conftest.$ac_objext conftest$ac_exeext
24389 if { (ac_try="$ac_link"
24390 case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_link") 2>conftest.er1
24397 grep -v '^ *+' conftest.er1 >conftest.err
24399 cat conftest.err >&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && {
24402 test -z "$ac_c_werror_flag" ||
24403 test ! -s conftest.err
24404 } && test -s conftest$ac_exeext &&
24405 $as_test_x conftest$ac_exeext; then
24406 eval "$as_ac_var=yes"
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 eval "$as_ac_var=no"
24414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24415 conftest$ac_exeext conftest.$ac_ext
24417 ac_res=`eval echo '${'$as_ac_var'}'`
24418 { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24420 if test `eval echo '${'$as_ac_var'}'` = yes; then
24421 cat >>confdefs.h <<_ACEOF
24422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24429 if test $ac_cv_func_sched_yield = no &&
24430 test $ac_cv_func_pthread_yield = no &&
24431 test $ac_cv_func_thr_yield = no ; then
24432 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24433 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24434 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24437 ac_check_lib_save_LIBS=$LIBS
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24446 /* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply. */
24452 char sched_yield ();
24456 return sched_yield ();
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (ac_try="$ac_link"
24463 case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468 (eval "$ac_link") 2>conftest.er1
24470 grep -v '^ *+' conftest.er1 >conftest.err
24472 cat conftest.err >&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } && {
24475 test -z "$ac_c_werror_flag" ||
24476 test ! -s conftest.err
24477 } && test -s conftest$ac_exeext &&
24478 $as_test_x conftest$ac_exeext; then
24479 ac_cv_lib_rt_sched_yield=yes
24481 echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24484 ac_cv_lib_rt_sched_yield=no
24487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24488 conftest$ac_exeext conftest.$ac_ext
24489 LIBS=$ac_check_lib_save_LIBS
24491 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24492 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24493 if test $ac_cv_lib_rt_sched_yield = yes; then
24494 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24496 cat >>confdefs.h <<\_ACEOF
24497 #define HAVE_SCHED_YIELD 1
24500 ac_cv_func_sched_yield=yes
24502 ac_cv_func_sched_yield=no
24506 if test $ac_cv_func_sched_yield = no &&
24507 test $ac_cv_func_pthread_yield = no &&
24508 test "$ac_cv_func_thr_yield" = no ; then
24509 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24510 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24514 for ac_func in pthread_kill
24516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24530 #define $ac_func innocuous_$ac_func
24532 /* System header to define __stub macros and hopefully few prototypes,
24533 which can conflict with char $ac_func (); below.
24534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24535 <limits.h> exists even on freestanding compilers. */
24538 # include <limits.h>
24540 # include <assert.h>
24545 /* Override any GCC internal prototype to avoid an error.
24546 Use char because int might match the return type of a GCC
24547 builtin and then its argument prototype would still apply. */
24552 /* The GNU C library defines this for functions which it implements
24553 to always fail with ENOSYS. Some functions are actually named
24554 something starting with __ and the normal name is an alias. */
24555 #if defined __stub_$ac_func || defined __stub___$ac_func
24562 return $ac_func ();
24567 rm -f conftest.$ac_objext conftest$ac_exeext
24568 if { (ac_try="$ac_link"
24569 case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_link") 2>conftest.er1
24576 grep -v '^ *+' conftest.er1 >conftest.err
24578 cat conftest.err >&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest$ac_exeext &&
24584 $as_test_x conftest$ac_exeext; then
24585 eval "$as_ac_var=yes"
24587 echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24590 eval "$as_ac_var=no"
24593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24594 conftest$ac_exeext conftest.$ac_ext
24596 ac_res=`eval echo '${'$as_ac_var'}'`
24597 { echo "$as_me:$LINENO: result: $ac_res" >&5
24598 echo "${ECHO_T}$ac_res" >&6; }
24599 if test `eval echo '${'$as_ac_var'}'` = yes; then
24600 cat >>confdefs.h <<_ACEOF
24601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24608 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24609 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24610 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24621 #include <pthread.h>
24622 pthread_rwlock_t rwlock;
24627 pthread_rwlock_destroy(&rwlock);
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_link") 2>conftest.er1
24641 grep -v '^ *+' conftest.er1 >conftest.err
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest$ac_exeext &&
24649 $as_test_x conftest$ac_exeext; then
24650 ol_cv_func_pthread_rwlock_destroy=yes
24652 echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ol_cv_func_pthread_rwlock_destroy=no
24658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24659 conftest$ac_exeext conftest.$ac_ext
24662 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24663 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24664 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24666 cat >>confdefs.h <<\_ACEOF
24667 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24672 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24673 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24674 if test "${ol_cv_func_pthread_detach+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24678 cat >conftest.$ac_ext <<_ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h. */
24685 #include <pthread.h>
24687 #define NULL (void*)0
24693 pthread_detach(NULL);
24698 rm -f conftest.$ac_objext conftest$ac_exeext
24699 if { (ac_try="$ac_link"
24700 case "(($ac_try" in
24701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702 *) ac_try_echo=$ac_try;;
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_link") 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest$ac_exeext &&
24715 $as_test_x conftest$ac_exeext; then
24716 ol_cv_func_pthread_detach=yes
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ol_cv_func_pthread_detach=no
24724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24725 conftest$ac_exeext conftest.$ac_ext
24728 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24729 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24731 if test $ol_cv_func_pthread_detach = no ; then
24732 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24733 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24734 { (exit 1); exit 1; }; }
24738 cat >>confdefs.h <<\_ACEOF
24739 #define HAVE_PTHREAD_DETACH 1
24748 pthread_setconcurrency \
24749 pthread_getconcurrency \
24750 thr_setconcurrency \
24751 thr_getconcurrency \
24754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24768 #define $ac_func innocuous_$ac_func
24770 /* System header to define __stub macros and hopefully few prototypes,
24771 which can conflict with char $ac_func (); below.
24772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24773 <limits.h> exists even on freestanding compilers. */
24776 # include <limits.h>
24778 # include <assert.h>
24783 /* Override any GCC internal prototype to avoid an error.
24784 Use char because int might match the return type of a GCC
24785 builtin and then its argument prototype would still apply. */
24790 /* The GNU C library defines this for functions which it implements
24791 to always fail with ENOSYS. Some functions are actually named
24792 something starting with __ and the normal name is an alias. */
24793 #if defined __stub_$ac_func || defined __stub___$ac_func
24800 return $ac_func ();
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (ac_try="$ac_link"
24807 case "(($ac_try" in
24808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809 *) ac_try_echo=$ac_try;;
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812 (eval "$ac_link") 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } && {
24819 test -z "$ac_c_werror_flag" ||
24820 test ! -s conftest.err
24821 } && test -s conftest$ac_exeext &&
24822 $as_test_x conftest$ac_exeext; then
24823 eval "$as_ac_var=yes"
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 eval "$as_ac_var=no"
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832 conftest$ac_exeext conftest.$ac_ext
24834 ac_res=`eval echo '${'$as_ac_var'}'`
24835 { echo "$as_me:$LINENO: result: $ac_res" >&5
24836 echo "${ECHO_T}$ac_res" >&6; }
24837 if test `eval echo '${'$as_ac_var'}'` = yes; then
24838 cat >>confdefs.h <<_ACEOF
24839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24848 for ac_func in pthread_kill_other_threads_np
24850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24864 #define $ac_func innocuous_$ac_func
24866 /* System header to define __stub macros and hopefully few prototypes,
24867 which can conflict with char $ac_func (); below.
24868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24869 <limits.h> exists even on freestanding compilers. */
24872 # include <limits.h>
24874 # include <assert.h>
24879 /* Override any GCC internal prototype to avoid an error.
24880 Use char because int might match the return type of a GCC
24881 builtin and then its argument prototype would still apply. */
24886 /* The GNU C library defines this for functions which it implements
24887 to always fail with ENOSYS. Some functions are actually named
24888 something starting with __ and the normal name is an alias. */
24889 #if defined __stub_$ac_func || defined __stub___$ac_func
24896 return $ac_func ();
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (ac_try="$ac_link"
24903 case "(($ac_try" in
24904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905 *) ac_try_echo=$ac_try;;
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908 (eval "$ac_link") 2>conftest.er1
24910 grep -v '^ *+' conftest.er1 >conftest.err
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } && {
24915 test -z "$ac_c_werror_flag" ||
24916 test ! -s conftest.err
24917 } && test -s conftest$ac_exeext &&
24918 $as_test_x conftest$ac_exeext; then
24919 eval "$as_ac_var=yes"
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 eval "$as_ac_var=no"
24927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24928 conftest$ac_exeext conftest.$ac_ext
24930 ac_res=`eval echo '${'$as_ac_var'}'`
24931 { echo "$as_me:$LINENO: result: $ac_res" >&5
24932 echo "${ECHO_T}$ac_res" >&6; }
24933 if test `eval echo '${'$as_ac_var'}'` = yes; then
24934 cat >>confdefs.h <<_ACEOF
24935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24941 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24942 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24943 if test "${ol_cv_sys_linux_threads+set}" = set; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24946 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24948 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24949 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24954 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24955 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24956 if test "${ol_cv_linux_threads+set}" = set; then
24957 echo $ECHO_N "(cached) $ECHO_C" >&6
24960 if test $ol_cv_header_linux_threads = yes &&
24961 test $ol_cv_sys_linux_threads = yes; then
24962 ol_cv_linux_threads=yes
24963 elif test $ol_cv_header_linux_threads = no &&
24964 test $ol_cv_sys_linux_threads = no; then
24965 ol_cv_linux_threads=no
24967 ol_cv_linux_threads=error
24971 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24972 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24975 if test $ol_cv_linux_threads = error; then
24976 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24977 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24978 { (exit 1); exit 1; }; };
24981 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24982 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24983 if test "${ol_cv_pthread_create_works+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24987 if test "$cross_compiling" = yes; then
24988 ol_cv_pthread_create_works=yes
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24997 /* pthread test headers */
24998 #include <pthread.h>
24999 #if HAVE_PTHREADS < 7
25003 #define NULL (void*)0
25006 static void *task(p)
25009 return (void *) (p == NULL);
25013 int main(argc, argv)
25018 /* pthread test function */
25019 #ifndef PTHREAD_CREATE_DETACHED
25020 #define PTHREAD_CREATE_DETACHED 1
25024 int detach = PTHREAD_CREATE_DETACHED;
25026 #if HAVE_PTHREADS > 4
25027 /* Final pthreads */
25028 pthread_attr_t attr;
25030 status = pthread_attr_init(&attr);
25031 if( status ) return status;
25033 #if HAVE_PTHREADS < 7
25034 status = pthread_attr_setdetachstate(&attr, &detach);
25035 if( status < 0 ) status = errno;
25037 status = pthread_attr_setdetachstate(&attr, detach);
25039 if( status ) return status;
25040 status = pthread_create( &t, &attr, task, NULL );
25041 #if HAVE_PTHREADS < 7
25042 if( status < 0 ) status = errno;
25044 if( status ) return status;
25046 /* Draft 4 pthreads */
25047 status = pthread_create( &t, pthread_attr_default, task, NULL );
25048 if( status ) return errno;
25050 /* give thread a chance to complete */
25051 /* it should remain joinable and hence detachable */
25054 status = pthread_detach( &t );
25055 if( status ) return errno;
25058 #ifdef HAVE_LINUX_THREADS
25059 pthread_kill_other_threads_np();
25067 rm -f conftest$ac_exeext
25068 if { (ac_try="$ac_link"
25069 case "(($ac_try" in
25070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071 *) ac_try_echo=$ac_try;;
25073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074 (eval "$ac_link") 2>&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25078 { (case "(($ac_try" in
25079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080 *) ac_try_echo=$ac_try;;
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083 (eval "$ac_try") 2>&5
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }; }; then
25087 ol_cv_pthread_create_works=yes
25089 echo "$as_me: program exited with status $ac_status" >&5
25090 echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25093 ( exit $ac_status )
25094 ol_cv_pthread_create_works=no
25096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25101 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25102 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25104 if test $ol_cv_pthread_create_works = no ; then
25105 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25106 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25107 { (exit 1); exit 1; }; }
25110 ol_replace_broken_yield=no
25112 if test $ol_replace_broken_yield = yes ; then
25114 cat >>confdefs.h <<\_ACEOF
25115 #define REPLACE_BROKEN_YIELD 1
25120 if test $ol_with_yielding_select = auto ; then
25121 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25122 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25123 if test "${ol_cv_pthread_select_yields+set}" = set; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25127 if test "$cross_compiling" = yes; then
25128 ol_cv_pthread_select_yields=cross
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25137 #include <sys/types.h>
25138 #include <sys/time.h>
25139 #include <unistd.h>
25140 #include <pthread.h>
25142 #define NULL (void*) 0
25145 static int fildes[2];
25147 static void *task(p)
25159 FD_SET(fildes[0], &rfds);
25161 /* we're not interested in any fds */
25162 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25169 exit(0); /* if we exit here, the select blocked the whole process */
25172 int main(argc, argv)
25178 /* create a pipe to select */
25179 if(pipe(&fildes[0])) {
25184 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25185 (void) pthread_setconcurrency(2);
25187 #ifdef HAVE_THR_SETCONCURRENCY
25188 /* Set Solaris LWP concurrency to 2 */
25189 thr_setconcurrency(2);
25193 #if HAVE_PTHREADS < 6
25194 pthread_create(&t, pthread_attr_default, task, NULL);
25196 pthread_create(&t, NULL, task, NULL);
25199 /* make sure task runs first */
25200 #ifdef HAVE_THR_YIELD
25202 #elif defined( HAVE_SCHED_YIELD )
25204 #elif defined( HAVE_PTHREAD_YIELD )
25211 rm -f conftest$ac_exeext
25212 if { (ac_try="$ac_link"
25213 case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_link") 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25222 { (case "(($ac_try" in
25223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224 *) ac_try_echo=$ac_try;;
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227 (eval "$ac_try") 2>&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; }; then
25231 ol_cv_pthread_select_yields=no
25233 echo "$as_me: program exited with status $ac_status" >&5
25234 echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25237 ( exit $ac_status )
25238 ol_cv_pthread_select_yields=yes
25240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25245 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25246 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25248 if test $ol_cv_pthread_select_yields = cross ; then
25249 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25250 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25251 { (exit 1); exit 1; }; }
25254 if test $ol_cv_pthread_select_yields = yes ; then
25255 ol_with_yielding_select=yes
25259 CPPFLAGS="$save_CPPFLAGS"
25262 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25263 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25264 { (exit 1); exit 1; }; }
25268 if test $ol_with_threads = posix ; then
25269 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25270 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25271 { (exit 1); exit 1; }; }
25276 case $ol_with_threads in auto | yes | mach)
25280 for ac_header in mach/cthreads.h cthreads.h
25282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 ac_res=`eval echo '${'$as_ac_Header'}'`
25290 { echo "$as_me:$LINENO: result: $ac_res" >&5
25291 echo "${ECHO_T}$ac_res" >&6; }
25293 # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 #include <$ac_header>
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_compile") 2>conftest.er1
25314 grep -v '^ *+' conftest.er1 >conftest.err
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } && {
25319 test -z "$ac_c_werror_flag" ||
25320 test ! -s conftest.err
25321 } && test -s conftest.$ac_objext; then
25322 ac_header_compiler=yes
25324 echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25327 ac_header_compiler=no
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include <$ac_header>
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348 *) ac_try_echo=$ac_try;;
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } >/dev/null && {
25358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25361 ac_header_preproc=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_header_preproc=no
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373 # So? What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25380 ac_header_preproc=yes
25383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25396 ## --------------------------------------------- ##
25397 ## Report this to <http://www.openldap.org/its/> ##
25398 ## --------------------------------------------- ##
25400 ) | sed "s/^/$as_me: WARNING: /" >&2
25403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25406 echo $ECHO_N "(cached) $ECHO_C" >&6
25408 eval "$as_ac_Header=\$ac_header_preproc"
25410 ac_res=`eval echo '${'$as_ac_Header'}'`
25411 { echo "$as_me:$LINENO: result: $ac_res" >&5
25412 echo "${ECHO_T}$ac_res" >&6; }
25415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25416 cat >>confdefs.h <<_ACEOF
25417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25424 if test $ac_cv_header_mach_cthreads_h = yes ; then
25425 ol_with_threads=found
25427 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25428 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25429 if test "${ac_cv_func_cthread_fork+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25440 #define cthread_fork innocuous_cthread_fork
25442 /* System header to define __stub macros and hopefully few prototypes,
25443 which can conflict with char cthread_fork (); below.
25444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25445 <limits.h> exists even on freestanding compilers. */
25448 # include <limits.h>
25450 # include <assert.h>
25453 #undef cthread_fork
25455 /* Override any GCC internal prototype to avoid an error.
25456 Use char because int might match the return type of a GCC
25457 builtin and then its argument prototype would still apply. */
25461 char cthread_fork ();
25462 /* The GNU C library defines this for functions which it implements
25463 to always fail with ENOSYS. Some functions are actually named
25464 something starting with __ and the normal name is an alias. */
25465 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25472 return cthread_fork ();
25477 rm -f conftest.$ac_objext conftest$ac_exeext
25478 if { (ac_try="$ac_link"
25479 case "(($ac_try" in
25480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481 *) ac_try_echo=$ac_try;;
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484 (eval "$ac_link") 2>conftest.er1
25486 grep -v '^ *+' conftest.er1 >conftest.err
25488 cat conftest.err >&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && {
25491 test -z "$ac_c_werror_flag" ||
25492 test ! -s conftest.err
25493 } && test -s conftest$ac_exeext &&
25494 $as_test_x conftest$ac_exeext; then
25495 ac_cv_func_cthread_fork=yes
25497 echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25500 ac_cv_func_cthread_fork=no
25503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25504 conftest$ac_exeext conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25507 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25508 if test $ac_cv_func_cthread_fork = yes; then
25509 ol_link_threads=yes
25513 if test $ol_link_threads = no ; then
25514 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25515 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25516 if test "${ol_cv_cthread_all_load+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 LIBS="-all_load $LIBS"
25522 cat >conftest.$ac_ext <<_ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 #include <mach/cthreads.h>
25533 cthread_fork((void *)0, (void *)0);
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (ac_try="$ac_link"
25541 case "(($ac_try" in
25542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543 *) ac_try_echo=$ac_try;;
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546 (eval "$ac_link") 2>conftest.er1
25548 grep -v '^ *+' conftest.er1 >conftest.err
25550 cat conftest.err >&5
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } && {
25553 test -z "$ac_c_werror_flag" ||
25554 test ! -s conftest.err
25555 } && test -s conftest$ac_exeext &&
25556 $as_test_x conftest$ac_exeext; then
25557 ol_cv_cthread_all_load=yes
25559 echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25562 ol_cv_cthread_all_load=no
25565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25566 conftest$ac_exeext conftest.$ac_ext
25570 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25571 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25573 if test $ol_cv_cthread_all_load = yes ; then
25574 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25575 ol_link_threads=mach
25576 ol_with_threads=found
25580 elif test $ac_cv_header_cthreads_h = yes ; then
25582 ol_with_threads=found
25585 LIBS="$LIBS -lthreads"
25586 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25587 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25588 if test "${ac_cv_func_cthread_fork+set}" = set; then
25589 echo $ECHO_N "(cached) $ECHO_C" >&6
25591 cat >conftest.$ac_ext <<_ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25597 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25599 #define cthread_fork innocuous_cthread_fork
25601 /* System header to define __stub macros and hopefully few prototypes,
25602 which can conflict with char cthread_fork (); below.
25603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25604 <limits.h> exists even on freestanding compilers. */
25607 # include <limits.h>
25609 # include <assert.h>
25612 #undef cthread_fork
25614 /* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25620 char cthread_fork ();
25621 /* The GNU C library defines this for functions which it implements
25622 to always fail with ENOSYS. Some functions are actually named
25623 something starting with __ and the normal name is an alias. */
25624 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25631 return cthread_fork ();
25636 rm -f conftest.$ac_objext conftest$ac_exeext
25637 if { (ac_try="$ac_link"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_link") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest$ac_exeext &&
25653 $as_test_x conftest$ac_exeext; then
25654 ac_cv_func_cthread_fork=yes
25656 echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25659 ac_cv_func_cthread_fork=no
25662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25663 conftest$ac_exeext conftest.$ac_ext
25665 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25666 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25667 if test $ac_cv_func_cthread_fork = yes; then
25668 ol_link_threads=yes
25673 if test $ol_link_threads = yes ; then
25674 LTHREAD_LIBS="-lthreads"
25675 ol_link_threads=mach
25676 ol_with_threads=found
25678 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25679 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25680 { (exit 1); exit 1; }; }
25683 elif test $ol_with_threads = mach ; then
25684 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25685 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25686 { (exit 1); exit 1; }; }
25689 if test $ol_link_threads = mach ; then
25691 cat >>confdefs.h <<\_ACEOF
25692 #define HAVE_MACH_CTHREADS 1
25695 elif test $ol_with_threads = found ; then
25696 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25697 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25698 { (exit 1); exit 1; }; }
25703 case $ol_with_threads in auto | yes | pth)
25706 for ac_header in pth.h
25708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25715 ac_res=`eval echo '${'$as_ac_Header'}'`
25716 { echo "$as_me:$LINENO: result: $ac_res" >&5
25717 echo "${ECHO_T}$ac_res" >&6; }
25719 # Is the header compilable?
25720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25722 cat >conftest.$ac_ext <<_ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h. */
25728 $ac_includes_default
25729 #include <$ac_header>
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735 *) ac_try_echo=$ac_try;;
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738 (eval "$ac_compile") 2>conftest.er1
25740 grep -v '^ *+' conftest.er1 >conftest.err
25742 cat conftest.err >&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); } && {
25745 test -z "$ac_c_werror_flag" ||
25746 test ! -s conftest.err
25747 } && test -s conftest.$ac_objext; then
25748 ac_header_compiler=yes
25750 echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25753 ac_header_compiler=no
25756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25758 echo "${ECHO_T}$ac_header_compiler" >&6; }
25760 # Is the header present?
25761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25763 cat >conftest.$ac_ext <<_ACEOF
25766 cat confdefs.h >>conftest.$ac_ext
25767 cat >>conftest.$ac_ext <<_ACEOF
25768 /* end confdefs.h. */
25769 #include <$ac_header>
25771 if { (ac_try="$ac_cpp conftest.$ac_ext"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } >/dev/null && {
25784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25787 ac_header_preproc=yes
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_header_preproc=no
25795 rm -f conftest.err conftest.$ac_ext
25796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25797 echo "${ECHO_T}$ac_header_preproc" >&6; }
25799 # So? What about this header?
25800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25806 ac_header_preproc=yes
25809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25822 ## --------------------------------------------- ##
25823 ## Report this to <http://www.openldap.org/its/> ##
25824 ## --------------------------------------------- ##
25826 ) | sed "s/^/$as_me: WARNING: /" >&2
25829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 eval "$as_ac_Header=\$ac_header_preproc"
25836 ac_res=`eval echo '${'$as_ac_Header'}'`
25837 { echo "$as_me:$LINENO: result: $ac_res" >&5
25838 echo "${ECHO_T}$ac_res" >&6; }
25841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25842 cat >>confdefs.h <<_ACEOF
25843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25851 if test $ac_cv_header_pth_h = yes ; then
25852 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25853 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25854 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 ac_check_lib_save_LIBS=$LIBS
25859 cat >conftest.$ac_ext <<_ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h. */
25866 /* Override any GCC internal prototype to avoid an error.
25867 Use char because int might match the return type of a GCC
25868 builtin and then its argument prototype would still apply. */
25872 char pth_version ();
25876 return pth_version ();
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (ac_try="$ac_link"
25883 case "(($ac_try" in
25884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888 (eval "$ac_link") 2>conftest.er1
25890 grep -v '^ *+' conftest.er1 >conftest.err
25892 cat conftest.err >&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } && {
25895 test -z "$ac_c_werror_flag" ||
25896 test ! -s conftest.err
25897 } && test -s conftest$ac_exeext &&
25898 $as_test_x conftest$ac_exeext; then
25899 ac_cv_lib_pth_pth_version=yes
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25904 ac_cv_lib_pth_pth_version=no
25907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25908 conftest$ac_exeext conftest.$ac_ext
25909 LIBS=$ac_check_lib_save_LIBS
25911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25912 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25913 if test $ac_cv_lib_pth_pth_version = yes; then
25920 if test $have_pth = yes ; then
25922 cat >>confdefs.h <<\_ACEOF
25923 #define HAVE_GNU_PTH 1
25926 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25927 ol_link_threads=pth
25928 ol_with_threads=found
25930 if test $ol_with_yielding_select = auto ; then
25931 ol_with_yielding_select=yes
25938 case $ol_with_threads in auto | yes | lwp)
25942 for ac_header in thread.h synch.h
25944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25951 ac_res=`eval echo '${'$as_ac_Header'}'`
25952 { echo "$as_me:$LINENO: result: $ac_res" >&5
25953 echo "${ECHO_T}$ac_res" >&6; }
25955 # Is the header compilable?
25956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 $ac_includes_default
25965 #include <$ac_header>
25967 rm -f conftest.$ac_objext
25968 if { (ac_try="$ac_compile"
25969 case "(($ac_try" in
25970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971 *) ac_try_echo=$ac_try;;
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974 (eval "$ac_compile") 2>conftest.er1
25976 grep -v '^ *+' conftest.er1 >conftest.err
25978 cat conftest.err >&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); } && {
25981 test -z "$ac_c_werror_flag" ||
25982 test ! -s conftest.err
25983 } && test -s conftest.$ac_objext; then
25984 ac_header_compiler=yes
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 ac_header_compiler=no
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25994 echo "${ECHO_T}$ac_header_compiler" >&6; }
25996 # Is the header present?
25997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 #include <$ac_header>
26007 if { (ac_try="$ac_cpp conftest.$ac_ext"
26008 case "(($ac_try" in
26009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010 *) ac_try_echo=$ac_try;;
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26015 grep -v '^ *+' conftest.er1 >conftest.err
26017 cat conftest.err >&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } >/dev/null && {
26020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26021 test ! -s conftest.err
26023 ac_header_preproc=yes
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 ac_header_preproc=no
26031 rm -f conftest.err conftest.$ac_ext
26032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26033 echo "${ECHO_T}$ac_header_preproc" >&6; }
26035 # So? What about this header?
26036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26042 ac_header_preproc=yes
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26058 ## --------------------------------------------- ##
26059 ## Report this to <http://www.openldap.org/its/> ##
26060 ## --------------------------------------------- ##
26062 ) | sed "s/^/$as_me: WARNING: /" >&2
26065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26070 eval "$as_ac_Header=\$ac_header_preproc"
26072 ac_res=`eval echo '${'$as_ac_Header'}'`
26073 { echo "$as_me:$LINENO: result: $ac_res" >&5
26074 echo "${ECHO_T}$ac_res" >&6; }
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26086 if test $ac_cv_header_thread_h = yes &&
26087 test $ac_cv_header_synch_h = yes ; then
26088 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26089 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26090 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26093 ac_check_lib_save_LIBS=$LIBS
26094 LIBS="-lthread $LIBS"
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26102 /* Override any GCC internal prototype to avoid an error.
26103 Use char because int might match the return type of a GCC
26104 builtin and then its argument prototype would still apply. */
26108 char thr_create ();
26112 return thr_create ();
26117 rm -f conftest.$ac_objext conftest$ac_exeext
26118 if { (ac_try="$ac_link"
26119 case "(($ac_try" in
26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_link") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1 >conftest.err
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } && {
26131 test -z "$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26133 } && test -s conftest$ac_exeext &&
26134 $as_test_x conftest$ac_exeext; then
26135 ac_cv_lib_thread_thr_create=yes
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_cv_lib_thread_thr_create=no
26143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26144 conftest$ac_exeext conftest.$ac_ext
26145 LIBS=$ac_check_lib_save_LIBS
26147 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26148 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26149 if test $ac_cv_lib_thread_thr_create = yes; then
26156 if test $have_thr = yes ; then
26158 cat >>confdefs.h <<\_ACEOF
26162 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26163 ol_link_threads=thr
26165 if test $ol_with_yielding_select = auto ; then
26166 ol_with_yielding_select=yes
26172 thr_setconcurrency \
26173 thr_getconcurrency \
26176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 cat >conftest.$ac_ext <<_ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26190 #define $ac_func innocuous_$ac_func
26192 /* System header to define __stub macros and hopefully few prototypes,
26193 which can conflict with char $ac_func (); below.
26194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26195 <limits.h> exists even on freestanding compilers. */
26198 # include <limits.h>
26200 # include <assert.h>
26205 /* Override any GCC internal prototype to avoid an error.
26206 Use char because int might match the return type of a GCC
26207 builtin and then its argument prototype would still apply. */
26212 /* The GNU C library defines this for functions which it implements
26213 to always fail with ENOSYS. Some functions are actually named
26214 something starting with __ and the normal name is an alias. */
26215 #if defined __stub_$ac_func || defined __stub___$ac_func
26222 return $ac_func ();
26227 rm -f conftest.$ac_objext conftest$ac_exeext
26228 if { (ac_try="$ac_link"
26229 case "(($ac_try" in
26230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26231 *) ac_try_echo=$ac_try;;
26233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26234 (eval "$ac_link") 2>conftest.er1
26236 grep -v '^ *+' conftest.er1 >conftest.err
26238 cat conftest.err >&5
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); } && {
26241 test -z "$ac_c_werror_flag" ||
26242 test ! -s conftest.err
26243 } && test -s conftest$ac_exeext &&
26244 $as_test_x conftest$ac_exeext; then
26245 eval "$as_ac_var=yes"
26247 echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26250 eval "$as_ac_var=no"
26253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26254 conftest$ac_exeext conftest.$ac_ext
26256 ac_res=`eval echo '${'$as_ac_var'}'`
26257 { echo "$as_me:$LINENO: result: $ac_res" >&5
26258 echo "${ECHO_T}$ac_res" >&6; }
26259 if test `eval echo '${'$as_ac_var'}'` = yes; then
26260 cat >>confdefs.h <<_ACEOF
26261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26271 for ac_header in lwp/lwp.h
26273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26278 echo $ECHO_N "(cached) $ECHO_C" >&6
26280 ac_res=`eval echo '${'$as_ac_Header'}'`
26281 { echo "$as_me:$LINENO: result: $ac_res" >&5
26282 echo "${ECHO_T}$ac_res" >&6; }
26284 # Is the header compilable?
26285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26287 cat >conftest.$ac_ext <<_ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h. */
26293 $ac_includes_default
26294 #include <$ac_header>
26296 rm -f conftest.$ac_objext
26297 if { (ac_try="$ac_compile"
26298 case "(($ac_try" in
26299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300 *) ac_try_echo=$ac_try;;
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303 (eval "$ac_compile") 2>conftest.er1
26305 grep -v '^ *+' conftest.er1 >conftest.err
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } && {
26310 test -z "$ac_c_werror_flag" ||
26311 test ! -s conftest.err
26312 } && test -s conftest.$ac_objext; then
26313 ac_header_compiler=yes
26315 echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26318 ac_header_compiler=no
26321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26323 echo "${ECHO_T}$ac_header_compiler" >&6; }
26325 # Is the header present?
26326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26328 cat >conftest.$ac_ext <<_ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26334 #include <$ac_header>
26336 if { (ac_try="$ac_cpp conftest.$ac_ext"
26337 case "(($ac_try" in
26338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26339 *) ac_try_echo=$ac_try;;
26341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26344 grep -v '^ *+' conftest.er1 >conftest.err
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } >/dev/null && {
26349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26350 test ! -s conftest.err
26352 ac_header_preproc=yes
26354 echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26357 ac_header_preproc=no
26360 rm -f conftest.err conftest.$ac_ext
26361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26362 echo "${ECHO_T}$ac_header_preproc" >&6; }
26364 # So? What about this header?
26365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26371 ac_header_preproc=yes
26374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26387 ## --------------------------------------------- ##
26388 ## Report this to <http://www.openldap.org/its/> ##
26389 ## --------------------------------------------- ##
26391 ) | sed "s/^/$as_me: WARNING: /" >&2
26394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26397 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 eval "$as_ac_Header=\$ac_header_preproc"
26401 ac_res=`eval echo '${'$as_ac_Header'}'`
26402 { echo "$as_me:$LINENO: result: $ac_res" >&5
26403 echo "${ECHO_T}$ac_res" >&6; }
26406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26407 cat >>confdefs.h <<_ACEOF
26408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26415 if test $ac_cv_header_lwp_lwp_h = yes ; then
26416 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26417 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26418 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 ac_check_lib_save_LIBS=$LIBS
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26430 /* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26436 char lwp_create ();
26440 return lwp_create ();
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_link") 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest$ac_exeext &&
26462 $as_test_x conftest$ac_exeext; then
26463 ac_cv_lib_lwp_lwp_create=yes
26465 echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26468 ac_cv_lib_lwp_lwp_create=no
26471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26472 conftest$ac_exeext conftest.$ac_ext
26473 LIBS=$ac_check_lib_save_LIBS
26475 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26476 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26477 if test $ac_cv_lib_lwp_lwp_create = yes; then
26484 if test $have_lwp = yes ; then
26486 cat >>confdefs.h <<\_ACEOF
26490 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26491 ol_link_threads=lwp
26493 if test $ol_with_yielding_select = auto ; then
26494 ol_with_yielding_select=no
26501 if test $ol_with_yielding_select = yes ; then
26503 cat >>confdefs.h <<\_ACEOF
26504 #define HAVE_YIELDING_SELECT 1
26509 if test $ol_with_threads = manual ; then
26510 ol_link_threads=yes
26512 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26513 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26517 for ac_header in pthread.h sched.h
26519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26526 ac_res=`eval echo '${'$as_ac_Header'}'`
26527 { echo "$as_me:$LINENO: result: $ac_res" >&5
26528 echo "${ECHO_T}$ac_res" >&6; }
26530 # Is the header compilable?
26531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26533 cat >conftest.$ac_ext <<_ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 $ac_includes_default
26540 #include <$ac_header>
26542 rm -f conftest.$ac_objext
26543 if { (ac_try="$ac_compile"
26544 case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_compile") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } && {
26556 test -z "$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26558 } && test -s conftest.$ac_objext; then
26559 ac_header_compiler=yes
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_header_compiler=no
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26569 echo "${ECHO_T}$ac_header_compiler" >&6; }
26571 # Is the header present?
26572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26574 cat >conftest.$ac_ext <<_ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26580 #include <$ac_header>
26582 if { (ac_try="$ac_cpp conftest.$ac_ext"
26583 case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26590 grep -v '^ *+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } >/dev/null && {
26595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26596 test ! -s conftest.err
26598 ac_header_preproc=yes
26600 echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 ac_header_preproc=no
26606 rm -f conftest.err conftest.$ac_ext
26607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26608 echo "${ECHO_T}$ac_header_preproc" >&6; }
26610 # So? What about this header?
26611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26617 ac_header_preproc=yes
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26633 ## --------------------------------------------- ##
26634 ## Report this to <http://www.openldap.org/its/> ##
26635 ## --------------------------------------------- ##
26637 ) | sed "s/^/$as_me: WARNING: /" >&2
26640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 eval "$as_ac_Header=\$ac_header_preproc"
26647 ac_res=`eval echo '${'$as_ac_Header'}'`
26648 { echo "$as_me:$LINENO: result: $ac_res" >&5
26649 echo "${ECHO_T}$ac_res" >&6; }
26652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26653 cat >>confdefs.h <<_ACEOF
26654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26663 for ac_func in sched_yield pthread_yield
26665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26679 #define $ac_func innocuous_$ac_func
26681 /* System header to define __stub macros and hopefully few prototypes,
26682 which can conflict with char $ac_func (); below.
26683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26684 <limits.h> exists even on freestanding compilers. */
26687 # include <limits.h>
26689 # include <assert.h>
26694 /* Override any GCC internal prototype to avoid an error.
26695 Use char because int might match the return type of a GCC
26696 builtin and then its argument prototype would still apply. */
26701 /* The GNU C library defines this for functions which it implements
26702 to always fail with ENOSYS. Some functions are actually named
26703 something starting with __ and the normal name is an alias. */
26704 #if defined __stub_$ac_func || defined __stub___$ac_func
26711 return $ac_func ();
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (ac_try="$ac_link"
26718 case "(($ac_try" in
26719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720 *) ac_try_echo=$ac_try;;
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723 (eval "$ac_link") 2>conftest.er1
26725 grep -v '^ *+' conftest.er1 >conftest.err
26727 cat conftest.err >&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); } && {
26730 test -z "$ac_c_werror_flag" ||
26731 test ! -s conftest.err
26732 } && test -s conftest$ac_exeext &&
26733 $as_test_x conftest$ac_exeext; then
26734 eval "$as_ac_var=yes"
26736 echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26739 eval "$as_ac_var=no"
26742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26743 conftest$ac_exeext conftest.$ac_ext
26745 ac_res=`eval echo '${'$as_ac_var'}'`
26746 { echo "$as_me:$LINENO: result: $ac_res" >&5
26747 echo "${ECHO_T}$ac_res" >&6; }
26748 if test `eval echo '${'$as_ac_var'}'` = yes; then
26749 cat >>confdefs.h <<_ACEOF
26750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26757 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26758 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26759 if test "${ol_cv_header_linux_threads+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26762 cat >conftest.$ac_ext <<_ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h. */
26768 #include <pthread.h>
26770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26771 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26772 ol_cv_header_linux_threads=yes
26774 ol_cv_header_linux_threads=no
26780 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26781 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26782 if test $ol_cv_header_linux_threads = yes; then
26784 cat >>confdefs.h <<\_ACEOF
26785 #define HAVE_LINUX_THREADS 1
26792 for ac_header in mach/cthreads.h
26794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 ac_res=`eval echo '${'$as_ac_Header'}'`
26802 { echo "$as_me:$LINENO: result: $ac_res" >&5
26803 echo "${ECHO_T}$ac_res" >&6; }
26805 # Is the header compilable?
26806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26808 cat >conftest.$ac_ext <<_ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 $ac_includes_default
26815 #include <$ac_header>
26817 rm -f conftest.$ac_objext
26818 if { (ac_try="$ac_compile"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_compile") 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } && {
26831 test -z "$ac_c_werror_flag" ||
26832 test ! -s conftest.err
26833 } && test -s conftest.$ac_objext; then
26834 ac_header_compiler=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_header_compiler=no
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26844 echo "${ECHO_T}$ac_header_compiler" >&6; }
26846 # Is the header present?
26847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26849 cat >conftest.$ac_ext <<_ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h. */
26855 #include <$ac_header>
26857 if { (ac_try="$ac_cpp conftest.$ac_ext"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } >/dev/null && {
26870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26873 ac_header_preproc=yes
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878 ac_header_preproc=no
26881 rm -f conftest.err conftest.$ac_ext
26882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26883 echo "${ECHO_T}$ac_header_preproc" >&6; }
26885 # So? What about this header?
26886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26892 ac_header_preproc=yes
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26908 ## --------------------------------------------- ##
26909 ## Report this to <http://www.openldap.org/its/> ##
26910 ## --------------------------------------------- ##
26912 ) | sed "s/^/$as_me: WARNING: /" >&2
26915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 eval "$as_ac_Header=\$ac_header_preproc"
26922 ac_res=`eval echo '${'$as_ac_Header'}'`
26923 { echo "$as_me:$LINENO: result: $ac_res" >&5
26924 echo "${ECHO_T}$ac_res" >&6; }
26927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26928 cat >>confdefs.h <<_ACEOF
26929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26937 for ac_header in lwp/lwp.h
26939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 ac_res=`eval echo '${'$as_ac_Header'}'`
26947 { echo "$as_me:$LINENO: result: $ac_res" >&5
26948 echo "${ECHO_T}$ac_res" >&6; }
26950 # Is the header compilable?
26951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26953 cat >conftest.$ac_ext <<_ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26959 $ac_includes_default
26960 #include <$ac_header>
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_compile") 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest.$ac_objext; then
26979 ac_header_compiler=yes
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 ac_header_compiler=no
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26989 echo "${ECHO_T}$ac_header_compiler" >&6; }
26991 # Is the header present?
26992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26994 cat >conftest.$ac_ext <<_ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h. */
27000 #include <$ac_header>
27002 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
27015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27016 test ! -s conftest.err
27018 ac_header_preproc=yes
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27023 ac_header_preproc=no
27026 rm -f conftest.err conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27028 echo "${ECHO_T}$ac_header_preproc" >&6; }
27030 # So? What about this header?
27031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27037 ac_header_preproc=yes
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27053 ## --------------------------------------------- ##
27054 ## Report this to <http://www.openldap.org/its/> ##
27055 ## --------------------------------------------- ##
27057 ) | sed "s/^/$as_me: WARNING: /" >&2
27060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27065 eval "$as_ac_Header=\$ac_header_preproc"
27067 ac_res=`eval echo '${'$as_ac_Header'}'`
27068 { echo "$as_me:$LINENO: result: $ac_res" >&5
27069 echo "${ECHO_T}$ac_res" >&6; }
27072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27073 cat >>confdefs.h <<_ACEOF
27074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27083 for ac_header in thread.h synch.h
27085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27092 ac_res=`eval echo '${'$as_ac_Header'}'`
27093 { echo "$as_me:$LINENO: result: $ac_res" >&5
27094 echo "${ECHO_T}$ac_res" >&6; }
27096 # Is the header compilable?
27097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27099 cat >conftest.$ac_ext <<_ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h. */
27105 $ac_includes_default
27106 #include <$ac_header>
27108 rm -f conftest.$ac_objext
27109 if { (ac_try="$ac_compile"
27110 case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115 (eval "$ac_compile") 2>conftest.er1
27117 grep -v '^ *+' conftest.er1 >conftest.err
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } && {
27122 test -z "$ac_c_werror_flag" ||
27123 test ! -s conftest.err
27124 } && test -s conftest.$ac_objext; then
27125 ac_header_compiler=yes
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ac_header_compiler=no
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27135 echo "${ECHO_T}$ac_header_compiler" >&6; }
27137 # Is the header present?
27138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27140 cat >conftest.$ac_ext <<_ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 #include <$ac_header>
27148 if { (ac_try="$ac_cpp conftest.$ac_ext"
27149 case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27156 grep -v '^ *+' conftest.er1 >conftest.err
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } >/dev/null && {
27161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27162 test ! -s conftest.err
27164 ac_header_preproc=yes
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27169 ac_header_preproc=no
27172 rm -f conftest.err conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27174 echo "${ECHO_T}$ac_header_preproc" >&6; }
27176 # So? What about this header?
27177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27183 ac_header_preproc=yes
27186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27199 ## --------------------------------------------- ##
27200 ## Report this to <http://www.openldap.org/its/> ##
27201 ## --------------------------------------------- ##
27203 ) | sed "s/^/$as_me: WARNING: /" >&2
27206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 eval "$as_ac_Header=\$ac_header_preproc"
27213 ac_res=`eval echo '${'$as_ac_Header'}'`
27214 { echo "$as_me:$LINENO: result: $ac_res" >&5
27215 echo "${ECHO_T}$ac_res" >&6; }
27218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27219 cat >>confdefs.h <<_ACEOF
27220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27229 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27230 cat >>confdefs.h <<\_ACEOF
27231 #define REENTRANT 1
27234 cat >>confdefs.h <<\_ACEOF
27235 #define _REENTRANT 1
27238 cat >>confdefs.h <<\_ACEOF
27239 #define THREAD_SAFE 1
27242 cat >>confdefs.h <<\_ACEOF
27243 #define _THREAD_SAFE 1
27246 cat >>confdefs.h <<\_ACEOF
27247 #define THREADSAFE 1
27250 cat >>confdefs.h <<\_ACEOF
27251 #define _THREADSAFE 1
27254 cat >>confdefs.h <<\_ACEOF
27255 #define _SGI_MP_SOURCE 1
27259 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27260 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27261 if test "${ol_cv_errno_thread_specific+set}" = set; then
27262 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 cat >conftest.$ac_ext <<_ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest$ac_exeext &&
27297 $as_test_x conftest$ac_exeext; then
27298 ol_cv_errno_thread_specific=yes
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 ol_cv_errno_thread_specific=no
27306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27307 conftest$ac_exeext conftest.$ac_ext
27310 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27311 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27313 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27314 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27315 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27316 echo $ECHO_N "(cached) $ECHO_C" >&6
27319 cat >conftest.$ac_ext <<_ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h. */
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (ac_try="$ac_link"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_link") 2>conftest.er1
27343 grep -v '^ *+' conftest.er1 >conftest.err
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } && {
27348 test -z "$ac_c_werror_flag" ||
27349 test ! -s conftest.err
27350 } && test -s conftest$ac_exeext &&
27351 $as_test_x conftest$ac_exeext; then
27352 ol_cv_h_errno_thread_specific=yes
27354 echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27357 ol_cv_h_errno_thread_specific=no
27360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27361 conftest$ac_exeext conftest.$ac_ext
27364 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27365 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27367 if test $ol_cv_errno_thread_specific != yes ||
27368 test $ol_cv_h_errno_thread_specific != yes ; then
27369 LIBS="$LTHREAD_LIBS $LIBS"
27375 if test $ol_link_threads = no ; then
27376 if test $ol_with_threads = yes ; then
27377 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27378 echo "$as_me: error: no suitable thread support" >&2;}
27379 { (exit 1); exit 1; }; }
27382 if test $ol_with_threads = auto ; then
27383 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27384 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27389 cat >>confdefs.h <<\_ACEOF
27390 #define NO_THREADS 1
27399 if test $ol_link_threads != no ; then
27401 cat >>confdefs.h <<\_ACEOF
27402 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27412 gethostbyname_r gethostbyaddr_r \
27415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27421 cat >conftest.$ac_ext <<_ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h. */
27427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27429 #define $ac_func innocuous_$ac_func
27431 /* System header to define __stub macros and hopefully few prototypes,
27432 which can conflict with char $ac_func (); below.
27433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27434 <limits.h> exists even on freestanding compilers. */
27437 # include <limits.h>
27439 # include <assert.h>
27444 /* Override any GCC internal prototype to avoid an error.
27445 Use char because int might match the return type of a GCC
27446 builtin and then its argument prototype would still apply. */
27451 /* The GNU C library defines this for functions which it implements
27452 to always fail with ENOSYS. Some functions are actually named
27453 something starting with __ and the normal name is an alias. */
27454 #if defined __stub_$ac_func || defined __stub___$ac_func
27461 return $ac_func ();
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_link") 2>conftest.er1
27475 grep -v '^ *+' conftest.er1 >conftest.err
27477 cat conftest.err >&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); } && {
27480 test -z "$ac_c_werror_flag" ||
27481 test ! -s conftest.err
27482 } && test -s conftest$ac_exeext &&
27483 $as_test_x conftest$ac_exeext; then
27484 eval "$as_ac_var=yes"
27486 echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27489 eval "$as_ac_var=no"
27492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27493 conftest$ac_exeext conftest.$ac_ext
27495 ac_res=`eval echo '${'$as_ac_var'}'`
27496 { echo "$as_me:$LINENO: result: $ac_res" >&5
27497 echo "${ECHO_T}$ac_res" >&6; }
27498 if test `eval echo '${'$as_ac_var'}'` = yes; then
27499 cat >>confdefs.h <<_ACEOF
27500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27507 if test "$ac_cv_func_ctime_r" = no ; then
27508 ol_cv_func_ctime_r_nargs=0
27510 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27511 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27512 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27515 cat >conftest.$ac_ext <<_ACEOF
27518 cat confdefs.h >>conftest.$ac_ext
27519 cat >>conftest.$ac_ext <<_ACEOF
27520 /* end confdefs.h. */
27525 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27530 rm -f conftest.$ac_objext
27531 if { (ac_try="$ac_compile"
27532 case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_compile") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest.$ac_objext; then
27547 ol_cv_func_ctime_r_nargs3=yes
27549 echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27552 ol_cv_func_ctime_r_nargs3=no
27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27567 time_t ti; char *buffer; ctime_r(&ti,buffer);
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_compile") 2>conftest.er1
27581 grep -v '^ *+' conftest.er1 >conftest.err
27583 cat conftest.err >&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } && {
27586 test -z "$ac_c_werror_flag" ||
27587 test ! -s conftest.err
27588 } && test -s conftest.$ac_objext; then
27589 ol_cv_func_ctime_r_nargs2=yes
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ol_cv_func_ctime_r_nargs2=no
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27600 test $ol_cv_func_ctime_r_nargs2 = no ; then
27602 ol_cv_func_ctime_r_nargs=3
27604 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27605 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27607 ol_cv_func_ctime_r_nargs=2
27610 ol_cv_func_ctime_r_nargs=0
27614 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27615 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27617 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27619 cat >>confdefs.h <<_ACEOF
27620 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27627 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27628 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27629 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27630 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27633 cat >conftest.$ac_ext <<_ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h. */
27639 #include <sys/types.h>
27640 #include <sys/socket.h>
27641 #include <netinet/in.h>
27643 #define BUFSIZE (sizeof(struct hostent)+10)
27647 struct hostent hent; char buffer[BUFSIZE];
27648 int bufsize=BUFSIZE;int h_errno;
27649 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27650 buffer, bufsize, &h_errno);
27655 rm -f conftest.$ac_objext
27656 if { (ac_try="$ac_compile"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_compile") 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } && {
27669 test -z "$ac_c_werror_flag" ||
27670 test ! -s conftest.err
27671 } && test -s conftest.$ac_objext; then
27672 ol_cv_func_gethostbyname_r_nargs5=yes
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ol_cv_func_gethostbyname_r_nargs5=no
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682 cat >conftest.$ac_ext <<_ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h. */
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27690 #include <netinet/in.h>
27692 #define BUFSIZE (sizeof(struct hostent)+10)
27696 struct hostent hent;struct hostent *rhent;
27697 char buffer[BUFSIZE];
27698 int bufsize=BUFSIZE;int h_errno;
27699 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27705 rm -f conftest.$ac_objext
27706 if { (ac_try="$ac_compile"
27707 case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_compile") 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } && {
27719 test -z "$ac_c_werror_flag" ||
27720 test ! -s conftest.err
27721 } && test -s conftest.$ac_objext; then
27722 ol_cv_func_gethostbyname_r_nargs6=yes
27724 echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27727 ol_cv_func_gethostbyname_r_nargs6=no
27730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27733 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27735 ol_cv_func_gethostbyname_r_nargs=5
27737 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27738 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27740 ol_cv_func_gethostbyname_r_nargs=6
27743 ol_cv_func_gethostbyname_r_nargs=0
27747 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27748 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27749 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27751 cat >>confdefs.h <<_ACEOF
27752 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27758 ol_cv_func_gethostbyname_r_nargs=0
27761 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27762 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27763 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27764 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27767 cat >conftest.$ac_ext <<_ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773 #include <sys/types.h>
27774 #include <sys/socket.h>
27775 #include <netinet/in.h>
27777 #define BUFSIZE (sizeof(struct hostent)+10)
27781 struct hostent hent; char buffer[BUFSIZE];
27782 struct in_addr add;
27783 size_t alen=sizeof(struct in_addr);
27784 int bufsize=BUFSIZE;int h_errno;
27785 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27786 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27791 rm -f conftest.$ac_objext
27792 if { (ac_try="$ac_compile"
27793 case "(($ac_try" in
27794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795 *) ac_try_echo=$ac_try;;
27797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27798 (eval "$ac_compile") 2>conftest.er1
27800 grep -v '^ *+' conftest.er1 >conftest.err
27802 cat conftest.err >&5
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); } && {
27805 test -z "$ac_c_werror_flag" ||
27806 test ! -s conftest.err
27807 } && test -s conftest.$ac_objext; then
27808 ol_cv_func_gethostbyaddr_r_nargs7=yes
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ol_cv_func_gethostbyaddr_r_nargs7=no
27816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27818 cat >conftest.$ac_ext <<_ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27824 #include <sys/types.h>
27825 #include <sys/socket.h>
27826 #include <netinet/in.h>
27828 #define BUFSIZE (sizeof(struct hostent)+10)
27832 struct hostent hent;
27833 struct hostent *rhent; char buffer[BUFSIZE];
27834 struct in_addr add;
27835 size_t alen=sizeof(struct in_addr);
27836 int bufsize=BUFSIZE;int h_errno;
27837 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27838 alen, AF_INET, &hent, buffer, bufsize,
27844 rm -f conftest.$ac_objext
27845 if { (ac_try="$ac_compile"
27846 case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27861 ol_cv_func_gethostbyaddr_r_nargs8=yes
27863 echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27866 ol_cv_func_gethostbyaddr_r_nargs8=no
27869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27871 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27872 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27874 ol_cv_func_gethostbyaddr_r_nargs=7
27876 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27877 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27879 ol_cv_func_gethostbyaddr_r_nargs=8
27882 ol_cv_func_gethostbyaddr_r_nargs=0
27886 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27887 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27888 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27890 cat >>confdefs.h <<_ACEOF
27891 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27897 ol_cv_func_gethostbyaddr_r_nargs=0
27902 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27903 ol_cv_berkeley_db=no
27905 for ac_header in db.h
27907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 ac_res=`eval echo '${'$as_ac_Header'}'`
27915 { echo "$as_me:$LINENO: result: $ac_res" >&5
27916 echo "${ECHO_T}$ac_res" >&6; }
27918 # Is the header compilable?
27919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27927 $ac_includes_default
27928 #include <$ac_header>
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_compile") 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } && {
27944 test -z "$ac_c_werror_flag" ||
27945 test ! -s conftest.err
27946 } && test -s conftest.$ac_objext; then
27947 ac_header_compiler=yes
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27952 ac_header_compiler=no
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27957 echo "${ECHO_T}$ac_header_compiler" >&6; }
27959 # Is the header present?
27960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27962 cat >conftest.$ac_ext <<_ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h. */
27968 #include <$ac_header>
27970 if { (ac_try="$ac_cpp conftest.$ac_ext"
27971 case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } >/dev/null && {
27983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27984 test ! -s conftest.err
27986 ac_header_preproc=yes
27988 echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27991 ac_header_preproc=no
27994 rm -f conftest.err conftest.$ac_ext
27995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27996 echo "${ECHO_T}$ac_header_preproc" >&6; }
27998 # So? What about this header?
27999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28005 ac_header_preproc=yes
28008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28021 ## --------------------------------------------- ##
28022 ## Report this to <http://www.openldap.org/its/> ##
28023 ## --------------------------------------------- ##
28025 ) | sed "s/^/$as_me: WARNING: /" >&2
28028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 eval "$as_ac_Header=\$ac_header_preproc"
28035 ac_res=`eval echo '${'$as_ac_Header'}'`
28036 { echo "$as_me:$LINENO: result: $ac_res" >&5
28037 echo "${ECHO_T}$ac_res" >&6; }
28040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28041 cat >>confdefs.h <<_ACEOF
28042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28049 if test $ac_cv_header_db_h = yes; then
28050 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28051 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28052 if test "${ol_cv_bdb_major+set}" = set; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 cat >conftest.$ac_ext <<_ACEOF
28059 #ifndef DB_VERSION_MAJOR
28060 # define DB_VERSION_MAJOR 1
28062 __db_version DB_VERSION_MAJOR
28065 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28066 ol_cv_bdb_major=${3}
28069 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28070 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28071 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28072 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28073 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28074 { (exit 1); exit 1; }; } ;;
28077 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28078 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28079 if test "${ol_cv_bdb_minor+set}" = set; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
28083 cat >conftest.$ac_ext <<_ACEOF
28086 #ifndef DB_VERSION_MINOR
28087 # define DB_VERSION_MINOR 0
28089 __db_version DB_VERSION_MINOR
28092 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28093 ol_cv_bdb_minor=${3}
28096 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28097 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28098 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28099 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28100 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28101 { (exit 1); exit 1; }; } ;;
28104 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28105 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28106 if test "${ol_cv_bdb_compat+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28119 /* this check could be improved */
28120 #ifndef DB_VERSION_MAJOR
28121 # define DB_VERSION_MAJOR 1
28123 #ifndef DB_VERSION_MINOR
28124 # define DB_VERSION_MINOR 0
28127 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28129 /* require 4.4 or later */
28130 #if DB_VERSION_MM >= 0x0404
28131 __db_version_compat
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28137 ol_cv_bdb_compat=yes
28139 ol_cv_bdb_compat=no
28144 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28145 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28148 if test $ol_cv_bdb_compat != yes ; then
28149 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28150 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28151 { (exit 1); exit 1; }; }
28156 if test $ol_cv_bdb_major = 4 ; then
28157 if test $ol_cv_lib_db = no ; then
28158 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28159 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28160 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28164 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28175 #ifdef HAVE_DB_185_H
28176 # include <db_185.h>
28181 #ifndef DB_VERSION_MAJOR
28182 # define DB_VERSION_MAJOR 1
28186 #define NULL ((void*)0)
28193 #if DB_VERSION_MAJOR > 2
28194 db_env_create( NULL, 0 );
28195 #elif DB_VERSION_MAJOR > 1
28196 db_appexit( NULL );
28198 (void) dbopen( NULL, 0, 0, 0, NULL);
28205 rm -f conftest.$ac_objext conftest$ac_exeext
28206 if { (ac_try="$ac_link"
28207 case "(($ac_try" in
28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209 *) ac_try_echo=$ac_try;;
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_link") 2>conftest.er1
28214 grep -v '^ *+' conftest.er1 >conftest.err
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } && {
28219 test -z "$ac_c_werror_flag" ||
28220 test ! -s conftest.err
28221 } && test -s conftest$ac_exeext &&
28222 $as_test_x conftest$ac_exeext; then
28223 ol_cv_db_db_4_dot_m=yes
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28228 ol_cv_db_db_4_dot_m=no
28231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28232 conftest$ac_exeext conftest.$ac_ext
28237 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28238 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28240 if test $ol_cv_db_db_4_dot_m = yes ; then
28241 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28245 if test $ol_cv_lib_db = no ; then
28246 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28247 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28248 if test "${ol_cv_db_db4m+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28254 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28256 cat >conftest.$ac_ext <<_ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28263 #ifdef HAVE_DB_185_H
28264 # include <db_185.h>
28269 #ifndef DB_VERSION_MAJOR
28270 # define DB_VERSION_MAJOR 1
28274 #define NULL ((void*)0)
28281 #if DB_VERSION_MAJOR > 2
28282 db_env_create( NULL, 0 );
28283 #elif DB_VERSION_MAJOR > 1
28284 db_appexit( NULL );
28286 (void) dbopen( NULL, 0, 0, 0, NULL);
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (ac_try="$ac_link"
28295 case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_link") 2>conftest.er1
28302 grep -v '^ *+' conftest.er1 >conftest.err
28304 cat conftest.err >&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } && {
28307 test -z "$ac_c_werror_flag" ||
28308 test ! -s conftest.err
28309 } && test -s conftest$ac_exeext &&
28310 $as_test_x conftest$ac_exeext; then
28313 echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28320 conftest$ac_exeext conftest.$ac_ext
28325 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28326 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28328 if test $ol_cv_db_db4m = yes ; then
28329 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28333 if test $ol_cv_lib_db = no ; then
28334 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28336 if test "${ol_cv_db_db_4m+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28342 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28351 #ifdef HAVE_DB_185_H
28352 # include <db_185.h>
28357 #ifndef DB_VERSION_MAJOR
28358 # define DB_VERSION_MAJOR 1
28362 #define NULL ((void*)0)
28369 #if DB_VERSION_MAJOR > 2
28370 db_env_create( NULL, 0 );
28371 #elif DB_VERSION_MAJOR > 1
28372 db_appexit( NULL );
28374 (void) dbopen( NULL, 0, 0, 0, NULL);
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_link") 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } && {
28395 test -z "$ac_c_werror_flag" ||
28396 test ! -s conftest.err
28397 } && test -s conftest$ac_exeext &&
28398 $as_test_x conftest$ac_exeext; then
28401 echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28408 conftest$ac_exeext conftest.$ac_ext
28413 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28414 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28416 if test $ol_cv_db_db_4m = yes ; then
28417 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28421 if test $ol_cv_lib_db = no ; then
28422 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28423 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28424 if test "${ol_cv_db_db_4_m+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28428 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28432 cat >conftest.$ac_ext <<_ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28439 #ifdef HAVE_DB_185_H
28440 # include <db_185.h>
28445 #ifndef DB_VERSION_MAJOR
28446 # define DB_VERSION_MAJOR 1
28450 #define NULL ((void*)0)
28457 #if DB_VERSION_MAJOR > 2
28458 db_env_create( NULL, 0 );
28459 #elif DB_VERSION_MAJOR > 1
28460 db_appexit( NULL );
28462 (void) dbopen( NULL, 0, 0, 0, NULL);
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (ac_try="$ac_link"
28471 case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_link") 2>conftest.er1
28478 grep -v '^ *+' conftest.er1 >conftest.err
28480 cat conftest.err >&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } && {
28483 test -z "$ac_c_werror_flag" ||
28484 test ! -s conftest.err
28485 } && test -s conftest$ac_exeext &&
28486 $as_test_x conftest$ac_exeext; then
28487 ol_cv_db_db_4_m=yes
28489 echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28496 conftest$ac_exeext conftest.$ac_ext
28501 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28502 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28504 if test $ol_cv_db_db_4_m = yes ; then
28505 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28509 if test $ol_cv_lib_db = no ; then
28510 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28511 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28512 if test "${ol_cv_db_db_4+set}" = set; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28527 #ifdef HAVE_DB_185_H
28528 # include <db_185.h>
28533 #ifndef DB_VERSION_MAJOR
28534 # define DB_VERSION_MAJOR 1
28538 #define NULL ((void*)0)
28545 #if DB_VERSION_MAJOR > 2
28546 db_env_create( NULL, 0 );
28547 #elif DB_VERSION_MAJOR > 1
28548 db_appexit( NULL );
28550 (void) dbopen( NULL, 0, 0, 0, NULL);
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (ac_try="$ac_link"
28559 case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_link") 2>conftest.er1
28566 grep -v '^ *+' conftest.er1 >conftest.err
28568 cat conftest.err >&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } && {
28571 test -z "$ac_c_werror_flag" ||
28572 test ! -s conftest.err
28573 } && test -s conftest$ac_exeext &&
28574 $as_test_x conftest$ac_exeext; then
28577 echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28584 conftest$ac_exeext conftest.$ac_ext
28589 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28590 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28592 if test $ol_cv_db_db_4 = yes ; then
28593 ol_cv_lib_db=-ldb-4
28597 if test $ol_cv_lib_db = no ; then
28598 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28599 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28600 if test "${ol_cv_db_db4+set}" = set; then
28601 echo $ECHO_N "(cached) $ECHO_C" >&6
28606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28608 cat >conftest.$ac_ext <<_ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h. */
28615 #ifdef HAVE_DB_185_H
28616 # include <db_185.h>
28621 #ifndef DB_VERSION_MAJOR
28622 # define DB_VERSION_MAJOR 1
28626 #define NULL ((void*)0)
28633 #if DB_VERSION_MAJOR > 2
28634 db_env_create( NULL, 0 );
28635 #elif DB_VERSION_MAJOR > 1
28636 db_appexit( NULL );
28638 (void) dbopen( NULL, 0, 0, 0, NULL);
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (ac_try="$ac_link"
28647 case "(($ac_try" in
28648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649 *) ac_try_echo=$ac_try;;
28651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28652 (eval "$ac_link") 2>conftest.er1
28654 grep -v '^ *+' conftest.er1 >conftest.err
28656 cat conftest.err >&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } && {
28659 test -z "$ac_c_werror_flag" ||
28660 test ! -s conftest.err
28661 } && test -s conftest$ac_exeext &&
28662 $as_test_x conftest$ac_exeext; then
28665 echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28672 conftest$ac_exeext conftest.$ac_ext
28677 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28678 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28680 if test $ol_cv_db_db4 = yes ; then
28685 if test $ol_cv_lib_db = no ; then
28686 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28687 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28688 if test "${ol_cv_db_db+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28703 #ifdef HAVE_DB_185_H
28704 # include <db_185.h>
28709 #ifndef DB_VERSION_MAJOR
28710 # define DB_VERSION_MAJOR 1
28714 #define NULL ((void*)0)
28721 #if DB_VERSION_MAJOR > 2
28722 db_env_create( NULL, 0 );
28723 #elif DB_VERSION_MAJOR > 1
28724 db_appexit( NULL );
28726 (void) dbopen( NULL, 0, 0, 0, NULL);
28733 rm -f conftest.$ac_objext conftest$ac_exeext
28734 if { (ac_try="$ac_link"
28735 case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_link") 2>conftest.er1
28742 grep -v '^ *+' conftest.er1 >conftest.err
28744 cat conftest.err >&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && {
28747 test -z "$ac_c_werror_flag" ||
28748 test ! -s conftest.err
28749 } && test -s conftest$ac_exeext &&
28750 $as_test_x conftest$ac_exeext; then
28753 echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28760 conftest$ac_exeext conftest.$ac_ext
28765 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28766 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28768 if test $ol_cv_db_db = yes ; then
28774 if test $ol_cv_lib_db = no ; then
28775 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28776 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28777 if test "${ol_cv_db_none+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28785 cat >conftest.$ac_ext <<_ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28792 #ifdef HAVE_DB_185_H
28793 # include <db_185.h>
28798 #ifndef DB_VERSION_MAJOR
28799 # define DB_VERSION_MAJOR 1
28803 #define NULL ((void*)0)
28810 #if DB_VERSION_MAJOR > 2
28811 db_env_create( NULL, 0 );
28812 #elif DB_VERSION_MAJOR > 1
28813 db_appexit( NULL );
28815 (void) dbopen( NULL, 0, 0, 0, NULL);
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (ac_try="$ac_link"
28824 case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_link") 2>conftest.er1
28831 grep -v '^ *+' conftest.er1 >conftest.err
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } && {
28836 test -z "$ac_c_werror_flag" ||
28837 test ! -s conftest.err
28838 } && test -s conftest$ac_exeext &&
28839 $as_test_x conftest$ac_exeext; then
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28849 conftest$ac_exeext conftest.$ac_ext
28854 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28855 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28857 if test $ol_cv_db_none = yes ; then
28863 if test "$ol_cv_lib_db" != no ; then
28864 ol_cv_berkeley_db=yes
28865 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28866 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28867 if test "${ol_cv_berkeley_db_version+set}" = set; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 LIBS="$LTHREAD_LIBS $LIBS"
28873 if test $ol_cv_lib_db != yes ; then
28874 LIBS="$ol_cv_lib_db $LIBS"
28877 if test "$cross_compiling" = yes; then
28878 ol_cv_berkeley_db_version=cross
28880 cat >conftest.$ac_ext <<_ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28887 #ifdef HAVE_DB_185_H
28892 #ifndef DB_VERSION_MAJOR
28893 # define DB_VERSION_MAJOR 1
28896 #define NULL ((void *)0)
28900 #if DB_VERSION_MAJOR > 1
28902 int major, minor, patch;
28904 version = db_version( &major, &minor, &patch );
28906 if( major != DB_VERSION_MAJOR ||
28907 minor != DB_VERSION_MINOR ||
28908 patch != DB_VERSION_PATCH )
28910 printf("Berkeley DB version mismatch\n"
28911 "\theader: %s\n\tlibrary: %s\n",
28912 DB_VERSION_STRING, version);
28920 rm -f conftest$ac_exeext
28921 if { (ac_try="$ac_link"
28922 case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_link") 2>&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28931 { (case "(($ac_try" in
28932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28933 *) ac_try_echo=$ac_try;;
28935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28936 (eval "$ac_try") 2>&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; }; then
28940 ol_cv_berkeley_db_version=yes
28942 echo "$as_me: program exited with status $ac_status" >&5
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28946 ( exit $ac_status )
28947 ol_cv_berkeley_db_version=no
28949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28957 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28958 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28960 if test $ol_cv_berkeley_db_version = no ; then
28961 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28962 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28963 { (exit 1); exit 1; }; }
28966 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28967 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28968 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28969 echo $ECHO_N "(cached) $ECHO_C" >&6
28973 LIBS="$LTHREAD_LIBS $LIBS"
28974 if test $ol_cv_lib_db != yes ; then
28975 LIBS="$ol_cv_lib_db $LIBS"
28978 if test "$cross_compiling" = yes; then
28979 ol_cv_berkeley_db_thread=cross
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28988 #ifdef HAVE_DB_185_H
28994 #define NULL ((void *)0)
28999 u_int32_t flags = DB_CREATE |
29005 #if DB_VERSION_MAJOR > 2
29006 DB_ENV *env = NULL;
29008 rc = db_env_create( &env, 0 );
29010 flags |= DB_INIT_MPOOL;
29011 #ifdef DB_MPOOL_PRIVATE
29012 flags |= DB_MPOOL_PRIVATE;
29016 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29020 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29021 rc = (env->open)( env, NULL, flags, 0 );
29023 rc = (env->open)( env, NULL, NULL, flags, 0 );
29027 rc = env->close( env, 0 );
29031 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29037 memset( &env, '\0', sizeof(env) );
29039 rc = db_appinit( NULL, NULL, &env, flags );
29042 db_appexit( &env );
29045 unlink("__db_mpool.share");
29046 unlink("__db_lock.share");
29052 rm -f conftest$ac_exeext
29053 if { (ac_try="$ac_link"
29054 case "(($ac_try" in
29055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056 *) ac_try_echo=$ac_try;;
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059 (eval "$ac_link") 2>&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29063 { (case "(($ac_try" in
29064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; }; then
29072 ol_cv_berkeley_db_thread=yes
29074 echo "$as_me: program exited with status $ac_status" >&5
29075 echo "$as_me: failed program was:" >&5
29076 sed 's/^/| /' conftest.$ac_ext >&5
29078 ( exit $ac_status )
29079 ol_cv_berkeley_db_thread=no
29081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29089 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29090 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29092 if test $ol_cv_berkeley_db_thread != no ; then
29094 cat >>confdefs.h <<\_ACEOF
29095 #define HAVE_BERKELEY_DB_THREAD 1
29104 if test $ol_cv_berkeley_db = no ; then
29105 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29106 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29107 { (exit 1); exit 1; }; }
29111 cat >>confdefs.h <<\_ACEOF
29112 #define HAVE_BERKELEY_DB 1
29116 if test $ol_cv_lib_db != yes ; then
29117 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29120 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29126 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29127 BUILD_LIBS_DYNAMIC=shared
29129 cat >>confdefs.h <<\_ACEOF
29130 #define LDAP_LIBS_DYNAMIC 1
29135 BUILD_LIBS_DYNAMIC=static
29139 if test $ol_enable_wrappers != no ; then
29141 for ac_header in tcpd.h
29143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 ac_res=`eval echo '${'$as_ac_Header'}'`
29151 { echo "$as_me:$LINENO: result: $ac_res" >&5
29152 echo "${ECHO_T}$ac_res" >&6; }
29154 # Is the header compilable?
29155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29157 cat >conftest.$ac_ext <<_ACEOF
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h. */
29163 $ac_includes_default
29164 #include <$ac_header>
29166 rm -f conftest.$ac_objext
29167 if { (ac_try="$ac_compile"
29168 case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_compile") 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } && {
29180 test -z "$ac_c_werror_flag" ||
29181 test ! -s conftest.err
29182 } && test -s conftest.$ac_objext; then
29183 ac_header_compiler=yes
29185 echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29188 ac_header_compiler=no
29191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29193 echo "${ECHO_T}$ac_header_compiler" >&6; }
29195 # Is the header present?
29196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29198 cat >conftest.$ac_ext <<_ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h. */
29204 #include <$ac_header>
29206 if { (ac_try="$ac_cpp conftest.$ac_ext"
29207 case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29214 grep -v '^ *+' conftest.er1 >conftest.err
29216 cat conftest.err >&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); } >/dev/null && {
29219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29220 test ! -s conftest.err
29222 ac_header_preproc=yes
29224 echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29227 ac_header_preproc=no
29230 rm -f conftest.err conftest.$ac_ext
29231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29232 echo "${ECHO_T}$ac_header_preproc" >&6; }
29234 # So? What about this header?
29235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29241 ac_header_preproc=yes
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29257 ## --------------------------------------------- ##
29258 ## Report this to <http://www.openldap.org/its/> ##
29259 ## --------------------------------------------- ##
29261 ) | sed "s/^/$as_me: WARNING: /" >&2
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 eval "$as_ac_Header=\$ac_header_preproc"
29271 ac_res=`eval echo '${'$as_ac_Header'}'`
29272 { echo "$as_me:$LINENO: result: $ac_res" >&5
29273 echo "${ECHO_T}$ac_res" >&6; }
29276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29277 cat >>confdefs.h <<_ACEOF
29278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29281 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29282 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29284 LIBS="$LIBS -lwrap"
29285 cat >conftest.$ac_ext <<_ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h. */
29293 int allow_severity = 0;
29294 int deny_severity = 0;
29296 struct request_info *req;
29308 rm -f conftest.$ac_objext conftest$ac_exeext
29309 if { (ac_try="$ac_link"
29310 case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_link") 2>conftest.er1
29317 grep -v '^ *+' conftest.er1 >conftest.err
29319 cat conftest.err >&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } && {
29322 test -z "$ac_c_werror_flag" ||
29323 test ! -s conftest.err
29324 } && test -s conftest$ac_exeext &&
29325 $as_test_x conftest$ac_exeext; then
29326 { echo "$as_me:$LINENO: result: -lwrap" >&5
29327 echo "${ECHO_T}-lwrap" >&6; }
29331 echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29336 cat >conftest.$ac_ext <<_ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h. */
29344 int allow_severity = 0;
29345 int deny_severity = 0;
29347 struct request_info *req;
29359 rm -f conftest.$ac_objext conftest$ac_exeext
29360 if { (ac_try="$ac_link"
29361 case "(($ac_try" in
29362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363 *) ac_try_echo=$ac_try;;
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366 (eval "$ac_link") 2>conftest.er1
29368 grep -v '^ *+' conftest.er1 >conftest.err
29370 cat conftest.err >&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } && {
29373 test -z "$ac_c_werror_flag" ||
29374 test ! -s conftest.err
29375 } && test -s conftest$ac_exeext &&
29376 $as_test_x conftest$ac_exeext; then
29377 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29378 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29380 LIBS="$save_LIBS -lnsl"
29382 echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29386 { echo "$as_me:$LINENO: result: no" >&5
29387 echo "${ECHO_T}no" >&6; }
29392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29393 conftest$ac_exeext conftest.$ac_ext
29396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29397 conftest$ac_exeext conftest.$ac_ext
29405 if test $have_wrappers = yes ; then
29407 cat >>confdefs.h <<\_ACEOF
29408 #define HAVE_TCPD 1
29412 elif test $ol_enable_wrappers = yes ; then
29413 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29414 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29415 { (exit 1); exit 1; }; }
29417 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29418 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29423 if test $ol_enable_syslog != no ; then
29424 { echo "$as_me:$LINENO: checking for openlog" >&5
29425 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29426 if test "${ac_cv_func_openlog+set}" = set; then
29427 echo $ECHO_N "(cached) $ECHO_C" >&6
29429 cat >conftest.$ac_ext <<_ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h. */
29435 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29437 #define openlog innocuous_openlog
29439 /* System header to define __stub macros and hopefully few prototypes,
29440 which can conflict with char openlog (); below.
29441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29442 <limits.h> exists even on freestanding compilers. */
29445 # include <limits.h>
29447 # include <assert.h>
29452 /* Override any GCC internal prototype to avoid an error.
29453 Use char because int might match the return type of a GCC
29454 builtin and then its argument prototype would still apply. */
29459 /* The GNU C library defines this for functions which it implements
29460 to always fail with ENOSYS. Some functions are actually named
29461 something starting with __ and the normal name is an alias. */
29462 #if defined __stub_openlog || defined __stub___openlog
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (ac_try="$ac_link"
29476 case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_link") 2>conftest.er1
29483 grep -v '^ *+' conftest.er1 >conftest.err
29485 cat conftest.err >&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest$ac_exeext &&
29491 $as_test_x conftest$ac_exeext; then
29492 ac_cv_func_openlog=yes
29494 echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29497 ac_cv_func_openlog=no
29500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29501 conftest$ac_exeext conftest.$ac_ext
29503 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29504 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29506 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29507 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29508 echo "$as_me: error: could not find syslog" >&2;}
29509 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29511 ol_enable_syslog=$ac_cv_func_openlog
29515 if test $ol_enable_sql != no ; then
29518 for ac_header in sql.h sqlext.h
29520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 ac_res=`eval echo '${'$as_ac_Header'}'`
29528 { echo "$as_me:$LINENO: result: $ac_res" >&5
29529 echo "${ECHO_T}$ac_res" >&6; }
29531 # Is the header compilable?
29532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29534 cat >conftest.$ac_ext <<_ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h. */
29540 $ac_includes_default
29541 #include <$ac_header>
29543 rm -f conftest.$ac_objext
29544 if { (ac_try="$ac_compile"
29545 case "(($ac_try" in
29546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547 *) ac_try_echo=$ac_try;;
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550 (eval "$ac_compile") 2>conftest.er1
29552 grep -v '^ *+' conftest.er1 >conftest.err
29554 cat conftest.err >&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } && {
29557 test -z "$ac_c_werror_flag" ||
29558 test ! -s conftest.err
29559 } && test -s conftest.$ac_objext; then
29560 ac_header_compiler=yes
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 ac_header_compiler=no
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29570 echo "${ECHO_T}$ac_header_compiler" >&6; }
29572 # Is the header present?
29573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29575 cat >conftest.$ac_ext <<_ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <$ac_header>
29583 if { (ac_try="$ac_cpp conftest.$ac_ext"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } >/dev/null && {
29596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29597 test ! -s conftest.err
29599 ac_header_preproc=yes
29601 echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29604 ac_header_preproc=no
29607 rm -f conftest.err conftest.$ac_ext
29608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29609 echo "${ECHO_T}$ac_header_preproc" >&6; }
29611 # So? What about this header?
29612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29618 ac_header_preproc=yes
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29634 ## --------------------------------------------- ##
29635 ## Report this to <http://www.openldap.org/its/> ##
29636 ## --------------------------------------------- ##
29638 ) | sed "s/^/$as_me: WARNING: /" >&2
29641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29646 eval "$as_ac_Header=\$ac_header_preproc"
29648 ac_res=`eval echo '${'$as_ac_Header'}'`
29649 { echo "$as_me:$LINENO: result: $ac_res" >&5
29650 echo "${ECHO_T}$ac_res" >&6; }
29653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29654 cat >>confdefs.h <<_ACEOF
29655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29660 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29661 echo "$as_me: error: could not locate SQL headers" >&2;}
29662 { (exit 1); exit 1; }; }
29670 LIBS="$LTHREAD_LIBS"
29672 if test $ol_with_odbc = auto ; then
29673 ol_with_odbc="iodbc unixodbc odbc32"
29676 for odbc in $ol_with_odbc ; do
29677 if test $ol_link_sql = no ; then
29680 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29681 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29682 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29685 ac_check_lib_save_LIBS=$LIBS
29686 LIBS="-liodbc $LIBS"
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29694 /* Override any GCC internal prototype to avoid an error.
29695 Use char because int might match the return type of a GCC
29696 builtin and then its argument prototype would still apply. */
29700 char SQLDriverConnect ();
29704 return SQLDriverConnect ();
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_link") 2>conftest.er1
29718 grep -v '^ *+' conftest.er1 >conftest.err
29720 cat conftest.err >&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } && {
29723 test -z "$ac_c_werror_flag" ||
29724 test ! -s conftest.err
29725 } && test -s conftest$ac_exeext &&
29726 $as_test_x conftest$ac_exeext; then
29727 ac_cv_lib_iodbc_SQLDriverConnect=yes
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ac_cv_lib_iodbc_SQLDriverConnect=no
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736 conftest$ac_exeext conftest.$ac_ext
29737 LIBS=$ac_check_lib_save_LIBS
29739 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29740 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29741 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29747 if test $have_iodbc = yes ; then
29748 ol_link_sql="-liodbc"
29753 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29754 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29755 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29756 echo $ECHO_N "(cached) $ECHO_C" >&6
29758 ac_check_lib_save_LIBS=$LIBS
29759 LIBS="-lodbc $LIBS"
29760 cat >conftest.$ac_ext <<_ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h. */
29767 /* Override any GCC internal prototype to avoid an error.
29768 Use char because int might match the return type of a GCC
29769 builtin and then its argument prototype would still apply. */
29773 char SQLDriverConnect ();
29777 return SQLDriverConnect ();
29782 rm -f conftest.$ac_objext conftest$ac_exeext
29783 if { (ac_try="$ac_link"
29784 case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_link") 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } && {
29796 test -z "$ac_c_werror_flag" ||
29797 test ! -s conftest.err
29798 } && test -s conftest$ac_exeext &&
29799 $as_test_x conftest$ac_exeext; then
29800 ac_cv_lib_odbc_SQLDriverConnect=yes
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_cv_lib_odbc_SQLDriverConnect=no
29808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29809 conftest$ac_exeext conftest.$ac_ext
29810 LIBS=$ac_check_lib_save_LIBS
29812 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29813 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29814 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29820 if test $have_odbc = yes ; then
29821 ol_link_sql="-lodbc"
29826 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29827 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29828 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29829 echo $ECHO_N "(cached) $ECHO_C" >&6
29831 ac_check_lib_save_LIBS=$LIBS
29832 LIBS="-lodbc32 $LIBS"
29833 cat >conftest.$ac_ext <<_ACEOF
29836 cat confdefs.h >>conftest.$ac_ext
29837 cat >>conftest.$ac_ext <<_ACEOF
29838 /* end confdefs.h. */
29840 /* Override any GCC internal prototype to avoid an error.
29841 Use char because int might match the return type of a GCC
29842 builtin and then its argument prototype would still apply. */
29846 char SQLDriverConnect ();
29850 return SQLDriverConnect ();
29855 rm -f conftest.$ac_objext conftest$ac_exeext
29856 if { (ac_try="$ac_link"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_link") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } && {
29869 test -z "$ac_c_werror_flag" ||
29870 test ! -s conftest.err
29871 } && test -s conftest$ac_exeext &&
29872 $as_test_x conftest$ac_exeext; then
29873 ac_cv_lib_odbc32_SQLDriverConnect=yes
29875 echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29878 ac_cv_lib_odbc32_SQLDriverConnect=no
29881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29882 conftest$ac_exeext conftest.$ac_ext
29883 LIBS=$ac_check_lib_save_LIBS
29885 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29886 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29887 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29893 if test $have_odbc32 = yes ; then
29894 ol_link_sql="-lodbc32"
29899 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29900 echo "$as_me: error: unknown ODBC library" >&2;}
29901 { (exit 1); exit 1; }; }
29909 if test $ol_link_sql != no ; then
29910 SLAPD_SQL_LIBS="$ol_link_sql"
29912 elif test $ol_enable_sql != auto ; then
29913 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29914 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29915 { (exit 1); exit 1; }; }
29920 if test $ol_enable_ndb != no ; then
29921 # Extract the first word of "mysql_config", so it can be a program name with args.
29922 set dummy mysql_config; ac_word=$2
29923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29925 if test "${ac_cv_prog_MYSQL+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 if test -n "$MYSQL"; then
29929 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29932 for as_dir in $PATH
29935 test -z "$as_dir" && as_dir=.
29936 for ac_exec_ext in '' $ac_executable_extensions; do
29937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29938 ac_cv_prog_MYSQL="yes"
29939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29948 MYSQL=$ac_cv_prog_MYSQL
29949 if test -n "$MYSQL"; then
29950 { echo "$as_me:$LINENO: result: $MYSQL" >&5
29951 echo "${ECHO_T}$MYSQL" >&6; }
29953 { echo "$as_me:$LINENO: result: no" >&5
29954 echo "${ECHO_T}no" >&6; }
29958 if test "$MYSQL" != yes ; then
29959 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29960 echo "$as_me: error: could not locate mysql_config" >&2;}
29961 { (exit 1); exit 1; }; }
29964 SQL_INC=`mysql_config --include`
29965 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29967 save_CPPFLAGS="$CPPFLAGS"
29968 CPPFLAGS="$SLAPD_NDB_INCS"
29969 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29970 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29971 cat >conftest.$ac_ext <<_ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h. */
29977 #include <NdbApi.hpp>
29979 if { (ac_try="$ac_cpp conftest.$ac_ext"
29980 case "(($ac_try" in
29981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982 *) ac_try_echo=$ac_try;;
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29987 grep -v '^ *+' conftest.er1 >conftest.err
29989 cat conftest.err >&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); } >/dev/null && {
29992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29993 test ! -s conftest.err
29995 { echo "$as_me:$LINENO: result: yes" >&5
29996 echo "${ECHO_T}yes" >&6; }
29998 echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30001 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30002 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30003 { (exit 1); exit 1; }; }
30007 rm -f conftest.err conftest.$ac_ext
30008 CPPFLAGS="$save_CPPFLAGS"
30010 SQL_LIB=`mysql_config --libs_r`
30011 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30013 save_LDFLAGS="$LDFLAGS"
30016 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30017 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30018 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30021 ac_check_lib_save_LIBS=$LIBS
30022 LIBS="-lndbclient -lstdc++ $LIBS"
30023 cat >conftest.$ac_ext <<_ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h. */
30030 /* Override any GCC internal prototype to avoid an error.
30031 Use char because int might match the return type of a GCC
30032 builtin and then its argument prototype would still apply. */
30040 return ndb_init ();
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_link") 2>conftest.er1
30054 grep -v '^ *+' conftest.er1 >conftest.err
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } && {
30059 test -z "$ac_c_werror_flag" ||
30060 test ! -s conftest.err
30061 } && test -s conftest$ac_exeext &&
30062 $as_test_x conftest$ac_exeext; then
30063 ac_cv_lib_ndbclient_ndb_init=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ac_cv_lib_ndbclient_ndb_init=no
30071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30072 conftest$ac_exeext conftest.$ac_ext
30073 LIBS=$ac_check_lib_save_LIBS
30075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30076 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30077 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30081 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30082 echo "$as_me: error: could not locate ndbclient library" >&2;}
30083 { (exit 1); exit 1; }; }
30088 LDFLAGS="$save_LDFLAGS"
30090 if test "$ol_enable_ndb" = yes ; then
30091 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30097 for ac_header in unicode/utypes.h
30099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 ac_res=`eval echo '${'$as_ac_Header'}'`
30107 { echo "$as_me:$LINENO: result: $ac_res" >&5
30108 echo "${ECHO_T}$ac_res" >&6; }
30110 # Is the header compilable?
30111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 $ac_includes_default
30120 #include <$ac_header>
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_compile") 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } && {
30136 test -z "$ac_c_werror_flag" ||
30137 test ! -s conftest.err
30138 } && test -s conftest.$ac_objext; then
30139 ac_header_compiler=yes
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 ac_header_compiler=no
30147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30149 echo "${ECHO_T}$ac_header_compiler" >&6; }
30151 # Is the header present?
30152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30154 cat >conftest.$ac_ext <<_ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h. */
30160 #include <$ac_header>
30162 if { (ac_try="$ac_cpp conftest.$ac_ext"
30163 case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30170 grep -v '^ *+' conftest.er1 >conftest.err
30172 cat conftest.err >&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } >/dev/null && {
30175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30176 test ! -s conftest.err
30178 ac_header_preproc=yes
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183 ac_header_preproc=no
30186 rm -f conftest.err conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30188 echo "${ECHO_T}$ac_header_preproc" >&6; }
30190 # So? What about this header?
30191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30197 ac_header_preproc=yes
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30213 ## --------------------------------------------- ##
30214 ## Report this to <http://www.openldap.org/its/> ##
30215 ## --------------------------------------------- ##
30217 ) | sed "s/^/$as_me: WARNING: /" >&2
30220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 eval "$as_ac_Header=\$ac_header_preproc"
30227 ac_res=`eval echo '${'$as_ac_Header'}'`
30228 { echo "$as_me:$LINENO: result: $ac_res" >&5
30229 echo "${ECHO_T}$ac_res" >&6; }
30232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30233 cat >>confdefs.h <<_ACEOF
30234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30241 if test $ac_cv_header_unicode_utypes_h = yes ; then
30242 OL_ICULIBS="-licuuc -licudata"
30244 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30245 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30246 if test "${ol_cv_lib_icu+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 LIBS="$OL_ICULIBS $LIBS"
30252 cat >conftest.$ac_ext <<_ACEOF
30255 cat confdefs.h >>conftest.$ac_ext
30256 cat >>conftest.$ac_ext <<_ACEOF
30257 /* end confdefs.h. */
30259 #include <unicode/utypes.h>
30265 (void) u_errorName(0);
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_link") 2>conftest.er1
30280 grep -v '^ *+' conftest.er1 >conftest.err
30282 cat conftest.err >&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } && {
30285 test -z "$ac_c_werror_flag" ||
30286 test ! -s conftest.err
30287 } && test -s conftest$ac_exeext &&
30288 $as_test_x conftest$ac_exeext; then
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30298 conftest$ac_exeext conftest.$ac_ext
30302 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30303 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30305 if test $ol_cv_lib_icu != no ; then
30306 ol_icu="$OL_ICULIBS"
30308 cat >>confdefs.h <<\_ACEOF
30315 if test "$ol_icu" = no ; then
30316 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30317 echo "$as_me: WARNING: ICU not available" >&2;}
30324 if test $ol_with_cyrus_sasl != no ; then
30327 for ac_header in sasl/sasl.h sasl.h
30329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30334 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30340 # Is the header compilable?
30341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30343 cat >conftest.$ac_ext <<_ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h. */
30349 $ac_includes_default
30350 #include <$ac_header>
30352 rm -f conftest.$ac_objext
30353 if { (ac_try="$ac_compile"
30354 case "(($ac_try" in
30355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356 *) ac_try_echo=$ac_try;;
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359 (eval "$ac_compile") 2>conftest.er1
30361 grep -v '^ *+' conftest.er1 >conftest.err
30363 cat conftest.err >&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); } && {
30366 test -z "$ac_c_werror_flag" ||
30367 test ! -s conftest.err
30368 } && test -s conftest.$ac_objext; then
30369 ac_header_compiler=yes
30371 echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30374 ac_header_compiler=no
30377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30379 echo "${ECHO_T}$ac_header_compiler" >&6; }
30381 # Is the header present?
30382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30384 cat >conftest.$ac_ext <<_ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h. */
30390 #include <$ac_header>
30392 if { (ac_try="$ac_cpp conftest.$ac_ext"
30393 case "(($ac_try" in
30394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30400 grep -v '^ *+' conftest.er1 >conftest.err
30402 cat conftest.err >&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); } >/dev/null && {
30405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30406 test ! -s conftest.err
30408 ac_header_preproc=yes
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413 ac_header_preproc=no
30416 rm -f conftest.err conftest.$ac_ext
30417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30418 echo "${ECHO_T}$ac_header_preproc" >&6; }
30420 # So? What about this header?
30421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30427 ac_header_preproc=yes
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30443 ## --------------------------------------------- ##
30444 ## Report this to <http://www.openldap.org/its/> ##
30445 ## --------------------------------------------- ##
30447 ) | sed "s/^/$as_me: WARNING: /" >&2
30450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30455 eval "$as_ac_Header=\$ac_header_preproc"
30457 ac_res=`eval echo '${'$as_ac_Header'}'`
30458 { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30463 cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30472 if test $ac_cv_header_sasl_sasl_h = yes ||
30473 test $ac_cv_header_sasl_h = yes; then
30474 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30475 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30476 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30477 echo $ECHO_N "(cached) $ECHO_C" >&6
30479 ac_check_lib_save_LIBS=$LIBS
30480 LIBS="-lsasl2 $LIBS"
30481 cat >conftest.$ac_ext <<_ACEOF
30484 cat confdefs.h >>conftest.$ac_ext
30485 cat >>conftest.$ac_ext <<_ACEOF
30486 /* end confdefs.h. */
30488 /* Override any GCC internal prototype to avoid an error.
30489 Use char because int might match the return type of a GCC
30490 builtin and then its argument prototype would still apply. */
30494 char sasl_client_init ();
30498 return sasl_client_init ();
30503 rm -f conftest.$ac_objext conftest$ac_exeext
30504 if { (ac_try="$ac_link"
30505 case "(($ac_try" in
30506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30507 *) ac_try_echo=$ac_try;;
30509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30510 (eval "$ac_link") 2>conftest.er1
30512 grep -v '^ *+' conftest.er1 >conftest.err
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } && {
30517 test -z "$ac_c_werror_flag" ||
30518 test ! -s conftest.err
30519 } && test -s conftest$ac_exeext &&
30520 $as_test_x conftest$ac_exeext; then
30521 ac_cv_lib_sasl2_sasl_client_init=yes
30523 echo "$as_me: failed program was:" >&5
30524 sed 's/^/| /' conftest.$ac_ext >&5
30526 ac_cv_lib_sasl2_sasl_client_init=no
30529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30530 conftest$ac_exeext conftest.$ac_ext
30531 LIBS=$ac_check_lib_save_LIBS
30533 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30534 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30535 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30536 ol_link_sasl="-lsasl2"
30538 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30539 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30540 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30541 echo $ECHO_N "(cached) $ECHO_C" >&6
30543 ac_check_lib_save_LIBS=$LIBS
30544 LIBS="-lsasl $LIBS"
30545 cat >conftest.$ac_ext <<_ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h. */
30552 /* Override any GCC internal prototype to avoid an error.
30553 Use char because int might match the return type of a GCC
30554 builtin and then its argument prototype would still apply. */
30558 char sasl_client_init ();
30562 return sasl_client_init ();
30567 rm -f conftest.$ac_objext conftest$ac_exeext
30568 if { (ac_try="$ac_link"
30569 case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_link") 2>conftest.er1
30576 grep -v '^ *+' conftest.er1 >conftest.err
30578 cat conftest.err >&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } && {
30581 test -z "$ac_c_werror_flag" ||
30582 test ! -s conftest.err
30583 } && test -s conftest$ac_exeext &&
30584 $as_test_x conftest$ac_exeext; then
30585 ac_cv_lib_sasl_sasl_client_init=yes
30587 echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30590 ac_cv_lib_sasl_sasl_client_init=no
30593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30594 conftest$ac_exeext conftest.$ac_ext
30595 LIBS=$ac_check_lib_save_LIBS
30597 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30598 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30599 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30600 ol_link_sasl="-lsasl"
30607 if test $ol_link_sasl = no ; then
30608 if test $ol_with_cyrus_sasl != auto ; then
30609 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30610 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30611 { (exit 1); exit 1; }; }
30613 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30614 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30615 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30616 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30617 if test $ol_link_tls = no ; then
30618 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30619 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30623 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30624 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30625 if test "${ol_cv_sasl_compat+set}" = set; then
30626 echo $ECHO_N "(cached) $ECHO_C" >&6
30629 cat >conftest.$ac_ext <<_ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h. */
30636 #ifdef HAVE_SASL_SASL_H
30637 #include <sasl/sasl.h>
30642 /* Require 2.1.15+ */
30643 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30644 char *__sasl_compat = "2.2+ or better okay (we guess)";
30645 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30646 && SASL_VERSION_STEP >=15
30647 char *__sasl_compat = "2.1.15+ or better okay";
30651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30652 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30653 ol_cv_sasl_compat=yes
30655 ol_cv_sasl_compat=no
30660 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30661 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30663 if test $ol_cv_sasl_compat = no ; then
30665 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30666 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30667 { (exit 1); exit 1; }; }
30671 cat >>confdefs.h <<\_ACEOF
30672 #define HAVE_CYRUS_SASL 1
30675 SASL_LIBS="$ol_link_sasl"
30676 if test $ol_enable_spasswd != no ; then
30677 ol_link_spasswd=yes
30680 ac_save_LIBS="$LIBS"
30681 LIBS="$LIBS $ol_link_sasl"
30682 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30683 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30684 if test "${ac_cv_func_sasl_version+set}" = set; then
30685 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 cat >conftest.$ac_ext <<_ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h. */
30693 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30695 #define sasl_version innocuous_sasl_version
30697 /* System header to define __stub macros and hopefully few prototypes,
30698 which can conflict with char sasl_version (); below.
30699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30700 <limits.h> exists even on freestanding compilers. */
30703 # include <limits.h>
30705 # include <assert.h>
30708 #undef sasl_version
30710 /* Override any GCC internal prototype to avoid an error.
30711 Use char because int might match the return type of a GCC
30712 builtin and then its argument prototype would still apply. */
30716 char sasl_version ();
30717 /* The GNU C library defines this for functions which it implements
30718 to always fail with ENOSYS. Some functions are actually named
30719 something starting with __ and the normal name is an alias. */
30720 #if defined __stub_sasl_version || defined __stub___sasl_version
30727 return sasl_version ();
30732 rm -f conftest.$ac_objext conftest$ac_exeext
30733 if { (ac_try="$ac_link"
30734 case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_link") 2>conftest.er1
30741 grep -v '^ *+' conftest.er1 >conftest.err
30743 cat conftest.err >&5
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } && {
30746 test -z "$ac_c_werror_flag" ||
30747 test ! -s conftest.err
30748 } && test -s conftest$ac_exeext &&
30749 $as_test_x conftest$ac_exeext; then
30750 ac_cv_func_sasl_version=yes
30752 echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30755 ac_cv_func_sasl_version=no
30758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30759 conftest$ac_exeext conftest.$ac_ext
30761 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30762 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30763 if test $ac_cv_func_sasl_version = yes; then
30765 cat >>confdefs.h <<\_ACEOF
30766 #define HAVE_SASL_VERSION 1
30771 LIBS="$ac_save_LIBS"
30777 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30778 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30779 if test $ol_link_tls = no ; then
30780 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30781 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30785 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30787 if test -r /dev/urandom ; then
30788 dev="/dev/urandom";
30789 elif test -r /idev/urandom ; then
30790 dev="/idev/urandom";
30791 elif test -r /dev/srandom ; then
30792 dev="/dev/srandom";
30793 elif test -r /dev/random ; then
30795 elif test -r /idev/random ; then
30796 dev="/idev/random";
30799 if test $dev != no ; then
30801 cat >>confdefs.h <<_ACEOF
30802 #define URANDOM_DEVICE "$dev"
30809 if test $ol_with_fetch != no ; then
30811 LIBS="-lfetch -lcom_err $LIBS"
30812 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30813 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30814 if test "${ol_cv_lib_fetch+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 cat >conftest.$ac_ext <<_ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h. */
30825 #ifdef HAVE_SYS_PARAM_H
30826 #include <sys/param.h>
30833 struct url *u = fetchParseURL("file:///");
30838 rm -f conftest.$ac_objext conftest$ac_exeext
30839 if { (ac_try="$ac_link"
30840 case "(($ac_try" in
30841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842 *) ac_try_echo=$ac_try;;
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845 (eval "$ac_link") 2>conftest.er1
30847 grep -v '^ *+' conftest.er1 >conftest.err
30849 cat conftest.err >&5
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); } && {
30852 test -z "$ac_c_werror_flag" ||
30853 test ! -s conftest.err
30854 } && test -s conftest$ac_exeext &&
30855 $as_test_x conftest$ac_exeext; then
30856 ol_cv_lib_fetch=yes
30858 echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30865 conftest$ac_exeext conftest.$ac_ext
30867 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30868 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30870 if test $ol_cv_lib_fetch != no ; then
30871 ol_link_fetch="-lfetch -lcom_err"
30873 cat >>confdefs.h <<\_ACEOF
30874 #define HAVE_FETCH 1
30880 if test $ol_cv_lib_fetch != no ; then
30881 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30882 ol_link_fetch=freebsd
30884 elif test $ol_with_fetch != auto ; then
30885 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30886 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30887 { (exit 1); exit 1; }; }
30891 if test $ol_enable_crypt != no ; then
30893 LIBS="$TLS_LIBS $LIBS"
30895 { echo "$as_me:$LINENO: checking for crypt" >&5
30896 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30897 if test "${ac_cv_func_crypt+set}" = set; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 cat >conftest.$ac_ext <<_ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h. */
30906 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908 #define crypt innocuous_crypt
30910 /* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char crypt (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
30916 # include <limits.h>
30918 # include <assert.h>
30923 /* Override any GCC internal prototype to avoid an error.
30924 Use char because int might match the return type of a GCC
30925 builtin and then its argument prototype would still apply. */
30930 /* The GNU C library defines this for functions which it implements
30931 to always fail with ENOSYS. Some functions are actually named
30932 something starting with __ and the normal name is an alias. */
30933 #if defined __stub_crypt || defined __stub___crypt
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_link") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } && {
30959 test -z "$ac_c_werror_flag" ||
30960 test ! -s conftest.err
30961 } && test -s conftest$ac_exeext &&
30962 $as_test_x conftest$ac_exeext; then
30963 ac_cv_func_crypt=yes
30965 echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30968 ac_cv_func_crypt=no
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972 conftest$ac_exeext conftest.$ac_ext
30974 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30975 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30976 if test $ac_cv_func_crypt = yes; then
30981 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30982 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30983 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30986 ac_check_lib_save_LIBS=$LIBS
30987 LIBS="-lcrypt $LIBS"
30988 cat >conftest.$ac_ext <<_ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h. */
30995 /* Override any GCC internal prototype to avoid an error.
30996 Use char because int might match the return type of a GCC
30997 builtin and then its argument prototype would still apply. */
31010 rm -f conftest.$ac_objext conftest$ac_exeext
31011 if { (ac_try="$ac_link"
31012 case "(($ac_try" in
31013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014 *) ac_try_echo=$ac_try;;
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017 (eval "$ac_link") 2>conftest.er1
31019 grep -v '^ *+' conftest.er1 >conftest.err
31021 cat conftest.err >&5
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); } && {
31024 test -z "$ac_c_werror_flag" ||
31025 test ! -s conftest.err
31026 } && test -s conftest$ac_exeext &&
31027 $as_test_x conftest$ac_exeext; then
31028 ac_cv_lib_crypt_crypt=yes
31030 echo "$as_me: failed program was:" >&5
31031 sed 's/^/| /' conftest.$ac_ext >&5
31033 ac_cv_lib_crypt_crypt=no
31036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31037 conftest$ac_exeext conftest.$ac_ext
31038 LIBS=$ac_check_lib_save_LIBS
31040 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31041 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31042 if test $ac_cv_lib_crypt_crypt = yes; then
31043 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31054 if test $have_crypt = yes ; then
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_CRYPT 1
31061 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31062 echo "$as_me: WARNING: could not find crypt" >&2;}
31063 if test $ol_enable_crypt = yes ; then
31064 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31065 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31066 { (exit 1); exit 1; }; }
31069 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31070 echo "$as_me: WARNING: disabling crypt support" >&2;}
31075 if test $ol_enable_proctitle != no ; then
31076 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31077 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31078 if test "${ac_cv_func_setproctitle+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31081 cat >conftest.$ac_ext <<_ACEOF
31084 cat confdefs.h >>conftest.$ac_ext
31085 cat >>conftest.$ac_ext <<_ACEOF
31086 /* end confdefs.h. */
31087 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31089 #define setproctitle innocuous_setproctitle
31091 /* System header to define __stub macros and hopefully few prototypes,
31092 which can conflict with char setproctitle (); below.
31093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31094 <limits.h> exists even on freestanding compilers. */
31097 # include <limits.h>
31099 # include <assert.h>
31102 #undef setproctitle
31104 /* Override any GCC internal prototype to avoid an error.
31105 Use char because int might match the return type of a GCC
31106 builtin and then its argument prototype would still apply. */
31110 char setproctitle ();
31111 /* The GNU C library defines this for functions which it implements
31112 to always fail with ENOSYS. Some functions are actually named
31113 something starting with __ and the normal name is an alias. */
31114 #if defined __stub_setproctitle || defined __stub___setproctitle
31121 return setproctitle ();
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (ac_try="$ac_link"
31128 case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_link") 2>conftest.er1
31135 grep -v '^ *+' conftest.er1 >conftest.err
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
31142 } && test -s conftest$ac_exeext &&
31143 $as_test_x conftest$ac_exeext; then
31144 ac_cv_func_setproctitle=yes
31146 echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31149 ac_cv_func_setproctitle=no
31152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31153 conftest$ac_exeext conftest.$ac_ext
31155 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31156 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31157 if test $ac_cv_func_setproctitle = yes; then
31158 have_setproctitle=yes
31161 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31162 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31163 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31166 ac_check_lib_save_LIBS=$LIBS
31167 LIBS="-lutil $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31175 /* Override any GCC internal prototype to avoid an error.
31176 Use char because int might match the return type of a GCC
31177 builtin and then its argument prototype would still apply. */
31181 char setproctitle ();
31185 return setproctitle ();
31190 rm -f conftest.$ac_objext conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194 *) ac_try_echo=$ac_try;;
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197 (eval "$ac_link") 2>conftest.er1
31199 grep -v '^ *+' conftest.er1 >conftest.err
31201 cat conftest.err >&5
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } && {
31204 test -z "$ac_c_werror_flag" ||
31205 test ! -s conftest.err
31206 } && test -s conftest$ac_exeext &&
31207 $as_test_x conftest$ac_exeext; then
31208 ac_cv_lib_util_setproctitle=yes
31210 echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31213 ac_cv_lib_util_setproctitle=no
31216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31217 conftest$ac_exeext conftest.$ac_ext
31218 LIBS=$ac_check_lib_save_LIBS
31220 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31221 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31222 if test $ac_cv_lib_util_setproctitle = yes; then
31223 have_setproctitle=yes
31224 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31226 have_setproctitle=no
31227 case " $LIBOBJS " in
31228 *" setproctitle.$ac_objext "* ) ;;
31229 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31233 LIBSRCS="$LIBSRCS setproctitle.c"
31239 if test $have_setproctitle = yes ; then
31241 cat >>confdefs.h <<\_ACEOF
31242 #define HAVE_SETPROCTITLE 1
31248 if test $ol_enable_slp != no ; then
31250 for ac_header in slp.h
31252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31257 echo $ECHO_N "(cached) $ECHO_C" >&6
31259 ac_res=`eval echo '${'$as_ac_Header'}'`
31260 { echo "$as_me:$LINENO: result: $ac_res" >&5
31261 echo "${ECHO_T}$ac_res" >&6; }
31263 # Is the header compilable?
31264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31266 cat >conftest.$ac_ext <<_ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h. */
31272 $ac_includes_default
31273 #include <$ac_header>
31275 rm -f conftest.$ac_objext
31276 if { (ac_try="$ac_compile"
31277 case "(($ac_try" in
31278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279 *) ac_try_echo=$ac_try;;
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282 (eval "$ac_compile") 2>conftest.er1
31284 grep -v '^ *+' conftest.er1 >conftest.err
31286 cat conftest.err >&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); } && {
31289 test -z "$ac_c_werror_flag" ||
31290 test ! -s conftest.err
31291 } && test -s conftest.$ac_objext; then
31292 ac_header_compiler=yes
31294 echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31297 ac_header_compiler=no
31300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31302 echo "${ECHO_T}$ac_header_compiler" >&6; }
31304 # Is the header present?
31305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31307 cat >conftest.$ac_ext <<_ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h. */
31313 #include <$ac_header>
31315 if { (ac_try="$ac_cpp conftest.$ac_ext"
31316 case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31323 grep -v '^ *+' conftest.er1 >conftest.err
31325 cat conftest.err >&5
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); } >/dev/null && {
31328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31329 test ! -s conftest.err
31331 ac_header_preproc=yes
31333 echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31336 ac_header_preproc=no
31339 rm -f conftest.err conftest.$ac_ext
31340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31341 echo "${ECHO_T}$ac_header_preproc" >&6; }
31343 # So? What about this header?
31344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31350 ac_header_preproc=yes
31353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31366 ## --------------------------------------------- ##
31367 ## Report this to <http://www.openldap.org/its/> ##
31368 ## --------------------------------------------- ##
31370 ) | sed "s/^/$as_me: WARNING: /" >&2
31373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31376 echo $ECHO_N "(cached) $ECHO_C" >&6
31378 eval "$as_ac_Header=\$ac_header_preproc"
31380 ac_res=`eval echo '${'$as_ac_Header'}'`
31381 { echo "$as_me:$LINENO: result: $ac_res" >&5
31382 echo "${ECHO_T}$ac_res" >&6; }
31385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31386 cat >>confdefs.h <<_ACEOF
31387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31395 if test $ac_cv_header_slp_h = yes ; then
31396 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31397 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31398 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31399 echo $ECHO_N "(cached) $ECHO_C" >&6
31401 ac_check_lib_save_LIBS=$LIBS
31403 cat >conftest.$ac_ext <<_ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31410 /* Override any GCC internal prototype to avoid an error.
31411 Use char because int might match the return type of a GCC
31412 builtin and then its argument prototype would still apply. */
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (ac_try="$ac_link"
31427 case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_link") 2>conftest.er1
31434 grep -v '^ *+' conftest.er1 >conftest.err
31436 cat conftest.err >&5
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); } && {
31439 test -z "$ac_c_werror_flag" ||
31440 test ! -s conftest.err
31441 } && test -s conftest$ac_exeext &&
31442 $as_test_x conftest$ac_exeext; then
31443 ac_cv_lib_slp_SLPOpen=yes
31445 echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31448 ac_cv_lib_slp_SLPOpen=no
31451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31452 conftest$ac_exeext conftest.$ac_ext
31453 LIBS=$ac_check_lib_save_LIBS
31455 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31456 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31457 if test $ac_cv_lib_slp_SLPOpen = yes; then
31463 if test $have_slp = yes ; then
31465 cat >>confdefs.h <<\_ACEOF
31469 SLAPD_SLP_LIBS=-lslp
31472 elif test $ol_enable_slp = yes ; then
31473 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31474 echo "$as_me: error: SLP not found" >&2;}
31475 { (exit 1); exit 1; }; }
31480 { echo "$as_me:$LINENO: checking for mode_t" >&5
31481 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31482 if test "${ac_cv_type_mode_t+set}" = set; then
31483 echo $ECHO_N "(cached) $ECHO_C" >&6
31485 cat >conftest.$ac_ext <<_ACEOF
31488 cat confdefs.h >>conftest.$ac_ext
31489 cat >>conftest.$ac_ext <<_ACEOF
31490 /* end confdefs.h. */
31491 $ac_includes_default
31492 typedef mode_t ac__type_new_;
31496 if ((ac__type_new_ *) 0)
31498 if (sizeof (ac__type_new_))
31504 rm -f conftest.$ac_objext
31505 if { (ac_try="$ac_compile"
31506 case "(($ac_try" in
31507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31508 *) ac_try_echo=$ac_try;;
31510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31511 (eval "$ac_compile") 2>conftest.er1
31513 grep -v '^ *+' conftest.er1 >conftest.err
31515 cat conftest.err >&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); } && {
31518 test -z "$ac_c_werror_flag" ||
31519 test ! -s conftest.err
31520 } && test -s conftest.$ac_objext; then
31521 ac_cv_type_mode_t=yes
31523 echo "$as_me: failed program was:" >&5
31524 sed 's/^/| /' conftest.$ac_ext >&5
31526 ac_cv_type_mode_t=no
31529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31531 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31533 if test $ac_cv_type_mode_t = yes; then
31537 cat >>confdefs.h <<_ACEOF
31543 { echo "$as_me:$LINENO: checking for off_t" >&5
31544 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31545 if test "${ac_cv_type_off_t+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31548 cat >conftest.$ac_ext <<_ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31554 $ac_includes_default
31555 typedef off_t ac__type_new_;
31559 if ((ac__type_new_ *) 0)
31561 if (sizeof (ac__type_new_))
31567 rm -f conftest.$ac_objext
31568 if { (ac_try="$ac_compile"
31569 case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_compile") 2>conftest.er1
31576 grep -v '^ *+' conftest.er1 >conftest.err
31578 cat conftest.err >&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } && {
31581 test -z "$ac_c_werror_flag" ||
31582 test ! -s conftest.err
31583 } && test -s conftest.$ac_objext; then
31584 ac_cv_type_off_t=yes
31586 echo "$as_me: failed program was:" >&5
31587 sed 's/^/| /' conftest.$ac_ext >&5
31589 ac_cv_type_off_t=no
31592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31594 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31595 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31596 if test $ac_cv_type_off_t = yes; then
31600 cat >>confdefs.h <<_ACEOF
31606 { echo "$as_me:$LINENO: checking for pid_t" >&5
31607 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31608 if test "${ac_cv_type_pid_t+set}" = set; then
31609 echo $ECHO_N "(cached) $ECHO_C" >&6
31611 cat >conftest.$ac_ext <<_ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h. */
31617 $ac_includes_default
31618 typedef pid_t ac__type_new_;
31622 if ((ac__type_new_ *) 0)
31624 if (sizeof (ac__type_new_))
31630 rm -f conftest.$ac_objext
31631 if { (ac_try="$ac_compile"
31632 case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_compile") 2>conftest.er1
31639 grep -v '^ *+' conftest.er1 >conftest.err
31641 cat conftest.err >&5
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); } && {
31644 test -z "$ac_c_werror_flag" ||
31645 test ! -s conftest.err
31646 } && test -s conftest.$ac_objext; then
31647 ac_cv_type_pid_t=yes
31649 echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.$ac_ext >&5
31652 ac_cv_type_pid_t=no
31655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31657 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31658 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31659 if test $ac_cv_type_pid_t = yes; then
31663 cat >>confdefs.h <<_ACEOF
31669 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31670 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31671 if test "${ac_cv_type_ssize_t+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 cat >conftest.$ac_ext <<_ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h. */
31680 $ac_includes_default
31681 typedef ssize_t ac__type_new_;
31685 if ((ac__type_new_ *) 0)
31687 if (sizeof (ac__type_new_))
31693 rm -f conftest.$ac_objext
31694 if { (ac_try="$ac_compile"
31695 case "(($ac_try" in
31696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697 *) ac_try_echo=$ac_try;;
31699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700 (eval "$ac_compile") 2>conftest.er1
31702 grep -v '^ *+' conftest.er1 >conftest.err
31704 cat conftest.err >&5
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } && {
31707 test -z "$ac_c_werror_flag" ||
31708 test ! -s conftest.err
31709 } && test -s conftest.$ac_objext; then
31710 ac_cv_type_ssize_t=yes
31712 echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31715 ac_cv_type_ssize_t=no
31718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31721 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31722 if test $ac_cv_type_ssize_t = yes; then
31726 cat >>confdefs.h <<_ACEOF
31727 #define ssize_t signed int
31732 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31733 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31734 if test "${ac_cv_type_caddr_t+set}" = set; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31737 cat >conftest.$ac_ext <<_ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h. */
31743 $ac_includes_default
31744 typedef caddr_t ac__type_new_;
31748 if ((ac__type_new_ *) 0)
31750 if (sizeof (ac__type_new_))
31756 rm -f conftest.$ac_objext
31757 if { (ac_try="$ac_compile"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_compile") 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } && {
31770 test -z "$ac_c_werror_flag" ||
31771 test ! -s conftest.err
31772 } && test -s conftest.$ac_objext; then
31773 ac_cv_type_caddr_t=yes
31775 echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31778 ac_cv_type_caddr_t=no
31781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31783 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31784 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31785 if test $ac_cv_type_caddr_t = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790 #define caddr_t char *
31795 { echo "$as_me:$LINENO: checking for size_t" >&5
31796 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31797 if test "${ac_cv_type_size_t+set}" = set; then
31798 echo $ECHO_N "(cached) $ECHO_C" >&6
31800 cat >conftest.$ac_ext <<_ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h. */
31806 $ac_includes_default
31807 typedef size_t ac__type_new_;
31811 if ((ac__type_new_ *) 0)
31813 if (sizeof (ac__type_new_))
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_compile") 2>conftest.er1
31828 grep -v '^ *+' conftest.er1 >conftest.err
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } && {
31833 test -z "$ac_c_werror_flag" ||
31834 test ! -s conftest.err
31835 } && test -s conftest.$ac_objext; then
31836 ac_cv_type_size_t=yes
31838 echo "$as_me: failed program was:" >&5
31839 sed 's/^/| /' conftest.$ac_ext >&5
31841 ac_cv_type_size_t=no
31844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31846 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31848 if test $ac_cv_type_size_t = yes; then
31852 cat >>confdefs.h <<_ACEOF
31853 #define size_t unsigned
31859 { echo "$as_me:$LINENO: checking for long long" >&5
31860 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31861 if test "${ac_cv_type_long_long+set}" = set; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31864 cat >conftest.$ac_ext <<_ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h. */
31870 $ac_includes_default
31871 typedef long long ac__type_new_;
31875 if ((ac__type_new_ *) 0)
31877 if (sizeof (ac__type_new_))
31883 rm -f conftest.$ac_objext
31884 if { (ac_try="$ac_compile"
31885 case "(($ac_try" in
31886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887 *) ac_try_echo=$ac_try;;
31889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890 (eval "$ac_compile") 2>conftest.er1
31892 grep -v '^ *+' conftest.er1 >conftest.err
31894 cat conftest.err >&5
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } && {
31897 test -z "$ac_c_werror_flag" ||
31898 test ! -s conftest.err
31899 } && test -s conftest.$ac_objext; then
31900 ac_cv_type_long_long=yes
31902 echo "$as_me: failed program was:" >&5
31903 sed 's/^/| /' conftest.$ac_ext >&5
31905 ac_cv_type_long_long=no
31908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31911 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31912 if test $ac_cv_type_long_long = yes; then
31914 cat >>confdefs.h <<_ACEOF
31915 #define HAVE_LONG_LONG 1
31921 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31922 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31923 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31924 echo $ECHO_N "(cached) $ECHO_C" >&6
31926 cat >conftest.$ac_ext <<_ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h. */
31932 $ac_includes_default
31933 typedef ptrdiff_t ac__type_new_;
31937 if ((ac__type_new_ *) 0)
31939 if (sizeof (ac__type_new_))
31945 rm -f conftest.$ac_objext
31946 if { (ac_try="$ac_compile"
31947 case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_compile") 2>conftest.er1
31954 grep -v '^ *+' conftest.er1 >conftest.err
31956 cat conftest.err >&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } && {
31959 test -z "$ac_c_werror_flag" ||
31960 test ! -s conftest.err
31961 } && test -s conftest.$ac_objext; then
31962 ac_cv_type_ptrdiff_t=yes
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 ac_cv_type_ptrdiff_t=no
31970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31972 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31973 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31974 if test $ac_cv_type_ptrdiff_t = yes; then
31976 cat >>confdefs.h <<_ACEOF
31977 #define HAVE_PTRDIFF_T 1
31985 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31986 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31987 if test "${ac_cv_type_socklen_t+set}" = set; then
31988 echo $ECHO_N "(cached) $ECHO_C" >&6
31990 cat >conftest.$ac_ext <<_ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h. */
31996 $ac_includes_default
31997 #ifdef HAVE_SYS_SOCKET_H
31998 #include <sys/socket.h>
32001 typedef socklen_t ac__type_new_;
32005 if ((ac__type_new_ *) 0)
32007 if (sizeof (ac__type_new_))
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_compile") 2>conftest.er1
32022 grep -v '^ *+' conftest.er1 >conftest.err
32024 cat conftest.err >&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); } && {
32027 test -z "$ac_c_werror_flag" ||
32028 test ! -s conftest.err
32029 } && test -s conftest.$ac_objext; then
32030 ac_cv_type_socklen_t=yes
32032 echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32035 ac_cv_type_socklen_t=no
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32041 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32044 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32045 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32046 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 set socklen_t int unsigned "unsigned long" long size_t
32051 test "$ac_cv_type_socklen_t" = yes || shift
32052 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32053 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32054 cat >conftest.$ac_ext <<_ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h. */
32060 $ac_includes_default
32061 #ifdef HAVE_SYS_SOCKET_H
32062 #include <sys/socket.h>
32064 extern int accept(int s, $addrtype *ap, $lentype *lp);
32070 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_compile") 2>conftest.er1
32085 grep -v '^ *+' conftest.er1 >conftest.err
32087 cat conftest.err >&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } && {
32090 test -z "$ac_c_werror_flag" ||
32091 test ! -s conftest.err
32092 } && test -s conftest.$ac_objext; then
32093 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32095 echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32106 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32108 cat >>confdefs.h <<_ACEOF
32109 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32113 if test "$ac_cv_type_socklen_t" != yes; then
32115 cat >>confdefs.h <<_ACEOF
32116 #define socklen_t $ol_cv_type_ber_socklen_t
32122 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32124 if test "${ac_cv_type_signal+set}" = set; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32127 cat >conftest.$ac_ext <<_ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h. */
32133 #include <sys/types.h>
32134 #include <signal.h>
32139 return *(signal (0, 0)) (0) == 1;
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_compile") 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && {
32158 test -z "$ac_c_werror_flag" ||
32159 test ! -s conftest.err
32160 } && test -s conftest.$ac_objext; then
32161 ac_cv_type_signal=int
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32166 ac_cv_type_signal=void
32169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32171 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32172 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32174 cat >>confdefs.h <<_ACEOF
32175 #define RETSIGTYPE $ac_cv_type_signal
32180 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32181 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32182 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32183 echo $ECHO_N "(cached) $ECHO_C" >&6
32185 cat >conftest.$ac_ext <<_ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h. */
32191 $ac_includes_default
32192 #include <signal.h>
32195 typedef sig_atomic_t ac__type_new_;
32199 if ((ac__type_new_ *) 0)
32201 if (sizeof (ac__type_new_))
32207 rm -f conftest.$ac_objext
32208 if { (ac_try="$ac_compile"
32209 case "(($ac_try" in
32210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211 *) ac_try_echo=$ac_try;;
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214 (eval "$ac_compile") 2>conftest.er1
32216 grep -v '^ *+' conftest.er1 >conftest.err
32218 cat conftest.err >&5
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); } && {
32221 test -z "$ac_c_werror_flag" ||
32222 test ! -s conftest.err
32223 } && test -s conftest.$ac_objext; then
32224 ac_cv_type_sig_atomic_t=yes
32226 echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32229 ac_cv_type_sig_atomic_t=no
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32234 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32235 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32236 if test $ac_cv_type_sig_atomic_t = yes; then
32240 cat >>confdefs.h <<_ACEOF
32241 #define sig_atomic_t int
32247 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32248 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32249 if test "${ac_cv_type_uid_t+set}" = set; then
32250 echo $ECHO_N "(cached) $ECHO_C" >&6
32252 cat >conftest.$ac_ext <<_ACEOF
32255 cat confdefs.h >>conftest.$ac_ext
32256 cat >>conftest.$ac_ext <<_ACEOF
32257 /* end confdefs.h. */
32258 #include <sys/types.h>
32261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32262 $EGREP "uid_t" >/dev/null 2>&1; then
32263 ac_cv_type_uid_t=yes
32265 ac_cv_type_uid_t=no
32270 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32271 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32272 if test $ac_cv_type_uid_t = no; then
32274 cat >>confdefs.h <<\_ACEOF
32279 cat >>confdefs.h <<\_ACEOF
32286 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32287 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32288 if test "${ac_cv_header_time+set}" = set; then
32289 echo $ECHO_N "(cached) $ECHO_C" >&6
32291 cat >conftest.$ac_ext <<_ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h. */
32297 #include <sys/types.h>
32298 #include <sys/time.h>
32304 if ((struct tm *) 0)
32310 rm -f conftest.$ac_objext
32311 if { (ac_try="$ac_compile"
32312 case "(($ac_try" in
32313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314 *) ac_try_echo=$ac_try;;
32316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317 (eval "$ac_compile") 2>conftest.er1
32319 grep -v '^ *+' conftest.er1 >conftest.err
32321 cat conftest.err >&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); } && {
32324 test -z "$ac_c_werror_flag" ||
32325 test ! -s conftest.err
32326 } && test -s conftest.$ac_objext; then
32327 ac_cv_header_time=yes
32329 echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32332 ac_cv_header_time=no
32335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32339 if test $ac_cv_header_time = yes; then
32341 cat >>confdefs.h <<\_ACEOF
32342 #define TIME_WITH_SYS_TIME 1
32347 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32348 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32349 if test "${ac_cv_struct_tm+set}" = set; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 #include <sys/types.h>
32365 int *p = &tm.tm_sec;
32371 rm -f conftest.$ac_objext
32372 if { (ac_try="$ac_compile"
32373 case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_compile") 2>conftest.er1
32380 grep -v '^ *+' conftest.er1 >conftest.err
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } && {
32385 test -z "$ac_c_werror_flag" ||
32386 test ! -s conftest.err
32387 } && test -s conftest.$ac_objext; then
32388 ac_cv_struct_tm=time.h
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32393 ac_cv_struct_tm=sys/time.h
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32398 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32399 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32400 if test $ac_cv_struct_tm = sys/time.h; then
32402 cat >>confdefs.h <<\_ACEOF
32403 #define TM_IN_SYS_TIME 1
32408 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32409 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32410 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32411 echo $ECHO_N "(cached) $ECHO_C" >&6
32413 cat >conftest.$ac_ext <<_ACEOF
32416 cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h. */
32419 $ac_includes_default
32423 static struct stat ac_aggr;
32424 if (ac_aggr.st_blksize)
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
32439 grep -v '^ *+' conftest.er1 >conftest.err
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } && {
32444 test -z "$ac_c_werror_flag" ||
32445 test ! -s conftest.err
32446 } && test -s conftest.$ac_objext; then
32447 ac_cv_member_struct_stat_st_blksize=yes
32449 echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32452 cat >conftest.$ac_ext <<_ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h. */
32458 $ac_includes_default
32462 static struct stat ac_aggr;
32463 if (sizeof ac_aggr.st_blksize)
32469 rm -f conftest.$ac_objext
32470 if { (ac_try="$ac_compile"
32471 case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_compile") 2>conftest.er1
32478 grep -v '^ *+' conftest.er1 >conftest.err
32480 cat conftest.err >&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } && {
32483 test -z "$ac_c_werror_flag" ||
32484 test ! -s conftest.err
32485 } && test -s conftest.$ac_objext; then
32486 ac_cv_member_struct_stat_st_blksize=yes
32488 echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32491 ac_cv_member_struct_stat_st_blksize=no
32494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32501 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32503 cat >>confdefs.h <<_ACEOF
32504 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32510 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32511 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32512 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32513 echo $ECHO_N "(cached) $ECHO_C" >&6
32515 cat >conftest.$ac_ext <<_ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32521 $ac_includes_default
32527 static struct passwd ac_aggr;
32528 if (ac_aggr.pw_gecos)
32534 rm -f conftest.$ac_objext
32535 if { (ac_try="$ac_compile"
32536 case "(($ac_try" in
32537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538 *) ac_try_echo=$ac_try;;
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541 (eval "$ac_compile") 2>conftest.er1
32543 grep -v '^ *+' conftest.er1 >conftest.err
32545 cat conftest.err >&5
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); } && {
32548 test -z "$ac_c_werror_flag" ||
32549 test ! -s conftest.err
32550 } && test -s conftest.$ac_objext; then
32551 ac_cv_member_struct_passwd_pw_gecos=yes
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 cat >conftest.$ac_ext <<_ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h. */
32562 $ac_includes_default
32568 static struct passwd ac_aggr;
32569 if (sizeof ac_aggr.pw_gecos)
32575 rm -f conftest.$ac_objext
32576 if { (ac_try="$ac_compile"
32577 case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_compile") 2>conftest.er1
32584 grep -v '^ *+' conftest.er1 >conftest.err
32586 cat conftest.err >&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } && {
32589 test -z "$ac_c_werror_flag" ||
32590 test ! -s conftest.err
32591 } && test -s conftest.$ac_objext; then
32592 ac_cv_member_struct_passwd_pw_gecos=yes
32594 echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32597 ac_cv_member_struct_passwd_pw_gecos=no
32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32605 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32606 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32607 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32609 cat >>confdefs.h <<_ACEOF
32610 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32616 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32617 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32618 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32621 cat >conftest.$ac_ext <<_ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h. */
32627 $ac_includes_default
32633 static struct passwd ac_aggr;
32634 if (ac_aggr.pw_passwd)
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_compile") 2>conftest.er1
32649 grep -v '^ *+' conftest.er1 >conftest.err
32651 cat conftest.err >&5
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); } && {
32654 test -z "$ac_c_werror_flag" ||
32655 test ! -s conftest.err
32656 } && test -s conftest.$ac_objext; then
32657 ac_cv_member_struct_passwd_pw_passwd=yes
32659 echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32662 cat >conftest.$ac_ext <<_ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32668 $ac_includes_default
32674 static struct passwd ac_aggr;
32675 if (sizeof ac_aggr.pw_passwd)
32681 rm -f conftest.$ac_objext
32682 if { (ac_try="$ac_compile"
32683 case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688 (eval "$ac_compile") 2>conftest.er1
32690 grep -v '^ *+' conftest.er1 >conftest.err
32692 cat conftest.err >&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); } && {
32695 test -z "$ac_c_werror_flag" ||
32696 test ! -s conftest.err
32697 } && test -s conftest.$ac_objext; then
32698 ac_cv_member_struct_passwd_pw_passwd=yes
32700 echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32703 ac_cv_member_struct_passwd_pw_passwd=no
32706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32711 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32712 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32713 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32715 cat >>confdefs.h <<_ACEOF
32716 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32723 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32724 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32725 if test "${ol_cv_c_upper_lower+set}" = set; then
32726 echo $ECHO_N "(cached) $ECHO_C" >&6
32729 if test "$cross_compiling" = yes; then
32730 ol_cv_c_upper_lower=safe
32732 cat >conftest.$ac_ext <<_ACEOF
32735 cat confdefs.h >>conftest.$ac_ext
32736 cat >>conftest.$ac_ext <<_ACEOF
32737 /* end confdefs.h. */
32742 if ('C' == toupper('C'))
32748 rm -f conftest$ac_exeext
32749 if { (ac_try="$ac_link"
32750 case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_link") 2>&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32759 { (case "(($ac_try" in
32760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761 *) ac_try_echo=$ac_try;;
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764 (eval "$ac_try") 2>&5
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); }; }; then
32768 ol_cv_c_upper_lower=no
32770 echo "$as_me: program exited with status $ac_status" >&5
32771 echo "$as_me: failed program was:" >&5
32772 sed 's/^/| /' conftest.$ac_ext >&5
32774 ( exit $ac_status )
32775 ol_cv_c_upper_lower=yes
32777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32782 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32783 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32784 if test $ol_cv_c_upper_lower != no ; then
32786 cat >>confdefs.h <<\_ACEOF
32787 #define C_UPPER_LOWER 1
32792 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32793 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32794 if test "${ac_cv_c_const+set}" = set; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32797 cat >conftest.$ac_ext <<_ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h. */
32807 /* FIXME: Include the comments suggested by Paul. */
32808 #ifndef __cplusplus
32809 /* Ultrix mips cc rejects this. */
32810 typedef int charset[2];
32812 /* SunOS 4.1.1 cc rejects this. */
32813 char const *const *pcpcc;
32815 /* NEC SVR4.0.2 mips cc rejects this. */
32816 struct point {int x, y;};
32817 static struct point const zero = {0,0};
32818 /* AIX XL C 1.02.0.0 rejects this.
32819 It does not let you subtract one const X* pointer from another in
32820 an arm of an if-expression whose if-part is not a constant
32822 const char *g = "string";
32823 pcpcc = &g + (g ? g-g : 0);
32824 /* HPUX 7.0 cc rejects these. */
32826 ppc = (char**) pcpcc;
32827 pcpcc = (char const *const *) ppc;
32828 { /* SCO 3.2v4 cc rejects this. */
32830 char const *s = 0 ? (char *) 0 : (char const *) 0;
32835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32836 int x[] = {25, 17};
32837 const int *foo = &x[0];
32840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32841 typedef const int *iptr;
32845 { /* AIX XL C 1.02.0.0 rejects this saying
32846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32847 struct s { int j; const int *ap[3]; };
32848 struct s *b; b->j = 5;
32850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32851 const int foo = 10;
32852 if (!foo) return 0;
32854 return !cs[0] && !zero.x;
32861 rm -f conftest.$ac_objext
32862 if { (ac_try="$ac_compile"
32863 case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_compile") 2>conftest.er1
32870 grep -v '^ *+' conftest.er1 >conftest.err
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } && {
32875 test -z "$ac_c_werror_flag" ||
32876 test ! -s conftest.err
32877 } && test -s conftest.$ac_objext; then
32880 echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32889 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32890 if test $ac_cv_c_const = no; then
32892 cat >>confdefs.h <<\_ACEOF
32898 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32899 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32900 if test "${ol_cv_c_volatile+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32913 volatile int a; int * volatile b = x ? &y : &z;
32914 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32920 rm -f conftest.$ac_objext
32921 if { (ac_try="$ac_compile"
32922 case "(($ac_try" in
32923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924 *) ac_try_echo=$ac_try;;
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927 (eval "$ac_compile") 2>conftest.er1
32929 grep -v '^ *+' conftest.er1 >conftest.err
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } && {
32934 test -z "$ac_c_werror_flag" ||
32935 test ! -s conftest.err
32936 } && test -s conftest.$ac_objext; then
32937 ol_cv_c_volatile=yes
32939 echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32942 ol_cv_c_volatile=no
32945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32947 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32948 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32949 if test $ol_cv_c_volatile = yes; then
32953 cat >>confdefs.h <<\_ACEOF
32960 if test $cross_compiling = yes ; then
32961 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32962 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32964 cat >>confdefs.h <<\_ACEOF
32965 #define CROSS_COMPILING 1
32969 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32971 if test "${ac_cv_c_bigendian+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32974 # See if sys/param.h defines the BYTE_ORDER macro.
32975 cat >conftest.$ac_ext <<_ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h. */
32981 #include <sys/types.h>
32982 #include <sys/param.h>
32987 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32988 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32989 bogus endian macros
32996 rm -f conftest.$ac_objext
32997 if { (ac_try="$ac_compile"
32998 case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_compile") 2>conftest.er1
33005 grep -v '^ *+' conftest.er1 >conftest.err
33007 cat conftest.err >&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } && {
33010 test -z "$ac_c_werror_flag" ||
33011 test ! -s conftest.err
33012 } && test -s conftest.$ac_objext; then
33013 # It does; now see whether it defined to BIG_ENDIAN or not.
33014 cat >conftest.$ac_ext <<_ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h. */
33020 #include <sys/types.h>
33021 #include <sys/param.h>
33026 #if BYTE_ORDER != BIG_ENDIAN
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_c_bigendian=yes
33053 echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33056 ac_cv_c_bigendian=no
33059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33061 echo "$as_me: failed program was:" >&5
33062 sed 's/^/| /' conftest.$ac_ext >&5
33064 # It does not; compile a test program.
33065 if test "$cross_compiling" = yes; then
33066 # try to guess the endianness by grepping values into an object file
33067 ac_cv_c_bigendian=unknown
33068 cat >conftest.$ac_ext <<_ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33074 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33075 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33076 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33077 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33078 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33079 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33083 _ascii (); _ebcdic ();
33088 rm -f conftest.$ac_objext
33089 if { (ac_try="$ac_compile"
33090 case "(($ac_try" in
33091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092 *) ac_try_echo=$ac_try;;
33094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095 (eval "$ac_compile") 2>conftest.er1
33097 grep -v '^ *+' conftest.er1 >conftest.err
33099 cat conftest.err >&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } && {
33102 test -z "$ac_c_werror_flag" ||
33103 test ! -s conftest.err
33104 } && test -s conftest.$ac_objext; then
33105 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33106 ac_cv_c_bigendian=yes
33108 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33109 if test "$ac_cv_c_bigendian" = unknown; then
33110 ac_cv_c_bigendian=no
33112 # finding both strings is unlikely to happen, but who knows?
33113 ac_cv_c_bigendian=unknown
33117 echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33125 cat >conftest.$ac_ext <<_ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h. */
33131 $ac_includes_default
33136 /* Are we little or big endian? From Harbison&Steele. */
33140 char c[sizeof (long int)];
33143 return u.c[sizeof (long int) - 1] == 1;
33149 rm -f conftest$ac_exeext
33150 if { (ac_try="$ac_link"
33151 case "(($ac_try" in
33152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33153 *) ac_try_echo=$ac_try;;
33155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33156 (eval "$ac_link") 2>&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33160 { (case "(($ac_try" in
33161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162 *) ac_try_echo=$ac_try;;
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165 (eval "$ac_try") 2>&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33169 ac_cv_c_bigendian=no
33171 echo "$as_me: program exited with status $ac_status" >&5
33172 echo "$as_me: failed program was:" >&5
33173 sed 's/^/| /' conftest.$ac_ext >&5
33175 ( exit $ac_status )
33176 ac_cv_c_bigendian=yes
33178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33186 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33187 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33188 case $ac_cv_c_bigendian in
33191 cat >>confdefs.h <<\_ACEOF
33192 #define WORDS_BIGENDIAN 1
33198 { { echo "$as_me:$LINENO: error: unknown endianness
33199 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33200 echo "$as_me: error: unknown endianness
33201 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33202 { (exit 1); exit 1; }; } ;;
33207 { echo "$as_me:$LINENO: checking for short" >&5
33208 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33209 if test "${ac_cv_type_short+set}" = set; then
33210 echo $ECHO_N "(cached) $ECHO_C" >&6
33212 cat >conftest.$ac_ext <<_ACEOF
33215 cat confdefs.h >>conftest.$ac_ext
33216 cat >>conftest.$ac_ext <<_ACEOF
33217 /* end confdefs.h. */
33218 $ac_includes_default
33219 typedef short ac__type_new_;
33223 if ((ac__type_new_ *) 0)
33225 if (sizeof (ac__type_new_))
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_compile") 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } && {
33245 test -z "$ac_c_werror_flag" ||
33246 test ! -s conftest.err
33247 } && test -s conftest.$ac_objext; then
33248 ac_cv_type_short=yes
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 ac_cv_type_short=no
33256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33259 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33261 # The cast to long int works around a bug in the HP C Compiler
33262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33264 # This bug is HP SR number 8606223364.
33265 { echo "$as_me:$LINENO: checking size of short" >&5
33266 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33267 if test "${ac_cv_sizeof_short+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33270 if test "$cross_compiling" = yes; then
33271 # Depending upon the size, compute the lo and hi bounds.
33272 cat >conftest.$ac_ext <<_ACEOF
33275 cat confdefs.h >>conftest.$ac_ext
33276 cat >>conftest.$ac_ext <<_ACEOF
33277 /* end confdefs.h. */
33278 $ac_includes_default
33279 typedef short ac__type_sizeof_;
33283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33290 rm -f conftest.$ac_objext
33291 if { (ac_try="$ac_compile"
33292 case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_compile") 2>conftest.er1
33299 grep -v '^ *+' conftest.er1 >conftest.err
33301 cat conftest.err >&5
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); } && {
33304 test -z "$ac_c_werror_flag" ||
33305 test ! -s conftest.err
33306 } && test -s conftest.$ac_objext; then
33309 cat >conftest.$ac_ext <<_ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h. */
33315 $ac_includes_default
33316 typedef short ac__type_sizeof_;
33320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33327 rm -f conftest.$ac_objext
33328 if { (ac_try="$ac_compile"
33329 case "(($ac_try" in
33330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331 *) ac_try_echo=$ac_try;;
33333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33334 (eval "$ac_compile") 2>conftest.er1
33336 grep -v '^ *+' conftest.er1 >conftest.err
33338 cat conftest.err >&5
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); } && {
33341 test -z "$ac_c_werror_flag" ||
33342 test ! -s conftest.err
33343 } && test -s conftest.$ac_objext; then
33344 ac_hi=$ac_mid; break
33346 echo "$as_me: failed program was:" >&5
33347 sed 's/^/| /' conftest.$ac_ext >&5
33349 ac_lo=`expr $ac_mid + 1`
33350 if test $ac_lo -le $ac_mid; then
33354 ac_mid=`expr 2 '*' $ac_mid + 1`
33357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33360 echo "$as_me: failed program was:" >&5
33361 sed 's/^/| /' conftest.$ac_ext >&5
33363 cat >conftest.$ac_ext <<_ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33369 $ac_includes_default
33370 typedef short ac__type_sizeof_;
33374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_compile") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } && {
33395 test -z "$ac_c_werror_flag" ||
33396 test ! -s conftest.err
33397 } && test -s conftest.$ac_objext; then
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 $ac_includes_default
33407 typedef short ac__type_sizeof_;
33411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33418 rm -f conftest.$ac_objext
33419 if { (ac_try="$ac_compile"
33420 case "(($ac_try" in
33421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422 *) ac_try_echo=$ac_try;;
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425 (eval "$ac_compile") 2>conftest.er1
33427 grep -v '^ *+' conftest.er1 >conftest.err
33429 cat conftest.err >&5
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); } && {
33432 test -z "$ac_c_werror_flag" ||
33433 test ! -s conftest.err
33434 } && test -s conftest.$ac_objext; then
33435 ac_lo=$ac_mid; break
33437 echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33440 ac_hi=`expr '(' $ac_mid ')' - 1`
33441 if test $ac_mid -le $ac_hi; then
33445 ac_mid=`expr 2 '*' $ac_mid`
33448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33461 # Binary search between lo and hi bounds.
33462 while test "x$ac_lo" != "x$ac_hi"; do
33463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33464 cat >conftest.$ac_ext <<_ACEOF
33467 cat confdefs.h >>conftest.$ac_ext
33468 cat >>conftest.$ac_ext <<_ACEOF
33469 /* end confdefs.h. */
33470 $ac_includes_default
33471 typedef short ac__type_sizeof_;
33475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33482 rm -f conftest.$ac_objext
33483 if { (ac_try="$ac_compile"
33484 case "(($ac_try" in
33485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33486 *) ac_try_echo=$ac_try;;
33488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33489 (eval "$ac_compile") 2>conftest.er1
33491 grep -v '^ *+' conftest.er1 >conftest.err
33493 cat conftest.err >&5
33494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495 (exit $ac_status); } && {
33496 test -z "$ac_c_werror_flag" ||
33497 test ! -s conftest.err
33498 } && test -s conftest.$ac_objext; then
33501 echo "$as_me: failed program was:" >&5
33502 sed 's/^/| /' conftest.$ac_ext >&5
33504 ac_lo=`expr '(' $ac_mid ')' + 1`
33507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33510 ?*) ac_cv_sizeof_short=$ac_lo;;
33511 '') if test "$ac_cv_type_short" = yes; then
33512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33513 See \`config.log' for more details." >&5
33514 echo "$as_me: error: cannot compute sizeof (short)
33515 See \`config.log' for more details." >&2;}
33516 { (exit 77); exit 77; }; }
33518 ac_cv_sizeof_short=0
33522 cat >conftest.$ac_ext <<_ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h. */
33528 $ac_includes_default
33529 typedef short ac__type_sizeof_;
33530 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33531 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33533 #include <stdlib.h>
33538 FILE *f = fopen ("conftest.val", "w");
33541 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33543 long int i = longval ();
33544 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33546 fprintf (f, "%ld\n", i);
33550 unsigned long int i = ulongval ();
33551 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33553 fprintf (f, "%lu\n", i);
33555 return ferror (f) || fclose (f) != 0;
33561 rm -f conftest$ac_exeext
33562 if { (ac_try="$ac_link"
33563 case "(($ac_try" in
33564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565 *) ac_try_echo=$ac_try;;
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568 (eval "$ac_link") 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33572 { (case "(($ac_try" in
33573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33574 *) ac_try_echo=$ac_try;;
33576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33577 (eval "$ac_try") 2>&5
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); }; }; then
33581 ac_cv_sizeof_short=`cat conftest.val`
33583 echo "$as_me: program exited with status $ac_status" >&5
33584 echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33587 ( exit $ac_status )
33588 if test "$ac_cv_type_short" = yes; then
33589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33590 See \`config.log' for more details." >&5
33591 echo "$as_me: error: cannot compute sizeof (short)
33592 See \`config.log' for more details." >&2;}
33593 { (exit 77); exit 77; }; }
33595 ac_cv_sizeof_short=0
33598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33602 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33603 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33607 cat >>confdefs.h <<_ACEOF
33608 #define SIZEOF_SHORT $ac_cv_sizeof_short
33612 { echo "$as_me:$LINENO: checking for int" >&5
33613 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33614 if test "${ac_cv_type_int+set}" = set; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33617 cat >conftest.$ac_ext <<_ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33623 $ac_includes_default
33624 typedef int ac__type_new_;
33628 if ((ac__type_new_ *) 0)
33630 if (sizeof (ac__type_new_))
33636 rm -f conftest.$ac_objext
33637 if { (ac_try="$ac_compile"
33638 case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_compile") 2>conftest.er1
33645 grep -v '^ *+' conftest.er1 >conftest.err
33647 cat conftest.err >&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); } && {
33650 test -z "$ac_c_werror_flag" ||
33651 test ! -s conftest.err
33652 } && test -s conftest.$ac_objext; then
33655 echo "$as_me: failed program was:" >&5
33656 sed 's/^/| /' conftest.$ac_ext >&5
33661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33663 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33664 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33666 # The cast to long int works around a bug in the HP C Compiler
33667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33669 # This bug is HP SR number 8606223364.
33670 { echo "$as_me:$LINENO: checking size of int" >&5
33671 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33672 if test "${ac_cv_sizeof_int+set}" = set; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33675 if test "$cross_compiling" = yes; then
33676 # Depending upon the size, compute the lo and hi bounds.
33677 cat >conftest.$ac_ext <<_ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h. */
33683 $ac_includes_default
33684 typedef int ac__type_sizeof_;
33688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33695 rm -f conftest.$ac_objext
33696 if { (ac_try="$ac_compile"
33697 case "(($ac_try" in
33698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33699 *) ac_try_echo=$ac_try;;
33701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33702 (eval "$ac_compile") 2>conftest.er1
33704 grep -v '^ *+' conftest.er1 >conftest.err
33706 cat conftest.err >&5
33707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708 (exit $ac_status); } && {
33709 test -z "$ac_c_werror_flag" ||
33710 test ! -s conftest.err
33711 } && test -s conftest.$ac_objext; then
33714 cat >conftest.$ac_ext <<_ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h. */
33720 $ac_includes_default
33721 typedef int ac__type_sizeof_;
33725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33732 rm -f conftest.$ac_objext
33733 if { (ac_try="$ac_compile"
33734 case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_compile") 2>conftest.er1
33741 grep -v '^ *+' conftest.er1 >conftest.err
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } && {
33746 test -z "$ac_c_werror_flag" ||
33747 test ! -s conftest.err
33748 } && test -s conftest.$ac_objext; then
33749 ac_hi=$ac_mid; break
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ac_lo=`expr $ac_mid + 1`
33755 if test $ac_lo -le $ac_mid; then
33759 ac_mid=`expr 2 '*' $ac_mid + 1`
33762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33765 echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
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 int ac__type_sizeof_;
33779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
33805 cat >conftest.$ac_ext <<_ACEOF
33808 cat confdefs.h >>conftest.$ac_ext
33809 cat >>conftest.$ac_ext <<_ACEOF
33810 /* end confdefs.h. */
33811 $ac_includes_default
33812 typedef int ac__type_sizeof_;
33816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_compile") 2>conftest.er1
33832 grep -v '^ *+' conftest.er1 >conftest.err
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } && {
33837 test -z "$ac_c_werror_flag" ||
33838 test ! -s conftest.err
33839 } && test -s conftest.$ac_objext; then
33840 ac_lo=$ac_mid; break
33842 echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33845 ac_hi=`expr '(' $ac_mid ')' - 1`
33846 if test $ac_mid -le $ac_hi; then
33850 ac_mid=`expr 2 '*' $ac_mid`
33853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33856 echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 # Binary search between lo and hi bounds.
33867 while test "x$ac_lo" != "x$ac_hi"; do
33868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33869 cat >conftest.$ac_ext <<_ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h. */
33875 $ac_includes_default
33876 typedef int ac__type_sizeof_;
33880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33887 rm -f conftest.$ac_objext
33888 if { (ac_try="$ac_compile"
33889 case "(($ac_try" in
33890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891 *) ac_try_echo=$ac_try;;
33893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33894 (eval "$ac_compile") 2>conftest.er1
33896 grep -v '^ *+' conftest.er1 >conftest.err
33898 cat conftest.err >&5
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); } && {
33901 test -z "$ac_c_werror_flag" ||
33902 test ! -s conftest.err
33903 } && test -s conftest.$ac_objext; then
33906 echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33909 ac_lo=`expr '(' $ac_mid ')' + 1`
33912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 ?*) ac_cv_sizeof_int=$ac_lo;;
33916 '') if test "$ac_cv_type_int" = yes; then
33917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33918 See \`config.log' for more details." >&5
33919 echo "$as_me: error: cannot compute sizeof (int)
33920 See \`config.log' for more details." >&2;}
33921 { (exit 77); exit 77; }; }
33927 cat >conftest.$ac_ext <<_ACEOF
33930 cat confdefs.h >>conftest.$ac_ext
33931 cat >>conftest.$ac_ext <<_ACEOF
33932 /* end confdefs.h. */
33933 $ac_includes_default
33934 typedef int ac__type_sizeof_;
33935 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33936 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33938 #include <stdlib.h>
33943 FILE *f = fopen ("conftest.val", "w");
33946 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33948 long int i = longval ();
33949 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33951 fprintf (f, "%ld\n", i);
33955 unsigned long int i = ulongval ();
33956 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33958 fprintf (f, "%lu\n", i);
33960 return ferror (f) || fclose (f) != 0;
33966 rm -f conftest$ac_exeext
33967 if { (ac_try="$ac_link"
33968 case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_link") 2>&5
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33977 { (case "(($ac_try" in
33978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979 *) ac_try_echo=$ac_try;;
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982 (eval "$ac_try") 2>&5
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986 ac_cv_sizeof_int=`cat conftest.val`
33988 echo "$as_me: program exited with status $ac_status" >&5
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33992 ( exit $ac_status )
33993 if test "$ac_cv_type_int" = yes; then
33994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33995 See \`config.log' for more details." >&5
33996 echo "$as_me: error: cannot compute sizeof (int)
33997 See \`config.log' for more details." >&2;}
33998 { (exit 77); exit 77; }; }
34003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34007 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34008 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34012 cat >>confdefs.h <<_ACEOF
34013 #define SIZEOF_INT $ac_cv_sizeof_int
34017 { echo "$as_me:$LINENO: checking for long" >&5
34018 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34019 if test "${ac_cv_type_long+set}" = set; then
34020 echo $ECHO_N "(cached) $ECHO_C" >&6
34022 cat >conftest.$ac_ext <<_ACEOF
34025 cat confdefs.h >>conftest.$ac_ext
34026 cat >>conftest.$ac_ext <<_ACEOF
34027 /* end confdefs.h. */
34028 $ac_includes_default
34029 typedef long ac__type_new_;
34033 if ((ac__type_new_ *) 0)
34035 if (sizeof (ac__type_new_))
34041 rm -f conftest.$ac_objext
34042 if { (ac_try="$ac_compile"
34043 case "(($ac_try" in
34044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045 *) ac_try_echo=$ac_try;;
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048 (eval "$ac_compile") 2>conftest.er1
34050 grep -v '^ *+' conftest.er1 >conftest.err
34052 cat conftest.err >&5
34053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054 (exit $ac_status); } && {
34055 test -z "$ac_c_werror_flag" ||
34056 test ! -s conftest.err
34057 } && test -s conftest.$ac_objext; then
34058 ac_cv_type_long=yes
34060 echo "$as_me: failed program was:" >&5
34061 sed 's/^/| /' conftest.$ac_ext >&5
34066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34068 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34069 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34071 # The cast to long int works around a bug in the HP C Compiler
34072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34074 # This bug is HP SR number 8606223364.
34075 { echo "$as_me:$LINENO: checking size of long" >&5
34076 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34077 if test "${ac_cv_sizeof_long+set}" = set; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34080 if test "$cross_compiling" = yes; then
34081 # Depending upon the size, compute the lo and hi bounds.
34082 cat >conftest.$ac_ext <<_ACEOF
34085 cat confdefs.h >>conftest.$ac_ext
34086 cat >>conftest.$ac_ext <<_ACEOF
34087 /* end confdefs.h. */
34088 $ac_includes_default
34089 typedef long ac__type_sizeof_;
34093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34100 rm -f conftest.$ac_objext
34101 if { (ac_try="$ac_compile"
34102 case "(($ac_try" in
34103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104 *) ac_try_echo=$ac_try;;
34106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107 (eval "$ac_compile") 2>conftest.er1
34109 grep -v '^ *+' conftest.er1 >conftest.err
34111 cat conftest.err >&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); } && {
34114 test -z "$ac_c_werror_flag" ||
34115 test ! -s conftest.err
34116 } && test -s conftest.$ac_objext; then
34119 cat >conftest.$ac_ext <<_ACEOF
34122 cat confdefs.h >>conftest.$ac_ext
34123 cat >>conftest.$ac_ext <<_ACEOF
34124 /* end confdefs.h. */
34125 $ac_includes_default
34126 typedef long ac__type_sizeof_;
34130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141 *) ac_try_echo=$ac_try;;
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144 (eval "$ac_compile") 2>conftest.er1
34146 grep -v '^ *+' conftest.er1 >conftest.err
34148 cat conftest.err >&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } && {
34151 test -z "$ac_c_werror_flag" ||
34152 test ! -s conftest.err
34153 } && test -s conftest.$ac_objext; then
34154 ac_hi=$ac_mid; break
34156 echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34159 ac_lo=`expr $ac_mid + 1`
34160 if test $ac_lo -le $ac_mid; then
34164 ac_mid=`expr 2 '*' $ac_mid + 1`
34167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
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 long ac__type_sizeof_;
34184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
34210 cat >conftest.$ac_ext <<_ACEOF
34213 cat confdefs.h >>conftest.$ac_ext
34214 cat >>conftest.$ac_ext <<_ACEOF
34215 /* end confdefs.h. */
34216 $ac_includes_default
34217 typedef long ac__type_sizeof_;
34221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34228 rm -f conftest.$ac_objext
34229 if { (ac_try="$ac_compile"
34230 case "(($ac_try" in
34231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34232 *) ac_try_echo=$ac_try;;
34234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34235 (eval "$ac_compile") 2>conftest.er1
34237 grep -v '^ *+' conftest.er1 >conftest.err
34239 cat conftest.err >&5
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); } && {
34242 test -z "$ac_c_werror_flag" ||
34243 test ! -s conftest.err
34244 } && test -s conftest.$ac_objext; then
34245 ac_lo=$ac_mid; break
34247 echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34250 ac_hi=`expr '(' $ac_mid ')' - 1`
34251 if test $ac_mid -le $ac_hi; then
34255 ac_mid=`expr 2 '*' $ac_mid`
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261 echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34271 # Binary search between lo and hi bounds.
34272 while test "x$ac_lo" != "x$ac_hi"; do
34273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 $ac_includes_default
34281 typedef long ac__type_sizeof_;
34285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34292 rm -f conftest.$ac_objext
34293 if { (ac_try="$ac_compile"
34294 case "(($ac_try" in
34295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34296 *) ac_try_echo=$ac_try;;
34298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34299 (eval "$ac_compile") 2>conftest.er1
34301 grep -v '^ *+' conftest.er1 >conftest.err
34303 cat conftest.err >&5
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); } && {
34306 test -z "$ac_c_werror_flag" ||
34307 test ! -s conftest.err
34308 } && test -s conftest.$ac_objext; then
34311 echo "$as_me: failed program was:" >&5
34312 sed 's/^/| /' conftest.$ac_ext >&5
34314 ac_lo=`expr '(' $ac_mid ')' + 1`
34317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320 ?*) ac_cv_sizeof_long=$ac_lo;;
34321 '') if test "$ac_cv_type_long" = yes; then
34322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34323 See \`config.log' for more details." >&5
34324 echo "$as_me: error: cannot compute sizeof (long)
34325 See \`config.log' for more details." >&2;}
34326 { (exit 77); exit 77; }; }
34328 ac_cv_sizeof_long=0
34332 cat >conftest.$ac_ext <<_ACEOF
34335 cat confdefs.h >>conftest.$ac_ext
34336 cat >>conftest.$ac_ext <<_ACEOF
34337 /* end confdefs.h. */
34338 $ac_includes_default
34339 typedef long ac__type_sizeof_;
34340 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34341 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34343 #include <stdlib.h>
34348 FILE *f = fopen ("conftest.val", "w");
34351 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34353 long int i = longval ();
34354 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34356 fprintf (f, "%ld\n", i);
34360 unsigned long int i = ulongval ();
34361 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34363 fprintf (f, "%lu\n", i);
34365 return ferror (f) || fclose (f) != 0;
34371 rm -f conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375 *) ac_try_echo=$ac_try;;
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378 (eval "$ac_link") 2>&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34382 { (case "(($ac_try" in
34383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384 *) ac_try_echo=$ac_try;;
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387 (eval "$ac_try") 2>&5
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); }; }; then
34391 ac_cv_sizeof_long=`cat conftest.val`
34393 echo "$as_me: program exited with status $ac_status" >&5
34394 echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34397 ( exit $ac_status )
34398 if test "$ac_cv_type_long" = yes; then
34399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34400 See \`config.log' for more details." >&5
34401 echo "$as_me: error: cannot compute sizeof (long)
34402 See \`config.log' for more details." >&2;}
34403 { (exit 77); exit 77; }; }
34405 ac_cv_sizeof_long=0
34408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34413 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34417 cat >>confdefs.h <<_ACEOF
34418 #define SIZEOF_LONG $ac_cv_sizeof_long
34422 { echo "$as_me:$LINENO: checking for long long" >&5
34423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34424 if test "${ac_cv_type_long_long+set}" = set; then
34425 echo $ECHO_N "(cached) $ECHO_C" >&6
34427 cat >conftest.$ac_ext <<_ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h. */
34433 $ac_includes_default
34434 typedef long long ac__type_new_;
34438 if ((ac__type_new_ *) 0)
34440 if (sizeof (ac__type_new_))
34446 rm -f conftest.$ac_objext
34447 if { (ac_try="$ac_compile"
34448 case "(($ac_try" in
34449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34450 *) ac_try_echo=$ac_try;;
34452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34453 (eval "$ac_compile") 2>conftest.er1
34455 grep -v '^ *+' conftest.er1 >conftest.err
34457 cat conftest.err >&5
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); } && {
34460 test -z "$ac_c_werror_flag" ||
34461 test ! -s conftest.err
34462 } && test -s conftest.$ac_objext; then
34463 ac_cv_type_long_long=yes
34465 echo "$as_me: failed program was:" >&5
34466 sed 's/^/| /' conftest.$ac_ext >&5
34468 ac_cv_type_long_long=no
34471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34473 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34474 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34476 # The cast to long int works around a bug in the HP C Compiler
34477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34479 # This bug is HP SR number 8606223364.
34480 { echo "$as_me:$LINENO: checking size of long long" >&5
34481 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34482 if test "${ac_cv_sizeof_long_long+set}" = set; then
34483 echo $ECHO_N "(cached) $ECHO_C" >&6
34485 if test "$cross_compiling" = yes; then
34486 # Depending upon the size, compute the lo and hi bounds.
34487 cat >conftest.$ac_ext <<_ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h. */
34493 $ac_includes_default
34494 typedef long long ac__type_sizeof_;
34498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34505 rm -f conftest.$ac_objext
34506 if { (ac_try="$ac_compile"
34507 case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_compile") 2>conftest.er1
34514 grep -v '^ *+' conftest.er1 >conftest.err
34516 cat conftest.err >&5
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); } && {
34519 test -z "$ac_c_werror_flag" ||
34520 test ! -s conftest.err
34521 } && test -s conftest.$ac_objext; then
34524 cat >conftest.$ac_ext <<_ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h. */
34530 $ac_includes_default
34531 typedef long long ac__type_sizeof_;
34535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34542 rm -f conftest.$ac_objext
34543 if { (ac_try="$ac_compile"
34544 case "(($ac_try" in
34545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546 *) ac_try_echo=$ac_try;;
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549 (eval "$ac_compile") 2>conftest.er1
34551 grep -v '^ *+' conftest.er1 >conftest.err
34553 cat conftest.err >&5
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); } && {
34556 test -z "$ac_c_werror_flag" ||
34557 test ! -s conftest.err
34558 } && test -s conftest.$ac_objext; then
34559 ac_hi=$ac_mid; break
34561 echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34564 ac_lo=`expr $ac_mid + 1`
34565 if test $ac_lo -le $ac_mid; then
34569 ac_mid=`expr 2 '*' $ac_mid + 1`
34572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34575 echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
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 long ac__type_sizeof_;
34589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
34615 cat >conftest.$ac_ext <<_ACEOF
34618 cat confdefs.h >>conftest.$ac_ext
34619 cat >>conftest.$ac_ext <<_ACEOF
34620 /* end confdefs.h. */
34621 $ac_includes_default
34622 typedef long long ac__type_sizeof_;
34626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34633 rm -f conftest.$ac_objext
34634 if { (ac_try="$ac_compile"
34635 case "(($ac_try" in
34636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34637 *) ac_try_echo=$ac_try;;
34639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34640 (eval "$ac_compile") 2>conftest.er1
34642 grep -v '^ *+' conftest.er1 >conftest.err
34644 cat conftest.err >&5
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); } && {
34647 test -z "$ac_c_werror_flag" ||
34648 test ! -s conftest.err
34649 } && test -s conftest.$ac_objext; then
34650 ac_lo=$ac_mid; break
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34655 ac_hi=`expr '(' $ac_mid ')' - 1`
34656 if test $ac_mid -le $ac_hi; then
34660 ac_mid=`expr 2 '*' $ac_mid`
34663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34666 echo "$as_me: failed program was:" >&5
34667 sed 's/^/| /' conftest.$ac_ext >&5
34672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676 # Binary search between lo and hi bounds.
34677 while test "x$ac_lo" != "x$ac_hi"; do
34678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34679 cat >conftest.$ac_ext <<_ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685 $ac_includes_default
34686 typedef long long ac__type_sizeof_;
34690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34697 rm -f conftest.$ac_objext
34698 if { (ac_try="$ac_compile"
34699 case "(($ac_try" in
34700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701 *) ac_try_echo=$ac_try;;
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704 (eval "$ac_compile") 2>conftest.er1
34706 grep -v '^ *+' conftest.er1 >conftest.err
34708 cat conftest.err >&5
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); } && {
34711 test -z "$ac_c_werror_flag" ||
34712 test ! -s conftest.err
34713 } && test -s conftest.$ac_objext; then
34716 echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34719 ac_lo=`expr '(' $ac_mid ')' + 1`
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34726 '') if test "$ac_cv_type_long_long" = yes; then
34727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34728 See \`config.log' for more details." >&5
34729 echo "$as_me: error: cannot compute sizeof (long long)
34730 See \`config.log' for more details." >&2;}
34731 { (exit 77); exit 77; }; }
34733 ac_cv_sizeof_long_long=0
34737 cat >conftest.$ac_ext <<_ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h. */
34743 $ac_includes_default
34744 typedef long long ac__type_sizeof_;
34745 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34746 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34748 #include <stdlib.h>
34753 FILE *f = fopen ("conftest.val", "w");
34756 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34758 long int i = longval ();
34759 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34761 fprintf (f, "%ld\n", i);
34765 unsigned long int i = ulongval ();
34766 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34768 fprintf (f, "%lu\n", i);
34770 return ferror (f) || fclose (f) != 0;
34776 rm -f conftest$ac_exeext
34777 if { (ac_try="$ac_link"
34778 case "(($ac_try" in
34779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34780 *) ac_try_echo=$ac_try;;
34782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34783 (eval "$ac_link") 2>&5
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34787 { (case "(($ac_try" in
34788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789 *) ac_try_echo=$ac_try;;
34791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792 (eval "$ac_try") 2>&5
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; }; then
34796 ac_cv_sizeof_long_long=`cat conftest.val`
34798 echo "$as_me: program exited with status $ac_status" >&5
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 ( exit $ac_status )
34803 if test "$ac_cv_type_long_long" = yes; then
34804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34805 See \`config.log' for more details." >&5
34806 echo "$as_me: error: cannot compute sizeof (long long)
34807 See \`config.log' for more details." >&2;}
34808 { (exit 77); exit 77; }; }
34810 ac_cv_sizeof_long_long=0
34813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34817 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34818 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34822 cat >>confdefs.h <<_ACEOF
34823 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34827 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34828 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34829 if test "${ac_cv_type_wchar_t+set}" = set; then
34830 echo $ECHO_N "(cached) $ECHO_C" >&6
34832 cat >conftest.$ac_ext <<_ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h. */
34838 $ac_includes_default
34839 typedef wchar_t ac__type_new_;
34843 if ((ac__type_new_ *) 0)
34845 if (sizeof (ac__type_new_))
34851 rm -f conftest.$ac_objext
34852 if { (ac_try="$ac_compile"
34853 case "(($ac_try" in
34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855 *) ac_try_echo=$ac_try;;
34857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858 (eval "$ac_compile") 2>conftest.er1
34860 grep -v '^ *+' conftest.er1 >conftest.err
34862 cat conftest.err >&5
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); } && {
34865 test -z "$ac_c_werror_flag" ||
34866 test ! -s conftest.err
34867 } && test -s conftest.$ac_objext; then
34868 ac_cv_type_wchar_t=yes
34870 echo "$as_me: failed program was:" >&5
34871 sed 's/^/| /' conftest.$ac_ext >&5
34873 ac_cv_type_wchar_t=no
34876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34878 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34879 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34881 # The cast to long int works around a bug in the HP C Compiler
34882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34884 # This bug is HP SR number 8606223364.
34885 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34886 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34887 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34888 echo $ECHO_N "(cached) $ECHO_C" >&6
34890 if test "$cross_compiling" = yes; then
34891 # Depending upon the size, compute the lo and hi bounds.
34892 cat >conftest.$ac_ext <<_ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h. */
34898 $ac_includes_default
34899 typedef wchar_t ac__type_sizeof_;
34903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34910 rm -f conftest.$ac_objext
34911 if { (ac_try="$ac_compile"
34912 case "(($ac_try" in
34913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914 *) ac_try_echo=$ac_try;;
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917 (eval "$ac_compile") 2>conftest.er1
34919 grep -v '^ *+' conftest.er1 >conftest.err
34921 cat conftest.err >&5
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } && {
34924 test -z "$ac_c_werror_flag" ||
34925 test ! -s conftest.err
34926 } && test -s conftest.$ac_objext; then
34929 cat >conftest.$ac_ext <<_ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h. */
34935 $ac_includes_default
34936 typedef wchar_t ac__type_sizeof_;
34940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34947 rm -f conftest.$ac_objext
34948 if { (ac_try="$ac_compile"
34949 case "(($ac_try" in
34950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34951 *) ac_try_echo=$ac_try;;
34953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34954 (eval "$ac_compile") 2>conftest.er1
34956 grep -v '^ *+' conftest.er1 >conftest.err
34958 cat conftest.err >&5
34959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960 (exit $ac_status); } && {
34961 test -z "$ac_c_werror_flag" ||
34962 test ! -s conftest.err
34963 } && test -s conftest.$ac_objext; then
34964 ac_hi=$ac_mid; break
34966 echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34969 ac_lo=`expr $ac_mid + 1`
34970 if test $ac_lo -le $ac_mid; then
34974 ac_mid=`expr 2 '*' $ac_mid + 1`
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980 echo "$as_me: failed program was:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
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 wchar_t ac__type_sizeof_;
34994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
35020 cat >conftest.$ac_ext <<_ACEOF
35023 cat confdefs.h >>conftest.$ac_ext
35024 cat >>conftest.$ac_ext <<_ACEOF
35025 /* end confdefs.h. */
35026 $ac_includes_default
35027 typedef wchar_t ac__type_sizeof_;
35031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35038 rm -f conftest.$ac_objext
35039 if { (ac_try="$ac_compile"
35040 case "(($ac_try" in
35041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35042 *) ac_try_echo=$ac_try;;
35044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35045 (eval "$ac_compile") 2>conftest.er1
35047 grep -v '^ *+' conftest.er1 >conftest.err
35049 cat conftest.err >&5
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } && {
35052 test -z "$ac_c_werror_flag" ||
35053 test ! -s conftest.err
35054 } && test -s conftest.$ac_objext; then
35055 ac_lo=$ac_mid; break
35057 echo "$as_me: failed program was:" >&5
35058 sed 's/^/| /' conftest.$ac_ext >&5
35060 ac_hi=`expr '(' $ac_mid ')' - 1`
35061 if test $ac_mid -le $ac_hi; then
35065 ac_mid=`expr 2 '*' $ac_mid`
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35071 echo "$as_me: failed program was:" >&5
35072 sed 's/^/| /' conftest.$ac_ext >&5
35077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35081 # Binary search between lo and hi bounds.
35082 while test "x$ac_lo" != "x$ac_hi"; do
35083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35084 cat >conftest.$ac_ext <<_ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h. */
35090 $ac_includes_default
35091 typedef wchar_t ac__type_sizeof_;
35095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35102 rm -f conftest.$ac_objext
35103 if { (ac_try="$ac_compile"
35104 case "(($ac_try" in
35105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35106 *) ac_try_echo=$ac_try;;
35108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35109 (eval "$ac_compile") 2>conftest.er1
35111 grep -v '^ *+' conftest.er1 >conftest.err
35113 cat conftest.err >&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } && {
35116 test -z "$ac_c_werror_flag" ||
35117 test ! -s conftest.err
35118 } && test -s conftest.$ac_objext; then
35121 echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35124 ac_lo=`expr '(' $ac_mid ')' + 1`
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35131 '') if test "$ac_cv_type_wchar_t" = yes; then
35132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35133 See \`config.log' for more details." >&5
35134 echo "$as_me: error: cannot compute sizeof (wchar_t)
35135 See \`config.log' for more details." >&2;}
35136 { (exit 77); exit 77; }; }
35138 ac_cv_sizeof_wchar_t=0
35142 cat >conftest.$ac_ext <<_ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h. */
35148 $ac_includes_default
35149 typedef wchar_t ac__type_sizeof_;
35150 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35151 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35153 #include <stdlib.h>
35158 FILE *f = fopen ("conftest.val", "w");
35161 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35163 long int i = longval ();
35164 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35166 fprintf (f, "%ld\n", i);
35170 unsigned long int i = ulongval ();
35171 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35173 fprintf (f, "%lu\n", i);
35175 return ferror (f) || fclose (f) != 0;
35181 rm -f conftest$ac_exeext
35182 if { (ac_try="$ac_link"
35183 case "(($ac_try" in
35184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35185 *) ac_try_echo=$ac_try;;
35187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35188 (eval "$ac_link") 2>&5
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35192 { (case "(($ac_try" in
35193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35194 *) ac_try_echo=$ac_try;;
35196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35197 (eval "$ac_try") 2>&5
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); }; }; then
35201 ac_cv_sizeof_wchar_t=`cat conftest.val`
35203 echo "$as_me: program exited with status $ac_status" >&5
35204 echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35207 ( exit $ac_status )
35208 if test "$ac_cv_type_wchar_t" = yes; then
35209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35210 See \`config.log' for more details." >&5
35211 echo "$as_me: error: cannot compute sizeof (wchar_t)
35212 See \`config.log' for more details." >&2;}
35213 { (exit 77); exit 77; }; }
35215 ac_cv_sizeof_wchar_t=0
35218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35222 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35223 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35227 cat >>confdefs.h <<_ACEOF
35228 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35233 if test "$ac_cv_sizeof_int" -lt 4 ; then
35234 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35235 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35238 cat >>confdefs.h <<\_ACEOF
35239 #define LBER_INT_T long
35244 cat >>confdefs.h <<\_ACEOF
35245 #define LBER_INT_T int
35251 cat >>confdefs.h <<\_ACEOF
35252 #define LBER_LEN_T long
35256 cat >>confdefs.h <<\_ACEOF
35257 #define LBER_SOCKET_T int
35261 cat >>confdefs.h <<\_ACEOF
35262 #define LBER_TAG_T long
35266 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35267 if test $ac_cv_sizeof_long_long -gt 4 ; then
35268 ol_with_mp=longlong
35270 cat >>confdefs.h <<\_ACEOF
35271 #define USE_MP_LONG_LONG 1
35274 elif test $ol_with_mp = longlong ; then
35275 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35276 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35277 { (exit 1); exit 1; }; }
35280 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35281 if test $ac_cv_sizeof_long -gt 4 ; then
35284 cat >>confdefs.h <<\_ACEOF
35285 #define USE_MP_LONG 1
35288 elif test $ol_with_mp = long ; then
35289 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35290 echo "$as_me: error: long unusable for multiple precision" >&2;}
35291 { (exit 1); exit 1; }; }
35294 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35296 for ac_header in openssl/bn.h
35298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35305 ac_res=`eval echo '${'$as_ac_Header'}'`
35306 { echo "$as_me:$LINENO: result: $ac_res" >&5
35307 echo "${ECHO_T}$ac_res" >&6; }
35309 # Is the header compilable?
35310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35312 cat >conftest.$ac_ext <<_ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h. */
35318 $ac_includes_default
35319 #include <$ac_header>
35321 rm -f conftest.$ac_objext
35322 if { (ac_try="$ac_compile"
35323 case "(($ac_try" in
35324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325 *) ac_try_echo=$ac_try;;
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328 (eval "$ac_compile") 2>conftest.er1
35330 grep -v '^ *+' conftest.er1 >conftest.err
35332 cat conftest.err >&5
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } && {
35335 test -z "$ac_c_werror_flag" ||
35336 test ! -s conftest.err
35337 } && test -s conftest.$ac_objext; then
35338 ac_header_compiler=yes
35340 echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35343 ac_header_compiler=no
35346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35348 echo "${ECHO_T}$ac_header_compiler" >&6; }
35350 # Is the header present?
35351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35353 cat >conftest.$ac_ext <<_ACEOF
35356 cat confdefs.h >>conftest.$ac_ext
35357 cat >>conftest.$ac_ext <<_ACEOF
35358 /* end confdefs.h. */
35359 #include <$ac_header>
35361 if { (ac_try="$ac_cpp conftest.$ac_ext"
35362 case "(($ac_try" in
35363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35364 *) ac_try_echo=$ac_try;;
35366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35369 grep -v '^ *+' conftest.er1 >conftest.err
35371 cat conftest.err >&5
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); } >/dev/null && {
35374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35375 test ! -s conftest.err
35377 ac_header_preproc=yes
35379 echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35382 ac_header_preproc=no
35385 rm -f conftest.err conftest.$ac_ext
35386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35387 echo "${ECHO_T}$ac_header_preproc" >&6; }
35389 # So? What about this header?
35390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35396 ac_header_preproc=yes
35399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35412 ## --------------------------------------------- ##
35413 ## Report this to <http://www.openldap.org/its/> ##
35414 ## --------------------------------------------- ##
35416 ) | sed "s/^/$as_me: WARNING: /" >&2
35419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35424 eval "$as_ac_Header=\$ac_header_preproc"
35426 ac_res=`eval echo '${'$as_ac_Header'}'`
35427 { echo "$as_me:$LINENO: result: $ac_res" >&5
35428 echo "${ECHO_T}$ac_res" >&6; }
35431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35432 cat >>confdefs.h <<_ACEOF
35433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35441 for ac_header in openssl/crypto.h
35443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35448 echo $ECHO_N "(cached) $ECHO_C" >&6
35450 ac_res=`eval echo '${'$as_ac_Header'}'`
35451 { echo "$as_me:$LINENO: result: $ac_res" >&5
35452 echo "${ECHO_T}$ac_res" >&6; }
35454 # Is the header compilable?
35455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35457 cat >conftest.$ac_ext <<_ACEOF
35460 cat confdefs.h >>conftest.$ac_ext
35461 cat >>conftest.$ac_ext <<_ACEOF
35462 /* end confdefs.h. */
35463 $ac_includes_default
35464 #include <$ac_header>
35466 rm -f conftest.$ac_objext
35467 if { (ac_try="$ac_compile"
35468 case "(($ac_try" in
35469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470 *) ac_try_echo=$ac_try;;
35472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473 (eval "$ac_compile") 2>conftest.er1
35475 grep -v '^ *+' conftest.er1 >conftest.err
35477 cat conftest.err >&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } && {
35480 test -z "$ac_c_werror_flag" ||
35481 test ! -s conftest.err
35482 } && test -s conftest.$ac_objext; then
35483 ac_header_compiler=yes
35485 echo "$as_me: failed program was:" >&5
35486 sed 's/^/| /' conftest.$ac_ext >&5
35488 ac_header_compiler=no
35491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35493 echo "${ECHO_T}$ac_header_compiler" >&6; }
35495 # Is the header present?
35496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35498 cat >conftest.$ac_ext <<_ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h. */
35504 #include <$ac_header>
35506 if { (ac_try="$ac_cpp conftest.$ac_ext"
35507 case "(($ac_try" in
35508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35509 *) ac_try_echo=$ac_try;;
35511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35514 grep -v '^ *+' conftest.er1 >conftest.err
35516 cat conftest.err >&5
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); } >/dev/null && {
35519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35520 test ! -s conftest.err
35522 ac_header_preproc=yes
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 ac_header_preproc=no
35530 rm -f conftest.err conftest.$ac_ext
35531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35532 echo "${ECHO_T}$ac_header_preproc" >&6; }
35534 # So? What about this header?
35535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35541 ac_header_preproc=yes
35544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35557 ## --------------------------------------------- ##
35558 ## Report this to <http://www.openldap.org/its/> ##
35559 ## --------------------------------------------- ##
35561 ) | sed "s/^/$as_me: WARNING: /" >&2
35564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35567 echo $ECHO_N "(cached) $ECHO_C" >&6
35569 eval "$as_ac_Header=\$ac_header_preproc"
35571 ac_res=`eval echo '${'$as_ac_Header'}'`
35572 { echo "$as_me:$LINENO: result: $ac_res" >&5
35573 echo "${ECHO_T}$ac_res" >&6; }
35576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35577 cat >>confdefs.h <<_ACEOF
35578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35585 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35586 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35587 test "$ol_with_tls" = "found" ; then
35590 cat >>confdefs.h <<\_ACEOF
35591 #define USE_MP_BIGNUM 1
35594 elif test $ol_with_mp = bignum ; then
35595 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35596 echo "$as_me: error: bignum not available" >&2;}
35597 { (exit 1); exit 1; }; }
35600 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35602 for ac_header in gmp.h
35604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35609 echo $ECHO_N "(cached) $ECHO_C" >&6
35611 ac_res=`eval echo '${'$as_ac_Header'}'`
35612 { echo "$as_me:$LINENO: result: $ac_res" >&5
35613 echo "${ECHO_T}$ac_res" >&6; }
35615 # Is the header compilable?
35616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35618 cat >conftest.$ac_ext <<_ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h. */
35624 $ac_includes_default
35625 #include <$ac_header>
35627 rm -f conftest.$ac_objext
35628 if { (ac_try="$ac_compile"
35629 case "(($ac_try" in
35630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35631 *) ac_try_echo=$ac_try;;
35633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35634 (eval "$ac_compile") 2>conftest.er1
35636 grep -v '^ *+' conftest.er1 >conftest.err
35638 cat conftest.err >&5
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); } && {
35641 test -z "$ac_c_werror_flag" ||
35642 test ! -s conftest.err
35643 } && test -s conftest.$ac_objext; then
35644 ac_header_compiler=yes
35646 echo "$as_me: failed program was:" >&5
35647 sed 's/^/| /' conftest.$ac_ext >&5
35649 ac_header_compiler=no
35652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35654 echo "${ECHO_T}$ac_header_compiler" >&6; }
35656 # Is the header present?
35657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35659 cat >conftest.$ac_ext <<_ACEOF
35662 cat confdefs.h >>conftest.$ac_ext
35663 cat >>conftest.$ac_ext <<_ACEOF
35664 /* end confdefs.h. */
35665 #include <$ac_header>
35667 if { (ac_try="$ac_cpp conftest.$ac_ext"
35668 case "(($ac_try" in
35669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670 *) ac_try_echo=$ac_try;;
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35675 grep -v '^ *+' conftest.er1 >conftest.err
35677 cat conftest.err >&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } >/dev/null && {
35680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35681 test ! -s conftest.err
35683 ac_header_preproc=yes
35685 echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35688 ac_header_preproc=no
35691 rm -f conftest.err conftest.$ac_ext
35692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35693 echo "${ECHO_T}$ac_header_preproc" >&6; }
35695 # So? What about this header?
35696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35702 ac_header_preproc=yes
35705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35718 ## --------------------------------------------- ##
35719 ## Report this to <http://www.openldap.org/its/> ##
35720 ## --------------------------------------------- ##
35722 ) | sed "s/^/$as_me: WARNING: /" >&2
35725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35728 echo $ECHO_N "(cached) $ECHO_C" >&6
35730 eval "$as_ac_Header=\$ac_header_preproc"
35732 ac_res=`eval echo '${'$as_ac_Header'}'`
35733 { echo "$as_me:$LINENO: result: $ac_res" >&5
35734 echo "${ECHO_T}$ac_res" >&6; }
35737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35738 cat >>confdefs.h <<_ACEOF
35739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35747 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35748 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35749 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35750 echo $ECHO_N "(cached) $ECHO_C" >&6
35752 ac_check_lib_save_LIBS=$LIBS
35754 cat >conftest.$ac_ext <<_ACEOF
35757 cat confdefs.h >>conftest.$ac_ext
35758 cat >>conftest.$ac_ext <<_ACEOF
35759 /* end confdefs.h. */
35761 /* Override any GCC internal prototype to avoid an error.
35762 Use char because int might match the return type of a GCC
35763 builtin and then its argument prototype would still apply. */
35767 char __gmpz_add_ui ();
35771 return __gmpz_add_ui ();
35776 rm -f conftest.$ac_objext conftest$ac_exeext
35777 if { (ac_try="$ac_link"
35778 case "(($ac_try" in
35779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35780 *) ac_try_echo=$ac_try;;
35782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35783 (eval "$ac_link") 2>conftest.er1
35785 grep -v '^ *+' conftest.er1 >conftest.err
35787 cat conftest.err >&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } && {
35790 test -z "$ac_c_werror_flag" ||
35791 test ! -s conftest.err
35792 } && test -s conftest$ac_exeext &&
35793 $as_test_x conftest$ac_exeext; then
35794 ac_cv_lib_gmp___gmpz_add_ui=yes
35796 echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35799 ac_cv_lib_gmp___gmpz_add_ui=no
35802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35803 conftest$ac_exeext conftest.$ac_ext
35804 LIBS=$ac_check_lib_save_LIBS
35806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35807 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35808 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35809 cat >>confdefs.h <<_ACEOF
35810 #define HAVE_LIBGMP 1
35817 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35819 cat >>confdefs.h <<\_ACEOF
35820 #define USE_MP_GMP 1
35824 elif test $ol_with_mp = gmp ; then
35825 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35826 echo "$as_me: error: gmp not available" >&2;}
35827 { (exit 1); exit 1; }; }
35830 if test $ol_with_mp = auto ; then
35834 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35835 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35836 if test "${ac_cv_func_memcmp_working+set}" = set; then
35837 echo $ECHO_N "(cached) $ECHO_C" >&6
35839 if test "$cross_compiling" = yes; then
35840 ac_cv_func_memcmp_working=no
35842 cat >conftest.$ac_ext <<_ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h. */
35848 $ac_includes_default
35853 /* Some versions of memcmp are not 8-bit clean. */
35854 char c0 = '\100', c1 = '\200', c2 = '\201';
35855 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35858 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35859 or more and with at least one buffer not starting on a 4-byte boundary.
35860 William Lewis provided this test program. */
35865 for (i = 0; i < 4; i++)
35869 strcpy (a, "--------01111111");
35870 strcpy (b, "--------10000000");
35871 if (memcmp (a, b, 16) >= 0)
35881 rm -f conftest$ac_exeext
35882 if { (ac_try="$ac_link"
35883 case "(($ac_try" in
35884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35885 *) ac_try_echo=$ac_try;;
35887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35888 (eval "$ac_link") 2>&5
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35892 { (case "(($ac_try" in
35893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894 *) ac_try_echo=$ac_try;;
35896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897 (eval "$ac_try") 2>&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); }; }; then
35901 ac_cv_func_memcmp_working=yes
35903 echo "$as_me: program exited with status $ac_status" >&5
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 ( exit $ac_status )
35908 ac_cv_func_memcmp_working=no
35910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35915 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35916 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35917 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35918 *" memcmp.$ac_objext "* ) ;;
35919 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35925 if test $ac_cv_func_memcmp_working = no ; then
35927 cat >>confdefs.h <<\_ACEOF
35928 #define NEED_MEMCMP_REPLACEMENT 1
35934 for ac_func in strftime
35936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35940 echo $ECHO_N "(cached) $ECHO_C" >&6
35942 cat >conftest.$ac_ext <<_ACEOF
35945 cat confdefs.h >>conftest.$ac_ext
35946 cat >>conftest.$ac_ext <<_ACEOF
35947 /* end confdefs.h. */
35948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35950 #define $ac_func innocuous_$ac_func
35952 /* System header to define __stub macros and hopefully few prototypes,
35953 which can conflict with char $ac_func (); below.
35954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35955 <limits.h> exists even on freestanding compilers. */
35958 # include <limits.h>
35960 # include <assert.h>
35965 /* Override any GCC internal prototype to avoid an error.
35966 Use char because int might match the return type of a GCC
35967 builtin and then its argument prototype would still apply. */
35972 /* The GNU C library defines this for functions which it implements
35973 to always fail with ENOSYS. Some functions are actually named
35974 something starting with __ and the normal name is an alias. */
35975 #if defined __stub_$ac_func || defined __stub___$ac_func
35982 return $ac_func ();
35987 rm -f conftest.$ac_objext conftest$ac_exeext
35988 if { (ac_try="$ac_link"
35989 case "(($ac_try" in
35990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991 *) ac_try_echo=$ac_try;;
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994 (eval "$ac_link") 2>conftest.er1
35996 grep -v '^ *+' conftest.er1 >conftest.err
35998 cat conftest.err >&5
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); } && {
36001 test -z "$ac_c_werror_flag" ||
36002 test ! -s conftest.err
36003 } && test -s conftest$ac_exeext &&
36004 $as_test_x conftest$ac_exeext; then
36005 eval "$as_ac_var=yes"
36007 echo "$as_me: failed program was:" >&5
36008 sed 's/^/| /' conftest.$ac_ext >&5
36010 eval "$as_ac_var=no"
36013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36014 conftest$ac_exeext conftest.$ac_ext
36016 ac_res=`eval echo '${'$as_ac_var'}'`
36017 { echo "$as_me:$LINENO: result: $ac_res" >&5
36018 echo "${ECHO_T}$ac_res" >&6; }
36019 if test `eval echo '${'$as_ac_var'}'` = yes; then
36020 cat >>confdefs.h <<_ACEOF
36021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36025 # strftime is in -lintl on SCO UNIX.
36026 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36027 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36028 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36029 echo $ECHO_N "(cached) $ECHO_C" >&6
36031 ac_check_lib_save_LIBS=$LIBS
36032 LIBS="-lintl $LIBS"
36033 cat >conftest.$ac_ext <<_ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h. */
36040 /* Override any GCC internal prototype to avoid an error.
36041 Use char because int might match the return type of a GCC
36042 builtin and then its argument prototype would still apply. */
36050 return strftime ();
36055 rm -f conftest.$ac_objext conftest$ac_exeext
36056 if { (ac_try="$ac_link"
36057 case "(($ac_try" in
36058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36059 *) ac_try_echo=$ac_try;;
36061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36062 (eval "$ac_link") 2>conftest.er1
36064 grep -v '^ *+' conftest.er1 >conftest.err
36066 cat conftest.err >&5
36067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068 (exit $ac_status); } && {
36069 test -z "$ac_c_werror_flag" ||
36070 test ! -s conftest.err
36071 } && test -s conftest$ac_exeext &&
36072 $as_test_x conftest$ac_exeext; then
36073 ac_cv_lib_intl_strftime=yes
36075 echo "$as_me: failed program was:" >&5
36076 sed 's/^/| /' conftest.$ac_ext >&5
36078 ac_cv_lib_intl_strftime=no
36081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36082 conftest$ac_exeext conftest.$ac_ext
36083 LIBS=$ac_check_lib_save_LIBS
36085 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36086 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36087 if test $ac_cv_lib_intl_strftime = yes; then
36088 cat >>confdefs.h <<\_ACEOF
36089 #define HAVE_STRFTIME 1
36092 LIBS="-lintl $LIBS"
36099 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36100 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36101 if test "${ol_cv_func_inet_aton+set}" = set; then
36102 echo $ECHO_N "(cached) $ECHO_C" >&6
36104 cat >conftest.$ac_ext <<_ACEOF
36107 cat confdefs.h >>conftest.$ac_ext
36108 cat >>conftest.$ac_ext <<_ACEOF
36109 /* end confdefs.h. */
36111 #ifdef HAVE_SYS_TYPES_H
36112 # include <sys/types.h>
36114 #ifdef HAVE_SYS_SOCKET_H
36115 # include <sys/socket.h>
36116 # ifdef HAVE_SYS_SELECT_H
36117 # include <sys/select.h>
36119 # include <netinet/in.h>
36120 # ifdef HAVE_ARPA_INET_H
36121 # include <arpa/inet.h>
36129 int rc = inet_aton( "255.255.255.255", &in );
36134 rm -f conftest.$ac_objext conftest$ac_exeext
36135 if { (ac_try="$ac_link"
36136 case "(($ac_try" in
36137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36138 *) ac_try_echo=$ac_try;;
36140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36141 (eval "$ac_link") 2>conftest.er1
36143 grep -v '^ *+' conftest.er1 >conftest.err
36145 cat conftest.err >&5
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); } && {
36148 test -z "$ac_c_werror_flag" ||
36149 test ! -s conftest.err
36150 } && test -s conftest$ac_exeext &&
36151 $as_test_x conftest$ac_exeext; then
36152 ol_cv_func_inet_aton=yes
36154 echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36157 ol_cv_func_inet_aton=no
36160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36161 conftest$ac_exeext conftest.$ac_ext
36163 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36164 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36165 if test $ol_cv_func_inet_aton != no; then
36167 cat >>confdefs.h <<\_ACEOF
36168 #define HAVE_INET_ATON 1
36174 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36175 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36176 if test "${ac_cv_func__spawnlp+set}" = set; then
36177 echo $ECHO_N "(cached) $ECHO_C" >&6
36179 cat >conftest.$ac_ext <<_ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h. */
36185 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36187 #define _spawnlp innocuous__spawnlp
36189 /* System header to define __stub macros and hopefully few prototypes,
36190 which can conflict with char _spawnlp (); below.
36191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36192 <limits.h> exists even on freestanding compilers. */
36195 # include <limits.h>
36197 # include <assert.h>
36202 /* Override any GCC internal prototype to avoid an error.
36203 Use char because int might match the return type of a GCC
36204 builtin and then its argument prototype would still apply. */
36209 /* The GNU C library defines this for functions which it implements
36210 to always fail with ENOSYS. Some functions are actually named
36211 something starting with __ and the normal name is an alias. */
36212 #if defined __stub__spawnlp || defined __stub____spawnlp
36219 return _spawnlp ();
36224 rm -f conftest.$ac_objext conftest$ac_exeext
36225 if { (ac_try="$ac_link"
36226 case "(($ac_try" in
36227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36228 *) ac_try_echo=$ac_try;;
36230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36231 (eval "$ac_link") 2>conftest.er1
36233 grep -v '^ *+' conftest.er1 >conftest.err
36235 cat conftest.err >&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } && {
36238 test -z "$ac_c_werror_flag" ||
36239 test ! -s conftest.err
36240 } && test -s conftest$ac_exeext &&
36241 $as_test_x conftest$ac_exeext; then
36242 ac_cv_func__spawnlp=yes
36244 echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36247 ac_cv_func__spawnlp=no
36250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36251 conftest$ac_exeext conftest.$ac_ext
36253 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36254 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36255 if test $ac_cv_func__spawnlp = yes; then
36257 cat >>confdefs.h <<\_ACEOF
36258 #define HAVE_SPAWNLP 1
36264 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36265 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36266 if test "${ac_cv_func__snprintf+set}" = set; then
36267 echo $ECHO_N "(cached) $ECHO_C" >&6
36269 cat >conftest.$ac_ext <<_ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h. */
36275 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36277 #define _snprintf innocuous__snprintf
36279 /* System header to define __stub macros and hopefully few prototypes,
36280 which can conflict with char _snprintf (); below.
36281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36282 <limits.h> exists even on freestanding compilers. */
36285 # include <limits.h>
36287 # include <assert.h>
36292 /* Override any GCC internal prototype to avoid an error.
36293 Use char because int might match the return type of a GCC
36294 builtin and then its argument prototype would still apply. */
36299 /* The GNU C library defines this for functions which it implements
36300 to always fail with ENOSYS. Some functions are actually named
36301 something starting with __ and the normal name is an alias. */
36302 #if defined __stub__snprintf || defined __stub____snprintf
36309 return _snprintf ();
36314 rm -f conftest.$ac_objext conftest$ac_exeext
36315 if { (ac_try="$ac_link"
36316 case "(($ac_try" in
36317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318 *) ac_try_echo=$ac_try;;
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321 (eval "$ac_link") 2>conftest.er1
36323 grep -v '^ *+' conftest.er1 >conftest.err
36325 cat conftest.err >&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } && {
36328 test -z "$ac_c_werror_flag" ||
36329 test ! -s conftest.err
36330 } && test -s conftest$ac_exeext &&
36331 $as_test_x conftest$ac_exeext; then
36332 ac_cv_func__snprintf=yes
36334 echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36337 ac_cv_func__snprintf=no
36340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36341 conftest$ac_exeext conftest.$ac_ext
36343 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36344 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36345 if test $ac_cv_func__snprintf = yes; then
36346 ac_cv_func_snprintf=yes
36348 cat >>confdefs.h <<\_ACEOF
36349 #define snprintf _snprintf
36358 for ac_func in vsnprintf _vsnprintf
36360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36364 echo $ECHO_N "(cached) $ECHO_C" >&6
36366 cat >conftest.$ac_ext <<_ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h. */
36372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36374 #define $ac_func innocuous_$ac_func
36376 /* System header to define __stub macros and hopefully few prototypes,
36377 which can conflict with char $ac_func (); below.
36378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379 <limits.h> exists even on freestanding compilers. */
36382 # include <limits.h>
36384 # include <assert.h>
36389 /* Override any GCC internal prototype to avoid an error.
36390 Use char because int might match the return type of a GCC
36391 builtin and then its argument prototype would still apply. */
36396 /* The GNU C library defines this for functions which it implements
36397 to always fail with ENOSYS. Some functions are actually named
36398 something starting with __ and the normal name is an alias. */
36399 #if defined __stub_$ac_func || defined __stub___$ac_func
36406 return $ac_func ();
36411 rm -f conftest.$ac_objext conftest$ac_exeext
36412 if { (ac_try="$ac_link"
36413 case "(($ac_try" in
36414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415 *) ac_try_echo=$ac_try;;
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418 (eval "$ac_link") 2>conftest.er1
36420 grep -v '^ *+' conftest.er1 >conftest.err
36422 cat conftest.err >&5
36423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424 (exit $ac_status); } && {
36425 test -z "$ac_c_werror_flag" ||
36426 test ! -s conftest.err
36427 } && test -s conftest$ac_exeext &&
36428 $as_test_x conftest$ac_exeext; then
36429 eval "$as_ac_var=yes"
36431 echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36434 eval "$as_ac_var=no"
36437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36438 conftest$ac_exeext conftest.$ac_ext
36440 ac_res=`eval echo '${'$as_ac_var'}'`
36441 { echo "$as_me:$LINENO: result: $ac_res" >&5
36442 echo "${ECHO_T}$ac_res" >&6; }
36443 if test `eval echo '${'$as_ac_var'}'` = yes; then
36444 cat >>confdefs.h <<_ACEOF
36445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36452 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36453 ac_cv_func_vsnprintf=yes
36455 cat >>confdefs.h <<\_ACEOF
36456 #define vsnprintf _vsnprintf
36462 for ac_func in vprintf
36464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36468 echo $ECHO_N "(cached) $ECHO_C" >&6
36470 cat >conftest.$ac_ext <<_ACEOF
36473 cat confdefs.h >>conftest.$ac_ext
36474 cat >>conftest.$ac_ext <<_ACEOF
36475 /* end confdefs.h. */
36476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36478 #define $ac_func innocuous_$ac_func
36480 /* System header to define __stub macros and hopefully few prototypes,
36481 which can conflict with char $ac_func (); below.
36482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36483 <limits.h> exists even on freestanding compilers. */
36486 # include <limits.h>
36488 # include <assert.h>
36493 /* Override any GCC internal prototype to avoid an error.
36494 Use char because int might match the return type of a GCC
36495 builtin and then its argument prototype would still apply. */
36500 /* The GNU C library defines this for functions which it implements
36501 to always fail with ENOSYS. Some functions are actually named
36502 something starting with __ and the normal name is an alias. */
36503 #if defined __stub_$ac_func || defined __stub___$ac_func
36510 return $ac_func ();
36515 rm -f conftest.$ac_objext conftest$ac_exeext
36516 if { (ac_try="$ac_link"
36517 case "(($ac_try" in
36518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36519 *) ac_try_echo=$ac_try;;
36521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36522 (eval "$ac_link") 2>conftest.er1
36524 grep -v '^ *+' conftest.er1 >conftest.err
36526 cat conftest.err >&5
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); } && {
36529 test -z "$ac_c_werror_flag" ||
36530 test ! -s conftest.err
36531 } && test -s conftest$ac_exeext &&
36532 $as_test_x conftest$ac_exeext; then
36533 eval "$as_ac_var=yes"
36535 echo "$as_me: failed program was:" >&5
36536 sed 's/^/| /' conftest.$ac_ext >&5
36538 eval "$as_ac_var=no"
36541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36542 conftest$ac_exeext conftest.$ac_ext
36544 ac_res=`eval echo '${'$as_ac_var'}'`
36545 { echo "$as_me:$LINENO: result: $ac_res" >&5
36546 echo "${ECHO_T}$ac_res" >&6; }
36547 if test `eval echo '${'$as_ac_var'}'` = yes; then
36548 cat >>confdefs.h <<_ACEOF
36549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36552 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36553 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36554 if test "${ac_cv_func__doprnt+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36557 cat >conftest.$ac_ext <<_ACEOF
36560 cat confdefs.h >>conftest.$ac_ext
36561 cat >>conftest.$ac_ext <<_ACEOF
36562 /* end confdefs.h. */
36563 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36565 #define _doprnt innocuous__doprnt
36567 /* System header to define __stub macros and hopefully few prototypes,
36568 which can conflict with char _doprnt (); below.
36569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36570 <limits.h> exists even on freestanding compilers. */
36573 # include <limits.h>
36575 # include <assert.h>
36580 /* Override any GCC internal prototype to avoid an error.
36581 Use char because int might match the return type of a GCC
36582 builtin and then its argument prototype would still apply. */
36587 /* The GNU C library defines this for functions which it implements
36588 to always fail with ENOSYS. Some functions are actually named
36589 something starting with __ and the normal name is an alias. */
36590 #if defined __stub__doprnt || defined __stub____doprnt
36602 rm -f conftest.$ac_objext conftest$ac_exeext
36603 if { (ac_try="$ac_link"
36604 case "(($ac_try" in
36605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36606 *) ac_try_echo=$ac_try;;
36608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36609 (eval "$ac_link") 2>conftest.er1
36611 grep -v '^ *+' conftest.er1 >conftest.err
36613 cat conftest.err >&5
36614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); } && {
36616 test -z "$ac_c_werror_flag" ||
36617 test ! -s conftest.err
36618 } && test -s conftest$ac_exeext &&
36619 $as_test_x conftest$ac_exeext; then
36620 ac_cv_func__doprnt=yes
36622 echo "$as_me: failed program was:" >&5
36623 sed 's/^/| /' conftest.$ac_ext >&5
36625 ac_cv_func__doprnt=no
36628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36629 conftest$ac_exeext conftest.$ac_ext
36631 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36632 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36633 if test $ac_cv_func__doprnt = yes; then
36635 cat >>confdefs.h <<\_ACEOF
36636 #define HAVE_DOPRNT 1
36646 if test $ac_cv_func_vprintf = yes ; then
36649 for ac_func in snprintf vsnprintf
36651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36655 echo $ECHO_N "(cached) $ECHO_C" >&6
36657 cat >conftest.$ac_ext <<_ACEOF
36660 cat confdefs.h >>conftest.$ac_ext
36661 cat >>conftest.$ac_ext <<_ACEOF
36662 /* end confdefs.h. */
36663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36665 #define $ac_func innocuous_$ac_func
36667 /* System header to define __stub macros and hopefully few prototypes,
36668 which can conflict with char $ac_func (); below.
36669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36670 <limits.h> exists even on freestanding compilers. */
36673 # include <limits.h>
36675 # include <assert.h>
36680 /* Override any GCC internal prototype to avoid an error.
36681 Use char because int might match the return type of a GCC
36682 builtin and then its argument prototype would still apply. */
36687 /* The GNU C library defines this for functions which it implements
36688 to always fail with ENOSYS. Some functions are actually named
36689 something starting with __ and the normal name is an alias. */
36690 #if defined __stub_$ac_func || defined __stub___$ac_func
36697 return $ac_func ();
36702 rm -f conftest.$ac_objext conftest$ac_exeext
36703 if { (ac_try="$ac_link"
36704 case "(($ac_try" in
36705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706 *) ac_try_echo=$ac_try;;
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709 (eval "$ac_link") 2>conftest.er1
36711 grep -v '^ *+' conftest.er1 >conftest.err
36713 cat conftest.err >&5
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); } && {
36716 test -z "$ac_c_werror_flag" ||
36717 test ! -s conftest.err
36718 } && test -s conftest$ac_exeext &&
36719 $as_test_x conftest$ac_exeext; then
36720 eval "$as_ac_var=yes"
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36725 eval "$as_ac_var=no"
36728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36729 conftest$ac_exeext conftest.$ac_ext
36731 ac_res=`eval echo '${'$as_ac_var'}'`
36732 { echo "$as_me:$LINENO: result: $ac_res" >&5
36733 echo "${ECHO_T}$ac_res" >&6; }
36734 if test `eval echo '${'$as_ac_var'}'` = yes; then
36735 cat >>confdefs.h <<_ACEOF
36736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36861 echo $ECHO_N "(cached) $ECHO_C" >&6
36863 cat >conftest.$ac_ext <<_ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h. */
36869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36871 #define $ac_func innocuous_$ac_func
36873 /* System header to define __stub macros and hopefully few prototypes,
36874 which can conflict with char $ac_func (); below.
36875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36876 <limits.h> exists even on freestanding compilers. */
36879 # include <limits.h>
36881 # include <assert.h>
36886 /* Override any GCC internal prototype to avoid an error.
36887 Use char because int might match the return type of a GCC
36888 builtin and then its argument prototype would still apply. */
36893 /* The GNU C library defines this for functions which it implements
36894 to always fail with ENOSYS. Some functions are actually named
36895 something starting with __ and the normal name is an alias. */
36896 #if defined __stub_$ac_func || defined __stub___$ac_func
36903 return $ac_func ();
36908 rm -f conftest.$ac_objext conftest$ac_exeext
36909 if { (ac_try="$ac_link"
36910 case "(($ac_try" in
36911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36912 *) ac_try_echo=$ac_try;;
36914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36915 (eval "$ac_link") 2>conftest.er1
36917 grep -v '^ *+' conftest.er1 >conftest.err
36919 cat conftest.err >&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); } && {
36922 test -z "$ac_c_werror_flag" ||
36923 test ! -s conftest.err
36924 } && test -s conftest$ac_exeext &&
36925 $as_test_x conftest$ac_exeext; then
36926 eval "$as_ac_var=yes"
36928 echo "$as_me: failed program was:" >&5
36929 sed 's/^/| /' conftest.$ac_ext >&5
36931 eval "$as_ac_var=no"
36934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36935 conftest$ac_exeext conftest.$ac_ext
36937 ac_res=`eval echo '${'$as_ac_var'}'`
36938 { echo "$as_me:$LINENO: result: $ac_res" >&5
36939 echo "${ECHO_T}$ac_res" >&6; }
36940 if test `eval echo '${'$as_ac_var'}'` = yes; then
36941 cat >>confdefs.h <<_ACEOF
36942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36951 for ac_func in getopt getpeereid
36953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36957 echo $ECHO_N "(cached) $ECHO_C" >&6
36959 cat >conftest.$ac_ext <<_ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h. */
36965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36967 #define $ac_func innocuous_$ac_func
36969 /* System header to define __stub macros and hopefully few prototypes,
36970 which can conflict with char $ac_func (); below.
36971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36972 <limits.h> exists even on freestanding compilers. */
36975 # include <limits.h>
36977 # include <assert.h>
36982 /* Override any GCC internal prototype to avoid an error.
36983 Use char because int might match the return type of a GCC
36984 builtin and then its argument prototype would still apply. */
36989 /* The GNU C library defines this for functions which it implements
36990 to always fail with ENOSYS. Some functions are actually named
36991 something starting with __ and the normal name is an alias. */
36992 #if defined __stub_$ac_func || defined __stub___$ac_func
36999 return $ac_func ();
37004 rm -f conftest.$ac_objext conftest$ac_exeext
37005 if { (ac_try="$ac_link"
37006 case "(($ac_try" in
37007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37008 *) ac_try_echo=$ac_try;;
37010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37011 (eval "$ac_link") 2>conftest.er1
37013 grep -v '^ *+' conftest.er1 >conftest.err
37015 cat conftest.err >&5
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); } && {
37018 test -z "$ac_c_werror_flag" ||
37019 test ! -s conftest.err
37020 } && test -s conftest$ac_exeext &&
37021 $as_test_x conftest$ac_exeext; then
37022 eval "$as_ac_var=yes"
37024 echo "$as_me: failed program was:" >&5
37025 sed 's/^/| /' conftest.$ac_ext >&5
37027 eval "$as_ac_var=no"
37030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37031 conftest$ac_exeext conftest.$ac_ext
37033 ac_res=`eval echo '${'$as_ac_var'}'`
37034 { echo "$as_me:$LINENO: result: $ac_res" >&5
37035 echo "${ECHO_T}$ac_res" >&6; }
37036 if test `eval echo '${'$as_ac_var'}'` = yes; then
37037 cat >>confdefs.h <<_ACEOF
37038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37042 case " $LIBOBJS " in
37043 *" $ac_func.$ac_objext "* ) ;;
37044 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37053 if test "$ac_cv_func_getopt" != yes; then
37054 LIBSRCS="$LIBSRCS getopt.c"
37057 if test "$ac_cv_func_getpeereid" != yes; then
37059 for ac_func in getpeerucred
37061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37065 echo $ECHO_N "(cached) $ECHO_C" >&6
37067 cat >conftest.$ac_ext <<_ACEOF
37070 cat confdefs.h >>conftest.$ac_ext
37071 cat >>conftest.$ac_ext <<_ACEOF
37072 /* end confdefs.h. */
37073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37075 #define $ac_func innocuous_$ac_func
37077 /* System header to define __stub macros and hopefully few prototypes,
37078 which can conflict with char $ac_func (); below.
37079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37080 <limits.h> exists even on freestanding compilers. */
37083 # include <limits.h>
37085 # include <assert.h>
37090 /* Override any GCC internal prototype to avoid an error.
37091 Use char because int might match the return type of a GCC
37092 builtin and then its argument prototype would still apply. */
37097 /* The GNU C library defines this for functions which it implements
37098 to always fail with ENOSYS. Some functions are actually named
37099 something starting with __ and the normal name is an alias. */
37100 #if defined __stub_$ac_func || defined __stub___$ac_func
37107 return $ac_func ();
37112 rm -f conftest.$ac_objext conftest$ac_exeext
37113 if { (ac_try="$ac_link"
37114 case "(($ac_try" in
37115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116 *) ac_try_echo=$ac_try;;
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119 (eval "$ac_link") 2>conftest.er1
37121 grep -v '^ *+' conftest.er1 >conftest.err
37123 cat conftest.err >&5
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } && {
37126 test -z "$ac_c_werror_flag" ||
37127 test ! -s conftest.err
37128 } && test -s conftest$ac_exeext &&
37129 $as_test_x conftest$ac_exeext; then
37130 eval "$as_ac_var=yes"
37132 echo "$as_me: failed program was:" >&5
37133 sed 's/^/| /' conftest.$ac_ext >&5
37135 eval "$as_ac_var=no"
37138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37139 conftest$ac_exeext conftest.$ac_ext
37141 ac_res=`eval echo '${'$as_ac_var'}'`
37142 { echo "$as_me:$LINENO: result: $ac_res" >&5
37143 echo "${ECHO_T}$ac_res" >&6; }
37144 if test `eval echo '${'$as_ac_var'}'` = yes; then
37145 cat >>confdefs.h <<_ACEOF
37146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37152 if test "$ac_cv_func_getpeerucred" != yes ; then
37153 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37154 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37155 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37156 echo $ECHO_N "(cached) $ECHO_C" >&6
37158 cat >conftest.$ac_ext <<_ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h. */
37164 $ac_includes_default
37165 #ifdef HAVE_SYS_SOCKET_H
37166 #include <sys/socket.h>
37172 static struct msghdr ac_aggr;
37173 if (ac_aggr.msg_accrightslen)
37179 rm -f conftest.$ac_objext
37180 if { (ac_try="$ac_compile"
37181 case "(($ac_try" in
37182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37183 *) ac_try_echo=$ac_try;;
37185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37186 (eval "$ac_compile") 2>conftest.er1
37188 grep -v '^ *+' conftest.er1 >conftest.err
37190 cat conftest.err >&5
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); } && {
37193 test -z "$ac_c_werror_flag" ||
37194 test ! -s conftest.err
37195 } && test -s conftest.$ac_objext; then
37196 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37198 echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37201 cat >conftest.$ac_ext <<_ACEOF
37204 cat confdefs.h >>conftest.$ac_ext
37205 cat >>conftest.$ac_ext <<_ACEOF
37206 /* end confdefs.h. */
37207 $ac_includes_default
37208 #ifdef HAVE_SYS_SOCKET_H
37209 #include <sys/socket.h>
37215 static struct msghdr ac_aggr;
37216 if (sizeof ac_aggr.msg_accrightslen)
37222 rm -f conftest.$ac_objext
37223 if { (ac_try="$ac_compile"
37224 case "(($ac_try" in
37225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226 *) ac_try_echo=$ac_try;;
37228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37229 (eval "$ac_compile") 2>conftest.er1
37231 grep -v '^ *+' conftest.er1 >conftest.err
37233 cat conftest.err >&5
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } && {
37236 test -z "$ac_c_werror_flag" ||
37237 test ! -s conftest.err
37238 } && test -s conftest.$ac_objext; then
37239 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37244 ac_cv_member_struct_msghdr_msg_accrightslen=no
37247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37253 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37254 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37256 cat >>confdefs.h <<_ACEOF
37257 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37263 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37264 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37265 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37266 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37267 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 cat >conftest.$ac_ext <<_ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h. */
37275 $ac_includes_default
37276 #ifdef HAVE_SYS_SOCKET_H
37277 #include <sys/socket.h>
37283 static struct msghdr ac_aggr;
37284 if (ac_aggr.msg_control)
37290 rm -f conftest.$ac_objext
37291 if { (ac_try="$ac_compile"
37292 case "(($ac_try" in
37293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37294 *) ac_try_echo=$ac_try;;
37296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37297 (eval "$ac_compile") 2>conftest.er1
37299 grep -v '^ *+' conftest.er1 >conftest.err
37301 cat conftest.err >&5
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); } && {
37304 test -z "$ac_c_werror_flag" ||
37305 test ! -s conftest.err
37306 } && test -s conftest.$ac_objext; then
37307 ac_cv_member_struct_msghdr_msg_control=yes
37309 echo "$as_me: failed program was:" >&5
37310 sed 's/^/| /' conftest.$ac_ext >&5
37312 cat >conftest.$ac_ext <<_ACEOF
37315 cat confdefs.h >>conftest.$ac_ext
37316 cat >>conftest.$ac_ext <<_ACEOF
37317 /* end confdefs.h. */
37318 $ac_includes_default
37319 #ifdef HAVE_SYS_SOCKET_H
37320 #include <sys/socket.h>
37326 static struct msghdr ac_aggr;
37327 if (sizeof ac_aggr.msg_control)
37333 rm -f conftest.$ac_objext
37334 if { (ac_try="$ac_compile"
37335 case "(($ac_try" in
37336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37337 *) ac_try_echo=$ac_try;;
37339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37340 (eval "$ac_compile") 2>conftest.er1
37342 grep -v '^ *+' conftest.er1 >conftest.err
37344 cat conftest.err >&5
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); } && {
37347 test -z "$ac_c_werror_flag" ||
37348 test ! -s conftest.err
37349 } && test -s conftest.$ac_objext; then
37350 ac_cv_member_struct_msghdr_msg_control=yes
37352 echo "$as_me: failed program was:" >&5
37353 sed 's/^/| /' conftest.$ac_ext >&5
37355 ac_cv_member_struct_msghdr_msg_control=no
37358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37364 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37365 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37367 cat >>confdefs.h <<_ACEOF
37368 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37375 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37376 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37377 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37378 echo $ECHO_N "(cached) $ECHO_C" >&6
37380 cat >conftest.$ac_ext <<_ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h. */
37386 $ac_includes_default
37390 static struct stat ac_aggr;
37391 if (ac_aggr.st_fstype)
37397 rm -f conftest.$ac_objext
37398 if { (ac_try="$ac_compile"
37399 case "(($ac_try" in
37400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37401 *) ac_try_echo=$ac_try;;
37403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37404 (eval "$ac_compile") 2>conftest.er1
37406 grep -v '^ *+' conftest.er1 >conftest.err
37408 cat conftest.err >&5
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } && {
37411 test -z "$ac_c_werror_flag" ||
37412 test ! -s conftest.err
37413 } && test -s conftest.$ac_objext; then
37414 ac_cv_member_struct_stat_st_fstype=yes
37416 echo "$as_me: failed program was:" >&5
37417 sed 's/^/| /' conftest.$ac_ext >&5
37419 cat >conftest.$ac_ext <<_ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h. */
37425 $ac_includes_default
37429 static struct stat ac_aggr;
37430 if (sizeof ac_aggr.st_fstype)
37436 rm -f conftest.$ac_objext
37437 if { (ac_try="$ac_compile"
37438 case "(($ac_try" in
37439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37440 *) ac_try_echo=$ac_try;;
37442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37443 (eval "$ac_compile") 2>conftest.er1
37445 grep -v '^ *+' conftest.er1 >conftest.err
37447 cat conftest.err >&5
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); } && {
37450 test -z "$ac_c_werror_flag" ||
37451 test ! -s conftest.err
37452 } && test -s conftest.$ac_objext; then
37453 ac_cv_member_struct_stat_st_fstype=yes
37455 echo "$as_me: failed program was:" >&5
37456 sed 's/^/| /' conftest.$ac_ext >&5
37458 ac_cv_member_struct_stat_st_fstype=no
37461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37467 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37468 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37470 cat >>confdefs.h <<_ACEOF
37471 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37476 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37477 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37478 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37479 echo $ECHO_N "(cached) $ECHO_C" >&6
37481 cat >conftest.$ac_ext <<_ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h. */
37487 $ac_includes_default
37491 static struct stat ac_aggr;
37492 if (ac_aggr.st_vfstype)
37498 rm -f conftest.$ac_objext
37499 if { (ac_try="$ac_compile"
37500 case "(($ac_try" in
37501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37502 *) ac_try_echo=$ac_try;;
37504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37505 (eval "$ac_compile") 2>conftest.er1
37507 grep -v '^ *+' conftest.er1 >conftest.err
37509 cat conftest.err >&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } && {
37512 test -z "$ac_c_werror_flag" ||
37513 test ! -s conftest.err
37514 } && test -s conftest.$ac_objext; then
37515 ac_cv_member_struct_stat_st_vfstype=yes
37517 echo "$as_me: failed program was:" >&5
37518 sed 's/^/| /' conftest.$ac_ext >&5
37520 cat >conftest.$ac_ext <<_ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h. */
37526 $ac_includes_default
37530 static struct stat ac_aggr;
37531 if (sizeof ac_aggr.st_vfstype)
37537 rm -f conftest.$ac_objext
37538 if { (ac_try="$ac_compile"
37539 case "(($ac_try" in
37540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541 *) ac_try_echo=$ac_try;;
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544 (eval "$ac_compile") 2>conftest.er1
37546 grep -v '^ *+' conftest.er1 >conftest.err
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } && {
37551 test -z "$ac_c_werror_flag" ||
37552 test ! -s conftest.err
37553 } && test -s conftest.$ac_objext; then
37554 ac_cv_member_struct_stat_st_vfstype=yes
37556 echo "$as_me: failed program was:" >&5
37557 sed 's/^/| /' conftest.$ac_ext >&5
37559 ac_cv_member_struct_stat_st_vfstype=no
37562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37568 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37569 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37571 cat >>confdefs.h <<_ACEOF
37572 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37578 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37579 cat >conftest.$ac_ext <<_ACEOF
37580 struct stat st; char *ptr=st.st_fstype;
37582 rm -f conftest.$ac_objext
37583 if { (ac_try="$ac_compile"
37584 case "(($ac_try" in
37585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37586 *) ac_try_echo=$ac_try;;
37588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37589 (eval "$ac_compile") 2>conftest.er1
37591 grep -v '^ *+' conftest.er1 >conftest.err
37593 cat conftest.err >&5
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); } && {
37596 test -z "$ac_c_werror_flag" ||
37597 test ! -s conftest.err
37598 } && test -s conftest.$ac_objext; then
37600 cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37605 echo "$as_me: failed program was:" >&5
37606 sed 's/^/| /' conftest.$ac_ext >&5
37609 cat >>confdefs.h <<\_ACEOF
37610 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37618 LIBSRCS="$LIBSRCS getpeereid.c"
37621 if test "$ac_cv_func_snprintf" != yes ||
37622 test "$ac_cv_func_vsnprintf" != yes; then
37623 if test "$ac_cv_func_snprintf" != yes; then
37625 cat >>confdefs.h <<\_ACEOF
37626 #define snprintf ber_pvt_snprintf
37630 if test "$ac_cv_func_vsnprintf" != yes; then
37632 cat >>confdefs.h <<\_ACEOF
37633 #define vsnprintf ber_pvt_vsnprintf
37640 if test "$ol_enable_slapi" != no ; then
37642 for ac_header in ltdl.h
37644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37651 ac_res=`eval echo '${'$as_ac_Header'}'`
37652 { echo "$as_me:$LINENO: result: $ac_res" >&5
37653 echo "${ECHO_T}$ac_res" >&6; }
37655 # Is the header compilable?
37656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37658 cat >conftest.$ac_ext <<_ACEOF
37661 cat confdefs.h >>conftest.$ac_ext
37662 cat >>conftest.$ac_ext <<_ACEOF
37663 /* end confdefs.h. */
37664 $ac_includes_default
37665 #include <$ac_header>
37667 rm -f conftest.$ac_objext
37668 if { (ac_try="$ac_compile"
37669 case "(($ac_try" in
37670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37671 *) ac_try_echo=$ac_try;;
37673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37674 (eval "$ac_compile") 2>conftest.er1
37676 grep -v '^ *+' conftest.er1 >conftest.err
37678 cat conftest.err >&5
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } && {
37681 test -z "$ac_c_werror_flag" ||
37682 test ! -s conftest.err
37683 } && test -s conftest.$ac_objext; then
37684 ac_header_compiler=yes
37686 echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37689 ac_header_compiler=no
37692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37694 echo "${ECHO_T}$ac_header_compiler" >&6; }
37696 # Is the header present?
37697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37699 cat >conftest.$ac_ext <<_ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h. */
37705 #include <$ac_header>
37707 if { (ac_try="$ac_cpp conftest.$ac_ext"
37708 case "(($ac_try" in
37709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710 *) ac_try_echo=$ac_try;;
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37715 grep -v '^ *+' conftest.er1 >conftest.err
37717 cat conftest.err >&5
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } >/dev/null && {
37720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37723 ac_header_preproc=yes
37725 echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37728 ac_header_preproc=no
37731 rm -f conftest.err conftest.$ac_ext
37732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37733 echo "${ECHO_T}$ac_header_preproc" >&6; }
37735 # So? What about this header?
37736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37742 ac_header_preproc=yes
37745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37758 ## --------------------------------------------- ##
37759 ## Report this to <http://www.openldap.org/its/> ##
37760 ## --------------------------------------------- ##
37762 ) | sed "s/^/$as_me: WARNING: /" >&2
37765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37768 echo $ECHO_N "(cached) $ECHO_C" >&6
37770 eval "$as_ac_Header=\$ac_header_preproc"
37772 ac_res=`eval echo '${'$as_ac_Header'}'`
37773 { echo "$as_me:$LINENO: result: $ac_res" >&5
37774 echo "${ECHO_T}$ac_res" >&6; }
37777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37778 cat >>confdefs.h <<_ACEOF
37779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37787 if test $ac_cv_header_ltdl_h != yes ; then
37788 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37789 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37790 { (exit 1); exit 1; }; }
37792 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37793 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37794 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37795 echo $ECHO_N "(cached) $ECHO_C" >&6
37797 ac_check_lib_save_LIBS=$LIBS
37798 LIBS="-lltdl $LIBS"
37799 cat >conftest.$ac_ext <<_ACEOF
37802 cat confdefs.h >>conftest.$ac_ext
37803 cat >>conftest.$ac_ext <<_ACEOF
37804 /* end confdefs.h. */
37806 /* Override any GCC internal prototype to avoid an error.
37807 Use char because int might match the return type of a GCC
37808 builtin and then its argument prototype would still apply. */
37816 return lt_dlinit ();
37821 rm -f conftest.$ac_objext conftest$ac_exeext
37822 if { (ac_try="$ac_link"
37823 case "(($ac_try" in
37824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37825 *) ac_try_echo=$ac_try;;
37827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37828 (eval "$ac_link") 2>conftest.er1
37830 grep -v '^ *+' conftest.er1 >conftest.err
37832 cat conftest.err >&5
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); } && {
37835 test -z "$ac_c_werror_flag" ||
37836 test ! -s conftest.err
37837 } && test -s conftest$ac_exeext &&
37838 $as_test_x conftest$ac_exeext; then
37839 ac_cv_lib_ltdl_lt_dlinit=yes
37841 echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37844 ac_cv_lib_ltdl_lt_dlinit=no
37847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37848 conftest$ac_exeext conftest.$ac_ext
37849 LIBS=$ac_check_lib_save_LIBS
37851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37852 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37853 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37856 LIBSLAPI=libslapi.a
37857 LIBSLAPITOOLS=../libslapi.a
37859 cat >>confdefs.h <<\_ACEOF
37860 #define HAVE_LIBLTDL 1
37865 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37866 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37867 { (exit 1); exit 1; }; }
37872 cat >>confdefs.h <<\_ACEOF
37873 #define LDAP_SLAPI 1
37878 if test "$ol_enable_debug" != no ; then
37879 if test "$ol_enable_debug" = traditional; then
37881 cat >>confdefs.h <<\_ACEOF
37882 #define OLD_DEBUG 1
37887 cat >>confdefs.h <<\_ACEOF
37888 #define LDAP_DEBUG 1
37892 if test "$ol_enable_syslog" = yes ; then
37894 cat >>confdefs.h <<\_ACEOF
37895 #define LDAP_SYSLOG 1
37899 if test "$ol_enable_proctitle" != no ; then
37901 cat >>confdefs.h <<\_ACEOF
37902 #define LDAP_PROCTITLE 1
37906 if test "$ol_enable_referrals" != no ; then
37908 cat >>confdefs.h <<\_ACEOF
37909 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37913 if test "$ol_enable_local" != no; then
37915 cat >>confdefs.h <<\_ACEOF
37916 #define LDAP_PF_LOCAL 1
37920 if test "$ol_link_ipv6" != no; then
37922 cat >>confdefs.h <<\_ACEOF
37923 #define LDAP_PF_INET6 1
37927 if test "$ol_enable_cleartext" != no ; then
37929 cat >>confdefs.h <<\_ACEOF
37930 #define SLAPD_CLEARTEXT 1
37934 if test "$ol_enable_crypt" != no ; then
37936 cat >>confdefs.h <<\_ACEOF
37937 #define SLAPD_CRYPT 1
37941 if test "$ol_link_spasswd" != no ; then
37943 cat >>confdefs.h <<\_ACEOF
37944 #define SLAPD_SPASSWD 1
37948 if test "$ol_enable_rlookups" != no ; then
37950 cat >>confdefs.h <<\_ACEOF
37951 #define SLAPD_RLOOKUPS 1
37955 if test "$ol_enable_aci" != no ; then
37956 if test $ol_enable_dynacl = no ; then
37957 ol_enable_dynacl=yes
37958 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37959 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37961 if test "$ol_enable_aci" = mod ; then
37962 MFLAG=SLAPD_MOD_DYNAMIC
37963 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37964 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37965 { (exit 1); exit 1; }; }
37967 MFLAG=SLAPD_MOD_STATIC
37969 WITH_ACI_ENABLED=$ol_enable_aci
37971 cat >>confdefs.h <<_ACEOF
37972 #define SLAPD_ACI_ENABLED $MFLAG
37976 WITH_ACI_ENABLED=no
37978 if test "$ol_enable_dynacl" != no ; then
37980 cat >>confdefs.h <<\_ACEOF
37981 #define SLAP_DYNACL 1
37986 if test "$ol_link_modules" != no ; then
37988 cat >>confdefs.h <<\_ACEOF
37989 #define SLAPD_MODULES 1
37993 SLAPD_MODULES_LDFLAGS="-dlopen self"
37997 cat >>confdefs.h <<\_ACEOF
37998 #define SLAPD_MOD_STATIC 1
38002 cat >>confdefs.h <<\_ACEOF
38003 #define SLAPD_MOD_DYNAMIC 2
38007 if test "$ol_enable_monitor" != no ; then
38009 BUILD_MONITOR=$ol_enable_monitor
38010 if test "$ol_enable_monitor" = mod ; then
38011 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38012 MFLAG=SLAPD_MOD_DYNAMIC
38014 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38015 MFLAG=SLAPD_MOD_STATIC
38018 cat >>confdefs.h <<_ACEOF
38019 #define SLAPD_MONITOR $MFLAG
38024 if test "$ol_enable_bdb" != no ; then
38026 BUILD_BDB=$ol_enable_bdb
38027 if test "$ol_enable_bdb" = mod ; then
38028 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38029 MFLAG=SLAPD_MOD_DYNAMIC
38031 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38032 MFLAG=SLAPD_MOD_STATIC
38035 cat >>confdefs.h <<_ACEOF
38036 #define SLAPD_BDB $MFLAG
38041 if test "$ol_enable_dnssrv" != no ; then
38043 BUILD_DNSSRV=$ol_enable_dnssrv
38044 if test "$ol_enable_dnssrv" = mod ; then
38045 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38046 MFLAG=SLAPD_MOD_DYNAMIC
38048 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38049 MFLAG=SLAPD_MOD_STATIC
38052 cat >>confdefs.h <<_ACEOF
38053 #define SLAPD_DNSSRV $MFLAG
38058 if test "$ol_enable_hdb" != no ; then
38060 BUILD_HDB=$ol_enable_hdb
38061 if test "$ol_enable_hdb" = mod ; then
38062 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38063 MFLAG=SLAPD_MOD_DYNAMIC
38065 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38066 MFLAG=SLAPD_MOD_STATIC
38069 cat >>confdefs.h <<_ACEOF
38070 #define SLAPD_HDB $MFLAG
38075 if test "$ol_enable_ldap" != no ; then
38077 BUILD_LDAP=$ol_enable_ldap
38078 if test "$ol_enable_ldap" = mod ; then
38079 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38080 MFLAG=SLAPD_MOD_DYNAMIC
38082 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38083 MFLAG=SLAPD_MOD_STATIC
38086 cat >>confdefs.h <<_ACEOF
38087 #define SLAPD_LDAP $MFLAG
38092 if test "$ol_enable_meta" != no ; then
38094 BUILD_META=$ol_enable_meta
38096 if test "$ol_enable_meta" = mod ; then
38097 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38098 MFLAG=SLAPD_MOD_DYNAMIC
38100 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38101 MFLAG=SLAPD_MOD_STATIC
38104 cat >>confdefs.h <<_ACEOF
38105 #define SLAPD_META $MFLAG
38110 if test "$ol_enable_ndb" != no ; then
38112 BUILD_NDB=$ol_enable_ndb
38113 if test "$ol_enable_ndb" = mod ; then
38114 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38115 MFLAG=SLAPD_MOD_DYNAMIC
38117 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38118 MFLAG=SLAPD_MOD_STATIC
38121 cat >>confdefs.h <<_ACEOF
38122 #define SLAPD_NDB $MFLAG
38127 if test "$ol_enable_null" != no ; then
38129 BUILD_NULL=$ol_enable_null
38130 if test "$ol_enable_null" = mod ; then
38131 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38132 MFLAG=SLAPD_MOD_DYNAMIC
38134 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38135 MFLAG=SLAPD_MOD_STATIC
38138 cat >>confdefs.h <<_ACEOF
38139 #define SLAPD_NULL $MFLAG
38144 if test "$ol_enable_passwd" != no ; then
38146 BUILD_PASSWD=$ol_enable_passwd
38147 if test "$ol_enable_passwd" = mod ; then
38148 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38149 MFLAG=SLAPD_MOD_DYNAMIC
38151 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38152 MFLAG=SLAPD_MOD_STATIC
38155 cat >>confdefs.h <<_ACEOF
38156 #define SLAPD_PASSWD $MFLAG
38161 if test "$ol_link_perl" != no ; then
38163 BUILD_PERL=$ol_enable_perl
38164 if test "$ol_enable_perl" = mod ; then
38165 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38166 MFLAG=SLAPD_MOD_DYNAMIC
38168 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38169 MFLAG=SLAPD_MOD_STATIC
38172 cat >>confdefs.h <<_ACEOF
38173 #define SLAPD_PERL $MFLAG
38178 if test "$ol_enable_relay" != no ; then
38180 BUILD_RELAY=$ol_enable_relay
38181 if test "$ol_enable_relay" = mod ; then
38182 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38183 MFLAG=SLAPD_MOD_DYNAMIC
38185 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38186 MFLAG=SLAPD_MOD_STATIC
38189 cat >>confdefs.h <<_ACEOF
38190 #define SLAPD_RELAY $MFLAG
38195 if test "$ol_enable_shell" != no ; then
38196 if test "$ol_link_threads" != no ; then
38197 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38198 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38201 BUILD_SHELL=$ol_enable_shell
38202 if test "$ol_enable_shell" = mod ; then
38203 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38204 MFLAG=SLAPD_MOD_DYNAMIC
38206 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38207 MFLAG=SLAPD_MOD_STATIC
38210 cat >>confdefs.h <<_ACEOF
38211 #define SLAPD_SHELL $MFLAG
38216 if test "$ol_enable_sock" != no ; then
38218 BUILD_SOCK=$ol_enable_sock
38219 if test "$ol_enable_sock" = mod ; then
38220 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38221 MFLAG=SLAPD_MOD_DYNAMIC
38223 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38224 MFLAG=SLAPD_MOD_STATIC
38227 cat >>confdefs.h <<_ACEOF
38228 #define SLAPD_SOCK $MFLAG
38233 if test "$ol_link_sql" != no ; then
38235 BUILD_SQL=$ol_enable_sql
38236 if test "$ol_enable_sql" = mod; then
38237 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38238 MFLAG=SLAPD_MOD_DYNAMIC
38240 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38241 MFLAG=SLAPD_MOD_STATIC
38244 cat >>confdefs.h <<_ACEOF
38245 #define SLAPD_SQL $MFLAG
38250 if test "$ol_enable_accesslog" != no ; then
38251 BUILD_ACCESSLOG=$ol_enable_accesslog
38252 if test "$ol_enable_accesslog" = mod ; then
38253 MFLAG=SLAPD_MOD_DYNAMIC
38254 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38256 MFLAG=SLAPD_MOD_STATIC
38257 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38260 cat >>confdefs.h <<_ACEOF
38261 #define SLAPD_OVER_ACCESSLOG $MFLAG
38266 if test "$ol_enable_auditlog" != no ; then
38267 BUILD_AUDITLOG=$ol_enable_auditlog
38268 if test "$ol_enable_auditlog" = mod ; then
38269 MFLAG=SLAPD_MOD_DYNAMIC
38270 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38272 MFLAG=SLAPD_MOD_STATIC
38273 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38276 cat >>confdefs.h <<_ACEOF
38277 #define SLAPD_OVER_AUDITLOG $MFLAG
38282 if test "$ol_enable_collect" != no ; then
38283 BUILD_COLLECT=$ol_enable_collect
38284 if test "$ol_enable_collect" = mod ; then
38285 MFLAG=SLAPD_MOD_DYNAMIC
38286 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38288 MFLAG=SLAPD_MOD_STATIC
38289 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38292 cat >>confdefs.h <<_ACEOF
38293 #define SLAPD_OVER_COLLECT $MFLAG
38298 if test "$ol_enable_constraint" != no ; then
38299 BUILD_CONSTRAINT=$ol_enable_constraint
38300 if test "$ol_enable_constraint" = mod ; then
38301 MFLAG=SLAPD_MOD_DYNAMIC
38302 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38304 MFLAG=SLAPD_MOD_STATIC
38305 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38308 cat >>confdefs.h <<_ACEOF
38309 #define SLAPD_OVER_CONSTRAINT $MFLAG
38314 if test "$ol_enable_dds" != no ; then
38315 BUILD_DDS=$ol_enable_dds
38316 if test "$ol_enable_dds" = mod ; then
38317 MFLAG=SLAPD_MOD_DYNAMIC
38318 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38320 MFLAG=SLAPD_MOD_STATIC
38321 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38324 cat >>confdefs.h <<_ACEOF
38325 #define SLAPD_OVER_DDS $MFLAG
38330 if test "$ol_enable_deref" != no ; then
38331 BUILD_DDS=$ol_enable_deref
38332 if test "$ol_enable_deref" = mod ; then
38333 MFLAG=SLAPD_MOD_DYNAMIC
38334 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38336 MFLAG=SLAPD_MOD_STATIC
38337 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38340 cat >>confdefs.h <<_ACEOF
38341 #define SLAPD_OVER_DEREF $MFLAG
38346 if test "$ol_enable_dyngroup" != no ; then
38347 BUILD_DYNGROUP=$ol_enable_dyngroup
38348 if test "$ol_enable_dyngroup" = mod ; then
38349 MFLAG=SLAPD_MOD_DYNAMIC
38350 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38352 MFLAG=SLAPD_MOD_STATIC
38353 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38356 cat >>confdefs.h <<_ACEOF
38357 #define SLAPD_OVER_DYNGROUP $MFLAG
38362 if test "$ol_enable_dynlist" != no ; then
38363 BUILD_DYNLIST=$ol_enable_dynlist
38364 if test "$ol_enable_dynlist" = mod ; then
38365 MFLAG=SLAPD_MOD_DYNAMIC
38366 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38368 MFLAG=SLAPD_MOD_STATIC
38369 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38372 cat >>confdefs.h <<_ACEOF
38373 #define SLAPD_OVER_DYNLIST $MFLAG
38378 if test "$ol_enable_memberof" != no ; then
38379 BUILD_MEMBEROF=$ol_enable_memberof
38380 if test "$ol_enable_memberof" = mod ; then
38381 MFLAG=SLAPD_MOD_DYNAMIC
38382 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38384 MFLAG=SLAPD_MOD_STATIC
38385 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38388 cat >>confdefs.h <<_ACEOF
38389 #define SLAPD_OVER_MEMBEROF $MFLAG
38394 if test "$ol_enable_ppolicy" != no ; then
38395 BUILD_PPOLICY=$ol_enable_ppolicy
38396 if test "$ol_enable_ppolicy" = mod ; then
38397 MFLAG=SLAPD_MOD_DYNAMIC
38398 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38400 MFLAG=SLAPD_MOD_STATIC
38401 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38404 cat >>confdefs.h <<_ACEOF
38405 #define SLAPD_OVER_PPOLICY $MFLAG
38410 if test "$ol_enable_proxycache" != no ; then
38411 BUILD_PROXYCACHE=$ol_enable_proxycache
38412 if test "$ol_enable_proxycache" = mod ; then
38413 MFLAG=SLAPD_MOD_DYNAMIC
38414 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38416 MFLAG=SLAPD_MOD_STATIC
38417 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38420 cat >>confdefs.h <<_ACEOF
38421 #define SLAPD_OVER_PROXYCACHE $MFLAG
38426 if test "$ol_enable_refint" != no ; then
38427 BUILD_REFINT=$ol_enable_refint
38428 if test "$ol_enable_refint" = mod ; then
38429 MFLAG=SLAPD_MOD_DYNAMIC
38430 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38432 MFLAG=SLAPD_MOD_STATIC
38433 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38436 cat >>confdefs.h <<_ACEOF
38437 #define SLAPD_OVER_REFINT $MFLAG
38442 if test "$ol_enable_retcode" != no ; then
38443 BUILD_RETCODE=$ol_enable_retcode
38444 if test "$ol_enable_retcode" = mod ; then
38445 MFLAG=SLAPD_MOD_DYNAMIC
38446 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38448 MFLAG=SLAPD_MOD_STATIC
38449 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38452 cat >>confdefs.h <<_ACEOF
38453 #define SLAPD_OVER_RETCODE $MFLAG
38458 if test "$ol_enable_rwm" != no ; then
38460 BUILD_RWM=$ol_enable_rwm
38461 if test "$ol_enable_rwm" = mod ; then
38462 MFLAG=SLAPD_MOD_DYNAMIC
38463 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38465 MFLAG=SLAPD_MOD_STATIC
38466 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38469 cat >>confdefs.h <<_ACEOF
38470 #define SLAPD_OVER_RWM $MFLAG
38475 if test "$ol_enable_seqmod" != no ; then
38476 BUILD_SEQMOD=$ol_enable_seqmod
38477 if test "$ol_enable_seqmod" = mod ; then
38478 MFLAG=SLAPD_MOD_DYNAMIC
38479 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38481 MFLAG=SLAPD_MOD_STATIC
38482 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38485 cat >>confdefs.h <<_ACEOF
38486 #define SLAPD_OVER_SEQMOD $MFLAG
38491 if test "$ol_enable_sssvlv" != no ; then
38492 BUILD_SSSVLV=$ol_enable_sssvlv
38493 if test "$ol_enable_sssvlv" = mod ; then
38494 MFLAG=SLAPD_MOD_DYNAMIC
38495 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38497 MFLAG=SLAPD_MOD_STATIC
38498 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38501 cat >>confdefs.h <<_ACEOF
38502 #define SLAPD_OVER_SSSVLV $MFLAG
38507 if test "$ol_enable_syncprov" != no ; then
38508 BUILD_SYNCPROV=$ol_enable_syncprov
38509 if test "$ol_enable_syncprov" = mod ; then
38510 MFLAG=SLAPD_MOD_DYNAMIC
38511 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38513 MFLAG=SLAPD_MOD_STATIC
38514 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38517 cat >>confdefs.h <<_ACEOF
38518 #define SLAPD_OVER_SYNCPROV $MFLAG
38523 if test "$ol_enable_translucent" != no ; then
38524 BUILD_TRANSLUCENT=$ol_enable_translucent
38525 if test "$ol_enable_translucent" = mod ; then
38526 MFLAG=SLAPD_MOD_DYNAMIC
38527 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38529 MFLAG=SLAPD_MOD_STATIC
38530 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38533 cat >>confdefs.h <<_ACEOF
38534 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38539 if test "$ol_enable_unique" != no ; then
38540 BUILD_UNIQUE=$ol_enable_unique
38541 if test "$ol_enable_unique" = mod ; then
38542 MFLAG=SLAPD_MOD_DYNAMIC
38543 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38545 MFLAG=SLAPD_MOD_STATIC
38546 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38549 cat >>confdefs.h <<_ACEOF
38550 #define SLAPD_OVER_UNIQUE $MFLAG
38555 if test "$ol_enable_valsort" != no ; then
38556 BUILD_VALSORT=$ol_enable_valsort
38557 if test "$ol_enable_valsort" = mod ; then
38558 MFLAG=SLAPD_MOD_DYNAMIC
38559 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38561 MFLAG=SLAPD_MOD_STATIC
38562 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38565 cat >>confdefs.h <<_ACEOF
38566 #define SLAPD_OVER_VALSORT $MFLAG
38571 if test "$ol_enable_rewrite" != no ; then
38573 cat >>confdefs.h <<\_ACEOF
38574 #define ENABLE_REWRITE 1
38580 if test "$ol_enable_slapi" != no ; then
38582 cat >>confdefs.h <<\_ACEOF
38583 #define ENABLE_SLAPI 1
38587 SLAPD_SLAPI_DEPEND=libslapi.a
38592 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38594 SLAPD_MODULES_LDFLAGS=
38688 # Check whether --with-xxinstall was given.
38689 if test "${with_xxinstall+set}" = set; then
38690 withval=$with_xxinstall;
38695 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"
38698 ac_config_commands="$ac_config_commands default"
38702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38703 # Let make expand exec_prefix.
38704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38706 DEFS=-DHAVE_CONFIG_H
38710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38711 # 1. Remove the extension, and $U if already installed.
38712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38713 ac_i=`echo "$ac_i" | sed "$ac_script"`
38714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38715 # will be set to the directory where LIBOBJS objects are built.
38716 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38717 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38719 LIBOBJS=$ac_libobjs
38721 LTLIBOBJS=$ac_ltlibobjs
38724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38725 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38726 Usually this means the macro was only invoked conditionally." >&5
38727 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38728 Usually this means the macro was only invoked conditionally." >&2;}
38729 { (exit 1); exit 1; }; }
38731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38732 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38733 Usually this means the macro was only invoked conditionally." >&5
38734 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38735 Usually this means the macro was only invoked conditionally." >&2;}
38736 { (exit 1); exit 1; }; }
38738 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38739 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38740 Usually this means the macro was only invoked conditionally." >&5
38741 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38742 Usually this means the macro was only invoked conditionally." >&2;}
38743 { (exit 1); exit 1; }; }
38746 : ${CONFIG_STATUS=./config.status}
38747 ac_clean_files_save=$ac_clean_files
38748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38749 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38750 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38751 cat >$CONFIG_STATUS <<_ACEOF
38753 # Generated by $as_me.
38754 # Run this file to recreate the current configuration.
38755 # Compiler output produced by configure, useful for debugging
38756 # configure, is in config.log if it exists.
38759 ac_cs_recheck=false
38761 SHELL=\${CONFIG_SHELL-$SHELL}
38764 cat >>$CONFIG_STATUS <<\_ACEOF
38765 ## --------------------- ##
38766 ## M4sh Initialization. ##
38767 ## --------------------- ##
38769 # Be more Bourne compatible
38770 DUALCASE=1; export DUALCASE # for MKS sh
38771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38775 # is contrary to our usage. Disable this feature.
38776 alias -g '${1+"$@"}'='"$@"'
38777 setopt NO_GLOB_SUBST
38779 case `(set -o) 2>/dev/null` in
38780 *posix*) set -o posix ;;
38789 # Avoid depending upon Character Ranges.
38790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38793 as_cr_digits='0123456789'
38794 as_cr_alnum=$as_cr_Letters$as_cr_digits
38796 # The user is always right.
38797 if test "${PATH_SEPARATOR+set}" != set; then
38798 echo "#! /bin/sh" >conf$$.sh
38799 echo "exit 0" >>conf$$.sh
38801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38809 # Support unset when possible.
38810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38818 # We need space, tab and new line, in precisely that order. Quoting is
38819 # there to prevent editors from complaining about space-tab.
38820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38821 # splitting by setting IFS to empty value.)
38826 # Find who we are. Look in the path if we contain no directory separator.
38828 *[\\/]* ) as_myself=$0 ;;
38829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38830 for as_dir in $PATH
38833 test -z "$as_dir" && as_dir=.
38834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38840 # We did not find ourselves, most probably we were run as `sh COMMAND'
38841 # in which case we are not to be found in the path.
38842 if test "x$as_myself" = x; then
38845 if test ! -f "$as_myself"; then
38846 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38847 { (exit 1); exit 1; }
38850 # Work around bugs in pre-3.0 UWIN ksh.
38851 for as_var in ENV MAIL MAILPATH
38852 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38862 LC_TELEPHONE LC_TIME
38864 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38865 eval $as_var=C; export $as_var
38867 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38871 # Required to use basename.
38872 if expr a : '\(a\)' >/dev/null 2>&1 &&
38873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38880 as_basename=basename
38886 # Name of the executable.
38887 as_me=`$as_basename -- "$0" ||
38888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38889 X"$0" : 'X\(//\)$' \| \
38890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38892 sed '/^.*\/\([^/][^/]*\)\/*$/{
38911 as_lineno_1=$LINENO
38912 as_lineno_2=$LINENO
38913 test "x$as_lineno_1" != "x$as_lineno_2" &&
38914 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38917 # uniformly replaced by the line number. The first 'sed' inserts a
38918 # line-number line after each line using $LINENO; the second 'sed'
38919 # does the real work. The second script uses 'N' to pair each
38920 # line-number line with the line containing $LINENO, and appends
38921 # trailing '-' during substitution so that $LINENO is not a special
38922 # case at line end.
38923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38924 # scripts with optimization help from Paolo Bonzini. Blame Lee
38925 # E. McMahon (1931-1989) for sed's syntax. :-)
38937 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38940 ' >$as_me.lineno &&
38941 chmod +x "$as_me.lineno" ||
38942 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38943 { (exit 1); exit 1; }; }
38945 # Don't try to exec as it changes $[0], causing all sort of problems
38946 # (the dirname of $[0] is not the place where we might find the
38947 # original and so on. Autoconf is especially sensitive to this).
38948 . "./$as_me.lineno"
38949 # Exit status is that of the last command.
38954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38960 ECHO_C= ECHO_N= ECHO_T=
38961 case `echo -n x` in
38963 case `echo 'x\c'` in
38964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38971 if expr a : '\(a\)' >/dev/null 2>&1 &&
38972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38978 rm -f conf$$ conf$$.exe conf$$.file
38979 if test -d conf$$.dir; then
38980 rm -f conf$$.dir/conf$$.file
38986 if ln -s conf$$.file conf$$ 2>/dev/null; then
38988 # ... but there are two gotchas:
38989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38991 # In both cases, we have to default to `cp -p'.
38992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38994 elif ln conf$$.file conf$$ 2>/dev/null; then
38999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39000 rmdir conf$$.dir 2>/dev/null
39002 if mkdir -p . 2>/dev/null; then
39005 test -d ./-p && rmdir ./-p
39009 if test -x / >/dev/null 2>&1; then
39010 as_test_x='test -x'
39012 if ls -dL / >/dev/null 2>&1; then
39019 if test -d "$1"; then
39025 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39026 ???[sx]*):;;*)false;;esac;fi
39030 as_executable_p=$as_test_x
39032 # Sed expression to map a string onto a valid CPP name.
39033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39035 # Sed expression to map a string onto a valid variable name.
39036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39041 # Save the log message, to keep $[0] and so on meaningful, and to
39042 # report actual input values of CONFIG_FILES etc. instead of their
39043 # values after options handling.
39045 This file was extended by $as_me, which was
39046 generated by GNU Autoconf 2.61. Invocation command line was
39048 CONFIG_FILES = $CONFIG_FILES
39049 CONFIG_HEADERS = $CONFIG_HEADERS
39050 CONFIG_LINKS = $CONFIG_LINKS
39051 CONFIG_COMMANDS = $CONFIG_COMMANDS
39054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39059 cat >>$CONFIG_STATUS <<_ACEOF
39060 # Files that config.status was made for.
39061 config_files="$ac_config_files"
39062 config_headers="$ac_config_headers"
39063 config_commands="$ac_config_commands"
39067 cat >>$CONFIG_STATUS <<\_ACEOF
39069 \`$as_me' instantiates files from templates according to the
39070 current configuration.
39072 Usage: $0 [OPTIONS] [FILE]...
39074 -h, --help print this help, then exit
39075 -V, --version print version number and configuration settings, then exit
39076 -q, --quiet do not print progress messages
39077 -d, --debug don't remove temporary files
39078 --recheck update $as_me by reconfiguring in the same conditions
39079 --file=FILE[:TEMPLATE]
39080 instantiate the configuration file FILE
39081 --header=FILE[:TEMPLATE]
39082 instantiate the configuration header FILE
39084 Configuration files:
39087 Configuration headers:
39090 Configuration commands:
39093 Report bugs to <bug-autoconf@gnu.org>."
39096 cat >>$CONFIG_STATUS <<_ACEOF
39099 configured by $0, generated by GNU Autoconf 2.61,
39100 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39102 Copyright (C) 2006 Free Software Foundation, Inc.
39103 This config.status script is free software; the Free Software Foundation
39104 gives unlimited permission to copy, distribute and modify it."
39111 cat >>$CONFIG_STATUS <<\_ACEOF
39112 # If no file are specified by the user, then we need to provide default
39113 # value. By we need to know if files were specified by the user.
39119 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39120 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39131 # Handling of the options.
39132 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39134 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39135 echo "$ac_cs_version"; exit ;;
39136 --debug | --debu | --deb | --de | --d | -d )
39138 --file | --fil | --fi | --f )
39140 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39141 ac_need_defaults=false;;
39142 --header | --heade | --head | --hea )
39144 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39145 ac_need_defaults=false;;
39147 # Conflict between --help and --header
39148 { echo "$as_me: error: ambiguous option: $1
39149 Try \`$0 --help' for more information." >&2
39150 { (exit 1); exit 1; }; };;
39151 --help | --hel | -h )
39152 echo "$ac_cs_usage"; exit ;;
39153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39157 # This is an error.
39158 -*) { echo "$as_me: error: unrecognized option: $1
39159 Try \`$0 --help' for more information." >&2
39160 { (exit 1); exit 1; }; } ;;
39162 *) ac_config_targets="$ac_config_targets $1"
39163 ac_need_defaults=false ;;
39169 ac_configure_extra_args=
39171 if $ac_cs_silent; then
39173 ac_configure_extra_args="$ac_configure_extra_args --silent"
39177 cat >>$CONFIG_STATUS <<_ACEOF
39178 if \$ac_cs_recheck; then
39179 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39180 CONFIG_SHELL=$SHELL
39181 export CONFIG_SHELL
39182 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39186 cat >>$CONFIG_STATUS <<\_ACEOF
39190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39191 ## Running $as_me. ##
39197 cat >>$CONFIG_STATUS <<_ACEOF
39201 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39203 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39204 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39209 cat >>$CONFIG_STATUS <<\_ACEOF
39211 # Handling of arguments.
39212 for ac_config_target in $ac_config_targets
39214 case $ac_config_target in
39215 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39216 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39217 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39218 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39220 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39221 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39222 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39223 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39224 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39225 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39226 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39227 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39228 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39229 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39230 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39231 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39232 "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" ;;
39233 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39234 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39235 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39236 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39237 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39238 "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" ;;
39239 "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" ;;
39240 "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" ;;
39241 "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" ;;
39242 "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" ;;
39243 "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" ;;
39244 "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" ;;
39245 "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" ;;
39246 "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" ;;
39247 "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" ;;
39248 "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" ;;
39249 "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" ;;
39250 "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" ;;
39251 "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" ;;
39252 "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" ;;
39253 "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" ;;
39254 "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" ;;
39255 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39256 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39257 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39258 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39259 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39261 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39263 { (exit 1); exit 1; }; };;
39268 # If the user did not use the arguments to specify the items to instantiate,
39269 # then the envvar interface is used. Set only those that are not.
39270 # We use the long form for the default assignment because of an extremely
39271 # bizarre bug on SunOS 4.1.3.
39272 if $ac_need_defaults; then
39273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39278 # Have a temporary directory for convenience. Make it in the build tree
39279 # simply because there is no reason against having it here, and in addition,
39280 # creating and moving files from /tmp can sometimes cause problems.
39281 # Hook for its removal unless debugging.
39282 # Note that there is a small window in which the directory will not be cleaned:
39283 # after its creation but before its name has been assigned to `$tmp'.
39287 trap 'exit_status=$?
39288 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39290 trap '{ (exit 1); exit 1; }' 1 2 13 15
39292 # Create a (secure) tmp directory for tmp files.
39295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39296 test -n "$tmp" && test -d "$tmp"
39299 tmp=./conf$$-$RANDOM
39300 (umask 077 && mkdir "$tmp")
39303 echo "$me: cannot create a temporary directory in ." >&2
39304 { (exit 1); exit 1; }
39308 # Set up the sed scripts for CONFIG_FILES section.
39311 # No need to generate the scripts if there are no CONFIG_FILES.
39312 # This happens for instance when ./config.status config.h
39313 if test -n "$CONFIG_FILES"; then
39320 for ac_last_try in false false false false false :; do
39321 cat >conf$$subs.sed <<_ACEOF
39322 SHELL!$SHELL$ac_delim
39323 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39324 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39325 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39326 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39327 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39328 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39329 exec_prefix!$exec_prefix$ac_delim
39330 prefix!$prefix$ac_delim
39331 program_transform_name!$program_transform_name$ac_delim
39332 bindir!$bindir$ac_delim
39333 sbindir!$sbindir$ac_delim
39334 libexecdir!$libexecdir$ac_delim
39335 datarootdir!$datarootdir$ac_delim
39336 datadir!$datadir$ac_delim
39337 sysconfdir!$sysconfdir$ac_delim
39338 sharedstatedir!$sharedstatedir$ac_delim
39339 localstatedir!$localstatedir$ac_delim
39340 includedir!$includedir$ac_delim
39341 oldincludedir!$oldincludedir$ac_delim
39342 docdir!$docdir$ac_delim
39343 infodir!$infodir$ac_delim
39344 htmldir!$htmldir$ac_delim
39345 dvidir!$dvidir$ac_delim
39346 pdfdir!$pdfdir$ac_delim
39347 psdir!$psdir$ac_delim
39348 libdir!$libdir$ac_delim
39349 localedir!$localedir$ac_delim
39350 mandir!$mandir$ac_delim
39351 DEFS!$DEFS$ac_delim
39352 ECHO_C!$ECHO_C$ac_delim
39353 ECHO_N!$ECHO_N$ac_delim
39354 ECHO_T!$ECHO_T$ac_delim
39355 LIBS!$LIBS$ac_delim
39356 build_alias!$build_alias$ac_delim
39357 host_alias!$host_alias$ac_delim
39358 target_alias!$target_alias$ac_delim
39359 build!$build$ac_delim
39360 build_cpu!$build_cpu$ac_delim
39361 build_vendor!$build_vendor$ac_delim
39362 build_os!$build_os$ac_delim
39363 host!$host$ac_delim
39364 host_cpu!$host_cpu$ac_delim
39365 host_vendor!$host_vendor$ac_delim
39366 host_os!$host_os$ac_delim
39367 target!$target$ac_delim
39368 target_cpu!$target_cpu$ac_delim
39369 target_vendor!$target_vendor$ac_delim
39370 target_os!$target_os$ac_delim
39371 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39372 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39373 INSTALL_DATA!$INSTALL_DATA$ac_delim
39374 CYGPATH_W!$CYGPATH_W$ac_delim
39375 PACKAGE!$PACKAGE$ac_delim
39376 VERSION!$VERSION$ac_delim
39377 ACLOCAL!$ACLOCAL$ac_delim
39378 AUTOCONF!$AUTOCONF$ac_delim
39379 AUTOMAKE!$AUTOMAKE$ac_delim
39380 AUTOHEADER!$AUTOHEADER$ac_delim
39381 MAKEINFO!$MAKEINFO$ac_delim
39382 install_sh!$install_sh$ac_delim
39383 STRIP!$STRIP$ac_delim
39384 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39385 mkdir_p!$mkdir_p$ac_delim
39387 SET_MAKE!$SET_MAKE$ac_delim
39388 am__leading_dot!$am__leading_dot$ac_delim
39389 AMTAR!$AMTAR$ac_delim
39390 am__tar!$am__tar$ac_delim
39391 am__untar!$am__untar$ac_delim
39392 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39393 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39394 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39395 top_builddir!$top_builddir$ac_delim
39396 ldap_subdir!$ldap_subdir$ac_delim
39399 CFLAGS!$CFLAGS$ac_delim
39400 LDFLAGS!$LDFLAGS$ac_delim
39401 CPPFLAGS!$CPPFLAGS$ac_delim
39402 ac_ct_CC!$ac_ct_CC$ac_delim
39403 EXEEXT!$EXEEXT$ac_delim
39404 OBJEXT!$OBJEXT$ac_delim
39405 DEPDIR!$DEPDIR$ac_delim
39406 am__include!$am__include$ac_delim
39407 am__quote!$am__quote$ac_delim
39408 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39409 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39410 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39411 CCDEPMODE!$CCDEPMODE$ac_delim
39412 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39413 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39414 GREP!$GREP$ac_delim
39415 EGREP!$EGREP$ac_delim
39416 LN_S!$LN_S$ac_delim
39417 ECHO!$ECHO$ac_delim
39418 RANLIB!$RANLIB$ac_delim
39421 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39423 elif $ac_last_try; then
39424 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39425 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39426 { (exit 1); exit 1; }; }
39428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39432 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39433 if test -n "$ac_eof"; then
39434 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39435 ac_eof=`expr $ac_eof + 1`
39438 cat >>$CONFIG_STATUS <<_ACEOF
39439 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39443 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39444 s/^/s,@/; s/!/@,|#_!!_#|/
39447 s/'"$ac_delim"'$/,g/; t
39449 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39450 ' >>$CONFIG_STATUS <conf$$subs.sed
39451 rm -f conf$$subs.sed
39452 cat >>$CONFIG_STATUS <<_ACEOF
39458 for ac_last_try in false false false false false :; do
39459 cat >conf$$subs.sed <<_ACEOF
39460 DLLTOOL!$DLLTOOL$ac_delim
39462 OBJDUMP!$OBJDUMP$ac_delim
39464 LIBTOOL!$LIBTOOL$ac_delim
39465 PERLBIN!$PERLBIN$ac_delim
39466 OL_MKDEP!$OL_MKDEP$ac_delim
39467 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39468 LTSTATIC!$LTSTATIC$ac_delim
39469 MYSQL!$MYSQL$ac_delim
39470 LIBOBJS!$LIBOBJS$ac_delim
39471 LIBSRCS!$LIBSRCS$ac_delim
39472 PLAT!$PLAT$ac_delim
39473 WITH_SASL!$WITH_SASL$ac_delim
39474 WITH_TLS!$WITH_TLS$ac_delim
39475 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39476 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39477 BUILD_THREAD!$BUILD_THREAD$ac_delim
39478 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39479 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39480 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39481 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39482 BUILD_BDB!$BUILD_BDB$ac_delim
39483 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39484 BUILD_HDB!$BUILD_HDB$ac_delim
39485 BUILD_LDAP!$BUILD_LDAP$ac_delim
39486 BUILD_META!$BUILD_META$ac_delim
39487 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39488 BUILD_NDB!$BUILD_NDB$ac_delim
39489 BUILD_NULL!$BUILD_NULL$ac_delim
39490 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39491 BUILD_RELAY!$BUILD_RELAY$ac_delim
39492 BUILD_PERL!$BUILD_PERL$ac_delim
39493 BUILD_SHELL!$BUILD_SHELL$ac_delim
39494 BUILD_SOCK!$BUILD_SOCK$ac_delim
39495 BUILD_SQL!$BUILD_SQL$ac_delim
39496 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39497 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39498 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39499 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39500 BUILD_DDS!$BUILD_DDS$ac_delim
39501 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39502 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39503 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39504 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39505 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39506 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39507 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39508 BUILD_REFINT!$BUILD_REFINT$ac_delim
39509 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39510 BUILD_RWM!$BUILD_RWM$ac_delim
39511 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39512 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39513 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39514 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39515 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39516 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39517 LDAP_LIBS!$LDAP_LIBS$ac_delim
39518 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39519 BDB_LIBS!$BDB_LIBS$ac_delim
39520 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39521 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39522 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39523 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39524 WRAP_LIBS!$WRAP_LIBS$ac_delim
39525 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39526 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39527 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39528 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39529 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39530 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39531 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39532 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39533 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39534 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39535 KRB4_LIBS!$KRB4_LIBS$ac_delim
39536 KRB5_LIBS!$KRB5_LIBS$ac_delim
39537 SASL_LIBS!$SASL_LIBS$ac_delim
39538 TLS_LIBS!$TLS_LIBS$ac_delim
39539 MODULES_LIBS!$MODULES_LIBS$ac_delim
39540 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39541 LIBSLAPI!$LIBSLAPI$ac_delim
39542 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39543 AUTH_LIBS!$AUTH_LIBS$ac_delim
39544 ICU_LIBS!$ICU_LIBS$ac_delim
39545 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39546 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39547 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39548 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39549 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39550 LTLIBOBJS!$LTLIBOBJS$ac_delim
39553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39555 elif $ac_last_try; then
39556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39558 { (exit 1); exit 1; }; }
39560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39565 if test -n "$ac_eof"; then
39566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39567 ac_eof=`expr $ac_eof + 1`
39570 cat >>$CONFIG_STATUS <<_ACEOF
39571 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39576 s/^/s,@/; s/!/@,|#_!!_#|/
39579 s/'"$ac_delim"'$/,g/; t
39581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39582 ' >>$CONFIG_STATUS <conf$$subs.sed
39583 rm -f conf$$subs.sed
39584 cat >>$CONFIG_STATUS <<_ACEOF
39591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39593 # trailing colons and then remove the whole line if VPATH becomes empty
39594 # (actually we leave an empty line to preserve line numbers).
39595 if test "x$srcdir" = x.; then
39596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39597 s/:*\$(srcdir):*/:/
39598 s/:*\${srcdir}:*/:/
39600 s/^\([^=]*=[ ]*\):*/\1/
39606 cat >>$CONFIG_STATUS <<\_ACEOF
39607 fi # test -n "$CONFIG_FILES"
39610 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39613 :[FHLC]) ac_mode=$ac_tag; continue;;
39615 case $ac_mode$ac_tag in
39617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39619 { (exit 1); exit 1; }; };;
39620 :[FH]-) ac_tag=-:-;;
39621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39638 -) ac_f="$tmp/stdin";;
39639 *) # Look for the file first in the build tree, then in the source tree
39640 # (if the path is not absolute). The absolute path cannot be DOS-style,
39641 # because $ac_f cannot contain `:'.
39645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39649 { (exit 1); exit 1; }; };;
39651 ac_file_inputs="$ac_file_inputs $ac_f"
39654 # Let's still pretend it is `configure' which instantiates (i.e., don't
39655 # use $as_me), people would be surprised to read:
39656 # /* config.h. Generated by config.status. */
39657 configure_input="Generated from "`IFS=:
39658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39659 if test x"$ac_file" != x-; then
39660 configure_input="$ac_file. $configure_input"
39661 { echo "$as_me:$LINENO: creating $ac_file" >&5
39662 echo "$as_me: creating $ac_file" >&6;}
39666 *:-:* | *:-) cat >"$tmp/stdin";;
39671 ac_dir=`$as_dirname -- "$ac_file" ||
39672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39673 X"$ac_file" : 'X\(//\)[^/]' \| \
39674 X"$ac_file" : 'X\(//\)$' \| \
39675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39681 /^X\(\/\/\)[^/].*/{
39696 -*) as_dir=./$as_dir;;
39698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39703 *) as_qdir=$as_dir;;
39705 as_dirs="'$as_qdir' $as_dirs"
39706 as_dir=`$as_dirname -- "$as_dir" ||
39707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39708 X"$as_dir" : 'X\(//\)[^/]' \| \
39709 X"$as_dir" : 'X\(//\)$' \| \
39710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39716 /^X\(\/\/\)[^/].*/{
39729 test -d "$as_dir" && break
39731 test -z "$as_dirs" || eval "mkdir $as_dirs"
39732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39734 { (exit 1); exit 1; }; }; }
39738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39741 # A ".." for each directory in $ac_dir_suffix.
39742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39743 case $ac_top_builddir_sub in
39744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39748 ac_abs_top_builddir=$ac_pwd
39749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39750 # for backward compatibility:
39751 ac_top_builddir=$ac_top_build_prefix
39754 .) # We are building in place.
39756 ac_top_srcdir=$ac_top_builddir_sub
39757 ac_abs_top_srcdir=$ac_pwd ;;
39758 [\\/]* | ?:[\\/]* ) # Absolute name.
39759 ac_srcdir=$srcdir$ac_dir_suffix;
39760 ac_top_srcdir=$srcdir
39761 ac_abs_top_srcdir=$srcdir ;;
39762 *) # Relative name.
39763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39764 ac_top_srcdir=$ac_top_build_prefix$srcdir
39765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39782 cat >>$CONFIG_STATUS <<\_ACEOF
39783 # If the template does not know about datarootdir, expand it.
39784 # FIXME: This hack should be removed a few years after 2.60.
39785 ac_datarootdir_hack=; ac_datarootdir_seen=
39787 case `sed -n '/datarootdir/ {
39796 ' $ac_file_inputs` in
39797 *datarootdir*) ac_datarootdir_seen=yes;;
39798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39799 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39802 cat >>$CONFIG_STATUS <<_ACEOF
39803 ac_datarootdir_hack='
39804 s&@datadir@&$datadir&g
39805 s&@docdir@&$docdir&g
39806 s&@infodir@&$infodir&g
39807 s&@localedir@&$localedir&g
39808 s&@mandir@&$mandir&g
39809 s&\\\${datarootdir}&$datarootdir&g' ;;
39813 # Neutralize VPATH when `$srcdir' = `.'.
39814 # Shell code in configure.ac might set extrasub.
39815 # FIXME: do we really want to maintain this feature?
39816 cat >>$CONFIG_STATUS <<_ACEOF
39820 cat >>$CONFIG_STATUS <<\_ACEOF
39822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39823 s&@configure_input@&$configure_input&;t t
39824 s&@top_builddir@&$ac_top_builddir_sub&;t t
39825 s&@srcdir@&$ac_srcdir&;t t
39826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39827 s&@top_srcdir@&$ac_top_srcdir&;t t
39828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39829 s&@builddir@&$ac_builddir&;t t
39830 s&@abs_builddir@&$ac_abs_builddir&;t t
39831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39832 s&@INSTALL@&$ac_INSTALL&;t t
39833 $ac_datarootdir_hack
39834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39840 which seems to be undefined. Please make sure it is defined." >&5
39841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39842 which seems to be undefined. Please make sure it is defined." >&2;}
39846 -) cat "$tmp/out"; rm -f "$tmp/out";;
39847 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39856 # Transform confdefs.h into a sed script `conftest.defines', that
39857 # substitutes the proper values into config.h.in to produce config.h.
39858 rm -f conftest.defines conftest.tail
39859 # First, append a space to every undef/define line, to ease matching.
39860 echo 's/$/ /' >conftest.defines
39861 # Then, protect against being on the right side of a sed subst, or in
39862 # an unquoted here document, in config.status. If some macros were
39863 # called several times there might be several #defines for the same
39864 # symbol, which is useless. But do not sort them, since the last
39865 # AC_DEFINE must be honored.
39866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39869 # PARAMS is the parameter list in the macro definition--in most cases, it's
39870 # just an empty string.
39871 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39872 ac_dB='\\)[ (].*,\\1define\\2'
39880 s/^[ ]*#[ ]*define[ ][ ]*//
39885 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39886 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39887 ' >>conftest.defines
39889 # Remove the space that was appended to ease matching.
39890 # Then replace #undef with comments. This is necessary, for
39891 # example, in the case of _POSIX_SOURCE, which is predefined and required
39892 # on some systems where configure will not decide to define it.
39893 # (The regexp can be short, since the line contains either #define or #undef.)
39895 s,^[ #]*u.*,/* & */,' >>conftest.defines
39897 # Break up conftest.defines:
39898 ac_max_sed_lines=50
39900 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39901 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39902 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39904 ac_in='$ac_file_inputs'
39905 ac_out='"$tmp/out1"'
39906 ac_nxt='"$tmp/out2"'
39910 # Write a here document:
39911 cat >>$CONFIG_STATUS <<_ACEOF
39912 # First, check the format of the line:
39913 cat >"\$tmp/defines.sed" <<\\CEOF
39914 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39915 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39919 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39921 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39922 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39923 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39924 grep . conftest.tail >/dev/null || break
39925 rm -f conftest.defines
39926 mv conftest.tail conftest.defines
39928 rm -f conftest.defines conftest.tail
39930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39931 cat >>$CONFIG_STATUS <<\_ACEOF
39932 if test x"$ac_file" != x-; then
39933 echo "/* $configure_input */" >"$tmp/config.h"
39934 cat "$ac_result" >>"$tmp/config.h"
39935 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39937 echo "$as_me: $ac_file is unchanged" >&6;}
39940 mv "$tmp/config.h" $ac_file
39943 echo "/* $configure_input */"
39947 # Compute $ac_file's index in $config_headers.
39949 for _am_header in $config_headers :; do
39950 case $_am_header in
39951 $ac_file | $ac_file:* )
39954 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39957 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39958 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39959 X$ac_file : 'X\(//\)[^/]' \| \
39960 X$ac_file : 'X\(//\)$' \| \
39961 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39967 /^X\(\/\/\)[^/].*/{
39979 s/.*/./; q'`/stamp-h$_am_stamp_count
39982 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39983 echo "$as_me: executing $ac_file commands" >&6;}
39988 case $ac_file$ac_mode in
39989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39990 # Strip MF so we end up with the name of the file.
39991 mf=`echo "$mf" | sed -e 's/:.*$//'`
39992 # Check whether this is an Automake generated Makefile or not.
39993 # We used to match only the files named `Makefile.in', but
39994 # some people rename them; so instead we look at the file content.
39995 # Grep'ing the first line is not enough: some people post-process
39996 # each Makefile.in and add a new line on top of each file to say so.
39997 # So let's grep whole file.
39998 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39999 dirpart=`$as_dirname -- "$mf" ||
40000 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40001 X"$mf" : 'X\(//\)[^/]' \| \
40002 X"$mf" : 'X\(//\)$' \| \
40003 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40009 /^X\(\/\/\)[^/].*/{
40025 # Extract the definition of DEPDIR, am__include, and am__quote
40026 # from the Makefile without running `make'.
40027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40028 test -z "$DEPDIR" && continue
40029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40030 test -z "am__include" && continue
40031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40032 # When using ansi2knr, U may be empty or an underscore; expand it
40033 U=`sed -n 's/^U = //p' < "$mf"`
40034 # Find all dependency output files, they are included files with
40035 # $(DEPDIR) in their names. We invoke sed twice because it is the
40036 # simplest approach to changing $(DEPDIR) to its actual value in the
40038 for file in `sed -n "
40039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40041 # Make sure the directory exists.
40042 test -f "$dirpart/$file" && continue
40043 fdir=`$as_dirname -- "$file" ||
40044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40045 X"$file" : 'X\(//\)[^/]' \| \
40046 X"$file" : 'X\(//\)$' \| \
40047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40053 /^X\(\/\/\)[^/].*/{
40066 { as_dir=$dirpart/$fdir
40068 -*) as_dir=./$as_dir;;
40070 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40074 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40075 *) as_qdir=$as_dir;;
40077 as_dirs="'$as_qdir' $as_dirs"
40078 as_dir=`$as_dirname -- "$as_dir" ||
40079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40080 X"$as_dir" : 'X\(//\)[^/]' \| \
40081 X"$as_dir" : 'X\(//\)$' \| \
40082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40088 /^X\(\/\/\)[^/].*/{
40101 test -d "$as_dir" && break
40103 test -z "$as_dirs" || eval "mkdir $as_dirs"
40104 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40105 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40106 { (exit 1); exit 1; }; }; }
40107 # echo "creating $dirpart/$file"
40108 echo '# dummy' > "$dirpart/$file"
40115 BACKENDSC="servers/slapd/backends.c"
40116 echo "Making $BACKENDSC"
40118 cat > $BACKENDSC << ENDX
40119 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40121 * Copyright 1998-2009 The OpenLDAP Foundation.
40122 * All rights reserved.
40124 * Redistribution and use in source and binary forms, with or without
40125 * modification, are permitted only as authorized by the OpenLDAP
40128 * A copy of this license is available in the file LICENSE in the
40129 * top-level directory of the distribution or, alternatively, at
40130 * <http://www.OpenLDAP.org/license.html>.
40132 /* This file is automatically generated by configure; please do not edit. */
40134 #include "portable.h"
40138 if test "${STATIC_BACKENDS}"; then
40139 for b in config ${STATIC_BACKENDS}; do
40140 bb=`echo "${b}" | sed -e 's/back-//'`
40141 cat >> $BACKENDSC << ENDX
40142 extern BI_init ${bb}_back_initialize;
40146 cat >> $BACKENDSC << ENDX
40148 BackendInfo slap_binfo[] = {
40151 for b in config ${STATIC_BACKENDS}; do
40152 bb=`echo "${b}" | sed -e 's/back-//'`
40153 echo " Add ${bb} ..."
40154 cat >> $BACKENDSC << ENDX
40155 { "${bb}", ${bb}_back_initialize },
40159 cat >> $BACKENDSC << ENDX
40163 /* end of generated file */
40166 OVERLAYSC="servers/slapd/overlays/statover.c"
40167 echo "Making $OVERLAYSC"
40169 cat > $OVERLAYSC << ENDX
40170 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40172 * Copyright 1998-2009 The OpenLDAP Foundation.
40173 * All rights reserved.
40175 * Redistribution and use in source and binary forms, with or without
40176 * modification, are permitted only as authorized by the OpenLDAP
40179 * A copy of this license is available in the file LICENSE in the
40180 * top-level directory of the distribution or, alternatively, at
40181 * <http://www.OpenLDAP.org/license.html>.
40183 /* This file is automatically generated by configure; please do not edit. */
40185 #include "portable.h"
40189 if test "${STATIC_OVERLAYS}"; then
40190 for o in ${STATIC_OVERLAYS}; do
40191 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40192 cat >> $OVERLAYSC << ENDX
40193 extern OV_init ${oo}_initialize;
40198 cat >> $OVERLAYSC << ENDX
40200 OverlayInit slap_oinfo[] = {
40203 if test "${STATIC_OVERLAYS}"; then
40204 for o in ${STATIC_OVERLAYS}; do
40205 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40206 echo " Add ${oo} ..."
40207 cat >> $OVERLAYSC << ENDX
40208 { "${oo}", ${oo}_initialize },
40213 cat >> $OVERLAYSC << ENDX
40217 /* end of generated file */
40220 if test "${ol_cv_mkdep}" = no; then
40221 echo '(Do not "make depend"; we do not know how to build dependencies)'
40223 echo 'Please run "make depend" to build dependencies'
40231 { (exit 0); exit 0; }
40233 chmod +x $CONFIG_STATUS
40234 ac_clean_files=$ac_clean_files_save
40237 # configure is writing to config.log, and then calls config.status.
40238 # config.status does its own redirection, appending to config.log.
40239 # Unfortunately, on DOS this fails, as config.log is still kept open
40240 # by configure, so config.status won't be able to write to it; its
40241 # output is simply discarded. So we exec the FD to /dev/null,
40242 # effectively closing config.log, so it can be properly (re)opened and
40243 # appended to by config.status. When coming back to configure, we
40244 # need to make the FD available again.
40245 if test "$no_create" != yes; then
40247 ac_config_status_args=
40248 test "$silent" = yes &&
40249 ac_config_status_args="$ac_config_status_args --quiet"
40251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40254 # would make configure fail if this is the last instruction.
40255 $ac_cs_success || { (exit 1); exit 1; }