2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.710 2011/02/17 01:56:06 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2011 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
835 INSTALL_STRIP_PROGRAM
845 OPENLDAP_RELEASE_DATE
936 SLAPD_MODULES_CPPFLAGS
937 SLAPD_MODULES_LDFLAGS
939 SLAPD_STATIC_BACKENDS
940 SLAPD_DYNAMIC_BACKENDS
941 SLAPD_STATIC_OVERLAYS
942 SLAPD_DYNAMIC_OVERLAYS
962 ac_precious_vars='build_alias
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1542 if test -n "$ac_init_help"; then
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-debug enable debugging no|yes|traditional [yes]
1550 --enable-dynamic enable linking built binaries with dynamic libs [no]
1551 --enable-syslog enable syslog support [auto]
1552 --enable-proctitle enable proctitle support [yes]
1553 --enable-ipv6 enable IPv6 support [auto]
1554 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1556 SLAPD (Standalone LDAP Daemon) Options:
1557 --enable-slapd enable building slapd [yes]
1558 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1559 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1560 --enable-cleartext enable cleartext passwords [yes]
1561 --enable-crypt enable crypt(3) passwords [no]
1562 --enable-lmpasswd enable LAN Manager passwords [no]
1563 --enable-spasswd enable (Cyrus) SASL password verification [no]
1564 --enable-modules enable dynamic module support [no]
1565 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1566 --enable-rlookups enable reverse lookups of client hostnames [no]
1567 --enable-slapi enable SLAPI support (experimental) [no]
1568 --enable-slp enable SLPv2 support [no]
1569 --enable-wrappers enable tcp wrapper support [no]
1571 SLAPD Backend Options:
1572 --enable-backends enable all available backends no|yes|mod
1573 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1574 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1575 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1576 --enable-ldap enable ldap backend no|yes|mod [no]
1577 --enable-meta enable metadirectory backend no|yes|mod [no]
1578 --enable-monitor enable monitor backend no|yes|mod [yes]
1579 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1580 --enable-null enable null backend no|yes|mod [no]
1581 --enable-passwd enable passwd backend no|yes|mod [no]
1582 --enable-perl enable perl backend no|yes|mod [no]
1583 --enable-relay enable relay backend no|yes|mod [yes]
1584 --enable-shell enable shell backend no|yes|mod [no]
1585 --enable-sock enable sock backend no|yes|mod [no]
1586 --enable-sql enable sql backend no|yes|mod [no]
1588 SLAPD Overlay Options:
1589 --enable-overlays enable all available overlays no|yes|mod
1590 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1591 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1592 --enable-collect Collect overlay no|yes|mod [no]
1593 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1594 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1595 --enable-deref Dereference overlay no|yes|mod [no]
1596 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1597 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1598 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1599 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1600 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1601 --enable-refint Referential Integrity overlay no|yes|mod [no]
1602 --enable-retcode Return Code testing overlay no|yes|mod [no]
1603 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1604 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1605 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1606 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1607 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1608 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1609 --enable-valsort Value Sorting overlay no|yes|mod [no]
1611 Library Generation & Linking Options
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-subdir=DIR change default subdirectory used for installs
1624 --with-cyrus-sasl with Cyrus SASL support [auto]
1625 --with-fetch with fetch(3) URL support [auto]
1626 --with-threads with threads [auto]
1627 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1628 --with-yielding-select with implicitly yielding select [auto]
1629 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-pic try to use only PIC/non-PIC objects [default=use
1634 --with-tags[=TAGS] include additional configurations [automatic]
1636 See INSTALL file for further details.
1638 Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
1643 LIBS libraries to pass to the linker, e.g. -l<library>
1644 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645 you have headers in a nonstandard directory <include dir>
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1655 if test "$ac_init_help" = "recursive"; then
1656 # If there are subdirs, report their specific --help.
1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 test -d "$ac_dir" || continue
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.61
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1719 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61. Invocation command line was
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 echo "PATH: $as_dir"
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1789 ac_must_keep_next=false
1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797 | -silent | --silent | --silen | --sile | --sil)
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806 if test $ac_must_keep_next = true; then
1807 ac_must_keep_next=false # Got value, back to normal.
1810 *=* | --config-cache | -C | -disable-* | --disable-* \
1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813 | -with-* | --with-* | -without-* | --without-* | --x)
1814 case "$ac_configure_args0 " in
1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818 -* ) ac_must_keep_next=true ;;
1821 ac_configure_args="$ac_configure_args '$ac_arg'"
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log. We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835 # Save into config.log some information that might help in debugging.
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1845 # The following way of writing the cache mishandles newlines in values,
1847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848 eval ac_val=\$$ac_var
1852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1856 _ | IFS | as_nl) ;; #(
1857 *) $as_unset $ac_var ;;
1862 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863 *${as_nl}ac_space=\ *)
1865 "s/'\''/'\''\\\\'\'''\''/g;
1866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1882 for ac_var in $ac_subst_vars
1884 eval ac_val=\$$ac_var
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 echo "$ac_var='\''$ac_val'\''"
1892 if test -n "$ac_subst_files"; then
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1899 for ac_var in $ac_subst_files
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 echo "$ac_var='\''$ac_val'\''"
1910 if test -s confdefs.h; then
1920 test "$ac_signal" != 0 &&
1921 echo "$as_me: caught signal $ac_signal"
1922 echo "$as_me: exit $exit_status"
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1936 # Predefined preprocessor variables.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1970 set x "$ac_default_prefix/share/config.site" \
1971 "$ac_default_prefix/etc/config.site"
1976 if test -r "$ac_site_file"; then
1977 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979 sed 's/^/| /' "$ac_site_file" >&5
1985 # Check that the precious variables saved in the cache have kept the same
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2008 echo "$as_me: former value: $ac_old_val" >&2;}
2009 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2010 echo "$as_me: current value: $ac_new_val" >&2;}
2011 ac_cache_corrupted=:
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2017 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026 if $ac_cache_corrupted; then
2027 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031 { (exit 1); exit 1; }; }
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 for ac_dir in build "$srcdir"/build; do
2085 if test -f "$ac_dir/install-sh"; then
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 elif test -f "$ac_dir/install.sh"; then
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 elif test -f "$ac_dir/shtool"; then
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2099 if test -z "$ac_aux_dir"; then
2100 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102 { (exit 1); exit 1; }; }
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118 { (exit 1); exit 1; }; }
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122 ac_cv_shtool="$ac_aux_dir/shtool"
2124 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126 { (exit 1); exit 1; }; }
2129 SHTOOL="$ac_cv_shtool"
2133 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2138 if test -d $ac_aux_dir/CVS; then
2139 OPENLDAP_CVS="(from CVS sources) "
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161 { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174 { (exit 1); exit 1; }; };;
2177 ac_save_IFS=$IFS; IFS='-'
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$host_alias" = x; then
2196 ac_cv_host=$ac_cv_build
2198 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211 { (exit 1); exit 1; }; };;
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test "x$target_alias" = x; then
2233 ac_cv_target=$ac_cv_host
2235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248 { (exit 1); exit 1; }; };;
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2269 program_prefix=${target_alias}-
2271 am__api_version='1.10'
2273 # Find a good install program. We prefer a C program (faster),
2274 # so one script is as good as another. But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2288 if test -z "$INSTALL"; then
2289 if test "${ac_cv_path_install+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 # Account for people who put trailing slashes in PATH elements.
2299 ./ | .// | /cC/* | \
2300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2304 # OSF1 and SCO ODT 3.0 have their own names for install.
2305 # Don't use installbsd from OSF since it installs stuff as root
2307 for ac_prog in ginstall scoinst install; do
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2310 if test $ac_prog = install &&
2311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # AIX install. It has an incompatible calling convention.
2314 elif test $ac_prog = install &&
2315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2316 # program-specific install script used by HP pwplus--don't use.
2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2332 if test "${ac_cv_path_install+set}" = set; then
2333 INSTALL=$ac_cv_path_install
2335 # As a last resort, use the slow shell script. Don't cache a
2336 # value for INSTALL within a source directory, because that will
2337 # break other packages using the cache if that directory is
2338 # removed, or if the value is a relative name.
2339 INSTALL=$ac_install_sh
2342 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2343 echo "${ECHO_T}$INSTALL" >&6; }
2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346 # It thinks the first close brace ends the variable substitution.
2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2353 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2354 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2357 echo timestamp > conftest.file
2358 # Do `set' in a subshell so we don't clobber the current shell's
2359 # arguments. Must try -L first in case configure is actually a
2360 # symlink; some systems play weird games with the mod time of symlinks
2361 # (eg FreeBSD returns the mod time of the symlink's containing
2364 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2365 if test "$*" = "X"; then
2367 set X `ls -t $srcdir/configure conftest.file`
2370 if test "$*" != "X $srcdir/configure conftest.file" \
2371 && test "$*" != "X conftest.file $srcdir/configure"; then
2373 # If neither matched, then we have a broken ls. This can happen
2374 # if, for instance, CONFIG_SHELL is bash and it inherits a
2375 # broken ls alias from the environment. This has actually
2376 # happened. Such a system could not be considered "sane".
2377 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2378 alias in your environment" >&5
2379 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2380 alias in your environment" >&2;}
2381 { (exit 1); exit 1; }; }
2384 test "$2" = conftest.file
2390 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2391 Check your system clock" >&5
2392 echo "$as_me: error: newly created file is older than distributed files!
2393 Check your system clock" >&2;}
2394 { (exit 1); exit 1; }; }
2396 { echo "$as_me:$LINENO: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6; }
2398 test "$program_prefix" != NONE &&
2399 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2400 # Use a double $ so make ignores it.
2401 test "$program_suffix" != NONE &&
2402 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2403 # Double any \ or $. echo might interpret backslashes.
2404 # By default was `s,x,x', remove it if useless.
2405 cat <<\_ACEOF >conftest.sed
2406 s/[\\$]/&&/g;s/;s,x,x,$//
2408 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2411 # expand $ac_aux_dir to an absolute path
2412 am_aux_dir=`cd $ac_aux_dir && pwd`
2414 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --run true"; then
2417 am_missing_run="$MISSING --run "
2420 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2421 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2425 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2426 if test -z "$MKDIR_P"; then
2427 if test "${ac_cv_path_mkdir+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434 test -z "$as_dir" && as_dir=.
2435 for ac_prog in mkdir gmkdir; do
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2438 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2439 'mkdir (GNU coreutils) '* | \
2440 'mkdir (coreutils) '* | \
2441 'mkdir (fileutils) '4.1*)
2442 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2452 if test "${ac_cv_path_mkdir+set}" = set; then
2453 MKDIR_P="$ac_cv_path_mkdir -p"
2455 # As a last resort, use the slow shell script. Don't cache a
2456 # value for MKDIR_P within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the value is a relative name.
2459 test -d ./--version && rmdir ./--version
2460 MKDIR_P="$ac_install_sh -d"
2463 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2464 echo "${ECHO_T}$MKDIR_P" >&6; }
2468 [\\/$]* | ?:[\\/]*) ;;
2469 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2472 for ac_prog in gawk mawk nawk awk
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_AWK+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$AWK"; then
2482 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_AWK="$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$AWK"; then
2503 { echo "$as_me:$LINENO: result: $AWK" >&5
2504 echo "${ECHO_T}$AWK" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2511 test -n "$AWK" && break
2514 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2515 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2516 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2517 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 cat >conftest.make <<\_ACEOF
2523 @echo '@@@%%%=$(MAKE)=@@@%%%'
2525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2526 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2528 eval ac_cv_prog_make_${ac_make}_set=yes;;
2530 eval ac_cv_prog_make_${ac_make}_set=no;;
2534 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2535 { echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 SET_MAKE="MAKE=${MAKE-make}"
2544 rm -rf .tst 2>/dev/null
2545 mkdir .tst 2>/dev/null
2546 if test -d .tst; then
2551 rmdir .tst 2>/dev/null
2553 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2554 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2555 # is not polluted with repeated "-I."
2556 am__isrc=' -I$(srcdir)'
2557 # test to see if srcdir already configured
2558 if test -f $srcdir/config.status; then
2559 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2560 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2561 { (exit 1); exit 1; }; }
2565 # test whether we have cygpath
2566 if test -z "$CYGPATH_W"; then
2567 if (cygpath --version) >/dev/null 2>/dev/null; then
2568 CYGPATH_W='cygpath -w'
2575 # Define the identity of the package.
2580 # Some tools Automake needs.
2582 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2585 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2588 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2591 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2594 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2596 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2598 # Installed binaries are usually stripped using `strip' when the user
2599 # run `make install-strip'. However `strip' might not be the right
2600 # tool to use in cross-compilation environments, therefore Automake
2601 # will honor the `STRIP' environment variable to overrule this program.
2602 if test "$cross_compiling" != no; then
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}strip; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_STRIP+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 if test -n "$STRIP"; then
2612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 STRIP=$ac_cv_prog_STRIP
2632 if test -n "$STRIP"; then
2633 { echo "$as_me:$LINENO: result: $STRIP" >&5
2634 echo "${ECHO_T}$STRIP" >&6; }
2636 { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2642 if test -z "$ac_cv_prog_STRIP"; then
2644 # Extract the first word of "strip", so it can be a program name with args.
2645 set dummy strip; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_STRIP"; then
2652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_STRIP="strip"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2672 if test -n "$ac_ct_STRIP"; then
2673 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2674 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2680 if test "x$ac_ct_STRIP" = x; then
2683 case $cross_compiling:$ac_tool_warned in
2685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&5
2688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2691 ac_tool_warned=yes ;;
2696 STRIP="$ac_cv_prog_STRIP"
2700 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702 # We need awk for the "check" target. The system "awk" is bad on
2704 # Always define AMTAR for backward compatibility.
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2714 cat >>confdefs.h <<_ACEOF
2715 #define OPENLDAP_PACKAGE "$PACKAGE"
2719 cat >>confdefs.h <<_ACEOF
2720 #define OPENLDAP_VERSION "$VERSION"
2725 cat >>confdefs.h <<_ACEOF
2726 #define LDAP_VENDOR_VERSION $OL_API_INC
2730 cat >>confdefs.h <<_ACEOF
2731 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2735 cat >>confdefs.h <<_ACEOF
2736 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2740 cat >>confdefs.h <<_ACEOF
2741 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2745 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2747 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2749 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2757 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2759 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2761 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2764 { echo "$as_me:$LINENO: checking configure arguments" >&5
2765 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2770 ldap_subdir="/openldap"
2773 # Check whether --with-subdir was given.
2774 if test "${with_subdir+set}" = set; then
2775 withval=$with_subdir; case "$withval" in
2781 ldap_subdir="$withval"
2784 ldap_subdir="/$withval"
2791 # OpenLDAP --enable-debug
2793 # Check whether --enable-debug was given.
2794 if test "${enable_debug+set}" = set; then
2795 enableval=$enable_debug;
2797 for ol_val in no yes traditional ; do
2798 if test "$enableval" = "$ol_val" ; then
2802 if test "$ol_arg" = "invalid" ; then
2803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2805 { (exit 1); exit 1; }; }
2807 ol_enable_debug="$ol_arg"
2813 # end --enable-debug
2814 # OpenLDAP --enable-dynamic
2816 # Check whether --enable-dynamic was given.
2817 if test "${enable_dynamic+set}" = set; then
2818 enableval=$enable_dynamic;
2820 for ol_val in auto yes no ; do
2821 if test "$enableval" = "$ol_val" ; then
2825 if test "$ol_arg" = "invalid" ; then
2826 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2828 { (exit 1); exit 1; }; }
2830 ol_enable_dynamic="$ol_arg"
2833 ol_enable_dynamic=no
2836 # end --enable-dynamic
2837 # OpenLDAP --enable-syslog
2839 # Check whether --enable-syslog was given.
2840 if test "${enable_syslog+set}" = set; then
2841 enableval=$enable_syslog;
2843 for ol_val in auto yes no ; do
2844 if test "$enableval" = "$ol_val" ; then
2848 if test "$ol_arg" = "invalid" ; then
2849 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2851 { (exit 1); exit 1; }; }
2853 ol_enable_syslog="$ol_arg"
2856 ol_enable_syslog=auto
2859 # end --enable-syslog
2860 # OpenLDAP --enable-proctitle
2862 # Check whether --enable-proctitle was given.
2863 if test "${enable_proctitle+set}" = set; then
2864 enableval=$enable_proctitle;
2866 for ol_val in auto yes no ; do
2867 if test "$enableval" = "$ol_val" ; then
2871 if test "$ol_arg" = "invalid" ; then
2872 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2873 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2874 { (exit 1); exit 1; }; }
2876 ol_enable_proctitle="$ol_arg"
2879 ol_enable_proctitle=yes
2882 # end --enable-proctitle
2883 ol_enable_referrals=${ol_enable_referrals-no}
2884 # OpenLDAP --enable-ipv6
2886 # Check whether --enable-ipv6 was given.
2887 if test "${enable_ipv6+set}" = set; then
2888 enableval=$enable_ipv6;
2890 for ol_val in auto yes no ; do
2891 if test "$enableval" = "$ol_val" ; then
2895 if test "$ol_arg" = "invalid" ; then
2896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2898 { (exit 1); exit 1; }; }
2900 ol_enable_ipv6="$ol_arg"
2907 # OpenLDAP --enable-local
2909 # Check whether --enable-local was given.
2910 if test "${enable_local+set}" = set; then
2911 enableval=$enable_local;
2913 for ol_val in auto yes no ; do
2914 if test "$enableval" = "$ol_val" ; then
2918 if test "$ol_arg" = "invalid" ; then
2919 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2920 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2921 { (exit 1); exit 1; }; }
2923 ol_enable_local="$ol_arg"
2926 ol_enable_local=auto
2929 # end --enable-local
2931 # OpenLDAP --with-cyrus_sasl
2933 # Check whether --with-cyrus_sasl was given.
2934 if test "${with_cyrus_sasl+set}" = set; then
2935 withval=$with_cyrus_sasl;
2937 for ol_val in auto yes no ; do
2938 if test "$withval" = "$ol_val" ; then
2942 if test "$ol_arg" = "invalid" ; then
2943 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2944 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2945 { (exit 1); exit 1; }; }
2947 ol_with_cyrus_sasl="$ol_arg"
2950 ol_with_cyrus_sasl="auto"
2952 # end --with-cyrus_sasl
2954 # OpenLDAP --with-fetch
2956 # Check whether --with-fetch was given.
2957 if test "${with_fetch+set}" = set; then
2958 withval=$with_fetch;
2960 for ol_val in auto yes no ; do
2961 if test "$withval" = "$ol_val" ; then
2965 if test "$ol_arg" = "invalid" ; then
2966 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2967 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2968 { (exit 1); exit 1; }; }
2970 ol_with_fetch="$ol_arg"
2973 ol_with_fetch="auto"
2977 # OpenLDAP --with-threads
2979 # Check whether --with-threads was given.
2980 if test "${with_threads+set}" = set; then
2981 withval=$with_threads;
2983 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2984 if test "$withval" = "$ol_val" ; then
2988 if test "$ol_arg" = "invalid" ; then
2989 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2990 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2991 { (exit 1); exit 1; }; }
2993 ol_with_threads="$ol_arg"
2996 ol_with_threads="auto"
2998 # end --with-threads
3000 # OpenLDAP --with-tls
3002 # Check whether --with-tls was given.
3003 if test "${with_tls+set}" = set; then
3006 for ol_val in auto openssl gnutls moznss yes no ; do
3007 if test "$withval" = "$ol_val" ; then
3011 if test "$ol_arg" = "invalid" ; then
3012 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3013 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3014 { (exit 1); exit 1; }; }
3016 ol_with_tls="$ol_arg"
3023 # OpenLDAP --with-yielding_select
3025 # Check whether --with-yielding_select was given.
3026 if test "${with_yielding_select+set}" = set; then
3027 withval=$with_yielding_select;
3029 for ol_val in auto yes no manual ; do
3030 if test "$withval" = "$ol_val" ; then
3034 if test "$ol_arg" = "invalid" ; then
3035 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3036 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3037 { (exit 1); exit 1; }; }
3039 ol_with_yielding_select="$ol_arg"
3042 ol_with_yielding_select="auto"
3044 # end --with-yielding_select
3046 # OpenLDAP --with-mp
3048 # Check whether --with-mp was given.
3049 if test "${with_mp+set}" = set; then
3052 for ol_val in auto longlong long bignum gmp yes no ; do
3053 if test "$withval" = "$ol_val" ; then
3057 if test "$ol_arg" = "invalid" ; then
3058 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3059 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3060 { (exit 1); exit 1; }; }
3062 ol_with_mp="$ol_arg"
3069 # OpenLDAP --with-odbc
3071 # Check whether --with-odbc was given.
3072 if test "${with_odbc+set}" = set; then
3075 for ol_val in auto iodbc unixodbc odbc32 ; do
3076 if test "$withval" = "$ol_val" ; then
3080 if test "$ol_arg" = "invalid" ; then
3081 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3082 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3083 { (exit 1); exit 1; }; }
3085 ol_with_odbc="$ol_arg"
3094 # Check whether --enable-xxslapdoptions was given.
3095 if test "${enable_xxslapdoptions+set}" = set; then
3096 enableval=$enable_xxslapdoptions;
3099 # OpenLDAP --enable-slapd
3101 # Check whether --enable-slapd was given.
3102 if test "${enable_slapd+set}" = set; then
3103 enableval=$enable_slapd;
3105 for ol_val in auto yes no ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_slapd="$ol_arg"
3121 # end --enable-slapd
3122 # OpenLDAP --enable-dynacl
3124 # Check whether --enable-dynacl was given.
3125 if test "${enable_dynacl+set}" = set; then
3126 enableval=$enable_dynacl;
3128 for ol_val in auto yes no ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_dynacl="$ol_arg"
3144 # end --enable-dynacl
3145 # OpenLDAP --enable-aci
3147 # Check whether --enable-aci was given.
3148 if test "${enable_aci+set}" = set; then
3149 enableval=$enable_aci;
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_aci="$ol_arg"
3168 # OpenLDAP --enable-cleartext
3170 # Check whether --enable-cleartext was given.
3171 if test "${enable_cleartext+set}" = set; then
3172 enableval=$enable_cleartext;
3174 for ol_val in auto yes no ; do
3175 if test "$enableval" = "$ol_val" ; then
3179 if test "$ol_arg" = "invalid" ; then
3180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3182 { (exit 1); exit 1; }; }
3184 ol_enable_cleartext="$ol_arg"
3187 ol_enable_cleartext=yes
3190 # end --enable-cleartext
3191 # OpenLDAP --enable-crypt
3193 # Check whether --enable-crypt was given.
3194 if test "${enable_crypt+set}" = set; then
3195 enableval=$enable_crypt;
3197 for ol_val in auto yes no ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_crypt="$ol_arg"
3213 # end --enable-crypt
3214 # OpenLDAP --enable-lmpasswd
3216 # Check whether --enable-lmpasswd was given.
3217 if test "${enable_lmpasswd+set}" = set; then
3218 enableval=$enable_lmpasswd;
3220 for ol_val in auto yes no ; do
3221 if test "$enableval" = "$ol_val" ; then
3225 if test "$ol_arg" = "invalid" ; then
3226 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3228 { (exit 1); exit 1; }; }
3230 ol_enable_lmpasswd="$ol_arg"
3233 ol_enable_lmpasswd=no
3236 # end --enable-lmpasswd
3237 # OpenLDAP --enable-spasswd
3239 # Check whether --enable-spasswd was given.
3240 if test "${enable_spasswd+set}" = set; then
3241 enableval=$enable_spasswd;
3243 for ol_val in auto yes no ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_spasswd="$ol_arg"
3256 ol_enable_spasswd=no
3259 # end --enable-spasswd
3260 # OpenLDAP --enable-modules
3262 # Check whether --enable-modules was given.
3263 if test "${enable_modules+set}" = set; then
3264 enableval=$enable_modules;
3266 for ol_val in auto yes no ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_modules="$ol_arg"
3279 ol_enable_modules=no
3282 # end --enable-modules
3283 # OpenLDAP --enable-rewrite
3285 # Check whether --enable-rewrite was given.
3286 if test "${enable_rewrite+set}" = set; then
3287 enableval=$enable_rewrite;
3289 for ol_val in auto yes no ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_rewrite="$ol_arg"
3302 ol_enable_rewrite=auto
3305 # end --enable-rewrite
3306 # OpenLDAP --enable-rlookups
3308 # Check whether --enable-rlookups was given.
3309 if test "${enable_rlookups+set}" = set; then
3310 enableval=$enable_rlookups;
3312 for ol_val in auto yes no ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_rlookups="$ol_arg"
3325 ol_enable_rlookups=no
3328 # end --enable-rlookups
3329 # OpenLDAP --enable-slapi
3331 # Check whether --enable-slapi was given.
3332 if test "${enable_slapi+set}" = set; then
3333 enableval=$enable_slapi;
3335 for ol_val in auto yes no ; do
3336 if test "$enableval" = "$ol_val" ; then
3340 if test "$ol_arg" = "invalid" ; then
3341 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3343 { (exit 1); exit 1; }; }
3345 ol_enable_slapi="$ol_arg"
3351 # end --enable-slapi
3352 # OpenLDAP --enable-slp
3354 # Check whether --enable-slp was given.
3355 if test "${enable_slp+set}" = set; then
3356 enableval=$enable_slp;
3358 for ol_val in auto yes no ; do
3359 if test "$enableval" = "$ol_val" ; then
3363 if test "$ol_arg" = "invalid" ; then
3364 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3366 { (exit 1); exit 1; }; }
3368 ol_enable_slp="$ol_arg"
3375 # OpenLDAP --enable-wrappers
3377 # Check whether --enable-wrappers was given.
3378 if test "${enable_wrappers+set}" = set; then
3379 enableval=$enable_wrappers;
3381 for ol_val in auto yes no ; do
3382 if test "$enableval" = "$ol_val" ; then
3386 if test "$ol_arg" = "invalid" ; then
3387 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3388 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3389 { (exit 1); exit 1; }; }
3391 ol_enable_wrappers="$ol_arg"
3394 ol_enable_wrappers=no
3397 # end --enable-wrappers
3414 # Check whether --enable-xxslapbackends was given.
3415 if test "${enable_xxslapbackends+set}" = set; then
3416 enableval=$enable_xxslapbackends;
3420 # OpenLDAP --enable-backends
3422 # Check whether --enable-backends was given.
3423 if test "${enable_backends+set}" = set; then
3424 enableval=$enable_backends;
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-backends" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3434 { (exit 1); exit 1; }; }
3436 ol_enable_backends="$ol_arg"
3440 # end --enable-backends
3441 # OpenLDAP --enable-bdb
3443 # Check whether --enable-bdb was given.
3444 if test "${enable_bdb+set}" = set; then
3445 enableval=$enable_bdb;
3447 for ol_val in no yes mod ; do
3448 if test "$enableval" = "$ol_val" ; then
3452 if test "$ol_arg" = "invalid" ; then
3453 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3455 { (exit 1); exit 1; }; }
3457 ol_enable_bdb="$ol_arg"
3460 ol_enable_bdb=${ol_enable_backends:-no}
3464 # OpenLDAP --enable-dnssrv
3466 # Check whether --enable-dnssrv was given.
3467 if test "${enable_dnssrv+set}" = set; then
3468 enableval=$enable_dnssrv;
3470 for ol_val in no yes mod ; do
3471 if test "$enableval" = "$ol_val" ; then
3475 if test "$ol_arg" = "invalid" ; then
3476 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3478 { (exit 1); exit 1; }; }
3480 ol_enable_dnssrv="$ol_arg"
3483 ol_enable_dnssrv=${ol_enable_backends:-no}
3486 # end --enable-dnssrv
3487 # OpenLDAP --enable-hdb
3489 # Check whether --enable-hdb was given.
3490 if test "${enable_hdb+set}" = set; then
3491 enableval=$enable_hdb;
3493 for ol_val in no yes mod ; do
3494 if test "$enableval" = "$ol_val" ; then
3498 if test "$ol_arg" = "invalid" ; then
3499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3501 { (exit 1); exit 1; }; }
3503 ol_enable_hdb="$ol_arg"
3506 ol_enable_hdb=${ol_enable_backends:-yes}
3510 # OpenLDAP --enable-ldap
3512 # Check whether --enable-ldap was given.
3513 if test "${enable_ldap+set}" = set; then
3514 enableval=$enable_ldap;
3516 for ol_val in no yes mod ; do
3517 if test "$enableval" = "$ol_val" ; then
3521 if test "$ol_arg" = "invalid" ; then
3522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3524 { (exit 1); exit 1; }; }
3526 ol_enable_ldap="$ol_arg"
3529 ol_enable_ldap=${ol_enable_backends:-no}
3533 # OpenLDAP --enable-meta
3535 # Check whether --enable-meta was given.
3536 if test "${enable_meta+set}" = set; then
3537 enableval=$enable_meta;
3539 for ol_val in no yes mod ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3547 { (exit 1); exit 1; }; }
3549 ol_enable_meta="$ol_arg"
3552 ol_enable_meta=${ol_enable_backends:-no}
3556 # OpenLDAP --enable-monitor
3558 # Check whether --enable-monitor was given.
3559 if test "${enable_monitor+set}" = set; then
3560 enableval=$enable_monitor;
3562 for ol_val in no yes mod ; do
3563 if test "$enableval" = "$ol_val" ; then
3567 if test "$ol_arg" = "invalid" ; then
3568 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3570 { (exit 1); exit 1; }; }
3572 ol_enable_monitor="$ol_arg"
3575 ol_enable_monitor=${ol_enable_backends:-yes}
3578 # end --enable-monitor
3579 # OpenLDAP --enable-ndb
3581 # Check whether --enable-ndb was given.
3582 if test "${enable_ndb+set}" = set; then
3583 enableval=$enable_ndb;
3585 for ol_val in no yes mod ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_ndb="$ol_arg"
3598 ol_enable_ndb=${ol_enable_backends:-no}
3602 # OpenLDAP --enable-null
3604 # Check whether --enable-null was given.
3605 if test "${enable_null+set}" = set; then
3606 enableval=$enable_null;
3608 for ol_val in no yes mod ; do
3609 if test "$enableval" = "$ol_val" ; then
3613 if test "$ol_arg" = "invalid" ; then
3614 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3616 { (exit 1); exit 1; }; }
3618 ol_enable_null="$ol_arg"
3621 ol_enable_null=${ol_enable_backends:-no}
3625 # OpenLDAP --enable-passwd
3627 # Check whether --enable-passwd was given.
3628 if test "${enable_passwd+set}" = set; then
3629 enableval=$enable_passwd;
3631 for ol_val in no yes mod ; do
3632 if test "$enableval" = "$ol_val" ; then
3636 if test "$ol_arg" = "invalid" ; then
3637 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3639 { (exit 1); exit 1; }; }
3641 ol_enable_passwd="$ol_arg"
3644 ol_enable_passwd=${ol_enable_backends:-no}
3647 # end --enable-passwd
3648 # OpenLDAP --enable-perl
3650 # Check whether --enable-perl was given.
3651 if test "${enable_perl+set}" = set; then
3652 enableval=$enable_perl;
3654 for ol_val in no yes mod ; do
3655 if test "$enableval" = "$ol_val" ; then
3659 if test "$ol_arg" = "invalid" ; then
3660 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3662 { (exit 1); exit 1; }; }
3664 ol_enable_perl="$ol_arg"
3667 ol_enable_perl=${ol_enable_backends:-no}
3671 # OpenLDAP --enable-relay
3673 # Check whether --enable-relay was given.
3674 if test "${enable_relay+set}" = set; then
3675 enableval=$enable_relay;
3677 for ol_val in no yes mod ; do
3678 if test "$enableval" = "$ol_val" ; then
3682 if test "$ol_arg" = "invalid" ; then
3683 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3685 { (exit 1); exit 1; }; }
3687 ol_enable_relay="$ol_arg"
3690 ol_enable_relay=${ol_enable_backends:-yes}
3693 # end --enable-relay
3694 # OpenLDAP --enable-shell
3696 # Check whether --enable-shell was given.
3697 if test "${enable_shell+set}" = set; then
3698 enableval=$enable_shell;
3700 for ol_val in no yes mod ; do
3701 if test "$enableval" = "$ol_val" ; then
3705 if test "$ol_arg" = "invalid" ; then
3706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3708 { (exit 1); exit 1; }; }
3710 ol_enable_shell="$ol_arg"
3713 ol_enable_shell=${ol_enable_backends:-no}
3716 # end --enable-shell
3717 # OpenLDAP --enable-sock
3719 # Check whether --enable-sock was given.
3720 if test "${enable_sock+set}" = set; then
3721 enableval=$enable_sock;
3723 for ol_val in no yes mod ; do
3724 if test "$enableval" = "$ol_val" ; then
3728 if test "$ol_arg" = "invalid" ; then
3729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3731 { (exit 1); exit 1; }; }
3733 ol_enable_sock="$ol_arg"
3736 ol_enable_sock=${ol_enable_backends:-no}
3740 # OpenLDAP --enable-sql
3742 # Check whether --enable-sql was given.
3743 if test "${enable_sql+set}" = set; then
3744 enableval=$enable_sql;
3746 for ol_val in no yes mod ; do
3747 if test "$enableval" = "$ol_val" ; then
3751 if test "$ol_arg" = "invalid" ; then
3752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3753 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3754 { (exit 1); exit 1; }; }
3756 ol_enable_sql="$ol_arg"
3759 ol_enable_sql=${ol_enable_backends:-no}
3764 Overlays="accesslog \
3785 # Check whether --enable-xxslapoverlays was given.
3786 if test "${enable_xxslapoverlays+set}" = set; then
3787 enableval=$enable_xxslapoverlays;
3791 # OpenLDAP --enable-overlays
3793 # Check whether --enable-overlays was given.
3794 if test "${enable_overlays+set}" = set; then
3795 enableval=$enable_overlays;
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-overlays" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3805 { (exit 1); exit 1; }; }
3807 ol_enable_overlays="$ol_arg"
3811 # end --enable-overlays
3812 # OpenLDAP --enable-accesslog
3814 # Check whether --enable-accesslog was given.
3815 if test "${enable_accesslog+set}" = set; then
3816 enableval=$enable_accesslog;
3818 for ol_val in no yes mod ; do
3819 if test "$enableval" = "$ol_val" ; then
3823 if test "$ol_arg" = "invalid" ; then
3824 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3826 { (exit 1); exit 1; }; }
3828 ol_enable_accesslog="$ol_arg"
3831 ol_enable_accesslog=${ol_enable_overlays:-no}
3834 # end --enable-accesslog
3836 # OpenLDAP --enable-auditlog
3838 # Check whether --enable-auditlog was given.
3839 if test "${enable_auditlog+set}" = set; then
3840 enableval=$enable_auditlog;
3842 for ol_val in no yes mod ; do
3843 if test "$enableval" = "$ol_val" ; then
3847 if test "$ol_arg" = "invalid" ; then
3848 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3850 { (exit 1); exit 1; }; }
3852 ol_enable_auditlog="$ol_arg"
3855 ol_enable_auditlog=${ol_enable_overlays:-no}
3858 # end --enable-auditlog
3860 # OpenLDAP --enable-collect
3862 # Check whether --enable-collect was given.
3863 if test "${enable_collect+set}" = set; then
3864 enableval=$enable_collect;
3866 for ol_val in no yes mod ; do
3867 if test "$enableval" = "$ol_val" ; then
3871 if test "$ol_arg" = "invalid" ; then
3872 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3874 { (exit 1); exit 1; }; }
3876 ol_enable_collect="$ol_arg"
3879 ol_enable_collect=${ol_enable_overlays:-no}
3882 # end --enable-collect
3884 # OpenLDAP --enable-constraint
3886 # Check whether --enable-constraint was given.
3887 if test "${enable_constraint+set}" = set; then
3888 enableval=$enable_constraint;
3890 for ol_val in no yes mod ; do
3891 if test "$enableval" = "$ol_val" ; then
3895 if test "$ol_arg" = "invalid" ; then
3896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3898 { (exit 1); exit 1; }; }
3900 ol_enable_constraint="$ol_arg"
3903 ol_enable_constraint=${ol_enable_overlays:-no}
3906 # end --enable-constraint
3908 # OpenLDAP --enable-dds
3910 # Check whether --enable-dds was given.
3911 if test "${enable_dds+set}" = set; then
3912 enableval=$enable_dds;
3914 for ol_val in no yes mod ; do
3915 if test "$enableval" = "$ol_val" ; then
3919 if test "$ol_arg" = "invalid" ; then
3920 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3922 { (exit 1); exit 1; }; }
3924 ol_enable_dds="$ol_arg"
3927 ol_enable_dds=${ol_enable_overlays:-no}
3932 # OpenLDAP --enable-deref
3934 # Check whether --enable-deref was given.
3935 if test "${enable_deref+set}" = set; then
3936 enableval=$enable_deref;
3938 for ol_val in no yes mod ; do
3939 if test "$enableval" = "$ol_val" ; then
3943 if test "$ol_arg" = "invalid" ; then
3944 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3946 { (exit 1); exit 1; }; }
3948 ol_enable_deref="$ol_arg"
3951 ol_enable_deref=${ol_enable_overlays:-no}
3954 # end --enable-deref
3956 # OpenLDAP --enable-dyngroup
3958 # Check whether --enable-dyngroup was given.
3959 if test "${enable_dyngroup+set}" = set; then
3960 enableval=$enable_dyngroup;
3962 for ol_val in no yes mod ; do
3963 if test "$enableval" = "$ol_val" ; then
3967 if test "$ol_arg" = "invalid" ; then
3968 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3970 { (exit 1); exit 1; }; }
3972 ol_enable_dyngroup="$ol_arg"
3975 ol_enable_dyngroup=${ol_enable_overlays:-no}
3978 # end --enable-dyngroup
3980 # OpenLDAP --enable-dynlist
3982 # Check whether --enable-dynlist was given.
3983 if test "${enable_dynlist+set}" = set; then
3984 enableval=$enable_dynlist;
3986 for ol_val in no yes mod ; do
3987 if test "$enableval" = "$ol_val" ; then
3991 if test "$ol_arg" = "invalid" ; then
3992 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3994 { (exit 1); exit 1; }; }
3996 ol_enable_dynlist="$ol_arg"
3999 ol_enable_dynlist=${ol_enable_overlays:-no}
4002 # end --enable-dynlist
4004 # OpenLDAP --enable-memberof
4006 # Check whether --enable-memberof was given.
4007 if test "${enable_memberof+set}" = set; then
4008 enableval=$enable_memberof;
4010 for ol_val in no yes mod ; do
4011 if test "$enableval" = "$ol_val" ; then
4015 if test "$ol_arg" = "invalid" ; then
4016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4018 { (exit 1); exit 1; }; }
4020 ol_enable_memberof="$ol_arg"
4023 ol_enable_memberof=${ol_enable_overlays:-no}
4026 # end --enable-memberof
4028 # OpenLDAP --enable-ppolicy
4030 # Check whether --enable-ppolicy was given.
4031 if test "${enable_ppolicy+set}" = set; then
4032 enableval=$enable_ppolicy;
4034 for ol_val in no yes mod ; do
4035 if test "$enableval" = "$ol_val" ; then
4039 if test "$ol_arg" = "invalid" ; then
4040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4042 { (exit 1); exit 1; }; }
4044 ol_enable_ppolicy="$ol_arg"
4047 ol_enable_ppolicy=${ol_enable_overlays:-no}
4050 # end --enable-ppolicy
4052 # OpenLDAP --enable-proxycache
4054 # Check whether --enable-proxycache was given.
4055 if test "${enable_proxycache+set}" = set; then
4056 enableval=$enable_proxycache;
4058 for ol_val in no yes mod ; do
4059 if test "$enableval" = "$ol_val" ; then
4063 if test "$ol_arg" = "invalid" ; then
4064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4066 { (exit 1); exit 1; }; }
4068 ol_enable_proxycache="$ol_arg"
4071 ol_enable_proxycache=${ol_enable_overlays:-no}
4074 # end --enable-proxycache
4076 # OpenLDAP --enable-refint
4078 # Check whether --enable-refint was given.
4079 if test "${enable_refint+set}" = set; then
4080 enableval=$enable_refint;
4082 for ol_val in no yes mod ; do
4083 if test "$enableval" = "$ol_val" ; then
4087 if test "$ol_arg" = "invalid" ; then
4088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4090 { (exit 1); exit 1; }; }
4092 ol_enable_refint="$ol_arg"
4095 ol_enable_refint=${ol_enable_overlays:-no}
4098 # end --enable-refint
4100 # OpenLDAP --enable-retcode
4102 # Check whether --enable-retcode was given.
4103 if test "${enable_retcode+set}" = set; then
4104 enableval=$enable_retcode;
4106 for ol_val in no yes mod ; do
4107 if test "$enableval" = "$ol_val" ; then
4111 if test "$ol_arg" = "invalid" ; then
4112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4114 { (exit 1); exit 1; }; }
4116 ol_enable_retcode="$ol_arg"
4119 ol_enable_retcode=${ol_enable_overlays:-no}
4122 # end --enable-retcode
4124 # OpenLDAP --enable-rwm
4126 # Check whether --enable-rwm was given.
4127 if test "${enable_rwm+set}" = set; then
4128 enableval=$enable_rwm;
4130 for ol_val in no yes mod ; do
4131 if test "$enableval" = "$ol_val" ; then
4135 if test "$ol_arg" = "invalid" ; then
4136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4138 { (exit 1); exit 1; }; }
4140 ol_enable_rwm="$ol_arg"
4143 ol_enable_rwm=${ol_enable_overlays:-no}
4148 # OpenLDAP --enable-seqmod
4150 # Check whether --enable-seqmod was given.
4151 if test "${enable_seqmod+set}" = set; then
4152 enableval=$enable_seqmod;
4154 for ol_val in no yes mod ; do
4155 if test "$enableval" = "$ol_val" ; then
4159 if test "$ol_arg" = "invalid" ; then
4160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4162 { (exit 1); exit 1; }; }
4164 ol_enable_seqmod="$ol_arg"
4167 ol_enable_seqmod=${ol_enable_overlays:-no}
4170 # end --enable-seqmod
4172 # OpenLDAP --enable-sssvlv
4174 # Check whether --enable-sssvlv was given.
4175 if test "${enable_sssvlv+set}" = set; then
4176 enableval=$enable_sssvlv;
4178 for ol_val in no yes mod ; do
4179 if test "$enableval" = "$ol_val" ; then
4183 if test "$ol_arg" = "invalid" ; then
4184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4186 { (exit 1); exit 1; }; }
4188 ol_enable_sssvlv="$ol_arg"
4191 ol_enable_sssvlv=${ol_enable_overlays:-no}
4194 # end --enable-sssvlv
4196 # OpenLDAP --enable-syncprov
4198 # Check whether --enable-syncprov was given.
4199 if test "${enable_syncprov+set}" = set; then
4200 enableval=$enable_syncprov;
4202 for ol_val in no yes mod ; do
4203 if test "$enableval" = "$ol_val" ; then
4207 if test "$ol_arg" = "invalid" ; then
4208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4210 { (exit 1); exit 1; }; }
4212 ol_enable_syncprov="$ol_arg"
4215 ol_enable_syncprov=${ol_enable_overlays:-yes}
4218 # end --enable-syncprov
4220 # OpenLDAP --enable-translucent
4222 # Check whether --enable-translucent was given.
4223 if test "${enable_translucent+set}" = set; then
4224 enableval=$enable_translucent;
4226 for ol_val in no yes mod ; do
4227 if test "$enableval" = "$ol_val" ; then
4231 if test "$ol_arg" = "invalid" ; then
4232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4234 { (exit 1); exit 1; }; }
4236 ol_enable_translucent="$ol_arg"
4239 ol_enable_translucent=${ol_enable_overlays:-no}
4242 # end --enable-translucent
4244 # OpenLDAP --enable-unique
4246 # Check whether --enable-unique was given.
4247 if test "${enable_unique+set}" = set; then
4248 enableval=$enable_unique;
4250 for ol_val in no yes mod ; do
4251 if test "$enableval" = "$ol_val" ; then
4255 if test "$ol_arg" = "invalid" ; then
4256 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4257 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4258 { (exit 1); exit 1; }; }
4260 ol_enable_unique="$ol_arg"
4263 ol_enable_unique=${ol_enable_overlays:-no}
4266 # end --enable-unique
4268 # OpenLDAP --enable-valsort
4270 # Check whether --enable-valsort was given.
4271 if test "${enable_valsort+set}" = set; then
4272 enableval=$enable_valsort;
4274 for ol_val in no yes mod ; do
4275 if test "$enableval" = "$ol_val" ; then
4279 if test "$ol_arg" = "invalid" ; then
4280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4281 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4282 { (exit 1); exit 1; }; }
4284 ol_enable_valsort="$ol_arg"
4287 ol_enable_valsort=${ol_enable_overlays:-no}
4290 # end --enable-valsort
4293 # Check whether --enable-xxliboptions was given.
4294 if test "${enable_xxliboptions+set}" = set; then
4295 enableval=$enable_xxliboptions;
4298 # Check whether --enable-static was given.
4299 if test "${enable_static+set}" = set; then
4300 enableval=$enable_static; p=${PACKAGE-default}
4302 yes) enable_static=yes ;;
4303 no) enable_static=no ;;
4306 # Look at the argument we got. We use all the common list separators.
4307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4308 for pkg in $enableval; do
4310 if test "X$pkg" = "X$p"; then
4322 # Check whether --enable-shared was given.
4323 if test "${enable_shared+set}" = set; then
4324 enableval=$enable_shared; p=${PACKAGE-default}
4326 yes) enable_shared=yes ;;
4327 no) enable_shared=no ;;
4330 # Look at the argument we got. We use all the common list separators.
4331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4332 for pkg in $enableval; do
4334 if test "X$pkg" = "X$p"; then
4349 if test $ol_enable_slapd = no ; then
4350 if test $ol_enable_slapi = yes ; then
4351 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4354 case "$ol_enable_backends" in yes | mod)
4355 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4358 for i in $Backends; do
4359 eval "ol_tmp=\$ol_enable_$i"
4360 if test $ol_tmp != no ; then
4361 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4362 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4363 eval "ol_enable_$i=no"
4366 if test $ol_enable_modules = yes ; then
4367 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4370 if test $ol_enable_wrappers = yes ; then
4371 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4374 if test $ol_enable_rlookups = yes ; then
4375 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4376 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4378 if test $ol_enable_dynacl = yes ; then
4379 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4380 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4382 if test $ol_enable_aci != no ; then
4383 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4384 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4386 if test $ol_enable_rewrite = yes ; then
4387 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4388 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4390 case "$ol_enable_overlays" in yes | mod)
4391 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4392 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4394 for i in $Overlays; do
4395 eval "ol_tmp=\$ol_enable_$i"
4396 if test $ol_tmp != no ; then
4397 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4398 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4399 eval "ol_enable_$i=no"
4403 # force settings to no
4408 ol_enable_modules=no
4409 ol_enable_rlookups=no
4412 ol_enable_wrappers=no
4414 ol_enable_rewrite=no
4416 elif test $ol_enable_modules != yes &&
4417 test $ol_enable_bdb = no &&
4418 test $ol_enable_dnssrv = no &&
4419 test $ol_enable_hdb = no &&
4420 test $ol_enable_ldap = no &&
4421 test $ol_enable_meta = no &&
4422 test $ol_enable_monitor = no &&
4423 test $ol_enable_ndb = no &&
4424 test $ol_enable_null = no &&
4425 test $ol_enable_passwd = no &&
4426 test $ol_enable_perl = no &&
4427 test $ol_enable_relay = no &&
4428 test $ol_enable_shell = no &&
4429 test $ol_enable_sock = no &&
4430 test $ol_enable_sql = no ; then
4432 if test $ol_enable_slapd = yes ; then
4433 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4434 echo "$as_me: error: slapd requires a backend" >&2;}
4435 { (exit 1); exit 1; }; }
4437 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4438 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4443 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4444 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4445 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4446 { (exit 1); exit 1; }; }
4449 if test $ol_enable_lmpasswd = yes ; then
4450 if test $ol_with_tls = no ; then
4451 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4452 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4453 { (exit 1); exit 1; }; }
4457 if test $ol_enable_spasswd = yes ; then
4458 if test $ol_with_cyrus_sasl = no ; then
4459 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4460 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4461 { (exit 1); exit 1; }; }
4463 ol_with_cyrus_sasl=yes
4466 { echo "$as_me:$LINENO: result: done" >&5
4467 echo "${ECHO_T}done" >&6; }
4518 BUILD_TRANSLUCENT=no
4522 SLAPD_STATIC_OVERLAYS=
4523 SLAPD_DYNAMIC_OVERLAYS=
4525 SLAPD_MODULES_LDFLAGS=
4526 SLAPD_MODULES_CPPFLAGS=
4528 SLAPD_STATIC_BACKENDS=back-ldif
4529 SLAPD_DYNAMIC_BACKENDS=
4554 cat >>confdefs.h <<\_ACEOF
4555 #define HAVE_MKVERSION 1
4563 *-*-aix*) if test -z "$CC" ; then
4564 case "$ol_with_threads" in
4565 auto | yes | posix) ol_aix_threads=yes ;;
4571 if test $ol_aix_threads = yes ; then
4572 if test -z "${CC}" ; then
4573 for ac_prog in cc_r xlc_r cc
4575 # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy $ac_prog; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_CC+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$CC"; then
4583 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_CC="$ac_prog"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 if test -n "$CC"; then
4604 { echo "$as_me:$LINENO: result: $CC" >&5
4605 echo "${ECHO_T}$CC" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4612 test -n "$CC" && break
4616 if test "$CC" = cc ; then
4617 if test $ol_with_threads != auto ; then
4618 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4619 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4620 { (exit 1); exit 1; }; }
4622 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4623 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4629 case ${CC} in cc_r | xlc_r)
4630 ol_with_threads=posix
4631 ol_cv_pthread_create=yes
4636 if test -z "${CC}"; then
4637 for ac_prog in cc gcc
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC="$ac_prog"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { echo "$as_me:$LINENO: result: $CC" >&5
4669 echo "${ECHO_T}$CC" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 test -n "$CC" && break
4678 test -n "$CC" || CC="missing"
4681 if test "${CC}" = "missing" ; then
4682 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4683 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4684 { (exit 1); exit 1; }; }
4688 if test -z "${AR}"; then
4689 for ac_prog in ar gar
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_AR+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$AR"; then
4699 ac_cv_prog_AR="$AR" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_AR="$ac_prog"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test -n "$AR"; then
4720 { echo "$as_me:$LINENO: result: $AR" >&5
4721 echo "${ECHO_T}$AR" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 test -n "$AR" && break
4730 test -n "$AR" || AR="missing"
4733 if test "${AR}" = "missing" ; then
4734 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4735 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4736 { (exit 1); exit 1; }; }
4744 # Check whether --enable-fast-install was given.
4745 if test "${enable_fast_install+set}" = set; then
4746 enableval=$enable_fast_install; p=${PACKAGE-default}
4748 yes) enable_fast_install=yes ;;
4749 no) enable_fast_install=no ;;
4751 enable_fast_install=no
4752 # Look at the argument we got. We use all the common list separators.
4753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4754 for pkg in $enableval; do
4756 if test "X$pkg" = "X$p"; then
4757 enable_fast_install=yes
4764 enable_fast_install=yes
4768 DEPDIR="${am__leading_dot}deps"
4770 ac_config_commands="$ac_config_commands depfiles"
4773 am_make=${MAKE-make}
4774 cat > confinc << 'END'
4779 # If we don't find an include directive, just comment out the code.
4780 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4781 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4785 # First try GNU make style include.
4786 echo "include confinc" > confmf
4787 # We grep out `Entering directory' and `Leaving directory'
4788 # messages which can occur if `w' ends up in MAKEFLAGS.
4789 # In particular we don't look at `^make:' because GNU make might
4790 # be invoked under some other name (usually "gmake"), in which
4791 # case it prints its new name instead of `make'.
4792 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4797 # Now try BSD make style include.
4798 if test "$am__include" = "#"; then
4799 echo '.include "confinc"' > confmf
4800 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4801 am__include=.include
4808 { echo "$as_me:$LINENO: result: $_am_result" >&5
4809 echo "${ECHO_T}$_am_result" >&6; }
4810 rm -f confinc confmf
4812 # Check whether --enable-dependency-tracking was given.
4813 if test "${enable_dependency_tracking+set}" = set; then
4814 enableval=$enable_dependency_tracking;
4817 if test "x$enable_dependency_tracking" != xno; then
4818 am_depcomp="$ac_aux_dir/depcomp"
4821 if test "x$enable_dependency_tracking" != xno; then
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 if test -n "$ac_tool_prefix"; then
4836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_prog_CC+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -n "$CC"; then
4844 ac_cv_prog_CC="$CC" # Let the user override the test.
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 if test -n "$CC"; then
4865 { echo "$as_me:$LINENO: result: $CC" >&5
4866 echo "${ECHO_T}$CC" >&6; }
4868 { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4874 if test -z "$ac_cv_prog_CC"; then
4876 # Extract the first word of "gcc", so it can be a program name with args.
4877 set dummy gcc; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 if test -n "$ac_ct_CC"; then
4884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_CC="gcc"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4904 if test -n "$ac_ct_CC"; then
4905 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4906 echo "${ECHO_T}$ac_ct_CC" >&6; }
4908 { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4912 if test "x$ac_ct_CC" = x; then
4915 case $cross_compiling:$ac_tool_warned in
4917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4918 whose name does not start with the host triplet. If you think this
4919 configuration is useful to you, please write to autoconf@gnu.org." >&5
4920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4921 whose name does not start with the host triplet. If you think this
4922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4923 ac_tool_warned=yes ;;
4931 if test -z "$CC"; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}cc; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_CC+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$CC"; then
4941 ac_cv_prog_CC="$CC" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_CC="${ac_tool_prefix}cc"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 if test -n "$CC"; then
4962 { echo "$as_me:$LINENO: result: $CC" >&5
4963 echo "${ECHO_T}$CC" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4972 if test -z "$CC"; then
4973 # Extract the first word of "cc", so it can be a program name with args.
4974 set dummy cc; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_CC+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$CC"; then
4981 ac_cv_prog_CC="$CC" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4992 ac_prog_rejected=yes
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 if test $ac_prog_rejected = yes; then
5004 # We found a bogon in the path, so make sure we never use it.
5005 set dummy $ac_cv_prog_CC
5007 if test $# != 0; then
5008 # We chose a different compiler from the bogus one.
5009 # However, it has the same basename, so the bogon will be chosen
5010 # first if we set CC to just the basename; use the full file name.
5012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5018 if test -n "$CC"; then
5019 { echo "$as_me:$LINENO: result: $CC" >&5
5020 echo "${ECHO_T}$CC" >&6; }
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5028 if test -z "$CC"; then
5029 if test -n "$ac_tool_prefix"; then
5030 for ac_prog in cl.exe
5032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_CC+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$CC"; then
5040 ac_cv_prog_CC="$CC" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 if test -n "$CC"; then
5061 { echo "$as_me:$LINENO: result: $CC" >&5
5062 echo "${ECHO_T}$CC" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 test -n "$CC" && break
5072 if test -z "$CC"; then
5074 for ac_prog in cl.exe
5076 # Extract the first word of "$ac_prog", so it can be a program name with args.
5077 set dummy $ac_prog; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test -n "$ac_ct_CC"; then
5084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_CC="$ac_prog"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5104 if test -n "$ac_ct_CC"; then
5105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5106 echo "${ECHO_T}$ac_ct_CC" >&6; }
5108 { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5113 test -n "$ac_ct_CC" && break
5116 if test "x$ac_ct_CC" = x; then
5119 case $cross_compiling:$ac_tool_warned in
5121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5122 whose name does not start with the host triplet. If you think this
5123 configuration is useful to you, please write to autoconf@gnu.org." >&5
5124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5125 whose name does not start with the host triplet. If you think this
5126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5127 ac_tool_warned=yes ;;
5136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: no acceptable C compiler found in \$PATH
5139 See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; }
5142 # Provide some information about the compiler.
5143 echo "$as_me:$LINENO: checking for C compiler version" >&5
5144 ac_compiler=`set X $ac_compile; echo $2`
5145 { (ac_try="$ac_compiler --version >&5"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_compiler --version >&5") 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }
5155 { (ac_try="$ac_compiler -v >&5"
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_compiler -v >&5") 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }
5165 { (ac_try="$ac_compiler -V >&5"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compiler -V >&5") 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5191 ac_clean_files_save=$ac_clean_files
5192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5193 # Try to create an executable without -o first, disregard a.out.
5194 # It will help us diagnose broken compilers, and finding out an intuition
5196 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5200 # List of possible output files, starting from the most likely.
5201 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5202 # only as a last resort. b.out is created by i960 compilers.
5203 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5205 # The IRIX 6 linker writes into existing files which may not be
5206 # executable, retaining their permissions. Remove them first so a
5207 # subsequent execution test works.
5209 for ac_file in $ac_files
5212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5218 if { (ac_try="$ac_link_default"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_link_default") 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; then
5228 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5230 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5231 # so that the user can short-circuit this test for compilers unknown to
5233 for ac_file in $ac_files ''
5235 test -f "$ac_file" || continue
5237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5240 # We found the default executable, but exeext='' is most
5244 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5246 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5248 # We set ac_cv_exeext here because the later test for it is not
5249 # safe: cross compilers may not add the suffix if given an `-o'
5250 # argument, so we may need to know it at that point already.
5251 # Even if this section looks crufty: it has the advantage of
5258 test "$ac_cv_exeext" = no && ac_cv_exeext=
5264 { echo "$as_me:$LINENO: result: $ac_file" >&5
5265 echo "${ECHO_T}$ac_file" >&6; }
5266 if test -z "$ac_file"; then
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5271 See \`config.log' for more details." >&5
5272 echo "$as_me: error: C compiler cannot create executables
5273 See \`config.log' for more details." >&2;}
5274 { (exit 77); exit 77; }; }
5277 ac_exeext=$ac_cv_exeext
5279 # Check that the compiler produces executables we can run. If not, either
5280 # the compiler is broken, or we cross compile.
5281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5284 # If not cross compiling, check that we can run a simple program.
5285 if test "$cross_compiling" != yes; then
5286 if { ac_try='./$ac_file'
5287 { (case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_try") 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5298 if test "$cross_compiling" = maybe; then
5301 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5302 If you meant to cross compile, use \`--host'.
5303 See \`config.log' for more details." >&5
5304 echo "$as_me: error: cannot run C compiled programs.
5305 If you meant to cross compile, use \`--host'.
5306 See \`config.log' for more details." >&2;}
5307 { (exit 1); exit 1; }; }
5311 { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5315 ac_clean_files=$ac_clean_files_save
5316 # Check that the compiler produces executables we can run. If not, either
5317 # the compiler is broken, or we cross compile.
5318 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5320 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5321 echo "${ECHO_T}$cross_compiling" >&6; }
5323 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5325 if { (ac_try="$ac_link"
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_link") 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; then
5335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5337 # work properly (i.e., refer to `conftest.exe'), while it won't with
5339 for ac_file in conftest.exe conftest conftest.*; do
5340 test -f "$ac_file" || continue
5342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5349 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5350 See \`config.log' for more details." >&5
5351 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5352 See \`config.log' for more details." >&2;}
5353 { (exit 1); exit 1; }; }
5356 rm -f conftest$ac_cv_exeext
5357 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5358 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5360 rm -f conftest.$ac_ext
5361 EXEEXT=$ac_cv_exeext
5363 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5364 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5365 if test "${ac_cv_objext+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5383 rm -f conftest.o conftest.obj
5384 if { (ac_try="$ac_compile"
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_compile") 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; then
5394 for ac_file in conftest.o conftest.obj conftest.*; do
5395 test -f "$ac_file" || continue;
5397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5407 See \`config.log' for more details." >&5
5408 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5409 See \`config.log' for more details." >&2;}
5410 { (exit 1); exit 1; }; }
5413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5415 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5416 echo "${ECHO_T}$ac_cv_objext" >&6; }
5417 OBJEXT=$ac_cv_objext
5419 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5473 GCC=`test $ac_compiler_gnu = yes && echo yes`
5474 ac_test_CFLAGS=${CFLAGS+set}
5475 ac_save_CFLAGS=$CFLAGS
5476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5478 if test "${ac_cv_prog_cc_g+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 ac_save_c_werror_flag=$ac_c_werror_flag
5482 ac_c_werror_flag=yes
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5523 cat >conftest.$ac_ext <<_ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_compile") 2>conftest.er1
5586 grep -v '^ *+' conftest.er1 >conftest.err
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest.$ac_objext; then
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 ac_c_werror_flag=$ac_save_c_werror_flag
5611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5613 if test "$ac_test_CFLAGS" = set; then
5614 CFLAGS=$ac_save_CFLAGS
5615 elif test $ac_cv_prog_cc_g = yes; then
5616 if test "$GCC" = yes; then
5622 if test "$GCC" = yes; then
5628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5630 if test "${ac_cv_prog_cc_c89+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cv_prog_cc_c89=no
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5643 #include <sys/types.h>
5644 #include <sys/stat.h>
5645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5646 struct buf { int x; };
5647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5648 static char *e (p, i)
5654 static char *f (char * (*g) (char **, int), char **p, ...)
5659 s = g (p, va_arg (v,int));
5664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5665 function prototypes and stuff, but not '\xHH' hex character constants.
5666 These don't provoke an error unfortunately, instead are silently treated
5667 as 'x'. The following induces an error, until -std is added to get
5668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5669 array size at least. It's necessary to write '\x00'==0 to get something
5670 that's true only with -std. */
5671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5674 inside strings and character constants. */
5676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5678 int test (int i, double x);
5679 struct s1 {int (*f) (int a);};
5680 struct s2 {int (*f) (double a);};
5681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5695 CC="$ac_save_CC $ac_arg"
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_prog_cc_c89=$ac_arg
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f core conftest.err conftest.$ac_objext
5722 test "x$ac_cv_prog_cc_c89" != "xno" && break
5724 rm -f conftest.$ac_ext
5729 case "x$ac_cv_prog_cc_c89" in
5731 { echo "$as_me:$LINENO: result: none needed" >&5
5732 echo "${ECHO_T}none needed" >&6; } ;;
5734 { echo "$as_me:$LINENO: result: unsupported" >&5
5735 echo "${ECHO_T}unsupported" >&6; } ;;
5737 CC="$CC $ac_cv_prog_cc_c89"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 depcc="$CC" am_compiler_list=
5751 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5753 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757 # We make a subdir and do the tests there. Otherwise we can end up
5758 # making bogus files that we don't know about and never remove. For
5759 # instance it was reported that on HP-UX the gcc test will end up
5760 # making a dummy file named `D' -- because `-MD' means `put the output
5763 # Copy depcomp to subdir because otherwise we won't find it if we're
5764 # using a relative directory.
5765 cp "$am_depcomp" conftest.dir
5767 # We will build objects and dependencies in a subdirectory because
5768 # it helps to detect inapplicable dependency modes. For instance
5769 # both Tru64's cc and ICC support -MD to output dependencies as a
5770 # side effect of compilation, but ICC will put the dependencies in
5771 # the current directory while Tru64 will put them in the object
5775 am_cv_CC_dependencies_compiler_type=none
5776 if test "$am_compiler_list" = ""; then
5777 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 for depmode in $am_compiler_list; do
5780 # Setup a source with many dependencies, because some compilers
5781 # like to wrap large dependency lists on column 80 (with \), and
5782 # we should not choose a depcomp mode which is confused by this.
5784 # We need to recreate these files for each test, as the compiler may
5785 # overwrite some of them when testing with obscure command lines.
5786 # This happens at least with the AIX C compiler.
5788 for i in 1 2 3 4 5 6; do
5789 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791 # Solaris 8's {/usr,}/bin/sh.
5792 touch sub/conftst$i.h
5794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5798 # after this tag, mechanisms are not by side-effect, so they'll
5799 # only be used when explicitly requested
5800 if test "x$enable_dependency_tracking" = xyes; then
5808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809 # mode. It turns out that the SunPro C++ compiler does not properly
5810 # handle `-M -o', and we need to detect this.
5811 if depmode=$depmode \
5812 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815 >/dev/null 2>conftest.err &&
5816 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5817 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5818 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5819 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5820 # icc doesn't choke on unknown options, it will just issue warnings
5821 # or remarks (even with -Werror). So we grep stderr for any message
5822 # that says an option was ignored or not supported.
5823 # When given -MP, icc 7.0 and 7.1 complain thusly:
5824 # icc: Command line warning: ignoring option '-M'; no argument required
5825 # The diagnosis changed in icc 8.0:
5826 # icc: Command line remark: option '-MP' not supported
5827 if (grep 'ignoring option' conftest.err ||
5828 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5829 am_cv_CC_dependencies_compiler_type=$depmode
5838 am_cv_CC_dependencies_compiler_type=none
5842 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5843 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5844 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5847 test "x$enable_dependency_tracking" != xno \
5848 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5850 am__fastdepCC_FALSE='#'
5852 am__fastdepCC_TRUE='#'
5853 am__fastdepCC_FALSE=
5857 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5858 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5859 if test "${lt_cv_path_SED+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 # Loop through the user's path and test for sed and gsed.
5863 # Then use that list of sed's as ones to test for truncation.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for lt_ac_prog in sed gsed; do
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5872 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5879 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5880 # along with /bin/sed that truncates output.
5881 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5882 test ! -f $lt_ac_sed && continue
5883 cat /dev/null > conftest.in
5885 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5886 # Check for GNU sed and select it if it is found.
5887 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5888 lt_cv_path_SED=$lt_ac_sed
5892 cat conftest.in conftest.in >conftest.tmp
5893 mv conftest.tmp conftest.in
5894 cp conftest.in conftest.nl
5896 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5897 cmp -s conftest.out conftest.nl || break
5898 # 10000 chars as input seems more than enough
5899 test $lt_ac_count -gt 10 && break
5900 lt_ac_count=`expr $lt_ac_count + 1`
5901 if test $lt_ac_count -gt $lt_ac_max; then
5902 lt_ac_max=$lt_ac_count
5903 lt_cv_path_SED=$lt_ac_sed
5911 { echo "$as_me:$LINENO: result: $SED" >&5
5912 echo "${ECHO_T}$SED" >&6; }
5914 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5915 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_GREP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 # Extract the first word of "grep ggrep" to use in msg output
5920 if test -z "$GREP"; then
5921 set dummy grep ggrep; ac_prog_name=$2
5922 if test "${ac_cv_path_GREP+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_path_GREP_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5931 test -z "$as_dir" && as_dir=.
5932 for ac_prog in grep ggrep; do
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5936 # Check for GNU ac_path_GREP and select it if it is found.
5937 # Check for GNU $ac_path_GREP
5938 case `"$ac_path_GREP" --version 2>&1` in
5940 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5943 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 echo 'GREP' >> "conftest.nl"
5950 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5952 ac_count=`expr $ac_count + 1`
5953 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_GREP="$ac_path_GREP"
5956 ac_path_GREP_max=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5965 $ac_path_GREP_found && break 3
5975 GREP="$ac_cv_path_GREP"
5976 if test -z "$GREP"; then
5977 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5978 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5979 { (exit 1); exit 1; }; }
5983 ac_cv_path_GREP=$GREP
5988 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5989 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5990 GREP="$ac_cv_path_GREP"
5993 { echo "$as_me:$LINENO: checking for egrep" >&5
5994 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_EGREP+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5999 then ac_cv_path_EGREP="$GREP -E"
6001 # Extract the first word of "egrep" to use in msg output
6002 if test -z "$EGREP"; then
6003 set dummy egrep; ac_prog_name=$2
6004 if test "${ac_cv_path_EGREP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in egrep; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 ac_count=`expr $ac_count + 1`
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP="$ac_path_EGREP"
6038 ac_path_EGREP_max=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 $ac_path_EGREP_found && break 3
6057 EGREP="$ac_cv_path_EGREP"
6058 if test -z "$EGREP"; then
6059 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6061 { (exit 1); exit 1; }; }
6065 ac_cv_path_EGREP=$EGREP
6071 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6072 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6073 EGREP="$ac_cv_path_EGREP"
6077 # Check whether --with-gnu-ld was given.
6078 if test "${with_gnu_ld+set}" = set; then
6079 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6085 if test "$GCC" = yes; then
6086 # Check if gcc -print-prog-name=ld gives a path.
6087 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6091 # gcc leaves a trailing carriage return which upsets mingw
6092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6097 # Accept absolute paths.
6099 re_direlt='/[^/][^/]*/\.\./'
6100 # Canonicalize the pathname of ld
6101 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6102 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6103 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6105 test -z "$LD" && LD="$ac_prog"
6108 # If it fails, then pretend we aren't using GCC.
6112 # If it is relative, then search for the first ld in PATH.
6116 elif test "$with_gnu_ld" = yes; then
6117 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6120 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6123 if test "${lt_cv_path_LD+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 if test -z "$LD"; then
6127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6128 for ac_dir in $PATH; do
6130 test -z "$ac_dir" && ac_dir=.
6131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6132 lt_cv_path_LD="$ac_dir/$ac_prog"
6133 # Check to see if the program is GNU ld. I'd rather use --version,
6134 # but apparently some variants of GNU ld only accept -v.
6135 # Break only if it was the GNU/non-GNU ld that we prefer.
6136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6137 *GNU* | *'with BFD'*)
6138 test "$with_gnu_ld" != no && break
6141 test "$with_gnu_ld" != yes && break
6148 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6153 if test -n "$LD"; then
6154 { echo "$as_me:$LINENO: result: $LD" >&5
6155 echo "${ECHO_T}$LD" >&6; }
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6162 { (exit 1); exit 1; }; }
6163 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6169 case `$LD -v 2>&1 </dev/null` in
6170 *GNU* | *'with BFD'*)
6171 lt_cv_prog_gnu_ld=yes
6174 lt_cv_prog_gnu_ld=no
6178 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6180 with_gnu_ld=$lt_cv_prog_gnu_ld
6183 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6184 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6185 if test "${lt_cv_ld_reload_flag+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 lt_cv_ld_reload_flag='-r'
6190 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6191 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6195 *) reload_flag=" $reload_flag" ;;
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6200 if test "$GCC" = yes; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6208 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6209 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6210 if test "${lt_cv_path_NM+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if test -n "$NM"; then
6214 # Let the user override the test.
6217 lt_nm_to_check="${ac_tool_prefix}nm"
6218 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6219 lt_nm_to_check="$lt_nm_to_check nm"
6221 for lt_tmp_nm in $lt_nm_to_check; do
6222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6223 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6225 test -z "$ac_dir" && ac_dir=.
6226 tmp_nm="$ac_dir/$lt_tmp_nm"
6227 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6228 # Check to see if the nm accepts a BSD-compat flag.
6229 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6230 # nm: unknown option "B" ignored
6231 # Tru64's nm complains that /dev/null is an invalid object file
6232 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6233 */dev/null* | *'Invalid file or object type'*)
6234 lt_cv_path_NM="$tmp_nm -B"
6238 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6240 lt_cv_path_NM="$tmp_nm -p"
6244 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6245 continue # so that we can try to find one that supports BSD flags
6254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6257 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6258 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6261 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6262 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6264 if test "$LN_S" = "ln -s"; then
6265 { echo "$as_me:$LINENO: result: yes" >&5
6266 echo "${ECHO_T}yes" >&6; }
6268 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6269 echo "${ECHO_T}no, using $LN_S" >&6; }
6272 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6273 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6274 if test "${lt_cv_deplibs_check_method+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 lt_cv_file_magic_cmd='$MAGIC_CMD'
6278 lt_cv_file_magic_test_file=
6279 lt_cv_deplibs_check_method='unknown'
6280 # Need to set the preceding variable on all platforms that support
6281 # interlibrary dependencies.
6282 # 'none' -- dependencies not supported.
6283 # `unknown' -- same as none, but documents that we really don't know.
6284 # 'pass_all' -- all dependencies passed with no checks.
6285 # 'test_compile' -- check by making test program.
6286 # 'file_magic [[regex]]' -- check by looking for files in library path
6287 # which responds to the $file_magic_cmd with a given extended regex.
6288 # If you have `file' or equivalent on your system and you're not sure
6289 # whether `pass_all' will *always* work, you probably want this one.
6293 lt_cv_deplibs_check_method=pass_all
6297 lt_cv_deplibs_check_method=pass_all
6301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6302 lt_cv_file_magic_cmd='/usr/bin/file -L'
6303 lt_cv_file_magic_test_file=/shlib/libc.so
6307 # func_win32_libid is a shell function defined in ltmain.sh
6308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6309 lt_cv_file_magic_cmd='func_win32_libid'
6313 # Base MSYS/MinGW do not provide the 'file' command needed by
6314 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6315 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6316 lt_cv_file_magic_cmd='$OBJDUMP -f'
6319 darwin* | rhapsody*)
6320 lt_cv_deplibs_check_method=pass_all
6323 freebsd* | kfreebsd*-gnu | dragonfly*)
6324 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6327 # Not sure whether the presence of OpenBSD here was a mistake.
6328 # Let's accept both of them until this is cleared up.
6329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6330 lt_cv_file_magic_cmd=/usr/bin/file
6331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6335 lt_cv_deplibs_check_method=pass_all
6340 lt_cv_deplibs_check_method=pass_all
6343 hpux10.20* | hpux11*)
6344 lt_cv_file_magic_cmd=/usr/bin/file
6347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6348 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6351 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]'
6352 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6356 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6362 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6366 irix5* | irix6* | nonstopux*)
6368 *-32|*"-32 ") libmagic=32-bit;;
6369 *-n32|*"-n32 ") libmagic=N32;;
6370 *-64|*"-64 ") libmagic=64-bit;;
6371 *) libmagic=never-match;;
6373 lt_cv_deplibs_check_method=pass_all
6376 # This must be Linux ELF.
6378 lt_cv_deplibs_check_method=pass_all
6382 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6391 lt_cv_file_magic_cmd=/usr/bin/file
6392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6396 lt_cv_deplibs_check_method=unknown
6400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6407 osf3* | osf4* | osf5*)
6408 lt_cv_deplibs_check_method=pass_all
6412 lt_cv_deplibs_check_method=pass_all
6416 case $host_vendor in
6418 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]'
6419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6422 lt_cv_deplibs_check_method=pass_all
6425 lt_cv_file_magic_cmd='/bin/file'
6426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6429 lt_cv_file_magic_cmd='/bin/file'
6430 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6431 lt_cv_file_magic_test_file=/lib/libc.so
6434 lt_cv_deplibs_check_method=pass_all
6437 lt_cv_deplibs_check_method=pass_all
6442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6443 lt_cv_deplibs_check_method=pass_all
6448 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6449 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6450 file_magic_cmd=$lt_cv_file_magic_cmd
6451 deplibs_check_method=$lt_cv_deplibs_check_method
6452 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6457 # If no C compiler was specified, use CC.
6460 # If no C compiler flags were specified, use CFLAGS.
6461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6463 # Allow CC to be a program name with arguments.
6467 # Check whether --enable-libtool-lock was given.
6468 if test "${enable_libtool_lock+set}" = set; then
6469 enableval=$enable_libtool_lock;
6472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6474 # Some flags need to be propagated to the compiler or linker for good
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6497 # Find out which ABI we are using.
6498 echo '#line 6498 "configure"' > conftest.$ac_ext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; then
6504 if test "$lt_cv_prog_gnu_ld" = yes; then
6505 case `/usr/bin/file conftest.$ac_objext` in
6507 LD="${LD-ld} -melf32bsmip"
6510 LD="${LD-ld} -melf32bmipn32"
6513 LD="${LD-ld} -melf64bmip"
6517 case `/usr/bin/file conftest.$ac_objext` in
6533 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6534 # Find out which ABI we are using.
6535 echo 'int i;' > conftest.$ac_ext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; then
6541 case `/usr/bin/file conftest.o` in
6545 LD="${LD-ld} -m elf_i386"
6547 ppc64-*linux*|powerpc64-*linux*)
6548 LD="${LD-ld} -m elf32ppclinux"
6551 LD="${LD-ld} -m elf_s390"
6554 LD="${LD-ld} -m elf32_sparc"
6561 LD="${LD-ld} -m elf_x86_64"
6563 ppc*-*linux*|powerpc*-*linux*)
6564 LD="${LD-ld} -m elf64ppc"
6567 LD="${LD-ld} -m elf64_s390"
6570 LD="${LD-ld} -m elf64_sparc"
6580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6581 SAVE_CFLAGS="$CFLAGS"
6582 CFLAGS="$CFLAGS -belf"
6583 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6584 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6585 if test "${lt_cv_cc_needs_belf+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 cat >conftest.$ac_ext <<_ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_link") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest$ac_exeext &&
6626 $as_test_x conftest$ac_exeext; then
6627 lt_cv_cc_needs_belf=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 lt_cv_cc_needs_belf=no
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636 conftest$ac_exeext conftest.$ac_ext
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6645 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6646 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6648 CFLAGS="$SAVE_CFLAGS"
6652 # Find out which ABI we are using.
6653 echo 'int i;' > conftest.$ac_ext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; then
6659 case `/usr/bin/file conftest.o` in
6661 case $lt_cv_prog_gnu_ld in
6662 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6663 *) LD="${LD-ld} -64" ;;
6671 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$DLLTOOL"; then
6681 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 DLLTOOL=$ac_cv_prog_DLLTOOL
6701 if test -n "$DLLTOOL"; then
6702 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6703 echo "${ECHO_T}$DLLTOOL" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6711 if test -z "$ac_cv_prog_DLLTOOL"; then
6712 ac_ct_DLLTOOL=$DLLTOOL
6713 # Extract the first word of "dlltool", so it can be a program name with args.
6714 set dummy dlltool; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 if test -n "$ac_ct_DLLTOOL"; then
6721 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6741 if test -n "$ac_ct_DLLTOOL"; then
6742 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6743 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749 if test "x$ac_ct_DLLTOOL" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6762 DLLTOOL=$ac_ct_DLLTOOL
6765 DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}as; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_AS+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$AS"; then
6777 ac_cv_prog_AS="$AS" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_AS="${ac_tool_prefix}as"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 if test -n "$AS"; then
6798 { echo "$as_me:$LINENO: result: $AS" >&5
6799 echo "${ECHO_T}$AS" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6807 if test -z "$ac_cv_prog_AS"; then
6809 # Extract the first word of "as", so it can be a program name with args.
6810 set dummy as; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -n "$ac_ct_AS"; then
6817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_AS="as"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6837 if test -n "$ac_ct_AS"; then
6838 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6839 echo "${ECHO_T}$ac_ct_AS" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6845 if test "x$ac_ct_AS" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet. If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test -n "$OBJDUMP"; then
6873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 OBJDUMP=$ac_cv_prog_OBJDUMP
6893 if test -n "$OBJDUMP"; then
6894 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6895 echo "${ECHO_T}$OBJDUMP" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6903 if test -z "$ac_cv_prog_OBJDUMP"; then
6904 ac_ct_OBJDUMP=$OBJDUMP
6905 # Extract the first word of "objdump", so it can be a program name with args.
6906 set dummy objdump; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 if test -n "$ac_ct_OBJDUMP"; then
6913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6933 if test -n "$ac_ct_OBJDUMP"; then
6934 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6935 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6941 if test "x$ac_ct_OBJDUMP" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&5
6949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950 whose name does not start with the host triplet. If you think this
6951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952 ac_tool_warned=yes ;;
6954 OBJDUMP=$ac_ct_OBJDUMP
6957 OBJDUMP="$ac_cv_prog_OBJDUMP"
6964 need_locks="$enable_libtool_lock"
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6978 if test -z "$CPP"; then
6979 if test "${ac_cv_prog_CPP+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 # Double quotes because CPP needs to be expanded
6983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6986 for ac_c_preproc_warn_flag in '' yes
6988 # Use a header file that comes with gcc, so configuring glibc
6989 # with a fresh cross-compiler works.
6990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991 # <limits.h> exists even on freestanding compilers.
6992 # On the NeXT, cc -E runs the code through the compiler's parser,
6993 # not just through cpp. "Syntax error" is here to catch this case.
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7001 # include <limits.h>
7003 # include <assert.h>
7007 if { (ac_try="$ac_cpp conftest.$ac_ext"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } >/dev/null && {
7020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 # Broken: fails on valid input.
7032 rm -f conftest.err conftest.$ac_ext
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <ac_nonexistent.h>
7044 if { (ac_try="$ac_cpp conftest.$ac_ext"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } >/dev/null && {
7057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7060 # Broken: success on invalid input.
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 # Passes both tests.
7071 rm -f conftest.err conftest.$ac_ext
7074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7075 rm -f conftest.err conftest.$ac_ext
7076 if $ac_preproc_ok; then
7088 { echo "$as_me:$LINENO: result: $CPP" >&5
7089 echo "${ECHO_T}$CPP" >&6; }
7091 for ac_c_preproc_warn_flag in '' yes
7093 # Use a header file that comes with gcc, so configuring glibc
7094 # with a fresh cross-compiler works.
7095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7096 # <limits.h> exists even on freestanding compilers.
7097 # On the NeXT, cc -E runs the code through the compiler's parser,
7098 # not just through cpp. "Syntax error" is here to catch this case.
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7106 # include <limits.h>
7108 # include <assert.h>
7112 if { (ac_try="$ac_cpp conftest.$ac_ext"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev/null && {
7125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 # Broken: fails on valid input.
7137 rm -f conftest.err conftest.$ac_ext
7139 # OK, works on sane cases. Now check whether nonexistent headers
7140 # can be detected and how.
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <ac_nonexistent.h>
7149 if { (ac_try="$ac_cpp conftest.$ac_ext"
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7157 grep -v '^ *+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } >/dev/null && {
7162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7165 # Broken: success on invalid input.
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 # Passes both tests.
7176 rm -f conftest.err conftest.$ac_ext
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7184 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7185 See \`config.log' for more details." >&5
7186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7187 See \`config.log' for more details." >&2;}
7188 { (exit 1); exit 1; }; }
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7200 if test "${ac_cv_header_stdc+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7231 grep -v '^ *+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7239 ac_cv_header_stdc=yes
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 ac_cv_header_stdc=no
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 if test $ac_cv_header_stdc = yes; then
7250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7251 cat >conftest.$ac_ext <<_ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7261 $EGREP "memchr" >/dev/null 2>&1; then
7264 ac_cv_header_stdc=no
7270 if test $ac_cv_header_stdc = yes; then
7271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 $EGREP "free" >/dev/null 2>&1; then
7285 ac_cv_header_stdc=no
7291 if test $ac_cv_header_stdc = yes; then
7292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7293 if test "$cross_compiling" = yes; then
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7304 #if ((' ' & 0x0FF) == 0x020)
7305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7308 # define ISLOWER(c) \
7309 (('a' <= (c) && (c) <= 'i') \
7310 || ('j' <= (c) && (c) <= 'r') \
7311 || ('s' <= (c) && (c) <= 'z'))
7312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7320 for (i = 0; i < 256; i++)
7321 if (XOR (islower (i), ISLOWER (i))
7322 || toupper (i) != TOUPPER (i))
7327 rm -f conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_link") 2>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7338 { (case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_try") 2>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7349 echo "$as_me: program exited with status $ac_status" >&5
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_cv_header_stdc=no
7356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7363 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7364 if test $ac_cv_header_stdc = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define STDC_HEADERS 1
7372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7383 inttypes.h stdint.h unistd.h
7385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7399 #include <$ac_header>
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7418 eval "$as_ac_Header=yes"
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 eval "$as_ac_Header=no"
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 ac_res=`eval echo '${'$as_ac_Header'}'`
7429 { echo "$as_me:$LINENO: result: $ac_res" >&5
7430 echo "${ECHO_T}$ac_res" >&6; }
7431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7432 cat >>confdefs.h <<_ACEOF
7433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7442 for ac_header in dlfcn.h
7444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 ac_res=`eval echo '${'$as_ac_Header'}'`
7452 { echo "$as_me:$LINENO: result: $ac_res" >&5
7453 echo "${ECHO_T}$ac_res" >&6; }
7455 # Is the header compilable?
7456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7465 #include <$ac_header>
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7476 grep -v '^ *+' conftest.er1 >conftest.err
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.$ac_objext; then
7484 ac_header_compiler=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 ac_header_compiler=no
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6; }
7496 # Is the header present?
7497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <$ac_header>
7507 if { (ac_try="$ac_cpp conftest.$ac_ext"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } >/dev/null && {
7520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7523 ac_header_preproc=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_header_preproc=no
7531 rm -f conftest.err conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7533 echo "${ECHO_T}$ac_header_preproc" >&6; }
7535 # So? What about this header?
7536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7542 ac_header_preproc=yes
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7558 ## --------------------------------------------- ##
7559 ## Report this to <http://www.openldap.org/its/> ##
7560 ## --------------------------------------------- ##
7562 ) | sed "s/^/$as_me: WARNING: /" >&2
7565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 eval "$as_ac_Header=\$ac_header_preproc"
7572 ac_res=`eval echo '${'$as_ac_Header'}'`
7573 { echo "$as_me:$LINENO: result: $ac_res" >&5
7574 echo "${ECHO_T}$ac_res" >&6; }
7577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7589 # find the maximum length of command line arguments
7590 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7591 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7592 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 # On DJGPP, this test can blow up pretty badly due to problems in libc
7601 # (any single argument exceeding 2000 bytes causes a buffer overrun
7602 # during glob expansion). Even if it were fixed, the result of this
7603 # check would be larger than it should be.
7604 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7608 # Under GNU Hurd, this test is not required because there is
7609 # no limit to the length of command line arguments.
7610 # Libtool will interpret -1 as no limit whatsoever
7611 lt_cv_sys_max_cmd_len=-1;
7615 # On Win9x/ME, this test blows up -- it succeeds, but takes
7616 # about 5 minutes as the teststring grows exponentially.
7617 # Worse, since 9x/ME are not pre-emptively multitasking,
7618 # you end up with a "frozen" computer, even though with patience
7619 # the test eventually succeeds (with a max line length of 256k).
7620 # Instead, let's just punt: use the minimum linelength reported by
7621 # all of the supported platforms: 8192 (on NT/2K/XP).
7622 lt_cv_sys_max_cmd_len=8192;
7626 # On AmigaOS with pdksh, this test takes hours, literally.
7627 # So we just punt and use a minimum line length of 8192.
7628 lt_cv_sys_max_cmd_len=8192;
7631 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7632 # This has been around since 386BSD, at least. Likely further.
7633 if test -x /sbin/sysctl; then
7634 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7635 elif test -x /usr/sbin/sysctl; then
7636 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7638 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7640 # And add a safety zone
7641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7646 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7647 lt_cv_sys_max_cmd_len=196608
7651 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7652 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7653 # nice to cause kernel panics so lets avoid the loop below.
7654 # First set a reasonable default.
7655 lt_cv_sys_max_cmd_len=16384
7657 if test -x /sbin/sysconfig; then
7658 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7659 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7664 lt_cv_sys_max_cmd_len=102400
7666 sysv5* | sco5v6* | sysv4.2uw2*)
7667 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7668 if test -n "$kargmax"; then
7669 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7671 lt_cv_sys_max_cmd_len=32768
7675 # If test is not a shell built-in, we'll probably end up computing a
7676 # maximum length that is only half of the actual maximum length, but
7678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7679 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7680 = "XX$teststring") >/dev/null 2>&1 &&
7681 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7682 lt_cv_sys_max_cmd_len=$new_result &&
7683 test $i != 17 # 1/2 MB should be enough
7686 teststring=$teststring$teststring
7689 # Add a significant safety factor because C++ compilers can tack on massive
7690 # amounts of additional arguments before passing them to the linker.
7691 # It appears as though 1/2 is a usable value.
7692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7698 if test -n $lt_cv_sys_max_cmd_len ; then
7699 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7700 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7702 { echo "$as_me:$LINENO: result: none" >&5
7703 echo "${ECHO_T}none" >&6; }
7709 # Check for command to grab the raw symbol name followed by C symbol from nm.
7710 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7711 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7712 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 # These are sane defaults that work on at least a few old systems.
7717 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7719 # Character class describing NM global symbol codes.
7720 symcode='[BCDEGRST]'
7722 # Regexp to match symbols that can be accessed directly from C.
7723 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7725 # Transform an extracted symbol line into a proper C declaration
7726 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7728 # Transform an extracted symbol line into symbol name and symbol address
7729 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'"
7731 # Define system-specific variables.
7736 cygwin* | mingw* | pw32*)
7737 symcode='[ABCDGISTW]'
7739 hpux*) # Its linker distinguishes data from code symbols
7740 if test "$host_cpu" = ia64; then
7741 symcode='[ABCDEGRST]'
7743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7744 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'"
7747 if test "$host_cpu" = ia64; then
7748 symcode='[ABCDGIRSTW]'
7749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7750 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'"
7754 symcode='[BCDEGRST]'
7757 symcode='[BCDEGQRST]'
7768 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7776 # Handle CRLF in mingw tool chain
7780 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7784 # If we're using GNU nm, then use its standard symbol codes.
7785 case `$NM -V 2>&1` in
7786 *GNU* | *'with BFD'*)
7787 symcode='[ABCDGIRSTW]' ;;
7790 # Try without a prefix undercore, then with it.
7791 for ac_symprfx in "" "_"; do
7793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7794 symxfrm="\\1 $ac_symprfx\\2 \\2"
7796 # Write the raw and C identifiers.
7797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7799 # Check to see that the pipe works correctly.
7803 cat > conftest.$ac_ext <<EOF
7808 void nm_test_func(){}
7812 int main(){nm_test_var='a';nm_test_func();return(0);}
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; then
7820 # Now try to grab the symbols.
7822 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7823 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && test -s "$nlist"; then
7827 # Try sorting and uniquifying the output.
7828 if sort "$nlist" | uniq > "$nlist"T; then
7829 mv -f "$nlist"T "$nlist"
7834 # Make sure that we snagged all the symbols we need.
7835 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7836 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7837 cat <<EOF > conftest.$ac_ext
7843 # Now generate the symbol file.
7844 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7846 cat <<EOF >> conftest.$ac_ext
7847 #if defined (__STDC__) && __STDC__
7848 # define lt_ptr_t void *
7850 # define lt_ptr_t char *
7854 /* The mapping between symbol names and symbols. */
7859 lt_preloaded_symbols[] =
7862 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7863 cat <<\EOF >> conftest.$ac_ext
7871 # Now try linking the two files.
7872 mv conftest.$ac_objext conftstm.$ac_objext
7873 lt_save_LIBS="$LIBS"
7874 lt_save_CFLAGS="$CFLAGS"
7875 LIBS="conftstm.$ac_objext"
7876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7884 LIBS="$lt_save_LIBS"
7885 CFLAGS="$lt_save_CFLAGS"
7887 echo "cannot find nm_test_func in $nlist" >&5
7890 echo "cannot find nm_test_var in $nlist" >&5
7893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7896 echo "$progname: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7899 rm -f conftest* conftst*
7901 # Do not use the global_symbol_pipe unless it works.
7902 if test "$pipe_works" = yes; then
7905 lt_cv_sys_global_symbol_pipe=
7911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7912 lt_cv_sys_global_symbol_to_cdecl=
7914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7915 { echo "$as_me:$LINENO: result: failed" >&5
7916 echo "${ECHO_T}failed" >&6; }
7918 { echo "$as_me:$LINENO: result: ok" >&5
7919 echo "${ECHO_T}ok" >&6; }
7922 { echo "$as_me:$LINENO: checking for objdir" >&5
7923 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7924 if test "${lt_cv_objdir+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 rm -f .libs 2>/dev/null
7928 mkdir .libs 2>/dev/null
7929 if test -d .libs; then
7932 # MS-DOS does not allow filenames that begin with a dot.
7935 rmdir .libs 2>/dev/null
7937 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7938 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7939 objdir=$lt_cv_objdir
7947 # AIX sometimes has problems with the GCC collect2 program. For some
7948 # reason, if we set the COLLECT_NAMES environment variable, the problems
7949 # vanish in a puff of smoke.
7950 if test "X${COLLECT_NAMES+set}" != Xset; then
7952 export COLLECT_NAMES
7957 # Sed substitution that helps us do robust quoting. It backslashifies
7958 # metacharacters that are still active within double-quoted strings.
7959 Xsed='sed -e 1s/^X//'
7960 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7962 # Same as above, but do not quote variable references.
7963 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7965 # Sed substitution to delay expansion of an escaped shell variable in a
7966 # double_quote_subst'ed string.
7967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7969 # Sed substitution to avoid accidental globbing in evaled expressions
7970 no_glob_subst='s/\*/\\\*/g'
7976 default_ofile=libtool
7977 can_build_shared=yes
7979 # All known linkers require a `.a' archive for static linking (except MSVC,
7980 # which needs '.lib').
7982 ltmain="$ac_aux_dir/ltmain.sh"
7983 ofile="$default_ofile"
7984 with_gnu_ld="$lt_cv_prog_gnu_ld"
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}ar; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_prog_AR+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test -n "$AR"; then
7995 ac_cv_prog_AR="$AR" # Let the user override the test.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_AR="${ac_tool_prefix}ar"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 if test -n "$AR"; then
8016 { echo "$as_me:$LINENO: result: $AR" >&5
8017 echo "${ECHO_T}$AR" >&6; }
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8025 if test -z "$ac_cv_prog_AR"; then
8027 # Extract the first word of "ar", so it can be a program name with args.
8028 set dummy ar; ac_word=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 if test -n "$ac_ct_AR"; then
8035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_ac_ct_AR="ar"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8055 if test -n "$ac_ct_AR"; then
8056 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8057 echo "${ECHO_T}$ac_ct_AR" >&6; }
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8063 if test "x$ac_ct_AR" = x; then
8066 case $cross_compiling:$ac_tool_warned in
8068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8069 whose name does not start with the host triplet. If you think this
8070 configuration is useful to you, please write to autoconf@gnu.org." >&5
8071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8072 whose name does not start with the host triplet. If you think this
8073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8074 ac_tool_warned=yes ;;
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_prog_RANLIB+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 if test -n "$RANLIB"; then
8091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 RANLIB=$ac_cv_prog_RANLIB
8111 if test -n "$RANLIB"; then
8112 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8113 echo "${ECHO_T}$RANLIB" >&6; }
8115 { echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6; }
8121 if test -z "$ac_cv_prog_RANLIB"; then
8122 ac_ct_RANLIB=$RANLIB
8123 # Extract the first word of "ranlib", so it can be a program name with args.
8124 set dummy ranlib; ac_word=$2
8125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 if test -n "$ac_ct_RANLIB"; then
8131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_ac_ct_RANLIB="ranlib"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8151 if test -n "$ac_ct_RANLIB"; then
8152 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8155 { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8159 if test "x$ac_ct_RANLIB" = x; then
8162 case $cross_compiling:$ac_tool_warned in
8164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8165 whose name does not start with the host triplet. If you think this
8166 configuration is useful to you, please write to autoconf@gnu.org." >&5
8167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8168 whose name does not start with the host triplet. If you think this
8169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8170 ac_tool_warned=yes ;;
8172 RANLIB=$ac_ct_RANLIB
8175 RANLIB="$ac_cv_prog_RANLIB"
8178 if test -n "$ac_tool_prefix"; then
8179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}strip; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_prog_STRIP+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 if test -n "$STRIP"; then
8187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 STRIP=$ac_cv_prog_STRIP
8207 if test -n "$STRIP"; then
8208 { echo "$as_me:$LINENO: result: $STRIP" >&5
8209 echo "${ECHO_T}$STRIP" >&6; }
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8217 if test -z "$ac_cv_prog_STRIP"; then
8219 # Extract the first word of "strip", so it can be a program name with args.
8220 set dummy strip; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 if test -n "$ac_ct_STRIP"; then
8227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_prog_ac_ct_STRIP="strip"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8247 if test -n "$ac_ct_STRIP"; then
8248 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8249 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8251 { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8255 if test "x$ac_ct_STRIP" = x; then
8258 case $cross_compiling:$ac_tool_warned in
8260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8261 whose name does not start with the host triplet. If you think this
8262 configuration is useful to you, please write to autoconf@gnu.org." >&5
8263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8264 whose name does not start with the host triplet. If you think this
8265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8266 ac_tool_warned=yes ;;
8271 STRIP="$ac_cv_prog_STRIP"
8276 old_CFLAGS="$CFLAGS"
8278 # Set sane defaults for various variables
8279 test -z "$AR" && AR=ar
8280 test -z "$AR_FLAGS" && AR_FLAGS=cru
8281 test -z "$AS" && AS=as
8282 test -z "$CC" && CC=cc
8283 test -z "$LTCC" && LTCC=$CC
8284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8285 test -z "$DLLTOOL" && DLLTOOL=dlltool
8286 test -z "$LD" && LD=ld
8287 test -z "$LN_S" && LN_S="ln -s"
8288 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8289 test -z "$NM" && NM=nm
8290 test -z "$SED" && SED=sed
8291 test -z "$OBJDUMP" && OBJDUMP=objdump
8292 test -z "$RANLIB" && RANLIB=:
8293 test -z "$STRIP" && STRIP=:
8294 test -z "$ac_objext" && ac_objext=o
8296 # Determine commands to create old-style static archives.
8297 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8298 old_postinstall_cmds='chmod 644 $oldlib'
8299 old_postuninstall_cmds=
8301 if test -n "$RANLIB"; then
8304 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8307 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8310 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8313 for cc_temp in $compiler""; do
8315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8321 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8324 # Only perform the check for file, if the check method requires it
8325 case $deplibs_check_method in
8327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8328 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8329 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338 lt_save_MAGIC_CMD="$MAGIC_CMD"
8339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8341 for ac_dir in $ac_dummy; do
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/${ac_tool_prefix}file; then
8345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8346 if test -n "$file_magic_test_file"; then
8347 case $deplibs_check_method in
8349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8352 $EGREP "$file_magic_regex" > /dev/null; then
8357 *** Warning: the command libtool uses to detect shared libraries,
8358 *** $file_magic_cmd, produces output that libtool cannot recognize.
8359 *** The result is that libtool may fail to recognize shared libraries
8360 *** as such. This will affect the creation of libtool libraries that
8361 *** depend on shared libraries, but programs linked with such libtool
8362 *** libraries will work regardless of this problem. Nevertheless, you
8363 *** may want to report the problem to your system manager and/or to
8364 *** bug-libtool@gnu.org
8374 MAGIC_CMD="$lt_save_MAGIC_CMD"
8379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8380 if test -n "$MAGIC_CMD"; then
8381 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8382 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8384 { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8388 if test -z "$lt_cv_path_MAGIC_CMD"; then
8389 if test -n "$ac_tool_prefix"; then
8390 { echo "$as_me:$LINENO: checking for file" >&5
8391 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8392 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8400 lt_save_MAGIC_CMD="$MAGIC_CMD"
8401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8403 for ac_dir in $ac_dummy; do
8405 test -z "$ac_dir" && ac_dir=.
8406 if test -f $ac_dir/file; then
8407 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8408 if test -n "$file_magic_test_file"; then
8409 case $deplibs_check_method in
8411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8414 $EGREP "$file_magic_regex" > /dev/null; then
8419 *** Warning: the command libtool uses to detect shared libraries,
8420 *** $file_magic_cmd, produces output that libtool cannot recognize.
8421 *** The result is that libtool may fail to recognize shared libraries
8422 *** as such. This will affect the creation of libtool libraries that
8423 *** depend on shared libraries, but programs linked with such libtool
8424 *** libraries will work regardless of this problem. Nevertheless, you
8425 *** may want to report the problem to your system manager and/or to
8426 *** bug-libtool@gnu.org
8436 MAGIC_CMD="$lt_save_MAGIC_CMD"
8441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442 if test -n "$MAGIC_CMD"; then
8443 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8444 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8446 { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8460 enable_win32_dll=yes
8462 # Check whether --enable-libtool-lock was given.
8463 if test "${enable_libtool_lock+set}" = set; then
8464 enableval=$enable_libtool_lock;
8467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8470 # Check whether --with-pic was given.
8471 if test "${with_pic+set}" = set; then
8472 withval=$with_pic; pic_mode="$withval"
8477 test -z "$pic_mode" && pic_mode=default
8479 # Use C for the default configuration in the libtool script
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489 # Source file extension for C test sources.
8492 # Object file extension for compiled C test sources.
8496 # Code to be used in simple compile tests
8497 lt_simple_compile_test_code="int some_variable = 0;\n"
8499 # Code to be used in simple link tests
8500 lt_simple_link_test_code='int main(){return(0);}\n'
8503 # If no C compiler was specified, use CC.
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509 # Allow CC to be a program name with arguments.
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8520 ac_outfile=conftest.$ac_objext
8521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8528 lt_prog_compiler_no_builtin_flag=
8530 if test "$GCC" = yes; then
8531 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8534 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 lt_cv_prog_compiler_rtti_exceptions=no
8540 ac_outfile=conftest.$ac_objext
8541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8542 lt_compiler_flag="-fno-rtti -fno-exceptions"
8543 # Insert the option either (1) after the last *FLAGS variable, or
8544 # (2) before a word containing "conftest.", or (3) at the end.
8545 # Note that $ac_compile itself does not contain backslashes and begins
8546 # with a dollar sign (not a hyphen), so the echo should work correctly.
8547 # The option is referenced via a variable to avoid confusing sed.
8548 lt_compile=`echo "$ac_compile" | $SED \
8549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8551 -e 's:$: $lt_compiler_flag:'`
8552 (eval echo "\"\$as_me:8552: $lt_compile\"" >&5)
8553 (eval "$lt_compile" 2>conftest.err)
8555 cat conftest.err >&5
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 if (exit $ac_status) && test -s "$ac_outfile"; then
8558 # The compiler can only warn and ignore the option if not recognized
8559 # So say no if there are warnings other than the usual output.
8560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8563 lt_cv_prog_compiler_rtti_exceptions=yes
8569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8573 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8580 lt_prog_compiler_wl=
8581 lt_prog_compiler_pic=
8582 lt_prog_compiler_static=
8584 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8587 if test "$GCC" = yes; then
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_static='-static'
8593 # All AIX code is PIC.
8594 if test "$host_cpu" = ia64; then
8595 # AIX 5 now supports IA64 processor
8596 lt_prog_compiler_static='-Bstatic'
8601 # FIXME: we need at least 68020 code to build shared libraries, but
8602 # adding the `-m68020' flag to GCC prevents building anything better,
8604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8608 # PIC is the default for these OSes.
8611 mingw* | pw32* | os2*)
8612 # This hack is so that the source file can tell whether it is being
8613 # built for inclusion in a dll (and should export symbols for example).
8614 lt_prog_compiler_pic='-DDLL_EXPORT'
8617 darwin* | rhapsody*)
8618 # PIC is the default on this platform
8619 # Common symbols not allowed in MH_DYLIB files
8620 lt_prog_compiler_pic='-fno-common'
8624 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8625 # Instead, we relocate shared libraries at runtime.
8629 # Just because we use GCC doesn't mean we suddenly get shared libraries
8630 # on systems that don't support them.
8631 lt_prog_compiler_can_build_shared=no
8636 if test -d /usr/nec; then
8637 lt_prog_compiler_pic=-Kconform_pic
8642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8649 lt_prog_compiler_pic='-fPIC'
8655 lt_prog_compiler_pic='-fPIC'
8659 # PORTME Check for flag to pass linker flags through the system compiler.
8662 lt_prog_compiler_wl='-Wl,'
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 now supports IA64 processor
8665 lt_prog_compiler_static='-Bstatic'
8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8671 # PIC is the default on this platform
8672 # Common symbols not allowed in MH_DYLIB files
8673 case $cc_basename in
8675 lt_prog_compiler_pic='-qnocommon'
8676 lt_prog_compiler_wl='-Wl,'
8681 mingw* | pw32* | os2*)
8682 # This hack is so that the source file can tell whether it is being
8683 # built for inclusion in a dll (and should export symbols for example).
8684 lt_prog_compiler_pic='-DDLL_EXPORT'
8687 hpux9* | hpux10* | hpux11*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8696 lt_prog_compiler_pic='+Z'
8699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8700 lt_prog_compiler_static='${wl}-a ${wl}archive'
8703 irix5* | irix6* | nonstopux*)
8704 lt_prog_compiler_wl='-Wl,'
8705 # PIC (with -KPIC) is the default.
8706 lt_prog_compiler_static='-non_shared'
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8715 case $cc_basename in
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-static'
8721 pgcc* | pgf77* | pgf90* | pgf95*)
8722 # Portland Group compilers (*not* the Pentium gcc compiler,
8723 # which looks to be a dead project)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-fpic'
8726 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Wl,'
8730 # All Alpha code is PIC.
8731 lt_prog_compiler_static='-non_shared'
8736 osf3* | osf4* | osf5*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # All OSF/1 code is PIC.
8739 lt_prog_compiler_static='-non_shared'
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 case $cc_basename in
8747 lt_prog_compiler_wl='-Qoption ld ';;
8749 lt_prog_compiler_wl='-Wl,';;
8754 lt_prog_compiler_wl='-Qoption ld '
8755 lt_prog_compiler_pic='-PIC'
8756 lt_prog_compiler_static='-Bstatic'
8759 sysv4 | sysv4.2uw2* | sysv4.3*)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8766 if test -d /usr/nec ;then
8767 lt_prog_compiler_pic='-Kconform_pic'
8768 lt_prog_compiler_static='-Bstatic'
8772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_can_build_shared=no
8784 lt_prog_compiler_pic='-pic'
8785 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_can_build_shared=no
8794 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8795 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8798 # Check to make sure the PIC flag actually works.
8800 if test -n "$lt_prog_compiler_pic"; then
8802 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8804 if test "${lt_prog_compiler_pic_works+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 lt_prog_compiler_pic_works=no
8808 ac_outfile=conftest.$ac_objext
8809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 # The option is referenced via a variable to avoid confusing sed.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:8820: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>conftest.err)
8823 cat conftest.err >&5
8824 echo "$as_me:8824: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s "$ac_outfile"; then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings other than the usual output.
8828 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831 lt_prog_compiler_pic_works=yes
8837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8838 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8840 if test x"$lt_prog_compiler_pic_works" = xyes; then
8841 case $lt_prog_compiler_pic in
8843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8846 lt_prog_compiler_pic=
8847 lt_prog_compiler_can_build_shared=no
8852 # For platforms which do not support PIC, -DPIC is meaningless:
8854 lt_prog_compiler_pic=
8857 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8862 # Check to make sure the static flag actually works.
8864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8865 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8866 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8867 if test "${lt_prog_compiler_static_works+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 lt_prog_compiler_static_works=no
8871 save_LDFLAGS="$LDFLAGS"
8872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8873 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8875 # The linker can only warn and ignore the option if not recognized
8876 # So say no if there are warnings
8877 if test -s conftest.err; then
8878 # Append any errors to the config.log.
8879 cat conftest.err 1>&5
8880 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8882 if diff conftest.exp conftest.er2 >/dev/null; then
8883 lt_prog_compiler_static_works=yes
8886 lt_prog_compiler_static_works=yes
8890 LDFLAGS="$save_LDFLAGS"
8893 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8894 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8896 if test x"$lt_prog_compiler_static_works" = xyes; then
8899 lt_prog_compiler_static=
8903 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 lt_cv_prog_compiler_c_o=no
8909 $rm -r conftest 2>/dev/null
8913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="-o out/conftest2.$ac_objext"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 lt_compile=`echo "$ac_compile" | $SED \
8921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923 -e 's:$: $lt_compiler_flag:'`
8924 (eval echo "\"\$as_me:8924: $lt_compile\"" >&5)
8925 (eval "$lt_compile" 2>out/conftest.err)
8927 cat out/conftest.err >&5
8928 echo "$as_me:8928: \$? = $ac_status" >&5
8929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings
8933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_c_o=yes
8941 # SGI C++ compiler will create directory out/ii_files/ for
8942 # template instantiation
8943 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8944 $rm out/* && rmdir out
8950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8954 hard_links="nottested"
8955 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8956 # do not overwrite the value of need_locks provided by the user
8957 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8958 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8963 ln conftest.a conftest.b 2>&5 || hard_links=no
8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8965 { echo "$as_me:$LINENO: result: $hard_links" >&5
8966 echo "${ECHO_T}$hard_links" >&6; }
8967 if test "$hard_links" = no; then
8968 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8969 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8976 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8980 allow_undefined_flag=
8981 enable_shared_with_static_runtimes=no
8983 archive_expsym_cmds=
8984 old_archive_From_new_cmds=
8985 old_archive_from_expsyms_cmds=
8986 export_dynamic_flag_spec=
8987 whole_archive_flag_spec=
8988 thread_safe_flag_spec=
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_flag_spec_ld=
8991 hardcode_libdir_separator=
8994 hardcode_shlibpath_var=unsupported
8995 link_all_deplibs=unknown
8996 hardcode_automatic=no
8999 always_export_symbols=no
9000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 extract_expsyms_cmds=
9015 # Just being paranoid about ensuring that cc_basename is set.
9016 for cc_temp in $compiler""; do
9018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9027 cygwin* | mingw* | pw32*)
9028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9029 # When not using gcc, we currently assume that we are using
9030 # Microsoft Visual C++.
9031 if test "$GCC" != yes; then
9036 # we just hope/assume this is gcc and not c89 (= MSVC++)
9045 if test "$with_gnu_ld" = yes; then
9046 # If archive_cmds runs LD, not CC, wlarc should be empty
9049 # Set some defaults for GNU ld with shared library support. These
9050 # are reset later if shared libraries are not supported. Putting them
9051 # here allows them to be overridden if necessary.
9052 runpath_var=LD_RUN_PATH
9053 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9054 export_dynamic_flag_spec='${wl}--export-dynamic'
9055 # ancient GNU ld didn't support --whole-archive et. al.
9056 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9059 whole_archive_flag_spec=
9061 supports_anon_versioning=no
9062 case `$LD -v 2>/dev/null` in
9063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9066 *\ 2.11.*) ;; # other 2.11 versions
9067 *) supports_anon_versioning=yes ;;
9070 # See if GNU ld supports shared libraries.
9072 aix3* | aix4* | aix5*)
9073 # On AIX/PPC, the GNU linker is very broken
9074 if test "$host_cpu" != ia64; then
9078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9079 *** to be unable to reliably create shared libraries on AIX.
9080 *** Therefore, libtool is disabling shared libraries support. If you
9081 *** really care for shared libraries, you may want to modify your PATH
9082 *** so that a non-GNU linker is found, and then restart.
9089 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)'
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_minus_L=yes
9093 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9094 # that the semantics of dynamic libraries on AmigaOS, at least up
9095 # to version 4, is to share data among multiple programs linked
9096 # with the same dynamic library. Since this doesn't match the
9097 # behavior of shared libraries on other platforms, we can't use
9103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104 allow_undefined_flag=unsupported
9105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9106 # support --undefined. This deserves some investigation. FIXME
9107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113 cygwin* | mingw* | pw32*)
9114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9115 # as there is no search path for DLLs.
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 allow_undefined_flag=unsupported
9118 always_export_symbols=no
9119 enable_shared_with_static_runtimes=yes
9120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124 # If the export-symbols file already is a .def file (1st line
9125 # is EXPORTS), use it as is; otherwise, prepend...
9126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127 cp $export_symbols $output_objdir/$soname.def;
9129 echo EXPORTS > $output_objdir/$soname.def;
9130 cat $export_symbols >> $output_objdir/$soname.def;
9132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9140 hardcode_shlibpath_var=no
9141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142 export_dynamic_flag_spec='${wl}-E'
9143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9144 # Instead, shared libraries are loaded at an image base (0x10000000 by
9145 # default) and relocated if they conflict, which is a slow very memory
9146 # consuming and fragmenting process. To avoid this, we pick a random,
9147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9156 case $cc_basename,$host_cpu in
9157 pgcc*) # Portland Group C compiler
9158 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'
9159 tmp_addflag=' $pic_flag'
9161 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9162 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'
9163 tmp_addflag=' $pic_flag -Mnomain' ;;
9164 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9165 tmp_addflag=' -i_dynamic' ;;
9166 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9167 tmp_addflag=' -i_dynamic -nofor_main' ;;
9168 ifc* | ifort*) # Intel Fortran compiler
9169 tmp_addflag=' -nofor_main' ;;
9171 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 if test $supports_anon_versioning = yes; then
9174 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9176 $echo "local: *; };" >> $output_objdir/$libname.ver~
9177 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9200 *** create shared libraries on Solaris systems. Therefore, libtool
9201 *** is disabling shared libraries support. We urge you to upgrade GNU
9202 *** binutils to release 2.9.1 or newer. Another option is to modify
9203 *** your PATH or compiler configuration so that the native linker is
9204 *** used, and then restart.
9207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9216 case `$LD -v 2>&1` in
9217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9222 *** reliably create shared libraries on SCO systems. Therefore, libtool
9223 *** is disabling shared libraries support. We urge you to upgrade GNU
9224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9225 *** your PATH or compiler configuration so that the native linker is
9226 *** used, and then restart.
9231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9232 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246 hardcode_shlibpath_var=no
9250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9259 if test "$ld_shlibs" = no; then
9261 hardcode_libdir_flag_spec=
9262 export_dynamic_flag_spec=
9263 whole_archive_flag_spec=
9266 # PORTME fill in a description of your system's linker (not GNU ld)
9269 allow_undefined_flag=unsupported
9270 always_export_symbols=yes
9271 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'
9272 # Note: this linker hardcodes the directories in LIBPATH if there
9273 # are no directories specified by -L.
9274 hardcode_minus_L=yes
9275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9276 # Neither direct hardcoding nor static linking is supported with a
9278 hardcode_direct=unsupported
9283 if test "$host_cpu" = ia64; then
9284 # On IA64, the linker does run time linking by default, so we don't
9285 # have to do anything special.
9286 aix_use_runtimelinking=no
9287 exp_sym_flag='-Bexport'
9290 # If we're using GNU nm, then we don't want the "-C" option.
9291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9293 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'
9295 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'
9297 aix_use_runtimelinking=no
9299 # Test if we are trying to use run time linking or normal
9300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9301 # need to do runtime linking.
9302 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9303 for ld_flag in $LDFLAGS; do
9304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9305 aix_use_runtimelinking=yes
9312 exp_sym_flag='-bexport'
9313 no_entry_flag='-bnoentry'
9316 # When large executables or shared objects are built, AIX ld can
9317 # have problems creating the table of contents. If linking a library
9318 # or program results in "error TOC overflow" add -mminimal-toc to
9319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9324 hardcode_libdir_separator=':'
9325 link_all_deplibs=yes
9327 if test "$GCC" = yes; then
9328 case $host_os in aix4.[012]|aix4.[012].*)
9329 # We only want to do this on AIX 4.2 and lower, the check
9330 # below for broken collect2 doesn't work under 4.3+
9331 collect2name=`${CC} -print-prog-name=collect2`
9332 if test -f "$collect2name" && \
9333 strings "$collect2name" | grep resolve_lib_name >/dev/null
9335 # We have reworked collect2
9338 # We have old collect2
9339 hardcode_direct=unsupported
9340 # It fails to find uninstalled libraries when the uninstalled
9341 # path is not listed in the libpath. Setting hardcode_minus_L
9342 # to unsupported forces relinking
9343 hardcode_minus_L=yes
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_libdir_separator=
9349 shared_flag='-shared'
9350 if test "$aix_use_runtimelinking" = yes; then
9351 shared_flag="$shared_flag "'${wl}-G'
9355 if test "$host_cpu" = ia64; then
9356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9357 # chokes on -Wl,-G. The following line is correct:
9360 if test "$aix_use_runtimelinking" = yes; then
9361 shared_flag='${wl}-G'
9363 shared_flag='${wl}-bM:SRE'
9368 # It seems that -bexpall does not export symbols beginning with
9369 # underscore (_), so it is better to generate a list of symbols to export.
9370 always_export_symbols=yes
9371 if test "$aix_use_runtimelinking" = yes; then
9372 # Warning - without using the other runtime loading flags (-brtl),
9373 # -berok will link without error, but may produce a broken library.
9374 allow_undefined_flag='-berok'
9375 # Determine the default libpath from the value encoded in an empty executable.
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423 conftest$ac_exeext conftest.$ac_ext
9424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9427 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9429 if test "$host_cpu" = ia64; then
9430 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9431 allow_undefined_flag="-z nodefs"
9432 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9434 # Determine the default libpath from the value encoded in an empty executable.
9435 cat >conftest.$ac_ext <<_ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest$ac_exeext &&
9467 $as_test_x conftest$ac_exeext; then
9469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9471 # Check for a 64-bit object if we didn't find anything.
9472 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; }
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482 conftest$ac_exeext conftest.$ac_ext
9483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486 # Warning - without using the other run time loading flags,
9487 # -berok will link without error, but may produce a broken library.
9488 no_undefined_flag=' ${wl}-bernotok'
9489 allow_undefined_flag=' ${wl}-berok'
9490 # Exported symbols can be pulled into shared objects from archives
9491 whole_archive_flag_spec='$convenience'
9492 archive_cmds_need_lc=yes
9493 # This is similar to how AIX traditionally builds its shared libraries.
9494 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9500 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)'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_minus_L=yes
9503 # see comment about different semantics on the GNU ld section
9508 export_dynamic_flag_spec=-rdynamic
9511 cygwin* | mingw* | pw32*)
9512 # When not using gcc, we currently assume that we are using
9513 # Microsoft Visual C++.
9514 # hardcode_libdir_flag_spec is actually meaningless, as there is
9515 # no search path for DLLs.
9516 hardcode_libdir_flag_spec=' '
9517 allow_undefined_flag=unsupported
9518 # Tell ltmain to make .lib files, not .a files.
9520 # Tell ltmain to make .dll files, not .so files.
9522 # FIXME: Setting linknames here is a bad hack.
9523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9524 # The linker will automatically build a .lib file if we build a DLL.
9525 old_archive_From_new_cmds='true'
9526 # FIXME: Should let the user specify the lib program.
9527 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9528 fix_srcfile_path='`cygpath -w "$srcfile"`'
9529 enable_shared_with_static_runtimes=yes
9532 darwin* | rhapsody*)
9534 rhapsody* | darwin1.[012])
9535 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9539 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9541 case ${MACOSX_DEPLOYMENT_TARGET} in
9543 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9546 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9552 archive_cmds_need_lc=no
9554 hardcode_automatic=yes
9555 hardcode_shlibpath_var=unsupported
9556 whole_archive_flag_spec=''
9557 link_all_deplibs=yes
9558 if test "$GCC" = yes ; then
9559 output_verbose_link_cmd='echo'
9560 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9563 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}'
9564 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}'
9566 case $cc_basename in
9568 output_verbose_link_cmd='echo'
9569 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9570 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9572 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}'
9573 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}'
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_shlibpath_var=no
9592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9593 # support. Future versions do this automatically, but an explicit c++rt0.o
9594 # does not break anything, and helps significantly (at the cost of a little
9597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9598 hardcode_libdir_flag_spec='-R$libdir'
9600 hardcode_shlibpath_var=no
9603 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_minus_L=yes
9608 hardcode_shlibpath_var=no
9611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9612 freebsd* | kfreebsd*-gnu | dragonfly*)
9613 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9614 hardcode_libdir_flag_spec='-R$libdir'
9616 hardcode_shlibpath_var=no
9620 if test "$GCC" = yes; then
9621 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'
9623 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'
9625 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9626 hardcode_libdir_separator=:
9629 # hardcode_minus_L: Not really in the search PATH,
9630 # but as the default location of the library.
9631 hardcode_minus_L=yes
9632 export_dynamic_flag_spec='${wl}-E'
9636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9641 if test "$with_gnu_ld" = no; then
9642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9643 hardcode_libdir_separator=:
9646 export_dynamic_flag_spec='${wl}-E'
9648 # hardcode_minus_L: Not really in the search PATH,
9649 # but as the default location of the library.
9650 hardcode_minus_L=yes
9655 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9658 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9680 if test "$with_gnu_ld" = no; then
9681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9682 hardcode_libdir_separator=:
9686 hardcode_libdir_flag_spec_ld='+b $libdir'
9688 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='${wl}-E'
9694 # hardcode_minus_L: Not really in the search PATH,
9695 # but as the default location of the library.
9696 hardcode_minus_L=yes
9702 irix5* | irix6* | nonstopux*)
9703 if test "$GCC" = yes; then
9704 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'
9706 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'
9707 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710 hardcode_libdir_separator=:
9711 link_all_deplibs=yes
9715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9718 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9720 hardcode_libdir_flag_spec='-R$libdir'
9722 hardcode_shlibpath_var=no
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9729 hardcode_libdir_separator=:
9730 hardcode_shlibpath_var=no
9735 hardcode_shlibpath_var=no
9736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9740 export_dynamic_flag_spec='${wl}-E'
9743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_libdir_flag_spec='-R$libdir'
9748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_minus_L=yes
9758 allow_undefined_flag=unsupported
9759 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'
9760 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9764 if test "$GCC" = yes; then
9765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9766 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'
9768 allow_undefined_flag=' -expect_unresolved \*'
9769 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'
9771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772 hardcode_libdir_separator=:
9775 osf4* | osf5*) # as osf3* with the addition of -msym flag
9776 if test "$GCC" = yes; then
9777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9778 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'
9779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781 allow_undefined_flag=' -expect_unresolved \*'
9782 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'
9783 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9784 $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'
9786 # Both c and cxx compiler support -rpath directly
9787 hardcode_libdir_flag_spec='-rpath $libdir'
9789 hardcode_libdir_separator=:
9793 no_undefined_flag=' -z text'
9794 if test "$GCC" = yes; then
9796 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_shlibpath_var=no
9808 solaris2.[0-5] | solaris2.[0-5].*) ;;
9810 # The compiler driver will combine linker options so we
9811 # cannot just pass the convience library names through
9812 # without $wl, iff we do not link with $LD.
9813 # Luckily, gcc supports the same syntax we need for Sun Studio.
9814 # Supported since Solaris 2.6 (maybe 2.5.1?)
9817 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9819 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' ;;
9822 link_all_deplibs=yes
9826 if test "x$host_vendor" = xsequent; then
9827 # Use $CC to link under sequent, because it throws in some extra .o
9828 # files that make .init and .fini sections work.
9829 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec='-L$libdir'
9835 hardcode_minus_L=yes
9836 hardcode_shlibpath_var=no
9840 case $host_vendor in
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_direct=yes # is this really true???
9846 ## LD is ld it makes a PLAMLIB
9847 ## CC just makes a GrossModule.
9848 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9849 reload_cmds='$CC -r -o $output$reload_objs'
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9857 runpath_var='LD_RUN_PATH'
9858 hardcode_shlibpath_var=no
9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863 hardcode_shlibpath_var=no
9864 export_dynamic_flag_spec='-Bexport'
9868 if test -d /usr/nec; then
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_shlibpath_var=no
9871 runpath_var=LD_RUN_PATH
9872 hardcode_runpath_var=yes
9877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9878 no_undefined_flag='${wl}-z,text'
9879 archive_cmds_need_lc=no
9880 hardcode_shlibpath_var=no
9881 runpath_var='LD_RUN_PATH'
9883 if test "$GCC" = yes; then
9884 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 sysv5* | sco3.2v5* | sco5v6*)
9893 # Note: We can NOT use -z defs as we might desire, because we do not
9894 # link with -lc, and that would cause any symbols used from libc to
9895 # always be unresolved, which means just about no library would
9896 # ever link correctly. If we're not using GNU ld we use -z text
9897 # though, which does catch some bad symbols but isn't as heavy-handed
9899 no_undefined_flag='${wl}-z,text'
9900 allow_undefined_flag='${wl}-z,nodefs'
9901 archive_cmds_need_lc=no
9902 hardcode_shlibpath_var=no
9903 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9904 hardcode_libdir_separator=':'
9905 link_all_deplibs=yes
9906 export_dynamic_flag_spec='${wl}-Bexport'
9907 runpath_var='LD_RUN_PATH'
9909 if test "$GCC" = yes; then
9910 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_libdir_flag_spec='-L$libdir'
9921 hardcode_shlibpath_var=no
9930 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9931 echo "${ECHO_T}$ld_shlibs" >&6; }
9932 test "$ld_shlibs" = no && can_build_shared=no
9935 # Do we need to explicitly link libc?
9937 case "x$archive_cmds_need_lc" in
9939 # Assume -lc should be added
9940 archive_cmds_need_lc=yes
9942 if test "$enable_shared" = yes && test "$GCC" = yes; then
9943 case $archive_cmds in
9945 # FIXME: we may have to deal with multi-command sequences.
9948 # Test whether the compiler implicitly links with -lc since on some
9949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9950 # to ld, don't add -lc before -lgcc.
9951 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957 (eval $ac_compile) 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } 2>conftest.err; then
9963 libobjs=conftest.$ac_objext
9965 wl=$lt_prog_compiler_wl
9966 pic_flag=$lt_prog_compiler_pic
9972 lt_save_allow_undefined_flag=$allow_undefined_flag
9973 allow_undefined_flag=
9974 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9975 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }
9980 archive_cmds_need_lc=no
9982 archive_cmds_need_lc=yes
9984 allow_undefined_flag=$lt_save_allow_undefined_flag
9986 cat conftest.err 1>&5
9989 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9990 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9997 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9998 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10000 libname_spec='lib$name'
10004 postuninstall_cmds=
10008 shlibpath_overrides_runpath=unknown
10010 dynamic_linker="$host_os ld.so"
10011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10012 if test "$GCC" = yes; then
10013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10014 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10015 # if the path contains ";" then we assume it to be the separator
10016 # otherwise default to the standard path separator (i.e. ":") - it is
10017 # assumed that no part of a normal pathname contains ";" but that should
10018 # okay in the real world where ";" in dirpaths is itself problematic.
10019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10026 need_lib_prefix=unknown
10027 hardcode_into_libs=no
10029 # when you set need_version to no, make sure it does not cause -set_version
10030 # flags to be left without arguments
10031 need_version=unknown
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10037 shlibpath_var=LIBPATH
10039 # AIX 3 has no versioning support, so we append a major version to the name.
10040 soname_spec='${libname}${release}${shared_ext}$major'
10047 hardcode_into_libs=yes
10048 if test "$host_cpu" = ia64; then
10049 # AIX 5 supports IA64
10050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10051 shlibpath_var=LD_LIBRARY_PATH
10053 # With GCC up to 2.95.x, collect2 would create an import file
10054 # for dependence libraries. The import file would start with
10055 # the line `#! .'. This would cause the generated library to
10056 # depend on `.', always an invalid library. This was fixed in
10057 # development snapshots of GCC prior to 3.0.
10059 aix4 | aix4.[01] | aix4.[01].*)
10060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10062 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10065 can_build_shared=no
10069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10070 # soname into executable. Probably we can add versioning support to
10071 # collect2, so additional links can be useful in future.
10072 if test "$aix_use_runtimelinking" = yes; then
10073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10074 # instead of lib<name>.a to let people know that these are not
10075 # typical AIX shared libraries.
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 # We preserve .a as extension for shared libraries through AIX4.2
10079 # and later when we are not doing run time linking.
10080 library_names_spec='${libname}${release}.a $libname.a'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10083 shlibpath_var=LIBPATH
10088 library_names_spec='$libname.ixlibrary $libname.a'
10089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10090 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'
10094 library_names_spec='${libname}${shared_ext}'
10095 dynamic_linker="$host_os ld.so"
10096 shlibpath_var=LIBRARY_PATH
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10108 # the default ld.so.conf also contains /usr/contrib/lib and
10109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10110 # libtool to hard-code these into programs
10113 cygwin* | mingw* | pw32*)
10114 version_type=windows
10119 case $GCC,$host_os in
10120 yes,cygwin* | yes,mingw* | yes,pw32*)
10121 library_names_spec='$libname.dll.a'
10122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10123 postinstall_cmds='base_file=`basename \${file}`~
10124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10125 dldir=$destdir/`dirname \$dlpath`~
10126 test -d \$dldir || mkdir -p \$dldir~
10127 $install_prog $dir/$dlname \$dldir/$dlname~
10128 chmod a+x \$dldir/$dlname'
10129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10130 dlpath=$dir/\$dldll~
10132 shlibpath_overrides_runpath=yes
10136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10141 # MinGW DLLs use traditional 'lib' prefix
10142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10145 # It is most probably a Windows format PATH printed by
10146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10147 # path with ; separators, and with drive letters. We can handle the
10148 # drive letters (cygwin fileutils understands them), so leave them,
10149 # especially as we might pass files found there to a mingw objdump,
10150 # which wouldn't understand a cygwinified path. Ahh.
10151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10157 # pw32 DLLs use 'pw' prefix rather than 'lib'
10158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10167 dynamic_linker='Win32 ld.exe'
10168 # FIXME: first we should search . and the directory the executable is in
10172 darwin* | rhapsody*)
10173 dynamic_linker="$host_os dyld"
10174 version_type=darwin
10177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10178 soname_spec='${libname}${release}${major}$shared_ext'
10179 shlibpath_overrides_runpath=yes
10180 shlibpath_var=DYLD_LIBRARY_PATH
10181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10183 if test "$GCC" = yes; then
10184 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"`
10186 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LD_LIBRARY_PATH
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=no
10212 hardcode_into_libs=yes
10213 dynamic_linker='GNU ld.so'
10216 freebsd* | dragonfly*)
10217 # DragonFly does not have aout. When/if they implement a new
10218 # versioning mechanism, adjust this.
10219 if test -x /usr/bin/objformat; then
10220 objformat=`/usr/bin/objformat`
10223 freebsd[123]*) objformat=aout ;;
10224 *) objformat=elf ;;
10227 version_type=freebsd-$objformat
10228 case $version_type in
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10239 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10244 freebsd3.[01]* | freebsdelf3.[01]*)
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10250 shlibpath_overrides_runpath=no
10251 hardcode_into_libs=yes
10253 freebsd*) # from 4.6 on
10254 shlibpath_overrides_runpath=yes
10255 hardcode_into_libs=yes
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 hardcode_into_libs=yes
10270 hpux9* | hpux10* | hpux11*)
10271 # Give a soname corresponding to the major version so that dld.sl refuses to
10272 # link against other versions.
10279 hardcode_into_libs=yes
10280 dynamic_linker="$host_os dld.so"
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 if test "X$HPUX_IA64_MODE" = X32; then
10286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10294 hardcode_into_libs=yes
10295 dynamic_linker="$host_os dld.sl"
10296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10305 dynamic_linker="$host_os dld.sl"
10306 shlibpath_var=SHLIB_PATH
10307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10312 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10313 postinstall_cmds='chmod 555 $lib'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10328 irix5* | irix6* | nonstopux*)
10330 nonstopux*) version_type=nonstopux ;;
10332 if test "$lt_cv_prog_gnu_ld" = yes; then
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 irix5* | nonstopux*)
10344 libsuff= shlibsuff=
10347 case $LD in # libtool.m4 will add one of these switches to LD
10348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10349 libsuff= shlibsuff= libmagic=32-bit;;
10350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10351 libsuff=32 shlibsuff=N32 libmagic=N32;;
10352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10354 *) libsuff= shlibsuff= libmagic=never-match;;
10358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10359 shlibpath_overrides_runpath=no
10360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10362 hardcode_into_libs=yes
10365 # No shared lib support for Linux oldld, aout, or coff.
10366 linux*oldld* | linux*aout* | linux*coff*)
10370 # This must be Linux ELF.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 # This implies no fast_install, which is unacceptable.
10381 # Some rework will be needed to allow for fast_install
10382 # before this can be enabled.
10383 hardcode_into_libs=yes
10385 # Append ld.so.conf contents to the search path
10386 if test -f /etc/ld.so.conf; then
10387 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' ' '`
10388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10391 # We used to test for /lib/ld.so.1 and disable shared libraries on
10392 # powerpc, because MkLinux only supported shared libraries with the
10393 # GNU dynamic linker. Since this was broken with cross compilers,
10394 # most powerpc-linux boxes support dynamic linking these days and
10395 # people can always --disable-shared, the test was removed, and we
10396 # assume the GNU/Linux dynamic linker is in use.
10397 dynamic_linker='GNU/Linux ld.so'
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=no
10408 hardcode_into_libs=yes
10409 dynamic_linker='GNU ld.so'
10416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419 dynamic_linker='NetBSD (a.out) ld.so'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 dynamic_linker='NetBSD ld.elf_so'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=yes
10427 hardcode_into_libs=yes
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=yes
10449 sys_lib_dlsearch_path_spec="/usr/lib"
10451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10454 *) need_version=no ;;
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461 openbsd2.[89] | openbsd2.[89].*)
10462 shlibpath_overrides_runpath=no
10465 shlibpath_overrides_runpath=yes
10469 shlibpath_overrides_runpath=yes
10474 libname_spec='$name'
10477 library_names_spec='$libname${shared_ext} $libname.a'
10478 dynamic_linker='OS/2 ld.exe'
10479 shlibpath_var=LIBPATH
10482 osf3* | osf4* | osf5*)
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 # ldd complains unless libraries are executable
10503 postinstall_cmds='chmod +x $lib'
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 if test "$with_gnu_ld" = yes; then
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 case $host_vendor in
10525 shlibpath_overrides_runpath=no
10527 export_dynamic_flag_spec='${wl}-Blargedynsym'
10528 runpath_var=LD_RUN_PATH
10536 shlibpath_overrides_runpath=no
10537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10543 if test -d /usr/nec ;then
10545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10546 soname_spec='$libname${shared_ext}.$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552 version_type=freebsd-elf
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 hardcode_into_libs=yes
10559 if test "$with_gnu_ld" = yes; then
10560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10561 shlibpath_overrides_runpath=no
10563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10564 shlibpath_overrides_runpath=yes
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10571 sys_lib_dlsearch_path_spec='/usr/lib'
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 shlibpath_var=LD_LIBRARY_PATH
10585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10586 echo "${ECHO_T}$dynamic_linker" >&6; }
10587 test "$dynamic_linker" = no && can_build_shared=no
10589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10590 if test "$GCC" = yes; then
10591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10597 if test -n "$hardcode_libdir_flag_spec" || \
10598 test -n "$runpath_var" || \
10599 test "X$hardcode_automatic" = "Xyes" ; then
10601 # We can hardcode non-existant directories.
10602 if test "$hardcode_direct" != no &&
10603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10604 # have to relink, otherwise we might link with an installed library
10605 # when we should be linking with a yet-to-be-installed one
10606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10607 test "$hardcode_minus_L" != no; then
10608 # Linking always hardcodes the temporary library directory.
10609 hardcode_action=relink
10611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10612 hardcode_action=immediate
10615 # We cannot hardcode anything, or else we can only hardcode existing
10617 hardcode_action=unsupported
10619 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10620 echo "${ECHO_T}$hardcode_action" >&6; }
10622 if test "$hardcode_action" = relink; then
10623 # Fast installation is not supported
10624 enable_fast_install=no
10625 elif test "$shlibpath_overrides_runpath" = yes ||
10626 test "$enable_shared" = no; then
10627 # Fast installation is not necessary
10628 enable_fast_install=needless
10633 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10634 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10635 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10638 { echo "$as_me:$LINENO: result: yes" >&5
10639 echo "${ECHO_T}yes" >&6; }
10641 # FIXME - insert some real tests, host_os isn't really good enough
10644 if test -n "$STRIP" ; then
10645 striplib="$STRIP -x"
10646 { echo "$as_me:$LINENO: result: yes" >&5
10647 echo "${ECHO_T}yes" >&6; }
10649 { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10660 if test "x$enable_dlopen" != xyes; then
10661 enable_dlopen=unknown
10662 enable_dlopen_self=unknown
10663 enable_dlopen_self_static=unknown
10670 lt_cv_dlopen="load_add_on"
10672 lt_cv_dlopen_self=yes
10676 lt_cv_dlopen="LoadLibrary"
10681 lt_cv_dlopen="dlopen"
10686 # if libdl is installed we need to link against it
10687 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 ac_check_lib_save_LIBS=$LIBS
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest$ac_exeext &&
10733 $as_test_x conftest$ac_exeext; then
10734 ac_cv_lib_dl_dlopen=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_lib_dl_dlopen=no
10742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10748 if test $ac_cv_lib_dl_dlopen = yes; then
10749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 lt_cv_dlopen="dyld"
10754 lt_cv_dlopen_self=yes
10761 { echo "$as_me:$LINENO: checking for shl_load" >&5
10762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10763 if test "${ac_cv_func_shl_load+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10774 #define shl_load innocuous_shl_load
10776 /* System header to define __stub macros and hopefully few prototypes,
10777 which can conflict with char shl_load (); below.
10778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10779 <limits.h> exists even on freestanding compilers. */
10782 # include <limits.h>
10784 # include <assert.h>
10789 /* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
10796 /* The GNU C library defines this for functions which it implements
10797 to always fail with ENOSYS. Some functions are actually named
10798 something starting with __ and the normal name is an alias. */
10799 #if defined __stub_shl_load || defined __stub___shl_load
10806 return shl_load ();
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (ac_try="$ac_link"
10813 case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_link") 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest$ac_exeext &&
10828 $as_test_x conftest$ac_exeext; then
10829 ac_cv_func_shl_load=yes
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 ac_cv_func_shl_load=no
10837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10838 conftest$ac_exeext conftest.$ac_ext
10840 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10842 if test $ac_cv_func_shl_load = yes; then
10843 lt_cv_dlopen="shl_load"
10845 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 ac_check_lib_save_LIBS=$LIBS
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10869 return shl_load ();
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
10892 ac_cv_lib_dld_shl_load=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_cv_lib_dld_shl_load=no
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10904 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10906 if test $ac_cv_lib_dld_shl_load = yes; then
10907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10909 { echo "$as_me:$LINENO: checking for dlopen" >&5
10910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10911 if test "${ac_cv_func_dlopen+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10922 #define dlopen innocuous_dlopen
10924 /* System header to define __stub macros and hopefully few prototypes,
10925 which can conflict with char dlopen (); below.
10926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10927 <limits.h> exists even on freestanding compilers. */
10930 # include <limits.h>
10932 # include <assert.h>
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10944 /* The GNU C library defines this for functions which it implements
10945 to always fail with ENOSYS. Some functions are actually named
10946 something starting with __ and the normal name is an alias. */
10947 #if defined __stub_dlopen || defined __stub___dlopen
10959 rm -f conftest.$ac_objext conftest$ac_exeext
10960 if { (ac_try="$ac_link"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_link") 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest$ac_exeext &&
10976 $as_test_x conftest$ac_exeext; then
10977 ac_cv_func_dlopen=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_cv_func_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986 conftest$ac_exeext conftest.$ac_ext
10988 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10990 if test $ac_cv_func_dlopen = yes; then
10991 lt_cv_dlopen="dlopen"
10993 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 ac_check_lib_save_LIBS=$LIBS
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_link") 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest$ac_exeext &&
11039 $as_test_x conftest$ac_exeext; then
11040 ac_cv_lib_dl_dlopen=yes
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_cv_lib_dl_dlopen=no
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11053 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11054 if test $ac_cv_lib_dl_dlopen = yes; then
11055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11057 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lsvld $LIBS"
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_link") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest$ac_exeext &&
11103 $as_test_x conftest$ac_exeext; then
11104 ac_cv_lib_svld_dlopen=yes
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_svld_dlopen=no
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11117 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11118 if test $ac_cv_lib_svld_dlopen = yes; then
11119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11121 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11122 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11123 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 ac_check_lib_save_LIBS=$LIBS
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11145 return dld_link ();
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_link") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest$ac_exeext &&
11167 $as_test_x conftest$ac_exeext; then
11168 ac_cv_lib_dld_dld_link=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_lib_dld_dld_link=no
11176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11182 if test $ac_cv_lib_dld_dld_link = yes; then
11183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11204 if test "x$lt_cv_dlopen" != xno; then
11210 case $lt_cv_dlopen in
11212 save_CPPFLAGS="$CPPFLAGS"
11213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11215 save_LDFLAGS="$LDFLAGS"
11216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219 LIBS="$lt_cv_dlopen_libs $LIBS"
11221 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11222 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11223 if test "${lt_cv_dlopen_self+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 if test "$cross_compiling" = yes; then :
11227 lt_cv_dlopen_self=cross
11229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11230 lt_status=$lt_dlunknown
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11232 "configure"
11233 #include "confdefs.h"
11242 # define LT_DLGLOBAL RTLD_GLOBAL
11245 # define LT_DLGLOBAL DL_GLOBAL
11247 # define LT_DLGLOBAL 0
11251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11252 find out it does not work in some platform. */
11253 #ifndef LT_DLLAZY_OR_NOW
11255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11258 # define LT_DLLAZY_OR_NOW DL_LAZY
11261 # define LT_DLLAZY_OR_NOW RTLD_NOW
11264 # define LT_DLLAZY_OR_NOW DL_NOW
11266 # define LT_DLLAZY_OR_NOW 0
11274 extern "C" void exit (int);
11277 void fnord() { int i=42;}
11280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11281 int status = $lt_dlunknown;
11285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11287 /* dlclose (self); */
11295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296 (eval $ac_link) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11300 (./conftest; exit; ) >&5 2>/dev/null
11302 case x$lt_status in
11303 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11304 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11305 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11308 # compilation failed
11309 lt_cv_dlopen_self=no
11316 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11317 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11319 if test "x$lt_cv_dlopen_self" = xyes; then
11320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11321 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11322 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11323 if test "${lt_cv_dlopen_self_static+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 if test "$cross_compiling" = yes; then :
11327 lt_cv_dlopen_self_static=cross
11329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11330 lt_status=$lt_dlunknown
11331 cat > conftest.$ac_ext <<EOF
11332 #line 11332 "configure"
11333 #include "confdefs.h"
11342 # define LT_DLGLOBAL RTLD_GLOBAL
11345 # define LT_DLGLOBAL DL_GLOBAL
11347 # define LT_DLGLOBAL 0
11351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11352 find out it does not work in some platform. */
11353 #ifndef LT_DLLAZY_OR_NOW
11355 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11358 # define LT_DLLAZY_OR_NOW DL_LAZY
11361 # define LT_DLLAZY_OR_NOW RTLD_NOW
11364 # define LT_DLLAZY_OR_NOW DL_NOW
11366 # define LT_DLLAZY_OR_NOW 0
11374 extern "C" void exit (int);
11377 void fnord() { int i=42;}
11380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11381 int status = $lt_dlunknown;
11385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11387 /* dlclose (self); */
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11400 (./conftest; exit; ) >&5 2>/dev/null
11402 case x$lt_status in
11403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11408 # compilation failed
11409 lt_cv_dlopen_self_static=no
11416 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11417 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11420 CPPFLAGS="$save_CPPFLAGS"
11421 LDFLAGS="$save_LDFLAGS"
11426 case $lt_cv_dlopen_self in
11427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11428 *) enable_dlopen_self=unknown ;;
11431 case $lt_cv_dlopen_self_static in
11432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11433 *) enable_dlopen_self_static=unknown ;;
11438 # Report which library types will actually be built
11439 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11440 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11441 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11442 echo "${ECHO_T}$can_build_shared" >&6; }
11444 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11445 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11446 test "$can_build_shared" = "no" && enable_shared=no
11448 # On AIX, shared libraries and static libraries use the same namespace, and
11449 # are all built from PIC.
11452 test "$enable_shared" = yes && enable_static=no
11453 if test -n "$RANLIB"; then
11454 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11455 postinstall_cmds='$RANLIB $lib'
11460 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11461 test "$enable_shared" = yes && enable_static=no
11465 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11466 echo "${ECHO_T}$enable_shared" >&6; }
11468 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11470 # Make sure either enable_shared or enable_static is yes.
11471 test "$enable_shared" = yes || enable_static=yes
11472 { echo "$as_me:$LINENO: result: $enable_static" >&5
11473 echo "${ECHO_T}$enable_static" >&6; }
11475 # The else clause should only fire when bootstrapping the
11476 # libtool distribution, otherwise you forgot to ship ltmain.sh
11477 # with your package, and you will get complaints that there are
11478 # no rules to generate ltmain.sh.
11479 if test -f "$ltmain"; then
11480 # See if we are running on zsh, and set the options which allow our commands through
11481 # without removal of \ escapes.
11482 if test -n "${ZSH_VERSION+set}" ; then
11483 setopt NO_GLOB_SUBST
11485 # Now quote all the things that may contain metacharacters while being
11486 # careful not to overquote the AC_SUBSTed values. We take copies of the
11487 # variables and quote the copies for generation of the libtool script.
11488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11492 deplibs_check_method reload_flag reload_cmds need_locks \
11493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11494 lt_cv_sys_global_symbol_to_c_name_address \
11495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11496 old_postinstall_cmds old_postuninstall_cmds \
11500 lt_prog_compiler_wl \
11501 lt_prog_compiler_pic \
11502 lt_prog_compiler_static \
11503 lt_prog_compiler_no_builtin_flag \
11504 export_dynamic_flag_spec \
11505 thread_safe_flag_spec \
11506 whole_archive_flag_spec \
11507 enable_shared_with_static_runtimes \
11509 old_archive_from_new_cmds \
11514 compiler_lib_search_path \
11516 archive_expsym_cmds \
11518 postuninstall_cmds \
11519 old_archive_from_expsyms_cmds \
11520 allow_undefined_flag \
11521 no_undefined_flag \
11522 export_symbols_cmds \
11523 hardcode_libdir_flag_spec \
11524 hardcode_libdir_flag_spec_ld \
11525 hardcode_libdir_separator \
11526 hardcode_automatic \
11528 module_expsym_cmds \
11529 lt_cv_prog_compiler_c_o \
11531 include_expsyms; do
11534 old_archive_cmds | \
11535 old_archive_from_new_cmds | \
11537 archive_expsym_cmds | \
11539 module_expsym_cmds | \
11540 old_archive_from_expsyms_cmds | \
11541 export_symbols_cmds | \
11542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11543 postinstall_cmds | postuninstall_cmds | \
11544 old_postinstall_cmds | old_postuninstall_cmds | \
11545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11546 # Double-quote double-evaled strings.
11547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11556 *'\$0 --fallback-echo"')
11557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11561 cfgfile="${ofile}T"
11562 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11564 { echo "$as_me:$LINENO: creating $ofile" >&5
11565 echo "$as_me: creating $ofile" >&6;}
11567 cat <<__EOF__ >> "$cfgfile"
11570 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11571 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11575 # Free Software Foundation, Inc.
11577 # This file is part of GNU Libtool:
11578 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11580 # This program is free software; you can redistribute it and/or modify
11581 # it under the terms of the GNU General Public License as published by
11582 # the Free Software Foundation; either version 2 of the License, or
11583 # (at your option) any later version.
11585 # This program is distributed in the hope that it will be useful, but
11586 # WITHOUT ANY WARRANTY; without even the implied warranty of
11587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11588 # General Public License for more details.
11590 # You should have received a copy of the GNU General Public License
11591 # along with this program; if not, write to the Free Software
11592 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11594 # As a special exception to the GNU General Public License, if you
11595 # distribute this file as part of a program that contains a
11596 # configuration script generated by Autoconf, you may include it under
11597 # the same distribution terms that you use for the rest of that program.
11599 # A sed program that does not truncate output.
11602 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11603 Xsed="$SED -e 1s/^X//"
11605 # The HP-UX ksh and POSIX shell print the target directory to stdout
11606 # if CDPATH is set.
11607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11609 # The names of the tagged configurations supported by this script.
11612 # ### BEGIN LIBTOOL CONFIG
11614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11616 # Shell to use when invoking shell scripts.
11619 # Whether or not to build shared libraries.
11620 build_libtool_libs=$enable_shared
11622 # Whether or not to build static libraries.
11623 build_old_libs=$enable_static
11625 # Whether or not to add -lc for building shared libraries.
11626 build_libtool_need_lc=$archive_cmds_need_lc
11628 # Whether or not to disallow shared libs when runtime libs are static
11629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11631 # Whether or not to optimize for fast installation.
11632 fast_install=$enable_fast_install
11635 host_alias=$host_alias
11639 # The build system.
11640 build_alias=$build_alias
11644 # An echo program that does not interpret backslashes.
11649 AR_FLAGS=$lt_AR_FLAGS
11654 # LTCC compiler flags.
11655 LTCFLAGS=$lt_LTCFLAGS
11657 # A language-specific compiler.
11660 # Is the compiler the GNU C compiler?
11666 # The linker used to build libraries.
11669 # Whether we need hard or soft links.
11672 # A BSD-compatible nm program.
11675 # A symbol stripping program
11678 # Used to examine libraries when file_magic_cmd begins "file"
11679 MAGIC_CMD=$MAGIC_CMD
11681 # Used on cygwin: DLL creation program.
11684 # Used on cygwin: object dumper.
11687 # Used on cygwin: assembler.
11690 # The name of the directory that contains temporary libtool files.
11693 # How to create reloadable object files.
11694 reload_flag=$lt_reload_flag
11695 reload_cmds=$lt_reload_cmds
11697 # How to pass a linker flag through the compiler.
11698 wl=$lt_lt_prog_compiler_wl
11700 # Object file suffix (normally "o").
11701 objext="$ac_objext"
11703 # Old archive suffix (normally "a").
11706 # Shared library suffix (normally ".so").
11707 shrext_cmds='$shrext_cmds'
11709 # Executable file suffix (normally "").
11712 # Additional compiler flags for building library objects.
11713 pic_flag=$lt_lt_prog_compiler_pic
11716 # What is the maximum length of a command?
11717 max_cmd_len=$lt_cv_sys_max_cmd_len
11719 # Does compiler simultaneously support -c and -o options?
11720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11722 # Must we lock files when doing compilation?
11723 need_locks=$lt_need_locks
11725 # Do we need the lib prefix for modules?
11726 need_lib_prefix=$need_lib_prefix
11728 # Do we need a version for libraries?
11729 need_version=$need_version
11731 # Whether dlopen is supported.
11732 dlopen_support=$enable_dlopen
11734 # Whether dlopen of programs is supported.
11735 dlopen_self=$enable_dlopen_self
11737 # Whether dlopen of statically linked programs is supported.
11738 dlopen_self_static=$enable_dlopen_self_static
11740 # Compiler flag to prevent dynamic linking.
11741 link_static_flag=$lt_lt_prog_compiler_static
11743 # Compiler flag to turn off builtin functions.
11744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11746 # Compiler flag to allow reflexive dlopens.
11747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11749 # Compiler flag to generate shared objects directly from archives.
11750 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11752 # Compiler flag to generate thread-safe objects.
11753 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11755 # Library versioning type.
11756 version_type=$version_type
11758 # Format of library name prefix.
11759 libname_spec=$lt_libname_spec
11761 # List of archive names. First name is the real one, the rest are links.
11762 # The last name is the one that the linker finds with -lNAME.
11763 library_names_spec=$lt_library_names_spec
11765 # The coded name of the library, if different from the real name.
11766 soname_spec=$lt_soname_spec
11768 # Commands used to build and install an old-style archive.
11770 old_archive_cmds=$lt_old_archive_cmds
11771 old_postinstall_cmds=$lt_old_postinstall_cmds
11772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11774 # Create an old-style archive from a shared archive.
11775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11777 # Create a temporary old-style archive to link instead of a shared archive.
11778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11780 # Commands used to build and install a shared archive.
11781 archive_cmds=$lt_archive_cmds
11782 archive_expsym_cmds=$lt_archive_expsym_cmds
11783 postinstall_cmds=$lt_postinstall_cmds
11784 postuninstall_cmds=$lt_postuninstall_cmds
11786 # Commands used to build a loadable module (assumed same as above if empty)
11787 module_cmds=$lt_module_cmds
11788 module_expsym_cmds=$lt_module_expsym_cmds
11790 # Commands to strip libraries.
11791 old_striplib=$lt_old_striplib
11792 striplib=$lt_striplib
11794 # Dependencies to place before the objects being linked to create a
11796 predep_objects=$lt_predep_objects
11798 # Dependencies to place after the objects being linked to create a
11800 postdep_objects=$lt_postdep_objects
11802 # Dependencies to place before the objects being linked to create a
11804 predeps=$lt_predeps
11806 # Dependencies to place after the objects being linked to create a
11808 postdeps=$lt_postdeps
11810 # The library search path used internally by the compiler when linking
11811 # a shared library.
11812 compiler_lib_search_path=$lt_compiler_lib_search_path
11814 # Method to check whether dependent libraries are shared objects.
11815 deplibs_check_method=$lt_deplibs_check_method
11817 # Command to use when deplibs_check_method == file_magic.
11818 file_magic_cmd=$lt_file_magic_cmd
11820 # Flag that allows shared libraries with undefined symbols to be built.
11821 allow_undefined_flag=$lt_allow_undefined_flag
11823 # Flag that forces no undefined symbols.
11824 no_undefined_flag=$lt_no_undefined_flag
11826 # Commands used to finish a libtool library installation in a directory.
11827 finish_cmds=$lt_finish_cmds
11829 # Same as above, but a single script fragment to be evaled but not shown.
11830 finish_eval=$lt_finish_eval
11832 # Take the output of nm and produce a listing of raw symbols and C names.
11833 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11835 # Transform the output of nm in a proper C declaration
11836 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11838 # Transform the output of nm in a C name address pair
11839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11841 # This is the shared library runtime path variable.
11842 runpath_var=$runpath_var
11844 # This is the shared library path variable.
11845 shlibpath_var=$shlibpath_var
11847 # Is shlibpath searched before the hard-coded library search path?
11848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11850 # How to hardcode a shared library path into an executable.
11851 hardcode_action=$hardcode_action
11853 # Whether we should hardcode library paths into libraries.
11854 hardcode_into_libs=$hardcode_into_libs
11856 # Flag to hardcode \$libdir into a binary during linking.
11857 # This must work even if \$libdir does not exist.
11858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11860 # If ld is used when linking, flag to hardcode \$libdir into
11861 # a binary during linking. This must work even if \$libdir does
11863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11865 # Whether we need a single -rpath flag with a separated argument.
11866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11868 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11869 # resulting binary.
11870 hardcode_direct=$hardcode_direct
11872 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11873 # resulting binary.
11874 hardcode_minus_L=$hardcode_minus_L
11876 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11877 # the resulting binary.
11878 hardcode_shlibpath_var=$hardcode_shlibpath_var
11880 # Set to yes if building a shared library automatically hardcodes DIR into the library
11881 # and all subsequent libraries and executables linked against it.
11882 hardcode_automatic=$hardcode_automatic
11884 # Variables whose values should be saved in libtool wrapper scripts and
11885 # restored at relink time.
11886 variables_saved_for_relink="$variables_saved_for_relink"
11888 # Whether libtool must link a program against all its dependency libraries.
11889 link_all_deplibs=$link_all_deplibs
11891 # Compile-time system search path for libraries
11892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11894 # Run-time system search path for libraries
11895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11897 # Fix the shell variable \$srcfile for the compiler.
11898 fix_srcfile_path="$fix_srcfile_path"
11900 # Set to yes if exported symbols are required.
11901 always_export_symbols=$always_export_symbols
11903 # The commands to list exported symbols.
11904 export_symbols_cmds=$lt_export_symbols_cmds
11906 # The commands to extract the exported symbol list from a shared archive.
11907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11909 # Symbols that should not be listed in the preloaded symbols.
11910 exclude_expsyms=$lt_exclude_expsyms
11912 # Symbols that must always be exported.
11913 include_expsyms=$lt_include_expsyms
11915 # ### END LIBTOOL CONFIG
11922 cat <<\EOF >> "$cfgfile"
11924 # AIX sometimes has problems with the GCC collect2 program. For some
11925 # reason, if we set the COLLECT_NAMES environment variable, the problems
11926 # vanish in a puff of smoke.
11927 if test "X${COLLECT_NAMES+set}" != Xset; then
11929 export COLLECT_NAMES
11935 # We use sed instead of cat because bash on DJGPP gets confused if
11936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11937 # text mode, it properly converts lines to CR/LF. This bash problem
11938 # is reportedly fixed, but why not run on old versions too?
11939 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11941 mv -f "$cfgfile" "$ofile" || \
11942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11946 # If there is no Makefile yet, we rely on a make rule to execute
11947 # `config.status --recheck' to rerun these tests and create the
11948 # libtool script then.
11949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11950 if test -f "$ltmain_in"; then
11951 test -f Makefile && make "$ltmain"
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11965 # Check whether --with-tags was given.
11966 if test "${with_tags+set}" = set; then
11967 withval=$with_tags; tagnames="$withval"
11971 if test -f "$ltmain" && test -n "$tagnames"; then
11972 if test ! -f "${ofile}"; then
11973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11974 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11977 if test -z "$LTCC"; then
11978 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11979 if test -z "$LTCC"; then
11980 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11981 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11984 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11987 if test -z "$LTCFLAGS"; then
11988 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11991 # Extract list of available tagged configurations in $ofile.
11992 # Note that this assumes the entire list is on one line.
11993 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11996 for tagname in $tagnames; do
11998 # Check whether tagname contains only valid characters
11999 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12001 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12002 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12003 { (exit 1); exit 1; }; }
12007 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12009 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12010 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12011 { (exit 1); exit 1; }; }
12014 # Update the list of available tags.
12015 if test -n "$tagname"; then
12016 echo appending configuration tag \"$tagname\" to $ofile
12020 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12021 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12022 (test "X$CXX" != "Xg++"))) ; then
12030 if test -n "$F77" && test "X$F77" != "Xno"; then
12038 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12048 # Source file extension for RC test sources.
12051 # Object file extension for compiled RC test sources.
12055 # Code to be used in simple compile tests
12056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12058 # Code to be used in simple link tests
12059 lt_simple_link_test_code="$lt_simple_compile_test_code"
12061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12063 # If no C compiler was specified, use CC.
12066 # If no C compiler flags were specified, use CFLAGS.
12067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12069 # Allow CC to be a program name with arguments.
12073 # save warnings/boilerplate of simple test code
12074 ac_outfile=conftest.$ac_objext
12075 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12077 _lt_compiler_boilerplate=`cat conftest.err`
12080 ac_outfile=conftest.$ac_objext
12081 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12083 _lt_linker_boilerplate=`cat conftest.err`
12087 # Allow CC to be a program name with arguments.
12092 for cc_temp in $compiler""; do
12094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12102 lt_cv_prog_compiler_c_o_RC=yes
12104 # The else clause should only fire when bootstrapping the
12105 # libtool distribution, otherwise you forgot to ship ltmain.sh
12106 # with your package, and you will get complaints that there are
12107 # no rules to generate ltmain.sh.
12108 if test -f "$ltmain"; then
12109 # See if we are running on zsh, and set the options which allow our commands through
12110 # without removal of \ escapes.
12111 if test -n "${ZSH_VERSION+set}" ; then
12112 setopt NO_GLOB_SUBST
12114 # Now quote all the things that may contain metacharacters while being
12115 # careful not to overquote the AC_SUBSTed values. We take copies of the
12116 # variables and quote the copies for generation of the libtool script.
12117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12121 deplibs_check_method reload_flag reload_cmds need_locks \
12122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12123 lt_cv_sys_global_symbol_to_c_name_address \
12124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12125 old_postinstall_cmds old_postuninstall_cmds \
12129 lt_prog_compiler_wl_RC \
12130 lt_prog_compiler_pic_RC \
12131 lt_prog_compiler_static_RC \
12132 lt_prog_compiler_no_builtin_flag_RC \
12133 export_dynamic_flag_spec_RC \
12134 thread_safe_flag_spec_RC \
12135 whole_archive_flag_spec_RC \
12136 enable_shared_with_static_runtimes_RC \
12137 old_archive_cmds_RC \
12138 old_archive_from_new_cmds_RC \
12139 predep_objects_RC \
12140 postdep_objects_RC \
12143 compiler_lib_search_path_RC \
12145 archive_expsym_cmds_RC \
12146 postinstall_cmds_RC \
12147 postuninstall_cmds_RC \
12148 old_archive_from_expsyms_cmds_RC \
12149 allow_undefined_flag_RC \
12150 no_undefined_flag_RC \
12151 export_symbols_cmds_RC \
12152 hardcode_libdir_flag_spec_RC \
12153 hardcode_libdir_flag_spec_ld_RC \
12154 hardcode_libdir_separator_RC \
12155 hardcode_automatic_RC \
12157 module_expsym_cmds_RC \
12158 lt_cv_prog_compiler_c_o_RC \
12159 exclude_expsyms_RC \
12160 include_expsyms_RC; do
12163 old_archive_cmds_RC | \
12164 old_archive_from_new_cmds_RC | \
12165 archive_cmds_RC | \
12166 archive_expsym_cmds_RC | \
12168 module_expsym_cmds_RC | \
12169 old_archive_from_expsyms_cmds_RC | \
12170 export_symbols_cmds_RC | \
12171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12172 postinstall_cmds | postuninstall_cmds | \
12173 old_postinstall_cmds | old_postuninstall_cmds | \
12174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12175 # Double-quote double-evaled strings.
12176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12185 *'\$0 --fallback-echo"')
12186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12192 cat <<__EOF__ >> "$cfgfile"
12193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12197 # Shell to use when invoking shell scripts.
12200 # Whether or not to build shared libraries.
12201 build_libtool_libs=$enable_shared
12203 # Whether or not to build static libraries.
12204 build_old_libs=$enable_static
12206 # Whether or not to add -lc for building shared libraries.
12207 build_libtool_need_lc=$archive_cmds_need_lc_RC
12209 # Whether or not to disallow shared libs when runtime libs are static
12210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12212 # Whether or not to optimize for fast installation.
12213 fast_install=$enable_fast_install
12216 host_alias=$host_alias
12220 # The build system.
12221 build_alias=$build_alias
12225 # An echo program that does not interpret backslashes.
12230 AR_FLAGS=$lt_AR_FLAGS
12235 # LTCC compiler flags.
12236 LTCFLAGS=$lt_LTCFLAGS
12238 # A language-specific compiler.
12241 # Is the compiler the GNU C compiler?
12247 # The linker used to build libraries.
12250 # Whether we need hard or soft links.
12253 # A BSD-compatible nm program.
12256 # A symbol stripping program
12259 # Used to examine libraries when file_magic_cmd begins "file"
12260 MAGIC_CMD=$MAGIC_CMD
12262 # Used on cygwin: DLL creation program.
12265 # Used on cygwin: object dumper.
12268 # Used on cygwin: assembler.
12271 # The name of the directory that contains temporary libtool files.
12274 # How to create reloadable object files.
12275 reload_flag=$lt_reload_flag
12276 reload_cmds=$lt_reload_cmds
12278 # How to pass a linker flag through the compiler.
12279 wl=$lt_lt_prog_compiler_wl_RC
12281 # Object file suffix (normally "o").
12282 objext="$ac_objext"
12284 # Old archive suffix (normally "a").
12287 # Shared library suffix (normally ".so").
12288 shrext_cmds='$shrext_cmds'
12290 # Executable file suffix (normally "").
12293 # Additional compiler flags for building library objects.
12294 pic_flag=$lt_lt_prog_compiler_pic_RC
12297 # What is the maximum length of a command?
12298 max_cmd_len=$lt_cv_sys_max_cmd_len
12300 # Does compiler simultaneously support -c and -o options?
12301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12303 # Must we lock files when doing compilation?
12304 need_locks=$lt_need_locks
12306 # Do we need the lib prefix for modules?
12307 need_lib_prefix=$need_lib_prefix
12309 # Do we need a version for libraries?
12310 need_version=$need_version
12312 # Whether dlopen is supported.
12313 dlopen_support=$enable_dlopen
12315 # Whether dlopen of programs is supported.
12316 dlopen_self=$enable_dlopen_self
12318 # Whether dlopen of statically linked programs is supported.
12319 dlopen_self_static=$enable_dlopen_self_static
12321 # Compiler flag to prevent dynamic linking.
12322 link_static_flag=$lt_lt_prog_compiler_static_RC
12324 # Compiler flag to turn off builtin functions.
12325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12327 # Compiler flag to allow reflexive dlopens.
12328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12330 # Compiler flag to generate shared objects directly from archives.
12331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12333 # Compiler flag to generate thread-safe objects.
12334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12336 # Library versioning type.
12337 version_type=$version_type
12339 # Format of library name prefix.
12340 libname_spec=$lt_libname_spec
12342 # List of archive names. First name is the real one, the rest are links.
12343 # The last name is the one that the linker finds with -lNAME.
12344 library_names_spec=$lt_library_names_spec
12346 # The coded name of the library, if different from the real name.
12347 soname_spec=$lt_soname_spec
12349 # Commands used to build and install an old-style archive.
12351 old_archive_cmds=$lt_old_archive_cmds_RC
12352 old_postinstall_cmds=$lt_old_postinstall_cmds
12353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12355 # Create an old-style archive from a shared archive.
12356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12358 # Create a temporary old-style archive to link instead of a shared archive.
12359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12361 # Commands used to build and install a shared archive.
12362 archive_cmds=$lt_archive_cmds_RC
12363 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12364 postinstall_cmds=$lt_postinstall_cmds
12365 postuninstall_cmds=$lt_postuninstall_cmds
12367 # Commands used to build a loadable module (assumed same as above if empty)
12368 module_cmds=$lt_module_cmds_RC
12369 module_expsym_cmds=$lt_module_expsym_cmds_RC
12371 # Commands to strip libraries.
12372 old_striplib=$lt_old_striplib
12373 striplib=$lt_striplib
12375 # Dependencies to place before the objects being linked to create a
12377 predep_objects=$lt_predep_objects_RC
12379 # Dependencies to place after the objects being linked to create a
12381 postdep_objects=$lt_postdep_objects_RC
12383 # Dependencies to place before the objects being linked to create a
12385 predeps=$lt_predeps_RC
12387 # Dependencies to place after the objects being linked to create a
12389 postdeps=$lt_postdeps_RC
12391 # The library search path used internally by the compiler when linking
12392 # a shared library.
12393 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12395 # Method to check whether dependent libraries are shared objects.
12396 deplibs_check_method=$lt_deplibs_check_method
12398 # Command to use when deplibs_check_method == file_magic.
12399 file_magic_cmd=$lt_file_magic_cmd
12401 # Flag that allows shared libraries with undefined symbols to be built.
12402 allow_undefined_flag=$lt_allow_undefined_flag_RC
12404 # Flag that forces no undefined symbols.
12405 no_undefined_flag=$lt_no_undefined_flag_RC
12407 # Commands used to finish a libtool library installation in a directory.
12408 finish_cmds=$lt_finish_cmds
12410 # Same as above, but a single script fragment to be evaled but not shown.
12411 finish_eval=$lt_finish_eval
12413 # Take the output of nm and produce a listing of raw symbols and C names.
12414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12416 # Transform the output of nm in a proper C declaration
12417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12419 # Transform the output of nm in a C name address pair
12420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12422 # This is the shared library runtime path variable.
12423 runpath_var=$runpath_var
12425 # This is the shared library path variable.
12426 shlibpath_var=$shlibpath_var
12428 # Is shlibpath searched before the hard-coded library search path?
12429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12431 # How to hardcode a shared library path into an executable.
12432 hardcode_action=$hardcode_action_RC
12434 # Whether we should hardcode library paths into libraries.
12435 hardcode_into_libs=$hardcode_into_libs
12437 # Flag to hardcode \$libdir into a binary during linking.
12438 # This must work even if \$libdir does not exist.
12439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12441 # If ld is used when linking, flag to hardcode \$libdir into
12442 # a binary during linking. This must work even if \$libdir does
12444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12446 # Whether we need a single -rpath flag with a separated argument.
12447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12450 # resulting binary.
12451 hardcode_direct=$hardcode_direct_RC
12453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12454 # resulting binary.
12455 hardcode_minus_L=$hardcode_minus_L_RC
12457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12458 # the resulting binary.
12459 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12461 # Set to yes if building a shared library automatically hardcodes DIR into the library
12462 # and all subsequent libraries and executables linked against it.
12463 hardcode_automatic=$hardcode_automatic_RC
12465 # Variables whose values should be saved in libtool wrapper scripts and
12466 # restored at relink time.
12467 variables_saved_for_relink="$variables_saved_for_relink"
12469 # Whether libtool must link a program against all its dependency libraries.
12470 link_all_deplibs=$link_all_deplibs_RC
12472 # Compile-time system search path for libraries
12473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12475 # Run-time system search path for libraries
12476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12478 # Fix the shell variable \$srcfile for the compiler.
12479 fix_srcfile_path="$fix_srcfile_path_RC"
12481 # Set to yes if exported symbols are required.
12482 always_export_symbols=$always_export_symbols_RC
12484 # The commands to list exported symbols.
12485 export_symbols_cmds=$lt_export_symbols_cmds_RC
12487 # The commands to extract the exported symbol list from a shared archive.
12488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12490 # Symbols that should not be listed in the preloaded symbols.
12491 exclude_expsyms=$lt_exclude_expsyms_RC
12493 # Symbols that must always be exported.
12494 include_expsyms=$lt_include_expsyms_RC
12496 # ### END LIBTOOL TAG CONFIG: $tagname
12502 # If there is no Makefile yet, we rely on a make rule to execute
12503 # `config.status --recheck' to rerun these tests and create the
12504 # libtool script then.
12505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12506 if test -f "$ltmain_in"; then
12507 test -f Makefile && make "$ltmain"
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12524 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12525 { (exit 1); exit 1; }; }
12529 # Append the new tag name to the list of available tags.
12530 if test -n "$tagname" ; then
12531 available_tags="$available_tags $tagname"
12537 # Now substitute the updated list of available tags.
12538 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12539 mv "${ofile}T" "$ofile"
12543 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12544 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12545 { (exit 1); exit 1; }; }
12551 # This can be used to rebuild libtool when needed
12552 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12554 # Always use our own libtool.
12555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12557 # Prevent multiple expansion
12569 if test $ol_enable_perl != no ; then
12570 # Extract the first word of "perl", so it can be a program name with args.
12571 set dummy perl; ac_word=$2
12572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12574 if test "${ac_cv_path_PERLBIN+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12601 PERLBIN=$ac_cv_path_PERLBIN
12602 if test -n "$PERLBIN"; then
12603 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12604 echo "${ECHO_T}$PERLBIN" >&6; }
12606 { echo "$as_me:$LINENO: result: no" >&5
12607 echo "${ECHO_T}no" >&6; }
12612 if test "no$PERLBIN" = "no" ; then
12613 if test $ol_enable_perl = yes ; then
12614 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12615 echo "$as_me: error: could not locate perl" >&2;}
12616 { (exit 1); exit 1; }; }
12620 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12621 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12623 if test x"$ol_enable_perl" = "xyes" ; then
12624 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12626 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12637 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12638 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12639 # On Suns, sometimes $CPP names a directory.
12640 if test -n "$CPP" && test -d "$CPP"; then
12643 if test -z "$CPP"; then
12644 if test "${ac_cv_prog_CPP+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 # Double quotes because CPP needs to be expanded
12648 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12650 ac_preproc_ok=false
12651 for ac_c_preproc_warn_flag in '' yes
12653 # Use a header file that comes with gcc, so configuring glibc
12654 # with a fresh cross-compiler works.
12655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656 # <limits.h> exists even on freestanding compilers.
12657 # On the NeXT, cc -E runs the code through the compiler's parser,
12658 # not just through cpp. "Syntax error" is here to catch this case.
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12666 # include <limits.h>
12668 # include <assert.h>
12672 if { (ac_try="$ac_cpp conftest.$ac_ext"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } >/dev/null && {
12685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 # Broken: fails on valid input.
12697 rm -f conftest.err conftest.$ac_ext
12699 # OK, works on sane cases. Now check whether nonexistent headers
12700 # can be detected and how.
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <ac_nonexistent.h>
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null && {
12722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12725 # Broken: success on invalid input.
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 # Passes both tests.
12736 rm -f conftest.err conftest.$ac_ext
12739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12740 rm -f conftest.err conftest.$ac_ext
12741 if $ac_preproc_ok; then
12746 ac_cv_prog_CPP=$CPP
12749 CPP=$ac_cv_prog_CPP
12751 ac_cv_prog_CPP=$CPP
12753 { echo "$as_me:$LINENO: result: $CPP" >&5
12754 echo "${ECHO_T}$CPP" >&6; }
12755 ac_preproc_ok=false
12756 for ac_c_preproc_warn_flag in '' yes
12758 # Use a header file that comes with gcc, so configuring glibc
12759 # with a fresh cross-compiler works.
12760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 # <limits.h> exists even on freestanding compilers.
12762 # On the NeXT, cc -E runs the code through the compiler's parser,
12763 # not just through cpp. "Syntax error" is here to catch this case.
12764 cat >conftest.$ac_ext <<_ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 # include <limits.h>
12773 # include <assert.h>
12777 if { (ac_try="$ac_cpp conftest.$ac_ext"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } >/dev/null && {
12790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 # Broken: fails on valid input.
12802 rm -f conftest.err conftest.$ac_ext
12804 # OK, works on sane cases. Now check whether nonexistent headers
12805 # can be detected and how.
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <ac_nonexistent.h>
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } >/dev/null && {
12827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12830 # Broken: success on invalid input.
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 # Passes both tests.
12841 rm -f conftest.err conftest.$ac_ext
12844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12845 rm -f conftest.err conftest.$ac_ext
12846 if $ac_preproc_ok; then
12849 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12850 See \`config.log' for more details." >&5
12851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12852 See \`config.log' for more details." >&2;}
12853 { (exit 1); exit 1; }; }
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12862 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12863 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12864 if test "${ol_cv_msvc+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12875 #include <__FOO__/generate_error.h>
12879 if { (ac_try="$ac_cpp conftest.$ac_ext"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12887 grep -v '^ *+' conftest.er1 >conftest.err
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } >/dev/null && {
12892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12893 test ! -s conftest.err
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12903 rm -f conftest.err conftest.$ac_ext
12905 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12906 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12909 *mingw32* ) ac_cv_mingw32=yes ;;
12910 *cygwin* ) ac_cv_cygwin=yes ;;
12911 *interix* ) ac_cv_interix=yes ;;
12917 cat >>confdefs.h <<_ACEOF
12918 #define EXEEXT "${EXEEXT}"
12922 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12923 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12924 if test "${ac_cv_lib_be_be_app+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 ac_check_lib_save_LIBS=$LIBS
12928 LIBS="-lbe -lroot -lnet $LIBS"
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (ac_try="$ac_link"
12953 case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_link") 2>conftest.er1
12960 grep -v '^ *+' conftest.er1 >conftest.err
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } && {
12965 test -z "$ac_c_werror_flag" ||
12966 test ! -s conftest.err
12967 } && test -s conftest$ac_exeext &&
12968 $as_test_x conftest$ac_exeext; then
12969 ac_cv_lib_be_be_app=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_cv_lib_be_be_app=no
12977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12981 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12982 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12983 if test $ac_cv_lib_be_be_app = yes; then
12984 LIBS="$LIBS -lbe -lroot -lnet"
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995 if test -n "$ac_tool_prefix"; then
12996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13000 if test "${ac_cv_prog_CC+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 if test -n "$CC"; then
13004 ac_cv_prog_CC="$CC" # Let the user override the test.
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 if test -n "$CC"; then
13025 { echo "$as_me:$LINENO: result: $CC" >&5
13026 echo "${ECHO_T}$CC" >&6; }
13028 { echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6; }
13034 if test -z "$ac_cv_prog_CC"; then
13036 # Extract the first word of "gcc", so it can be a program name with args.
13037 set dummy gcc; ac_word=$2
13038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 if test -n "$ac_ct_CC"; then
13044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_prog_ac_ct_CC="gcc"
13054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13064 if test -n "$ac_ct_CC"; then
13065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13066 echo "${ECHO_T}$ac_ct_CC" >&6; }
13068 { echo "$as_me:$LINENO: result: no" >&5
13069 echo "${ECHO_T}no" >&6; }
13072 if test "x$ac_ct_CC" = x; then
13075 case $cross_compiling:$ac_tool_warned in
13077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13078 whose name does not start with the host triplet. If you think this
13079 configuration is useful to you, please write to autoconf@gnu.org." >&5
13080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13081 whose name does not start with the host triplet. If you think this
13082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13083 ac_tool_warned=yes ;;
13088 CC="$ac_cv_prog_CC"
13091 if test -z "$CC"; then
13092 if test -n "$ac_tool_prefix"; then
13093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13094 set dummy ${ac_tool_prefix}cc; ac_word=$2
13095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13097 if test "${ac_cv_prog_CC+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 if test -n "$CC"; then
13101 ac_cv_prog_CC="$CC" # Let the user override the test.
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_CC="${ac_tool_prefix}cc"
13111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 if test -n "$CC"; then
13122 { echo "$as_me:$LINENO: result: $CC" >&5
13123 echo "${ECHO_T}$CC" >&6; }
13125 { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13132 if test -z "$CC"; then
13133 # Extract the first word of "cc", so it can be a program name with args.
13134 set dummy cc; ac_word=$2
13135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13137 if test "${ac_cv_prog_CC+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 if test -n "$CC"; then
13141 ac_cv_prog_CC="$CC" # Let the user override the test.
13143 ac_prog_rejected=no
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13152 ac_prog_rejected=yes
13156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 if test $ac_prog_rejected = yes; then
13164 # We found a bogon in the path, so make sure we never use it.
13165 set dummy $ac_cv_prog_CC
13167 if test $# != 0; then
13168 # We chose a different compiler from the bogus one.
13169 # However, it has the same basename, so the bogon will be chosen
13170 # first if we set CC to just the basename; use the full file name.
13172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13178 if test -n "$CC"; then
13179 { echo "$as_me:$LINENO: result: $CC" >&5
13180 echo "${ECHO_T}$CC" >&6; }
13182 { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13188 if test -z "$CC"; then
13189 if test -n "$ac_tool_prefix"; then
13190 for ac_prog in cl.exe
13192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_prog_CC+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 if test -n "$CC"; then
13200 ac_cv_prog_CC="$CC" # Let the user override the test.
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 if test -n "$CC"; then
13221 { echo "$as_me:$LINENO: result: $CC" >&5
13222 echo "${ECHO_T}$CC" >&6; }
13224 { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13229 test -n "$CC" && break
13232 if test -z "$CC"; then
13234 for ac_prog in cl.exe
13236 # Extract the first word of "$ac_prog", so it can be a program name with args.
13237 set dummy $ac_prog; ac_word=$2
13238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 if test -n "$ac_ct_CC"; then
13244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_ac_ct_CC="$ac_prog"
13254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13264 if test -n "$ac_ct_CC"; then
13265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13266 echo "${ECHO_T}$ac_ct_CC" >&6; }
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13273 test -n "$ac_ct_CC" && break
13276 if test "x$ac_ct_CC" = x; then
13279 case $cross_compiling:$ac_tool_warned in
13281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13282 whose name does not start with the host triplet. If you think this
13283 configuration is useful to you, please write to autoconf@gnu.org." >&5
13284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13285 whose name does not start with the host triplet. If you think this
13286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13287 ac_tool_warned=yes ;;
13296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13297 See \`config.log' for more details." >&5
13298 echo "$as_me: error: no acceptable C compiler found in \$PATH
13299 See \`config.log' for more details." >&2;}
13300 { (exit 1); exit 1; }; }
13302 # Provide some information about the compiler.
13303 echo "$as_me:$LINENO: checking for C compiler version" >&5
13304 ac_compiler=`set X $ac_compile; echo $2`
13305 { (ac_try="$ac_compiler --version >&5"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_compiler --version >&5") 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }
13315 { (ac_try="$ac_compiler -v >&5"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compiler -v >&5") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }
13325 { (ac_try="$ac_compiler -V >&5"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compiler -V >&5") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }
13336 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_compile") 2>conftest.er1
13368 grep -v '^ *+' conftest.er1 >conftest.err
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } && {
13373 test -z "$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 } && test -s conftest.$ac_objext; then
13376 ac_compiler_gnu=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13388 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13390 GCC=`test $ac_compiler_gnu = yes && echo yes`
13391 ac_test_CFLAGS=${CFLAGS+set}
13392 ac_save_CFLAGS=$CFLAGS
13393 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13394 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13395 if test "${ac_cv_prog_cc_g+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 ac_save_c_werror_flag=$ac_c_werror_flag
13399 ac_c_werror_flag=yes
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13417 rm -f conftest.$ac_objext
13418 if { (ac_try="$ac_compile"
13419 case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_compile") 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } && {
13431 test -z "$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 } && test -s conftest.$ac_objext; then
13434 ac_cv_prog_cc_g=yes
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1 >conftest.err
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_c_werror_flag=$ac_save_c_werror_flag
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13494 rm -f conftest.$ac_objext
13495 if { (ac_try="$ac_compile"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_compile") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest.$ac_objext; then
13511 ac_cv_prog_cc_g=yes
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 ac_c_werror_flag=$ac_save_c_werror_flag
13528 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13529 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13530 if test "$ac_test_CFLAGS" = set; then
13531 CFLAGS=$ac_save_CFLAGS
13532 elif test $ac_cv_prog_cc_g = yes; then
13533 if test "$GCC" = yes; then
13539 if test "$GCC" = yes; then
13545 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13546 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13547 if test "${ac_cv_prog_cc_c89+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 ac_cv_prog_cc_c89=no
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <stdarg.h>
13560 #include <sys/types.h>
13561 #include <sys/stat.h>
13562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13563 struct buf { int x; };
13564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13565 static char *e (p, i)
13571 static char *f (char * (*g) (char **, int), char **p, ...)
13576 s = g (p, va_arg (v,int));
13581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13582 function prototypes and stuff, but not '\xHH' hex character constants.
13583 These don't provoke an error unfortunately, instead are silently treated
13584 as 'x'. The following induces an error, until -std is added to get
13585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13586 array size at least. It's necessary to write '\x00'==0 to get something
13587 that's true only with -std. */
13588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13591 inside strings and character constants. */
13593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13595 int test (int i, double x);
13596 struct s1 {int (*f) (int a);};
13597 struct s2 {int (*f) (double a);};
13598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13612 CC="$ac_save_CC $ac_arg"
13613 rm -f conftest.$ac_objext
13614 if { (ac_try="$ac_compile"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_compile") 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_c_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest.$ac_objext; then
13630 ac_cv_prog_cc_c89=$ac_arg
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13638 rm -f core conftest.err conftest.$ac_objext
13639 test "x$ac_cv_prog_cc_c89" != "xno" && break
13641 rm -f conftest.$ac_ext
13646 case "x$ac_cv_prog_cc_c89" in
13648 { echo "$as_me:$LINENO: result: none needed" >&5
13649 echo "${ECHO_T}none needed" >&6; } ;;
13651 { echo "$as_me:$LINENO: result: unsupported" >&5
13652 echo "${ECHO_T}unsupported" >&6; } ;;
13654 CC="$CC $ac_cv_prog_cc_c89"
13655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13656 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13666 depcc="$CC" am_compiler_list=
13668 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13669 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13670 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13674 # We make a subdir and do the tests there. Otherwise we can end up
13675 # making bogus files that we don't know about and never remove. For
13676 # instance it was reported that on HP-UX the gcc test will end up
13677 # making a dummy file named `D' -- because `-MD' means `put the output
13680 # Copy depcomp to subdir because otherwise we won't find it if we're
13681 # using a relative directory.
13682 cp "$am_depcomp" conftest.dir
13684 # We will build objects and dependencies in a subdirectory because
13685 # it helps to detect inapplicable dependency modes. For instance
13686 # both Tru64's cc and ICC support -MD to output dependencies as a
13687 # side effect of compilation, but ICC will put the dependencies in
13688 # the current directory while Tru64 will put them in the object
13692 am_cv_CC_dependencies_compiler_type=none
13693 if test "$am_compiler_list" = ""; then
13694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13696 for depmode in $am_compiler_list; do
13697 # Setup a source with many dependencies, because some compilers
13698 # like to wrap large dependency lists on column 80 (with \), and
13699 # we should not choose a depcomp mode which is confused by this.
13701 # We need to recreate these files for each test, as the compiler may
13702 # overwrite some of them when testing with obscure command lines.
13703 # This happens at least with the AIX C compiler.
13705 for i in 1 2 3 4 5 6; do
13706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13707 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13708 # Solaris 8's {/usr,}/bin/sh.
13709 touch sub/conftst$i.h
13711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13715 # after this tag, mechanisms are not by side-effect, so they'll
13716 # only be used when explicitly requested
13717 if test "x$enable_dependency_tracking" = xyes; then
13725 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13726 # mode. It turns out that the SunPro C++ compiler does not properly
13727 # handle `-M -o', and we need to detect this.
13728 if depmode=$depmode \
13729 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13730 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13731 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13732 >/dev/null 2>conftest.err &&
13733 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13735 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13737 # icc doesn't choke on unknown options, it will just issue warnings
13738 # or remarks (even with -Werror). So we grep stderr for any message
13739 # that says an option was ignored or not supported.
13740 # When given -MP, icc 7.0 and 7.1 complain thusly:
13741 # icc: Command line warning: ignoring option '-M'; no argument required
13742 # The diagnosis changed in icc 8.0:
13743 # icc: Command line remark: option '-MP' not supported
13744 if (grep 'ignoring option' conftest.err ||
13745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13746 am_cv_CC_dependencies_compiler_type=$depmode
13753 rm -rf conftest.dir
13755 am_cv_CC_dependencies_compiler_type=none
13759 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13760 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13764 test "x$enable_dependency_tracking" != xno \
13765 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13766 am__fastdepCC_TRUE=
13767 am__fastdepCC_FALSE='#'
13769 am__fastdepCC_TRUE='#'
13770 am__fastdepCC_FALSE=
13774 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13775 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13776 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13777 { (exit 1); exit 1; }; }
13780 # test for make depend flag
13783 if test -z "${MKDEP}"; then
13784 OL_MKDEP="${CC-cc}"
13785 if test -z "${MKDEP_FLAGS}"; then
13786 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13787 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13788 if test "${ol_cv_mkdep+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 for flag in "-M" "-xM"; do
13794 cat > conftest.c <<EOF
13797 if { ac_try='$OL_MKDEP $flag conftest.c'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } \
13803 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13805 if test ! -f conftest."${ac_object}" ; then
13807 OL_MKDEP_FLAGS="$flag"
13815 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13816 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13817 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13820 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13824 OL_MKDEP="${MKDEP}"
13825 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13830 if test "${ol_cv_mkdep}" = no ; then
13831 # this will soon become an error
13832 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13833 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13836 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13837 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13838 if test "${ac_cv_lib_s_afopen+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 ac_check_lib_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_link") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext &&
13882 $as_test_x conftest$ac_exeext; then
13883 ac_cv_lib_s_afopen=yes
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_cv_lib_s_afopen=no
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892 conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13895 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13896 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13897 if test $ac_cv_lib_s_afopen = yes; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_AIX_SECURITY 1
13911 ac_cv_func_getopt=no
13913 cat >>confdefs.h <<\_ACEOF
13914 #define BOTH_STRINGS_H 1
13921 WITH_MODULES_ENABLED=no
13922 if test $ol_enable_modules != no ; then
13924 for ac_header in ltdl.h
13926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 ac_res=`eval echo '${'$as_ac_Header'}'`
13934 { echo "$as_me:$LINENO: result: $ac_res" >&5
13935 echo "${ECHO_T}$ac_res" >&6; }
13937 # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13947 #include <$ac_header>
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13966 ac_header_compiler=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_header_compiler=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <$ac_header>
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null && {
14002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14005 ac_header_preproc=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_preproc=no
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14017 # So? What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14024 ac_header_preproc=yes
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14040 ## --------------------------------------------- ##
14041 ## Report this to <http://www.openldap.org/its/> ##
14042 ## --------------------------------------------- ##
14044 ) | sed "s/^/$as_me: WARNING: /" >&2
14047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 eval "$as_ac_Header=\$ac_header_preproc"
14054 ac_res=`eval echo '${'$as_ac_Header'}'`
14055 { echo "$as_me:$LINENO: result: $ac_res" >&5
14056 echo "${ECHO_T}$ac_res" >&6; }
14059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069 if test $ac_cv_header_ltdl_h = no ; then
14070 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14071 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14072 { (exit 1); exit 1; }; }
14075 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14076 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14077 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-lltdl $LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14099 return lt_dlinit ();
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (ac_try="$ac_link"
14106 case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_link") 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest$ac_exeext &&
14121 $as_test_x conftest$ac_exeext; then
14122 ac_cv_lib_ltdl_lt_dlinit=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_cv_lib_ltdl_lt_dlinit=no
14130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14134 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14135 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14136 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14138 MODULES_LIBS=-lltdl
14140 cat >>confdefs.h <<\_ACEOF
14141 #define HAVE_LIBLTDL 1
14148 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14149 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14150 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14151 { (exit 1); exit 1; }; }
14153 ol_link_modules=yes
14154 WITH_MODULES_ENABLED=yes
14157 for i in $Backends; do
14158 eval "ol_tmp=\$ol_enable_$i"
14159 if test $ol_tmp = mod ; then
14160 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14161 echo "$as_me: WARNING: building static $i backend" >&2;}
14162 eval "ol_enable_$i=yes"
14165 for i in $Overlays; do
14166 eval "ol_tmp=\$ol_enable_$i"
14167 if test $ol_tmp = mod ; then
14168 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14169 echo "$as_me: WARNING: building static $i overlay" >&2;}
14170 eval "ol_enable_$i=yes"
14176 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14177 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14178 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14190 #include <__ASCII__/generate_error.h>
14194 if { (ac_try="$ac_cpp conftest.$ac_ext"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null && {
14207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14210 ol_cv_cpp_ebcdic=yes
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ol_cv_cpp_ebcdic=no
14218 rm -f conftest.err conftest.$ac_ext
14220 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14221 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14222 if test $ol_cv_cpp_ebcdic = yes ; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_EBCDIC 1
14230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14232 if test "${ol_cv_header_stdc+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <stdlib.h>
14242 #include <stdarg.h>
14243 #include <string.h>
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev/null && {
14259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14262 ol_cv_header_stdc=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ol_cv_header_stdc=no
14270 rm -f conftest.err conftest.$ac_ext
14272 if test $ol_cv_header_stdc = yes; then
14273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <string.h>
14283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14284 $EGREP "memchr" >/dev/null 2>&1; then
14287 ol_cv_header_stdc=no
14293 if test $ol_cv_header_stdc = yes; then
14294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <stdlib.h>
14304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14305 $EGREP "free" >/dev/null 2>&1; then
14308 ol_cv_header_stdc=no
14314 if test $ol_cv_header_stdc = yes; then
14315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14316 if test "$cross_compiling" = yes; then
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14326 #ifndef HAVE_EBCDIC
14327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14330 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14331 || ('j' <= (c) && (c) <= 'r') \
14332 || ('s' <= (c) && (c) <= 'z'))
14333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14336 int main () { int i; for (i = 0; i < 256; i++)
14337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14341 rm -f conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14363 echo "$as_me: program exited with status $ac_status" >&5
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ( exit $ac_status )
14368 ol_cv_header_stdc=no
14370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14376 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14377 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14378 if test $ol_cv_header_stdc = yes; then
14379 cat >>confdefs.h <<\_ACEOF
14380 #define STDC_HEADERS 1
14384 ac_cv_header_stdc=disable
14387 if test $ol_cv_header_stdc != yes; then
14388 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14397 ac_header_dirent=no
14398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14400 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 cat >conftest.$ac_ext <<_ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 #include <sys/types.h>
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && {
14437 test -z "$ac_c_werror_flag" ||
14438 test ! -s conftest.err
14439 } && test -s conftest.$ac_objext; then
14440 eval "$as_ac_Header=yes"
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 eval "$as_ac_Header=no"
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 ac_res=`eval echo '${'$as_ac_Header'}'`
14451 { echo "$as_me:$LINENO: result: $ac_res" >&5
14452 echo "${ECHO_T}$ac_res" >&6; }
14453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14454 cat >>confdefs.h <<_ACEOF
14455 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14458 ac_header_dirent=$ac_hdr; break
14462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14463 if test $ac_header_dirent = dirent.h; then
14464 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_opendir+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14492 for ac_lib in '' dir; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest$ac_exeext &&
14516 $as_test_x conftest$ac_exeext; then
14517 ac_cv_search_opendir=$ac_res
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14527 if test "${ac_cv_search_opendir+set}" = set; then
14531 if test "${ac_cv_search_opendir+set}" = set; then
14534 ac_cv_search_opendir=no
14536 rm conftest.$ac_ext
14537 LIBS=$ac_func_search_save_LIBS
14539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14541 ac_res=$ac_cv_search_opendir
14542 if test "$ac_res" != no; then
14543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14548 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14549 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14550 if test "${ac_cv_search_opendir+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 ac_func_search_save_LIBS=$LIBS
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14576 for ac_lib in '' x; do
14577 if test -z "$ac_lib"; then
14578 ac_res="none required"
14581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14583 rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (ac_try="$ac_link"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_link") 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } && {
14597 test -z "$ac_c_werror_flag" ||
14598 test ! -s conftest.err
14599 } && test -s conftest$ac_exeext &&
14600 $as_test_x conftest$ac_exeext; then
14601 ac_cv_search_opendir=$ac_res
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14611 if test "${ac_cv_search_opendir+set}" = set; then
14615 if test "${ac_cv_search_opendir+set}" = set; then
14618 ac_cv_search_opendir=no
14620 rm conftest.$ac_ext
14621 LIBS=$ac_func_search_save_LIBS
14623 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14624 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14625 ac_res=$ac_cv_search_opendir
14626 if test "$ac_res" != no; then
14627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14633 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14634 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14635 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 #include <sys/types.h>
14645 #include <sys/wait.h>
14646 #ifndef WEXITSTATUS
14647 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14650 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14658 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_compile") 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && {
14677 test -z "$ac_c_werror_flag" ||
14678 test ! -s conftest.err
14679 } && test -s conftest.$ac_objext; then
14680 ac_cv_header_sys_wait_h=yes
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 ac_cv_header_sys_wait_h=no
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14691 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14692 if test $ac_cv_header_sys_wait_h = yes; then
14694 cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_SYS_WAIT_H 1
14700 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14701 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14702 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 #include <sys/types.h>
14712 #include <termios.h>
14718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14719 $EGREP "yes" >/dev/null 2>&1; then
14720 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14722 ac_cv_sys_tiocgwinsz_in_termios_h=no
14727 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14728 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14730 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14731 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14732 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14733 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <sys/types.h>
14743 #include <sys/ioctl.h>
14749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750 $EGREP "yes" >/dev/null 2>&1; then
14751 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14753 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14758 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14759 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14761 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define GWINSZ_IN_SYS_IOCTL 1
14868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 ac_res=`eval echo '${'$as_ac_Header'}'`
14876 { echo "$as_me:$LINENO: result: $ac_res" >&5
14877 echo "${ECHO_T}$ac_res" >&6; }
14879 # Is the header compilable?
14880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888 $ac_includes_default
14889 #include <$ac_header>
14891 rm -f conftest.$ac_objext
14892 if { (ac_try="$ac_compile"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_compile") 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest.$ac_objext; then
14908 ac_header_compiler=yes
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_header_compiler=no
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14918 echo "${ECHO_T}$ac_header_compiler" >&6; }
14920 # Is the header present?
14921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14923 cat >conftest.$ac_ext <<_ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 #include <$ac_header>
14931 if { (ac_try="$ac_cpp conftest.$ac_ext"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14939 grep -v '^ *+' conftest.er1 >conftest.err
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null && {
14944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14945 test ! -s conftest.err
14947 ac_header_preproc=yes
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14952 ac_header_preproc=no
14955 rm -f conftest.err conftest.$ac_ext
14956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14957 echo "${ECHO_T}$ac_header_preproc" >&6; }
14959 # So? What about this header?
14960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14966 ac_header_preproc=yes
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14982 ## --------------------------------------------- ##
14983 ## Report this to <http://www.openldap.org/its/> ##
14984 ## --------------------------------------------- ##
14986 ) | sed "s/^/$as_me: WARNING: /" >&2
14989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 eval "$as_ac_Header=\$ac_header_preproc"
14996 ac_res=`eval echo '${'$as_ac_Header'}'`
14997 { echo "$as_me:$LINENO: result: $ac_res" >&5
14998 echo "${ECHO_T}$ac_res" >&6; }
15001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 if test "$ac_cv_mingw32" = yes \
15012 -o "$ac_cv_interix" = yes \
15013 -o "$ol_cv_msvc" = yes
15017 for ac_header in winsock.h winsock2.h
15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15030 # Is the header compilable?
15031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 $ac_includes_default
15040 #include <$ac_header>
15042 rm -f conftest.$ac_objext
15043 if { (ac_try="$ac_compile"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_compile") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest.$ac_objext; then
15059 ac_header_compiler=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_header_compiler=no
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15069 echo "${ECHO_T}$ac_header_compiler" >&6; }
15071 # Is the header present?
15072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <$ac_header>
15082 if { (ac_try="$ac_cpp conftest.$ac_ext"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15090 grep -v '^ *+' conftest.er1 >conftest.err
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } >/dev/null && {
15095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15098 ac_header_preproc=yes
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_header_preproc=no
15106 rm -f conftest.err conftest.$ac_ext
15107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15108 echo "${ECHO_T}$ac_header_preproc" >&6; }
15110 # So? What about this header?
15111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15117 ac_header_preproc=yes
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15133 ## --------------------------------------------- ##
15134 ## Report this to <http://www.openldap.org/its/> ##
15135 ## --------------------------------------------- ##
15137 ) | sed "s/^/$as_me: WARNING: /" >&2
15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 eval "$as_ac_Header=\$ac_header_preproc"
15147 ac_res=`eval echo '${'$as_ac_Header'}'`
15148 { echo "$as_me:$LINENO: result: $ac_res" >&5
15149 echo "${ECHO_T}$ac_res" >&6; }
15152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15153 cat >>confdefs.h <<_ACEOF
15154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15164 for ac_header in resolv.h
15166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 cat >conftest.$ac_ext <<_ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 $ac_includes_default
15179 #include <netinet/in.h>
15182 #include <$ac_header>
15184 rm -f conftest.$ac_objext
15185 if { (ac_try="$ac_compile"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_compile") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest.$ac_objext; then
15201 eval "$as_ac_Header=yes"
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 eval "$as_ac_Header=no"
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 ac_res=`eval echo '${'$as_ac_Header'}'`
15212 { echo "$as_me:$LINENO: result: $ac_res" >&5
15213 echo "${ECHO_T}$ac_res" >&6; }
15214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15225 for ac_header in netinet/tcp.h
15227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15240 #include <netinet/in.h>
15243 #include <$ac_header>
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest.$ac_objext; then
15262 eval "$as_ac_Header=yes"
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 eval "$as_ac_Header=no"
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 ac_res=`eval echo '${'$as_ac_Header'}'`
15273 { echo "$as_me:$LINENO: result: $ac_res" >&5
15274 echo "${ECHO_T}$ac_res" >&6; }
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276 cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286 for ac_header in sys/ucred.h
15288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 $ac_includes_default
15301 #ifdef HAVE_SYS_PARAM_H
15302 #include <sys/param.h>
15306 #include <$ac_header>
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_compile") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest.$ac_objext; then
15325 eval "$as_ac_Header=yes"
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 eval "$as_ac_Header=no"
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15351 for ac_func in sigaction sigset
15353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15367 #define $ac_func innocuous_$ac_func
15369 /* System header to define __stub macros and hopefully few prototypes,
15370 which can conflict with char $ac_func (); below.
15371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15372 <limits.h> exists even on freestanding compilers. */
15375 # include <limits.h>
15377 # include <assert.h>
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15389 /* The GNU C library defines this for functions which it implements
15390 to always fail with ENOSYS. Some functions are actually named
15391 something starting with __ and the normal name is an alias. */
15392 #if defined __stub_$ac_func || defined __stub___$ac_func
15399 return $ac_func ();
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_link") 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } && {
15418 test -z "$ac_c_werror_flag" ||
15419 test ! -s conftest.err
15420 } && test -s conftest$ac_exeext &&
15421 $as_test_x conftest$ac_exeext; then
15422 eval "$as_ac_var=yes"
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 eval "$as_ac_var=no"
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431 conftest$ac_exeext conftest.$ac_ext
15433 ac_res=`eval echo '${'$as_ac_var'}'`
15434 { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_var'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15447 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15448 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15449 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 ac_check_lib_save_LIBS=$LIBS
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15461 /* Override any GCC internal prototype to avoid an error.
15462 Use char because int might match the return type of a GCC
15463 builtin and then its argument prototype would still apply. */
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_link") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest$ac_exeext &&
15493 $as_test_x conftest$ac_exeext; then
15494 ac_cv_lib_V3_sigset=yes
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_cv_lib_V3_sigset=no
15502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15503 conftest$ac_exeext conftest.$ac_ext
15504 LIBS=$ac_check_lib_save_LIBS
15506 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15507 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15508 if test $ac_cv_lib_V3_sigset = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define HAVE_LIBV3 1
15519 if test $ol_cv_msvc = yes ; then
15523 if test "$ac_cv_header_winsock_h" = yes; then
15524 { echo "$as_me:$LINENO: checking for winsock" >&5
15525 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15526 if test "${ol_cv_winsock+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 for curlib in none ws2_32 wsock32; do
15532 if test $curlib != none ; then
15533 LIBS="$save_LIBS -l$curlib"
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 #include <winsock.h>
15548 select(0,NULL,NULL,NULL,NULL);
15550 gethostname(NULL,0);
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_link") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest$ac_exeext &&
15573 $as_test_x conftest$ac_exeext; then
15574 ol_cv_winsock=$curlib
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15583 conftest$ac_exeext conftest.$ac_ext
15585 test "$ol_cv_winsock" != no && break
15590 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15591 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15593 if test $ol_cv_winsock != no ; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_WINSOCK 1
15599 ac_cv_func_socket=yes
15600 ac_cv_func_select=yes
15601 ac_cv_func_closesocket=yes
15602 ac_cv_func_gethostname=yes
15604 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15605 LIBS="$LIBS -l$ol_cv_winsock"
15608 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_WINSOCK2 1
15619 { echo "$as_me:$LINENO: checking for socket" >&5
15620 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15621 if test "${ac_cv_func_socket+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15632 #define socket innocuous_socket
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char socket (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15640 # include <limits.h>
15642 # include <assert.h>
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15654 /* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657 #if defined __stub_socket || defined __stub___socket
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_link") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest$ac_exeext &&
15686 $as_test_x conftest$ac_exeext; then
15687 ac_cv_func_socket=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_cv_func_socket=no
15695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15696 conftest$ac_exeext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15699 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15700 if test $ac_cv_func_socket = yes; then
15705 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15706 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15707 if test "${ac_cv_lib_socket_main+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 ac_check_lib_save_LIBS=$LIBS
15711 LIBS="-lsocket $LIBS"
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_link") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest$ac_exeext &&
15745 $as_test_x conftest$ac_exeext; then
15746 ac_cv_lib_socket_main=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_cv_lib_socket_main=no
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15756 LIBS=$ac_check_lib_save_LIBS
15758 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15759 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15760 if test $ac_cv_lib_socket_main = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define HAVE_LIBSOCKET 1
15765 LIBS="-lsocket $LIBS"
15770 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15771 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_net_main+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 ac_check_lib_save_LIBS=$LIBS
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_link") 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest$ac_exeext &&
15810 $as_test_x conftest$ac_exeext; then
15811 ac_cv_lib_net_main=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_lib_net_main=no
15819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15820 conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15823 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15824 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15825 if test $ac_cv_lib_net_main = yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define HAVE_LIBNET 1
15835 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15836 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15837 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 ac_check_lib_save_LIBS=$LIBS
15841 LIBS="-lnsl_s $LIBS"
15842 cat >conftest.$ac_ext <<_ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (ac_try="$ac_link"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_link") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } && {
15872 test -z "$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 } && test -s conftest$ac_exeext &&
15875 $as_test_x conftest$ac_exeext; then
15876 ac_cv_lib_nsl_s_main=yes
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 ac_cv_lib_nsl_s_main=no
15884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15885 conftest$ac_exeext conftest.$ac_ext
15886 LIBS=$ac_check_lib_save_LIBS
15888 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15889 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15890 if test $ac_cv_lib_nsl_s_main = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define HAVE_LIBNSL_S 1
15895 LIBS="-lnsl_s $LIBS"
15900 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15901 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_nsl_main+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 ac_check_lib_save_LIBS=$LIBS
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (ac_try="$ac_link"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_link") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest$ac_exeext &&
15940 $as_test_x conftest$ac_exeext; then
15941 ac_cv_lib_nsl_main=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_cv_lib_nsl_main=no
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15953 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15954 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15955 if test $ac_cv_lib_nsl_main = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_LIBNSL 1
15965 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15966 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_inet_socket+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-linet $LIBS"
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15979 /* Override any GCC internal prototype to avoid an error.
15980 Use char because int might match the return type of a GCC
15981 builtin and then its argument prototype would still apply. */
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1 >conftest.err
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest$ac_exeext &&
16011 $as_test_x conftest$ac_exeext; then
16012 ac_cv_lib_inet_socket=yes
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 ac_cv_lib_inet_socket=no
16020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021 conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16024 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16025 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16026 if test $ac_cv_lib_inet_socket = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define HAVE_LIBINET 1
16031 LIBS="-linet $LIBS"
16036 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16037 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16038 if test "${ac_cv_lib_gen_main+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 ac_check_lib_save_LIBS=$LIBS
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (ac_try="$ac_link"
16061 case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_link") 2>conftest.er1
16068 grep -v '^ *+' conftest.er1 >conftest.err
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest$ac_exeext &&
16076 $as_test_x conftest$ac_exeext; then
16077 ac_cv_lib_gen_main=yes
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 ac_cv_lib_gen_main=no
16085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16086 conftest$ac_exeext conftest.$ac_ext
16087 LIBS=$ac_check_lib_save_LIBS
16089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16090 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16091 if test $ac_cv_lib_gen_main = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093 #define HAVE_LIBGEN 1
16104 { echo "$as_me:$LINENO: checking for select" >&5
16105 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16106 if test "${ac_cv_func_select+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define select to an innocuous variant, in case <limits.h> declares select.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define select innocuous_select
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char select (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16125 # include <limits.h>
16127 # include <assert.h>
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_select || defined __stub___select
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 ac_cv_func_select=yes
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 ac_cv_func_select=no
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16184 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16185 if test $ac_cv_func_select = yes; then
16188 { { echo "$as_me:$LINENO: error: select() required." >&5
16189 echo "$as_me: error: select() required." >&2;}
16190 { (exit 1); exit 1; }; }
16194 if test "${ac_cv_header_winsock_h}" != yes; then
16197 for ac_header in sys/select.h sys/socket.h
16199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 ac_res=`eval echo '${'$as_ac_Header'}'`
16207 { echo "$as_me:$LINENO: result: $ac_res" >&5
16208 echo "${ECHO_T}$ac_res" >&6; }
16210 # Is the header compilable?
16211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 $ac_includes_default
16220 #include <$ac_header>
16222 rm -f conftest.$ac_objext
16223 if { (ac_try="$ac_compile"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_compile") 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest.$ac_objext; then
16239 ac_header_compiler=yes
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_header_compiler=no
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16249 echo "${ECHO_T}$ac_header_compiler" >&6; }
16251 # Is the header present?
16252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 #include <$ac_header>
16262 if { (ac_try="$ac_cpp conftest.$ac_ext"
16263 case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } >/dev/null && {
16275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16278 ac_header_preproc=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_header_preproc=no
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16290 # So? What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297 ac_header_preproc=yes
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313 ## --------------------------------------------- ##
16314 ## Report this to <http://www.openldap.org/its/> ##
16315 ## --------------------------------------------- ##
16317 ) | sed "s/^/$as_me: WARNING: /" >&2
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 eval "$as_ac_Header=\$ac_header_preproc"
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16341 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16342 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16343 if test "${ac_cv_func_select_args+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16347 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16348 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #ifdef HAVE_SYS_SELECT_H
16357 # include <sys/select.h>
16359 #ifdef HAVE_SYS_SOCKET_H
16360 # include <sys/socket.h>
16366 extern int select ($ac_arg1,
16367 $ac_arg234, $ac_arg234, $ac_arg234,
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && {
16387 test -z "$ac_c_werror_flag" ||
16388 test ! -s conftest.err
16389 } && test -s conftest.$ac_objext; then
16390 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 # Provide a safe default value.
16403 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16406 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16407 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16408 ac_save_IFS=$IFS; IFS=','
16409 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16413 cat >>confdefs.h <<_ACEOF
16414 #define SELECT_TYPE_ARG1 $1
16418 cat >>confdefs.h <<_ACEOF
16419 #define SELECT_TYPE_ARG234 ($2)
16423 cat >>confdefs.h <<_ACEOF
16424 #define SELECT_TYPE_ARG5 ($3)
16433 for ac_func in poll
16435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 cat >conftest.$ac_ext <<_ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16449 #define $ac_func innocuous_$ac_func
16451 /* System header to define __stub macros and hopefully few prototypes,
16452 which can conflict with char $ac_func (); below.
16453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16454 <limits.h> exists even on freestanding compilers. */
16457 # include <limits.h>
16459 # include <assert.h>
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16471 /* The GNU C library defines this for functions which it implements
16472 to always fail with ENOSYS. Some functions are actually named
16473 something starting with __ and the normal name is an alias. */
16474 #if defined __stub_$ac_func || defined __stub___$ac_func
16481 return $ac_func ();
16486 rm -f conftest.$ac_objext conftest$ac_exeext
16487 if { (ac_try="$ac_link"
16488 case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_link") 2>conftest.er1
16495 grep -v '^ *+' conftest.er1 >conftest.err
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } && {
16500 test -z "$ac_c_werror_flag" ||
16501 test ! -s conftest.err
16502 } && test -s conftest$ac_exeext &&
16503 $as_test_x conftest$ac_exeext; then
16504 eval "$as_ac_var=yes"
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 eval "$as_ac_var=no"
16512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16513 conftest$ac_exeext conftest.$ac_ext
16515 ac_res=`eval echo '${'$as_ac_var'}'`
16516 { echo "$as_me:$LINENO: result: $ac_res" >&5
16517 echo "${ECHO_T}$ac_res" >&6; }
16518 if test `eval echo '${'$as_ac_var'}'` = yes; then
16519 cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16526 if test $ac_cv_func_poll = yes; then
16529 for ac_header in poll.h sys/poll.h
16531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 ac_res=`eval echo '${'$as_ac_Header'}'`
16539 { echo "$as_me:$LINENO: result: $ac_res" >&5
16540 echo "${ECHO_T}$ac_res" >&6; }
16542 # Is the header compilable?
16543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 #include <$ac_header>
16554 rm -f conftest.$ac_objext
16555 if { (ac_try="$ac_compile"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_compile") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && {
16568 test -z "$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 } && test -s conftest.$ac_objext; then
16571 ac_header_compiler=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_header_compiler=no
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 #include <$ac_header>
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev/null && {
16607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16610 ac_header_preproc=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_header_preproc=no
16618 rm -f conftest.err conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16620 echo "${ECHO_T}$ac_header_preproc" >&6; }
16622 # So? What about this header?
16623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16629 ac_header_preproc=yes
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16645 ## --------------------------------------------- ##
16646 ## Report this to <http://www.openldap.org/its/> ##
16647 ## --------------------------------------------- ##
16649 ) | sed "s/^/$as_me: WARNING: /" >&2
16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 eval "$as_ac_Header=\$ac_header_preproc"
16659 ac_res=`eval echo '${'$as_ac_Header'}'`
16660 { echo "$as_me:$LINENO: result: $ac_res" >&5
16661 echo "${ECHO_T}$ac_res" >&6; }
16664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16676 for ac_header in sys/epoll.h
16678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_res=`eval echo '${'$as_ac_Header'}'`
16686 { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16689 # Is the header compilable?
16690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 $ac_includes_default
16699 #include <$ac_header>
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_compile") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest.$ac_objext; then
16718 ac_header_compiler=yes
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 ac_header_compiler=no
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16728 echo "${ECHO_T}$ac_header_compiler" >&6; }
16730 # Is the header present?
16731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16733 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <$ac_header>
16741 if { (ac_try="$ac_cpp conftest.$ac_ext"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } >/dev/null && {
16754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16755 test ! -s conftest.err
16757 ac_header_preproc=yes
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ac_header_preproc=no
16765 rm -f conftest.err conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16767 echo "${ECHO_T}$ac_header_preproc" >&6; }
16769 # So? What about this header?
16770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16776 ac_header_preproc=yes
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16792 ## --------------------------------------------- ##
16793 ## Report this to <http://www.openldap.org/its/> ##
16794 ## --------------------------------------------- ##
16796 ) | sed "s/^/$as_me: WARNING: /" >&2
16799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 eval "$as_ac_Header=\$ac_header_preproc"
16806 ac_res=`eval echo '${'$as_ac_Header'}'`
16807 { echo "$as_me:$LINENO: result: $ac_res" >&5
16808 echo "${ECHO_T}$ac_res" >&6; }
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812 cat >>confdefs.h <<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16820 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16821 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16822 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16823 if test "$cross_compiling" = yes; then
16824 { echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 int main(int argc, char **argv)
16835 int epfd = epoll_create(256);
16836 exit (epfd == -1 ? 1 : 0);
16839 rm -f conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 { echo "$as_me:$LINENO: result: yes" >&5
16860 echo "${ECHO_T}yes" >&6; }
16862 cat >>confdefs.h <<\_ACEOF
16863 #define HAVE_EPOLL 1
16867 echo "$as_me: program exited with status $ac_status" >&5
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ( exit $ac_status )
16872 { echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6; }
16875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16882 for ac_header in sys/devpoll.h
16884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_res=`eval echo '${'$as_ac_Header'}'`
16892 { echo "$as_me:$LINENO: result: $ac_res" >&5
16893 echo "${ECHO_T}$ac_res" >&6; }
16895 # Is the header compilable?
16896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 $ac_includes_default
16905 #include <$ac_header>
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } && {
16921 test -z "$ac_c_werror_flag" ||
16922 test ! -s conftest.err
16923 } && test -s conftest.$ac_objext; then
16924 ac_header_compiler=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_header_compiler=no
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16934 echo "${ECHO_T}$ac_header_compiler" >&6; }
16936 # Is the header present?
16937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 #include <$ac_header>
16947 if { (ac_try="$ac_cpp conftest.$ac_ext"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } >/dev/null && {
16960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16963 ac_header_preproc=yes
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_header_preproc=no
16971 rm -f conftest.err conftest.$ac_ext
16972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16973 echo "${ECHO_T}$ac_header_preproc" >&6; }
16975 # So? What about this header?
16976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16982 ac_header_preproc=yes
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16998 ## --------------------------------------------- ##
16999 ## Report this to <http://www.openldap.org/its/> ##
17000 ## --------------------------------------------- ##
17002 ) | sed "s/^/$as_me: WARNING: /" >&2
17005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 eval "$as_ac_Header=\$ac_header_preproc"
17012 ac_res=`eval echo '${'$as_ac_Header'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17018 cat >>confdefs.h <<_ACEOF
17019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17026 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17027 -a "${ac_cv_header_poll_h}" = yes ; \
17029 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17030 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17031 if test "$cross_compiling" = yes; then
17032 { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17035 cat >conftest.$ac_ext <<_ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 int main(int argc, char **argv)
17043 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17044 exit (devpollfd == -1 ? 1 : 0);
17047 rm -f conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 { echo "$as_me:$LINENO: result: yes" >&5
17068 echo "${ECHO_T}yes" >&6; }
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_DEVPOLL 1
17075 echo "$as_me: program exited with status $ac_status" >&5
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ( exit $ac_status )
17080 { echo "$as_me:$LINENO: result: no" >&5
17081 echo "${ECHO_T}no" >&6; }
17083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17089 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17090 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17091 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17103 #include <sys/types.h>
17106 #include <stdlib.h>
17111 char *c = (char *) *sys_errlist
17116 rm -f conftest.$ac_objext
17117 if { (ac_try="$ac_compile"
17118 case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_compile") 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && {
17130 test -z "$ac_c_werror_flag" ||
17131 test ! -s conftest.err
17132 } && test -s conftest.$ac_objext; then
17133 ol_cv_dcl_sys_errlist=yes
17134 ol_cv_have_sys_errlist=yes
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ol_cv_dcl_sys_errlist=no
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17145 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17147 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17148 if test $ol_cv_dcl_sys_errlist = no ; then
17150 cat >>confdefs.h <<\_ACEOF
17151 #define DECL_SYS_ERRLIST 1
17155 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17156 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17157 if test "${ol_cv_have_sys_errlist+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17171 char *c = (char *) *sys_errlist
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext &&
17193 $as_test_x conftest$ac_exeext; then
17194 ol_cv_have_sys_errlist=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ol_cv_have_sys_errlist=no
17202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17203 conftest$ac_exeext conftest.$ac_ext
17205 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17206 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17208 if test $ol_cv_have_sys_errlist = yes ; then
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_SYS_ERRLIST 1
17217 for ac_func in strerror strerror_r
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233 #define $ac_func innocuous_$ac_func
17235 /* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17241 # include <limits.h>
17243 # include <assert.h>
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17255 /* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17265 return $ac_func ();
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest$ac_exeext &&
17287 $as_test_x conftest$ac_exeext; then
17288 eval "$as_ac_var=yes"
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 eval "$as_ac_var=no"
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17299 ac_res=`eval echo '${'$as_ac_var'}'`
17300 { echo "$as_me:$LINENO: result: $ac_res" >&5
17301 echo "${ECHO_T}$ac_res" >&6; }
17302 if test `eval echo '${'$as_ac_var'}'` = yes; then
17303 cat >>confdefs.h <<_ACEOF
17304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17310 ol_cv_func_strerror_r=no
17311 if test "${ac_cv_func_strerror_r}" = yes ; then
17312 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17313 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17314 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 #include <string.h>
17326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17327 $EGREP "strerror_r" >/dev/null 2>&1; then
17328 ol_decl_strerror_r=yes
17330 ol_decl_strerror_r=no
17334 if test $ol_decl_strerror_r = yes ; then
17335 cat >conftest.$ac_ext <<_ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 #include <string.h>
17345 /* from autoconf 2.59 */
17347 char x = *strerror_r (0, buf, sizeof buf);
17348 char *p = strerror_r (0, buf, sizeof buf);
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 ol_cv_nonposix_strerror_r=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ol_cv_nonposix_strerror_r=no
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 if test "$cross_compiling" = yes; then
17382 ol_cv_nonposix_strerror=no
17384 cat >conftest.$ac_ext <<_ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17394 strerror_r( 1, buf, sizeof buf );
17395 exit( buf[0] == 0 );
17399 rm -f conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_link") 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ol_cv_nonposix_strerror_r=yes
17421 echo "$as_me: program exited with status $ac_status" >&5
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ( exit $ac_status )
17426 ol_cv_nonposix_strerror=no
17428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17435 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17436 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17437 if test $ol_cv_nonposix_strerror_r = yes ; then
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_NONPOSIX_STRERROR_R 1
17445 elif test "${ac_cv_func_strerror}" = no ; then
17446 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17447 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17448 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17460 #include <sys/types.h>
17463 #include <stdlib.h>
17468 char *c = (char *) *sys_errlist
17473 rm -f conftest.$ac_objext
17474 if { (ac_try="$ac_compile"
17475 case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_compile") 2>conftest.er1
17482 grep -v '^ *+' conftest.er1 >conftest.err
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && {
17487 test -z "$ac_c_werror_flag" ||
17488 test ! -s conftest.err
17489 } && test -s conftest.$ac_objext; then
17490 ol_cv_dcl_sys_errlist=yes
17491 ol_cv_have_sys_errlist=yes
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ol_cv_dcl_sys_errlist=no
17499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17501 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17502 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17504 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17505 if test $ol_cv_dcl_sys_errlist = no ; then
17507 cat >>confdefs.h <<\_ACEOF
17508 #define DECL_SYS_ERRLIST 1
17512 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17513 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17514 if test "${ol_cv_have_sys_errlist+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 cat >conftest.$ac_ext <<_ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17528 char *c = (char *) *sys_errlist
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (ac_try="$ac_link"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_link") 2>conftest.er1
17542 grep -v '^ *+' conftest.er1 >conftest.err
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest$ac_exeext &&
17550 $as_test_x conftest$ac_exeext; then
17551 ol_cv_have_sys_errlist=yes
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 ol_cv_have_sys_errlist=no
17559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17560 conftest$ac_exeext conftest.$ac_ext
17562 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17563 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17565 if test $ol_cv_have_sys_errlist = yes ; then
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_SYS_ERRLIST 1
17577 for ac_header in regex.h
17579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17592 #ifdef HAVE_SYS_TYPES_H
17593 #include <sys/types.h>
17597 #include <$ac_header>
17599 rm -f conftest.$ac_objext
17600 if { (ac_try="$ac_compile"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_compile") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest.$ac_objext; then
17616 eval "$as_ac_Header=yes"
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 eval "$as_ac_Header=no"
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 ac_res=`eval echo '${'$as_ac_Header'}'`
17627 { echo "$as_me:$LINENO: result: $ac_res" >&5
17628 echo "${ECHO_T}$ac_res" >&6; }
17629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17630 cat >>confdefs.h <<_ACEOF
17631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17639 if test "$ac_cv_header_regex_h" != yes ; then
17640 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17641 echo "$as_me: error: POSIX regex.h required." >&2;}
17642 { (exit 1); exit 1; }; }
17644 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17645 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17646 if test "${ac_cv_search_regfree+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 ac_func_search_save_LIBS=$LIBS
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17657 /* Override any GCC internal prototype to avoid an error.
17658 Use char because int might match the return type of a GCC
17659 builtin and then its argument prototype would still apply. */
17672 for ac_lib in '' regex gnuregex; do
17673 if test -z "$ac_lib"; then
17674 ac_res="none required"
17677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17679 rm -f conftest.$ac_objext conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_link") 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } && {
17693 test -z "$ac_c_werror_flag" ||
17694 test ! -s conftest.err
17695 } && test -s conftest$ac_exeext &&
17696 $as_test_x conftest$ac_exeext; then
17697 ac_cv_search_regfree=$ac_res
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 if test "${ac_cv_search_regfree+set}" = set; then
17711 if test "${ac_cv_search_regfree+set}" = set; then
17714 ac_cv_search_regfree=no
17716 rm conftest.$ac_ext
17717 LIBS=$ac_func_search_save_LIBS
17719 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17720 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17721 ac_res=$ac_cv_search_regfree
17722 if test "$ac_res" != no; then
17723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17726 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17727 echo "$as_me: error: POSIX regex required." >&2;}
17728 { (exit 1); exit 1; }; }
17733 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17734 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17735 if test "${ol_cv_c_posix_regex+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 if test "$cross_compiling" = yes; then
17740 ol_cv_c_posix_regex=cross
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17749 #include <sys/types.h>
17751 static char *pattern, *string;
17759 if(regcomp(&re, pattern, 0)) {
17763 string = "ALL MATCH";
17765 rc = regexec(&re, string, 0, (void*)0, 0);
17772 rm -f conftest$ac_exeext
17773 if { (ac_try="$ac_link"
17774 case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_link") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17783 { (case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_try") 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ol_cv_c_posix_regex=yes
17794 echo "$as_me: program exited with status $ac_status" >&5
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ( exit $ac_status )
17799 ol_cv_c_posix_regex=no
17801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17807 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17809 if test "$ol_cv_c_posix_regex" = no ; then
17810 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17811 echo "$as_me: error: broken POSIX regex!" >&2;}
17812 { (exit 1); exit 1; }; }
17818 for ac_header in sys/uuid.h
17820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 ac_res=`eval echo '${'$as_ac_Header'}'`
17828 { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17831 # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17834 cat >conftest.$ac_ext <<_ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 $ac_includes_default
17841 #include <$ac_header>
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_header_compiler=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_header_compiler=no
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <$ac_header>
17883 if { (ac_try="$ac_cpp conftest.$ac_ext"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } >/dev/null && {
17896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17899 ac_header_preproc=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_header_preproc=no
17907 rm -f conftest.err conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17911 # So? What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17918 ac_header_preproc=yes
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17934 ## --------------------------------------------- ##
17935 ## Report this to <http://www.openldap.org/its/> ##
17936 ## --------------------------------------------- ##
17938 ) | sed "s/^/$as_me: WARNING: /" >&2
17941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 eval "$as_ac_Header=\$ac_header_preproc"
17948 ac_res=`eval echo '${'$as_ac_Header'}'`
17949 { echo "$as_me:$LINENO: result: $ac_res" >&5
17950 echo "${ECHO_T}$ac_res" >&6; }
17953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17962 if test $ac_cv_header_sys_uuid_h = yes ; then
17964 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17965 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17966 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 ac_func_search_save_LIBS=$LIBS
17970 cat >conftest.$ac_ext <<_ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17977 /* Override any GCC internal prototype to avoid an error.
17978 Use char because int might match the return type of a GCC
17979 builtin and then its argument prototype would still apply. */
17983 char uuid_to_str ();
17987 return uuid_to_str ();
17992 for ac_lib in '' uuid; do
17993 if test -z "$ac_lib"; then
17994 ac_res="none required"
17997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18017 ac_cv_search_uuid_to_str=$ac_res
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18031 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18034 ac_cv_search_uuid_to_str=no
18036 rm conftest.$ac_ext
18037 LIBS=$ac_func_search_save_LIBS
18039 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18040 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18041 ac_res=$ac_cv_search_uuid_to_str
18042 if test "$ac_res" != no; then
18043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18049 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18050 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18051 if test "${ac_cv_search_uuid_create+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 ac_func_search_save_LIBS=$LIBS
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18062 /* Override any GCC internal prototype to avoid an error.
18063 Use char because int might match the return type of a GCC
18064 builtin and then its argument prototype would still apply. */
18068 char uuid_create ();
18072 return uuid_create ();
18077 for ac_lib in '' uuid; do
18078 if test -z "$ac_lib"; then
18079 ac_res="none required"
18082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18084 rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18102 ac_cv_search_uuid_create=$ac_res
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18112 if test "${ac_cv_search_uuid_create+set}" = set; then
18116 if test "${ac_cv_search_uuid_create+set}" = set; then
18119 ac_cv_search_uuid_create=no
18121 rm conftest.$ac_ext
18122 LIBS=$ac_func_search_save_LIBS
18124 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18125 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18126 ac_res=$ac_cv_search_uuid_create
18127 if test "$ac_res" != no; then
18128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18136 if test $have_uuid = yes ; then
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_UUID_TO_STR 1
18143 test "$ac_cv_search_uuid_to_str" = "none required" || \
18144 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18148 if test $have_uuid = no ; then
18150 for ac_header in uuid/uuid.h
18152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 ac_res=`eval echo '${'$as_ac_Header'}'`
18160 { echo "$as_me:$LINENO: result: $ac_res" >&5
18161 echo "${ECHO_T}$ac_res" >&6; }
18163 # Is the header compilable?
18164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172 $ac_includes_default
18173 #include <$ac_header>
18175 rm -f conftest.$ac_objext
18176 if { (ac_try="$ac_compile"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_compile") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest.$ac_objext; then
18192 ac_header_compiler=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_header_compiler=no
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18202 echo "${ECHO_T}$ac_header_compiler" >&6; }
18204 # Is the header present?
18205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18213 #include <$ac_header>
18215 if { (ac_try="$ac_cpp conftest.$ac_ext"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1 >conftest.err
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } >/dev/null && {
18228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18229 test ! -s conftest.err
18231 ac_header_preproc=yes
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18236 ac_header_preproc=no
18239 rm -f conftest.err conftest.$ac_ext
18240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18241 echo "${ECHO_T}$ac_header_preproc" >&6; }
18243 # So? What about this header?
18244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18250 ac_header_preproc=yes
18253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18266 ## --------------------------------------------- ##
18267 ## Report this to <http://www.openldap.org/its/> ##
18268 ## --------------------------------------------- ##
18270 ) | sed "s/^/$as_me: WARNING: /" >&2
18273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 eval "$as_ac_Header=\$ac_header_preproc"
18280 ac_res=`eval echo '${'$as_ac_Header'}'`
18281 { echo "$as_me:$LINENO: result: $ac_res" >&5
18282 echo "${ECHO_T}$ac_res" >&6; }
18285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18294 if test $ac_cv_header_uuid_uuid_h = yes ; then
18296 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18297 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18298 if test "${ac_cv_search_uuid_generate+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 ac_func_search_save_LIBS=$LIBS
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18315 char uuid_generate ();
18319 return uuid_generate ();
18324 for ac_lib in '' uuid; do
18325 if test -z "$ac_lib"; then
18326 ac_res="none required"
18329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
18349 ac_cv_search_uuid_generate=$ac_res
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 \
18359 if test "${ac_cv_search_uuid_generate+set}" = set; then
18363 if test "${ac_cv_search_uuid_generate+set}" = set; then
18366 ac_cv_search_uuid_generate=no
18368 rm conftest.$ac_ext
18369 LIBS=$ac_func_search_save_LIBS
18371 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18372 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18373 ac_res=$ac_cv_search_uuid_generate
18374 if test "$ac_res" != no; then
18375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18381 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18382 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18383 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 ac_func_search_save_LIBS=$LIBS
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18400 char uuid_unparse_lower ();
18404 return uuid_unparse_lower ();
18409 for ac_lib in '' uuid; do
18410 if test -z "$ac_lib"; then
18411 ac_res="none required"
18414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest$ac_exeext &&
18433 $as_test_x conftest$ac_exeext; then
18434 ac_cv_search_uuid_unparse_lower=$ac_res
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18448 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18451 ac_cv_search_uuid_unparse_lower=no
18453 rm conftest.$ac_ext
18454 LIBS=$ac_func_search_save_LIBS
18456 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18457 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18458 ac_res=$ac_cv_search_uuid_unparse_lower
18459 if test "$ac_res" != no; then
18460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18468 if test $have_uuid = yes ; then
18470 cat >>confdefs.h <<\_ACEOF
18471 #define HAVE_UUID_GENERATE 1
18475 test "$ac_cv_search_uuid_generate" = "none required" || \
18476 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18481 if test $have_uuid = no ; then
18482 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18483 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18485 LIBS="$LIBS -lrpcrt4"
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18493 int __stdcall UuidCreate(void *);
18494 int __stdcall UuidToStringA(void *,void **);
18501 UuidToStringA(0,0);
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest$ac_exeext &&
18524 $as_test_x conftest$ac_exeext; then
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18535 if test $need_rpcrt = yes; then
18536 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18539 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18540 echo "${ECHO_T}$need_rpcrt" >&6; }
18543 ol_cv_lib_resolver=no
18544 if test $ol_cv_lib_resolver = no ; then
18545 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18546 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18547 if test "${ol_cv_resolver_none+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 LIBS="$ol_RESOLVER_LIB $LIBS"
18555 cat >conftest.$ac_ext <<_ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h. */
18562 #ifdef HAVE_SYS_TYPES_H
18563 # include <sys/types.h>
18565 #include <netinet/in.h>
18566 #ifdef HAVE_ARPA_NAMESER_H
18567 # include <arpa/nameser.h>
18569 #ifdef HAVE_RESOLV_H
18570 # include <resolv.h>
18578 char *request = NULL;
18579 unsigned char reply[64*1024];
18580 unsigned char host[64*1024];
18584 /* Bind 8/9 interface */
18585 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18587 /* Bind 4 interface */
18591 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18595 /* Bind 8/9 interface */
18597 #elif defined(HFIXEDSZ)
18598 /* Bind 4 interface w/ HFIXEDSZ */
18601 /* Bind 4 interface w/o HFIXEDSZ */
18602 p += sizeof(HEADER);
18604 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext &&
18627 $as_test_x conftest$ac_exeext; then
18628 ol_cv_resolver_none=yes
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ol_cv_resolver_none=no
18636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18637 conftest$ac_exeext conftest.$ac_ext
18642 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18643 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18645 if test $ol_cv_resolver_none = yes ; then
18646 ol_cv_lib_resolver=yes
18650 if test $ol_cv_lib_resolver = no ; then
18651 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18652 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18653 if test "${ol_cv_resolver_resolv+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 ol_RESOLVER_LIB=-lresolv
18659 LIBS="$ol_RESOLVER_LIB $LIBS"
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 #ifdef HAVE_SYS_TYPES_H
18669 # include <sys/types.h>
18671 #include <netinet/in.h>
18672 #ifdef HAVE_ARPA_NAMESER_H
18673 # include <arpa/nameser.h>
18675 #ifdef HAVE_RESOLV_H
18676 # include <resolv.h>
18684 char *request = NULL;
18685 unsigned char reply[64*1024];
18686 unsigned char host[64*1024];
18690 /* Bind 8/9 interface */
18691 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18693 /* Bind 4 interface */
18697 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18701 /* Bind 8/9 interface */
18703 #elif defined(HFIXEDSZ)
18704 /* Bind 4 interface w/ HFIXEDSZ */
18707 /* Bind 4 interface w/o HFIXEDSZ */
18708 p += sizeof(HEADER);
18710 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_link") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest$ac_exeext &&
18733 $as_test_x conftest$ac_exeext; then
18734 ol_cv_resolver_resolv=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ol_cv_resolver_resolv=no
18742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18743 conftest$ac_exeext conftest.$ac_ext
18748 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18749 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18751 if test $ol_cv_resolver_resolv = yes ; then
18752 ol_cv_lib_resolver=-lresolv
18756 if test $ol_cv_lib_resolver = no ; then
18757 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18758 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18759 if test "${ol_cv_resolver_bind+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 ol_RESOLVER_LIB=-lbind
18765 LIBS="$ol_RESOLVER_LIB $LIBS"
18767 cat >conftest.$ac_ext <<_ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18774 #ifdef HAVE_SYS_TYPES_H
18775 # include <sys/types.h>
18777 #include <netinet/in.h>
18778 #ifdef HAVE_ARPA_NAMESER_H
18779 # include <arpa/nameser.h>
18781 #ifdef HAVE_RESOLV_H
18782 # include <resolv.h>
18790 char *request = NULL;
18791 unsigned char reply[64*1024];
18792 unsigned char host[64*1024];
18796 /* Bind 8/9 interface */
18797 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18799 /* Bind 4 interface */
18803 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18807 /* Bind 8/9 interface */
18809 #elif defined(HFIXEDSZ)
18810 /* Bind 4 interface w/ HFIXEDSZ */
18813 /* Bind 4 interface w/o HFIXEDSZ */
18814 p += sizeof(HEADER);
18816 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext &&
18839 $as_test_x conftest$ac_exeext; then
18840 ol_cv_resolver_bind=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ol_cv_resolver_bind=no
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849 conftest$ac_exeext conftest.$ac_ext
18854 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18855 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18857 if test $ol_cv_resolver_bind = yes ; then
18858 ol_cv_lib_resolver=-lbind
18865 if test "$ol_cv_lib_resolver" != no ; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_RES_QUERY 1
18872 if test "$ol_enable_dnssrv" != no ; then
18876 if test "$ol_cv_lib_resolver" != yes ; then
18877 LIBS="$ol_cv_lib_resolver $LIBS"
18881 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18882 if test "$ol_link_dnssrv" = no ; then
18883 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18884 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18885 { (exit 1); exit 1; }; }
18888 ol_enable_dnssrv=no
18892 for ac_func in hstrerror
18894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18908 #define $ac_func innocuous_$ac_func
18910 /* System header to define __stub macros and hopefully few prototypes,
18911 which can conflict with char $ac_func (); below.
18912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18913 <limits.h> exists even on freestanding compilers. */
18916 # include <limits.h>
18918 # include <assert.h>
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18930 /* The GNU C library defines this for functions which it implements
18931 to always fail with ENOSYS. Some functions are actually named
18932 something starting with __ and the normal name is an alias. */
18933 #if defined __stub_$ac_func || defined __stub___$ac_func
18940 return $ac_func ();
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18963 eval "$as_ac_var=yes"
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 eval "$as_ac_var=no"
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18974 ac_res=`eval echo '${'$as_ac_var'}'`
18975 { echo "$as_me:$LINENO: result: $ac_res" >&5
18976 echo "${ECHO_T}$ac_res" >&6; }
18977 if test `eval echo '${'$as_ac_var'}'` = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18990 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006 #define $ac_func innocuous_$ac_func
19008 /* System header to define __stub macros and hopefully few prototypes,
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19014 # include <limits.h>
19016 # include <assert.h>
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19038 return $ac_func ();
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_link") 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } && {
19057 test -z "$ac_c_werror_flag" ||
19058 test ! -s conftest.err
19059 } && test -s conftest$ac_exeext &&
19060 $as_test_x conftest$ac_exeext; then
19061 eval "$as_ac_var=yes"
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 eval "$as_ac_var=no"
19069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19070 conftest$ac_exeext conftest.$ac_ext
19072 ac_res=`eval echo '${'$as_ac_var'}'`
19073 { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19085 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19086 if test $ol_enable_ipv6 = yes ; then
19087 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19088 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19089 { (exit 1); exit 1; }; }
19091 elif test $ol_enable_ipv6 != no ; then
19092 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19093 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19094 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 # include <netinet/in.h>
19106 # ifdef INET6_ADDRSTRLEN
19107 __has_inet6_addrstrlen__;
19111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19112 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19113 ol_cv_inet6_addrstrlen=yes
19115 ol_cv_inet6_addrstrlen=no
19120 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19121 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19124 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19125 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19126 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19137 #include <sys/types.h>
19138 #include <sys/socket.h>
19144 struct sockaddr_storage ss;
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_compile") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest.$ac_objext; then
19167 ol_cv_struct_sockaddr_storage=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ol_cv_struct_sockaddr_storage=no
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19178 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19180 if test $ol_cv_inet6_addrstrlen = yes &&
19181 test $ol_cv_struct_sockaddr_storage = yes ; then
19183 elif test $ol_enable_ipv6 = yes &&
19184 test $ol_cv_inet6_addrstrlen = no ; then
19185 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19186 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19187 { (exit 1); exit 1; }; }
19188 elif test $ol_enable_ipv6 = yes &&
19189 test $ol_cv_struct_sockaddr_storage = no ; then
19190 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19191 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19192 { (exit 1); exit 1; }; }
19196 if test $ol_enable_local != no ; then
19198 for ac_header in sys/un.h
19200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 ac_res=`eval echo '${'$as_ac_Header'}'`
19208 { echo "$as_me:$LINENO: result: $ac_res" >&5
19209 echo "${ECHO_T}$ac_res" >&6; }
19211 # Is the header compilable?
19212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 $ac_includes_default
19221 #include <$ac_header>
19223 rm -f conftest.$ac_objext
19224 if { (ac_try="$ac_compile"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_compile") 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } && {
19237 test -z "$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 } && test -s conftest.$ac_objext; then
19240 ac_header_compiler=yes
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_header_compiler=no
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19250 echo "${ECHO_T}$ac_header_compiler" >&6; }
19252 # Is the header present?
19253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 #include <$ac_header>
19263 if { (ac_try="$ac_cpp conftest.$ac_ext"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } >/dev/null && {
19276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19279 ac_header_preproc=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_preproc=no
19287 rm -f conftest.err conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19289 echo "${ECHO_T}$ac_header_preproc" >&6; }
19291 # So? What about this header?
19292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19298 ac_header_preproc=yes
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19314 ## --------------------------------------------- ##
19315 ## Report this to <http://www.openldap.org/its/> ##
19316 ## --------------------------------------------- ##
19318 ) | sed "s/^/$as_me: WARNING: /" >&2
19321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 eval "$as_ac_Header=\$ac_header_preproc"
19328 ac_res=`eval echo '${'$as_ac_Header'}'`
19329 { echo "$as_me:$LINENO: result: $ac_res" >&5
19330 echo "${ECHO_T}$ac_res" >&6; }
19333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19334 cat >>confdefs.h <<_ACEOF
19335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19343 if test $ol_enable_local = auto ; then
19344 ol_enable_local=$ac_cv_header_sys_un_h
19345 elif test $ac_cv_header_sys_un_h = no ; then
19346 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19347 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19348 { (exit 1); exit 1; }; }
19353 if test $ol_with_tls = yes ; then
19358 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19360 for ac_header in openssl/ssl.h
19362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_res=`eval echo '${'$as_ac_Header'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19373 # Is the header compilable?
19374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 $ac_includes_default
19383 #include <$ac_header>
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } && {
19399 test -z "$ac_c_werror_flag" ||
19400 test ! -s conftest.err
19401 } && test -s conftest.$ac_objext; then
19402 ac_header_compiler=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_header_compiler=no
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19412 echo "${ECHO_T}$ac_header_compiler" >&6; }
19414 # Is the header present?
19415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <$ac_header>
19425 if { (ac_try="$ac_cpp conftest.$ac_ext"
19426 case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } >/dev/null && {
19438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19441 ac_header_preproc=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_header_preproc=no
19449 rm -f conftest.err conftest.$ac_ext
19450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451 echo "${ECHO_T}$ac_header_preproc" >&6; }
19453 # So? What about this header?
19454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19460 ac_header_preproc=yes
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19476 ## --------------------------------------------- ##
19477 ## Report this to <http://www.openldap.org/its/> ##
19478 ## --------------------------------------------- ##
19480 ) | sed "s/^/$as_me: WARNING: /" >&2
19483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 eval "$as_ac_Header=\$ac_header_preproc"
19490 ac_res=`eval echo '${'$as_ac_Header'}'`
19491 { echo "$as_me:$LINENO: result: $ac_res" >&5
19492 echo "${ECHO_T}$ac_res" >&6; }
19495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19505 if test $ac_cv_header_openssl_ssl_h = yes ; then
19506 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19507 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19508 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-lssl -lcrypto $LIBS"
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19520 /* Override any GCC internal prototype to avoid an error.
19521 Use char because int might match the return type of a GCC
19522 builtin and then its argument prototype would still apply. */
19526 char SSL_library_init ();
19530 return SSL_library_init ();
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext &&
19552 $as_test_x conftest$ac_exeext; then
19553 ac_cv_lib_ssl_SSL_library_init=yes
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_cv_lib_ssl_SSL_library_init=no
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562 conftest$ac_exeext conftest.$ac_ext
19563 LIBS=$ac_check_lib_save_LIBS
19565 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19566 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19567 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19575 if test $have_openssl = no ; then
19576 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19577 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19578 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 /* Override any GCC internal prototype to avoid an error.
19591 Use char because int might match the return type of a GCC
19592 builtin and then its argument prototype would still apply. */
19596 char ssl3_accept ();
19600 return ssl3_accept ();
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
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_link") 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); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext &&
19622 $as_test_x conftest$ac_exeext; then
19623 ac_cv_lib_ssl_ssl3_accept=yes
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_cv_lib_ssl_ssl3_accept=no
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19635 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19636 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19637 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19646 if test $have_openssl = yes ; then
19647 ol_with_tls=openssl
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_OPENSSL 1
19656 if test $need_rsaref = yes; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_RSAREF 1
19663 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19665 TLS_LIBS="-lssl -lcrypto"
19668 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19669 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19670 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19681 #ifdef HAVE_OPENSSL_SSL_H
19682 #include <openssl/ssl.h>
19685 /* Require 0.9.7d+ */
19686 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19687 char *__ssl_compat = "0.9.7d";
19691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19692 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19693 ol_cv_ssl_crl_compat=yes
19695 ol_cv_ssl_crl_compat=no
19700 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19701 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19703 if test $ol_cv_ssl_crl_compat = yes ; then
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_OPENSSL_CRL 1
19714 if test $ol_link_tls = no ; then
19715 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19717 for ac_header in gnutls/gnutls.h
19719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 ac_res=`eval echo '${'$as_ac_Header'}'`
19727 { echo "$as_me:$LINENO: result: $ac_res" >&5
19728 echo "${ECHO_T}$ac_res" >&6; }
19730 # Is the header compilable?
19731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 $ac_includes_default
19740 #include <$ac_header>
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_compile") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest.$ac_objext; then
19759 ac_header_compiler=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_header_compiler=no
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 echo "${ECHO_T}$ac_header_compiler" >&6; }
19771 # Is the header present?
19772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19782 if { (ac_try="$ac_cpp conftest.$ac_ext"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev/null && {
19795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19798 ac_header_preproc=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_header_preproc=no
19806 rm -f conftest.err conftest.$ac_ext
19807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19808 echo "${ECHO_T}$ac_header_preproc" >&6; }
19810 # So? What about this header?
19811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19817 ac_header_preproc=yes
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19833 ## --------------------------------------------- ##
19834 ## Report this to <http://www.openldap.org/its/> ##
19835 ## --------------------------------------------- ##
19837 ) | sed "s/^/$as_me: WARNING: /" >&2
19840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 eval "$as_ac_Header=\$ac_header_preproc"
19847 ac_res=`eval echo '${'$as_ac_Header'}'`
19848 { echo "$as_me:$LINENO: result: $ac_res" >&5
19849 echo "${ECHO_T}$ac_res" >&6; }
19852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19863 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19864 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19865 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 ac_check_lib_save_LIBS=$LIBS
19869 LIBS="-lgnutls $LIBS"
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19883 char gnutls_init ();
19887 return gnutls_init ();
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_link") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest$ac_exeext &&
19909 $as_test_x conftest$ac_exeext; then
19910 ac_cv_lib_gnutls_gnutls_init=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_cv_lib_gnutls_gnutls_init=no
19918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919 conftest$ac_exeext conftest.$ac_ext
19920 LIBS=$ac_check_lib_save_LIBS
19922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19923 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19924 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19931 if test $have_gnutls = yes ; then
19935 TLS_LIBS="-lgnutls"
19938 cat >>confdefs.h <<\_ACEOF
19939 #define HAVE_GNUTLS 1
19947 if test $ol_link_tls = no ; then
19948 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19951 for ac_header in nssutil.h
19953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 ac_res=`eval echo '${'$as_ac_Header'}'`
19961 { echo "$as_me:$LINENO: result: $ac_res" >&5
19962 echo "${ECHO_T}$ac_res" >&6; }
19964 # Is the header compilable?
19965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19974 #include <$ac_header>
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest.$ac_objext; then
19993 ac_header_compiler=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_header_compiler=no
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20003 echo "${ECHO_T}$ac_header_compiler" >&6; }
20005 # Is the header present?
20006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 #include <$ac_header>
20016 if { (ac_try="$ac_cpp conftest.$ac_ext"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } >/dev/null && {
20029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20032 ac_header_preproc=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_header_preproc=no
20040 rm -f conftest.err conftest.$ac_ext
20041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20042 echo "${ECHO_T}$ac_header_preproc" >&6; }
20044 # So? What about this header?
20045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20051 ac_header_preproc=yes
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20067 ## --------------------------------------------- ##
20068 ## Report this to <http://www.openldap.org/its/> ##
20069 ## --------------------------------------------- ##
20071 ) | sed "s/^/$as_me: WARNING: /" >&2
20074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 eval "$as_ac_Header=\$ac_header_preproc"
20081 ac_res=`eval echo '${'$as_ac_Header'}'`
20082 { echo "$as_me:$LINENO: result: $ac_res" >&5
20083 echo "${ECHO_T}$ac_res" >&6; }
20086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20095 if test "$ac_cv_header_nssutil_h" = yes ; then
20096 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
20097 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
20098 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lnss3 $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 /* Override any GCC internal prototype to avoid an error.
20111 Use char because int might match the return type of a GCC
20112 builtin and then its argument prototype would still apply. */
20116 char NSS_Initialize ();
20120 return NSS_Initialize ();
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest$ac_exeext &&
20142 $as_test_x conftest$ac_exeext; then
20143 ac_cv_lib_nss3_NSS_Initialize=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_lib_nss3_NSS_Initialize=no
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20155 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20156 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20157 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
20165 if test "$have_moznss" = yes ; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_MOZNSS 1
20173 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20175 { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20176 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20177 { (exit 1); exit 1; }; }
20183 if test $ol_link_tls = yes ; then
20185 cat >>confdefs.h <<\_ACEOF
20190 elif test $ol_with_tls = auto ; then
20191 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20192 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20194 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20195 elif test $ol_with_tls != no ; then
20196 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20197 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20198 { (exit 1); exit 1; }; }
20200 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20201 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20204 if test $ol_enable_lmpasswd != no; then
20205 if test $ol_link_tls != yes ; then
20206 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20207 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20208 { (exit 1); exit 1; }; }
20212 cat >>confdefs.h <<\_ACEOF
20213 #define SLAPD_LMHASH 1
20220 case $ol_with_threads in auto | yes | nt)
20223 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20224 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20225 if test "${ac_cv_func__beginthread+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20234 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20236 #define _beginthread innocuous__beginthread
20238 /* System header to define __stub macros and hopefully few prototypes,
20239 which can conflict with char _beginthread (); below.
20240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20241 <limits.h> exists even on freestanding compilers. */
20244 # include <limits.h>
20246 # include <assert.h>
20249 #undef _beginthread
20251 /* Override any GCC internal prototype to avoid an error.
20252 Use char because int might match the return type of a GCC
20253 builtin and then its argument prototype would still apply. */
20257 char _beginthread ();
20258 /* The GNU C library defines this for functions which it implements
20259 to always fail with ENOSYS. Some functions are actually named
20260 something starting with __ and the normal name is an alias. */
20261 #if defined __stub__beginthread || defined __stub____beginthread
20268 return _beginthread ();
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>conftest.er1
20282 grep -v '^ *+' conftest.er1 >conftest.err
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } && {
20287 test -z "$ac_c_werror_flag" ||
20288 test ! -s conftest.err
20289 } && test -s conftest$ac_exeext &&
20290 $as_test_x conftest$ac_exeext; then
20291 ac_cv_func__beginthread=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_func__beginthread=no
20299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20300 conftest$ac_exeext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20303 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20306 if test $ac_cv_func__beginthread = yes ; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_NT_THREADS 1
20312 ol_cv_nt_threads=yes
20316 if test "$ol_cv_nt_threads" = yes ; then
20318 ol_with_threads=found
20319 ol_with_yielding_select=yes
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_NT_SERVICE_MANAGER 1
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_NT_EVENT_LOG 1
20333 if test $ol_with_threads = nt ; then
20334 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20335 echo "$as_me: error: could not locate NT Threads" >&2;}
20336 { (exit 1); exit 1; }; }
20341 case $ol_with_threads in auto | yes | posix)
20344 for ac_header in pthread.h
20346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20353 ac_res=`eval echo '${'$as_ac_Header'}'`
20354 { echo "$as_me:$LINENO: result: $ac_res" >&5
20355 echo "${ECHO_T}$ac_res" >&6; }
20357 # Is the header compilable?
20358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20360 cat >conftest.$ac_ext <<_ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 $ac_includes_default
20367 #include <$ac_header>
20369 rm -f conftest.$ac_objext
20370 if { (ac_try="$ac_compile"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_compile") 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && {
20383 test -z "$ac_c_werror_flag" ||
20384 test ! -s conftest.err
20385 } && test -s conftest.$ac_objext; then
20386 ac_header_compiler=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_header_compiler=no
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20396 echo "${ECHO_T}$ac_header_compiler" >&6; }
20398 # Is the header present?
20399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 #include <$ac_header>
20409 if { (ac_try="$ac_cpp conftest.$ac_ext"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } >/dev/null && {
20422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20425 ac_header_preproc=yes
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_preproc=no
20433 rm -f conftest.err conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20435 echo "${ECHO_T}$ac_header_preproc" >&6; }
20437 # So? What about this header?
20438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20444 ac_header_preproc=yes
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20460 ## --------------------------------------------- ##
20461 ## Report this to <http://www.openldap.org/its/> ##
20462 ## --------------------------------------------- ##
20464 ) | sed "s/^/$as_me: WARNING: /" >&2
20467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 eval "$as_ac_Header=\$ac_header_preproc"
20474 ac_res=`eval echo '${'$as_ac_Header'}'`
20475 { echo "$as_me:$LINENO: result: $ac_res" >&5
20476 echo "${ECHO_T}$ac_res" >&6; }
20479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20489 if test $ac_cv_header_pthread_h = yes ; then
20490 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20491 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20492 if test "${ol_cv_pthread_version+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20503 # include <pthread.h>
20509 int i = PTHREAD_CREATE_JOINABLE;
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <pthread.h>
20542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20543 $EGREP "pthread_detach" >/dev/null 2>&1; then
20544 ol_cv_pthread_version=10
20546 ol_cv_pthread_version=8
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 # include <pthread.h>
20563 # ifdef PTHREAD_CREATE_UNDETACHED
20568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20569 $EGREP "draft7" >/dev/null 2>&1; then
20570 ol_cv_pthread_version=7
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <pthread.h>
20582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20583 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20584 ol_cv_pthread_version=6
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20594 # include <pthread.h>
20595 #ifdef PTHREAD_MUTEX_INITIALIZER
20600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20601 $EGREP "draft5" >/dev/null 2>&1; then
20602 ol_cv_pthread_version=5
20604 ol_cv_pthread_version=4
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20620 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20623 if test $ol_cv_pthread_version != 0 ; then
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_PTHREADS $ol_cv_pthread_version
20630 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20631 echo "$as_me: error: unknown pthread version" >&2;}
20632 { (exit 1); exit 1; }; }
20635 # consider threads found
20636 ol_with_threads=found
20639 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20640 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20641 if test "${ol_cv_header_linux_threads+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 #include <pthread.h>
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20654 ol_cv_header_linux_threads=yes
20656 ol_cv_header_linux_threads=no
20662 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20663 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20664 if test $ol_cv_header_linux_threads = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_LINUX_THREADS 1
20673 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20674 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20675 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <pthread.h>
20685 #ifdef _POSIX_THREAD_IS_GNU_PTH
20690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20691 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20692 ol_cv_header_gnu_pth_pthread_h=yes
20694 ol_cv_header_gnu_pth_pthread_h=no
20700 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20701 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20704 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20706 for ac_header in sched.h
20708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 ac_res=`eval echo '${'$as_ac_Header'}'`
20716 { echo "$as_me:$LINENO: result: $ac_res" >&5
20717 echo "${ECHO_T}$ac_res" >&6; }
20719 # Is the header compilable?
20720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 $ac_includes_default
20729 #include <$ac_header>
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest.$ac_objext; then
20748 ac_header_compiler=yes
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_header_compiler=no
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20758 echo "${ECHO_T}$ac_header_compiler" >&6; }
20760 # Is the header present?
20761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <$ac_header>
20771 if { (ac_try="$ac_cpp conftest.$ac_ext"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } >/dev/null && {
20784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20787 ac_header_preproc=yes
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20792 ac_header_preproc=no
20795 rm -f conftest.err conftest.$ac_ext
20796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20797 echo "${ECHO_T}$ac_header_preproc" >&6; }
20799 # So? What about this header?
20800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20806 ac_header_preproc=yes
20809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20822 ## --------------------------------------------- ##
20823 ## Report this to <http://www.openldap.org/its/> ##
20824 ## --------------------------------------------- ##
20826 ) | sed "s/^/$as_me: WARNING: /" >&2
20829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 eval "$as_ac_Header=\$ac_header_preproc"
20836 ac_res=`eval echo '${'$as_ac_Header'}'`
20837 { echo "$as_me:$LINENO: result: $ac_res" >&5
20838 echo "${ECHO_T}$ac_res" >&6; }
20841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20853 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20854 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20855 if test "${ol_cv_pthread_create+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 if test "$cross_compiling" = yes; then
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20867 /* pthread test headers */
20868 #include <pthread.h>
20869 #if HAVE_PTHREADS < 7
20873 #define NULL (void*)0
20876 static void *task(p)
20879 return (void *) (p == NULL);
20886 /* pthread test function */
20887 #ifndef PTHREAD_CREATE_DETACHED
20888 #define PTHREAD_CREATE_DETACHED 1
20892 int detach = PTHREAD_CREATE_DETACHED;
20894 #if HAVE_PTHREADS > 4
20895 /* Final pthreads */
20896 pthread_attr_t attr;
20898 status = pthread_attr_init(&attr);
20899 if( status ) return status;
20901 #if HAVE_PTHREADS < 7
20902 status = pthread_attr_setdetachstate(&attr, &detach);
20903 if( status < 0 ) status = errno;
20905 status = pthread_attr_setdetachstate(&attr, detach);
20907 if( status ) return status;
20908 status = pthread_create( &t, &attr, task, NULL );
20909 #if HAVE_PTHREADS < 7
20910 if( status < 0 ) status = errno;
20912 if( status ) return status;
20914 /* Draft 4 pthreads */
20915 status = pthread_create( &t, pthread_attr_default, task, NULL );
20916 if( status ) return errno;
20918 /* give thread a chance to complete */
20919 /* it should remain joinable and hence detachable */
20922 status = pthread_detach( &t );
20923 if( status ) return errno;
20926 #ifdef HAVE_LINUX_THREADS
20927 pthread_kill_other_threads_np();
20936 rm -f conftest.$ac_objext conftest$ac_exeext
20937 if { (ac_try="$ac_link"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_link") 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } && {
20950 test -z "$ac_c_werror_flag" ||
20951 test ! -s conftest.err
20952 } && test -s conftest$ac_exeext &&
20953 $as_test_x conftest$ac_exeext; then
20954 ol_cv_pthread_create=yes
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ol_cv_pthread_create=no
20962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20963 conftest$ac_exeext conftest.$ac_ext
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20972 /* pthread test headers */
20973 #include <pthread.h>
20974 #if HAVE_PTHREADS < 7
20978 #define NULL (void*)0
20981 static void *task(p)
20984 return (void *) (p == NULL);
20988 int main(argc, argv)
20993 /* pthread test function */
20994 #ifndef PTHREAD_CREATE_DETACHED
20995 #define PTHREAD_CREATE_DETACHED 1
20999 int detach = PTHREAD_CREATE_DETACHED;
21001 #if HAVE_PTHREADS > 4
21002 /* Final pthreads */
21003 pthread_attr_t attr;
21005 status = pthread_attr_init(&attr);
21006 if( status ) return status;
21008 #if HAVE_PTHREADS < 7
21009 status = pthread_attr_setdetachstate(&attr, &detach);
21010 if( status < 0 ) status = errno;
21012 status = pthread_attr_setdetachstate(&attr, detach);
21014 if( status ) return status;
21015 status = pthread_create( &t, &attr, task, NULL );
21016 #if HAVE_PTHREADS < 7
21017 if( status < 0 ) status = errno;
21019 if( status ) return status;
21021 /* Draft 4 pthreads */
21022 status = pthread_create( &t, pthread_attr_default, task, NULL );
21023 if( status ) return errno;
21025 /* give thread a chance to complete */
21026 /* it should remain joinable and hence detachable */
21029 status = pthread_detach( &t );
21030 if( status ) return errno;
21033 #ifdef HAVE_LINUX_THREADS
21034 pthread_kill_other_threads_np();
21042 rm -f conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_link") 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21053 { (case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_try") 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ol_cv_pthread_create=yes
21064 echo "$as_me: program exited with status $ac_status" >&5
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ( exit $ac_status )
21069 ol_cv_pthread_create=no
21071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21076 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21077 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21079 if test $ol_cv_pthread_create != no ; then
21080 ol_link_threads=posix
21081 ol_link_pthreads=""
21084 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21085 if test "$ol_link_threads" = no ; then
21087 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21088 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21089 if test "${ol_cv_pthread_kthread+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 LIBS="-kthread $LIBS"
21097 if test "$cross_compiling" = yes; then
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21105 /* pthread test headers */
21106 #include <pthread.h>
21107 #if HAVE_PTHREADS < 7
21111 #define NULL (void*)0
21114 static void *task(p)
21117 return (void *) (p == NULL);
21124 /* pthread test function */
21125 #ifndef PTHREAD_CREATE_DETACHED
21126 #define PTHREAD_CREATE_DETACHED 1
21130 int detach = PTHREAD_CREATE_DETACHED;
21132 #if HAVE_PTHREADS > 4
21133 /* Final pthreads */
21134 pthread_attr_t attr;
21136 status = pthread_attr_init(&attr);
21137 if( status ) return status;
21139 #if HAVE_PTHREADS < 7
21140 status = pthread_attr_setdetachstate(&attr, &detach);
21141 if( status < 0 ) status = errno;
21143 status = pthread_attr_setdetachstate(&attr, detach);
21145 if( status ) return status;
21146 status = pthread_create( &t, &attr, task, NULL );
21147 #if HAVE_PTHREADS < 7
21148 if( status < 0 ) status = errno;
21150 if( status ) return status;
21152 /* Draft 4 pthreads */
21153 status = pthread_create( &t, pthread_attr_default, task, NULL );
21154 if( status ) return errno;
21156 /* give thread a chance to complete */
21157 /* it should remain joinable and hence detachable */
21160 status = pthread_detach( &t );
21161 if( status ) return errno;
21164 #ifdef HAVE_LINUX_THREADS
21165 pthread_kill_other_threads_np();
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest$ac_exeext &&
21191 $as_test_x conftest$ac_exeext; then
21192 ol_cv_pthread_kthread=yes
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ol_cv_pthread_kthread=no
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201 conftest$ac_exeext conftest.$ac_ext
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21210 /* pthread test headers */
21211 #include <pthread.h>
21212 #if HAVE_PTHREADS < 7
21216 #define NULL (void*)0
21219 static void *task(p)
21222 return (void *) (p == NULL);
21226 int main(argc, argv)
21231 /* pthread test function */
21232 #ifndef PTHREAD_CREATE_DETACHED
21233 #define PTHREAD_CREATE_DETACHED 1
21237 int detach = PTHREAD_CREATE_DETACHED;
21239 #if HAVE_PTHREADS > 4
21240 /* Final pthreads */
21241 pthread_attr_t attr;
21243 status = pthread_attr_init(&attr);
21244 if( status ) return status;
21246 #if HAVE_PTHREADS < 7
21247 status = pthread_attr_setdetachstate(&attr, &detach);
21248 if( status < 0 ) status = errno;
21250 status = pthread_attr_setdetachstate(&attr, detach);
21252 if( status ) return status;
21253 status = pthread_create( &t, &attr, task, NULL );
21254 #if HAVE_PTHREADS < 7
21255 if( status < 0 ) status = errno;
21257 if( status ) return status;
21259 /* Draft 4 pthreads */
21260 status = pthread_create( &t, pthread_attr_default, task, NULL );
21261 if( status ) return errno;
21263 /* give thread a chance to complete */
21264 /* it should remain joinable and hence detachable */
21267 status = pthread_detach( &t );
21268 if( status ) return errno;
21271 #ifdef HAVE_LINUX_THREADS
21272 pthread_kill_other_threads_np();
21280 rm -f conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_link") 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21291 { (case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_try") 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ol_cv_pthread_kthread=yes
21302 echo "$as_me: program exited with status $ac_status" >&5
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ( exit $ac_status )
21307 ol_cv_pthread_kthread=no
21309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21318 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21319 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21321 if test $ol_cv_pthread_kthread = yes ; then
21322 ol_link_pthreads="-kthread"
21323 ol_link_threads=posix
21327 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21328 if test "$ol_link_threads" = no ; then
21330 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21331 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21332 if test "${ol_cv_pthread_pthread+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 LIBS="-pthread $LIBS"
21340 if test "$cross_compiling" = yes; then
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21348 /* pthread test headers */
21349 #include <pthread.h>
21350 #if HAVE_PTHREADS < 7
21354 #define NULL (void*)0
21357 static void *task(p)
21360 return (void *) (p == NULL);
21367 /* pthread test function */
21368 #ifndef PTHREAD_CREATE_DETACHED
21369 #define PTHREAD_CREATE_DETACHED 1
21373 int detach = PTHREAD_CREATE_DETACHED;
21375 #if HAVE_PTHREADS > 4
21376 /* Final pthreads */
21377 pthread_attr_t attr;
21379 status = pthread_attr_init(&attr);
21380 if( status ) return status;
21382 #if HAVE_PTHREADS < 7
21383 status = pthread_attr_setdetachstate(&attr, &detach);
21384 if( status < 0 ) status = errno;
21386 status = pthread_attr_setdetachstate(&attr, detach);
21388 if( status ) return status;
21389 status = pthread_create( &t, &attr, task, NULL );
21390 #if HAVE_PTHREADS < 7
21391 if( status < 0 ) status = errno;
21393 if( status ) return status;
21395 /* Draft 4 pthreads */
21396 status = pthread_create( &t, pthread_attr_default, task, NULL );
21397 if( status ) return errno;
21399 /* give thread a chance to complete */
21400 /* it should remain joinable and hence detachable */
21403 status = pthread_detach( &t );
21404 if( status ) return errno;
21407 #ifdef HAVE_LINUX_THREADS
21408 pthread_kill_other_threads_np();
21417 rm -f conftest.$ac_objext conftest$ac_exeext
21418 if { (ac_try="$ac_link"
21419 case "(($ac_try" in
21420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421 *) ac_try_echo=$ac_try;;
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_link") 2>conftest.er1
21426 grep -v '^ *+' conftest.er1 >conftest.err
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } && {
21431 test -z "$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 } && test -s conftest$ac_exeext &&
21434 $as_test_x conftest$ac_exeext; then
21435 ol_cv_pthread_pthread=yes
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ol_cv_pthread_pthread=no
21443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444 conftest$ac_exeext conftest.$ac_ext
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21453 /* pthread test headers */
21454 #include <pthread.h>
21455 #if HAVE_PTHREADS < 7
21459 #define NULL (void*)0
21462 static void *task(p)
21465 return (void *) (p == NULL);
21469 int main(argc, argv)
21474 /* pthread test function */
21475 #ifndef PTHREAD_CREATE_DETACHED
21476 #define PTHREAD_CREATE_DETACHED 1
21480 int detach = PTHREAD_CREATE_DETACHED;
21482 #if HAVE_PTHREADS > 4
21483 /* Final pthreads */
21484 pthread_attr_t attr;
21486 status = pthread_attr_init(&attr);
21487 if( status ) return status;
21489 #if HAVE_PTHREADS < 7
21490 status = pthread_attr_setdetachstate(&attr, &detach);
21491 if( status < 0 ) status = errno;
21493 status = pthread_attr_setdetachstate(&attr, detach);
21495 if( status ) return status;
21496 status = pthread_create( &t, &attr, task, NULL );
21497 #if HAVE_PTHREADS < 7
21498 if( status < 0 ) status = errno;
21500 if( status ) return status;
21502 /* Draft 4 pthreads */
21503 status = pthread_create( &t, pthread_attr_default, task, NULL );
21504 if( status ) return errno;
21506 /* give thread a chance to complete */
21507 /* it should remain joinable and hence detachable */
21510 status = pthread_detach( &t );
21511 if( status ) return errno;
21514 #ifdef HAVE_LINUX_THREADS
21515 pthread_kill_other_threads_np();
21523 rm -f conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_link") 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21534 { (case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_try") 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ol_cv_pthread_pthread=yes
21545 echo "$as_me: program exited with status $ac_status" >&5
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 ( exit $ac_status )
21550 ol_cv_pthread_pthread=no
21552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21561 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21562 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21564 if test $ol_cv_pthread_pthread = yes ; then
21565 ol_link_pthreads="-pthread"
21566 ol_link_threads=posix
21570 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21571 if test "$ol_link_threads" = no ; then
21573 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21574 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21575 if test "${ol_cv_pthread_pthreads+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 LIBS="-pthreads $LIBS"
21583 if test "$cross_compiling" = yes; then
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21591 /* pthread test headers */
21592 #include <pthread.h>
21593 #if HAVE_PTHREADS < 7
21597 #define NULL (void*)0
21600 static void *task(p)
21603 return (void *) (p == NULL);
21610 /* pthread test function */
21611 #ifndef PTHREAD_CREATE_DETACHED
21612 #define PTHREAD_CREATE_DETACHED 1
21616 int detach = PTHREAD_CREATE_DETACHED;
21618 #if HAVE_PTHREADS > 4
21619 /* Final pthreads */
21620 pthread_attr_t attr;
21622 status = pthread_attr_init(&attr);
21623 if( status ) return status;
21625 #if HAVE_PTHREADS < 7
21626 status = pthread_attr_setdetachstate(&attr, &detach);
21627 if( status < 0 ) status = errno;
21629 status = pthread_attr_setdetachstate(&attr, detach);
21631 if( status ) return status;
21632 status = pthread_create( &t, &attr, task, NULL );
21633 #if HAVE_PTHREADS < 7
21634 if( status < 0 ) status = errno;
21636 if( status ) return status;
21638 /* Draft 4 pthreads */
21639 status = pthread_create( &t, pthread_attr_default, task, NULL );
21640 if( status ) return errno;
21642 /* give thread a chance to complete */
21643 /* it should remain joinable and hence detachable */
21646 status = pthread_detach( &t );
21647 if( status ) return errno;
21650 #ifdef HAVE_LINUX_THREADS
21651 pthread_kill_other_threads_np();
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest$ac_exeext &&
21677 $as_test_x conftest$ac_exeext; then
21678 ol_cv_pthread_pthreads=yes
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ol_cv_pthread_pthreads=no
21686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21687 conftest$ac_exeext conftest.$ac_ext
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21696 /* pthread test headers */
21697 #include <pthread.h>
21698 #if HAVE_PTHREADS < 7
21702 #define NULL (void*)0
21705 static void *task(p)
21708 return (void *) (p == NULL);
21712 int main(argc, argv)
21717 /* pthread test function */
21718 #ifndef PTHREAD_CREATE_DETACHED
21719 #define PTHREAD_CREATE_DETACHED 1
21723 int detach = PTHREAD_CREATE_DETACHED;
21725 #if HAVE_PTHREADS > 4
21726 /* Final pthreads */
21727 pthread_attr_t attr;
21729 status = pthread_attr_init(&attr);
21730 if( status ) return status;
21732 #if HAVE_PTHREADS < 7
21733 status = pthread_attr_setdetachstate(&attr, &detach);
21734 if( status < 0 ) status = errno;
21736 status = pthread_attr_setdetachstate(&attr, detach);
21738 if( status ) return status;
21739 status = pthread_create( &t, &attr, task, NULL );
21740 #if HAVE_PTHREADS < 7
21741 if( status < 0 ) status = errno;
21743 if( status ) return status;
21745 /* Draft 4 pthreads */
21746 status = pthread_create( &t, pthread_attr_default, task, NULL );
21747 if( status ) return errno;
21749 /* give thread a chance to complete */
21750 /* it should remain joinable and hence detachable */
21753 status = pthread_detach( &t );
21754 if( status ) return errno;
21757 #ifdef HAVE_LINUX_THREADS
21758 pthread_kill_other_threads_np();
21766 rm -f conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ol_cv_pthread_pthreads=yes
21788 echo "$as_me: program exited with status $ac_status" >&5
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ( exit $ac_status )
21793 ol_cv_pthread_pthreads=no
21795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21804 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21805 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21807 if test $ol_cv_pthread_pthreads = yes ; then
21808 ol_link_pthreads="-pthreads"
21809 ol_link_threads=posix
21813 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21814 if test "$ol_link_threads" = no ; then
21816 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21817 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21818 if test "${ol_cv_pthread_mthreads+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 LIBS="-mthreads $LIBS"
21826 if test "$cross_compiling" = yes; then
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21834 /* pthread test headers */
21835 #include <pthread.h>
21836 #if HAVE_PTHREADS < 7
21840 #define NULL (void*)0
21843 static void *task(p)
21846 return (void *) (p == NULL);
21853 /* pthread test function */
21854 #ifndef PTHREAD_CREATE_DETACHED
21855 #define PTHREAD_CREATE_DETACHED 1
21859 int detach = PTHREAD_CREATE_DETACHED;
21861 #if HAVE_PTHREADS > 4
21862 /* Final pthreads */
21863 pthread_attr_t attr;
21865 status = pthread_attr_init(&attr);
21866 if( status ) return status;
21868 #if HAVE_PTHREADS < 7
21869 status = pthread_attr_setdetachstate(&attr, &detach);
21870 if( status < 0 ) status = errno;
21872 status = pthread_attr_setdetachstate(&attr, detach);
21874 if( status ) return status;
21875 status = pthread_create( &t, &attr, task, NULL );
21876 #if HAVE_PTHREADS < 7
21877 if( status < 0 ) status = errno;
21879 if( status ) return status;
21881 /* Draft 4 pthreads */
21882 status = pthread_create( &t, pthread_attr_default, task, NULL );
21883 if( status ) return errno;
21885 /* give thread a chance to complete */
21886 /* it should remain joinable and hence detachable */
21889 status = pthread_detach( &t );
21890 if( status ) return errno;
21893 #ifdef HAVE_LINUX_THREADS
21894 pthread_kill_other_threads_np();
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_link") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest$ac_exeext &&
21920 $as_test_x conftest$ac_exeext; then
21921 ol_cv_pthread_mthreads=yes
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ol_cv_pthread_mthreads=no
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 /* pthread test headers */
21940 #include <pthread.h>
21941 #if HAVE_PTHREADS < 7
21945 #define NULL (void*)0
21948 static void *task(p)
21951 return (void *) (p == NULL);
21955 int main(argc, argv)
21960 /* pthread test function */
21961 #ifndef PTHREAD_CREATE_DETACHED
21962 #define PTHREAD_CREATE_DETACHED 1
21966 int detach = PTHREAD_CREATE_DETACHED;
21968 #if HAVE_PTHREADS > 4
21969 /* Final pthreads */
21970 pthread_attr_t attr;
21972 status = pthread_attr_init(&attr);
21973 if( status ) return status;
21975 #if HAVE_PTHREADS < 7
21976 status = pthread_attr_setdetachstate(&attr, &detach);
21977 if( status < 0 ) status = errno;
21979 status = pthread_attr_setdetachstate(&attr, detach);
21981 if( status ) return status;
21982 status = pthread_create( &t, &attr, task, NULL );
21983 #if HAVE_PTHREADS < 7
21984 if( status < 0 ) status = errno;
21986 if( status ) return status;
21988 /* Draft 4 pthreads */
21989 status = pthread_create( &t, pthread_attr_default, task, NULL );
21990 if( status ) return errno;
21992 /* give thread a chance to complete */
21993 /* it should remain joinable and hence detachable */
21996 status = pthread_detach( &t );
21997 if( status ) return errno;
22000 #ifdef HAVE_LINUX_THREADS
22001 pthread_kill_other_threads_np();
22009 rm -f conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_link") 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22020 { (case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_try") 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ol_cv_pthread_mthreads=yes
22031 echo "$as_me: program exited with status $ac_status" >&5
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ( exit $ac_status )
22036 ol_cv_pthread_mthreads=no
22038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22047 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22048 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22050 if test $ol_cv_pthread_mthreads = yes ; then
22051 ol_link_pthreads="-mthreads"
22052 ol_link_threads=posix
22056 # Pthread try link: -thread (ol_cv_pthread_thread)
22057 if test "$ol_link_threads" = no ; then
22059 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22060 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22061 if test "${ol_cv_pthread_thread+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 LIBS="-thread $LIBS"
22069 if test "$cross_compiling" = yes; then
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 /* pthread test headers */
22078 #include <pthread.h>
22079 #if HAVE_PTHREADS < 7
22083 #define NULL (void*)0
22086 static void *task(p)
22089 return (void *) (p == NULL);
22096 /* pthread test function */
22097 #ifndef PTHREAD_CREATE_DETACHED
22098 #define PTHREAD_CREATE_DETACHED 1
22102 int detach = PTHREAD_CREATE_DETACHED;
22104 #if HAVE_PTHREADS > 4
22105 /* Final pthreads */
22106 pthread_attr_t attr;
22108 status = pthread_attr_init(&attr);
22109 if( status ) return status;
22111 #if HAVE_PTHREADS < 7
22112 status = pthread_attr_setdetachstate(&attr, &detach);
22113 if( status < 0 ) status = errno;
22115 status = pthread_attr_setdetachstate(&attr, detach);
22117 if( status ) return status;
22118 status = pthread_create( &t, &attr, task, NULL );
22119 #if HAVE_PTHREADS < 7
22120 if( status < 0 ) status = errno;
22122 if( status ) return status;
22124 /* Draft 4 pthreads */
22125 status = pthread_create( &t, pthread_attr_default, task, NULL );
22126 if( status ) return errno;
22128 /* give thread a chance to complete */
22129 /* it should remain joinable and hence detachable */
22132 status = pthread_detach( &t );
22133 if( status ) return errno;
22136 #ifdef HAVE_LINUX_THREADS
22137 pthread_kill_other_threads_np();
22146 rm -f conftest.$ac_objext conftest$ac_exeext
22147 if { (ac_try="$ac_link"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_link") 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest$ac_exeext &&
22163 $as_test_x conftest$ac_exeext; then
22164 ol_cv_pthread_thread=yes
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ol_cv_pthread_thread=no
22172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22173 conftest$ac_exeext conftest.$ac_ext
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22182 /* pthread test headers */
22183 #include <pthread.h>
22184 #if HAVE_PTHREADS < 7
22188 #define NULL (void*)0
22191 static void *task(p)
22194 return (void *) (p == NULL);
22198 int main(argc, argv)
22203 /* pthread test function */
22204 #ifndef PTHREAD_CREATE_DETACHED
22205 #define PTHREAD_CREATE_DETACHED 1
22209 int detach = PTHREAD_CREATE_DETACHED;
22211 #if HAVE_PTHREADS > 4
22212 /* Final pthreads */
22213 pthread_attr_t attr;
22215 status = pthread_attr_init(&attr);
22216 if( status ) return status;
22218 #if HAVE_PTHREADS < 7
22219 status = pthread_attr_setdetachstate(&attr, &detach);
22220 if( status < 0 ) status = errno;
22222 status = pthread_attr_setdetachstate(&attr, detach);
22224 if( status ) return status;
22225 status = pthread_create( &t, &attr, task, NULL );
22226 #if HAVE_PTHREADS < 7
22227 if( status < 0 ) status = errno;
22229 if( status ) return status;
22231 /* Draft 4 pthreads */
22232 status = pthread_create( &t, pthread_attr_default, task, NULL );
22233 if( status ) return errno;
22235 /* give thread a chance to complete */
22236 /* it should remain joinable and hence detachable */
22239 status = pthread_detach( &t );
22240 if( status ) return errno;
22243 #ifdef HAVE_LINUX_THREADS
22244 pthread_kill_other_threads_np();
22252 rm -f conftest$ac_exeext
22253 if { (ac_try="$ac_link"
22254 case "(($ac_try" in
22255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256 *) ac_try_echo=$ac_try;;
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259 (eval "$ac_link") 2>&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ol_cv_pthread_thread=yes
22274 echo "$as_me: program exited with status $ac_status" >&5
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ( exit $ac_status )
22279 ol_cv_pthread_thread=no
22281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22290 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22291 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22293 if test $ol_cv_pthread_thread = yes ; then
22294 ol_link_pthreads="-thread"
22295 ol_link_threads=posix
22300 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22301 if test "$ol_link_threads" = no ; then
22302 # try -lpthread -lmach -lexc -lc_r
22303 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22304 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22305 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22313 if test "$cross_compiling" = yes; then
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22321 /* pthread test headers */
22322 #include <pthread.h>
22323 #if HAVE_PTHREADS < 7
22327 #define NULL (void*)0
22330 static void *task(p)
22333 return (void *) (p == NULL);
22340 /* pthread test function */
22341 #ifndef PTHREAD_CREATE_DETACHED
22342 #define PTHREAD_CREATE_DETACHED 1
22346 int detach = PTHREAD_CREATE_DETACHED;
22348 #if HAVE_PTHREADS > 4
22349 /* Final pthreads */
22350 pthread_attr_t attr;
22352 status = pthread_attr_init(&attr);
22353 if( status ) return status;
22355 #if HAVE_PTHREADS < 7
22356 status = pthread_attr_setdetachstate(&attr, &detach);
22357 if( status < 0 ) status = errno;
22359 status = pthread_attr_setdetachstate(&attr, detach);
22361 if( status ) return status;
22362 status = pthread_create( &t, &attr, task, NULL );
22363 #if HAVE_PTHREADS < 7
22364 if( status < 0 ) status = errno;
22366 if( status ) return status;
22368 /* Draft 4 pthreads */
22369 status = pthread_create( &t, pthread_attr_default, task, NULL );
22370 if( status ) return errno;
22372 /* give thread a chance to complete */
22373 /* it should remain joinable and hence detachable */
22376 status = pthread_detach( &t );
22377 if( status ) return errno;
22380 #ifdef HAVE_LINUX_THREADS
22381 pthread_kill_other_threads_np();
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext &&
22407 $as_test_x conftest$ac_exeext; then
22408 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22417 conftest$ac_exeext conftest.$ac_ext
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22426 /* pthread test headers */
22427 #include <pthread.h>
22428 #if HAVE_PTHREADS < 7
22432 #define NULL (void*)0
22435 static void *task(p)
22438 return (void *) (p == NULL);
22442 int main(argc, argv)
22447 /* pthread test function */
22448 #ifndef PTHREAD_CREATE_DETACHED
22449 #define PTHREAD_CREATE_DETACHED 1
22453 int detach = PTHREAD_CREATE_DETACHED;
22455 #if HAVE_PTHREADS > 4
22456 /* Final pthreads */
22457 pthread_attr_t attr;
22459 status = pthread_attr_init(&attr);
22460 if( status ) return status;
22462 #if HAVE_PTHREADS < 7
22463 status = pthread_attr_setdetachstate(&attr, &detach);
22464 if( status < 0 ) status = errno;
22466 status = pthread_attr_setdetachstate(&attr, detach);
22468 if( status ) return status;
22469 status = pthread_create( &t, &attr, task, NULL );
22470 #if HAVE_PTHREADS < 7
22471 if( status < 0 ) status = errno;
22473 if( status ) return status;
22475 /* Draft 4 pthreads */
22476 status = pthread_create( &t, pthread_attr_default, task, NULL );
22477 if( status ) return errno;
22479 /* give thread a chance to complete */
22480 /* it should remain joinable and hence detachable */
22483 status = pthread_detach( &t );
22484 if( status ) return errno;
22487 #ifdef HAVE_LINUX_THREADS
22488 pthread_kill_other_threads_np();
22496 rm -f conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_link") 2>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22518 echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22522 ( exit $ac_status )
22523 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22535 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22537 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22538 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22539 ol_link_threads=posix
22543 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22544 if test "$ol_link_threads" = no ; then
22545 # try -lpthread -lmach -lexc
22546 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22547 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22548 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 LIBS="-lpthread -lmach -lexc $LIBS"
22556 if test "$cross_compiling" = yes; then
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22564 /* pthread test headers */
22565 #include <pthread.h>
22566 #if HAVE_PTHREADS < 7
22570 #define NULL (void*)0
22573 static void *task(p)
22576 return (void *) (p == NULL);
22583 /* pthread test function */
22584 #ifndef PTHREAD_CREATE_DETACHED
22585 #define PTHREAD_CREATE_DETACHED 1
22589 int detach = PTHREAD_CREATE_DETACHED;
22591 #if HAVE_PTHREADS > 4
22592 /* Final pthreads */
22593 pthread_attr_t attr;
22595 status = pthread_attr_init(&attr);
22596 if( status ) return status;
22598 #if HAVE_PTHREADS < 7
22599 status = pthread_attr_setdetachstate(&attr, &detach);
22600 if( status < 0 ) status = errno;
22602 status = pthread_attr_setdetachstate(&attr, detach);
22604 if( status ) return status;
22605 status = pthread_create( &t, &attr, task, NULL );
22606 #if HAVE_PTHREADS < 7
22607 if( status < 0 ) status = errno;
22609 if( status ) return status;
22611 /* Draft 4 pthreads */
22612 status = pthread_create( &t, pthread_attr_default, task, NULL );
22613 if( status ) return errno;
22615 /* give thread a chance to complete */
22616 /* it should remain joinable and hence detachable */
22619 status = pthread_detach( &t );
22620 if( status ) return errno;
22623 #ifdef HAVE_LINUX_THREADS
22624 pthread_kill_other_threads_np();
22633 rm -f conftest.$ac_objext conftest$ac_exeext
22634 if { (ac_try="$ac_link"
22635 case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_link") 2>conftest.er1
22642 grep -v '^ *+' conftest.er1 >conftest.err
22644 cat conftest.err >&5
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } && {
22647 test -z "$ac_c_werror_flag" ||
22648 test ! -s conftest.err
22649 } && test -s conftest$ac_exeext &&
22650 $as_test_x conftest$ac_exeext; then
22651 ol_cv_pthread_lpthread_lmach_lexc=yes
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ol_cv_pthread_lpthread_lmach_lexc=no
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660 conftest$ac_exeext conftest.$ac_ext
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22669 /* pthread test headers */
22670 #include <pthread.h>
22671 #if HAVE_PTHREADS < 7
22675 #define NULL (void*)0
22678 static void *task(p)
22681 return (void *) (p == NULL);
22685 int main(argc, argv)
22690 /* pthread test function */
22691 #ifndef PTHREAD_CREATE_DETACHED
22692 #define PTHREAD_CREATE_DETACHED 1
22696 int detach = PTHREAD_CREATE_DETACHED;
22698 #if HAVE_PTHREADS > 4
22699 /* Final pthreads */
22700 pthread_attr_t attr;
22702 status = pthread_attr_init(&attr);
22703 if( status ) return status;
22705 #if HAVE_PTHREADS < 7
22706 status = pthread_attr_setdetachstate(&attr, &detach);
22707 if( status < 0 ) status = errno;
22709 status = pthread_attr_setdetachstate(&attr, detach);
22711 if( status ) return status;
22712 status = pthread_create( &t, &attr, task, NULL );
22713 #if HAVE_PTHREADS < 7
22714 if( status < 0 ) status = errno;
22716 if( status ) return status;
22718 /* Draft 4 pthreads */
22719 status = pthread_create( &t, pthread_attr_default, task, NULL );
22720 if( status ) return errno;
22722 /* give thread a chance to complete */
22723 /* it should remain joinable and hence detachable */
22726 status = pthread_detach( &t );
22727 if( status ) return errno;
22730 #ifdef HAVE_LINUX_THREADS
22731 pthread_kill_other_threads_np();
22739 rm -f conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_link") 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750 { (case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_try") 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 ol_cv_pthread_lpthread_lmach_lexc=yes
22761 echo "$as_me: program exited with status $ac_status" >&5
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ( exit $ac_status )
22766 ol_cv_pthread_lpthread_lmach_lexc=no
22768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22778 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22780 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22781 ol_link_pthreads="-lpthread -lmach -lexc"
22782 ol_link_threads=posix
22787 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22788 if test "$ol_link_threads" = no ; then
22789 # try -lpthread -Wl,-woff,85
22790 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22791 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22792 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22800 if test "$cross_compiling" = yes; then
22801 cat >conftest.$ac_ext <<_ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22808 /* pthread test headers */
22809 #include <pthread.h>
22810 #if HAVE_PTHREADS < 7
22814 #define NULL (void*)0
22817 static void *task(p)
22820 return (void *) (p == NULL);
22827 /* pthread test function */
22828 #ifndef PTHREAD_CREATE_DETACHED
22829 #define PTHREAD_CREATE_DETACHED 1
22833 int detach = PTHREAD_CREATE_DETACHED;
22835 #if HAVE_PTHREADS > 4
22836 /* Final pthreads */
22837 pthread_attr_t attr;
22839 status = pthread_attr_init(&attr);
22840 if( status ) return status;
22842 #if HAVE_PTHREADS < 7
22843 status = pthread_attr_setdetachstate(&attr, &detach);
22844 if( status < 0 ) status = errno;
22846 status = pthread_attr_setdetachstate(&attr, detach);
22848 if( status ) return status;
22849 status = pthread_create( &t, &attr, task, NULL );
22850 #if HAVE_PTHREADS < 7
22851 if( status < 0 ) status = errno;
22853 if( status ) return status;
22855 /* Draft 4 pthreads */
22856 status = pthread_create( &t, pthread_attr_default, task, NULL );
22857 if( status ) return errno;
22859 /* give thread a chance to complete */
22860 /* it should remain joinable and hence detachable */
22863 status = pthread_detach( &t );
22864 if( status ) return errno;
22867 #ifdef HAVE_LINUX_THREADS
22868 pthread_kill_other_threads_np();
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (ac_try="$ac_link"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_link") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1 >conftest.err
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest$ac_exeext &&
22894 $as_test_x conftest$ac_exeext; then
22895 ol_cv_pthread_lib_lpthread_woff=yes
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ol_cv_pthread_lib_lpthread_woff=no
22903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22904 conftest$ac_exeext conftest.$ac_ext
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22913 /* pthread test headers */
22914 #include <pthread.h>
22915 #if HAVE_PTHREADS < 7
22919 #define NULL (void*)0
22922 static void *task(p)
22925 return (void *) (p == NULL);
22929 int main(argc, argv)
22934 /* pthread test function */
22935 #ifndef PTHREAD_CREATE_DETACHED
22936 #define PTHREAD_CREATE_DETACHED 1
22940 int detach = PTHREAD_CREATE_DETACHED;
22942 #if HAVE_PTHREADS > 4
22943 /* Final pthreads */
22944 pthread_attr_t attr;
22946 status = pthread_attr_init(&attr);
22947 if( status ) return status;
22949 #if HAVE_PTHREADS < 7
22950 status = pthread_attr_setdetachstate(&attr, &detach);
22951 if( status < 0 ) status = errno;
22953 status = pthread_attr_setdetachstate(&attr, detach);
22955 if( status ) return status;
22956 status = pthread_create( &t, &attr, task, NULL );
22957 #if HAVE_PTHREADS < 7
22958 if( status < 0 ) status = errno;
22960 if( status ) return status;
22962 /* Draft 4 pthreads */
22963 status = pthread_create( &t, pthread_attr_default, task, NULL );
22964 if( status ) return errno;
22966 /* give thread a chance to complete */
22967 /* it should remain joinable and hence detachable */
22970 status = pthread_detach( &t );
22971 if( status ) return errno;
22974 #ifdef HAVE_LINUX_THREADS
22975 pthread_kill_other_threads_np();
22983 rm -f conftest$ac_exeext
22984 if { (ac_try="$ac_link"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_link") 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22994 { (case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_try") 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ol_cv_pthread_lib_lpthread_woff=yes
23005 echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 ( exit $ac_status )
23010 ol_cv_pthread_lib_lpthread_woff=no
23012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23021 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23022 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23024 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23025 ol_link_pthreads="-lpthread -Wl,-woff,85"
23026 ol_link_threads=posix
23031 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23032 if test "$ol_link_threads" = no ; then
23034 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23035 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23036 if test "${ol_cv_pthread_lpthread+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 LIBS="-lpthread $LIBS"
23044 if test "$cross_compiling" = yes; then
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23052 /* pthread test headers */
23053 #include <pthread.h>
23054 #if HAVE_PTHREADS < 7
23058 #define NULL (void*)0
23061 static void *task(p)
23064 return (void *) (p == NULL);
23071 /* pthread test function */
23072 #ifndef PTHREAD_CREATE_DETACHED
23073 #define PTHREAD_CREATE_DETACHED 1
23077 int detach = PTHREAD_CREATE_DETACHED;
23079 #if HAVE_PTHREADS > 4
23080 /* Final pthreads */
23081 pthread_attr_t attr;
23083 status = pthread_attr_init(&attr);
23084 if( status ) return status;
23086 #if HAVE_PTHREADS < 7
23087 status = pthread_attr_setdetachstate(&attr, &detach);
23088 if( status < 0 ) status = errno;
23090 status = pthread_attr_setdetachstate(&attr, detach);
23092 if( status ) return status;
23093 status = pthread_create( &t, &attr, task, NULL );
23094 #if HAVE_PTHREADS < 7
23095 if( status < 0 ) status = errno;
23097 if( status ) return status;
23099 /* Draft 4 pthreads */
23100 status = pthread_create( &t, pthread_attr_default, task, NULL );
23101 if( status ) return errno;
23103 /* give thread a chance to complete */
23104 /* it should remain joinable and hence detachable */
23107 status = pthread_detach( &t );
23108 if( status ) return errno;
23111 #ifdef HAVE_LINUX_THREADS
23112 pthread_kill_other_threads_np();
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_link") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest$ac_exeext &&
23138 $as_test_x conftest$ac_exeext; then
23139 ol_cv_pthread_lpthread=yes
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ol_cv_pthread_lpthread=no
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148 conftest$ac_exeext conftest.$ac_ext
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23157 /* pthread test headers */
23158 #include <pthread.h>
23159 #if HAVE_PTHREADS < 7
23163 #define NULL (void*)0
23166 static void *task(p)
23169 return (void *) (p == NULL);
23173 int main(argc, argv)
23178 /* pthread test function */
23179 #ifndef PTHREAD_CREATE_DETACHED
23180 #define PTHREAD_CREATE_DETACHED 1
23184 int detach = PTHREAD_CREATE_DETACHED;
23186 #if HAVE_PTHREADS > 4
23187 /* Final pthreads */
23188 pthread_attr_t attr;
23190 status = pthread_attr_init(&attr);
23191 if( status ) return status;
23193 #if HAVE_PTHREADS < 7
23194 status = pthread_attr_setdetachstate(&attr, &detach);
23195 if( status < 0 ) status = errno;
23197 status = pthread_attr_setdetachstate(&attr, detach);
23199 if( status ) return status;
23200 status = pthread_create( &t, &attr, task, NULL );
23201 #if HAVE_PTHREADS < 7
23202 if( status < 0 ) status = errno;
23204 if( status ) return status;
23206 /* Draft 4 pthreads */
23207 status = pthread_create( &t, pthread_attr_default, task, NULL );
23208 if( status ) return errno;
23210 /* give thread a chance to complete */
23211 /* it should remain joinable and hence detachable */
23214 status = pthread_detach( &t );
23215 if( status ) return errno;
23218 #ifdef HAVE_LINUX_THREADS
23219 pthread_kill_other_threads_np();
23227 rm -f conftest$ac_exeext
23228 if { (ac_try="$ac_link"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_link") 2>&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23238 { (case "(($ac_try" in
23239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240 *) ac_try_echo=$ac_try;;
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243 (eval "$ac_try") 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ol_cv_pthread_lpthread=yes
23249 echo "$as_me: program exited with status $ac_status" >&5
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 ( exit $ac_status )
23254 ol_cv_pthread_lpthread=no
23256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23265 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23266 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23268 if test $ol_cv_pthread_lpthread = yes ; then
23269 ol_link_pthreads="-lpthread"
23270 ol_link_threads=posix
23274 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23275 if test "$ol_link_threads" = no ; then
23277 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23278 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23279 if test "${ol_cv_pthread_lc_r+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23287 if test "$cross_compiling" = yes; then
23288 cat >conftest.$ac_ext <<_ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23295 /* pthread test headers */
23296 #include <pthread.h>
23297 #if HAVE_PTHREADS < 7
23301 #define NULL (void*)0
23304 static void *task(p)
23307 return (void *) (p == NULL);
23314 /* pthread test function */
23315 #ifndef PTHREAD_CREATE_DETACHED
23316 #define PTHREAD_CREATE_DETACHED 1
23320 int detach = PTHREAD_CREATE_DETACHED;
23322 #if HAVE_PTHREADS > 4
23323 /* Final pthreads */
23324 pthread_attr_t attr;
23326 status = pthread_attr_init(&attr);
23327 if( status ) return status;
23329 #if HAVE_PTHREADS < 7
23330 status = pthread_attr_setdetachstate(&attr, &detach);
23331 if( status < 0 ) status = errno;
23333 status = pthread_attr_setdetachstate(&attr, detach);
23335 if( status ) return status;
23336 status = pthread_create( &t, &attr, task, NULL );
23337 #if HAVE_PTHREADS < 7
23338 if( status < 0 ) status = errno;
23340 if( status ) return status;
23342 /* Draft 4 pthreads */
23343 status = pthread_create( &t, pthread_attr_default, task, NULL );
23344 if( status ) return errno;
23346 /* give thread a chance to complete */
23347 /* it should remain joinable and hence detachable */
23350 status = pthread_detach( &t );
23351 if( status ) return errno;
23354 #ifdef HAVE_LINUX_THREADS
23355 pthread_kill_other_threads_np();
23364 rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_link") 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest$ac_exeext &&
23381 $as_test_x conftest$ac_exeext; then
23382 ol_cv_pthread_lc_r=yes
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ol_cv_pthread_lc_r=no
23390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23391 conftest$ac_exeext conftest.$ac_ext
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23400 /* pthread test headers */
23401 #include <pthread.h>
23402 #if HAVE_PTHREADS < 7
23406 #define NULL (void*)0
23409 static void *task(p)
23412 return (void *) (p == NULL);
23416 int main(argc, argv)
23421 /* pthread test function */
23422 #ifndef PTHREAD_CREATE_DETACHED
23423 #define PTHREAD_CREATE_DETACHED 1
23427 int detach = PTHREAD_CREATE_DETACHED;
23429 #if HAVE_PTHREADS > 4
23430 /* Final pthreads */
23431 pthread_attr_t attr;
23433 status = pthread_attr_init(&attr);
23434 if( status ) return status;
23436 #if HAVE_PTHREADS < 7
23437 status = pthread_attr_setdetachstate(&attr, &detach);
23438 if( status < 0 ) status = errno;
23440 status = pthread_attr_setdetachstate(&attr, detach);
23442 if( status ) return status;
23443 status = pthread_create( &t, &attr, task, NULL );
23444 #if HAVE_PTHREADS < 7
23445 if( status < 0 ) status = errno;
23447 if( status ) return status;
23449 /* Draft 4 pthreads */
23450 status = pthread_create( &t, pthread_attr_default, task, NULL );
23451 if( status ) return errno;
23453 /* give thread a chance to complete */
23454 /* it should remain joinable and hence detachable */
23457 status = pthread_detach( &t );
23458 if( status ) return errno;
23461 #ifdef HAVE_LINUX_THREADS
23462 pthread_kill_other_threads_np();
23470 rm -f conftest$ac_exeext
23471 if { (ac_try="$ac_link"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_link") 2>&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23481 { (case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_try") 2>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 ol_cv_pthread_lc_r=yes
23492 echo "$as_me: program exited with status $ac_status" >&5
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 ( exit $ac_status )
23497 ol_cv_pthread_lc_r=no
23499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23508 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23509 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23511 if test $ol_cv_pthread_lc_r = yes ; then
23512 ol_link_pthreads="-lc_r"
23513 ol_link_threads=posix
23518 # Pthread try link: -threads (ol_cv_pthread_threads)
23519 if test "$ol_link_threads" = no ; then
23521 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23522 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23523 if test "${ol_cv_pthread_threads+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 LIBS="-threads $LIBS"
23531 if test "$cross_compiling" = yes; then
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23539 /* pthread test headers */
23540 #include <pthread.h>
23541 #if HAVE_PTHREADS < 7
23545 #define NULL (void*)0
23548 static void *task(p)
23551 return (void *) (p == NULL);
23558 /* pthread test function */
23559 #ifndef PTHREAD_CREATE_DETACHED
23560 #define PTHREAD_CREATE_DETACHED 1
23564 int detach = PTHREAD_CREATE_DETACHED;
23566 #if HAVE_PTHREADS > 4
23567 /* Final pthreads */
23568 pthread_attr_t attr;
23570 status = pthread_attr_init(&attr);
23571 if( status ) return status;
23573 #if HAVE_PTHREADS < 7
23574 status = pthread_attr_setdetachstate(&attr, &detach);
23575 if( status < 0 ) status = errno;
23577 status = pthread_attr_setdetachstate(&attr, detach);
23579 if( status ) return status;
23580 status = pthread_create( &t, &attr, task, NULL );
23581 #if HAVE_PTHREADS < 7
23582 if( status < 0 ) status = errno;
23584 if( status ) return status;
23586 /* Draft 4 pthreads */
23587 status = pthread_create( &t, pthread_attr_default, task, NULL );
23588 if( status ) return errno;
23590 /* give thread a chance to complete */
23591 /* it should remain joinable and hence detachable */
23594 status = pthread_detach( &t );
23595 if( status ) return errno;
23598 #ifdef HAVE_LINUX_THREADS
23599 pthread_kill_other_threads_np();
23608 rm -f conftest.$ac_objext conftest$ac_exeext
23609 if { (ac_try="$ac_link"
23610 case "(($ac_try" in
23611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23612 *) ac_try_echo=$ac_try;;
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615 (eval "$ac_link") 2>conftest.er1
23617 grep -v '^ *+' conftest.er1 >conftest.err
23619 cat conftest.err >&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } && {
23622 test -z "$ac_c_werror_flag" ||
23623 test ! -s conftest.err
23624 } && test -s conftest$ac_exeext &&
23625 $as_test_x conftest$ac_exeext; then
23626 ol_cv_pthread_threads=yes
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ol_cv_pthread_threads=no
23634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23635 conftest$ac_exeext conftest.$ac_ext
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23644 /* pthread test headers */
23645 #include <pthread.h>
23646 #if HAVE_PTHREADS < 7
23650 #define NULL (void*)0
23653 static void *task(p)
23656 return (void *) (p == NULL);
23660 int main(argc, argv)
23665 /* pthread test function */
23666 #ifndef PTHREAD_CREATE_DETACHED
23667 #define PTHREAD_CREATE_DETACHED 1
23671 int detach = PTHREAD_CREATE_DETACHED;
23673 #if HAVE_PTHREADS > 4
23674 /* Final pthreads */
23675 pthread_attr_t attr;
23677 status = pthread_attr_init(&attr);
23678 if( status ) return status;
23680 #if HAVE_PTHREADS < 7
23681 status = pthread_attr_setdetachstate(&attr, &detach);
23682 if( status < 0 ) status = errno;
23684 status = pthread_attr_setdetachstate(&attr, detach);
23686 if( status ) return status;
23687 status = pthread_create( &t, &attr, task, NULL );
23688 #if HAVE_PTHREADS < 7
23689 if( status < 0 ) status = errno;
23691 if( status ) return status;
23693 /* Draft 4 pthreads */
23694 status = pthread_create( &t, pthread_attr_default, task, NULL );
23695 if( status ) return errno;
23697 /* give thread a chance to complete */
23698 /* it should remain joinable and hence detachable */
23701 status = pthread_detach( &t );
23702 if( status ) return errno;
23705 #ifdef HAVE_LINUX_THREADS
23706 pthread_kill_other_threads_np();
23714 rm -f conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_link") 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725 { (case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_try") 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ol_cv_pthread_threads=yes
23736 echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ( exit $ac_status )
23741 ol_cv_pthread_threads=no
23743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23752 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23753 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23755 if test $ol_cv_pthread_threads = yes ; then
23756 ol_link_pthreads="-threads"
23757 ol_link_threads=posix
23762 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23763 if test "$ol_link_threads" = no ; then
23764 # try -lpthreads -lmach -lexc -lc_r
23765 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23766 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23767 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23775 if test "$cross_compiling" = yes; then
23776 cat >conftest.$ac_ext <<_ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23783 /* pthread test headers */
23784 #include <pthread.h>
23785 #if HAVE_PTHREADS < 7
23789 #define NULL (void*)0
23792 static void *task(p)
23795 return (void *) (p == NULL);
23802 /* pthread test function */
23803 #ifndef PTHREAD_CREATE_DETACHED
23804 #define PTHREAD_CREATE_DETACHED 1
23808 int detach = PTHREAD_CREATE_DETACHED;
23810 #if HAVE_PTHREADS > 4
23811 /* Final pthreads */
23812 pthread_attr_t attr;
23814 status = pthread_attr_init(&attr);
23815 if( status ) return status;
23817 #if HAVE_PTHREADS < 7
23818 status = pthread_attr_setdetachstate(&attr, &detach);
23819 if( status < 0 ) status = errno;
23821 status = pthread_attr_setdetachstate(&attr, detach);
23823 if( status ) return status;
23824 status = pthread_create( &t, &attr, task, NULL );
23825 #if HAVE_PTHREADS < 7
23826 if( status < 0 ) status = errno;
23828 if( status ) return status;
23830 /* Draft 4 pthreads */
23831 status = pthread_create( &t, pthread_attr_default, task, NULL );
23832 if( status ) return errno;
23834 /* give thread a chance to complete */
23835 /* it should remain joinable and hence detachable */
23838 status = pthread_detach( &t );
23839 if( status ) return errno;
23842 #ifdef HAVE_LINUX_THREADS
23843 pthread_kill_other_threads_np();
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_link") 2>conftest.er1
23861 grep -v '^ *+' conftest.er1 >conftest.err
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } && {
23866 test -z "$ac_c_werror_flag" ||
23867 test ! -s conftest.err
23868 } && test -s conftest$ac_exeext &&
23869 $as_test_x conftest$ac_exeext; then
23870 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23875 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879 conftest$ac_exeext conftest.$ac_ext
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23888 /* pthread test headers */
23889 #include <pthread.h>
23890 #if HAVE_PTHREADS < 7
23894 #define NULL (void*)0
23897 static void *task(p)
23900 return (void *) (p == NULL);
23904 int main(argc, argv)
23909 /* pthread test function */
23910 #ifndef PTHREAD_CREATE_DETACHED
23911 #define PTHREAD_CREATE_DETACHED 1
23915 int detach = PTHREAD_CREATE_DETACHED;
23917 #if HAVE_PTHREADS > 4
23918 /* Final pthreads */
23919 pthread_attr_t attr;
23921 status = pthread_attr_init(&attr);
23922 if( status ) return status;
23924 #if HAVE_PTHREADS < 7
23925 status = pthread_attr_setdetachstate(&attr, &detach);
23926 if( status < 0 ) status = errno;
23928 status = pthread_attr_setdetachstate(&attr, detach);
23930 if( status ) return status;
23931 status = pthread_create( &t, &attr, task, NULL );
23932 #if HAVE_PTHREADS < 7
23933 if( status < 0 ) status = errno;
23935 if( status ) return status;
23937 /* Draft 4 pthreads */
23938 status = pthread_create( &t, pthread_attr_default, task, NULL );
23939 if( status ) return errno;
23941 /* give thread a chance to complete */
23942 /* it should remain joinable and hence detachable */
23945 status = pthread_detach( &t );
23946 if( status ) return errno;
23949 #ifdef HAVE_LINUX_THREADS
23950 pthread_kill_other_threads_np();
23958 rm -f conftest$ac_exeext
23959 if { (ac_try="$ac_link"
23960 case "(($ac_try" in
23961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962 *) ac_try_echo=$ac_try;;
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965 (eval "$ac_link") 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23969 { (case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_try") 2>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23980 echo "$as_me: program exited with status $ac_status" >&5
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ( exit $ac_status )
23985 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23996 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23997 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23999 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24000 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24001 ol_link_threads=posix
24005 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24006 if test "$ol_link_threads" = no ; then
24007 # try -lpthreads -lmach -lexc
24008 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24009 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24010 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24016 LIBS="-lpthreads -lmach -lexc $LIBS"
24018 if test "$cross_compiling" = yes; then
24019 cat >conftest.$ac_ext <<_ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24026 /* pthread test headers */
24027 #include <pthread.h>
24028 #if HAVE_PTHREADS < 7
24032 #define NULL (void*)0
24035 static void *task(p)
24038 return (void *) (p == NULL);
24045 /* pthread test function */
24046 #ifndef PTHREAD_CREATE_DETACHED
24047 #define PTHREAD_CREATE_DETACHED 1
24051 int detach = PTHREAD_CREATE_DETACHED;
24053 #if HAVE_PTHREADS > 4
24054 /* Final pthreads */
24055 pthread_attr_t attr;
24057 status = pthread_attr_init(&attr);
24058 if( status ) return status;
24060 #if HAVE_PTHREADS < 7
24061 status = pthread_attr_setdetachstate(&attr, &detach);
24062 if( status < 0 ) status = errno;
24064 status = pthread_attr_setdetachstate(&attr, detach);
24066 if( status ) return status;
24067 status = pthread_create( &t, &attr, task, NULL );
24068 #if HAVE_PTHREADS < 7
24069 if( status < 0 ) status = errno;
24071 if( status ) return status;
24073 /* Draft 4 pthreads */
24074 status = pthread_create( &t, pthread_attr_default, task, NULL );
24075 if( status ) return errno;
24077 /* give thread a chance to complete */
24078 /* it should remain joinable and hence detachable */
24081 status = pthread_detach( &t );
24082 if( status ) return errno;
24085 #ifdef HAVE_LINUX_THREADS
24086 pthread_kill_other_threads_np();
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102 (eval "$ac_link") 2>conftest.er1
24104 grep -v '^ *+' conftest.er1 >conftest.err
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } && {
24109 test -z "$ac_c_werror_flag" ||
24110 test ! -s conftest.err
24111 } && test -s conftest$ac_exeext &&
24112 $as_test_x conftest$ac_exeext; then
24113 ol_cv_pthread_lpthreads_lmach_lexc=yes
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ol_cv_pthread_lpthreads_lmach_lexc=no
24121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24122 conftest$ac_exeext conftest.$ac_ext
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24131 /* pthread test headers */
24132 #include <pthread.h>
24133 #if HAVE_PTHREADS < 7
24137 #define NULL (void*)0
24140 static void *task(p)
24143 return (void *) (p == NULL);
24147 int main(argc, argv)
24152 /* pthread test function */
24153 #ifndef PTHREAD_CREATE_DETACHED
24154 #define PTHREAD_CREATE_DETACHED 1
24158 int detach = PTHREAD_CREATE_DETACHED;
24160 #if HAVE_PTHREADS > 4
24161 /* Final pthreads */
24162 pthread_attr_t attr;
24164 status = pthread_attr_init(&attr);
24165 if( status ) return status;
24167 #if HAVE_PTHREADS < 7
24168 status = pthread_attr_setdetachstate(&attr, &detach);
24169 if( status < 0 ) status = errno;
24171 status = pthread_attr_setdetachstate(&attr, detach);
24173 if( status ) return status;
24174 status = pthread_create( &t, &attr, task, NULL );
24175 #if HAVE_PTHREADS < 7
24176 if( status < 0 ) status = errno;
24178 if( status ) return status;
24180 /* Draft 4 pthreads */
24181 status = pthread_create( &t, pthread_attr_default, task, NULL );
24182 if( status ) return errno;
24184 /* give thread a chance to complete */
24185 /* it should remain joinable and hence detachable */
24188 status = pthread_detach( &t );
24189 if( status ) return errno;
24192 #ifdef HAVE_LINUX_THREADS
24193 pthread_kill_other_threads_np();
24201 rm -f conftest$ac_exeext
24202 if { (ac_try="$ac_link"
24203 case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_link") 2>&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24212 { (case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_try") 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 ol_cv_pthread_lpthreads_lmach_lexc=yes
24223 echo "$as_me: program exited with status $ac_status" >&5
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ( exit $ac_status )
24228 ol_cv_pthread_lpthreads_lmach_lexc=no
24230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24239 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24240 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24242 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24243 ol_link_pthreads="-lpthreads -lmach -lexc"
24244 ol_link_threads=posix
24248 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24249 if test "$ol_link_threads" = no ; then
24250 # try -lpthreads -lexc
24251 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24252 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24253 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24259 LIBS="-lpthreads -lexc $LIBS"
24261 if test "$cross_compiling" = yes; then
24262 cat >conftest.$ac_ext <<_ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h. */
24269 /* pthread test headers */
24270 #include <pthread.h>
24271 #if HAVE_PTHREADS < 7
24275 #define NULL (void*)0
24278 static void *task(p)
24281 return (void *) (p == NULL);
24288 /* pthread test function */
24289 #ifndef PTHREAD_CREATE_DETACHED
24290 #define PTHREAD_CREATE_DETACHED 1
24294 int detach = PTHREAD_CREATE_DETACHED;
24296 #if HAVE_PTHREADS > 4
24297 /* Final pthreads */
24298 pthread_attr_t attr;
24300 status = pthread_attr_init(&attr);
24301 if( status ) return status;
24303 #if HAVE_PTHREADS < 7
24304 status = pthread_attr_setdetachstate(&attr, &detach);
24305 if( status < 0 ) status = errno;
24307 status = pthread_attr_setdetachstate(&attr, detach);
24309 if( status ) return status;
24310 status = pthread_create( &t, &attr, task, NULL );
24311 #if HAVE_PTHREADS < 7
24312 if( status < 0 ) status = errno;
24314 if( status ) return status;
24316 /* Draft 4 pthreads */
24317 status = pthread_create( &t, pthread_attr_default, task, NULL );
24318 if( status ) return errno;
24320 /* give thread a chance to complete */
24321 /* it should remain joinable and hence detachable */
24324 status = pthread_detach( &t );
24325 if( status ) return errno;
24328 #ifdef HAVE_LINUX_THREADS
24329 pthread_kill_other_threads_np();
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (ac_try="$ac_link"
24340 case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_link") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest$ac_exeext &&
24355 $as_test_x conftest$ac_exeext; then
24356 ol_cv_pthread_lpthreads_lexc=yes
24358 echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24361 ol_cv_pthread_lpthreads_lexc=no
24364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24365 conftest$ac_exeext conftest.$ac_ext
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24374 /* pthread test headers */
24375 #include <pthread.h>
24376 #if HAVE_PTHREADS < 7
24380 #define NULL (void*)0
24383 static void *task(p)
24386 return (void *) (p == NULL);
24390 int main(argc, argv)
24395 /* pthread test function */
24396 #ifndef PTHREAD_CREATE_DETACHED
24397 #define PTHREAD_CREATE_DETACHED 1
24401 int detach = PTHREAD_CREATE_DETACHED;
24403 #if HAVE_PTHREADS > 4
24404 /* Final pthreads */
24405 pthread_attr_t attr;
24407 status = pthread_attr_init(&attr);
24408 if( status ) return status;
24410 #if HAVE_PTHREADS < 7
24411 status = pthread_attr_setdetachstate(&attr, &detach);
24412 if( status < 0 ) status = errno;
24414 status = pthread_attr_setdetachstate(&attr, detach);
24416 if( status ) return status;
24417 status = pthread_create( &t, &attr, task, NULL );
24418 #if HAVE_PTHREADS < 7
24419 if( status < 0 ) status = errno;
24421 if( status ) return status;
24423 /* Draft 4 pthreads */
24424 status = pthread_create( &t, pthread_attr_default, task, NULL );
24425 if( status ) return errno;
24427 /* give thread a chance to complete */
24428 /* it should remain joinable and hence detachable */
24431 status = pthread_detach( &t );
24432 if( status ) return errno;
24435 #ifdef HAVE_LINUX_THREADS
24436 pthread_kill_other_threads_np();
24444 rm -f conftest$ac_exeext
24445 if { (ac_try="$ac_link"
24446 case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_link") 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24455 { (case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_try") 2>&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; }; then
24464 ol_cv_pthread_lpthreads_lexc=yes
24466 echo "$as_me: program exited with status $ac_status" >&5
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24470 ( exit $ac_status )
24471 ol_cv_pthread_lpthreads_lexc=no
24473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24482 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24483 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24485 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24486 ol_link_pthreads="-lpthreads -lexc"
24487 ol_link_threads=posix
24492 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24493 if test "$ol_link_threads" = no ; then
24495 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24496 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24497 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24503 LIBS="-lpthreads $LIBS"
24505 if test "$cross_compiling" = yes; then
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24513 /* pthread test headers */
24514 #include <pthread.h>
24515 #if HAVE_PTHREADS < 7
24519 #define NULL (void*)0
24522 static void *task(p)
24525 return (void *) (p == NULL);
24532 /* pthread test function */
24533 #ifndef PTHREAD_CREATE_DETACHED
24534 #define PTHREAD_CREATE_DETACHED 1
24538 int detach = PTHREAD_CREATE_DETACHED;
24540 #if HAVE_PTHREADS > 4
24541 /* Final pthreads */
24542 pthread_attr_t attr;
24544 status = pthread_attr_init(&attr);
24545 if( status ) return status;
24547 #if HAVE_PTHREADS < 7
24548 status = pthread_attr_setdetachstate(&attr, &detach);
24549 if( status < 0 ) status = errno;
24551 status = pthread_attr_setdetachstate(&attr, detach);
24553 if( status ) return status;
24554 status = pthread_create( &t, &attr, task, NULL );
24555 #if HAVE_PTHREADS < 7
24556 if( status < 0 ) status = errno;
24558 if( status ) return status;
24560 /* Draft 4 pthreads */
24561 status = pthread_create( &t, pthread_attr_default, task, NULL );
24562 if( status ) return errno;
24564 /* give thread a chance to complete */
24565 /* it should remain joinable and hence detachable */
24568 status = pthread_detach( &t );
24569 if( status ) return errno;
24572 #ifdef HAVE_LINUX_THREADS
24573 pthread_kill_other_threads_np();
24582 rm -f conftest.$ac_objext conftest$ac_exeext
24583 if { (ac_try="$ac_link"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_link") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest$ac_exeext &&
24599 $as_test_x conftest$ac_exeext; then
24600 ol_cv_pthread_lib_lpthreads=yes
24602 echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24605 ol_cv_pthread_lib_lpthreads=no
24608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24609 conftest$ac_exeext conftest.$ac_ext
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24618 /* pthread test headers */
24619 #include <pthread.h>
24620 #if HAVE_PTHREADS < 7
24624 #define NULL (void*)0
24627 static void *task(p)
24630 return (void *) (p == NULL);
24634 int main(argc, argv)
24639 /* pthread test function */
24640 #ifndef PTHREAD_CREATE_DETACHED
24641 #define PTHREAD_CREATE_DETACHED 1
24645 int detach = PTHREAD_CREATE_DETACHED;
24647 #if HAVE_PTHREADS > 4
24648 /* Final pthreads */
24649 pthread_attr_t attr;
24651 status = pthread_attr_init(&attr);
24652 if( status ) return status;
24654 #if HAVE_PTHREADS < 7
24655 status = pthread_attr_setdetachstate(&attr, &detach);
24656 if( status < 0 ) status = errno;
24658 status = pthread_attr_setdetachstate(&attr, detach);
24660 if( status ) return status;
24661 status = pthread_create( &t, &attr, task, NULL );
24662 #if HAVE_PTHREADS < 7
24663 if( status < 0 ) status = errno;
24665 if( status ) return status;
24667 /* Draft 4 pthreads */
24668 status = pthread_create( &t, pthread_attr_default, task, NULL );
24669 if( status ) return errno;
24671 /* give thread a chance to complete */
24672 /* it should remain joinable and hence detachable */
24675 status = pthread_detach( &t );
24676 if( status ) return errno;
24679 #ifdef HAVE_LINUX_THREADS
24680 pthread_kill_other_threads_np();
24688 rm -f conftest$ac_exeext
24689 if { (ac_try="$ac_link"
24690 case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_link") 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24699 { (case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_try") 2>&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); }; }; then
24708 ol_cv_pthread_lib_lpthreads=yes
24710 echo "$as_me: program exited with status $ac_status" >&5
24711 echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ( exit $ac_status )
24715 ol_cv_pthread_lib_lpthreads=no
24717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24726 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24727 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24729 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24730 ol_link_pthreads="-lpthreads"
24731 ol_link_threads=posix
24736 if test $ol_link_threads != no ; then
24737 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24739 save_CPPFLAGS="$CPPFLAGS"
24741 LIBS="$LTHREAD_LIBS $LIBS"
24746 for ac_func in sched_yield pthread_yield thr_yield
24748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 cat >conftest.$ac_ext <<_ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24762 #define $ac_func innocuous_$ac_func
24764 /* System header to define __stub macros and hopefully few prototypes,
24765 which can conflict with char $ac_func (); below.
24766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24767 <limits.h> exists even on freestanding compilers. */
24770 # include <limits.h>
24772 # include <assert.h>
24777 /* Override any GCC internal prototype to avoid an error.
24778 Use char because int might match the return type of a GCC
24779 builtin and then its argument prototype would still apply. */
24784 /* The GNU C library defines this for functions which it implements
24785 to always fail with ENOSYS. Some functions are actually named
24786 something starting with __ and the normal name is an alias. */
24787 #if defined __stub_$ac_func || defined __stub___$ac_func
24794 return $ac_func ();
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_link") 2>conftest.er1
24808 grep -v '^ *+' conftest.er1 >conftest.err
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } && {
24813 test -z "$ac_c_werror_flag" ||
24814 test ! -s conftest.err
24815 } && test -s conftest$ac_exeext &&
24816 $as_test_x conftest$ac_exeext; then
24817 eval "$as_ac_var=yes"
24819 echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24822 eval "$as_ac_var=no"
24825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24826 conftest$ac_exeext conftest.$ac_ext
24828 ac_res=`eval echo '${'$as_ac_var'}'`
24829 { echo "$as_me:$LINENO: result: $ac_res" >&5
24830 echo "${ECHO_T}$ac_res" >&6; }
24831 if test `eval echo '${'$as_ac_var'}'` = yes; then
24832 cat >>confdefs.h <<_ACEOF
24833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24840 if test $ac_cv_func_sched_yield = no &&
24841 test $ac_cv_func_pthread_yield = no &&
24842 test $ac_cv_func_thr_yield = no ; then
24843 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24844 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24845 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 ac_check_lib_save_LIBS=$LIBS
24850 cat >conftest.$ac_ext <<_ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24857 /* Override any GCC internal prototype to avoid an error.
24858 Use char because int might match the return type of a GCC
24859 builtin and then its argument prototype would still apply. */
24863 char sched_yield ();
24867 return sched_yield ();
24872 rm -f conftest.$ac_objext conftest$ac_exeext
24873 if { (ac_try="$ac_link"
24874 case "(($ac_try" in
24875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879 (eval "$ac_link") 2>conftest.er1
24881 grep -v '^ *+' conftest.er1 >conftest.err
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } && {
24886 test -z "$ac_c_werror_flag" ||
24887 test ! -s conftest.err
24888 } && test -s conftest$ac_exeext &&
24889 $as_test_x conftest$ac_exeext; then
24890 ac_cv_lib_rt_sched_yield=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ac_cv_lib_rt_sched_yield=no
24898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24899 conftest$ac_exeext conftest.$ac_ext
24900 LIBS=$ac_check_lib_save_LIBS
24902 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24903 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24904 if test $ac_cv_lib_rt_sched_yield = yes; then
24905 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24907 cat >>confdefs.h <<\_ACEOF
24908 #define HAVE_SCHED_YIELD 1
24911 ac_cv_func_sched_yield=yes
24913 ac_cv_func_sched_yield=no
24917 if test $ac_cv_func_sched_yield = no &&
24918 test $ac_cv_func_pthread_yield = no &&
24919 test "$ac_cv_func_thr_yield" = no ; then
24920 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24921 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24925 for ac_func in pthread_kill
24927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24931 echo $ECHO_N "(cached) $ECHO_C" >&6
24933 cat >conftest.$ac_ext <<_ACEOF
24936 cat confdefs.h >>conftest.$ac_ext
24937 cat >>conftest.$ac_ext <<_ACEOF
24938 /* end confdefs.h. */
24939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24941 #define $ac_func innocuous_$ac_func
24943 /* System header to define __stub macros and hopefully few prototypes,
24944 which can conflict with char $ac_func (); below.
24945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24946 <limits.h> exists even on freestanding compilers. */
24949 # include <limits.h>
24951 # include <assert.h>
24956 /* Override any GCC internal prototype to avoid an error.
24957 Use char because int might match the return type of a GCC
24958 builtin and then its argument prototype would still apply. */
24963 /* The GNU C library defines this for functions which it implements
24964 to always fail with ENOSYS. Some functions are actually named
24965 something starting with __ and the normal name is an alias. */
24966 #if defined __stub_$ac_func || defined __stub___$ac_func
24973 return $ac_func ();
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982 *) ac_try_echo=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_link") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest$ac_exeext &&
24995 $as_test_x conftest$ac_exeext; then
24996 eval "$as_ac_var=yes"
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 eval "$as_ac_var=no"
25004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25005 conftest$ac_exeext conftest.$ac_ext
25007 ac_res=`eval echo '${'$as_ac_var'}'`
25008 { echo "$as_me:$LINENO: result: $ac_res" >&5
25009 echo "${ECHO_T}$ac_res" >&6; }
25010 if test `eval echo '${'$as_ac_var'}'` = yes; then
25011 cat >>confdefs.h <<_ACEOF
25012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25019 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25020 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25021 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25032 #include <pthread.h>
25033 pthread_rwlock_t rwlock;
25038 pthread_rwlock_destroy(&rwlock);
25043 rm -f conftest.$ac_objext conftest$ac_exeext
25044 if { (ac_try="$ac_link"
25045 case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_link") 2>conftest.er1
25052 grep -v '^ *+' conftest.er1 >conftest.err
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } && {
25057 test -z "$ac_c_werror_flag" ||
25058 test ! -s conftest.err
25059 } && test -s conftest$ac_exeext &&
25060 $as_test_x conftest$ac_exeext; then
25061 ol_cv_func_pthread_rwlock_destroy=yes
25063 echo "$as_me: failed program was:" >&5
25064 sed 's/^/| /' conftest.$ac_ext >&5
25066 ol_cv_func_pthread_rwlock_destroy=no
25069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25070 conftest$ac_exeext conftest.$ac_ext
25073 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25074 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25075 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25083 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25084 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25085 if test "${ol_cv_func_pthread_detach+set}" = set; then
25086 echo $ECHO_N "(cached) $ECHO_C" >&6
25089 cat >conftest.$ac_ext <<_ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h. */
25096 #include <pthread.h>
25098 #define NULL (void*)0
25104 pthread_detach(NULL);
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (ac_try="$ac_link"
25111 case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_link") 2>conftest.er1
25118 grep -v '^ *+' conftest.er1 >conftest.err
25120 cat conftest.err >&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } && {
25123 test -z "$ac_c_werror_flag" ||
25124 test ! -s conftest.err
25125 } && test -s conftest$ac_exeext &&
25126 $as_test_x conftest$ac_exeext; then
25127 ol_cv_func_pthread_detach=yes
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25132 ol_cv_func_pthread_detach=no
25135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25136 conftest$ac_exeext conftest.$ac_ext
25139 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25140 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25142 if test $ol_cv_func_pthread_detach = no ; then
25143 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25144 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25145 { (exit 1); exit 1; }; }
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_PTHREAD_DETACH 1
25159 pthread_setconcurrency \
25160 pthread_getconcurrency \
25161 thr_setconcurrency \
25162 thr_getconcurrency \
25165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25179 #define $ac_func innocuous_$ac_func
25181 /* System header to define __stub macros and hopefully few prototypes,
25182 which can conflict with char $ac_func (); below.
25183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25184 <limits.h> exists even on freestanding compilers. */
25187 # include <limits.h>
25189 # include <assert.h>
25194 /* Override any GCC internal prototype to avoid an error.
25195 Use char because int might match the return type of a GCC
25196 builtin and then its argument prototype would still apply. */
25201 /* The GNU C library defines this for functions which it implements
25202 to always fail with ENOSYS. Some functions are actually named
25203 something starting with __ and the normal name is an alias. */
25204 #if defined __stub_$ac_func || defined __stub___$ac_func
25211 return $ac_func ();
25216 rm -f conftest.$ac_objext conftest$ac_exeext
25217 if { (ac_try="$ac_link"
25218 case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 (eval "$ac_link") 2>conftest.er1
25225 grep -v '^ *+' conftest.er1 >conftest.err
25227 cat conftest.err >&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } && {
25230 test -z "$ac_c_werror_flag" ||
25231 test ! -s conftest.err
25232 } && test -s conftest$ac_exeext &&
25233 $as_test_x conftest$ac_exeext; then
25234 eval "$as_ac_var=yes"
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 eval "$as_ac_var=no"
25242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25243 conftest$ac_exeext conftest.$ac_ext
25245 ac_res=`eval echo '${'$as_ac_var'}'`
25246 { echo "$as_me:$LINENO: result: $ac_res" >&5
25247 echo "${ECHO_T}$ac_res" >&6; }
25248 if test `eval echo '${'$as_ac_var'}'` = yes; then
25249 cat >>confdefs.h <<_ACEOF
25250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25259 for ac_func in pthread_kill_other_threads_np
25261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 cat >conftest.$ac_ext <<_ACEOF
25270 cat confdefs.h >>conftest.$ac_ext
25271 cat >>conftest.$ac_ext <<_ACEOF
25272 /* end confdefs.h. */
25273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25275 #define $ac_func innocuous_$ac_func
25277 /* System header to define __stub macros and hopefully few prototypes,
25278 which can conflict with char $ac_func (); below.
25279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25280 <limits.h> exists even on freestanding compilers. */
25283 # include <limits.h>
25285 # include <assert.h>
25290 /* Override any GCC internal prototype to avoid an error.
25291 Use char because int might match the return type of a GCC
25292 builtin and then its argument prototype would still apply. */
25297 /* The GNU C library defines this for functions which it implements
25298 to always fail with ENOSYS. Some functions are actually named
25299 something starting with __ and the normal name is an alias. */
25300 #if defined __stub_$ac_func || defined __stub___$ac_func
25307 return $ac_func ();
25312 rm -f conftest.$ac_objext conftest$ac_exeext
25313 if { (ac_try="$ac_link"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_link") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest$ac_exeext &&
25329 $as_test_x conftest$ac_exeext; then
25330 eval "$as_ac_var=yes"
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 eval "$as_ac_var=no"
25338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25339 conftest$ac_exeext conftest.$ac_ext
25341 ac_res=`eval echo '${'$as_ac_var'}'`
25342 { echo "$as_me:$LINENO: result: $ac_res" >&5
25343 echo "${ECHO_T}$ac_res" >&6; }
25344 if test `eval echo '${'$as_ac_var'}'` = yes; then
25345 cat >>confdefs.h <<_ACEOF
25346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25352 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25353 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25354 if test "${ol_cv_sys_linux_threads+set}" = set; then
25355 echo $ECHO_N "(cached) $ECHO_C" >&6
25357 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25359 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25360 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25365 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25366 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25367 if test "${ol_cv_linux_threads+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25371 if test $ol_cv_header_linux_threads = yes &&
25372 test $ol_cv_sys_linux_threads = yes; then
25373 ol_cv_linux_threads=yes
25374 elif test $ol_cv_header_linux_threads = no &&
25375 test $ol_cv_sys_linux_threads = no; then
25376 ol_cv_linux_threads=no
25378 ol_cv_linux_threads=error
25382 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25383 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25386 if test $ol_cv_linux_threads = error; then
25387 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25388 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25389 { (exit 1); exit 1; }; };
25392 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25393 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25394 if test "${ol_cv_pthread_create_works+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 if test "$cross_compiling" = yes; then
25399 ol_cv_pthread_create_works=yes
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25408 /* pthread test headers */
25409 #include <pthread.h>
25410 #if HAVE_PTHREADS < 7
25414 #define NULL (void*)0
25417 static void *task(p)
25420 return (void *) (p == NULL);
25424 int main(argc, argv)
25429 /* pthread test function */
25430 #ifndef PTHREAD_CREATE_DETACHED
25431 #define PTHREAD_CREATE_DETACHED 1
25435 int detach = PTHREAD_CREATE_DETACHED;
25437 #if HAVE_PTHREADS > 4
25438 /* Final pthreads */
25439 pthread_attr_t attr;
25441 status = pthread_attr_init(&attr);
25442 if( status ) return status;
25444 #if HAVE_PTHREADS < 7
25445 status = pthread_attr_setdetachstate(&attr, &detach);
25446 if( status < 0 ) status = errno;
25448 status = pthread_attr_setdetachstate(&attr, detach);
25450 if( status ) return status;
25451 status = pthread_create( &t, &attr, task, NULL );
25452 #if HAVE_PTHREADS < 7
25453 if( status < 0 ) status = errno;
25455 if( status ) return status;
25457 /* Draft 4 pthreads */
25458 status = pthread_create( &t, pthread_attr_default, task, NULL );
25459 if( status ) return errno;
25461 /* give thread a chance to complete */
25462 /* it should remain joinable and hence detachable */
25465 status = pthread_detach( &t );
25466 if( status ) return errno;
25469 #ifdef HAVE_LINUX_THREADS
25470 pthread_kill_other_threads_np();
25478 rm -f conftest$ac_exeext
25479 if { (ac_try="$ac_link"
25480 case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25485 (eval "$ac_link") 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25489 { (case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_try") 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25498 ol_cv_pthread_create_works=yes
25500 echo "$as_me: program exited with status $ac_status" >&5
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ( exit $ac_status )
25505 ol_cv_pthread_create_works=no
25507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25512 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25513 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25515 if test $ol_cv_pthread_create_works = no ; then
25516 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25517 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25518 { (exit 1); exit 1; }; }
25521 ol_replace_broken_yield=no
25523 if test $ol_replace_broken_yield = yes ; then
25525 cat >>confdefs.h <<\_ACEOF
25526 #define REPLACE_BROKEN_YIELD 1
25531 if test $ol_with_yielding_select = auto ; then
25532 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25533 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25534 if test "${ol_cv_pthread_select_yields+set}" = set; then
25535 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 if test "$cross_compiling" = yes; then
25539 ol_cv_pthread_select_yields=cross
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25548 #include <sys/types.h>
25549 #include <sys/time.h>
25550 #include <unistd.h>
25551 #include <pthread.h>
25553 #define NULL (void*) 0
25556 static int fildes[2];
25558 static void *task(p)
25570 FD_SET(fildes[0], &rfds);
25572 /* we're not interested in any fds */
25573 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25580 exit(0); /* if we exit here, the select blocked the whole process */
25583 int main(argc, argv)
25589 /* create a pipe to select */
25590 if(pipe(&fildes[0])) {
25595 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25596 (void) pthread_setconcurrency(2);
25598 #ifdef HAVE_THR_SETCONCURRENCY
25599 /* Set Solaris LWP concurrency to 2 */
25600 thr_setconcurrency(2);
25604 #if HAVE_PTHREADS < 6
25605 pthread_create(&t, pthread_attr_default, task, NULL);
25607 pthread_create(&t, NULL, task, NULL);
25610 /* make sure task runs first */
25611 #ifdef HAVE_THR_YIELD
25613 #elif defined( HAVE_SCHED_YIELD )
25615 #elif defined( HAVE_PTHREAD_YIELD )
25622 rm -f conftest$ac_exeext
25623 if { (ac_try="$ac_link"
25624 case "(($ac_try" in
25625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626 *) ac_try_echo=$ac_try;;
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629 (eval "$ac_link") 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25633 { (case "(($ac_try" in
25634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635 *) ac_try_echo=$ac_try;;
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638 (eval "$ac_try") 2>&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); }; }; then
25642 ol_cv_pthread_select_yields=no
25644 echo "$as_me: program exited with status $ac_status" >&5
25645 echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25648 ( exit $ac_status )
25649 ol_cv_pthread_select_yields=yes
25651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25656 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25657 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25659 if test $ol_cv_pthread_select_yields = cross ; then
25660 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25661 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25662 { (exit 1); exit 1; }; }
25665 if test $ol_cv_pthread_select_yields = yes ; then
25666 ol_with_yielding_select=yes
25670 CPPFLAGS="$save_CPPFLAGS"
25673 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25674 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25675 { (exit 1); exit 1; }; }
25679 if test $ol_with_threads = posix ; then
25680 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25681 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25682 { (exit 1); exit 1; }; }
25687 case $ol_with_threads in auto | yes | mach)
25691 for ac_header in mach/cthreads.h cthreads.h
25693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 ac_res=`eval echo '${'$as_ac_Header'}'`
25701 { echo "$as_me:$LINENO: result: $ac_res" >&5
25702 echo "${ECHO_T}$ac_res" >&6; }
25704 # Is the header compilable?
25705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 $ac_includes_default
25714 #include <$ac_header>
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723 (eval "$ac_compile") 2>conftest.er1
25725 grep -v '^ *+' conftest.er1 >conftest.err
25727 cat conftest.err >&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } && {
25730 test -z "$ac_c_werror_flag" ||
25731 test ! -s conftest.err
25732 } && test -s conftest.$ac_objext; then
25733 ac_header_compiler=yes
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_header_compiler=no
25741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25743 echo "${ECHO_T}$ac_header_compiler" >&6; }
25745 # Is the header present?
25746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25754 #include <$ac_header>
25756 if { (ac_try="$ac_cpp conftest.$ac_ext"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } >/dev/null && {
25769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25772 ac_header_preproc=yes
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_header_preproc=no
25780 rm -f conftest.err conftest.$ac_ext
25781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25782 echo "${ECHO_T}$ac_header_preproc" >&6; }
25784 # So? What about this header?
25785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25791 ac_header_preproc=yes
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25807 ## --------------------------------------------- ##
25808 ## Report this to <http://www.openldap.org/its/> ##
25809 ## --------------------------------------------- ##
25811 ) | sed "s/^/$as_me: WARNING: /" >&2
25814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25819 eval "$as_ac_Header=\$ac_header_preproc"
25821 ac_res=`eval echo '${'$as_ac_Header'}'`
25822 { echo "$as_me:$LINENO: result: $ac_res" >&5
25823 echo "${ECHO_T}$ac_res" >&6; }
25826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25827 cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25835 if test $ac_cv_header_mach_cthreads_h = yes ; then
25836 ol_with_threads=found
25838 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25839 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25840 if test "${ac_cv_func_cthread_fork+set}" = set; then
25841 echo $ECHO_N "(cached) $ECHO_C" >&6
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25851 #define cthread_fork innocuous_cthread_fork
25853 /* System header to define __stub macros and hopefully few prototypes,
25854 which can conflict with char cthread_fork (); below.
25855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25856 <limits.h> exists even on freestanding compilers. */
25859 # include <limits.h>
25861 # include <assert.h>
25864 #undef cthread_fork
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 cthread_fork ();
25873 /* The GNU C library defines this for functions which it implements
25874 to always fail with ENOSYS. Some functions are actually named
25875 something starting with __ and the normal name is an alias. */
25876 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25883 return cthread_fork ();
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (ac_try="$ac_link"
25890 case "(($ac_try" in
25891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892 *) ac_try_echo=$ac_try;;
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895 (eval "$ac_link") 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } && {
25902 test -z "$ac_c_werror_flag" ||
25903 test ! -s conftest.err
25904 } && test -s conftest$ac_exeext &&
25905 $as_test_x conftest$ac_exeext; then
25906 ac_cv_func_cthread_fork=yes
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 ac_cv_func_cthread_fork=no
25914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25915 conftest$ac_exeext conftest.$ac_ext
25917 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25918 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25919 if test $ac_cv_func_cthread_fork = yes; then
25920 ol_link_threads=yes
25924 if test $ol_link_threads = no ; then
25925 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25926 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25927 if test "${ol_cv_cthread_all_load+set}" = set; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25932 LIBS="-all_load $LIBS"
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <mach/cthreads.h>
25944 cthread_fork((void *)0, (void *)0);
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (ac_try="$ac_link"
25952 case "(($ac_try" in
25953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954 *) ac_try_echo=$ac_try;;
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957 (eval "$ac_link") 2>conftest.er1
25959 grep -v '^ *+' conftest.er1 >conftest.err
25961 cat conftest.err >&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } && {
25964 test -z "$ac_c_werror_flag" ||
25965 test ! -s conftest.err
25966 } && test -s conftest$ac_exeext &&
25967 $as_test_x conftest$ac_exeext; then
25968 ol_cv_cthread_all_load=yes
25970 echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25973 ol_cv_cthread_all_load=no
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977 conftest$ac_exeext conftest.$ac_ext
25981 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25982 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25984 if test $ol_cv_cthread_all_load = yes ; then
25985 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25986 ol_link_threads=mach
25987 ol_with_threads=found
25991 elif test $ac_cv_header_cthreads_h = yes ; then
25993 ol_with_threads=found
25996 LIBS="$LIBS -lthreads"
25997 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25998 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25999 if test "${ac_cv_func_cthread_fork+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 cat >conftest.$ac_ext <<_ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26010 #define cthread_fork innocuous_cthread_fork
26012 /* System header to define __stub macros and hopefully few prototypes,
26013 which can conflict with char cthread_fork (); below.
26014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26015 <limits.h> exists even on freestanding compilers. */
26018 # include <limits.h>
26020 # include <assert.h>
26023 #undef cthread_fork
26025 /* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26031 char cthread_fork ();
26032 /* The GNU C library defines this for functions which it implements
26033 to always fail with ENOSYS. Some functions are actually named
26034 something starting with __ and the normal name is an alias. */
26035 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26042 return cthread_fork ();
26047 rm -f conftest.$ac_objext conftest$ac_exeext
26048 if { (ac_try="$ac_link"
26049 case "(($ac_try" in
26050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26051 *) ac_try_echo=$ac_try;;
26053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26054 (eval "$ac_link") 2>conftest.er1
26056 grep -v '^ *+' conftest.er1 >conftest.err
26058 cat conftest.err >&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } && {
26061 test -z "$ac_c_werror_flag" ||
26062 test ! -s conftest.err
26063 } && test -s conftest$ac_exeext &&
26064 $as_test_x conftest$ac_exeext; then
26065 ac_cv_func_cthread_fork=yes
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26070 ac_cv_func_cthread_fork=no
26073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26074 conftest$ac_exeext conftest.$ac_ext
26076 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26077 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26078 if test $ac_cv_func_cthread_fork = yes; then
26079 ol_link_threads=yes
26084 if test $ol_link_threads = yes ; then
26085 LTHREAD_LIBS="-lthreads"
26086 ol_link_threads=mach
26087 ol_with_threads=found
26089 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26090 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26091 { (exit 1); exit 1; }; }
26094 elif test $ol_with_threads = mach ; then
26095 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26096 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26097 { (exit 1); exit 1; }; }
26100 if test $ol_link_threads = mach ; then
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_MACH_CTHREADS 1
26106 elif test $ol_with_threads = found ; then
26107 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26108 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26109 { (exit 1); exit 1; }; }
26114 case $ol_with_threads in auto | yes | pth)
26117 for ac_header in pth.h
26119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26130 # Is the header compilable?
26131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26133 cat >conftest.$ac_ext <<_ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26139 $ac_includes_default
26140 #include <$ac_header>
26142 rm -f conftest.$ac_objext
26143 if { (ac_try="$ac_compile"
26144 case "(($ac_try" in
26145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26146 *) ac_try_echo=$ac_try;;
26148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26149 (eval "$ac_compile") 2>conftest.er1
26151 grep -v '^ *+' conftest.er1 >conftest.err
26153 cat conftest.err >&5
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } && {
26156 test -z "$ac_c_werror_flag" ||
26157 test ! -s conftest.err
26158 } && test -s conftest.$ac_objext; then
26159 ac_header_compiler=yes
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 ac_header_compiler=no
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26169 echo "${ECHO_T}$ac_header_compiler" >&6; }
26171 # Is the header present?
26172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26180 #include <$ac_header>
26182 if { (ac_try="$ac_cpp conftest.$ac_ext"
26183 case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26190 grep -v '^ *+' conftest.er1 >conftest.err
26192 cat conftest.err >&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); } >/dev/null && {
26195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26196 test ! -s conftest.err
26198 ac_header_preproc=yes
26200 echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26203 ac_header_preproc=no
26206 rm -f conftest.err conftest.$ac_ext
26207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26208 echo "${ECHO_T}$ac_header_preproc" >&6; }
26210 # So? What about this header?
26211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26217 ac_header_preproc=yes
26220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26233 ## --------------------------------------------- ##
26234 ## Report this to <http://www.openldap.org/its/> ##
26235 ## --------------------------------------------- ##
26237 ) | sed "s/^/$as_me: WARNING: /" >&2
26240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 eval "$as_ac_Header=\$ac_header_preproc"
26247 ac_res=`eval echo '${'$as_ac_Header'}'`
26248 { echo "$as_me:$LINENO: result: $ac_res" >&5
26249 echo "${ECHO_T}$ac_res" >&6; }
26252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26253 cat >>confdefs.h <<_ACEOF
26254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26262 if test $ac_cv_header_pth_h = yes ; then
26263 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26264 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26265 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26266 echo $ECHO_N "(cached) $ECHO_C" >&6
26268 ac_check_lib_save_LIBS=$LIBS
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26277 /* Override any GCC internal prototype to avoid an error.
26278 Use char because int might match the return type of a GCC
26279 builtin and then its argument prototype would still apply. */
26283 char pth_version ();
26287 return pth_version ();
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (ac_try="$ac_link"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299 (eval "$ac_link") 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } && {
26306 test -z "$ac_c_werror_flag" ||
26307 test ! -s conftest.err
26308 } && test -s conftest$ac_exeext &&
26309 $as_test_x conftest$ac_exeext; then
26310 ac_cv_lib_pth_pth_version=yes
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_cv_lib_pth_pth_version=no
26318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319 conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26322 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26323 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26324 if test $ac_cv_lib_pth_pth_version = yes; then
26331 if test $have_pth = yes ; then
26333 cat >>confdefs.h <<\_ACEOF
26334 #define HAVE_GNU_PTH 1
26337 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26338 ol_link_threads=pth
26339 ol_with_threads=found
26341 if test $ol_with_yielding_select = auto ; then
26342 ol_with_yielding_select=yes
26349 case $ol_with_threads in auto | yes | lwp)
26353 for ac_header in thread.h synch.h
26355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 ac_res=`eval echo '${'$as_ac_Header'}'`
26363 { echo "$as_me:$LINENO: result: $ac_res" >&5
26364 echo "${ECHO_T}$ac_res" >&6; }
26366 # Is the header compilable?
26367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26369 cat >conftest.$ac_ext <<_ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h. */
26375 $ac_includes_default
26376 #include <$ac_header>
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382 *) ac_try_echo=$ac_try;;
26384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26385 (eval "$ac_compile") 2>conftest.er1
26387 grep -v '^ *+' conftest.er1 >conftest.err
26389 cat conftest.err >&5
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); } && {
26392 test -z "$ac_c_werror_flag" ||
26393 test ! -s conftest.err
26394 } && test -s conftest.$ac_objext; then
26395 ac_header_compiler=yes
26397 echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26400 ac_header_compiler=no
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26405 echo "${ECHO_T}$ac_header_compiler" >&6; }
26407 # Is the header present?
26408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26410 cat >conftest.$ac_ext <<_ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 #include <$ac_header>
26418 if { (ac_try="$ac_cpp conftest.$ac_ext"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26426 grep -v '^ *+' conftest.er1 >conftest.err
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } >/dev/null && {
26431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26432 test ! -s conftest.err
26434 ac_header_preproc=yes
26436 echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26439 ac_header_preproc=no
26442 rm -f conftest.err conftest.$ac_ext
26443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26444 echo "${ECHO_T}$ac_header_preproc" >&6; }
26446 # So? What about this header?
26447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26453 ac_header_preproc=yes
26456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26469 ## --------------------------------------------- ##
26470 ## Report this to <http://www.openldap.org/its/> ##
26471 ## --------------------------------------------- ##
26473 ) | sed "s/^/$as_me: WARNING: /" >&2
26476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 eval "$as_ac_Header=\$ac_header_preproc"
26483 ac_res=`eval echo '${'$as_ac_Header'}'`
26484 { echo "$as_me:$LINENO: result: $ac_res" >&5
26485 echo "${ECHO_T}$ac_res" >&6; }
26488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26489 cat >>confdefs.h <<_ACEOF
26490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26497 if test $ac_cv_header_thread_h = yes &&
26498 test $ac_cv_header_synch_h = yes ; then
26499 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26500 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26501 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 ac_check_lib_save_LIBS=$LIBS
26505 LIBS="-lthread $LIBS"
26506 cat >conftest.$ac_ext <<_ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26513 /* Override any GCC internal prototype to avoid an error.
26514 Use char because int might match the return type of a GCC
26515 builtin and then its argument prototype would still apply. */
26519 char thr_create ();
26523 return thr_create ();
26528 rm -f conftest.$ac_objext conftest$ac_exeext
26529 if { (ac_try="$ac_link"
26530 case "(($ac_try" in
26531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26532 *) ac_try_echo=$ac_try;;
26534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26535 (eval "$ac_link") 2>conftest.er1
26537 grep -v '^ *+' conftest.er1 >conftest.err
26539 cat conftest.err >&5
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); } && {
26542 test -z "$ac_c_werror_flag" ||
26543 test ! -s conftest.err
26544 } && test -s conftest$ac_exeext &&
26545 $as_test_x conftest$ac_exeext; then
26546 ac_cv_lib_thread_thr_create=yes
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26551 ac_cv_lib_thread_thr_create=no
26554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26555 conftest$ac_exeext conftest.$ac_ext
26556 LIBS=$ac_check_lib_save_LIBS
26558 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26559 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26560 if test $ac_cv_lib_thread_thr_create = yes; then
26567 if test $have_thr = yes ; then
26569 cat >>confdefs.h <<\_ACEOF
26573 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26574 ol_link_threads=thr
26576 if test $ol_with_yielding_select = auto ; then
26577 ol_with_yielding_select=yes
26583 thr_setconcurrency \
26584 thr_getconcurrency \
26587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26601 #define $ac_func innocuous_$ac_func
26603 /* System header to define __stub macros and hopefully few prototypes,
26604 which can conflict with char $ac_func (); below.
26605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26606 <limits.h> exists even on freestanding compilers. */
26609 # include <limits.h>
26611 # include <assert.h>
26616 /* Override any GCC internal prototype to avoid an error.
26617 Use char because int might match the return type of a GCC
26618 builtin and then its argument prototype would still apply. */
26623 /* The GNU C library defines this for functions which it implements
26624 to always fail with ENOSYS. Some functions are actually named
26625 something starting with __ and the normal name is an alias. */
26626 #if defined __stub_$ac_func || defined __stub___$ac_func
26633 return $ac_func ();
26638 rm -f conftest.$ac_objext conftest$ac_exeext
26639 if { (ac_try="$ac_link"
26640 case "(($ac_try" in
26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645 (eval "$ac_link") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && {
26652 test -z "$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 } && test -s conftest$ac_exeext &&
26655 $as_test_x conftest$ac_exeext; then
26656 eval "$as_ac_var=yes"
26658 echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26661 eval "$as_ac_var=no"
26664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26665 conftest$ac_exeext conftest.$ac_ext
26667 ac_res=`eval echo '${'$as_ac_var'}'`
26668 { echo "$as_me:$LINENO: result: $ac_res" >&5
26669 echo "${ECHO_T}$ac_res" >&6; }
26670 if test `eval echo '${'$as_ac_var'}'` = yes; then
26671 cat >>confdefs.h <<_ACEOF
26672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26683 if test $ol_with_yielding_select = yes ; then
26685 cat >>confdefs.h <<\_ACEOF
26686 #define HAVE_YIELDING_SELECT 1
26691 if test $ol_with_threads = manual ; then
26692 ol_link_threads=yes
26694 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26695 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26699 for ac_header in pthread.h sched.h
26701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 ac_res=`eval echo '${'$as_ac_Header'}'`
26709 { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26712 # Is the header compilable?
26713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26721 $ac_includes_default
26722 #include <$ac_header>
26724 rm -f conftest.$ac_objext
26725 if { (ac_try="$ac_compile"
26726 case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731 (eval "$ac_compile") 2>conftest.er1
26733 grep -v '^ *+' conftest.er1 >conftest.err
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } && {
26738 test -z "$ac_c_werror_flag" ||
26739 test ! -s conftest.err
26740 } && test -s conftest.$ac_objext; then
26741 ac_header_compiler=yes
26743 echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26746 ac_header_compiler=no
26749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26751 echo "${ECHO_T}$ac_header_compiler" >&6; }
26753 # Is the header present?
26754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26756 cat >conftest.$ac_ext <<_ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h. */
26762 #include <$ac_header>
26764 if { (ac_try="$ac_cpp conftest.$ac_ext"
26765 case "(($ac_try" in
26766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767 *) ac_try_echo=$ac_try;;
26769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26772 grep -v '^ *+' conftest.er1 >conftest.err
26774 cat conftest.err >&5
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); } >/dev/null && {
26777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26778 test ! -s conftest.err
26780 ac_header_preproc=yes
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 ac_header_preproc=no
26788 rm -f conftest.err conftest.$ac_ext
26789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26790 echo "${ECHO_T}$ac_header_preproc" >&6; }
26792 # So? What about this header?
26793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26799 ac_header_preproc=yes
26802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26815 ## --------------------------------------------- ##
26816 ## Report this to <http://www.openldap.org/its/> ##
26817 ## --------------------------------------------- ##
26819 ) | sed "s/^/$as_me: WARNING: /" >&2
26822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 eval "$as_ac_Header=\$ac_header_preproc"
26829 ac_res=`eval echo '${'$as_ac_Header'}'`
26830 { echo "$as_me:$LINENO: result: $ac_res" >&5
26831 echo "${ECHO_T}$ac_res" >&6; }
26834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26835 cat >>confdefs.h <<_ACEOF
26836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26845 for ac_func in sched_yield pthread_yield
26847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26851 echo $ECHO_N "(cached) $ECHO_C" >&6
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26861 #define $ac_func innocuous_$ac_func
26863 /* System header to define __stub macros and hopefully few prototypes,
26864 which can conflict with char $ac_func (); below.
26865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26866 <limits.h> exists even on freestanding compilers. */
26869 # include <limits.h>
26871 # include <assert.h>
26876 /* Override any GCC internal prototype to avoid an error.
26877 Use char because int might match the return type of a GCC
26878 builtin and then its argument prototype would still apply. */
26883 /* The GNU C library defines this for functions which it implements
26884 to always fail with ENOSYS. Some functions are actually named
26885 something starting with __ and the normal name is an alias. */
26886 #if defined __stub_$ac_func || defined __stub___$ac_func
26893 return $ac_func ();
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } && {
26912 test -z "$ac_c_werror_flag" ||
26913 test ! -s conftest.err
26914 } && test -s conftest$ac_exeext &&
26915 $as_test_x conftest$ac_exeext; then
26916 eval "$as_ac_var=yes"
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26921 eval "$as_ac_var=no"
26924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26925 conftest$ac_exeext conftest.$ac_ext
26927 ac_res=`eval echo '${'$as_ac_var'}'`
26928 { echo "$as_me:$LINENO: result: $ac_res" >&5
26929 echo "${ECHO_T}$ac_res" >&6; }
26930 if test `eval echo '${'$as_ac_var'}'` = yes; then
26931 cat >>confdefs.h <<_ACEOF
26932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26939 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26940 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26941 if test "${ol_cv_header_linux_threads+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26944 cat >conftest.$ac_ext <<_ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26950 #include <pthread.h>
26952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26953 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26954 ol_cv_header_linux_threads=yes
26956 ol_cv_header_linux_threads=no
26962 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26963 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26964 if test $ol_cv_header_linux_threads = yes; then
26966 cat >>confdefs.h <<\_ACEOF
26967 #define HAVE_LINUX_THREADS 1
26974 for ac_header in mach/cthreads.h
26976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 ac_res=`eval echo '${'$as_ac_Header'}'`
26984 { echo "$as_me:$LINENO: result: $ac_res" >&5
26985 echo "${ECHO_T}$ac_res" >&6; }
26987 # Is the header compilable?
26988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26990 cat >conftest.$ac_ext <<_ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
26996 $ac_includes_default
26997 #include <$ac_header>
26999 rm -f conftest.$ac_objext
27000 if { (ac_try="$ac_compile"
27001 case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_compile") 2>conftest.er1
27008 grep -v '^ *+' conftest.er1 >conftest.err
27010 cat conftest.err >&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); } && {
27013 test -z "$ac_c_werror_flag" ||
27014 test ! -s conftest.err
27015 } && test -s conftest.$ac_objext; then
27016 ac_header_compiler=yes
27018 echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27021 ac_header_compiler=no
27024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27026 echo "${ECHO_T}$ac_header_compiler" >&6; }
27028 # Is the header present?
27029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27031 cat >conftest.$ac_ext <<_ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h. */
27037 #include <$ac_header>
27039 if { (ac_try="$ac_cpp conftest.$ac_ext"
27040 case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27047 grep -v '^ *+' conftest.er1 >conftest.err
27049 cat conftest.err >&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); } >/dev/null && {
27052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27053 test ! -s conftest.err
27055 ac_header_preproc=yes
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27060 ac_header_preproc=no
27063 rm -f conftest.err conftest.$ac_ext
27064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27065 echo "${ECHO_T}$ac_header_preproc" >&6; }
27067 # So? What about this header?
27068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27074 ac_header_preproc=yes
27077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27090 ## --------------------------------------------- ##
27091 ## Report this to <http://www.openldap.org/its/> ##
27092 ## --------------------------------------------- ##
27094 ) | sed "s/^/$as_me: WARNING: /" >&2
27097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27102 eval "$as_ac_Header=\$ac_header_preproc"
27104 ac_res=`eval echo '${'$as_ac_Header'}'`
27105 { echo "$as_me:$LINENO: result: $ac_res" >&5
27106 echo "${ECHO_T}$ac_res" >&6; }
27109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27110 cat >>confdefs.h <<_ACEOF
27111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27120 for ac_header in thread.h synch.h
27122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27127 echo $ECHO_N "(cached) $ECHO_C" >&6
27129 ac_res=`eval echo '${'$as_ac_Header'}'`
27130 { echo "$as_me:$LINENO: result: $ac_res" >&5
27131 echo "${ECHO_T}$ac_res" >&6; }
27133 # Is the header compilable?
27134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27142 $ac_includes_default
27143 #include <$ac_header>
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_compile") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } && {
27159 test -z "$ac_c_werror_flag" ||
27160 test ! -s conftest.err
27161 } && test -s conftest.$ac_objext; then
27162 ac_header_compiler=yes
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27167 ac_header_compiler=no
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27172 echo "${ECHO_T}$ac_header_compiler" >&6; }
27174 # Is the header present?
27175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27177 cat >conftest.$ac_ext <<_ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h. */
27183 #include <$ac_header>
27185 if { (ac_try="$ac_cpp conftest.$ac_ext"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27193 grep -v '^ *+' conftest.er1 >conftest.err
27195 cat conftest.err >&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } >/dev/null && {
27198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27199 test ! -s conftest.err
27201 ac_header_preproc=yes
27203 echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27206 ac_header_preproc=no
27209 rm -f conftest.err conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27211 echo "${ECHO_T}$ac_header_preproc" >&6; }
27213 # So? What about this header?
27214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27220 ac_header_preproc=yes
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27236 ## --------------------------------------------- ##
27237 ## Report this to <http://www.openldap.org/its/> ##
27238 ## --------------------------------------------- ##
27240 ) | sed "s/^/$as_me: WARNING: /" >&2
27243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27246 echo $ECHO_N "(cached) $ECHO_C" >&6
27248 eval "$as_ac_Header=\$ac_header_preproc"
27250 ac_res=`eval echo '${'$as_ac_Header'}'`
27251 { echo "$as_me:$LINENO: result: $ac_res" >&5
27252 echo "${ECHO_T}$ac_res" >&6; }
27255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27256 cat >>confdefs.h <<_ACEOF
27257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27266 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27267 cat >>confdefs.h <<\_ACEOF
27268 #define REENTRANT 1
27271 cat >>confdefs.h <<\_ACEOF
27272 #define _REENTRANT 1
27275 cat >>confdefs.h <<\_ACEOF
27276 #define THREAD_SAFE 1
27279 cat >>confdefs.h <<\_ACEOF
27280 #define _THREAD_SAFE 1
27283 cat >>confdefs.h <<\_ACEOF
27284 #define THREADSAFE 1
27287 cat >>confdefs.h <<\_ACEOF
27288 #define _THREADSAFE 1
27291 cat >>confdefs.h <<\_ACEOF
27292 #define _SGI_MP_SOURCE 1
27296 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27297 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27298 if test "${ol_cv_errno_thread_specific+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 cat >conftest.$ac_ext <<_ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_link") 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest$ac_exeext &&
27334 $as_test_x conftest$ac_exeext; then
27335 ol_cv_errno_thread_specific=yes
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 ol_cv_errno_thread_specific=no
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344 conftest$ac_exeext conftest.$ac_ext
27347 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27348 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27350 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27351 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27352 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27353 echo $ECHO_N "(cached) $ECHO_C" >&6
27356 cat >conftest.$ac_ext <<_ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h. */
27371 rm -f conftest.$ac_objext conftest$ac_exeext
27372 if { (ac_try="$ac_link"
27373 case "(($ac_try" in
27374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375 *) ac_try_echo=$ac_try;;
27377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378 (eval "$ac_link") 2>conftest.er1
27380 grep -v '^ *+' conftest.er1 >conftest.err
27382 cat conftest.err >&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); } && {
27385 test -z "$ac_c_werror_flag" ||
27386 test ! -s conftest.err
27387 } && test -s conftest$ac_exeext &&
27388 $as_test_x conftest$ac_exeext; then
27389 ol_cv_h_errno_thread_specific=yes
27391 echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27394 ol_cv_h_errno_thread_specific=no
27397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27398 conftest$ac_exeext conftest.$ac_ext
27401 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27402 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27404 if test $ol_cv_errno_thread_specific != yes ||
27405 test $ol_cv_h_errno_thread_specific != yes ; then
27406 LIBS="$LTHREAD_LIBS $LIBS"
27412 if test $ol_link_threads = no ; then
27413 if test $ol_with_threads = yes ; then
27414 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27415 echo "$as_me: error: no suitable thread support" >&2;}
27416 { (exit 1); exit 1; }; }
27419 if test $ol_with_threads = auto ; then
27420 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27421 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27426 cat >>confdefs.h <<\_ACEOF
27427 #define NO_THREADS 1
27436 if test $ol_link_threads != no ; then
27438 cat >>confdefs.h <<\_ACEOF
27439 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27451 gmtime_r localtime_r \
27452 gethostbyname_r gethostbyaddr_r \
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27461 cat >conftest.$ac_ext <<_ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h. */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27469 #define $ac_func innocuous_$ac_func
27471 /* System header to define __stub macros and hopefully few prototypes,
27472 which can conflict with char $ac_func (); below.
27473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474 <limits.h> exists even on freestanding compilers. */
27477 # include <limits.h>
27479 # include <assert.h>
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27491 /* The GNU C library defines this for functions which it implements
27492 to always fail with ENOSYS. Some functions are actually named
27493 something starting with __ and the normal name is an alias. */
27494 #if defined __stub_$ac_func || defined __stub___$ac_func
27501 return $ac_func ();
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (ac_try="$ac_link"
27508 case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_link") 2>conftest.er1
27515 grep -v '^ *+' conftest.er1 >conftest.err
27517 cat conftest.err >&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } && {
27520 test -z "$ac_c_werror_flag" ||
27521 test ! -s conftest.err
27522 } && test -s conftest$ac_exeext &&
27523 $as_test_x conftest$ac_exeext; then
27524 eval "$as_ac_var=yes"
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27529 eval "$as_ac_var=no"
27532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27533 conftest$ac_exeext conftest.$ac_ext
27535 ac_res=`eval echo '${'$as_ac_var'}'`
27536 { echo "$as_me:$LINENO: result: $ac_res" >&5
27537 echo "${ECHO_T}$ac_res" >&6; }
27538 if test `eval echo '${'$as_ac_var'}'` = yes; then
27539 cat >>confdefs.h <<_ACEOF
27540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27547 if test "$ac_cv_func_ctime_r" = no ; then
27548 ol_cv_func_ctime_r_nargs=0
27550 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27551 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27552 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 cat >conftest.$ac_ext <<_ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27565 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27570 rm -f conftest.$ac_objext
27571 if { (ac_try="$ac_compile"
27572 case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_compile") 2>conftest.er1
27579 grep -v '^ *+' conftest.er1 >conftest.err
27581 cat conftest.err >&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } && {
27584 test -z "$ac_c_werror_flag" ||
27585 test ! -s conftest.err
27586 } && test -s conftest.$ac_objext; then
27587 ol_cv_func_ctime_r_nargs3=yes
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27592 ol_cv_func_ctime_r_nargs3=no
27595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 cat >conftest.$ac_ext <<_ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27607 time_t ti; char *buffer; ctime_r(&ti,buffer);
27612 rm -f conftest.$ac_objext
27613 if { (ac_try="$ac_compile"
27614 case "(($ac_try" in
27615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_compile") 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } && {
27626 test -z "$ac_c_werror_flag" ||
27627 test ! -s conftest.err
27628 } && test -s conftest.$ac_objext; then
27629 ol_cv_func_ctime_r_nargs2=yes
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27634 ol_cv_func_ctime_r_nargs2=no
27637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27640 test $ol_cv_func_ctime_r_nargs2 = no ; then
27642 ol_cv_func_ctime_r_nargs=3
27644 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27645 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27647 ol_cv_func_ctime_r_nargs=2
27650 ol_cv_func_ctime_r_nargs=0
27654 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27655 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27657 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27659 cat >>confdefs.h <<_ACEOF
27660 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27667 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27668 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27669 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27670 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27673 cat >conftest.$ac_ext <<_ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27679 #include <sys/types.h>
27680 #include <sys/socket.h>
27681 #include <netinet/in.h>
27683 #define BUFSIZE (sizeof(struct hostent)+10)
27687 struct hostent hent; char buffer[BUFSIZE];
27688 int bufsize=BUFSIZE;int h_errno;
27689 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27690 buffer, bufsize, &h_errno);
27695 rm -f conftest.$ac_objext
27696 if { (ac_try="$ac_compile"
27697 case "(($ac_try" in
27698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699 *) ac_try_echo=$ac_try;;
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702 (eval "$ac_compile") 2>conftest.er1
27704 grep -v '^ *+' conftest.er1 >conftest.err
27706 cat conftest.err >&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } && {
27709 test -z "$ac_c_werror_flag" ||
27710 test ! -s conftest.err
27711 } && test -s conftest.$ac_objext; then
27712 ol_cv_func_gethostbyname_r_nargs5=yes
27714 echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27717 ol_cv_func_gethostbyname_r_nargs5=no
27720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 cat >conftest.$ac_ext <<_ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #include <sys/types.h>
27729 #include <sys/socket.h>
27730 #include <netinet/in.h>
27732 #define BUFSIZE (sizeof(struct hostent)+10)
27736 struct hostent hent;struct hostent *rhent;
27737 char buffer[BUFSIZE];
27738 int bufsize=BUFSIZE;int h_errno;
27739 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27745 rm -f conftest.$ac_objext
27746 if { (ac_try="$ac_compile"
27747 case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_compile") 2>conftest.er1
27754 grep -v '^ *+' conftest.er1 >conftest.err
27756 cat conftest.err >&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); } && {
27759 test -z "$ac_c_werror_flag" ||
27760 test ! -s conftest.err
27761 } && test -s conftest.$ac_objext; then
27762 ol_cv_func_gethostbyname_r_nargs6=yes
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27767 ol_cv_func_gethostbyname_r_nargs6=no
27770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27772 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27773 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27775 ol_cv_func_gethostbyname_r_nargs=5
27777 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27778 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27780 ol_cv_func_gethostbyname_r_nargs=6
27783 ol_cv_func_gethostbyname_r_nargs=0
27787 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27788 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27789 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27791 cat >>confdefs.h <<_ACEOF
27792 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27798 ol_cv_func_gethostbyname_r_nargs=0
27801 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27802 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27803 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27804 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
27807 cat >conftest.$ac_ext <<_ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h. */
27813 #include <sys/types.h>
27814 #include <sys/socket.h>
27815 #include <netinet/in.h>
27817 #define BUFSIZE (sizeof(struct hostent)+10)
27821 struct hostent hent; char buffer[BUFSIZE];
27822 struct in_addr add;
27823 size_t alen=sizeof(struct in_addr);
27824 int bufsize=BUFSIZE;int h_errno;
27825 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27826 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27831 rm -f conftest.$ac_objext
27832 if { (ac_try="$ac_compile"
27833 case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_compile") 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } && {
27845 test -z "$ac_c_werror_flag" ||
27846 test ! -s conftest.err
27847 } && test -s conftest.$ac_objext; then
27848 ol_cv_func_gethostbyaddr_r_nargs7=yes
27850 echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27853 ol_cv_func_gethostbyaddr_r_nargs7=no
27856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27858 cat >conftest.$ac_ext <<_ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27864 #include <sys/types.h>
27865 #include <sys/socket.h>
27866 #include <netinet/in.h>
27868 #define BUFSIZE (sizeof(struct hostent)+10)
27872 struct hostent hent;
27873 struct hostent *rhent; char buffer[BUFSIZE];
27874 struct in_addr add;
27875 size_t alen=sizeof(struct in_addr);
27876 int bufsize=BUFSIZE;int h_errno;
27877 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27878 alen, AF_INET, &hent, buffer, bufsize,
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_compile") 2>conftest.er1
27893 grep -v '^ *+' conftest.er1 >conftest.err
27895 cat conftest.err >&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } && {
27898 test -z "$ac_c_werror_flag" ||
27899 test ! -s conftest.err
27900 } && test -s conftest.$ac_objext; then
27901 ol_cv_func_gethostbyaddr_r_nargs8=yes
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27906 ol_cv_func_gethostbyaddr_r_nargs8=no
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27912 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27914 ol_cv_func_gethostbyaddr_r_nargs=7
27916 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27917 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27919 ol_cv_func_gethostbyaddr_r_nargs=8
27922 ol_cv_func_gethostbyaddr_r_nargs=0
27926 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27927 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27928 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27930 cat >>confdefs.h <<_ACEOF
27931 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27937 ol_cv_func_gethostbyaddr_r_nargs=0
27942 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27943 ol_cv_berkeley_db=no
27945 for ac_header in db.h
27947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27952 echo $ECHO_N "(cached) $ECHO_C" >&6
27954 ac_res=`eval echo '${'$as_ac_Header'}'`
27955 { echo "$as_me:$LINENO: result: $ac_res" >&5
27956 echo "${ECHO_T}$ac_res" >&6; }
27958 # Is the header compilable?
27959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27961 cat >conftest.$ac_ext <<_ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h. */
27967 $ac_includes_default
27968 #include <$ac_header>
27970 rm -f conftest.$ac_objext
27971 if { (ac_try="$ac_compile"
27972 case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_compile") 2>conftest.er1
27979 grep -v '^ *+' conftest.er1 >conftest.err
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } && {
27984 test -z "$ac_c_werror_flag" ||
27985 test ! -s conftest.err
27986 } && test -s conftest.$ac_objext; then
27987 ac_header_compiler=yes
27989 echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27992 ac_header_compiler=no
27995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27997 echo "${ECHO_T}$ac_header_compiler" >&6; }
27999 # Is the header present?
28000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28002 cat >conftest.$ac_ext <<_ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 #include <$ac_header>
28010 if { (ac_try="$ac_cpp conftest.$ac_ext"
28011 case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } >/dev/null && {
28023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28024 test ! -s conftest.err
28026 ac_header_preproc=yes
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 ac_header_preproc=no
28034 rm -f conftest.err conftest.$ac_ext
28035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28036 echo "${ECHO_T}$ac_header_preproc" >&6; }
28038 # So? What about this header?
28039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28045 ac_header_preproc=yes
28048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28061 ## --------------------------------------------- ##
28062 ## Report this to <http://www.openldap.org/its/> ##
28063 ## --------------------------------------------- ##
28065 ) | sed "s/^/$as_me: WARNING: /" >&2
28068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28071 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 eval "$as_ac_Header=\$ac_header_preproc"
28075 ac_res=`eval echo '${'$as_ac_Header'}'`
28076 { echo "$as_me:$LINENO: result: $ac_res" >&5
28077 echo "${ECHO_T}$ac_res" >&6; }
28080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28081 cat >>confdefs.h <<_ACEOF
28082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28089 if test $ac_cv_header_db_h = yes; then
28090 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28091 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28092 if test "${ol_cv_bdb_major+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28096 cat >conftest.$ac_ext <<_ACEOF
28099 #ifndef DB_VERSION_MAJOR
28100 # define DB_VERSION_MAJOR 1
28102 __db_version DB_VERSION_MAJOR
28105 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28106 ol_cv_bdb_major=${3}
28109 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28110 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28111 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28112 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28113 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28114 { (exit 1); exit 1; }; } ;;
28117 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28118 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28119 if test "${ol_cv_bdb_minor+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 cat >conftest.$ac_ext <<_ACEOF
28126 #ifndef DB_VERSION_MINOR
28127 # define DB_VERSION_MINOR 0
28129 __db_version DB_VERSION_MINOR
28132 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28133 ol_cv_bdb_minor=${3}
28136 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28137 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28138 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28139 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28140 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28141 { (exit 1); exit 1; }; } ;;
28144 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28145 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28146 if test "${ol_cv_bdb_compat+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28150 cat >conftest.$ac_ext <<_ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28159 /* this check could be improved */
28160 #ifndef DB_VERSION_MAJOR
28161 # define DB_VERSION_MAJOR 1
28163 #ifndef DB_VERSION_MINOR
28164 # define DB_VERSION_MINOR 0
28167 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28169 /* require 4.4 or later */
28170 #if DB_VERSION_MM >= 0x0404
28171 __db_version_compat
28175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28176 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28177 ol_cv_bdb_compat=yes
28179 ol_cv_bdb_compat=no
28184 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28185 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28188 if test $ol_cv_bdb_compat != yes ; then
28189 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28190 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28191 { (exit 1); exit 1; }; }
28196 if test $ol_cv_bdb_major = 5 ; then
28197 if test $ol_cv_lib_db = no ; then
28198 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28199 echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28200 if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28201 echo $ECHO_N "(cached) $ECHO_C" >&6
28204 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28206 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28208 cat >conftest.$ac_ext <<_ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h. */
28215 #ifdef HAVE_DB_185_H
28216 # include <db_185.h>
28221 #ifndef DB_VERSION_MAJOR
28222 # define DB_VERSION_MAJOR 1
28226 #define NULL ((void*)0)
28233 #if DB_VERSION_MAJOR > 2
28234 db_env_create( NULL, 0 );
28235 #elif DB_VERSION_MAJOR > 1
28236 db_appexit( NULL );
28238 (void) dbopen( NULL, 0, 0, 0, NULL);
28245 rm -f conftest.$ac_objext conftest$ac_exeext
28246 if { (ac_try="$ac_link"
28247 case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_link") 2>conftest.er1
28254 grep -v '^ *+' conftest.er1 >conftest.err
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } && {
28259 test -z "$ac_c_werror_flag" ||
28260 test ! -s conftest.err
28261 } && test -s conftest$ac_exeext &&
28262 $as_test_x conftest$ac_exeext; then
28263 ol_cv_db_db_5_dot_m=yes
28265 echo "$as_me: failed program was:" >&5
28266 sed 's/^/| /' conftest.$ac_ext >&5
28268 ol_cv_db_db_5_dot_m=no
28271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28272 conftest$ac_exeext conftest.$ac_ext
28277 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28278 echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28280 if test $ol_cv_db_db_5_dot_m = yes ; then
28281 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28285 if test $ol_cv_lib_db = no ; then
28286 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28287 echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28288 if test "${ol_cv_db_db5m+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28292 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28294 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28296 cat >conftest.$ac_ext <<_ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h. */
28303 #ifdef HAVE_DB_185_H
28304 # include <db_185.h>
28309 #ifndef DB_VERSION_MAJOR
28310 # define DB_VERSION_MAJOR 1
28314 #define NULL ((void*)0)
28321 #if DB_VERSION_MAJOR > 2
28322 db_env_create( NULL, 0 );
28323 #elif DB_VERSION_MAJOR > 1
28324 db_appexit( NULL );
28326 (void) dbopen( NULL, 0, 0, 0, NULL);
28333 rm -f conftest.$ac_objext conftest$ac_exeext
28334 if { (ac_try="$ac_link"
28335 case "(($ac_try" in
28336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337 *) ac_try_echo=$ac_try;;
28339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340 (eval "$ac_link") 2>conftest.er1
28342 grep -v '^ *+' conftest.er1 >conftest.err
28344 cat conftest.err >&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } && {
28347 test -z "$ac_c_werror_flag" ||
28348 test ! -s conftest.err
28349 } && test -s conftest$ac_exeext &&
28350 $as_test_x conftest$ac_exeext; then
28353 echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28360 conftest$ac_exeext conftest.$ac_ext
28365 { echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28366 echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28368 if test $ol_cv_db_db5m = yes ; then
28369 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28373 if test $ol_cv_lib_db = no ; then
28374 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28375 echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28376 if test "${ol_cv_db_db_5m+set}" = set; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28380 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28382 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28384 cat >conftest.$ac_ext <<_ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h. */
28391 #ifdef HAVE_DB_185_H
28392 # include <db_185.h>
28397 #ifndef DB_VERSION_MAJOR
28398 # define DB_VERSION_MAJOR 1
28402 #define NULL ((void*)0)
28409 #if DB_VERSION_MAJOR > 2
28410 db_env_create( NULL, 0 );
28411 #elif DB_VERSION_MAJOR > 1
28412 db_appexit( NULL );
28414 (void) dbopen( NULL, 0, 0, 0, NULL);
28421 rm -f conftest.$ac_objext conftest$ac_exeext
28422 if { (ac_try="$ac_link"
28423 case "(($ac_try" in
28424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 *) ac_try_echo=$ac_try;;
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428 (eval "$ac_link") 2>conftest.er1
28430 grep -v '^ *+' conftest.er1 >conftest.err
28432 cat conftest.err >&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); } && {
28435 test -z "$ac_c_werror_flag" ||
28436 test ! -s conftest.err
28437 } && test -s conftest$ac_exeext &&
28438 $as_test_x conftest$ac_exeext; then
28441 echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28448 conftest$ac_exeext conftest.$ac_ext
28453 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28454 echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28456 if test $ol_cv_db_db_5m = yes ; then
28457 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28461 if test $ol_cv_lib_db = no ; then
28462 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28463 echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28464 if test "${ol_cv_db_db_5_m+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28479 #ifdef HAVE_DB_185_H
28480 # include <db_185.h>
28485 #ifndef DB_VERSION_MAJOR
28486 # define DB_VERSION_MAJOR 1
28490 #define NULL ((void*)0)
28497 #if DB_VERSION_MAJOR > 2
28498 db_env_create( NULL, 0 );
28499 #elif DB_VERSION_MAJOR > 1
28500 db_appexit( NULL );
28502 (void) dbopen( NULL, 0, 0, 0, NULL);
28509 rm -f conftest.$ac_objext conftest$ac_exeext
28510 if { (ac_try="$ac_link"
28511 case "(($ac_try" in
28512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513 *) ac_try_echo=$ac_try;;
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516 (eval "$ac_link") 2>conftest.er1
28518 grep -v '^ *+' conftest.er1 >conftest.err
28520 cat conftest.err >&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } && {
28523 test -z "$ac_c_werror_flag" ||
28524 test ! -s conftest.err
28525 } && test -s conftest$ac_exeext &&
28526 $as_test_x conftest$ac_exeext; then
28527 ol_cv_db_db_5_m=yes
28529 echo "$as_me: failed program was:" >&5
28530 sed 's/^/| /' conftest.$ac_ext >&5
28535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28536 conftest$ac_exeext conftest.$ac_ext
28541 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28542 echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28544 if test $ol_cv_db_db_5_m = yes ; then
28545 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28549 if test $ol_cv_lib_db = no ; then
28550 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28551 echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28552 if test "${ol_cv_db_db_5+set}" = set; then
28553 echo $ECHO_N "(cached) $ECHO_C" >&6
28558 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28560 cat >conftest.$ac_ext <<_ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28567 #ifdef HAVE_DB_185_H
28568 # include <db_185.h>
28573 #ifndef DB_VERSION_MAJOR
28574 # define DB_VERSION_MAJOR 1
28578 #define NULL ((void*)0)
28585 #if DB_VERSION_MAJOR > 2
28586 db_env_create( NULL, 0 );
28587 #elif DB_VERSION_MAJOR > 1
28588 db_appexit( NULL );
28590 (void) dbopen( NULL, 0, 0, 0, NULL);
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (ac_try="$ac_link"
28599 case "(($ac_try" in
28600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 *) ac_try_echo=$ac_try;;
28603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604 (eval "$ac_link") 2>conftest.er1
28606 grep -v '^ *+' conftest.er1 >conftest.err
28608 cat conftest.err >&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } && {
28611 test -z "$ac_c_werror_flag" ||
28612 test ! -s conftest.err
28613 } && test -s conftest$ac_exeext &&
28614 $as_test_x conftest$ac_exeext; then
28617 echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28624 conftest$ac_exeext conftest.$ac_ext
28629 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28630 echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28632 if test $ol_cv_db_db_5 = yes ; then
28633 ol_cv_lib_db=-ldb-5
28637 if test $ol_cv_lib_db = no ; then
28638 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28639 echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28640 if test "${ol_cv_db_db5+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28646 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28648 cat >conftest.$ac_ext <<_ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28655 #ifdef HAVE_DB_185_H
28656 # include <db_185.h>
28661 #ifndef DB_VERSION_MAJOR
28662 # define DB_VERSION_MAJOR 1
28666 #define NULL ((void*)0)
28673 #if DB_VERSION_MAJOR > 2
28674 db_env_create( NULL, 0 );
28675 #elif DB_VERSION_MAJOR > 1
28676 db_appexit( NULL );
28678 (void) dbopen( NULL, 0, 0, 0, NULL);
28685 rm -f conftest.$ac_objext conftest$ac_exeext
28686 if { (ac_try="$ac_link"
28687 case "(($ac_try" in
28688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689 *) ac_try_echo=$ac_try;;
28691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28692 (eval "$ac_link") 2>conftest.er1
28694 grep -v '^ *+' conftest.er1 >conftest.err
28696 cat conftest.err >&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); } && {
28699 test -z "$ac_c_werror_flag" ||
28700 test ! -s conftest.err
28701 } && test -s conftest$ac_exeext &&
28702 $as_test_x conftest$ac_exeext; then
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28712 conftest$ac_exeext conftest.$ac_ext
28717 { echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28718 echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28720 if test $ol_cv_db_db5 = yes ; then
28725 elif test $ol_cv_bdb_major = 4 ; then
28726 if test $ol_cv_lib_db = no ; then
28727 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28728 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28729 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28735 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28737 cat >conftest.$ac_ext <<_ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h. */
28744 #ifdef HAVE_DB_185_H
28745 # include <db_185.h>
28750 #ifndef DB_VERSION_MAJOR
28751 # define DB_VERSION_MAJOR 1
28755 #define NULL ((void*)0)
28762 #if DB_VERSION_MAJOR > 2
28763 db_env_create( NULL, 0 );
28764 #elif DB_VERSION_MAJOR > 1
28765 db_appexit( NULL );
28767 (void) dbopen( NULL, 0, 0, 0, NULL);
28774 rm -f conftest.$ac_objext conftest$ac_exeext
28775 if { (ac_try="$ac_link"
28776 case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_link") 2>conftest.er1
28783 grep -v '^ *+' conftest.er1 >conftest.err
28785 cat conftest.err >&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); } && {
28788 test -z "$ac_c_werror_flag" ||
28789 test ! -s conftest.err
28790 } && test -s conftest$ac_exeext &&
28791 $as_test_x conftest$ac_exeext; then
28792 ol_cv_db_db_4_dot_m=yes
28794 echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28797 ol_cv_db_db_4_dot_m=no
28800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28801 conftest$ac_exeext conftest.$ac_ext
28806 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28807 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28809 if test $ol_cv_db_db_4_dot_m = yes ; then
28810 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28814 if test $ol_cv_lib_db = no ; then
28815 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28816 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28817 if test "${ol_cv_db_db4m+set}" = set; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28821 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28823 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28825 cat >conftest.$ac_ext <<_ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h. */
28832 #ifdef HAVE_DB_185_H
28833 # include <db_185.h>
28838 #ifndef DB_VERSION_MAJOR
28839 # define DB_VERSION_MAJOR 1
28843 #define NULL ((void*)0)
28850 #if DB_VERSION_MAJOR > 2
28851 db_env_create( NULL, 0 );
28852 #elif DB_VERSION_MAJOR > 1
28853 db_appexit( NULL );
28855 (void) dbopen( NULL, 0, 0, 0, NULL);
28862 rm -f conftest.$ac_objext conftest$ac_exeext
28863 if { (ac_try="$ac_link"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_link") 2>conftest.er1
28871 grep -v '^ *+' conftest.er1 >conftest.err
28873 cat conftest.err >&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } && {
28876 test -z "$ac_c_werror_flag" ||
28877 test ! -s conftest.err
28878 } && test -s conftest$ac_exeext &&
28879 $as_test_x conftest$ac_exeext; then
28882 echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28889 conftest$ac_exeext conftest.$ac_ext
28894 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28895 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28897 if test $ol_cv_db_db4m = yes ; then
28898 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28902 if test $ol_cv_lib_db = no ; then
28903 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28904 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28905 if test "${ol_cv_db_db_4m+set}" = set; then
28906 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28920 #ifdef HAVE_DB_185_H
28921 # include <db_185.h>
28926 #ifndef DB_VERSION_MAJOR
28927 # define DB_VERSION_MAJOR 1
28931 #define NULL ((void*)0)
28938 #if DB_VERSION_MAJOR > 2
28939 db_env_create( NULL, 0 );
28940 #elif DB_VERSION_MAJOR > 1
28941 db_appexit( NULL );
28943 (void) dbopen( NULL, 0, 0, 0, NULL);
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (ac_try="$ac_link"
28952 case "(($ac_try" in
28953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954 *) ac_try_echo=$ac_try;;
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957 (eval "$ac_link") 2>conftest.er1
28959 grep -v '^ *+' conftest.er1 >conftest.err
28961 cat conftest.err >&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } && {
28964 test -z "$ac_c_werror_flag" ||
28965 test ! -s conftest.err
28966 } && test -s conftest$ac_exeext &&
28967 $as_test_x conftest$ac_exeext; then
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28977 conftest$ac_exeext conftest.$ac_ext
28982 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28983 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28985 if test $ol_cv_db_db_4m = yes ; then
28986 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28990 if test $ol_cv_lib_db = no ; then
28991 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28992 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28993 if test "${ol_cv_db_db_4_m+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28999 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29001 cat >conftest.$ac_ext <<_ACEOF
29004 cat confdefs.h >>conftest.$ac_ext
29005 cat >>conftest.$ac_ext <<_ACEOF
29006 /* end confdefs.h. */
29008 #ifdef HAVE_DB_185_H
29009 # include <db_185.h>
29014 #ifndef DB_VERSION_MAJOR
29015 # define DB_VERSION_MAJOR 1
29019 #define NULL ((void*)0)
29026 #if DB_VERSION_MAJOR > 2
29027 db_env_create( NULL, 0 );
29028 #elif DB_VERSION_MAJOR > 1
29029 db_appexit( NULL );
29031 (void) dbopen( NULL, 0, 0, 0, NULL);
29038 rm -f conftest.$ac_objext conftest$ac_exeext
29039 if { (ac_try="$ac_link"
29040 case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045 (eval "$ac_link") 2>conftest.er1
29047 grep -v '^ *+' conftest.er1 >conftest.err
29049 cat conftest.err >&5
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } && {
29052 test -z "$ac_c_werror_flag" ||
29053 test ! -s conftest.err
29054 } && test -s conftest$ac_exeext &&
29055 $as_test_x conftest$ac_exeext; then
29056 ol_cv_db_db_4_m=yes
29058 echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29065 conftest$ac_exeext conftest.$ac_ext
29070 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29071 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29073 if test $ol_cv_db_db_4_m = yes ; then
29074 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29078 if test $ol_cv_lib_db = no ; then
29079 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29080 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29081 if test "${ol_cv_db_db_4+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29087 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29089 cat >conftest.$ac_ext <<_ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29096 #ifdef HAVE_DB_185_H
29097 # include <db_185.h>
29102 #ifndef DB_VERSION_MAJOR
29103 # define DB_VERSION_MAJOR 1
29107 #define NULL ((void*)0)
29114 #if DB_VERSION_MAJOR > 2
29115 db_env_create( NULL, 0 );
29116 #elif DB_VERSION_MAJOR > 1
29117 db_appexit( NULL );
29119 (void) dbopen( NULL, 0, 0, 0, NULL);
29126 rm -f conftest.$ac_objext conftest$ac_exeext
29127 if { (ac_try="$ac_link"
29128 case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_link") 2>conftest.er1
29135 grep -v '^ *+' conftest.er1 >conftest.err
29137 cat conftest.err >&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } && {
29140 test -z "$ac_c_werror_flag" ||
29141 test ! -s conftest.err
29142 } && test -s conftest$ac_exeext &&
29143 $as_test_x conftest$ac_exeext; then
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29153 conftest$ac_exeext conftest.$ac_ext
29158 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29159 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29161 if test $ol_cv_db_db_4 = yes ; then
29162 ol_cv_lib_db=-ldb-4
29166 if test $ol_cv_lib_db = no ; then
29167 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29168 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29169 if test "${ol_cv_db_db4+set}" = set; then
29170 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29177 cat >conftest.$ac_ext <<_ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h. */
29184 #ifdef HAVE_DB_185_H
29185 # include <db_185.h>
29190 #ifndef DB_VERSION_MAJOR
29191 # define DB_VERSION_MAJOR 1
29195 #define NULL ((void*)0)
29202 #if DB_VERSION_MAJOR > 2
29203 db_env_create( NULL, 0 );
29204 #elif DB_VERSION_MAJOR > 1
29205 db_appexit( NULL );
29207 (void) dbopen( NULL, 0, 0, 0, NULL);
29214 rm -f conftest.$ac_objext conftest$ac_exeext
29215 if { (ac_try="$ac_link"
29216 case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_link") 2>conftest.er1
29223 grep -v '^ *+' conftest.er1 >conftest.err
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } && {
29228 test -z "$ac_c_werror_flag" ||
29229 test ! -s conftest.err
29230 } && test -s conftest$ac_exeext &&
29231 $as_test_x conftest$ac_exeext; then
29234 echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29241 conftest$ac_exeext conftest.$ac_ext
29246 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29247 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29249 if test $ol_cv_db_db4 = yes ; then
29255 if test $ol_cv_lib_db = no ; then
29256 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29257 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29258 if test "${ol_cv_db_db+set}" = set; then
29259 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29266 cat >conftest.$ac_ext <<_ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h. */
29273 #ifdef HAVE_DB_185_H
29274 # include <db_185.h>
29279 #ifndef DB_VERSION_MAJOR
29280 # define DB_VERSION_MAJOR 1
29284 #define NULL ((void*)0)
29291 #if DB_VERSION_MAJOR > 2
29292 db_env_create( NULL, 0 );
29293 #elif DB_VERSION_MAJOR > 1
29294 db_appexit( NULL );
29296 (void) dbopen( NULL, 0, 0, 0, NULL);
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (ac_try="$ac_link"
29305 case "(($ac_try" in
29306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307 *) ac_try_echo=$ac_try;;
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310 (eval "$ac_link") 2>conftest.er1
29312 grep -v '^ *+' conftest.er1 >conftest.err
29314 cat conftest.err >&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } && {
29317 test -z "$ac_c_werror_flag" ||
29318 test ! -s conftest.err
29319 } && test -s conftest$ac_exeext &&
29320 $as_test_x conftest$ac_exeext; then
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29330 conftest$ac_exeext conftest.$ac_ext
29335 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29336 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29338 if test $ol_cv_db_db = yes ; then
29343 if test $ol_cv_lib_db = no ; then
29344 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29345 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29346 if test "${ol_cv_db_none+set}" = set; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29352 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29361 #ifdef HAVE_DB_185_H
29362 # include <db_185.h>
29367 #ifndef DB_VERSION_MAJOR
29368 # define DB_VERSION_MAJOR 1
29372 #define NULL ((void*)0)
29379 #if DB_VERSION_MAJOR > 2
29380 db_env_create( NULL, 0 );
29381 #elif DB_VERSION_MAJOR > 1
29382 db_appexit( NULL );
29384 (void) dbopen( NULL, 0, 0, 0, NULL);
29391 rm -f conftest.$ac_objext conftest$ac_exeext
29392 if { (ac_try="$ac_link"
29393 case "(($ac_try" in
29394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29395 *) ac_try_echo=$ac_try;;
29397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29398 (eval "$ac_link") 2>conftest.er1
29400 grep -v '^ *+' conftest.er1 >conftest.err
29402 cat conftest.err >&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } && {
29405 test -z "$ac_c_werror_flag" ||
29406 test ! -s conftest.err
29407 } && test -s conftest$ac_exeext &&
29408 $as_test_x conftest$ac_exeext; then
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418 conftest$ac_exeext conftest.$ac_ext
29423 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29424 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29426 if test $ol_cv_db_none = yes ; then
29432 if test "$ol_cv_lib_db" != no ; then
29433 ol_cv_berkeley_db=yes
29434 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29435 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29436 if test "${ol_cv_berkeley_db_version+set}" = set; then
29437 echo $ECHO_N "(cached) $ECHO_C" >&6
29441 LIBS="$LTHREAD_LIBS $LIBS"
29442 if test $ol_cv_lib_db != yes ; then
29443 LIBS="$ol_cv_lib_db $LIBS"
29446 if test "$cross_compiling" = yes; then
29447 ol_cv_berkeley_db_version=cross
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29456 #ifdef HAVE_DB_185_H
29461 #ifndef DB_VERSION_MAJOR
29462 # define DB_VERSION_MAJOR 1
29465 #define NULL ((void *)0)
29469 #if DB_VERSION_MAJOR > 1
29471 int major, minor, patch;
29473 version = db_version( &major, &minor, &patch );
29475 if( major != DB_VERSION_MAJOR ||
29476 minor != DB_VERSION_MINOR ||
29477 patch != DB_VERSION_PATCH )
29479 printf("Berkeley DB version mismatch\n"
29480 "\theader: %s\n\tlibrary: %s\n",
29481 DB_VERSION_STRING, version);
29489 rm -f conftest$ac_exeext
29490 if { (ac_try="$ac_link"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_link") 2>&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29500 { (case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_try") 2>&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; }; then
29509 ol_cv_berkeley_db_version=yes
29511 echo "$as_me: program exited with status $ac_status" >&5
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29515 ( exit $ac_status )
29516 ol_cv_berkeley_db_version=no
29518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29526 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29527 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29529 if test $ol_cv_berkeley_db_version = no ; then
29530 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29531 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29532 { (exit 1); exit 1; }; }
29535 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29536 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29537 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29542 LIBS="$LTHREAD_LIBS $LIBS"
29543 if test $ol_cv_lib_db != yes ; then
29544 LIBS="$ol_cv_lib_db $LIBS"
29547 if test "$cross_compiling" = yes; then
29548 ol_cv_berkeley_db_thread=cross
29550 cat >conftest.$ac_ext <<_ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29557 #ifdef HAVE_DB_185_H
29563 #define NULL ((void *)0)
29568 u_int32_t flags = DB_CREATE |
29574 #if DB_VERSION_MAJOR > 2
29575 DB_ENV *env = NULL;
29577 rc = db_env_create( &env, 0 );
29579 flags |= DB_INIT_MPOOL;
29580 #ifdef DB_MPOOL_PRIVATE
29581 flags |= DB_MPOOL_PRIVATE;
29585 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29589 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29590 rc = (env->open)( env, NULL, flags, 0 );
29592 rc = (env->open)( env, NULL, NULL, flags, 0 );
29596 rc = env->close( env, 0 );
29600 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29606 memset( &env, '\0', sizeof(env) );
29608 rc = db_appinit( NULL, NULL, &env, flags );
29611 db_appexit( &env );
29614 unlink("__db_mpool.share");
29615 unlink("__db_lock.share");
29621 rm -f conftest$ac_exeext
29622 if { (ac_try="$ac_link"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_link") 2>&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29632 { (case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_try") 2>&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; }; then
29641 ol_cv_berkeley_db_thread=yes
29643 echo "$as_me: program exited with status $ac_status" >&5
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29647 ( exit $ac_status )
29648 ol_cv_berkeley_db_thread=no
29650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29658 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29659 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29661 if test $ol_cv_berkeley_db_thread != no ; then
29663 cat >>confdefs.h <<\_ACEOF
29664 #define HAVE_BERKELEY_DB_THREAD 1
29673 if test $ol_cv_berkeley_db = no ; then
29674 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29675 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29676 { (exit 1); exit 1; }; }
29680 cat >>confdefs.h <<\_ACEOF
29681 #define HAVE_BERKELEY_DB 1
29685 if test $ol_cv_lib_db != yes ; then
29686 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29689 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29695 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29696 BUILD_LIBS_DYNAMIC=shared
29698 cat >>confdefs.h <<\_ACEOF
29699 #define LDAP_LIBS_DYNAMIC 1
29704 BUILD_LIBS_DYNAMIC=static
29708 if test $ol_enable_wrappers != no ; then
29710 for ac_header in tcpd.h
29712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29719 ac_res=`eval echo '${'$as_ac_Header'}'`
29720 { echo "$as_me:$LINENO: result: $ac_res" >&5
29721 echo "${ECHO_T}$ac_res" >&6; }
29723 # Is the header compilable?
29724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 $ac_includes_default
29733 #include <$ac_header>
29735 rm -f conftest.$ac_objext
29736 if { (ac_try="$ac_compile"
29737 case "(($ac_try" in
29738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739 *) ac_try_echo=$ac_try;;
29741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29742 (eval "$ac_compile") 2>conftest.er1
29744 grep -v '^ *+' conftest.er1 >conftest.err
29746 cat conftest.err >&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } && {
29749 test -z "$ac_c_werror_flag" ||
29750 test ! -s conftest.err
29751 } && test -s conftest.$ac_objext; then
29752 ac_header_compiler=yes
29754 echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ac_header_compiler=no
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29762 echo "${ECHO_T}$ac_header_compiler" >&6; }
29764 # Is the header present?
29765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29767 cat >conftest.$ac_ext <<_ACEOF
29770 cat confdefs.h >>conftest.$ac_ext
29771 cat >>conftest.$ac_ext <<_ACEOF
29772 /* end confdefs.h. */
29773 #include <$ac_header>
29775 if { (ac_try="$ac_cpp conftest.$ac_ext"
29776 case "(($ac_try" in
29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778 *) ac_try_echo=$ac_try;;
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29783 grep -v '^ *+' conftest.er1 >conftest.err
29785 cat conftest.err >&5
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); } >/dev/null && {
29788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29789 test ! -s conftest.err
29791 ac_header_preproc=yes
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ac_header_preproc=no
29799 rm -f conftest.err conftest.$ac_ext
29800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29801 echo "${ECHO_T}$ac_header_preproc" >&6; }
29803 # So? What about this header?
29804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29810 ac_header_preproc=yes
29813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29826 ## --------------------------------------------- ##
29827 ## Report this to <http://www.openldap.org/its/> ##
29828 ## --------------------------------------------- ##
29830 ) | sed "s/^/$as_me: WARNING: /" >&2
29833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29838 eval "$as_ac_Header=\$ac_header_preproc"
29840 ac_res=`eval echo '${'$as_ac_Header'}'`
29841 { echo "$as_me:$LINENO: result: $ac_res" >&5
29842 echo "${ECHO_T}$ac_res" >&6; }
29845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29846 cat >>confdefs.h <<_ACEOF
29847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29850 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29851 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29853 LIBS="$LIBS -lwrap"
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29862 int allow_severity = 0;
29863 int deny_severity = 0;
29865 struct request_info *req;
29877 rm -f conftest.$ac_objext conftest$ac_exeext
29878 if { (ac_try="$ac_link"
29879 case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_link") 2>conftest.er1
29886 grep -v '^ *+' conftest.er1 >conftest.err
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } && {
29891 test -z "$ac_c_werror_flag" ||
29892 test ! -s conftest.err
29893 } && test -s conftest$ac_exeext &&
29894 $as_test_x conftest$ac_exeext; then
29895 { echo "$as_me:$LINENO: result: -lwrap" >&5
29896 echo "${ECHO_T}-lwrap" >&6; }
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29905 cat >conftest.$ac_ext <<_ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29913 int allow_severity = 0;
29914 int deny_severity = 0;
29916 struct request_info *req;
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (ac_try="$ac_link"
29930 case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29935 (eval "$ac_link") 2>conftest.er1
29937 grep -v '^ *+' conftest.er1 >conftest.err
29939 cat conftest.err >&5
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); } && {
29942 test -z "$ac_c_werror_flag" ||
29943 test ! -s conftest.err
29944 } && test -s conftest$ac_exeext &&
29945 $as_test_x conftest$ac_exeext; then
29946 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29947 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29949 LIBS="$save_LIBS -lnsl"
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29955 { echo "$as_me:$LINENO: result: no" >&5
29956 echo "${ECHO_T}no" >&6; }
29961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29962 conftest$ac_exeext conftest.$ac_ext
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966 conftest$ac_exeext conftest.$ac_ext
29974 if test $have_wrappers = yes ; then
29976 cat >>confdefs.h <<\_ACEOF
29977 #define HAVE_TCPD 1
29981 elif test $ol_enable_wrappers = yes ; then
29982 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29983 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29984 { (exit 1); exit 1; }; }
29986 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29987 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29992 if test $ol_enable_syslog != no ; then
29993 { echo "$as_me:$LINENO: checking for openlog" >&5
29994 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29995 if test "${ac_cv_func_openlog+set}" = set; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 cat >conftest.$ac_ext <<_ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h. */
30004 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30006 #define openlog innocuous_openlog
30008 /* System header to define __stub macros and hopefully few prototypes,
30009 which can conflict with char openlog (); below.
30010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30011 <limits.h> exists even on freestanding compilers. */
30014 # include <limits.h>
30016 # include <assert.h>
30021 /* Override any GCC internal prototype to avoid an error.
30022 Use char because int might match the return type of a GCC
30023 builtin and then its argument prototype would still apply. */
30028 /* The GNU C library defines this for functions which it implements
30029 to always fail with ENOSYS. Some functions are actually named
30030 something starting with __ and the normal name is an alias. */
30031 #if defined __stub_openlog || defined __stub___openlog
30043 rm -f conftest.$ac_objext conftest$ac_exeext
30044 if { (ac_try="$ac_link"
30045 case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_link") 2>conftest.er1
30052 grep -v '^ *+' conftest.er1 >conftest.err
30054 cat conftest.err >&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } && {
30057 test -z "$ac_c_werror_flag" ||
30058 test ! -s conftest.err
30059 } && test -s conftest$ac_exeext &&
30060 $as_test_x conftest$ac_exeext; then
30061 ac_cv_func_openlog=yes
30063 echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30066 ac_cv_func_openlog=no
30069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30070 conftest$ac_exeext conftest.$ac_ext
30072 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30073 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30075 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30076 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30077 echo "$as_me: error: could not find syslog" >&2;}
30078 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30080 ol_enable_syslog=$ac_cv_func_openlog
30084 if test $ol_enable_sql != no ; then
30087 for ac_header in sql.h sqlext.h
30089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30094 echo $ECHO_N "(cached) $ECHO_C" >&6
30096 ac_res=`eval echo '${'$as_ac_Header'}'`
30097 { echo "$as_me:$LINENO: result: $ac_res" >&5
30098 echo "${ECHO_T}$ac_res" >&6; }
30100 # Is the header compilable?
30101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30103 cat >conftest.$ac_ext <<_ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30109 $ac_includes_default
30110 #include <$ac_header>
30112 rm -f conftest.$ac_objext
30113 if { (ac_try="$ac_compile"
30114 case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_compile") 2>conftest.er1
30121 grep -v '^ *+' conftest.er1 >conftest.err
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && {
30126 test -z "$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 } && test -s conftest.$ac_objext; then
30129 ac_header_compiler=yes
30131 echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30134 ac_header_compiler=no
30137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30139 echo "${ECHO_T}$ac_header_compiler" >&6; }
30141 # Is the header present?
30142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30144 cat >conftest.$ac_ext <<_ACEOF
30147 cat confdefs.h >>conftest.$ac_ext
30148 cat >>conftest.$ac_ext <<_ACEOF
30149 /* end confdefs.h. */
30150 #include <$ac_header>
30152 if { (ac_try="$ac_cpp conftest.$ac_ext"
30153 case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30160 grep -v '^ *+' conftest.er1 >conftest.err
30162 cat conftest.err >&5
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); } >/dev/null && {
30165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30166 test ! -s conftest.err
30168 ac_header_preproc=yes
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173 ac_header_preproc=no
30176 rm -f conftest.err conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178 echo "${ECHO_T}$ac_header_preproc" >&6; }
30180 # So? What about this header?
30181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30187 ac_header_preproc=yes
30190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30203 ## --------------------------------------------- ##
30204 ## Report this to <http://www.openldap.org/its/> ##
30205 ## --------------------------------------------- ##
30207 ) | sed "s/^/$as_me: WARNING: /" >&2
30210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30215 eval "$as_ac_Header=\$ac_header_preproc"
30217 ac_res=`eval echo '${'$as_ac_Header'}'`
30218 { echo "$as_me:$LINENO: result: $ac_res" >&5
30219 echo "${ECHO_T}$ac_res" >&6; }
30222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30229 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30230 echo "$as_me: error: could not locate SQL headers" >&2;}
30231 { (exit 1); exit 1; }; }
30239 LIBS="$LTHREAD_LIBS"
30241 if test $ol_with_odbc = auto ; then
30242 ol_with_odbc="iodbc unixodbc odbc32"
30245 for odbc in $ol_with_odbc ; do
30246 if test $ol_link_sql = no ; then
30249 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30250 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30251 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30252 echo $ECHO_N "(cached) $ECHO_C" >&6
30254 ac_check_lib_save_LIBS=$LIBS
30255 LIBS="-liodbc $LIBS"
30256 cat >conftest.$ac_ext <<_ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30263 /* Override any GCC internal prototype to avoid an error.
30264 Use char because int might match the return type of a GCC
30265 builtin and then its argument prototype would still apply. */
30269 char SQLDriverConnect ();
30273 return SQLDriverConnect ();
30278 rm -f conftest.$ac_objext conftest$ac_exeext
30279 if { (ac_try="$ac_link"
30280 case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285 (eval "$ac_link") 2>conftest.er1
30287 grep -v '^ *+' conftest.er1 >conftest.err
30289 cat conftest.err >&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } && {
30292 test -z "$ac_c_werror_flag" ||
30293 test ! -s conftest.err
30294 } && test -s conftest$ac_exeext &&
30295 $as_test_x conftest$ac_exeext; then
30296 ac_cv_lib_iodbc_SQLDriverConnect=yes
30298 echo "$as_me: failed program was:" >&5
30299 sed 's/^/| /' conftest.$ac_ext >&5
30301 ac_cv_lib_iodbc_SQLDriverConnect=no
30304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30305 conftest$ac_exeext conftest.$ac_ext
30306 LIBS=$ac_check_lib_save_LIBS
30308 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30309 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30310 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30316 if test $have_iodbc = yes ; then
30317 ol_link_sql="-liodbc"
30322 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30323 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30324 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30325 echo $ECHO_N "(cached) $ECHO_C" >&6
30327 ac_check_lib_save_LIBS=$LIBS
30328 LIBS="-lodbc $LIBS"
30329 cat >conftest.$ac_ext <<_ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30336 /* Override any GCC internal prototype to avoid an error.
30337 Use char because int might match the return type of a GCC
30338 builtin and then its argument prototype would still apply. */
30342 char SQLDriverConnect ();
30346 return SQLDriverConnect ();
30351 rm -f conftest.$ac_objext conftest$ac_exeext
30352 if { (ac_try="$ac_link"
30353 case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_link") 2>conftest.er1
30360 grep -v '^ *+' conftest.er1 >conftest.err
30362 cat conftest.err >&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } && {
30365 test -z "$ac_c_werror_flag" ||
30366 test ! -s conftest.err
30367 } && test -s conftest$ac_exeext &&
30368 $as_test_x conftest$ac_exeext; then
30369 ac_cv_lib_odbc_SQLDriverConnect=yes
30371 echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30374 ac_cv_lib_odbc_SQLDriverConnect=no
30377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30378 conftest$ac_exeext conftest.$ac_ext
30379 LIBS=$ac_check_lib_save_LIBS
30381 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30382 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30383 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30389 if test $have_odbc = yes ; then
30390 ol_link_sql="-lodbc"
30395 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30396 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30397 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30400 ac_check_lib_save_LIBS=$LIBS
30401 LIBS="-lodbc32 $LIBS"
30402 cat >conftest.$ac_ext <<_ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30409 /* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
30415 char SQLDriverConnect ();
30419 return SQLDriverConnect ();
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (ac_try="$ac_link"
30426 case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_link") 2>conftest.er1
30433 grep -v '^ *+' conftest.er1 >conftest.err
30435 cat conftest.err >&5
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); } && {
30438 test -z "$ac_c_werror_flag" ||
30439 test ! -s conftest.err
30440 } && test -s conftest$ac_exeext &&
30441 $as_test_x conftest$ac_exeext; then
30442 ac_cv_lib_odbc32_SQLDriverConnect=yes
30444 echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30447 ac_cv_lib_odbc32_SQLDriverConnect=no
30450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30451 conftest$ac_exeext conftest.$ac_ext
30452 LIBS=$ac_check_lib_save_LIBS
30454 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30455 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30456 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30463 if test $have_odbc32 = no ; then
30464 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
30465 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32 with windows.h... $ECHO_C" >&6; }
30467 LIBS="$LIBS -lodbc32"
30468 cat >conftest.$ac_ext <<_ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h. */
30474 #include <windows.h>
30475 #include <sqlext.h>
30481 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_link") 2>conftest.er1
30496 grep -v '^ *+' conftest.er1 >conftest.err
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); } && {
30501 test -z "$ac_c_werror_flag" ||
30502 test ! -s conftest.err
30503 } && test -s conftest$ac_exeext &&
30504 $as_test_x conftest$ac_exeext; then
30507 echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30514 conftest$ac_exeext conftest.$ac_ext
30516 { echo "$as_me:$LINENO: result: $have_odbc32" >&5
30517 echo "${ECHO_T}$have_odbc32" >&6; }
30520 if test $have_odbc32 = yes ; then
30521 ol_link_sql="-lodbc32"
30526 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30527 echo "$as_me: error: unknown ODBC library" >&2;}
30528 { (exit 1); exit 1; }; }
30536 if test $ol_link_sql != no ; then
30537 SLAPD_SQL_LIBS="$ol_link_sql"
30539 elif test $ol_enable_sql != auto ; then
30540 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30541 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30542 { (exit 1); exit 1; }; }
30547 if test $ol_enable_ndb != no ; then
30548 # Extract the first word of "mysql_config", so it can be a program name with args.
30549 set dummy mysql_config; ac_word=$2
30550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30552 if test "${ac_cv_prog_MYSQL+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30555 if test -n "$MYSQL"; then
30556 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30559 for as_dir in $PATH
30562 test -z "$as_dir" && as_dir=.
30563 for ac_exec_ext in '' $ac_executable_extensions; do
30564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30565 ac_cv_prog_MYSQL="yes"
30566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30575 MYSQL=$ac_cv_prog_MYSQL
30576 if test -n "$MYSQL"; then
30577 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30578 echo "${ECHO_T}$MYSQL" >&6; }
30580 { echo "$as_me:$LINENO: result: no" >&5
30581 echo "${ECHO_T}no" >&6; }
30585 if test "$MYSQL" != yes ; then
30586 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30587 echo "$as_me: error: could not locate mysql_config" >&2;}
30588 { (exit 1); exit 1; }; }
30591 SQL_INC=`mysql_config --include`
30592 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30594 save_CPPFLAGS="$CPPFLAGS"
30595 CPPFLAGS="$SLAPD_NDB_INCS"
30596 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30597 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30598 cat >conftest.$ac_ext <<_ACEOF
30601 cat confdefs.h >>conftest.$ac_ext
30602 cat >>conftest.$ac_ext <<_ACEOF
30603 /* end confdefs.h. */
30604 #include <NdbApi.hpp>
30606 if { (ac_try="$ac_cpp conftest.$ac_ext"
30607 case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30614 grep -v '^ *+' conftest.er1 >conftest.err
30616 cat conftest.err >&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); } >/dev/null && {
30619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30620 test ! -s conftest.err
30622 { echo "$as_me:$LINENO: result: yes" >&5
30623 echo "${ECHO_T}yes" >&6; }
30625 echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30628 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30629 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30630 { (exit 1); exit 1; }; }
30634 rm -f conftest.err conftest.$ac_ext
30635 CPPFLAGS="$save_CPPFLAGS"
30637 SQL_LIB=`mysql_config --libs_r`
30638 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30640 save_LDFLAGS="$LDFLAGS"
30643 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30644 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30645 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30646 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 ac_check_lib_save_LIBS=$LIBS
30649 LIBS="-lndbclient -lstdc++ $LIBS"
30650 cat >conftest.$ac_ext <<_ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30657 /* Override any GCC internal prototype to avoid an error.
30658 Use char because int might match the return type of a GCC
30659 builtin and then its argument prototype would still apply. */
30667 return ndb_init ();
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (ac_try="$ac_link"
30674 case "(($ac_try" in
30675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676 *) ac_try_echo=$ac_try;;
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679 (eval "$ac_link") 2>conftest.er1
30681 grep -v '^ *+' conftest.er1 >conftest.err
30683 cat conftest.err >&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } && {
30686 test -z "$ac_c_werror_flag" ||
30687 test ! -s conftest.err
30688 } && test -s conftest$ac_exeext &&
30689 $as_test_x conftest$ac_exeext; then
30690 ac_cv_lib_ndbclient_ndb_init=yes
30692 echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30695 ac_cv_lib_ndbclient_ndb_init=no
30698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30699 conftest$ac_exeext conftest.$ac_ext
30700 LIBS=$ac_check_lib_save_LIBS
30702 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30703 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30704 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30708 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30709 echo "$as_me: error: could not locate ndbclient library" >&2;}
30710 { (exit 1); exit 1; }; }
30715 LDFLAGS="$save_LDFLAGS"
30717 if test "$ol_enable_ndb" = yes ; then
30718 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30724 for ac_header in unicode/utypes.h
30726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30733 ac_res=`eval echo '${'$as_ac_Header'}'`
30734 { echo "$as_me:$LINENO: result: $ac_res" >&5
30735 echo "${ECHO_T}$ac_res" >&6; }
30737 # Is the header compilable?
30738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30740 cat >conftest.$ac_ext <<_ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h. */
30746 $ac_includes_default
30747 #include <$ac_header>
30749 rm -f conftest.$ac_objext
30750 if { (ac_try="$ac_compile"
30751 case "(($ac_try" in
30752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30753 *) ac_try_echo=$ac_try;;
30755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30756 (eval "$ac_compile") 2>conftest.er1
30758 grep -v '^ *+' conftest.er1 >conftest.err
30760 cat conftest.err >&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } && {
30763 test -z "$ac_c_werror_flag" ||
30764 test ! -s conftest.err
30765 } && test -s conftest.$ac_objext; then
30766 ac_header_compiler=yes
30768 echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30771 ac_header_compiler=no
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30776 echo "${ECHO_T}$ac_header_compiler" >&6; }
30778 # Is the header present?
30779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 #include <$ac_header>
30789 if { (ac_try="$ac_cpp conftest.$ac_ext"
30790 case "(($ac_try" in
30791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792 *) ac_try_echo=$ac_try;;
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30797 grep -v '^ *+' conftest.er1 >conftest.err
30799 cat conftest.err >&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } >/dev/null && {
30802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30803 test ! -s conftest.err
30805 ac_header_preproc=yes
30807 echo "$as_me: failed program was:" >&5
30808 sed 's/^/| /' conftest.$ac_ext >&5
30810 ac_header_preproc=no
30813 rm -f conftest.err conftest.$ac_ext
30814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30815 echo "${ECHO_T}$ac_header_preproc" >&6; }
30817 # So? What about this header?
30818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30824 ac_header_preproc=yes
30827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30840 ## --------------------------------------------- ##
30841 ## Report this to <http://www.openldap.org/its/> ##
30842 ## --------------------------------------------- ##
30844 ) | sed "s/^/$as_me: WARNING: /" >&2
30847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30850 echo $ECHO_N "(cached) $ECHO_C" >&6
30852 eval "$as_ac_Header=\$ac_header_preproc"
30854 ac_res=`eval echo '${'$as_ac_Header'}'`
30855 { echo "$as_me:$LINENO: result: $ac_res" >&5
30856 echo "${ECHO_T}$ac_res" >&6; }
30859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30860 cat >>confdefs.h <<_ACEOF
30861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30868 if test $ac_cv_header_unicode_utypes_h = yes ; then
30869 OL_ICULIBS="-licuuc -licudata"
30871 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30872 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30873 if test "${ol_cv_lib_icu+set}" = set; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 LIBS="$OL_ICULIBS $LIBS"
30879 cat >conftest.$ac_ext <<_ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h. */
30886 #include <unicode/utypes.h>
30892 (void) u_errorName(0);
30898 rm -f conftest.$ac_objext conftest$ac_exeext
30899 if { (ac_try="$ac_link"
30900 case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905 (eval "$ac_link") 2>conftest.er1
30907 grep -v '^ *+' conftest.er1 >conftest.err
30909 cat conftest.err >&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } && {
30912 test -z "$ac_c_werror_flag" ||
30913 test ! -s conftest.err
30914 } && test -s conftest$ac_exeext &&
30915 $as_test_x conftest$ac_exeext; then
30918 echo "$as_me: failed program was:" >&5
30919 sed 's/^/| /' conftest.$ac_ext >&5
30924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30925 conftest$ac_exeext conftest.$ac_ext
30929 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30930 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30932 if test $ol_cv_lib_icu != no ; then
30933 ol_icu="$OL_ICULIBS"
30935 cat >>confdefs.h <<\_ACEOF
30942 if test "$ol_icu" = no ; then
30943 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30944 echo "$as_me: WARNING: ICU not available" >&2;}
30951 if test $ol_with_cyrus_sasl != no ; then
30954 for ac_header in sasl/sasl.h sasl.h
30956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30963 ac_res=`eval echo '${'$as_ac_Header'}'`
30964 { echo "$as_me:$LINENO: result: $ac_res" >&5
30965 echo "${ECHO_T}$ac_res" >&6; }
30967 # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 $ac_includes_default
30977 #include <$ac_header>
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_compile") 2>conftest.er1
30988 grep -v '^ *+' conftest.er1 >conftest.err
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest.$ac_objext; then
30996 ac_header_compiler=yes
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_header_compiler=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 #include <$ac_header>
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31027 grep -v '^ *+' conftest.er1 >conftest.err
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } >/dev/null && {
31032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31035 ac_header_preproc=yes
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_header_preproc=no
31043 rm -f conftest.err conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31047 # So? What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31054 ac_header_preproc=yes
31057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31070 ## --------------------------------------------- ##
31071 ## Report this to <http://www.openldap.org/its/> ##
31072 ## --------------------------------------------- ##
31074 ) | sed "s/^/$as_me: WARNING: /" >&2
31077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 eval "$as_ac_Header=\$ac_header_preproc"
31084 ac_res=`eval echo '${'$as_ac_Header'}'`
31085 { echo "$as_me:$LINENO: result: $ac_res" >&5
31086 echo "${ECHO_T}$ac_res" >&6; }
31089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31090 cat >>confdefs.h <<_ACEOF
31091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31099 if test $ac_cv_header_sasl_sasl_h = yes ||
31100 test $ac_cv_header_sasl_h = yes; then
31101 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31102 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
31103 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31106 ac_check_lib_save_LIBS=$LIBS
31107 LIBS="-lsasl2 $LIBS"
31108 cat >conftest.$ac_ext <<_ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31115 /* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31121 char sasl_client_init ();
31125 return sasl_client_init ();
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_link") 2>conftest.er1
31139 grep -v '^ *+' conftest.er1 >conftest.err
31141 cat conftest.err >&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } && {
31144 test -z "$ac_c_werror_flag" ||
31145 test ! -s conftest.err
31146 } && test -s conftest$ac_exeext &&
31147 $as_test_x conftest$ac_exeext; then
31148 ac_cv_lib_sasl2_sasl_client_init=yes
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 ac_cv_lib_sasl2_sasl_client_init=no
31156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31157 conftest$ac_exeext conftest.$ac_ext
31158 LIBS=$ac_check_lib_save_LIBS
31160 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31161 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
31162 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31163 ol_link_sasl="-lsasl2"
31165 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31166 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
31167 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31168 echo $ECHO_N "(cached) $ECHO_C" >&6
31170 ac_check_lib_save_LIBS=$LIBS
31171 LIBS="-lsasl $LIBS"
31172 cat >conftest.$ac_ext <<_ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h. */
31179 /* Override any GCC internal prototype to avoid an error.
31180 Use char because int might match the return type of a GCC
31181 builtin and then its argument prototype would still apply. */
31185 char sasl_client_init ();
31189 return sasl_client_init ();
31194 rm -f conftest.$ac_objext conftest$ac_exeext
31195 if { (ac_try="$ac_link"
31196 case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_link") 2>conftest.er1
31203 grep -v '^ *+' conftest.er1 >conftest.err
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } && {
31208 test -z "$ac_c_werror_flag" ||
31209 test ! -s conftest.err
31210 } && test -s conftest$ac_exeext &&
31211 $as_test_x conftest$ac_exeext; then
31212 ac_cv_lib_sasl_sasl_client_init=yes
31214 echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31217 ac_cv_lib_sasl_sasl_client_init=no
31220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31221 conftest$ac_exeext conftest.$ac_ext
31222 LIBS=$ac_check_lib_save_LIBS
31224 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31225 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31226 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31227 ol_link_sasl="-lsasl"
31234 if test $ol_link_sasl = no ; then
31235 if test $ol_with_cyrus_sasl != auto ; then
31236 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31237 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31238 { (exit 1); exit 1; }; }
31240 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31241 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31242 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31243 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31244 if test $ol_link_tls = no ; then
31245 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31246 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31250 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31251 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31252 if test "${ol_cv_sasl_compat+set}" = set; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 cat >conftest.$ac_ext <<_ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h. */
31263 #ifdef HAVE_SASL_SASL_H
31264 #include <sasl/sasl.h>
31269 /* Require 2.1.15+ */
31270 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
31271 char *__sasl_compat = "2.2+ or better okay (we guess)";
31272 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
31273 && SASL_VERSION_STEP >=15
31274 char *__sasl_compat = "2.1.15+ or better okay";
31278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31279 $EGREP "__sasl_compat" >/dev/null 2>&1; then
31280 ol_cv_sasl_compat=yes
31282 ol_cv_sasl_compat=no
31287 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31288 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31290 if test $ol_cv_sasl_compat = no ; then
31292 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31293 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31294 { (exit 1); exit 1; }; }
31298 cat >>confdefs.h <<\_ACEOF
31299 #define HAVE_CYRUS_SASL 1
31302 SASL_LIBS="$ol_link_sasl"
31303 if test $ol_enable_spasswd != no ; then
31304 ol_link_spasswd=yes
31307 ac_save_LIBS="$LIBS"
31308 LIBS="$LIBS $ol_link_sasl"
31309 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31310 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31311 if test "${ac_cv_func_sasl_version+set}" = set; then
31312 echo $ECHO_N "(cached) $ECHO_C" >&6
31314 cat >conftest.$ac_ext <<_ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h. */
31320 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31322 #define sasl_version innocuous_sasl_version
31324 /* System header to define __stub macros and hopefully few prototypes,
31325 which can conflict with char sasl_version (); below.
31326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31327 <limits.h> exists even on freestanding compilers. */
31330 # include <limits.h>
31332 # include <assert.h>
31335 #undef sasl_version
31337 /* Override any GCC internal prototype to avoid an error.
31338 Use char because int might match the return type of a GCC
31339 builtin and then its argument prototype would still apply. */
31343 char sasl_version ();
31344 /* The GNU C library defines this for functions which it implements
31345 to always fail with ENOSYS. Some functions are actually named
31346 something starting with __ and the normal name is an alias. */
31347 #if defined __stub_sasl_version || defined __stub___sasl_version
31354 return sasl_version ();
31359 rm -f conftest.$ac_objext conftest$ac_exeext
31360 if { (ac_try="$ac_link"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_link") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } && {
31373 test -z "$ac_c_werror_flag" ||
31374 test ! -s conftest.err
31375 } && test -s conftest$ac_exeext &&
31376 $as_test_x conftest$ac_exeext; then
31377 ac_cv_func_sasl_version=yes
31379 echo "$as_me: failed program was:" >&5
31380 sed 's/^/| /' conftest.$ac_ext >&5
31382 ac_cv_func_sasl_version=no
31385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31386 conftest$ac_exeext conftest.$ac_ext
31388 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31389 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31390 if test $ac_cv_func_sasl_version = yes; then
31392 cat >>confdefs.h <<\_ACEOF
31393 #define HAVE_SASL_VERSION 1
31398 LIBS="$ac_save_LIBS"
31404 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31405 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31406 if test $ol_link_tls = no ; then
31407 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31408 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31412 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31414 if test -r /dev/urandom ; then
31415 dev="/dev/urandom";
31416 elif test -r /idev/urandom ; then
31417 dev="/idev/urandom";
31418 elif test -r /dev/srandom ; then
31419 dev="/dev/srandom";
31420 elif test -r /dev/random ; then
31422 elif test -r /idev/random ; then
31423 dev="/idev/random";
31426 if test $dev != no ; then
31428 cat >>confdefs.h <<_ACEOF
31429 #define URANDOM_DEVICE "$dev"
31436 if test $ol_with_fetch != no ; then
31438 LIBS="-lfetch -lcom_err $LIBS"
31439 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31440 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31441 if test "${ol_cv_lib_fetch+set}" = set; then
31442 echo $ECHO_N "(cached) $ECHO_C" >&6
31445 cat >conftest.$ac_ext <<_ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h. */
31452 #ifdef HAVE_SYS_PARAM_H
31453 #include <sys/param.h>
31460 struct url *u = fetchParseURL("file:///");
31465 rm -f conftest.$ac_objext conftest$ac_exeext
31466 if { (ac_try="$ac_link"
31467 case "(($ac_try" in
31468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469 *) ac_try_echo=$ac_try;;
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472 (eval "$ac_link") 2>conftest.er1
31474 grep -v '^ *+' conftest.er1 >conftest.err
31476 cat conftest.err >&5
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); } && {
31479 test -z "$ac_c_werror_flag" ||
31480 test ! -s conftest.err
31481 } && test -s conftest$ac_exeext &&
31482 $as_test_x conftest$ac_exeext; then
31483 ol_cv_lib_fetch=yes
31485 echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31492 conftest$ac_exeext conftest.$ac_ext
31494 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31495 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31497 if test $ol_cv_lib_fetch != no ; then
31498 ol_link_fetch="-lfetch -lcom_err"
31500 cat >>confdefs.h <<\_ACEOF
31501 #define HAVE_FETCH 1
31507 if test $ol_cv_lib_fetch != no ; then
31508 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31509 ol_link_fetch=freebsd
31511 elif test $ol_with_fetch != auto ; then
31512 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31513 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31514 { (exit 1); exit 1; }; }
31518 if test $ol_enable_crypt != no ; then
31520 LIBS="$TLS_LIBS $LIBS"
31522 { echo "$as_me:$LINENO: checking for crypt" >&5
31523 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31524 if test "${ac_cv_func_crypt+set}" = set; then
31525 echo $ECHO_N "(cached) $ECHO_C" >&6
31527 cat >conftest.$ac_ext <<_ACEOF
31530 cat confdefs.h >>conftest.$ac_ext
31531 cat >>conftest.$ac_ext <<_ACEOF
31532 /* end confdefs.h. */
31533 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31535 #define crypt innocuous_crypt
31537 /* System header to define __stub macros and hopefully few prototypes,
31538 which can conflict with char crypt (); below.
31539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31540 <limits.h> exists even on freestanding compilers. */
31543 # include <limits.h>
31545 # include <assert.h>
31550 /* Override any GCC internal prototype to avoid an error.
31551 Use char because int might match the return type of a GCC
31552 builtin and then its argument prototype would still apply. */
31557 /* The GNU C library defines this for functions which it implements
31558 to always fail with ENOSYS. Some functions are actually named
31559 something starting with __ and the normal name is an alias. */
31560 #if defined __stub_crypt || defined __stub___crypt
31572 rm -f conftest.$ac_objext conftest$ac_exeext
31573 if { (ac_try="$ac_link"
31574 case "(($ac_try" in
31575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576 *) ac_try_echo=$ac_try;;
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579 (eval "$ac_link") 2>conftest.er1
31581 grep -v '^ *+' conftest.er1 >conftest.err
31583 cat conftest.err >&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); } && {
31586 test -z "$ac_c_werror_flag" ||
31587 test ! -s conftest.err
31588 } && test -s conftest$ac_exeext &&
31589 $as_test_x conftest$ac_exeext; then
31590 ac_cv_func_crypt=yes
31592 echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31595 ac_cv_func_crypt=no
31598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31599 conftest$ac_exeext conftest.$ac_ext
31601 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31602 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31603 if test $ac_cv_func_crypt = yes; then
31608 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31609 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31610 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31611 echo $ECHO_N "(cached) $ECHO_C" >&6
31613 ac_check_lib_save_LIBS=$LIBS
31614 LIBS="-lcrypt $LIBS"
31615 cat >conftest.$ac_ext <<_ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h. */
31622 /* Override any GCC internal prototype to avoid an error.
31623 Use char because int might match the return type of a GCC
31624 builtin and then its argument prototype would still apply. */
31637 rm -f conftest.$ac_objext conftest$ac_exeext
31638 if { (ac_try="$ac_link"
31639 case "(($ac_try" in
31640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31641 *) ac_try_echo=$ac_try;;
31643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31644 (eval "$ac_link") 2>conftest.er1
31646 grep -v '^ *+' conftest.er1 >conftest.err
31648 cat conftest.err >&5
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); } && {
31651 test -z "$ac_c_werror_flag" ||
31652 test ! -s conftest.err
31653 } && test -s conftest$ac_exeext &&
31654 $as_test_x conftest$ac_exeext; then
31655 ac_cv_lib_crypt_crypt=yes
31657 echo "$as_me: failed program was:" >&5
31658 sed 's/^/| /' conftest.$ac_ext >&5
31660 ac_cv_lib_crypt_crypt=no
31663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31664 conftest$ac_exeext conftest.$ac_ext
31665 LIBS=$ac_check_lib_save_LIBS
31667 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31668 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31669 if test $ac_cv_lib_crypt_crypt = yes; then
31670 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31681 if test $have_crypt = yes ; then
31683 cat >>confdefs.h <<\_ACEOF
31684 #define HAVE_CRYPT 1
31688 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31689 echo "$as_me: WARNING: could not find crypt" >&2;}
31690 if test $ol_enable_crypt = yes ; then
31691 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31692 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31693 { (exit 1); exit 1; }; }
31696 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31697 echo "$as_me: WARNING: disabling crypt support" >&2;}
31702 if test $ol_enable_proctitle != no ; then
31703 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31704 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31705 if test "${ac_cv_func_setproctitle+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31708 cat >conftest.$ac_ext <<_ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31714 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31716 #define setproctitle innocuous_setproctitle
31718 /* System header to define __stub macros and hopefully few prototypes,
31719 which can conflict with char setproctitle (); below.
31720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31721 <limits.h> exists even on freestanding compilers. */
31724 # include <limits.h>
31726 # include <assert.h>
31729 #undef setproctitle
31731 /* Override any GCC internal prototype to avoid an error.
31732 Use char because int might match the return type of a GCC
31733 builtin and then its argument prototype would still apply. */
31737 char setproctitle ();
31738 /* The GNU C library defines this for functions which it implements
31739 to always fail with ENOSYS. Some functions are actually named
31740 something starting with __ and the normal name is an alias. */
31741 #if defined __stub_setproctitle || defined __stub___setproctitle
31748 return setproctitle ();
31753 rm -f conftest.$ac_objext conftest$ac_exeext
31754 if { (ac_try="$ac_link"
31755 case "(($ac_try" in
31756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757 *) ac_try_echo=$ac_try;;
31759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760 (eval "$ac_link") 2>conftest.er1
31762 grep -v '^ *+' conftest.er1 >conftest.err
31764 cat conftest.err >&5
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } && {
31767 test -z "$ac_c_werror_flag" ||
31768 test ! -s conftest.err
31769 } && test -s conftest$ac_exeext &&
31770 $as_test_x conftest$ac_exeext; then
31771 ac_cv_func_setproctitle=yes
31773 echo "$as_me: failed program was:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31776 ac_cv_func_setproctitle=no
31779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31780 conftest$ac_exeext conftest.$ac_ext
31782 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31783 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31784 if test $ac_cv_func_setproctitle = yes; then
31785 have_setproctitle=yes
31788 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31789 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31790 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 ac_check_lib_save_LIBS=$LIBS
31794 LIBS="-lutil $LIBS"
31795 cat >conftest.$ac_ext <<_ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31802 /* Override any GCC internal prototype to avoid an error.
31803 Use char because int might match the return type of a GCC
31804 builtin and then its argument prototype would still apply. */
31808 char setproctitle ();
31812 return setproctitle ();
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (ac_try="$ac_link"
31819 case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_link") 2>conftest.er1
31826 grep -v '^ *+' conftest.er1 >conftest.err
31828 cat conftest.err >&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } && {
31831 test -z "$ac_c_werror_flag" ||
31832 test ! -s conftest.err
31833 } && test -s conftest$ac_exeext &&
31834 $as_test_x conftest$ac_exeext; then
31835 ac_cv_lib_util_setproctitle=yes
31837 echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31840 ac_cv_lib_util_setproctitle=no
31843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31844 conftest$ac_exeext conftest.$ac_ext
31845 LIBS=$ac_check_lib_save_LIBS
31847 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31848 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31849 if test $ac_cv_lib_util_setproctitle = yes; then
31850 have_setproctitle=yes
31851 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31853 have_setproctitle=no
31854 case " $LIBOBJS " in
31855 *" setproctitle.$ac_objext "* ) ;;
31856 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31860 LIBSRCS="$LIBSRCS setproctitle.c"
31866 if test $have_setproctitle = yes ; then
31868 cat >>confdefs.h <<\_ACEOF
31869 #define HAVE_SETPROCTITLE 1
31875 if test $ol_enable_slp != no ; then
31877 for ac_header in slp.h
31879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31884 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 ac_res=`eval echo '${'$as_ac_Header'}'`
31887 { echo "$as_me:$LINENO: result: $ac_res" >&5
31888 echo "${ECHO_T}$ac_res" >&6; }
31890 # Is the header compilable?
31891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31893 cat >conftest.$ac_ext <<_ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h. */
31899 $ac_includes_default
31900 #include <$ac_header>
31902 rm -f conftest.$ac_objext
31903 if { (ac_try="$ac_compile"
31904 case "(($ac_try" in
31905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906 *) ac_try_echo=$ac_try;;
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909 (eval "$ac_compile") 2>conftest.er1
31911 grep -v '^ *+' conftest.er1 >conftest.err
31913 cat conftest.err >&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); } && {
31916 test -z "$ac_c_werror_flag" ||
31917 test ! -s conftest.err
31918 } && test -s conftest.$ac_objext; then
31919 ac_header_compiler=yes
31921 echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31924 ac_header_compiler=no
31927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31929 echo "${ECHO_T}$ac_header_compiler" >&6; }
31931 # Is the header present?
31932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31934 cat >conftest.$ac_ext <<_ACEOF
31937 cat confdefs.h >>conftest.$ac_ext
31938 cat >>conftest.$ac_ext <<_ACEOF
31939 /* end confdefs.h. */
31940 #include <$ac_header>
31942 if { (ac_try="$ac_cpp conftest.$ac_ext"
31943 case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31950 grep -v '^ *+' conftest.er1 >conftest.err
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } >/dev/null && {
31955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31956 test ! -s conftest.err
31958 ac_header_preproc=yes
31960 echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31963 ac_header_preproc=no
31966 rm -f conftest.err conftest.$ac_ext
31967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31968 echo "${ECHO_T}$ac_header_preproc" >&6; }
31970 # So? What about this header?
31971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31977 ac_header_preproc=yes
31980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31993 ## --------------------------------------------- ##
31994 ## Report this to <http://www.openldap.org/its/> ##
31995 ## --------------------------------------------- ##
31997 ) | sed "s/^/$as_me: WARNING: /" >&2
32000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32005 eval "$as_ac_Header=\$ac_header_preproc"
32007 ac_res=`eval echo '${'$as_ac_Header'}'`
32008 { echo "$as_me:$LINENO: result: $ac_res" >&5
32009 echo "${ECHO_T}$ac_res" >&6; }
32012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32013 cat >>confdefs.h <<_ACEOF
32014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32022 if test $ac_cv_header_slp_h = yes ; then
32023 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
32024 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
32025 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32028 ac_check_lib_save_LIBS=$LIBS
32030 cat >conftest.$ac_ext <<_ACEOF
32033 cat confdefs.h >>conftest.$ac_ext
32034 cat >>conftest.$ac_ext <<_ACEOF
32035 /* end confdefs.h. */
32037 /* Override any GCC internal prototype to avoid an error.
32038 Use char because int might match the return type of a GCC
32039 builtin and then its argument prototype would still apply. */
32052 rm -f conftest.$ac_objext conftest$ac_exeext
32053 if { (ac_try="$ac_link"
32054 case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_link") 2>conftest.er1
32061 grep -v '^ *+' conftest.er1 >conftest.err
32063 cat conftest.err >&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); } && {
32066 test -z "$ac_c_werror_flag" ||
32067 test ! -s conftest.err
32068 } && test -s conftest$ac_exeext &&
32069 $as_test_x conftest$ac_exeext; then
32070 ac_cv_lib_slp_SLPOpen=yes
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ac_cv_lib_slp_SLPOpen=no
32078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32079 conftest$ac_exeext conftest.$ac_ext
32080 LIBS=$ac_check_lib_save_LIBS
32082 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32083 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
32084 if test $ac_cv_lib_slp_SLPOpen = yes; then
32090 if test $have_slp = yes ; then
32092 cat >>confdefs.h <<\_ACEOF
32096 SLAPD_SLP_LIBS=-lslp
32099 elif test $ol_enable_slp = yes ; then
32100 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32101 echo "$as_me: error: SLP not found" >&2;}
32102 { (exit 1); exit 1; }; }
32107 { echo "$as_me:$LINENO: checking for mode_t" >&5
32108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
32109 if test "${ac_cv_type_mode_t+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32118 $ac_includes_default
32119 typedef mode_t ac__type_new_;
32123 if ((ac__type_new_ *) 0)
32125 if (sizeof (ac__type_new_))
32131 rm -f conftest.$ac_objext
32132 if { (ac_try="$ac_compile"
32133 case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138 (eval "$ac_compile") 2>conftest.er1
32140 grep -v '^ *+' conftest.er1 >conftest.err
32142 cat conftest.err >&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); } && {
32145 test -z "$ac_c_werror_flag" ||
32146 test ! -s conftest.err
32147 } && test -s conftest.$ac_objext; then
32148 ac_cv_type_mode_t=yes
32150 echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32153 ac_cv_type_mode_t=no
32156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
32160 if test $ac_cv_type_mode_t = yes; then
32164 cat >>confdefs.h <<_ACEOF
32170 { echo "$as_me:$LINENO: checking for off_t" >&5
32171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32172 if test "${ac_cv_type_off_t+set}" = set; then
32173 echo $ECHO_N "(cached) $ECHO_C" >&6
32175 cat >conftest.$ac_ext <<_ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h. */
32181 $ac_includes_default
32182 typedef off_t ac__type_new_;
32186 if ((ac__type_new_ *) 0)
32188 if (sizeof (ac__type_new_))
32194 rm -f conftest.$ac_objext
32195 if { (ac_try="$ac_compile"
32196 case "(($ac_try" in
32197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198 *) ac_try_echo=$ac_try;;
32200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201 (eval "$ac_compile") 2>conftest.er1
32203 grep -v '^ *+' conftest.er1 >conftest.err
32205 cat conftest.err >&5
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); } && {
32208 test -z "$ac_c_werror_flag" ||
32209 test ! -s conftest.err
32210 } && test -s conftest.$ac_objext; then
32211 ac_cv_type_off_t=yes
32213 echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32216 ac_cv_type_off_t=no
32219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32221 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32222 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32223 if test $ac_cv_type_off_t = yes; then
32227 cat >>confdefs.h <<_ACEOF
32233 { echo "$as_me:$LINENO: checking for pid_t" >&5
32234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32235 if test "${ac_cv_type_pid_t+set}" = set; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32238 cat >conftest.$ac_ext <<_ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h. */
32244 $ac_includes_default
32245 typedef pid_t ac__type_new_;
32249 if ((ac__type_new_ *) 0)
32251 if (sizeof (ac__type_new_))
32257 rm -f conftest.$ac_objext
32258 if { (ac_try="$ac_compile"
32259 case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_compile") 2>conftest.er1
32266 grep -v '^ *+' conftest.er1 >conftest.err
32268 cat conftest.err >&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } && {
32271 test -z "$ac_c_werror_flag" ||
32272 test ! -s conftest.err
32273 } && test -s conftest.$ac_objext; then
32274 ac_cv_type_pid_t=yes
32276 echo "$as_me: failed program was:" >&5
32277 sed 's/^/| /' conftest.$ac_ext >&5
32279 ac_cv_type_pid_t=no
32282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32286 if test $ac_cv_type_pid_t = yes; then
32290 cat >>confdefs.h <<_ACEOF
32296 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32297 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32298 if test "${ac_cv_type_ssize_t+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32301 cat >conftest.$ac_ext <<_ACEOF
32304 cat confdefs.h >>conftest.$ac_ext
32305 cat >>conftest.$ac_ext <<_ACEOF
32306 /* end confdefs.h. */
32307 $ac_includes_default
32308 typedef ssize_t ac__type_new_;
32312 if ((ac__type_new_ *) 0)
32314 if (sizeof (ac__type_new_))
32320 rm -f conftest.$ac_objext
32321 if { (ac_try="$ac_compile"
32322 case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32327 (eval "$ac_compile") 2>conftest.er1
32329 grep -v '^ *+' conftest.er1 >conftest.err
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } && {
32334 test -z "$ac_c_werror_flag" ||
32335 test ! -s conftest.err
32336 } && test -s conftest.$ac_objext; then
32337 ac_cv_type_ssize_t=yes
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_cv_type_ssize_t=no
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32348 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32349 if test $ac_cv_type_ssize_t = yes; then
32353 cat >>confdefs.h <<_ACEOF
32354 #define ssize_t signed int
32359 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32360 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32361 if test "${ac_cv_type_caddr_t+set}" = set; then
32362 echo $ECHO_N "(cached) $ECHO_C" >&6
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 $ac_includes_default
32371 typedef caddr_t ac__type_new_;
32375 if ((ac__type_new_ *) 0)
32377 if (sizeof (ac__type_new_))
32383 rm -f conftest.$ac_objext
32384 if { (ac_try="$ac_compile"
32385 case "(($ac_try" in
32386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387 *) ac_try_echo=$ac_try;;
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390 (eval "$ac_compile") 2>conftest.er1
32392 grep -v '^ *+' conftest.er1 >conftest.err
32394 cat conftest.err >&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); } && {
32397 test -z "$ac_c_werror_flag" ||
32398 test ! -s conftest.err
32399 } && test -s conftest.$ac_objext; then
32400 ac_cv_type_caddr_t=yes
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 ac_cv_type_caddr_t=no
32408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32410 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32411 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32412 if test $ac_cv_type_caddr_t = yes; then
32416 cat >>confdefs.h <<_ACEOF
32417 #define caddr_t char *
32422 { echo "$as_me:$LINENO: checking for size_t" >&5
32423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32424 if test "${ac_cv_type_size_t+set}" = set; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32427 cat >conftest.$ac_ext <<_ACEOF
32430 cat confdefs.h >>conftest.$ac_ext
32431 cat >>conftest.$ac_ext <<_ACEOF
32432 /* end confdefs.h. */
32433 $ac_includes_default
32434 typedef size_t ac__type_new_;
32438 if ((ac__type_new_ *) 0)
32440 if (sizeof (ac__type_new_))
32446 rm -f conftest.$ac_objext
32447 if { (ac_try="$ac_compile"
32448 case "(($ac_try" in
32449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450 *) ac_try_echo=$ac_try;;
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453 (eval "$ac_compile") 2>conftest.er1
32455 grep -v '^ *+' conftest.er1 >conftest.err
32457 cat conftest.err >&5
32458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459 (exit $ac_status); } && {
32460 test -z "$ac_c_werror_flag" ||
32461 test ! -s conftest.err
32462 } && test -s conftest.$ac_objext; then
32463 ac_cv_type_size_t=yes
32465 echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32468 ac_cv_type_size_t=no
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32474 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32475 if test $ac_cv_type_size_t = yes; then
32479 cat >>confdefs.h <<_ACEOF
32480 #define size_t unsigned
32486 { echo "$as_me:$LINENO: checking for long long" >&5
32487 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32488 if test "${ac_cv_type_long_long+set}" = set; then
32489 echo $ECHO_N "(cached) $ECHO_C" >&6
32491 cat >conftest.$ac_ext <<_ACEOF
32494 cat confdefs.h >>conftest.$ac_ext
32495 cat >>conftest.$ac_ext <<_ACEOF
32496 /* end confdefs.h. */
32497 $ac_includes_default
32498 typedef long long ac__type_new_;
32502 if ((ac__type_new_ *) 0)
32504 if (sizeof (ac__type_new_))
32510 rm -f conftest.$ac_objext
32511 if { (ac_try="$ac_compile"
32512 case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_compile") 2>conftest.er1
32519 grep -v '^ *+' conftest.er1 >conftest.err
32521 cat conftest.err >&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); } && {
32524 test -z "$ac_c_werror_flag" ||
32525 test ! -s conftest.err
32526 } && test -s conftest.$ac_objext; then
32527 ac_cv_type_long_long=yes
32529 echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32532 ac_cv_type_long_long=no
32535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32537 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32538 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32539 if test $ac_cv_type_long_long = yes; then
32541 cat >>confdefs.h <<_ACEOF
32542 #define HAVE_LONG_LONG 1
32548 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32549 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32550 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32559 $ac_includes_default
32560 typedef ptrdiff_t ac__type_new_;
32564 if ((ac__type_new_ *) 0)
32566 if (sizeof (ac__type_new_))
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_compile") 2>conftest.er1
32581 grep -v '^ *+' conftest.er1 >conftest.err
32583 cat conftest.err >&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } && {
32586 test -z "$ac_c_werror_flag" ||
32587 test ! -s conftest.err
32588 } && test -s conftest.$ac_objext; then
32589 ac_cv_type_ptrdiff_t=yes
32591 echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32594 ac_cv_type_ptrdiff_t=no
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32600 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32601 if test $ac_cv_type_ptrdiff_t = yes; then
32603 cat >>confdefs.h <<_ACEOF
32604 #define HAVE_PTRDIFF_T 1
32612 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32613 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32614 if test "${ac_cv_type_socklen_t+set}" = set; then
32615 echo $ECHO_N "(cached) $ECHO_C" >&6
32617 cat >conftest.$ac_ext <<_ACEOF
32620 cat confdefs.h >>conftest.$ac_ext
32621 cat >>conftest.$ac_ext <<_ACEOF
32622 /* end confdefs.h. */
32623 $ac_includes_default
32624 #ifdef HAVE_SYS_SOCKET_H
32625 #include <sys/socket.h>
32628 typedef socklen_t ac__type_new_;
32632 if ((ac__type_new_ *) 0)
32634 if (sizeof (ac__type_new_))
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_type_socklen_t=yes
32659 echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32662 ac_cv_type_socklen_t=no
32665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32667 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32668 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32671 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32672 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32673 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32674 echo $ECHO_N "(cached) $ECHO_C" >&6
32677 set socklen_t int unsigned "unsigned long" long size_t
32678 test "$ac_cv_type_socklen_t" = yes || shift
32679 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32680 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32681 cat >conftest.$ac_ext <<_ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h. */
32687 $ac_includes_default
32688 #ifdef HAVE_SYS_SOCKET_H
32689 #include <sys/socket.h>
32691 extern int accept(int s, $addrtype *ap, $lentype *lp);
32697 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32703 rm -f conftest.$ac_objext
32704 if { (ac_try="$ac_compile"
32705 case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_compile") 2>conftest.er1
32712 grep -v '^ *+' conftest.er1 >conftest.err
32714 cat conftest.err >&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } && {
32717 test -z "$ac_c_werror_flag" ||
32718 test ! -s conftest.err
32719 } && test -s conftest.$ac_objext; then
32720 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32722 echo "$as_me: failed program was:" >&5
32723 sed 's/^/| /' conftest.$ac_ext >&5
32728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32732 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32733 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32735 cat >>confdefs.h <<_ACEOF
32736 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32740 if test "$ac_cv_type_socklen_t" != yes; then
32742 cat >>confdefs.h <<_ACEOF
32743 #define socklen_t $ol_cv_type_ber_socklen_t
32749 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32750 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32751 if test "${ac_cv_type_signal+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32754 cat >conftest.$ac_ext <<_ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h. */
32760 #include <sys/types.h>
32761 #include <signal.h>
32766 return *(signal (0, 0)) (0) == 1;
32771 rm -f conftest.$ac_objext
32772 if { (ac_try="$ac_compile"
32773 case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_compile") 2>conftest.er1
32780 grep -v '^ *+' conftest.er1 >conftest.err
32782 cat conftest.err >&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } && {
32785 test -z "$ac_c_werror_flag" ||
32786 test ! -s conftest.err
32787 } && test -s conftest.$ac_objext; then
32788 ac_cv_type_signal=int
32790 echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32793 ac_cv_type_signal=void
32796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32798 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32799 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32801 cat >>confdefs.h <<_ACEOF
32802 #define RETSIGTYPE $ac_cv_type_signal
32807 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32808 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32809 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32812 cat >conftest.$ac_ext <<_ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h. */
32818 $ac_includes_default
32819 #include <signal.h>
32822 typedef sig_atomic_t ac__type_new_;
32826 if ((ac__type_new_ *) 0)
32828 if (sizeof (ac__type_new_))
32834 rm -f conftest.$ac_objext
32835 if { (ac_try="$ac_compile"
32836 case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_compile") 2>conftest.er1
32843 grep -v '^ *+' conftest.er1 >conftest.err
32845 cat conftest.err >&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } && {
32848 test -z "$ac_c_werror_flag" ||
32849 test ! -s conftest.err
32850 } && test -s conftest.$ac_objext; then
32851 ac_cv_type_sig_atomic_t=yes
32853 echo "$as_me: failed program was:" >&5
32854 sed 's/^/| /' conftest.$ac_ext >&5
32856 ac_cv_type_sig_atomic_t=no
32859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32861 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32862 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32863 if test $ac_cv_type_sig_atomic_t = yes; then
32867 cat >>confdefs.h <<_ACEOF
32868 #define sig_atomic_t int
32874 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32875 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32876 if test "${ac_cv_type_uid_t+set}" = set; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32879 cat >conftest.$ac_ext <<_ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h. */
32885 #include <sys/types.h>
32888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32889 $EGREP "uid_t" >/dev/null 2>&1; then
32890 ac_cv_type_uid_t=yes
32892 ac_cv_type_uid_t=no
32897 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32898 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32899 if test $ac_cv_type_uid_t = no; then
32901 cat >>confdefs.h <<\_ACEOF
32906 cat >>confdefs.h <<\_ACEOF
32913 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32914 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32915 if test "${ac_cv_header_time+set}" = set; then
32916 echo $ECHO_N "(cached) $ECHO_C" >&6
32918 cat >conftest.$ac_ext <<_ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h. */
32924 #include <sys/types.h>
32925 #include <sys/time.h>
32931 if ((struct tm *) 0)
32937 rm -f conftest.$ac_objext
32938 if { (ac_try="$ac_compile"
32939 case "(($ac_try" in
32940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941 *) ac_try_echo=$ac_try;;
32943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944 (eval "$ac_compile") 2>conftest.er1
32946 grep -v '^ *+' conftest.er1 >conftest.err
32948 cat conftest.err >&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } && {
32951 test -z "$ac_c_werror_flag" ||
32952 test ! -s conftest.err
32953 } && test -s conftest.$ac_objext; then
32954 ac_cv_header_time=yes
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32959 ac_cv_header_time=no
32962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32964 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32965 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32966 if test $ac_cv_header_time = yes; then
32968 cat >>confdefs.h <<\_ACEOF
32969 #define TIME_WITH_SYS_TIME 1
32974 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32975 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32976 if test "${ac_cv_struct_tm+set}" = set; then
32977 echo $ECHO_N "(cached) $ECHO_C" >&6
32979 cat >conftest.$ac_ext <<_ACEOF
32982 cat confdefs.h >>conftest.$ac_ext
32983 cat >>conftest.$ac_ext <<_ACEOF
32984 /* end confdefs.h. */
32985 #include <sys/types.h>
32992 int *p = &tm.tm_sec;
32998 rm -f conftest.$ac_objext
32999 if { (ac_try="$ac_compile"
33000 case "(($ac_try" in
33001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002 *) ac_try_echo=$ac_try;;
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005 (eval "$ac_compile") 2>conftest.er1
33007 grep -v '^ *+' conftest.er1 >conftest.err
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && {
33012 test -z "$ac_c_werror_flag" ||
33013 test ! -s conftest.err
33014 } && test -s conftest.$ac_objext; then
33015 ac_cv_struct_tm=time.h
33017 echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33020 ac_cv_struct_tm=sys/time.h
33023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33025 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33026 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
33027 if test $ac_cv_struct_tm = sys/time.h; then
33029 cat >>confdefs.h <<\_ACEOF
33030 #define TM_IN_SYS_TIME 1
33035 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33036 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33037 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33038 echo $ECHO_N "(cached) $ECHO_C" >&6
33040 cat >conftest.$ac_ext <<_ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h. */
33046 $ac_includes_default
33050 static struct stat ac_aggr;
33051 if (ac_aggr.st_blksize)
33057 rm -f conftest.$ac_objext
33058 if { (ac_try="$ac_compile"
33059 case "(($ac_try" in
33060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061 *) ac_try_echo=$ac_try;;
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_compile") 2>conftest.er1
33066 grep -v '^ *+' conftest.er1 >conftest.err
33068 cat conftest.err >&5
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); } && {
33071 test -z "$ac_c_werror_flag" ||
33072 test ! -s conftest.err
33073 } && test -s conftest.$ac_objext; then
33074 ac_cv_member_struct_stat_st_blksize=yes
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 cat >conftest.$ac_ext <<_ACEOF
33082 cat confdefs.h >>conftest.$ac_ext
33083 cat >>conftest.$ac_ext <<_ACEOF
33084 /* end confdefs.h. */
33085 $ac_includes_default
33089 static struct stat ac_aggr;
33090 if (sizeof ac_aggr.st_blksize)
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_compile") 2>conftest.er1
33105 grep -v '^ *+' conftest.er1 >conftest.err
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest.$ac_objext; then
33113 ac_cv_member_struct_stat_st_blksize=yes
33115 echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33118 ac_cv_member_struct_stat_st_blksize=no
33121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33128 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33130 cat >>confdefs.h <<_ACEOF
33131 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33137 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33138 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
33139 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33148 $ac_includes_default
33154 static struct passwd ac_aggr;
33155 if (ac_aggr.pw_gecos)
33161 rm -f conftest.$ac_objext
33162 if { (ac_try="$ac_compile"
33163 case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_compile") 2>conftest.er1
33170 grep -v '^ *+' conftest.er1 >conftest.err
33172 cat conftest.err >&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } && {
33175 test -z "$ac_c_werror_flag" ||
33176 test ! -s conftest.err
33177 } && test -s conftest.$ac_objext; then
33178 ac_cv_member_struct_passwd_pw_gecos=yes
33180 echo "$as_me: failed program was:" >&5
33181 sed 's/^/| /' conftest.$ac_ext >&5
33183 cat >conftest.$ac_ext <<_ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33189 $ac_includes_default
33195 static struct passwd ac_aggr;
33196 if (sizeof ac_aggr.pw_gecos)
33202 rm -f conftest.$ac_objext
33203 if { (ac_try="$ac_compile"
33204 case "(($ac_try" in
33205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33206 *) ac_try_echo=$ac_try;;
33208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33209 (eval "$ac_compile") 2>conftest.er1
33211 grep -v '^ *+' conftest.er1 >conftest.err
33213 cat conftest.err >&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); } && {
33216 test -z "$ac_c_werror_flag" ||
33217 test ! -s conftest.err
33218 } && test -s conftest.$ac_objext; then
33219 ac_cv_member_struct_passwd_pw_gecos=yes
33221 echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33224 ac_cv_member_struct_passwd_pw_gecos=no
33227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33233 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33234 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33236 cat >>confdefs.h <<_ACEOF
33237 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33243 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33244 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33245 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33248 cat >conftest.$ac_ext <<_ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h. */
33254 $ac_includes_default
33260 static struct passwd ac_aggr;
33261 if (ac_aggr.pw_passwd)
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_compile") 2>conftest.er1
33276 grep -v '^ *+' conftest.er1 >conftest.err
33278 cat conftest.err >&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); } && {
33281 test -z "$ac_c_werror_flag" ||
33282 test ! -s conftest.err
33283 } && test -s conftest.$ac_objext; then
33284 ac_cv_member_struct_passwd_pw_passwd=yes
33286 echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33289 cat >conftest.$ac_ext <<_ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h. */
33295 $ac_includes_default
33301 static struct passwd ac_aggr;
33302 if (sizeof ac_aggr.pw_passwd)
33308 rm -f conftest.$ac_objext
33309 if { (ac_try="$ac_compile"
33310 case "(($ac_try" in
33311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312 *) ac_try_echo=$ac_try;;
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315 (eval "$ac_compile") 2>conftest.er1
33317 grep -v '^ *+' conftest.er1 >conftest.err
33319 cat conftest.err >&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } && {
33322 test -z "$ac_c_werror_flag" ||
33323 test ! -s conftest.err
33324 } && test -s conftest.$ac_objext; then
33325 ac_cv_member_struct_passwd_pw_passwd=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_cv_member_struct_passwd_pw_passwd=no
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33339 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33340 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33342 cat >>confdefs.h <<_ACEOF
33343 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33350 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33351 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33352 if test "${ol_cv_c_upper_lower+set}" = set; then
33353 echo $ECHO_N "(cached) $ECHO_C" >&6
33356 if test "$cross_compiling" = yes; then
33357 ol_cv_c_upper_lower=safe
33359 cat >conftest.$ac_ext <<_ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33369 if ('C' == toupper('C'))
33375 rm -f conftest$ac_exeext
33376 if { (ac_try="$ac_link"
33377 case "(($ac_try" in
33378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33379 *) ac_try_echo=$ac_try;;
33381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33382 (eval "$ac_link") 2>&5
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33386 { (case "(($ac_try" in
33387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33388 *) ac_try_echo=$ac_try;;
33390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33391 (eval "$ac_try") 2>&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; }; then
33395 ol_cv_c_upper_lower=no
33397 echo "$as_me: program exited with status $ac_status" >&5
33398 echo "$as_me: failed program was:" >&5
33399 sed 's/^/| /' conftest.$ac_ext >&5
33401 ( exit $ac_status )
33402 ol_cv_c_upper_lower=yes
33404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33409 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33410 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33411 if test $ol_cv_c_upper_lower != no ; then
33413 cat >>confdefs.h <<\_ACEOF
33414 #define C_UPPER_LOWER 1
33419 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33420 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33421 if test "${ac_cv_c_const+set}" = set; then
33422 echo $ECHO_N "(cached) $ECHO_C" >&6
33424 cat >conftest.$ac_ext <<_ACEOF
33427 cat confdefs.h >>conftest.$ac_ext
33428 cat >>conftest.$ac_ext <<_ACEOF
33429 /* end confdefs.h. */
33434 /* FIXME: Include the comments suggested by Paul. */
33435 #ifndef __cplusplus
33436 /* Ultrix mips cc rejects this. */
33437 typedef int charset[2];
33439 /* SunOS 4.1.1 cc rejects this. */
33440 char const *const *pcpcc;
33442 /* NEC SVR4.0.2 mips cc rejects this. */
33443 struct point {int x, y;};
33444 static struct point const zero = {0,0};
33445 /* AIX XL C 1.02.0.0 rejects this.
33446 It does not let you subtract one const X* pointer from another in
33447 an arm of an if-expression whose if-part is not a constant
33449 const char *g = "string";
33450 pcpcc = &g + (g ? g-g : 0);
33451 /* HPUX 7.0 cc rejects these. */
33453 ppc = (char**) pcpcc;
33454 pcpcc = (char const *const *) ppc;
33455 { /* SCO 3.2v4 cc rejects this. */
33457 char const *s = 0 ? (char *) 0 : (char const *) 0;
33462 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33463 int x[] = {25, 17};
33464 const int *foo = &x[0];
33467 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33468 typedef const int *iptr;
33472 { /* AIX XL C 1.02.0.0 rejects this saying
33473 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33474 struct s { int j; const int *ap[3]; };
33475 struct s *b; b->j = 5;
33477 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33478 const int foo = 10;
33479 if (!foo) return 0;
33481 return !cs[0] && !zero.x;
33488 rm -f conftest.$ac_objext
33489 if { (ac_try="$ac_compile"
33490 case "(($ac_try" in
33491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492 *) ac_try_echo=$ac_try;;
33494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495 (eval "$ac_compile") 2>conftest.er1
33497 grep -v '^ *+' conftest.er1 >conftest.err
33499 cat conftest.err >&5
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); } && {
33502 test -z "$ac_c_werror_flag" ||
33503 test ! -s conftest.err
33504 } && test -s conftest.$ac_objext; then
33507 echo "$as_me: failed program was:" >&5
33508 sed 's/^/| /' conftest.$ac_ext >&5
33513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33515 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33516 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33517 if test $ac_cv_c_const = no; then
33519 cat >>confdefs.h <<\_ACEOF
33525 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33526 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33527 if test "${ol_cv_c_volatile+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 cat >conftest.$ac_ext <<_ACEOF
33533 cat confdefs.h >>conftest.$ac_ext
33534 cat >>conftest.$ac_ext <<_ACEOF
33535 /* end confdefs.h. */
33540 volatile int a; int * volatile b = x ? &y : &z;
33541 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551 *) ac_try_echo=$ac_try;;
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554 (eval "$ac_compile") 2>conftest.er1
33556 grep -v '^ *+' conftest.er1 >conftest.err
33558 cat conftest.err >&5
33559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560 (exit $ac_status); } && {
33561 test -z "$ac_c_werror_flag" ||
33562 test ! -s conftest.err
33563 } && test -s conftest.$ac_objext; then
33564 ol_cv_c_volatile=yes
33566 echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33569 ol_cv_c_volatile=no
33572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33574 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33575 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33576 if test $ol_cv_c_volatile = yes; then
33580 cat >>confdefs.h <<\_ACEOF
33587 if test $cross_compiling = yes ; then
33588 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33589 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33591 cat >>confdefs.h <<\_ACEOF
33592 #define CROSS_COMPILING 1
33596 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33597 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33598 if test "${ac_cv_c_bigendian+set}" = set; then
33599 echo $ECHO_N "(cached) $ECHO_C" >&6
33601 # See if sys/param.h defines the BYTE_ORDER macro.
33602 cat >conftest.$ac_ext <<_ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h. */
33608 #include <sys/types.h>
33609 #include <sys/param.h>
33614 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33615 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33616 bogus endian macros
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_compile") 2>conftest.er1
33632 grep -v '^ *+' conftest.er1 >conftest.err
33634 cat conftest.err >&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } && {
33637 test -z "$ac_c_werror_flag" ||
33638 test ! -s conftest.err
33639 } && test -s conftest.$ac_objext; then
33640 # It does; now see whether it defined to BIG_ENDIAN or not.
33641 cat >conftest.$ac_ext <<_ACEOF
33644 cat confdefs.h >>conftest.$ac_ext
33645 cat >>conftest.$ac_ext <<_ACEOF
33646 /* end confdefs.h. */
33647 #include <sys/types.h>
33648 #include <sys/param.h>
33653 #if BYTE_ORDER != BIG_ENDIAN
33661 rm -f conftest.$ac_objext
33662 if { (ac_try="$ac_compile"
33663 case "(($ac_try" in
33664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33665 *) ac_try_echo=$ac_try;;
33667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33668 (eval "$ac_compile") 2>conftest.er1
33670 grep -v '^ *+' conftest.er1 >conftest.err
33672 cat conftest.err >&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } && {
33675 test -z "$ac_c_werror_flag" ||
33676 test ! -s conftest.err
33677 } && test -s conftest.$ac_objext; then
33678 ac_cv_c_bigendian=yes
33680 echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33683 ac_cv_c_bigendian=no
33686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 # It does not; compile a test program.
33692 if test "$cross_compiling" = yes; then
33693 # try to guess the endianness by grepping values into an object file
33694 ac_cv_c_bigendian=unknown
33695 cat >conftest.$ac_ext <<_ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h. */
33701 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33702 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33703 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33704 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33705 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33706 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33710 _ascii (); _ebcdic ();
33715 rm -f conftest.$ac_objext
33716 if { (ac_try="$ac_compile"
33717 case "(($ac_try" in
33718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719 *) ac_try_echo=$ac_try;;
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722 (eval "$ac_compile") 2>conftest.er1
33724 grep -v '^ *+' conftest.er1 >conftest.err
33726 cat conftest.err >&5
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); } && {
33729 test -z "$ac_c_werror_flag" ||
33730 test ! -s conftest.err
33731 } && test -s conftest.$ac_objext; then
33732 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33733 ac_cv_c_bigendian=yes
33735 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33736 if test "$ac_cv_c_bigendian" = unknown; then
33737 ac_cv_c_bigendian=no
33739 # finding both strings is unlikely to happen, but who knows?
33740 ac_cv_c_bigendian=unknown
33744 echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33752 cat >conftest.$ac_ext <<_ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h. */
33758 $ac_includes_default
33763 /* Are we little or big endian? From Harbison&Steele. */
33767 char c[sizeof (long int)];
33770 return u.c[sizeof (long int) - 1] == 1;
33776 rm -f conftest$ac_exeext
33777 if { (ac_try="$ac_link"
33778 case "(($ac_try" in
33779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780 *) ac_try_echo=$ac_try;;
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783 (eval "$ac_link") 2>&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33787 { (case "(($ac_try" in
33788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789 *) ac_try_echo=$ac_try;;
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792 (eval "$ac_try") 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ac_cv_c_bigendian=no
33798 echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33802 ( exit $ac_status )
33803 ac_cv_c_bigendian=yes
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33813 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33814 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33815 case $ac_cv_c_bigendian in
33818 cat >>confdefs.h <<\_ACEOF
33819 #define WORDS_BIGENDIAN 1
33825 { { echo "$as_me:$LINENO: error: unknown endianness
33826 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33827 echo "$as_me: error: unknown endianness
33828 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33829 { (exit 1); exit 1; }; } ;;
33834 { echo "$as_me:$LINENO: checking for short" >&5
33835 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33836 if test "${ac_cv_type_short+set}" = set; then
33837 echo $ECHO_N "(cached) $ECHO_C" >&6
33839 cat >conftest.$ac_ext <<_ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h. */
33845 $ac_includes_default
33846 typedef short ac__type_new_;
33850 if ((ac__type_new_ *) 0)
33852 if (sizeof (ac__type_new_))
33858 rm -f conftest.$ac_objext
33859 if { (ac_try="$ac_compile"
33860 case "(($ac_try" in
33861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862 *) ac_try_echo=$ac_try;;
33864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865 (eval "$ac_compile") 2>conftest.er1
33867 grep -v '^ *+' conftest.er1 >conftest.err
33869 cat conftest.err >&5
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); } && {
33872 test -z "$ac_c_werror_flag" ||
33873 test ! -s conftest.err
33874 } && test -s conftest.$ac_objext; then
33875 ac_cv_type_short=yes
33877 echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33880 ac_cv_type_short=no
33883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33885 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33886 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33888 # The cast to long int works around a bug in the HP C Compiler
33889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33891 # This bug is HP SR number 8606223364.
33892 { echo "$as_me:$LINENO: checking size of short" >&5
33893 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33894 if test "${ac_cv_sizeof_short+set}" = set; then
33895 echo $ECHO_N "(cached) $ECHO_C" >&6
33897 if test "$cross_compiling" = yes; then
33898 # Depending upon the size, compute the lo and hi bounds.
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33905 $ac_includes_default
33906 typedef short ac__type_sizeof_;
33910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33917 rm -f conftest.$ac_objext
33918 if { (ac_try="$ac_compile"
33919 case "(($ac_try" in
33920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921 *) ac_try_echo=$ac_try;;
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924 (eval "$ac_compile") 2>conftest.er1
33926 grep -v '^ *+' conftest.er1 >conftest.err
33928 cat conftest.err >&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } && {
33931 test -z "$ac_c_werror_flag" ||
33932 test ! -s conftest.err
33933 } && test -s conftest.$ac_objext; then
33936 cat >conftest.$ac_ext <<_ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33942 $ac_includes_default
33943 typedef short ac__type_sizeof_;
33947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_compile") 2>conftest.er1
33963 grep -v '^ *+' conftest.er1 >conftest.err
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } && {
33968 test -z "$ac_c_werror_flag" ||
33969 test ! -s conftest.err
33970 } && test -s conftest.$ac_objext; then
33971 ac_hi=$ac_mid; break
33973 echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33976 ac_lo=`expr $ac_mid + 1`
33977 if test $ac_lo -le $ac_mid; then
33981 ac_mid=`expr 2 '*' $ac_mid + 1`
33984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987 echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.$ac_ext >&5
33990 cat >conftest.$ac_ext <<_ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h. */
33996 $ac_includes_default
33997 typedef short ac__type_sizeof_;
34001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34008 rm -f conftest.$ac_objext
34009 if { (ac_try="$ac_compile"
34010 case "(($ac_try" in
34011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012 *) ac_try_echo=$ac_try;;
34014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015 (eval "$ac_compile") 2>conftest.er1
34017 grep -v '^ *+' conftest.er1 >conftest.err
34019 cat conftest.err >&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); } && {
34022 test -z "$ac_c_werror_flag" ||
34023 test ! -s conftest.err
34024 } && test -s conftest.$ac_objext; then
34027 cat >conftest.$ac_ext <<_ACEOF
34030 cat confdefs.h >>conftest.$ac_ext
34031 cat >>conftest.$ac_ext <<_ACEOF
34032 /* end confdefs.h. */
34033 $ac_includes_default
34034 typedef short ac__type_sizeof_;
34038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34045 rm -f conftest.$ac_objext
34046 if { (ac_try="$ac_compile"
34047 case "(($ac_try" in
34048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34049 *) ac_try_echo=$ac_try;;
34051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34052 (eval "$ac_compile") 2>conftest.er1
34054 grep -v '^ *+' conftest.er1 >conftest.err
34056 cat conftest.err >&5
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); } && {
34059 test -z "$ac_c_werror_flag" ||
34060 test ! -s conftest.err
34061 } && test -s conftest.$ac_objext; then
34062 ac_lo=$ac_mid; break
34064 echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34067 ac_hi=`expr '(' $ac_mid ')' - 1`
34068 if test $ac_mid -le $ac_hi; then
34072 ac_mid=`expr 2 '*' $ac_mid`
34075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34078 echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34088 # Binary search between lo and hi bounds.
34089 while test "x$ac_lo" != "x$ac_hi"; do
34090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34091 cat >conftest.$ac_ext <<_ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h. */
34097 $ac_includes_default
34098 typedef short ac__type_sizeof_;
34102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_compile") 2>conftest.er1
34118 grep -v '^ *+' conftest.er1 >conftest.err
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } && {
34123 test -z "$ac_c_werror_flag" ||
34124 test ! -s conftest.err
34125 } && test -s conftest.$ac_objext; then
34128 echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34131 ac_lo=`expr '(' $ac_mid ')' + 1`
34134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34137 ?*) ac_cv_sizeof_short=$ac_lo;;
34138 '') if test "$ac_cv_type_short" = yes; then
34139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34140 See \`config.log' for more details." >&5
34141 echo "$as_me: error: cannot compute sizeof (short)
34142 See \`config.log' for more details." >&2;}
34143 { (exit 77); exit 77; }; }
34145 ac_cv_sizeof_short=0
34149 cat >conftest.$ac_ext <<_ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155 $ac_includes_default
34156 typedef short ac__type_sizeof_;
34157 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34158 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34160 #include <stdlib.h>
34165 FILE *f = fopen ("conftest.val", "w");
34168 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34170 long int i = longval ();
34171 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34173 fprintf (f, "%ld\n", i);
34177 unsigned long int i = ulongval ();
34178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34180 fprintf (f, "%lu\n", i);
34182 return ferror (f) || fclose (f) != 0;
34188 rm -f conftest$ac_exeext
34189 if { (ac_try="$ac_link"
34190 case "(($ac_try" in
34191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192 *) ac_try_echo=$ac_try;;
34194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195 (eval "$ac_link") 2>&5
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34199 { (case "(($ac_try" in
34200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201 *) ac_try_echo=$ac_try;;
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204 (eval "$ac_try") 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; }; then
34208 ac_cv_sizeof_short=`cat conftest.val`
34210 echo "$as_me: program exited with status $ac_status" >&5
34211 echo "$as_me: failed program was:" >&5
34212 sed 's/^/| /' conftest.$ac_ext >&5
34214 ( exit $ac_status )
34215 if test "$ac_cv_type_short" = yes; then
34216 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34217 See \`config.log' for more details." >&5
34218 echo "$as_me: error: cannot compute sizeof (short)
34219 See \`config.log' for more details." >&2;}
34220 { (exit 77); exit 77; }; }
34222 ac_cv_sizeof_short=0
34225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34230 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34234 cat >>confdefs.h <<_ACEOF
34235 #define SIZEOF_SHORT $ac_cv_sizeof_short
34239 { echo "$as_me:$LINENO: checking for int" >&5
34240 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34241 if test "${ac_cv_type_int+set}" = set; then
34242 echo $ECHO_N "(cached) $ECHO_C" >&6
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34250 $ac_includes_default
34251 typedef int ac__type_new_;
34255 if ((ac__type_new_ *) 0)
34257 if (sizeof (ac__type_new_))
34263 rm -f conftest.$ac_objext
34264 if { (ac_try="$ac_compile"
34265 case "(($ac_try" in
34266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34267 *) ac_try_echo=$ac_try;;
34269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34270 (eval "$ac_compile") 2>conftest.er1
34272 grep -v '^ *+' conftest.er1 >conftest.err
34274 cat conftest.err >&5
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } && {
34277 test -z "$ac_c_werror_flag" ||
34278 test ! -s conftest.err
34279 } && test -s conftest.$ac_objext; then
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34290 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34291 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34293 # The cast to long int works around a bug in the HP C Compiler
34294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34296 # This bug is HP SR number 8606223364.
34297 { echo "$as_me:$LINENO: checking size of int" >&5
34298 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34299 if test "${ac_cv_sizeof_int+set}" = set; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34302 if test "$cross_compiling" = yes; then
34303 # Depending upon the size, compute the lo and hi bounds.
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 $ac_includes_default
34311 typedef int ac__type_sizeof_;
34315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34322 rm -f conftest.$ac_objext
34323 if { (ac_try="$ac_compile"
34324 case "(($ac_try" in
34325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34326 *) ac_try_echo=$ac_try;;
34328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34329 (eval "$ac_compile") 2>conftest.er1
34331 grep -v '^ *+' conftest.er1 >conftest.err
34333 cat conftest.err >&5
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); } && {
34336 test -z "$ac_c_werror_flag" ||
34337 test ! -s conftest.err
34338 } && test -s conftest.$ac_objext; then
34341 cat >conftest.$ac_ext <<_ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h. */
34347 $ac_includes_default
34348 typedef int ac__type_sizeof_;
34352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366 (eval "$ac_compile") 2>conftest.er1
34368 grep -v '^ *+' conftest.er1 >conftest.err
34370 cat conftest.err >&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); } && {
34373 test -z "$ac_c_werror_flag" ||
34374 test ! -s conftest.err
34375 } && test -s conftest.$ac_objext; then
34376 ac_hi=$ac_mid; break
34378 echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34381 ac_lo=`expr $ac_mid + 1`
34382 if test $ac_lo -le $ac_mid; then
34386 ac_mid=`expr 2 '*' $ac_mid + 1`
34389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34392 echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34395 cat >conftest.$ac_ext <<_ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h. */
34401 $ac_includes_default
34402 typedef int ac__type_sizeof_;
34406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34413 rm -f conftest.$ac_objext
34414 if { (ac_try="$ac_compile"
34415 case "(($ac_try" in
34416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34417 *) ac_try_echo=$ac_try;;
34419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34420 (eval "$ac_compile") 2>conftest.er1
34422 grep -v '^ *+' conftest.er1 >conftest.err
34424 cat conftest.err >&5
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); } && {
34427 test -z "$ac_c_werror_flag" ||
34428 test ! -s conftest.err
34429 } && test -s conftest.$ac_objext; then
34432 cat >conftest.$ac_ext <<_ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h. */
34438 $ac_includes_default
34439 typedef int ac__type_sizeof_;
34443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_compile") 2>conftest.er1
34459 grep -v '^ *+' conftest.er1 >conftest.err
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } && {
34464 test -z "$ac_c_werror_flag" ||
34465 test ! -s conftest.err
34466 } && test -s conftest.$ac_objext; then
34467 ac_lo=$ac_mid; break
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34472 ac_hi=`expr '(' $ac_mid ')' - 1`
34473 if test $ac_mid -le $ac_hi; then
34477 ac_mid=`expr 2 '*' $ac_mid`
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34483 echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34493 # Binary search between lo and hi bounds.
34494 while test "x$ac_lo" != "x$ac_hi"; do
34495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34496 cat >conftest.$ac_ext <<_ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h. */
34502 $ac_includes_default
34503 typedef int ac__type_sizeof_;
34507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34514 rm -f conftest.$ac_objext
34515 if { (ac_try="$ac_compile"
34516 case "(($ac_try" in
34517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34518 *) ac_try_echo=$ac_try;;
34520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34521 (eval "$ac_compile") 2>conftest.er1
34523 grep -v '^ *+' conftest.er1 >conftest.err
34525 cat conftest.err >&5
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); } && {
34528 test -z "$ac_c_werror_flag" ||
34529 test ! -s conftest.err
34530 } && test -s conftest.$ac_objext; then
34533 echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34536 ac_lo=`expr '(' $ac_mid ')' + 1`
34539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34542 ?*) ac_cv_sizeof_int=$ac_lo;;
34543 '') if test "$ac_cv_type_int" = yes; then
34544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34545 See \`config.log' for more details." >&5
34546 echo "$as_me: error: cannot compute sizeof (int)
34547 See \`config.log' for more details." >&2;}
34548 { (exit 77); exit 77; }; }
34554 cat >conftest.$ac_ext <<_ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 $ac_includes_default
34561 typedef int ac__type_sizeof_;
34562 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34563 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34565 #include <stdlib.h>
34570 FILE *f = fopen ("conftest.val", "w");
34573 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34575 long int i = longval ();
34576 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34578 fprintf (f, "%ld\n", i);
34582 unsigned long int i = ulongval ();
34583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34585 fprintf (f, "%lu\n", i);
34587 return ferror (f) || fclose (f) != 0;
34593 rm -f conftest$ac_exeext
34594 if { (ac_try="$ac_link"
34595 case "(($ac_try" in
34596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597 *) ac_try_echo=$ac_try;;
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600 (eval "$ac_link") 2>&5
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34604 { (case "(($ac_try" in
34605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34606 *) ac_try_echo=$ac_try;;
34608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34609 (eval "$ac_try") 2>&5
34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); }; }; then
34613 ac_cv_sizeof_int=`cat conftest.val`
34615 echo "$as_me: program exited with status $ac_status" >&5
34616 echo "$as_me: failed program was:" >&5
34617 sed 's/^/| /' conftest.$ac_ext >&5
34619 ( exit $ac_status )
34620 if test "$ac_cv_type_int" = yes; then
34621 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34622 See \`config.log' for more details." >&5
34623 echo "$as_me: error: cannot compute sizeof (int)
34624 See \`config.log' for more details." >&2;}
34625 { (exit 77); exit 77; }; }
34630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34634 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34635 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34639 cat >>confdefs.h <<_ACEOF
34640 #define SIZEOF_INT $ac_cv_sizeof_int
34644 { echo "$as_me:$LINENO: checking for long" >&5
34645 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34646 if test "${ac_cv_type_long+set}" = set; then
34647 echo $ECHO_N "(cached) $ECHO_C" >&6
34649 cat >conftest.$ac_ext <<_ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h. */
34655 $ac_includes_default
34656 typedef long ac__type_new_;
34660 if ((ac__type_new_ *) 0)
34662 if (sizeof (ac__type_new_))
34668 rm -f conftest.$ac_objext
34669 if { (ac_try="$ac_compile"
34670 case "(($ac_try" in
34671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34672 *) ac_try_echo=$ac_try;;
34674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34675 (eval "$ac_compile") 2>conftest.er1
34677 grep -v '^ *+' conftest.er1 >conftest.err
34679 cat conftest.err >&5
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); } && {
34682 test -z "$ac_c_werror_flag" ||
34683 test ! -s conftest.err
34684 } && test -s conftest.$ac_objext; then
34685 ac_cv_type_long=yes
34687 echo "$as_me: failed program was:" >&5
34688 sed 's/^/| /' conftest.$ac_ext >&5
34693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34695 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34696 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34698 # The cast to long int works around a bug in the HP C Compiler
34699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34701 # This bug is HP SR number 8606223364.
34702 { echo "$as_me:$LINENO: checking size of long" >&5
34703 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34704 if test "${ac_cv_sizeof_long+set}" = set; then
34705 echo $ECHO_N "(cached) $ECHO_C" >&6
34707 if test "$cross_compiling" = yes; then
34708 # Depending upon the size, compute the lo and hi bounds.
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34715 $ac_includes_default
34716 typedef long ac__type_sizeof_;
34720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34727 rm -f conftest.$ac_objext
34728 if { (ac_try="$ac_compile"
34729 case "(($ac_try" in
34730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34731 *) ac_try_echo=$ac_try;;
34733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34734 (eval "$ac_compile") 2>conftest.er1
34736 grep -v '^ *+' conftest.er1 >conftest.err
34738 cat conftest.err >&5
34739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740 (exit $ac_status); } && {
34741 test -z "$ac_c_werror_flag" ||
34742 test ! -s conftest.err
34743 } && test -s conftest.$ac_objext; then
34746 cat >conftest.$ac_ext <<_ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34752 $ac_includes_default
34753 typedef long ac__type_sizeof_;
34757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34764 rm -f conftest.$ac_objext
34765 if { (ac_try="$ac_compile"
34766 case "(($ac_try" in
34767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34768 *) ac_try_echo=$ac_try;;
34770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34771 (eval "$ac_compile") 2>conftest.er1
34773 grep -v '^ *+' conftest.er1 >conftest.err
34775 cat conftest.err >&5
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); } && {
34778 test -z "$ac_c_werror_flag" ||
34779 test ! -s conftest.err
34780 } && test -s conftest.$ac_objext; then
34781 ac_hi=$ac_mid; break
34783 echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34786 ac_lo=`expr $ac_mid + 1`
34787 if test $ac_lo -le $ac_mid; then
34791 ac_mid=`expr 2 '*' $ac_mid + 1`
34794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797 echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.$ac_ext >&5
34800 cat >conftest.$ac_ext <<_ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h. */
34806 $ac_includes_default
34807 typedef long ac__type_sizeof_;
34811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34818 rm -f conftest.$ac_objext
34819 if { (ac_try="$ac_compile"
34820 case "(($ac_try" in
34821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822 *) ac_try_echo=$ac_try;;
34824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34825 (eval "$ac_compile") 2>conftest.er1
34827 grep -v '^ *+' conftest.er1 >conftest.err
34829 cat conftest.err >&5
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); } && {
34832 test -z "$ac_c_werror_flag" ||
34833 test ! -s conftest.err
34834 } && test -s conftest.$ac_objext; then
34837 cat >conftest.$ac_ext <<_ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h. */
34843 $ac_includes_default
34844 typedef long ac__type_sizeof_;
34848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34855 rm -f conftest.$ac_objext
34856 if { (ac_try="$ac_compile"
34857 case "(($ac_try" in
34858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34859 *) ac_try_echo=$ac_try;;
34861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34862 (eval "$ac_compile") 2>conftest.er1
34864 grep -v '^ *+' conftest.er1 >conftest.err
34866 cat conftest.err >&5
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); } && {
34869 test -z "$ac_c_werror_flag" ||
34870 test ! -s conftest.err
34871 } && test -s conftest.$ac_objext; then
34872 ac_lo=$ac_mid; break
34874 echo "$as_me: failed program was:" >&5
34875 sed 's/^/| /' conftest.$ac_ext >&5
34877 ac_hi=`expr '(' $ac_mid ')' - 1`
34878 if test $ac_mid -le $ac_hi; then
34882 ac_mid=`expr 2 '*' $ac_mid`
34885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34888 echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34898 # Binary search between lo and hi bounds.
34899 while test "x$ac_lo" != "x$ac_hi"; do
34900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34901 cat >conftest.$ac_ext <<_ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h. */
34907 $ac_includes_default
34908 typedef long ac__type_sizeof_;
34912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34919 rm -f conftest.$ac_objext
34920 if { (ac_try="$ac_compile"
34921 case "(($ac_try" in
34922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34923 *) ac_try_echo=$ac_try;;
34925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34926 (eval "$ac_compile") 2>conftest.er1
34928 grep -v '^ *+' conftest.er1 >conftest.err
34930 cat conftest.err >&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } && {
34933 test -z "$ac_c_werror_flag" ||
34934 test ! -s conftest.err
34935 } && test -s conftest.$ac_objext; then
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34941 ac_lo=`expr '(' $ac_mid ')' + 1`
34944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34947 ?*) ac_cv_sizeof_long=$ac_lo;;
34948 '') if test "$ac_cv_type_long" = yes; then
34949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34950 See \`config.log' for more details." >&5
34951 echo "$as_me: error: cannot compute sizeof (long)
34952 See \`config.log' for more details." >&2;}
34953 { (exit 77); exit 77; }; }
34955 ac_cv_sizeof_long=0
34959 cat >conftest.$ac_ext <<_ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34965 $ac_includes_default
34966 typedef long ac__type_sizeof_;
34967 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34968 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34970 #include <stdlib.h>
34975 FILE *f = fopen ("conftest.val", "w");
34978 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34980 long int i = longval ();
34981 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34983 fprintf (f, "%ld\n", i);
34987 unsigned long int i = ulongval ();
34988 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34990 fprintf (f, "%lu\n", i);
34992 return ferror (f) || fclose (f) != 0;
34998 rm -f conftest$ac_exeext
34999 if { (ac_try="$ac_link"
35000 case "(($ac_try" in
35001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002 *) ac_try_echo=$ac_try;;
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005 (eval "$ac_link") 2>&5
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35009 { (case "(($ac_try" in
35010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35011 *) ac_try_echo=$ac_try;;
35013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35014 (eval "$ac_try") 2>&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018 ac_cv_sizeof_long=`cat conftest.val`
35020 echo "$as_me: program exited with status $ac_status" >&5
35021 echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35024 ( exit $ac_status )
35025 if test "$ac_cv_type_long" = yes; then
35026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
35027 See \`config.log' for more details." >&5
35028 echo "$as_me: error: cannot compute sizeof (long)
35029 See \`config.log' for more details." >&2;}
35030 { (exit 77); exit 77; }; }
35032 ac_cv_sizeof_long=0
35035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35040 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
35044 cat >>confdefs.h <<_ACEOF
35045 #define SIZEOF_LONG $ac_cv_sizeof_long
35049 { echo "$as_me:$LINENO: checking for long long" >&5
35050 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
35051 if test "${ac_cv_type_long_long+set}" = set; then
35052 echo $ECHO_N "(cached) $ECHO_C" >&6
35054 cat >conftest.$ac_ext <<_ACEOF
35057 cat confdefs.h >>conftest.$ac_ext
35058 cat >>conftest.$ac_ext <<_ACEOF
35059 /* end confdefs.h. */
35060 $ac_includes_default
35061 typedef long long ac__type_new_;
35065 if ((ac__type_new_ *) 0)
35067 if (sizeof (ac__type_new_))
35073 rm -f conftest.$ac_objext
35074 if { (ac_try="$ac_compile"
35075 case "(($ac_try" in
35076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35077 *) ac_try_echo=$ac_try;;
35079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35080 (eval "$ac_compile") 2>conftest.er1
35082 grep -v '^ *+' conftest.er1 >conftest.err
35084 cat conftest.err >&5
35085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086 (exit $ac_status); } && {
35087 test -z "$ac_c_werror_flag" ||
35088 test ! -s conftest.err
35089 } && test -s conftest.$ac_objext; then
35090 ac_cv_type_long_long=yes
35092 echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35095 ac_cv_type_long_long=no
35098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35101 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
35103 # The cast to long int works around a bug in the HP C Compiler
35104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35106 # This bug is HP SR number 8606223364.
35107 { echo "$as_me:$LINENO: checking size of long long" >&5
35108 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
35109 if test "${ac_cv_sizeof_long_long+set}" = set; then
35110 echo $ECHO_N "(cached) $ECHO_C" >&6
35112 if test "$cross_compiling" = yes; then
35113 # Depending upon the size, compute the lo and hi bounds.
35114 cat >conftest.$ac_ext <<_ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h. */
35120 $ac_includes_default
35121 typedef long long ac__type_sizeof_;
35125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35132 rm -f conftest.$ac_objext
35133 if { (ac_try="$ac_compile"
35134 case "(($ac_try" in
35135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136 *) ac_try_echo=$ac_try;;
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139 (eval "$ac_compile") 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } && {
35146 test -z "$ac_c_werror_flag" ||
35147 test ! -s conftest.err
35148 } && test -s conftest.$ac_objext; then
35151 cat >conftest.$ac_ext <<_ACEOF
35154 cat confdefs.h >>conftest.$ac_ext
35155 cat >>conftest.$ac_ext <<_ACEOF
35156 /* end confdefs.h. */
35157 $ac_includes_default
35158 typedef long long ac__type_sizeof_;
35162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35169 rm -f conftest.$ac_objext
35170 if { (ac_try="$ac_compile"
35171 case "(($ac_try" in
35172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173 *) ac_try_echo=$ac_try;;
35175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176 (eval "$ac_compile") 2>conftest.er1
35178 grep -v '^ *+' conftest.er1 >conftest.err
35180 cat conftest.err >&5
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); } && {
35183 test -z "$ac_c_werror_flag" ||
35184 test ! -s conftest.err
35185 } && test -s conftest.$ac_objext; then
35186 ac_hi=$ac_mid; break
35188 echo "$as_me: failed program was:" >&5
35189 sed 's/^/| /' conftest.$ac_ext >&5
35191 ac_lo=`expr $ac_mid + 1`
35192 if test $ac_lo -le $ac_mid; then
35196 ac_mid=`expr 2 '*' $ac_mid + 1`
35199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35202 echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35205 cat >conftest.$ac_ext <<_ACEOF
35208 cat confdefs.h >>conftest.$ac_ext
35209 cat >>conftest.$ac_ext <<_ACEOF
35210 /* end confdefs.h. */
35211 $ac_includes_default
35212 typedef long long ac__type_sizeof_;
35216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35223 rm -f conftest.$ac_objext
35224 if { (ac_try="$ac_compile"
35225 case "(($ac_try" in
35226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35227 *) ac_try_echo=$ac_try;;
35229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35230 (eval "$ac_compile") 2>conftest.er1
35232 grep -v '^ *+' conftest.er1 >conftest.err
35234 cat conftest.err >&5
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); } && {
35237 test -z "$ac_c_werror_flag" ||
35238 test ! -s conftest.err
35239 } && test -s conftest.$ac_objext; then
35242 cat >conftest.$ac_ext <<_ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h. */
35248 $ac_includes_default
35249 typedef long long ac__type_sizeof_;
35253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35260 rm -f conftest.$ac_objext
35261 if { (ac_try="$ac_compile"
35262 case "(($ac_try" in
35263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264 *) ac_try_echo=$ac_try;;
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267 (eval "$ac_compile") 2>conftest.er1
35269 grep -v '^ *+' conftest.er1 >conftest.err
35271 cat conftest.err >&5
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); } && {
35274 test -z "$ac_c_werror_flag" ||
35275 test ! -s conftest.err
35276 } && test -s conftest.$ac_objext; then
35277 ac_lo=$ac_mid; break
35279 echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35282 ac_hi=`expr '(' $ac_mid ')' - 1`
35283 if test $ac_mid -le $ac_hi; then
35287 ac_mid=`expr 2 '*' $ac_mid`
35290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35293 echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35303 # Binary search between lo and hi bounds.
35304 while test "x$ac_lo" != "x$ac_hi"; do
35305 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35306 cat >conftest.$ac_ext <<_ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h. */
35312 $ac_includes_default
35313 typedef long long ac__type_sizeof_;
35317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35324 rm -f conftest.$ac_objext
35325 if { (ac_try="$ac_compile"
35326 case "(($ac_try" in
35327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328 *) ac_try_echo=$ac_try;;
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331 (eval "$ac_compile") 2>conftest.er1
35333 grep -v '^ *+' conftest.er1 >conftest.err
35335 cat conftest.err >&5
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } && {
35338 test -z "$ac_c_werror_flag" ||
35339 test ! -s conftest.err
35340 } && test -s conftest.$ac_objext; then
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35346 ac_lo=`expr '(' $ac_mid ')' + 1`
35349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35352 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35353 '') if test "$ac_cv_type_long_long" = yes; then
35354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35355 See \`config.log' for more details." >&5
35356 echo "$as_me: error: cannot compute sizeof (long long)
35357 See \`config.log' for more details." >&2;}
35358 { (exit 77); exit 77; }; }
35360 ac_cv_sizeof_long_long=0
35364 cat >conftest.$ac_ext <<_ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h. */
35370 $ac_includes_default
35371 typedef long long ac__type_sizeof_;
35372 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35373 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35375 #include <stdlib.h>
35380 FILE *f = fopen ("conftest.val", "w");
35383 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35385 long int i = longval ();
35386 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35388 fprintf (f, "%ld\n", i);
35392 unsigned long int i = ulongval ();
35393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35395 fprintf (f, "%lu\n", i);
35397 return ferror (f) || fclose (f) != 0;
35403 rm -f conftest$ac_exeext
35404 if { (ac_try="$ac_link"
35405 case "(($ac_try" in
35406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407 *) ac_try_echo=$ac_try;;
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410 (eval "$ac_link") 2>&5
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35414 { (case "(($ac_try" in
35415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416 *) ac_try_echo=$ac_try;;
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419 (eval "$ac_try") 2>&5
35421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); }; }; then
35423 ac_cv_sizeof_long_long=`cat conftest.val`
35425 echo "$as_me: program exited with status $ac_status" >&5
35426 echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35429 ( exit $ac_status )
35430 if test "$ac_cv_type_long_long" = yes; then
35431 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35432 See \`config.log' for more details." >&5
35433 echo "$as_me: error: cannot compute sizeof (long long)
35434 See \`config.log' for more details." >&2;}
35435 { (exit 77); exit 77; }; }
35437 ac_cv_sizeof_long_long=0
35440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35444 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35445 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35449 cat >>confdefs.h <<_ACEOF
35450 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35454 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35455 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35456 if test "${ac_cv_type_wchar_t+set}" = set; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35459 cat >conftest.$ac_ext <<_ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h. */
35465 $ac_includes_default
35466 typedef wchar_t ac__type_new_;
35470 if ((ac__type_new_ *) 0)
35472 if (sizeof (ac__type_new_))
35478 rm -f conftest.$ac_objext
35479 if { (ac_try="$ac_compile"
35480 case "(($ac_try" in
35481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482 *) ac_try_echo=$ac_try;;
35484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35485 (eval "$ac_compile") 2>conftest.er1
35487 grep -v '^ *+' conftest.er1 >conftest.err
35489 cat conftest.err >&5
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); } && {
35492 test -z "$ac_c_werror_flag" ||
35493 test ! -s conftest.err
35494 } && test -s conftest.$ac_objext; then
35495 ac_cv_type_wchar_t=yes
35497 echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.$ac_ext >&5
35500 ac_cv_type_wchar_t=no
35503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35505 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35506 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35508 # The cast to long int works around a bug in the HP C Compiler
35509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35511 # This bug is HP SR number 8606223364.
35512 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35513 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35514 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35515 echo $ECHO_N "(cached) $ECHO_C" >&6
35517 if test "$cross_compiling" = yes; then
35518 # Depending upon the size, compute the lo and hi bounds.
35519 cat >conftest.$ac_ext <<_ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 $ac_includes_default
35526 typedef wchar_t ac__type_sizeof_;
35530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35537 rm -f conftest.$ac_objext
35538 if { (ac_try="$ac_compile"
35539 case "(($ac_try" in
35540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541 *) ac_try_echo=$ac_try;;
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544 (eval "$ac_compile") 2>conftest.er1
35546 grep -v '^ *+' conftest.er1 >conftest.err
35548 cat conftest.err >&5
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); } && {
35551 test -z "$ac_c_werror_flag" ||
35552 test ! -s conftest.err
35553 } && test -s conftest.$ac_objext; then
35556 cat >conftest.$ac_ext <<_ACEOF
35559 cat confdefs.h >>conftest.$ac_ext
35560 cat >>conftest.$ac_ext <<_ACEOF
35561 /* end confdefs.h. */
35562 $ac_includes_default
35563 typedef wchar_t ac__type_sizeof_;
35567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35574 rm -f conftest.$ac_objext
35575 if { (ac_try="$ac_compile"
35576 case "(($ac_try" in
35577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35578 *) ac_try_echo=$ac_try;;
35580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35581 (eval "$ac_compile") 2>conftest.er1
35583 grep -v '^ *+' conftest.er1 >conftest.err
35585 cat conftest.err >&5
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); } && {
35588 test -z "$ac_c_werror_flag" ||
35589 test ! -s conftest.err
35590 } && test -s conftest.$ac_objext; then
35591 ac_hi=$ac_mid; break
35593 echo "$as_me: failed program was:" >&5
35594 sed 's/^/| /' conftest.$ac_ext >&5
35596 ac_lo=`expr $ac_mid + 1`
35597 if test $ac_lo -le $ac_mid; then
35601 ac_mid=`expr 2 '*' $ac_mid + 1`
35604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607 echo "$as_me: failed program was:" >&5
35608 sed 's/^/| /' conftest.$ac_ext >&5
35610 cat >conftest.$ac_ext <<_ACEOF
35613 cat confdefs.h >>conftest.$ac_ext
35614 cat >>conftest.$ac_ext <<_ACEOF
35615 /* end confdefs.h. */
35616 $ac_includes_default
35617 typedef wchar_t ac__type_sizeof_;
35621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35628 rm -f conftest.$ac_objext
35629 if { (ac_try="$ac_compile"
35630 case "(($ac_try" in
35631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35632 *) ac_try_echo=$ac_try;;
35634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35635 (eval "$ac_compile") 2>conftest.er1
35637 grep -v '^ *+' conftest.er1 >conftest.err
35639 cat conftest.err >&5
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); } && {
35642 test -z "$ac_c_werror_flag" ||
35643 test ! -s conftest.err
35644 } && test -s conftest.$ac_objext; then
35647 cat >conftest.$ac_ext <<_ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h. */
35653 $ac_includes_default
35654 typedef wchar_t ac__type_sizeof_;
35658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35665 rm -f conftest.$ac_objext
35666 if { (ac_try="$ac_compile"
35667 case "(($ac_try" in
35668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669 *) ac_try_echo=$ac_try;;
35671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35672 (eval "$ac_compile") 2>conftest.er1
35674 grep -v '^ *+' conftest.er1 >conftest.err
35676 cat conftest.err >&5
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } && {
35679 test -z "$ac_c_werror_flag" ||
35680 test ! -s conftest.err
35681 } && test -s conftest.$ac_objext; then
35682 ac_lo=$ac_mid; break
35684 echo "$as_me: failed program was:" >&5
35685 sed 's/^/| /' conftest.$ac_ext >&5
35687 ac_hi=`expr '(' $ac_mid ')' - 1`
35688 if test $ac_mid -le $ac_hi; then
35692 ac_mid=`expr 2 '*' $ac_mid`
35695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35698 echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708 # Binary search between lo and hi bounds.
35709 while test "x$ac_lo" != "x$ac_hi"; do
35710 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35711 cat >conftest.$ac_ext <<_ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h. */
35717 $ac_includes_default
35718 typedef wchar_t ac__type_sizeof_;
35722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35729 rm -f conftest.$ac_objext
35730 if { (ac_try="$ac_compile"
35731 case "(($ac_try" in
35732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35733 *) ac_try_echo=$ac_try;;
35735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35736 (eval "$ac_compile") 2>conftest.er1
35738 grep -v '^ *+' conftest.er1 >conftest.err
35740 cat conftest.err >&5
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); } && {
35743 test -z "$ac_c_werror_flag" ||
35744 test ! -s conftest.err
35745 } && test -s conftest.$ac_objext; then
35748 echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35751 ac_lo=`expr '(' $ac_mid ')' + 1`
35754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35757 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35758 '') if test "$ac_cv_type_wchar_t" = yes; then
35759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35760 See \`config.log' for more details." >&5
35761 echo "$as_me: error: cannot compute sizeof (wchar_t)
35762 See \`config.log' for more details." >&2;}
35763 { (exit 77); exit 77; }; }
35765 ac_cv_sizeof_wchar_t=0
35769 cat >conftest.$ac_ext <<_ACEOF
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h. */
35775 $ac_includes_default
35776 typedef wchar_t ac__type_sizeof_;
35777 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35778 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35780 #include <stdlib.h>
35785 FILE *f = fopen ("conftest.val", "w");
35788 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35790 long int i = longval ();
35791 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35793 fprintf (f, "%ld\n", i);
35797 unsigned long int i = ulongval ();
35798 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35800 fprintf (f, "%lu\n", i);
35802 return ferror (f) || fclose (f) != 0;
35808 rm -f conftest$ac_exeext
35809 if { (ac_try="$ac_link"
35810 case "(($ac_try" in
35811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35812 *) ac_try_echo=$ac_try;;
35814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35815 (eval "$ac_link") 2>&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35819 { (case "(($ac_try" in
35820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35821 *) ac_try_echo=$ac_try;;
35823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35824 (eval "$ac_try") 2>&5
35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); }; }; then
35828 ac_cv_sizeof_wchar_t=`cat conftest.val`
35830 echo "$as_me: program exited with status $ac_status" >&5
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35834 ( exit $ac_status )
35835 if test "$ac_cv_type_wchar_t" = yes; then
35836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35837 See \`config.log' for more details." >&5
35838 echo "$as_me: error: cannot compute sizeof (wchar_t)
35839 See \`config.log' for more details." >&2;}
35840 { (exit 77); exit 77; }; }
35842 ac_cv_sizeof_wchar_t=0
35845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35849 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35850 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35854 cat >>confdefs.h <<_ACEOF
35855 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35860 if test "$ac_cv_sizeof_int" -lt 4 ; then
35861 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35862 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35865 cat >>confdefs.h <<\_ACEOF
35866 #define LBER_INT_T long
35871 cat >>confdefs.h <<\_ACEOF
35872 #define LBER_INT_T int
35878 cat >>confdefs.h <<\_ACEOF
35879 #define LBER_LEN_T long
35883 cat >>confdefs.h <<\_ACEOF
35884 #define LBER_SOCKET_T int
35888 cat >>confdefs.h <<\_ACEOF
35889 #define LBER_TAG_T long
35893 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35894 if test $ac_cv_sizeof_long_long -gt 4 ; then
35895 ol_with_mp=longlong
35897 cat >>confdefs.h <<\_ACEOF
35898 #define USE_MP_LONG_LONG 1
35901 elif test $ol_with_mp = longlong ; then
35902 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35903 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35904 { (exit 1); exit 1; }; }
35907 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35908 if test $ac_cv_sizeof_long -gt 4 ; then
35911 cat >>confdefs.h <<\_ACEOF
35912 #define USE_MP_LONG 1
35915 elif test $ol_with_mp = long ; then
35916 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35917 echo "$as_me: error: long unusable for multiple precision" >&2;}
35918 { (exit 1); exit 1; }; }
35921 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35923 for ac_header in openssl/bn.h
35925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35930 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 ac_res=`eval echo '${'$as_ac_Header'}'`
35933 { echo "$as_me:$LINENO: result: $ac_res" >&5
35934 echo "${ECHO_T}$ac_res" >&6; }
35936 # Is the header compilable?
35937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35939 cat >conftest.$ac_ext <<_ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h. */
35945 $ac_includes_default
35946 #include <$ac_header>
35948 rm -f conftest.$ac_objext
35949 if { (ac_try="$ac_compile"
35950 case "(($ac_try" in
35951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35952 *) ac_try_echo=$ac_try;;
35954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35955 (eval "$ac_compile") 2>conftest.er1
35957 grep -v '^ *+' conftest.er1 >conftest.err
35959 cat conftest.err >&5
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); } && {
35962 test -z "$ac_c_werror_flag" ||
35963 test ! -s conftest.err
35964 } && test -s conftest.$ac_objext; then
35965 ac_header_compiler=yes
35967 echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35970 ac_header_compiler=no
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35975 echo "${ECHO_T}$ac_header_compiler" >&6; }
35977 # Is the header present?
35978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35980 cat >conftest.$ac_ext <<_ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h. */
35986 #include <$ac_header>
35988 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
36001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36002 test ! -s conftest.err
36004 ac_header_preproc=yes
36006 echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36009 ac_header_preproc=no
36012 rm -f conftest.err conftest.$ac_ext
36013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36014 echo "${ECHO_T}$ac_header_preproc" >&6; }
36016 # So? What about this header?
36017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36023 ac_header_preproc=yes
36026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36039 ## --------------------------------------------- ##
36040 ## Report this to <http://www.openldap.org/its/> ##
36041 ## --------------------------------------------- ##
36043 ) | sed "s/^/$as_me: WARNING: /" >&2
36046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36049 echo $ECHO_N "(cached) $ECHO_C" >&6
36051 eval "$as_ac_Header=\$ac_header_preproc"
36053 ac_res=`eval echo '${'$as_ac_Header'}'`
36054 { echo "$as_me:$LINENO: result: $ac_res" >&5
36055 echo "${ECHO_T}$ac_res" >&6; }
36058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36059 cat >>confdefs.h <<_ACEOF
36060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36068 for ac_header in openssl/crypto.h
36070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36075 echo $ECHO_N "(cached) $ECHO_C" >&6
36077 ac_res=`eval echo '${'$as_ac_Header'}'`
36078 { echo "$as_me:$LINENO: result: $ac_res" >&5
36079 echo "${ECHO_T}$ac_res" >&6; }
36081 # Is the header compilable?
36082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36084 cat >conftest.$ac_ext <<_ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h. */
36090 $ac_includes_default
36091 #include <$ac_header>
36093 rm -f conftest.$ac_objext
36094 if { (ac_try="$ac_compile"
36095 case "(($ac_try" in
36096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36097 *) ac_try_echo=$ac_try;;
36099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36100 (eval "$ac_compile") 2>conftest.er1
36102 grep -v '^ *+' conftest.er1 >conftest.err
36104 cat conftest.err >&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); } && {
36107 test -z "$ac_c_werror_flag" ||
36108 test ! -s conftest.err
36109 } && test -s conftest.$ac_objext; then
36110 ac_header_compiler=yes
36112 echo "$as_me: failed program was:" >&5
36113 sed 's/^/| /' conftest.$ac_ext >&5
36115 ac_header_compiler=no
36118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36120 echo "${ECHO_T}$ac_header_compiler" >&6; }
36122 # Is the header present?
36123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36125 cat >conftest.$ac_ext <<_ACEOF
36128 cat confdefs.h >>conftest.$ac_ext
36129 cat >>conftest.$ac_ext <<_ACEOF
36130 /* end confdefs.h. */
36131 #include <$ac_header>
36133 if { (ac_try="$ac_cpp conftest.$ac_ext"
36134 case "(($ac_try" in
36135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36136 *) ac_try_echo=$ac_try;;
36138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36141 grep -v '^ *+' conftest.er1 >conftest.err
36143 cat conftest.err >&5
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); } >/dev/null && {
36146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36147 test ! -s conftest.err
36149 ac_header_preproc=yes
36151 echo "$as_me: failed program was:" >&5
36152 sed 's/^/| /' conftest.$ac_ext >&5
36154 ac_header_preproc=no
36157 rm -f conftest.err conftest.$ac_ext
36158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36159 echo "${ECHO_T}$ac_header_preproc" >&6; }
36161 # So? What about this header?
36162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36168 ac_header_preproc=yes
36171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36184 ## --------------------------------------------- ##
36185 ## Report this to <http://www.openldap.org/its/> ##
36186 ## --------------------------------------------- ##
36188 ) | sed "s/^/$as_me: WARNING: /" >&2
36191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36194 echo $ECHO_N "(cached) $ECHO_C" >&6
36196 eval "$as_ac_Header=\$ac_header_preproc"
36198 ac_res=`eval echo '${'$as_ac_Header'}'`
36199 { echo "$as_me:$LINENO: result: $ac_res" >&5
36200 echo "${ECHO_T}$ac_res" >&6; }
36203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36204 cat >>confdefs.h <<_ACEOF
36205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36212 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36213 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36214 test "$ol_with_tls" = "found" ; then
36217 cat >>confdefs.h <<\_ACEOF
36218 #define USE_MP_BIGNUM 1
36221 elif test $ol_with_mp = bignum ; then
36222 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36223 echo "$as_me: error: bignum not available" >&2;}
36224 { (exit 1); exit 1; }; }
36227 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36229 for ac_header in gmp.h
36231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36236 echo $ECHO_N "(cached) $ECHO_C" >&6
36238 ac_res=`eval echo '${'$as_ac_Header'}'`
36239 { echo "$as_me:$LINENO: result: $ac_res" >&5
36240 echo "${ECHO_T}$ac_res" >&6; }
36242 # Is the header compilable?
36243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36245 cat >conftest.$ac_ext <<_ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h. */
36251 $ac_includes_default
36252 #include <$ac_header>
36254 rm -f conftest.$ac_objext
36255 if { (ac_try="$ac_compile"
36256 case "(($ac_try" in
36257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36258 *) ac_try_echo=$ac_try;;
36260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36261 (eval "$ac_compile") 2>conftest.er1
36263 grep -v '^ *+' conftest.er1 >conftest.err
36265 cat conftest.err >&5
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); } && {
36268 test -z "$ac_c_werror_flag" ||
36269 test ! -s conftest.err
36270 } && test -s conftest.$ac_objext; then
36271 ac_header_compiler=yes
36273 echo "$as_me: failed program was:" >&5
36274 sed 's/^/| /' conftest.$ac_ext >&5
36276 ac_header_compiler=no
36279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36281 echo "${ECHO_T}$ac_header_compiler" >&6; }
36283 # Is the header present?
36284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36286 cat >conftest.$ac_ext <<_ACEOF
36289 cat confdefs.h >>conftest.$ac_ext
36290 cat >>conftest.$ac_ext <<_ACEOF
36291 /* end confdefs.h. */
36292 #include <$ac_header>
36294 if { (ac_try="$ac_cpp conftest.$ac_ext"
36295 case "(($ac_try" in
36296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36297 *) ac_try_echo=$ac_try;;
36299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36302 grep -v '^ *+' conftest.er1 >conftest.err
36304 cat conftest.err >&5
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); } >/dev/null && {
36307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36308 test ! -s conftest.err
36310 ac_header_preproc=yes
36312 echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36315 ac_header_preproc=no
36318 rm -f conftest.err conftest.$ac_ext
36319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36320 echo "${ECHO_T}$ac_header_preproc" >&6; }
36322 # So? What about this header?
36323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36329 ac_header_preproc=yes
36332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36345 ## --------------------------------------------- ##
36346 ## Report this to <http://www.openldap.org/its/> ##
36347 ## --------------------------------------------- ##
36349 ) | sed "s/^/$as_me: WARNING: /" >&2
36352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36355 echo $ECHO_N "(cached) $ECHO_C" >&6
36357 eval "$as_ac_Header=\$ac_header_preproc"
36359 ac_res=`eval echo '${'$as_ac_Header'}'`
36360 { echo "$as_me:$LINENO: result: $ac_res" >&5
36361 echo "${ECHO_T}$ac_res" >&6; }
36364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36365 cat >>confdefs.h <<_ACEOF
36366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36374 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36375 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36376 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36377 echo $ECHO_N "(cached) $ECHO_C" >&6
36379 ac_check_lib_save_LIBS=$LIBS
36381 cat >conftest.$ac_ext <<_ACEOF
36384 cat confdefs.h >>conftest.$ac_ext
36385 cat >>conftest.$ac_ext <<_ACEOF
36386 /* end confdefs.h. */
36388 /* Override any GCC internal prototype to avoid an error.
36389 Use char because int might match the return type of a GCC
36390 builtin and then its argument prototype would still apply. */
36394 char __gmpz_add_ui ();
36398 return __gmpz_add_ui ();
36403 rm -f conftest.$ac_objext conftest$ac_exeext
36404 if { (ac_try="$ac_link"
36405 case "(($ac_try" in
36406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407 *) ac_try_echo=$ac_try;;
36409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36410 (eval "$ac_link") 2>conftest.er1
36412 grep -v '^ *+' conftest.er1 >conftest.err
36414 cat conftest.err >&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); } && {
36417 test -z "$ac_c_werror_flag" ||
36418 test ! -s conftest.err
36419 } && test -s conftest$ac_exeext &&
36420 $as_test_x conftest$ac_exeext; then
36421 ac_cv_lib_gmp___gmpz_add_ui=yes
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 ac_cv_lib_gmp___gmpz_add_ui=no
36429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36430 conftest$ac_exeext conftest.$ac_ext
36431 LIBS=$ac_check_lib_save_LIBS
36433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36434 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36435 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36436 cat >>confdefs.h <<_ACEOF
36437 #define HAVE_LIBGMP 1
36444 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36446 cat >>confdefs.h <<\_ACEOF
36447 #define USE_MP_GMP 1
36451 elif test $ol_with_mp = gmp ; then
36452 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36453 echo "$as_me: error: gmp not available" >&2;}
36454 { (exit 1); exit 1; }; }
36457 if test $ol_with_mp = auto ; then
36461 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36462 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36463 if test "${ac_cv_func_memcmp_working+set}" = set; then
36464 echo $ECHO_N "(cached) $ECHO_C" >&6
36466 if test "$cross_compiling" = yes; then
36467 ac_cv_func_memcmp_working=no
36469 cat >conftest.$ac_ext <<_ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h. */
36475 $ac_includes_default
36480 /* Some versions of memcmp are not 8-bit clean. */
36481 char c0 = '\100', c1 = '\200', c2 = '\201';
36482 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36485 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36486 or more and with at least one buffer not starting on a 4-byte boundary.
36487 William Lewis provided this test program. */
36492 for (i = 0; i < 4; i++)
36496 strcpy (a, "--------01111111");
36497 strcpy (b, "--------10000000");
36498 if (memcmp (a, b, 16) >= 0)
36508 rm -f conftest$ac_exeext
36509 if { (ac_try="$ac_link"
36510 case "(($ac_try" in
36511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36512 *) ac_try_echo=$ac_try;;
36514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36515 (eval "$ac_link") 2>&5
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36519 { (case "(($ac_try" in
36520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521 *) ac_try_echo=$ac_try;;
36523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524 (eval "$ac_try") 2>&5
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; }; then
36528 ac_cv_func_memcmp_working=yes
36530 echo "$as_me: program exited with status $ac_status" >&5
36531 echo "$as_me: failed program was:" >&5
36532 sed 's/^/| /' conftest.$ac_ext >&5
36534 ( exit $ac_status )
36535 ac_cv_func_memcmp_working=no
36537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36542 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36543 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36544 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36545 *" memcmp.$ac_objext "* ) ;;
36546 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36552 if test $ac_cv_func_memcmp_working = no ; then
36554 cat >>confdefs.h <<\_ACEOF
36555 #define NEED_MEMCMP_REPLACEMENT 1
36561 for ac_func in strftime
36563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36569 cat >conftest.$ac_ext <<_ACEOF
36572 cat confdefs.h >>conftest.$ac_ext
36573 cat >>conftest.$ac_ext <<_ACEOF
36574 /* end confdefs.h. */
36575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36577 #define $ac_func innocuous_$ac_func
36579 /* System header to define __stub macros and hopefully few prototypes,
36580 which can conflict with char $ac_func (); below.
36581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582 <limits.h> exists even on freestanding compilers. */
36585 # include <limits.h>
36587 # include <assert.h>
36592 /* Override any GCC internal prototype to avoid an error.
36593 Use char because int might match the return type of a GCC
36594 builtin and then its argument prototype would still apply. */
36599 /* The GNU C library defines this for functions which it implements
36600 to always fail with ENOSYS. Some functions are actually named
36601 something starting with __ and the normal name is an alias. */
36602 #if defined __stub_$ac_func || defined __stub___$ac_func
36609 return $ac_func ();
36614 rm -f conftest.$ac_objext conftest$ac_exeext
36615 if { (ac_try="$ac_link"
36616 case "(($ac_try" in
36617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36618 *) ac_try_echo=$ac_try;;
36620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36621 (eval "$ac_link") 2>conftest.er1
36623 grep -v '^ *+' conftest.er1 >conftest.err
36625 cat conftest.err >&5
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 (exit $ac_status); } && {
36628 test -z "$ac_c_werror_flag" ||
36629 test ! -s conftest.err
36630 } && test -s conftest$ac_exeext &&
36631 $as_test_x conftest$ac_exeext; then
36632 eval "$as_ac_var=yes"
36634 echo "$as_me: failed program was:" >&5
36635 sed 's/^/| /' conftest.$ac_ext >&5
36637 eval "$as_ac_var=no"
36640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36641 conftest$ac_exeext conftest.$ac_ext
36643 ac_res=`eval echo '${'$as_ac_var'}'`
36644 { echo "$as_me:$LINENO: result: $ac_res" >&5
36645 echo "${ECHO_T}$ac_res" >&6; }
36646 if test `eval echo '${'$as_ac_var'}'` = yes; then
36647 cat >>confdefs.h <<_ACEOF
36648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36652 # strftime is in -lintl on SCO UNIX.
36653 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36654 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36655 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36656 echo $ECHO_N "(cached) $ECHO_C" >&6
36658 ac_check_lib_save_LIBS=$LIBS
36659 LIBS="-lintl $LIBS"
36660 cat >conftest.$ac_ext <<_ACEOF
36663 cat confdefs.h >>conftest.$ac_ext
36664 cat >>conftest.$ac_ext <<_ACEOF
36665 /* end confdefs.h. */
36667 /* Override any GCC internal prototype to avoid an error.
36668 Use char because int might match the return type of a GCC
36669 builtin and then its argument prototype would still apply. */
36677 return strftime ();
36682 rm -f conftest.$ac_objext conftest$ac_exeext
36683 if { (ac_try="$ac_link"
36684 case "(($ac_try" in
36685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36686 *) ac_try_echo=$ac_try;;
36688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36689 (eval "$ac_link") 2>conftest.er1
36691 grep -v '^ *+' conftest.er1 >conftest.err
36693 cat conftest.err >&5
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); } && {
36696 test -z "$ac_c_werror_flag" ||
36697 test ! -s conftest.err
36698 } && test -s conftest$ac_exeext &&
36699 $as_test_x conftest$ac_exeext; then
36700 ac_cv_lib_intl_strftime=yes
36702 echo "$as_me: failed program was:" >&5
36703 sed 's/^/| /' conftest.$ac_ext >&5
36705 ac_cv_lib_intl_strftime=no
36708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36709 conftest$ac_exeext conftest.$ac_ext
36710 LIBS=$ac_check_lib_save_LIBS
36712 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36713 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36714 if test $ac_cv_lib_intl_strftime = yes; then
36715 cat >>confdefs.h <<\_ACEOF
36716 #define HAVE_STRFTIME 1
36719 LIBS="-lintl $LIBS"
36726 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36727 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36728 if test "${ol_cv_func_inet_aton+set}" = set; then
36729 echo $ECHO_N "(cached) $ECHO_C" >&6
36731 cat >conftest.$ac_ext <<_ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h. */
36738 #ifdef HAVE_SYS_TYPES_H
36739 # include <sys/types.h>
36741 #ifdef HAVE_SYS_SOCKET_H
36742 # include <sys/socket.h>
36743 # ifdef HAVE_SYS_SELECT_H
36744 # include <sys/select.h>
36746 # include <netinet/in.h>
36747 # ifdef HAVE_ARPA_INET_H
36748 # include <arpa/inet.h>
36756 int rc = inet_aton( "255.255.255.255", &in );
36761 rm -f conftest.$ac_objext conftest$ac_exeext
36762 if { (ac_try="$ac_link"
36763 case "(($ac_try" in
36764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36765 *) ac_try_echo=$ac_try;;
36767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36768 (eval "$ac_link") 2>conftest.er1
36770 grep -v '^ *+' conftest.er1 >conftest.err
36772 cat conftest.err >&5
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); } && {
36775 test -z "$ac_c_werror_flag" ||
36776 test ! -s conftest.err
36777 } && test -s conftest$ac_exeext &&
36778 $as_test_x conftest$ac_exeext; then
36779 ol_cv_func_inet_aton=yes
36781 echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36784 ol_cv_func_inet_aton=no
36787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36788 conftest$ac_exeext conftest.$ac_ext
36790 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36791 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36792 if test $ol_cv_func_inet_aton != no; then
36794 cat >>confdefs.h <<\_ACEOF
36795 #define HAVE_INET_ATON 1
36801 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36802 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36803 if test "${ac_cv_func__spawnlp+set}" = set; then
36804 echo $ECHO_N "(cached) $ECHO_C" >&6
36806 cat >conftest.$ac_ext <<_ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h. */
36812 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36814 #define _spawnlp innocuous__spawnlp
36816 /* System header to define __stub macros and hopefully few prototypes,
36817 which can conflict with char _spawnlp (); below.
36818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36819 <limits.h> exists even on freestanding compilers. */
36822 # include <limits.h>
36824 # include <assert.h>
36829 /* Override any GCC internal prototype to avoid an error.
36830 Use char because int might match the return type of a GCC
36831 builtin and then its argument prototype would still apply. */
36836 /* The GNU C library defines this for functions which it implements
36837 to always fail with ENOSYS. Some functions are actually named
36838 something starting with __ and the normal name is an alias. */
36839 #if defined __stub__spawnlp || defined __stub____spawnlp
36846 return _spawnlp ();
36851 rm -f conftest.$ac_objext conftest$ac_exeext
36852 if { (ac_try="$ac_link"
36853 case "(($ac_try" in
36854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855 *) ac_try_echo=$ac_try;;
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858 (eval "$ac_link") 2>conftest.er1
36860 grep -v '^ *+' conftest.er1 >conftest.err
36862 cat conftest.err >&5
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); } && {
36865 test -z "$ac_c_werror_flag" ||
36866 test ! -s conftest.err
36867 } && test -s conftest$ac_exeext &&
36868 $as_test_x conftest$ac_exeext; then
36869 ac_cv_func__spawnlp=yes
36871 echo "$as_me: failed program was:" >&5
36872 sed 's/^/| /' conftest.$ac_ext >&5
36874 ac_cv_func__spawnlp=no
36877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36878 conftest$ac_exeext conftest.$ac_ext
36880 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36881 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36882 if test $ac_cv_func__spawnlp = yes; then
36884 cat >>confdefs.h <<\_ACEOF
36885 #define HAVE_SPAWNLP 1
36891 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36892 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36893 if test "${ac_cv_func__snprintf+set}" = set; then
36894 echo $ECHO_N "(cached) $ECHO_C" >&6
36896 cat >conftest.$ac_ext <<_ACEOF
36899 cat confdefs.h >>conftest.$ac_ext
36900 cat >>conftest.$ac_ext <<_ACEOF
36901 /* end confdefs.h. */
36902 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36904 #define _snprintf innocuous__snprintf
36906 /* System header to define __stub macros and hopefully few prototypes,
36907 which can conflict with char _snprintf (); below.
36908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36909 <limits.h> exists even on freestanding compilers. */
36912 # include <limits.h>
36914 # include <assert.h>
36919 /* Override any GCC internal prototype to avoid an error.
36920 Use char because int might match the return type of a GCC
36921 builtin and then its argument prototype would still apply. */
36926 /* The GNU C library defines this for functions which it implements
36927 to always fail with ENOSYS. Some functions are actually named
36928 something starting with __ and the normal name is an alias. */
36929 #if defined __stub__snprintf || defined __stub____snprintf
36936 return _snprintf ();
36941 rm -f conftest.$ac_objext conftest$ac_exeext
36942 if { (ac_try="$ac_link"
36943 case "(($ac_try" in
36944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36945 *) ac_try_echo=$ac_try;;
36947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36948 (eval "$ac_link") 2>conftest.er1
36950 grep -v '^ *+' conftest.er1 >conftest.err
36952 cat conftest.err >&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); } && {
36955 test -z "$ac_c_werror_flag" ||
36956 test ! -s conftest.err
36957 } && test -s conftest$ac_exeext &&
36958 $as_test_x conftest$ac_exeext; then
36959 ac_cv_func__snprintf=yes
36961 echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36964 ac_cv_func__snprintf=no
36967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36968 conftest$ac_exeext conftest.$ac_ext
36970 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36971 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36972 if test $ac_cv_func__snprintf = yes; then
36973 ac_cv_func_snprintf=yes
36975 cat >>confdefs.h <<\_ACEOF
36976 #define snprintf _snprintf
36985 for ac_func in vsnprintf _vsnprintf
36987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36991 echo $ECHO_N "(cached) $ECHO_C" >&6
36993 cat >conftest.$ac_ext <<_ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h. */
36999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37001 #define $ac_func innocuous_$ac_func
37003 /* System header to define __stub macros and hopefully few prototypes,
37004 which can conflict with char $ac_func (); below.
37005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37006 <limits.h> exists even on freestanding compilers. */
37009 # include <limits.h>
37011 # include <assert.h>
37016 /* Override any GCC internal prototype to avoid an error.
37017 Use char because int might match the return type of a GCC
37018 builtin and then its argument prototype would still apply. */
37023 /* The GNU C library defines this for functions which it implements
37024 to always fail with ENOSYS. Some functions are actually named
37025 something starting with __ and the normal name is an alias. */
37026 #if defined __stub_$ac_func || defined __stub___$ac_func
37033 return $ac_func ();
37038 rm -f conftest.$ac_objext conftest$ac_exeext
37039 if { (ac_try="$ac_link"
37040 case "(($ac_try" in
37041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37042 *) ac_try_echo=$ac_try;;
37044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37045 (eval "$ac_link") 2>conftest.er1
37047 grep -v '^ *+' conftest.er1 >conftest.err
37049 cat conftest.err >&5
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } && {
37052 test -z "$ac_c_werror_flag" ||
37053 test ! -s conftest.err
37054 } && test -s conftest$ac_exeext &&
37055 $as_test_x conftest$ac_exeext; then
37056 eval "$as_ac_var=yes"
37058 echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37061 eval "$as_ac_var=no"
37064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37065 conftest$ac_exeext conftest.$ac_ext
37067 ac_res=`eval echo '${'$as_ac_var'}'`
37068 { echo "$as_me:$LINENO: result: $ac_res" >&5
37069 echo "${ECHO_T}$ac_res" >&6; }
37070 if test `eval echo '${'$as_ac_var'}'` = yes; then
37071 cat >>confdefs.h <<_ACEOF
37072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37079 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37080 ac_cv_func_vsnprintf=yes
37082 cat >>confdefs.h <<\_ACEOF
37083 #define vsnprintf _vsnprintf
37089 for ac_func in vprintf
37091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37095 echo $ECHO_N "(cached) $ECHO_C" >&6
37097 cat >conftest.$ac_ext <<_ACEOF
37100 cat confdefs.h >>conftest.$ac_ext
37101 cat >>conftest.$ac_ext <<_ACEOF
37102 /* end confdefs.h. */
37103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37105 #define $ac_func innocuous_$ac_func
37107 /* System header to define __stub macros and hopefully few prototypes,
37108 which can conflict with char $ac_func (); below.
37109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37110 <limits.h> exists even on freestanding compilers. */
37113 # include <limits.h>
37115 # include <assert.h>
37120 /* Override any GCC internal prototype to avoid an error.
37121 Use char because int might match the return type of a GCC
37122 builtin and then its argument prototype would still apply. */
37127 /* The GNU C library defines this for functions which it implements
37128 to always fail with ENOSYS. Some functions are actually named
37129 something starting with __ and the normal name is an alias. */
37130 #if defined __stub_$ac_func || defined __stub___$ac_func
37137 return $ac_func ();
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (ac_try="$ac_link"
37144 case "(($ac_try" in
37145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37146 *) ac_try_echo=$ac_try;;
37148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37149 (eval "$ac_link") 2>conftest.er1
37151 grep -v '^ *+' conftest.er1 >conftest.err
37153 cat conftest.err >&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); } && {
37156 test -z "$ac_c_werror_flag" ||
37157 test ! -s conftest.err
37158 } && test -s conftest$ac_exeext &&
37159 $as_test_x conftest$ac_exeext; then
37160 eval "$as_ac_var=yes"
37162 echo "$as_me: failed program was:" >&5
37163 sed 's/^/| /' conftest.$ac_ext >&5
37165 eval "$as_ac_var=no"
37168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37169 conftest$ac_exeext conftest.$ac_ext
37171 ac_res=`eval echo '${'$as_ac_var'}'`
37172 { echo "$as_me:$LINENO: result: $ac_res" >&5
37173 echo "${ECHO_T}$ac_res" >&6; }
37174 if test `eval echo '${'$as_ac_var'}'` = yes; then
37175 cat >>confdefs.h <<_ACEOF
37176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37179 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37180 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37181 if test "${ac_cv_func__doprnt+set}" = set; then
37182 echo $ECHO_N "(cached) $ECHO_C" >&6
37184 cat >conftest.$ac_ext <<_ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h. */
37190 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37192 #define _doprnt innocuous__doprnt
37194 /* System header to define __stub macros and hopefully few prototypes,
37195 which can conflict with char _doprnt (); below.
37196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37197 <limits.h> exists even on freestanding compilers. */
37200 # include <limits.h>
37202 # include <assert.h>
37207 /* Override any GCC internal prototype to avoid an error.
37208 Use char because int might match the return type of a GCC
37209 builtin and then its argument prototype would still apply. */
37214 /* The GNU C library defines this for functions which it implements
37215 to always fail with ENOSYS. Some functions are actually named
37216 something starting with __ and the normal name is an alias. */
37217 #if defined __stub__doprnt || defined __stub____doprnt
37229 rm -f conftest.$ac_objext conftest$ac_exeext
37230 if { (ac_try="$ac_link"
37231 case "(($ac_try" in
37232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37233 *) ac_try_echo=$ac_try;;
37235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37236 (eval "$ac_link") 2>conftest.er1
37238 grep -v '^ *+' conftest.er1 >conftest.err
37240 cat conftest.err >&5
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); } && {
37243 test -z "$ac_c_werror_flag" ||
37244 test ! -s conftest.err
37245 } && test -s conftest$ac_exeext &&
37246 $as_test_x conftest$ac_exeext; then
37247 ac_cv_func__doprnt=yes
37249 echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37252 ac_cv_func__doprnt=no
37255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37256 conftest$ac_exeext conftest.$ac_ext
37258 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37259 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37260 if test $ac_cv_func__doprnt = yes; then
37262 cat >>confdefs.h <<\_ACEOF
37263 #define HAVE_DOPRNT 1
37273 if test $ac_cv_func_vprintf = yes ; then
37276 for ac_func in snprintf vsnprintf
37278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37282 echo $ECHO_N "(cached) $ECHO_C" >&6
37284 cat >conftest.$ac_ext <<_ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h. */
37290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37292 #define $ac_func innocuous_$ac_func
37294 /* System header to define __stub macros and hopefully few prototypes,
37295 which can conflict with char $ac_func (); below.
37296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37297 <limits.h> exists even on freestanding compilers. */
37300 # include <limits.h>
37302 # include <assert.h>
37307 /* Override any GCC internal prototype to avoid an error.
37308 Use char because int might match the return type of a GCC
37309 builtin and then its argument prototype would still apply. */
37314 /* The GNU C library defines this for functions which it implements
37315 to always fail with ENOSYS. Some functions are actually named
37316 something starting with __ and the normal name is an alias. */
37317 #if defined __stub_$ac_func || defined __stub___$ac_func
37324 return $ac_func ();
37329 rm -f conftest.$ac_objext conftest$ac_exeext
37330 if { (ac_try="$ac_link"
37331 case "(($ac_try" in
37332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37333 *) ac_try_echo=$ac_try;;
37335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37336 (eval "$ac_link") 2>conftest.er1
37338 grep -v '^ *+' conftest.er1 >conftest.err
37340 cat conftest.err >&5
37341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342 (exit $ac_status); } && {
37343 test -z "$ac_c_werror_flag" ||
37344 test ! -s conftest.err
37345 } && test -s conftest$ac_exeext &&
37346 $as_test_x conftest$ac_exeext; then
37347 eval "$as_ac_var=yes"
37349 echo "$as_me: failed program was:" >&5
37350 sed 's/^/| /' conftest.$ac_ext >&5
37352 eval "$as_ac_var=no"
37355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37356 conftest$ac_exeext conftest.$ac_ext
37358 ac_res=`eval echo '${'$as_ac_var'}'`
37359 { echo "$as_me:$LINENO: result: $ac_res" >&5
37360 echo "${ECHO_T}$ac_res" >&6; }
37361 if test `eval echo '${'$as_ac_var'}'` = yes; then
37362 cat >>confdefs.h <<_ACEOF
37363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37490 echo $ECHO_N "(cached) $ECHO_C" >&6
37492 cat >conftest.$ac_ext <<_ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h. */
37498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37500 #define $ac_func innocuous_$ac_func
37502 /* System header to define __stub macros and hopefully few prototypes,
37503 which can conflict with char $ac_func (); below.
37504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37505 <limits.h> exists even on freestanding compilers. */
37508 # include <limits.h>
37510 # include <assert.h>
37515 /* Override any GCC internal prototype to avoid an error.
37516 Use char because int might match the return type of a GCC
37517 builtin and then its argument prototype would still apply. */
37522 /* The GNU C library defines this for functions which it implements
37523 to always fail with ENOSYS. Some functions are actually named
37524 something starting with __ and the normal name is an alias. */
37525 #if defined __stub_$ac_func || defined __stub___$ac_func
37532 return $ac_func ();
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
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_link") 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_exeext &&
37554 $as_test_x conftest$ac_exeext; then
37555 eval "$as_ac_var=yes"
37557 echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37560 eval "$as_ac_var=no"
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564 conftest$ac_exeext conftest.$ac_ext
37566 ac_res=`eval echo '${'$as_ac_var'}'`
37567 { echo "$as_me:$LINENO: result: $ac_res" >&5
37568 echo "${ECHO_T}$ac_res" >&6; }
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570 cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37580 for ac_func in getopt getpeereid
37582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37586 echo $ECHO_N "(cached) $ECHO_C" >&6
37588 cat >conftest.$ac_ext <<_ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h. */
37594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37596 #define $ac_func innocuous_$ac_func
37598 /* System header to define __stub macros and hopefully few prototypes,
37599 which can conflict with char $ac_func (); below.
37600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601 <limits.h> exists even on freestanding compilers. */
37604 # include <limits.h>
37606 # include <assert.h>
37611 /* Override any GCC internal prototype to avoid an error.
37612 Use char because int might match the return type of a GCC
37613 builtin and then its argument prototype would still apply. */
37618 /* The GNU C library defines this for functions which it implements
37619 to always fail with ENOSYS. Some functions are actually named
37620 something starting with __ and the normal name is an alias. */
37621 #if defined __stub_$ac_func || defined __stub___$ac_func
37628 return $ac_func ();
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (ac_try="$ac_link"
37635 case "(($ac_try" in
37636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637 *) ac_try_echo=$ac_try;;
37639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640 (eval "$ac_link") 2>conftest.er1
37642 grep -v '^ *+' conftest.er1 >conftest.err
37644 cat conftest.err >&5
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); } && {
37647 test -z "$ac_c_werror_flag" ||
37648 test ! -s conftest.err
37649 } && test -s conftest$ac_exeext &&
37650 $as_test_x conftest$ac_exeext; then
37651 eval "$as_ac_var=yes"
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37656 eval "$as_ac_var=no"
37659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37660 conftest$ac_exeext conftest.$ac_ext
37662 ac_res=`eval echo '${'$as_ac_var'}'`
37663 { echo "$as_me:$LINENO: result: $ac_res" >&5
37664 echo "${ECHO_T}$ac_res" >&6; }
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666 cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37671 case " $LIBOBJS " in
37672 *" $ac_func.$ac_objext "* ) ;;
37673 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37682 if test "$ac_cv_func_getopt" != yes; then
37683 LIBSRCS="$LIBSRCS getopt.c"
37686 if test "$ac_cv_func_getpeereid" != yes; then
37688 for ac_func in getpeerucred
37690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37696 cat >conftest.$ac_ext <<_ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37704 #define $ac_func innocuous_$ac_func
37706 /* System header to define __stub macros and hopefully few prototypes,
37707 which can conflict with char $ac_func (); below.
37708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37709 <limits.h> exists even on freestanding compilers. */
37712 # include <limits.h>
37714 # include <assert.h>
37719 /* Override any GCC internal prototype to avoid an error.
37720 Use char because int might match the return type of a GCC
37721 builtin and then its argument prototype would still apply. */
37726 /* The GNU C library defines this for functions which it implements
37727 to always fail with ENOSYS. Some functions are actually named
37728 something starting with __ and the normal name is an alias. */
37729 #if defined __stub_$ac_func || defined __stub___$ac_func
37736 return $ac_func ();
37741 rm -f conftest.$ac_objext conftest$ac_exeext
37742 if { (ac_try="$ac_link"
37743 case "(($ac_try" in
37744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37745 *) ac_try_echo=$ac_try;;
37747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37748 (eval "$ac_link") 2>conftest.er1
37750 grep -v '^ *+' conftest.er1 >conftest.err
37752 cat conftest.err >&5
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); } && {
37755 test -z "$ac_c_werror_flag" ||
37756 test ! -s conftest.err
37757 } && test -s conftest$ac_exeext &&
37758 $as_test_x conftest$ac_exeext; then
37759 eval "$as_ac_var=yes"
37761 echo "$as_me: failed program was:" >&5
37762 sed 's/^/| /' conftest.$ac_ext >&5
37764 eval "$as_ac_var=no"
37767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37768 conftest$ac_exeext conftest.$ac_ext
37770 ac_res=`eval echo '${'$as_ac_var'}'`
37771 { echo "$as_me:$LINENO: result: $ac_res" >&5
37772 echo "${ECHO_T}$ac_res" >&6; }
37773 if test `eval echo '${'$as_ac_var'}'` = yes; then
37774 cat >>confdefs.h <<_ACEOF
37775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37781 if test "$ac_cv_func_getpeerucred" != yes ; then
37782 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37783 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37784 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37785 echo $ECHO_N "(cached) $ECHO_C" >&6
37787 cat >conftest.$ac_ext <<_ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h. */
37793 $ac_includes_default
37794 #ifdef HAVE_SYS_SOCKET_H
37795 #include <sys/socket.h>
37801 static struct msghdr ac_aggr;
37802 if (ac_aggr.msg_accrightslen)
37808 rm -f conftest.$ac_objext
37809 if { (ac_try="$ac_compile"
37810 case "(($ac_try" in
37811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37812 *) ac_try_echo=$ac_try;;
37814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37815 (eval "$ac_compile") 2>conftest.er1
37817 grep -v '^ *+' conftest.er1 >conftest.err
37819 cat conftest.err >&5
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } && {
37822 test -z "$ac_c_werror_flag" ||
37823 test ! -s conftest.err
37824 } && test -s conftest.$ac_objext; then
37825 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37827 echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37830 cat >conftest.$ac_ext <<_ACEOF
37833 cat confdefs.h >>conftest.$ac_ext
37834 cat >>conftest.$ac_ext <<_ACEOF
37835 /* end confdefs.h. */
37836 $ac_includes_default
37837 #ifdef HAVE_SYS_SOCKET_H
37838 #include <sys/socket.h>
37844 static struct msghdr ac_aggr;
37845 if (sizeof ac_aggr.msg_accrightslen)
37851 rm -f conftest.$ac_objext
37852 if { (ac_try="$ac_compile"
37853 case "(($ac_try" in
37854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37855 *) ac_try_echo=$ac_try;;
37857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37858 (eval "$ac_compile") 2>conftest.er1
37860 grep -v '^ *+' conftest.er1 >conftest.err
37862 cat conftest.err >&5
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); } && {
37865 test -z "$ac_c_werror_flag" ||
37866 test ! -s conftest.err
37867 } && test -s conftest.$ac_objext; then
37868 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37870 echo "$as_me: failed program was:" >&5
37871 sed 's/^/| /' conftest.$ac_ext >&5
37873 ac_cv_member_struct_msghdr_msg_accrightslen=no
37876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37881 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37882 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37883 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37885 cat >>confdefs.h <<_ACEOF
37886 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37892 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37893 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37894 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37895 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37896 echo $ECHO_N "(cached) $ECHO_C" >&6
37898 cat >conftest.$ac_ext <<_ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h. */
37904 $ac_includes_default
37905 #ifdef HAVE_SYS_SOCKET_H
37906 #include <sys/socket.h>
37912 static struct msghdr ac_aggr;
37913 if (ac_aggr.msg_control)
37919 rm -f conftest.$ac_objext
37920 if { (ac_try="$ac_compile"
37921 case "(($ac_try" in
37922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37923 *) ac_try_echo=$ac_try;;
37925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37926 (eval "$ac_compile") 2>conftest.er1
37928 grep -v '^ *+' conftest.er1 >conftest.err
37930 cat conftest.err >&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); } && {
37933 test -z "$ac_c_werror_flag" ||
37934 test ! -s conftest.err
37935 } && test -s conftest.$ac_objext; then
37936 ac_cv_member_struct_msghdr_msg_control=yes
37938 echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37941 cat >conftest.$ac_ext <<_ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h. */
37947 $ac_includes_default
37948 #ifdef HAVE_SYS_SOCKET_H
37949 #include <sys/socket.h>
37955 static struct msghdr ac_aggr;
37956 if (sizeof ac_aggr.msg_control)
37962 rm -f conftest.$ac_objext
37963 if { (ac_try="$ac_compile"
37964 case "(($ac_try" in
37965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37966 *) ac_try_echo=$ac_try;;
37968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37969 (eval "$ac_compile") 2>conftest.er1
37971 grep -v '^ *+' conftest.er1 >conftest.err
37973 cat conftest.err >&5
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); } && {
37976 test -z "$ac_c_werror_flag" ||
37977 test ! -s conftest.err
37978 } && test -s conftest.$ac_objext; then
37979 ac_cv_member_struct_msghdr_msg_control=yes
37981 echo "$as_me: failed program was:" >&5
37982 sed 's/^/| /' conftest.$ac_ext >&5
37984 ac_cv_member_struct_msghdr_msg_control=no
37987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37993 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37994 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37996 cat >>confdefs.h <<_ACEOF
37997 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38004 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38005 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
38006 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38009 cat >conftest.$ac_ext <<_ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h. */
38015 $ac_includes_default
38019 static struct stat ac_aggr;
38020 if (ac_aggr.st_fstype)
38026 rm -f conftest.$ac_objext
38027 if { (ac_try="$ac_compile"
38028 case "(($ac_try" in
38029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030 *) ac_try_echo=$ac_try;;
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033 (eval "$ac_compile") 2>conftest.er1
38035 grep -v '^ *+' conftest.er1 >conftest.err
38037 cat conftest.err >&5
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); } && {
38040 test -z "$ac_c_werror_flag" ||
38041 test ! -s conftest.err
38042 } && test -s conftest.$ac_objext; then
38043 ac_cv_member_struct_stat_st_fstype=yes
38045 echo "$as_me: failed program was:" >&5
38046 sed 's/^/| /' conftest.$ac_ext >&5
38048 cat >conftest.$ac_ext <<_ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h. */
38054 $ac_includes_default
38058 static struct stat ac_aggr;
38059 if (sizeof ac_aggr.st_fstype)
38065 rm -f conftest.$ac_objext
38066 if { (ac_try="$ac_compile"
38067 case "(($ac_try" in
38068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38069 *) ac_try_echo=$ac_try;;
38071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38072 (eval "$ac_compile") 2>conftest.er1
38074 grep -v '^ *+' conftest.er1 >conftest.err
38076 cat conftest.err >&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); } && {
38079 test -z "$ac_c_werror_flag" ||
38080 test ! -s conftest.err
38081 } && test -s conftest.$ac_objext; then
38082 ac_cv_member_struct_stat_st_fstype=yes
38084 echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38087 ac_cv_member_struct_stat_st_fstype=no
38090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38095 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38096 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
38097 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38099 cat >>confdefs.h <<_ACEOF
38100 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38105 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38106 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
38107 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38108 echo $ECHO_N "(cached) $ECHO_C" >&6
38110 cat >conftest.$ac_ext <<_ACEOF
38113 cat confdefs.h >>conftest.$ac_ext
38114 cat >>conftest.$ac_ext <<_ACEOF
38115 /* end confdefs.h. */
38116 $ac_includes_default
38120 static struct stat ac_aggr;
38121 if (ac_aggr.st_vfstype)
38127 rm -f conftest.$ac_objext
38128 if { (ac_try="$ac_compile"
38129 case "(($ac_try" in
38130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38131 *) ac_try_echo=$ac_try;;
38133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38134 (eval "$ac_compile") 2>conftest.er1
38136 grep -v '^ *+' conftest.er1 >conftest.err
38138 cat conftest.err >&5
38139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); } && {
38141 test -z "$ac_c_werror_flag" ||
38142 test ! -s conftest.err
38143 } && test -s conftest.$ac_objext; then
38144 ac_cv_member_struct_stat_st_vfstype=yes
38146 echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38149 cat >conftest.$ac_ext <<_ACEOF
38152 cat confdefs.h >>conftest.$ac_ext
38153 cat >>conftest.$ac_ext <<_ACEOF
38154 /* end confdefs.h. */
38155 $ac_includes_default
38159 static struct stat ac_aggr;
38160 if (sizeof ac_aggr.st_vfstype)
38166 rm -f conftest.$ac_objext
38167 if { (ac_try="$ac_compile"
38168 case "(($ac_try" in
38169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38170 *) ac_try_echo=$ac_try;;
38172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38173 (eval "$ac_compile") 2>conftest.er1
38175 grep -v '^ *+' conftest.er1 >conftest.err
38177 cat conftest.err >&5
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); } && {
38180 test -z "$ac_c_werror_flag" ||
38181 test ! -s conftest.err
38182 } && test -s conftest.$ac_objext; then
38183 ac_cv_member_struct_stat_st_vfstype=yes
38185 echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38188 ac_cv_member_struct_stat_st_vfstype=no
38191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38196 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38197 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38198 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38200 cat >>confdefs.h <<_ACEOF
38201 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38207 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38208 cat >conftest.$ac_ext <<_ACEOF
38209 struct stat st; char *ptr=st.st_fstype;
38211 rm -f conftest.$ac_objext
38212 if { (ac_try="$ac_compile"
38213 case "(($ac_try" in
38214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38215 *) ac_try_echo=$ac_try;;
38217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38218 (eval "$ac_compile") 2>conftest.er1
38220 grep -v '^ *+' conftest.er1 >conftest.err
38222 cat conftest.err >&5
38223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224 (exit $ac_status); } && {
38225 test -z "$ac_c_werror_flag" ||
38226 test ! -s conftest.err
38227 } && test -s conftest.$ac_objext; then
38229 cat >>confdefs.h <<\_ACEOF
38230 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38234 echo "$as_me: failed program was:" >&5
38235 sed 's/^/| /' conftest.$ac_ext >&5
38238 cat >>confdefs.h <<\_ACEOF
38239 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38247 LIBSRCS="$LIBSRCS getpeereid.c"
38250 if test "$ac_cv_func_snprintf" != yes ||
38251 test "$ac_cv_func_vsnprintf" != yes; then
38252 if test "$ac_cv_func_snprintf" != yes; then
38254 cat >>confdefs.h <<\_ACEOF
38255 #define snprintf ber_pvt_snprintf
38259 if test "$ac_cv_func_vsnprintf" != yes; then
38261 cat >>confdefs.h <<\_ACEOF
38262 #define vsnprintf ber_pvt_vsnprintf
38269 if test "$ol_enable_slapi" != no ; then
38271 for ac_header in ltdl.h
38273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38278 echo $ECHO_N "(cached) $ECHO_C" >&6
38280 ac_res=`eval echo '${'$as_ac_Header'}'`
38281 { echo "$as_me:$LINENO: result: $ac_res" >&5
38282 echo "${ECHO_T}$ac_res" >&6; }
38284 # Is the header compilable?
38285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38287 cat >conftest.$ac_ext <<_ACEOF
38290 cat confdefs.h >>conftest.$ac_ext
38291 cat >>conftest.$ac_ext <<_ACEOF
38292 /* end confdefs.h. */
38293 $ac_includes_default
38294 #include <$ac_header>
38296 rm -f conftest.$ac_objext
38297 if { (ac_try="$ac_compile"
38298 case "(($ac_try" in
38299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38300 *) ac_try_echo=$ac_try;;
38302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38303 (eval "$ac_compile") 2>conftest.er1
38305 grep -v '^ *+' conftest.er1 >conftest.err
38307 cat conftest.err >&5
38308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309 (exit $ac_status); } && {
38310 test -z "$ac_c_werror_flag" ||
38311 test ! -s conftest.err
38312 } && test -s conftest.$ac_objext; then
38313 ac_header_compiler=yes
38315 echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38318 ac_header_compiler=no
38321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38323 echo "${ECHO_T}$ac_header_compiler" >&6; }
38325 # Is the header present?
38326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38328 cat >conftest.$ac_ext <<_ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h. */
38334 #include <$ac_header>
38336 if { (ac_try="$ac_cpp conftest.$ac_ext"
38337 case "(($ac_try" in
38338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38339 *) ac_try_echo=$ac_try;;
38341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38344 grep -v '^ *+' conftest.er1 >conftest.err
38346 cat conftest.err >&5
38347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 (exit $ac_status); } >/dev/null && {
38349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38350 test ! -s conftest.err
38352 ac_header_preproc=yes
38354 echo "$as_me: failed program was:" >&5
38355 sed 's/^/| /' conftest.$ac_ext >&5
38357 ac_header_preproc=no
38360 rm -f conftest.err conftest.$ac_ext
38361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38362 echo "${ECHO_T}$ac_header_preproc" >&6; }
38364 # So? What about this header?
38365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38371 ac_header_preproc=yes
38374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38387 ## --------------------------------------------- ##
38388 ## Report this to <http://www.openldap.org/its/> ##
38389 ## --------------------------------------------- ##
38391 ) | sed "s/^/$as_me: WARNING: /" >&2
38394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38397 echo $ECHO_N "(cached) $ECHO_C" >&6
38399 eval "$as_ac_Header=\$ac_header_preproc"
38401 ac_res=`eval echo '${'$as_ac_Header'}'`
38402 { echo "$as_me:$LINENO: result: $ac_res" >&5
38403 echo "${ECHO_T}$ac_res" >&6; }
38406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407 cat >>confdefs.h <<_ACEOF
38408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38416 if test $ac_cv_header_ltdl_h != yes ; then
38417 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38418 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38419 { (exit 1); exit 1; }; }
38421 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38422 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38423 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38424 echo $ECHO_N "(cached) $ECHO_C" >&6
38426 ac_check_lib_save_LIBS=$LIBS
38427 LIBS="-lltdl $LIBS"
38428 cat >conftest.$ac_ext <<_ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h. */
38435 /* Override any GCC internal prototype to avoid an error.
38436 Use char because int might match the return type of a GCC
38437 builtin and then its argument prototype would still apply. */
38445 return lt_dlinit ();
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (ac_try="$ac_link"
38452 case "(($ac_try" in
38453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454 *) ac_try_echo=$ac_try;;
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457 (eval "$ac_link") 2>conftest.er1
38459 grep -v '^ *+' conftest.er1 >conftest.err
38461 cat conftest.err >&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } && {
38464 test -z "$ac_c_werror_flag" ||
38465 test ! -s conftest.err
38466 } && test -s conftest$ac_exeext &&
38467 $as_test_x conftest$ac_exeext; then
38468 ac_cv_lib_ltdl_lt_dlinit=yes
38470 echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38473 ac_cv_lib_ltdl_lt_dlinit=no
38476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38477 conftest$ac_exeext conftest.$ac_ext
38478 LIBS=$ac_check_lib_save_LIBS
38480 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38481 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38482 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38485 LIBSLAPI=slapi/libslapi.la
38487 cat >>confdefs.h <<\_ACEOF
38488 #define HAVE_LIBLTDL 1
38493 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38494 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38495 { (exit 1); exit 1; }; }
38500 cat >>confdefs.h <<\_ACEOF
38501 #define LDAP_SLAPI 1
38506 if test "$ol_enable_debug" != no ; then
38507 if test "$ol_enable_debug" = traditional; then
38509 cat >>confdefs.h <<\_ACEOF
38510 #define OLD_DEBUG 1
38515 cat >>confdefs.h <<\_ACEOF
38516 #define LDAP_DEBUG 1
38520 if test "$ol_enable_syslog" = yes ; then
38522 cat >>confdefs.h <<\_ACEOF
38523 #define LDAP_SYSLOG 1
38527 if test "$ol_enable_proctitle" != no ; then
38529 cat >>confdefs.h <<\_ACEOF
38530 #define LDAP_PROCTITLE 1
38534 if test "$ol_enable_referrals" != no ; then
38536 cat >>confdefs.h <<\_ACEOF
38537 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38541 if test "$ol_enable_local" != no; then
38543 cat >>confdefs.h <<\_ACEOF
38544 #define LDAP_PF_LOCAL 1
38548 if test "$ol_link_ipv6" != no; then
38550 cat >>confdefs.h <<\_ACEOF
38551 #define LDAP_PF_INET6 1
38555 if test "$ol_enable_cleartext" != no ; then
38557 cat >>confdefs.h <<\_ACEOF
38558 #define SLAPD_CLEARTEXT 1
38562 if test "$ol_enable_crypt" != no ; then
38564 cat >>confdefs.h <<\_ACEOF
38565 #define SLAPD_CRYPT 1
38569 if test "$ol_link_spasswd" != no ; then
38571 cat >>confdefs.h <<\_ACEOF
38572 #define SLAPD_SPASSWD 1
38576 if test "$ol_enable_rlookups" != no ; then
38578 cat >>confdefs.h <<\_ACEOF
38579 #define SLAPD_RLOOKUPS 1
38583 if test "$ol_enable_aci" != no ; then
38584 if test $ol_enable_dynacl = no ; then
38585 ol_enable_dynacl=yes
38586 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38587 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38589 if test "$ol_enable_aci" = mod ; then
38590 MFLAG=SLAPD_MOD_DYNAMIC
38591 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38592 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38593 { (exit 1); exit 1; }; }
38595 MFLAG=SLAPD_MOD_STATIC
38597 WITH_ACI_ENABLED=$ol_enable_aci
38599 cat >>confdefs.h <<_ACEOF
38600 #define SLAPD_ACI_ENABLED $MFLAG
38604 WITH_ACI_ENABLED=no
38606 if test "$ol_enable_dynacl" != no ; then
38608 cat >>confdefs.h <<\_ACEOF
38609 #define SLAP_DYNACL 1
38614 if test "$ol_link_modules" != no ; then
38616 cat >>confdefs.h <<\_ACEOF
38617 #define SLAPD_MODULES 1
38621 SLAPD_MODULES_LDFLAGS="-dlopen self"
38625 cat >>confdefs.h <<\_ACEOF
38626 #define SLAPD_MOD_STATIC 1
38630 cat >>confdefs.h <<\_ACEOF
38631 #define SLAPD_MOD_DYNAMIC 2
38635 if test "$ol_enable_monitor" != no ; then
38637 BUILD_MONITOR=$ol_enable_monitor
38638 if test "$ol_enable_monitor" = mod ; then
38639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38640 MFLAG=SLAPD_MOD_DYNAMIC
38642 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38643 MFLAG=SLAPD_MOD_STATIC
38646 cat >>confdefs.h <<_ACEOF
38647 #define SLAPD_MONITOR $MFLAG
38652 if test "$ol_enable_bdb" != no ; then
38654 BUILD_BDB=$ol_enable_bdb
38655 if test "$ol_enable_bdb" = mod ; then
38656 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38657 MFLAG=SLAPD_MOD_DYNAMIC
38659 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38660 MFLAG=SLAPD_MOD_STATIC
38663 cat >>confdefs.h <<_ACEOF
38664 #define SLAPD_BDB $MFLAG
38669 if test "$ol_enable_dnssrv" != no ; then
38671 BUILD_DNSSRV=$ol_enable_dnssrv
38672 if test "$ol_enable_dnssrv" = mod ; then
38673 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38674 MFLAG=SLAPD_MOD_DYNAMIC
38676 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38677 MFLAG=SLAPD_MOD_STATIC
38680 cat >>confdefs.h <<_ACEOF
38681 #define SLAPD_DNSSRV $MFLAG
38686 if test "$ol_enable_hdb" != no ; then
38688 BUILD_HDB=$ol_enable_hdb
38689 if test "$ol_enable_hdb" = mod ; then
38690 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38691 MFLAG=SLAPD_MOD_DYNAMIC
38693 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38694 MFLAG=SLAPD_MOD_STATIC
38697 cat >>confdefs.h <<_ACEOF
38698 #define SLAPD_HDB $MFLAG
38703 if test "$ol_enable_ldap" != no ; then
38705 BUILD_LDAP=$ol_enable_ldap
38706 if test "$ol_enable_ldap" = mod ; then
38707 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38708 MFLAG=SLAPD_MOD_DYNAMIC
38710 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38711 MFLAG=SLAPD_MOD_STATIC
38714 cat >>confdefs.h <<_ACEOF
38715 #define SLAPD_LDAP $MFLAG
38720 if test "$ol_enable_meta" != no ; then
38722 BUILD_META=$ol_enable_meta
38724 if test "$ol_enable_meta" = mod ; then
38725 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38726 MFLAG=SLAPD_MOD_DYNAMIC
38728 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38729 MFLAG=SLAPD_MOD_STATIC
38732 cat >>confdefs.h <<_ACEOF
38733 #define SLAPD_META $MFLAG
38738 if test "$ol_enable_ndb" != no ; then
38740 BUILD_NDB=$ol_enable_ndb
38741 if test "$ol_enable_ndb" = mod ; then
38742 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38743 MFLAG=SLAPD_MOD_DYNAMIC
38745 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38746 MFLAG=SLAPD_MOD_STATIC
38749 cat >>confdefs.h <<_ACEOF
38750 #define SLAPD_NDB $MFLAG
38755 if test "$ol_enable_null" != no ; then
38757 BUILD_NULL=$ol_enable_null
38758 if test "$ol_enable_null" = mod ; then
38759 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38760 MFLAG=SLAPD_MOD_DYNAMIC
38762 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38763 MFLAG=SLAPD_MOD_STATIC
38766 cat >>confdefs.h <<_ACEOF
38767 #define SLAPD_NULL $MFLAG
38772 if test "$ol_enable_passwd" != no ; then
38774 BUILD_PASSWD=$ol_enable_passwd
38775 if test "$ol_enable_passwd" = mod ; then
38776 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38777 MFLAG=SLAPD_MOD_DYNAMIC
38779 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38780 MFLAG=SLAPD_MOD_STATIC
38783 cat >>confdefs.h <<_ACEOF
38784 #define SLAPD_PASSWD $MFLAG
38789 if test "$ol_link_perl" != no ; then
38791 BUILD_PERL=$ol_enable_perl
38792 if test "$ol_enable_perl" = mod ; then
38793 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38794 MFLAG=SLAPD_MOD_DYNAMIC
38796 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38797 MFLAG=SLAPD_MOD_STATIC
38800 cat >>confdefs.h <<_ACEOF
38801 #define SLAPD_PERL $MFLAG
38806 if test "$ol_enable_relay" != no ; then
38808 BUILD_RELAY=$ol_enable_relay
38809 if test "$ol_enable_relay" = mod ; then
38810 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38811 MFLAG=SLAPD_MOD_DYNAMIC
38813 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38814 MFLAG=SLAPD_MOD_STATIC
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_RELAY $MFLAG
38823 if test "$ol_enable_shell" != no ; then
38824 if test "$ol_link_threads" != no ; then
38825 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38826 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38829 BUILD_SHELL=$ol_enable_shell
38830 if test "$ol_enable_shell" = mod ; then
38831 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38832 MFLAG=SLAPD_MOD_DYNAMIC
38834 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38835 MFLAG=SLAPD_MOD_STATIC
38838 cat >>confdefs.h <<_ACEOF
38839 #define SLAPD_SHELL $MFLAG
38844 if test "$ol_enable_sock" != no ; then
38846 BUILD_SOCK=$ol_enable_sock
38847 if test "$ol_enable_sock" = mod ; then
38848 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38849 MFLAG=SLAPD_MOD_DYNAMIC
38851 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38852 MFLAG=SLAPD_MOD_STATIC
38855 cat >>confdefs.h <<_ACEOF
38856 #define SLAPD_SOCK $MFLAG
38861 if test "$ol_link_sql" != no ; then
38863 BUILD_SQL=$ol_enable_sql
38864 if test "$ol_enable_sql" = mod; then
38865 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38866 MFLAG=SLAPD_MOD_DYNAMIC
38868 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38869 MFLAG=SLAPD_MOD_STATIC
38872 cat >>confdefs.h <<_ACEOF
38873 #define SLAPD_SQL $MFLAG
38878 if test "$ol_enable_accesslog" != no ; then
38879 BUILD_ACCESSLOG=$ol_enable_accesslog
38880 if test "$ol_enable_accesslog" = mod ; then
38881 MFLAG=SLAPD_MOD_DYNAMIC
38882 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38884 MFLAG=SLAPD_MOD_STATIC
38885 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38888 cat >>confdefs.h <<_ACEOF
38889 #define SLAPD_OVER_ACCESSLOG $MFLAG
38894 if test "$ol_enable_auditlog" != no ; then
38895 BUILD_AUDITLOG=$ol_enable_auditlog
38896 if test "$ol_enable_auditlog" = mod ; then
38897 MFLAG=SLAPD_MOD_DYNAMIC
38898 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38900 MFLAG=SLAPD_MOD_STATIC
38901 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38904 cat >>confdefs.h <<_ACEOF
38905 #define SLAPD_OVER_AUDITLOG $MFLAG
38910 if test "$ol_enable_collect" != no ; then
38911 BUILD_COLLECT=$ol_enable_collect
38912 if test "$ol_enable_collect" = mod ; then
38913 MFLAG=SLAPD_MOD_DYNAMIC
38914 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38916 MFLAG=SLAPD_MOD_STATIC
38917 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38920 cat >>confdefs.h <<_ACEOF
38921 #define SLAPD_OVER_COLLECT $MFLAG
38926 if test "$ol_enable_constraint" != no ; then
38927 BUILD_CONSTRAINT=$ol_enable_constraint
38928 if test "$ol_enable_constraint" = mod ; then
38929 MFLAG=SLAPD_MOD_DYNAMIC
38930 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38932 MFLAG=SLAPD_MOD_STATIC
38933 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38936 cat >>confdefs.h <<_ACEOF
38937 #define SLAPD_OVER_CONSTRAINT $MFLAG
38942 if test "$ol_enable_dds" != no ; then
38943 BUILD_DDS=$ol_enable_dds
38944 if test "$ol_enable_dds" = mod ; then
38945 MFLAG=SLAPD_MOD_DYNAMIC
38946 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38948 MFLAG=SLAPD_MOD_STATIC
38949 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38952 cat >>confdefs.h <<_ACEOF
38953 #define SLAPD_OVER_DDS $MFLAG
38958 if test "$ol_enable_deref" != no ; then
38959 BUILD_DEREF=$ol_enable_deref
38960 if test "$ol_enable_deref" = mod ; then
38961 MFLAG=SLAPD_MOD_DYNAMIC
38962 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38964 MFLAG=SLAPD_MOD_STATIC
38965 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38968 cat >>confdefs.h <<_ACEOF
38969 #define SLAPD_OVER_DEREF $MFLAG
38974 if test "$ol_enable_dyngroup" != no ; then
38975 BUILD_DYNGROUP=$ol_enable_dyngroup
38976 if test "$ol_enable_dyngroup" = mod ; then
38977 MFLAG=SLAPD_MOD_DYNAMIC
38978 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38980 MFLAG=SLAPD_MOD_STATIC
38981 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38984 cat >>confdefs.h <<_ACEOF
38985 #define SLAPD_OVER_DYNGROUP $MFLAG
38990 if test "$ol_enable_dynlist" != no ; then
38991 BUILD_DYNLIST=$ol_enable_dynlist
38992 if test "$ol_enable_dynlist" = mod ; then
38993 MFLAG=SLAPD_MOD_DYNAMIC
38994 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38996 MFLAG=SLAPD_MOD_STATIC
38997 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39000 cat >>confdefs.h <<_ACEOF
39001 #define SLAPD_OVER_DYNLIST $MFLAG
39006 if test "$ol_enable_memberof" != no ; then
39007 BUILD_MEMBEROF=$ol_enable_memberof
39008 if test "$ol_enable_memberof" = mod ; then
39009 MFLAG=SLAPD_MOD_DYNAMIC
39010 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39012 MFLAG=SLAPD_MOD_STATIC
39013 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39016 cat >>confdefs.h <<_ACEOF
39017 #define SLAPD_OVER_MEMBEROF $MFLAG
39022 if test "$ol_enable_ppolicy" != no ; then
39023 BUILD_PPOLICY=$ol_enable_ppolicy
39024 if test "$ol_enable_ppolicy" = mod ; then
39025 MFLAG=SLAPD_MOD_DYNAMIC
39026 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39028 MFLAG=SLAPD_MOD_STATIC
39029 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39032 cat >>confdefs.h <<_ACEOF
39033 #define SLAPD_OVER_PPOLICY $MFLAG
39038 if test "$ol_enable_proxycache" != no ; then
39039 BUILD_PROXYCACHE=$ol_enable_proxycache
39040 if test "$ol_enable_proxycache" = mod ; then
39041 MFLAG=SLAPD_MOD_DYNAMIC
39042 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39044 MFLAG=SLAPD_MOD_STATIC
39045 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39048 cat >>confdefs.h <<_ACEOF
39049 #define SLAPD_OVER_PROXYCACHE $MFLAG
39054 if test "$ol_enable_refint" != no ; then
39055 BUILD_REFINT=$ol_enable_refint
39056 if test "$ol_enable_refint" = mod ; then
39057 MFLAG=SLAPD_MOD_DYNAMIC
39058 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39060 MFLAG=SLAPD_MOD_STATIC
39061 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39064 cat >>confdefs.h <<_ACEOF
39065 #define SLAPD_OVER_REFINT $MFLAG
39070 if test "$ol_enable_retcode" != no ; then
39071 BUILD_RETCODE=$ol_enable_retcode
39072 if test "$ol_enable_retcode" = mod ; then
39073 MFLAG=SLAPD_MOD_DYNAMIC
39074 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39076 MFLAG=SLAPD_MOD_STATIC
39077 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39080 cat >>confdefs.h <<_ACEOF
39081 #define SLAPD_OVER_RETCODE $MFLAG
39086 if test "$ol_enable_rwm" != no ; then
39088 BUILD_RWM=$ol_enable_rwm
39089 if test "$ol_enable_rwm" = mod ; then
39090 MFLAG=SLAPD_MOD_DYNAMIC
39091 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39093 MFLAG=SLAPD_MOD_STATIC
39094 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39097 cat >>confdefs.h <<_ACEOF
39098 #define SLAPD_OVER_RWM $MFLAG
39103 if test "$ol_enable_seqmod" != no ; then
39104 BUILD_SEQMOD=$ol_enable_seqmod
39105 if test "$ol_enable_seqmod" = mod ; then
39106 MFLAG=SLAPD_MOD_DYNAMIC
39107 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39109 MFLAG=SLAPD_MOD_STATIC
39110 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39113 cat >>confdefs.h <<_ACEOF
39114 #define SLAPD_OVER_SEQMOD $MFLAG
39119 if test "$ol_enable_sssvlv" != no ; then
39120 BUILD_SSSVLV=$ol_enable_sssvlv
39121 if test "$ol_enable_sssvlv" = mod ; then
39122 MFLAG=SLAPD_MOD_DYNAMIC
39123 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
39125 MFLAG=SLAPD_MOD_STATIC
39126 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
39129 cat >>confdefs.h <<_ACEOF
39130 #define SLAPD_OVER_SSSVLV $MFLAG
39135 if test "$ol_enable_syncprov" != no ; then
39136 BUILD_SYNCPROV=$ol_enable_syncprov
39137 if test "$ol_enable_syncprov" = mod ; then
39138 MFLAG=SLAPD_MOD_DYNAMIC
39139 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39141 MFLAG=SLAPD_MOD_STATIC
39142 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39145 cat >>confdefs.h <<_ACEOF
39146 #define SLAPD_OVER_SYNCPROV $MFLAG
39151 if test "$ol_enable_translucent" != no ; then
39152 BUILD_TRANSLUCENT=$ol_enable_translucent
39153 if test "$ol_enable_translucent" = mod ; then
39154 MFLAG=SLAPD_MOD_DYNAMIC
39155 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39157 MFLAG=SLAPD_MOD_STATIC
39158 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39161 cat >>confdefs.h <<_ACEOF
39162 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39167 if test "$ol_enable_unique" != no ; then
39168 BUILD_UNIQUE=$ol_enable_unique
39169 if test "$ol_enable_unique" = mod ; then
39170 MFLAG=SLAPD_MOD_DYNAMIC
39171 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39173 MFLAG=SLAPD_MOD_STATIC
39174 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39177 cat >>confdefs.h <<_ACEOF
39178 #define SLAPD_OVER_UNIQUE $MFLAG
39183 if test "$ol_enable_valsort" != no ; then
39184 BUILD_VALSORT=$ol_enable_valsort
39185 if test "$ol_enable_valsort" = mod ; then
39186 MFLAG=SLAPD_MOD_DYNAMIC
39187 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39189 MFLAG=SLAPD_MOD_STATIC
39190 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39193 cat >>confdefs.h <<_ACEOF
39194 #define SLAPD_OVER_VALSORT $MFLAG
39199 if test "$ol_enable_rewrite" != no ; then
39201 cat >>confdefs.h <<\_ACEOF
39202 #define ENABLE_REWRITE 1
39208 if test "$ol_enable_slapi" != no ; then
39210 cat >>confdefs.h <<\_ACEOF
39211 #define ENABLE_SLAPI 1
39215 SLAPD_SLAPI_DEPEND=libslapi.a
39220 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39222 SLAPD_MODULES_LDFLAGS=
39316 # Check whether --with-xxinstall was given.
39317 if test "${with_xxinstall+set}" = set; then
39318 withval=$with_xxinstall;
39323 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"
39326 ac_config_commands="$ac_config_commands default"
39330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39331 # Let make expand exec_prefix.
39332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39334 DEFS=-DHAVE_CONFIG_H
39338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39339 # 1. Remove the extension, and $U if already installed.
39340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39341 ac_i=`echo "$ac_i" | sed "$ac_script"`
39342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39343 # will be set to the directory where LIBOBJS objects are built.
39344 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39345 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39347 LIBOBJS=$ac_libobjs
39349 LTLIBOBJS=$ac_ltlibobjs
39352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39353 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39354 Usually this means the macro was only invoked conditionally." >&5
39355 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39356 Usually this means the macro was only invoked conditionally." >&2;}
39357 { (exit 1); exit 1; }; }
39359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39360 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39361 Usually this means the macro was only invoked conditionally." >&5
39362 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39363 Usually this means the macro was only invoked conditionally." >&2;}
39364 { (exit 1); exit 1; }; }
39366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39367 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39368 Usually this means the macro was only invoked conditionally." >&5
39369 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39370 Usually this means the macro was only invoked conditionally." >&2;}
39371 { (exit 1); exit 1; }; }
39374 : ${CONFIG_STATUS=./config.status}
39375 ac_clean_files_save=$ac_clean_files
39376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39377 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39378 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39379 cat >$CONFIG_STATUS <<_ACEOF
39381 # Generated by $as_me.
39382 # Run this file to recreate the current configuration.
39383 # Compiler output produced by configure, useful for debugging
39384 # configure, is in config.log if it exists.
39387 ac_cs_recheck=false
39389 SHELL=\${CONFIG_SHELL-$SHELL}
39392 cat >>$CONFIG_STATUS <<\_ACEOF
39393 ## --------------------- ##
39394 ## M4sh Initialization. ##
39395 ## --------------------- ##
39397 # Be more Bourne compatible
39398 DUALCASE=1; export DUALCASE # for MKS sh
39399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39403 # is contrary to our usage. Disable this feature.
39404 alias -g '${1+"$@"}'='"$@"'
39405 setopt NO_GLOB_SUBST
39407 case `(set -o) 2>/dev/null` in
39408 *posix*) set -o posix ;;
39417 # Avoid depending upon Character Ranges.
39418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39421 as_cr_digits='0123456789'
39422 as_cr_alnum=$as_cr_Letters$as_cr_digits
39424 # The user is always right.
39425 if test "${PATH_SEPARATOR+set}" != set; then
39426 echo "#! /bin/sh" >conf$$.sh
39427 echo "exit 0" >>conf$$.sh
39429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39437 # Support unset when possible.
39438 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39446 # We need space, tab and new line, in precisely that order. Quoting is
39447 # there to prevent editors from complaining about space-tab.
39448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39449 # splitting by setting IFS to empty value.)
39454 # Find who we are. Look in the path if we contain no directory separator.
39456 *[\\/]* ) as_myself=$0 ;;
39457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39458 for as_dir in $PATH
39461 test -z "$as_dir" && as_dir=.
39462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39468 # We did not find ourselves, most probably we were run as `sh COMMAND'
39469 # in which case we are not to be found in the path.
39470 if test "x$as_myself" = x; then
39473 if test ! -f "$as_myself"; then
39474 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39475 { (exit 1); exit 1; }
39478 # Work around bugs in pre-3.0 UWIN ksh.
39479 for as_var in ENV MAIL MAILPATH
39480 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39490 LC_TELEPHONE LC_TIME
39492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39493 eval $as_var=C; export $as_var
39495 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39499 # Required to use basename.
39500 if expr a : '\(a\)' >/dev/null 2>&1 &&
39501 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39507 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39508 as_basename=basename
39514 # Name of the executable.
39515 as_me=`$as_basename -- "$0" ||
39516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39517 X"$0" : 'X\(//\)$' \| \
39518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39520 sed '/^.*\/\([^/][^/]*\)\/*$/{
39539 as_lineno_1=$LINENO
39540 as_lineno_2=$LINENO
39541 test "x$as_lineno_1" != "x$as_lineno_2" &&
39542 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39544 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39545 # uniformly replaced by the line number. The first 'sed' inserts a
39546 # line-number line after each line using $LINENO; the second 'sed'
39547 # does the real work. The second script uses 'N' to pair each
39548 # line-number line with the line containing $LINENO, and appends
39549 # trailing '-' during substitution so that $LINENO is not a special
39550 # case at line end.
39551 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39552 # scripts with optimization help from Paolo Bonzini. Blame Lee
39553 # E. McMahon (1931-1989) for sed's syntax. :-)
39565 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39568 ' >$as_me.lineno &&
39569 chmod +x "$as_me.lineno" ||
39570 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39571 { (exit 1); exit 1; }; }
39573 # Don't try to exec as it changes $[0], causing all sort of problems
39574 # (the dirname of $[0] is not the place where we might find the
39575 # original and so on. Autoconf is especially sensitive to this).
39576 . "./$as_me.lineno"
39577 # Exit status is that of the last command.
39582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39588 ECHO_C= ECHO_N= ECHO_T=
39589 case `echo -n x` in
39591 case `echo 'x\c'` in
39592 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39599 if expr a : '\(a\)' >/dev/null 2>&1 &&
39600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39606 rm -f conf$$ conf$$.exe conf$$.file
39607 if test -d conf$$.dir; then
39608 rm -f conf$$.dir/conf$$.file
39614 if ln -s conf$$.file conf$$ 2>/dev/null; then
39616 # ... but there are two gotchas:
39617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39619 # In both cases, we have to default to `cp -p'.
39620 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39622 elif ln conf$$.file conf$$ 2>/dev/null; then
39627 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39628 rmdir conf$$.dir 2>/dev/null
39630 if mkdir -p . 2>/dev/null; then
39633 test -d ./-p && rmdir ./-p
39637 if test -x / >/dev/null 2>&1; then
39638 as_test_x='test -x'
39640 if ls -dL / >/dev/null 2>&1; then
39647 if test -d "$1"; then
39653 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39654 ???[sx]*):;;*)false;;esac;fi
39658 as_executable_p=$as_test_x
39660 # Sed expression to map a string onto a valid CPP name.
39661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39663 # Sed expression to map a string onto a valid variable name.
39664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39669 # Save the log message, to keep $[0] and so on meaningful, and to
39670 # report actual input values of CONFIG_FILES etc. instead of their
39671 # values after options handling.
39673 This file was extended by $as_me, which was
39674 generated by GNU Autoconf 2.61. Invocation command line was
39676 CONFIG_FILES = $CONFIG_FILES
39677 CONFIG_HEADERS = $CONFIG_HEADERS
39678 CONFIG_LINKS = $CONFIG_LINKS
39679 CONFIG_COMMANDS = $CONFIG_COMMANDS
39682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39687 cat >>$CONFIG_STATUS <<_ACEOF
39688 # Files that config.status was made for.
39689 config_files="$ac_config_files"
39690 config_headers="$ac_config_headers"
39691 config_commands="$ac_config_commands"
39695 cat >>$CONFIG_STATUS <<\_ACEOF
39697 \`$as_me' instantiates files from templates according to the
39698 current configuration.
39700 Usage: $0 [OPTIONS] [FILE]...
39702 -h, --help print this help, then exit
39703 -V, --version print version number and configuration settings, then exit
39704 -q, --quiet do not print progress messages
39705 -d, --debug don't remove temporary files
39706 --recheck update $as_me by reconfiguring in the same conditions
39707 --file=FILE[:TEMPLATE]
39708 instantiate the configuration file FILE
39709 --header=FILE[:TEMPLATE]
39710 instantiate the configuration header FILE
39712 Configuration files:
39715 Configuration headers:
39718 Configuration commands:
39721 Report bugs to <bug-autoconf@gnu.org>."
39724 cat >>$CONFIG_STATUS <<_ACEOF
39727 configured by $0, generated by GNU Autoconf 2.61,
39728 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39730 Copyright (C) 2006 Free Software Foundation, Inc.
39731 This config.status script is free software; the Free Software Foundation
39732 gives unlimited permission to copy, distribute and modify it."
39740 cat >>$CONFIG_STATUS <<\_ACEOF
39741 # If no file are specified by the user, then we need to provide default
39742 # value. By we need to know if files were specified by the user.
39748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39760 # Handling of the options.
39761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39764 echo "$ac_cs_version"; exit ;;
39765 --debug | --debu | --deb | --de | --d | -d )
39767 --file | --fil | --fi | --f )
39769 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39770 ac_need_defaults=false;;
39771 --header | --heade | --head | --hea )
39773 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39774 ac_need_defaults=false;;
39776 # Conflict between --help and --header
39777 { echo "$as_me: error: ambiguous option: $1
39778 Try \`$0 --help' for more information." >&2
39779 { (exit 1); exit 1; }; };;
39780 --help | --hel | -h )
39781 echo "$ac_cs_usage"; exit ;;
39782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39786 # This is an error.
39787 -*) { echo "$as_me: error: unrecognized option: $1
39788 Try \`$0 --help' for more information." >&2
39789 { (exit 1); exit 1; }; } ;;
39791 *) ac_config_targets="$ac_config_targets $1"
39792 ac_need_defaults=false ;;
39798 ac_configure_extra_args=
39800 if $ac_cs_silent; then
39802 ac_configure_extra_args="$ac_configure_extra_args --silent"
39806 cat >>$CONFIG_STATUS <<_ACEOF
39807 if \$ac_cs_recheck; then
39808 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39809 CONFIG_SHELL=$SHELL
39810 export CONFIG_SHELL
39811 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39815 cat >>$CONFIG_STATUS <<\_ACEOF
39819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39820 ## Running $as_me. ##
39826 cat >>$CONFIG_STATUS <<_ACEOF
39830 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39832 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39833 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39840 # Handling of arguments.
39841 for ac_config_target in $ac_config_targets
39843 case $ac_config_target in
39844 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39845 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39846 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39847 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39849 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39850 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39851 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39852 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39853 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39854 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39855 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39856 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39857 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39858 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39859 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39860 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39861 "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" ;;
39862 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39863 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39864 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39865 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39866 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39867 "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" ;;
39868 "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" ;;
39869 "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" ;;
39870 "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" ;;
39871 "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" ;;
39872 "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" ;;
39873 "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" ;;
39874 "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" ;;
39875 "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" ;;
39876 "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" ;;
39877 "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" ;;
39878 "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" ;;
39879 "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" ;;
39880 "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" ;;
39881 "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" ;;
39882 "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" ;;
39883 "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" ;;
39884 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39885 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39886 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39887 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39888 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39890 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39891 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39892 { (exit 1); exit 1; }; };;
39897 # If the user did not use the arguments to specify the items to instantiate,
39898 # then the envvar interface is used. Set only those that are not.
39899 # We use the long form for the default assignment because of an extremely
39900 # bizarre bug on SunOS 4.1.3.
39901 if $ac_need_defaults; then
39902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39907 # Have a temporary directory for convenience. Make it in the build tree
39908 # simply because there is no reason against having it here, and in addition,
39909 # creating and moving files from /tmp can sometimes cause problems.
39910 # Hook for its removal unless debugging.
39911 # Note that there is a small window in which the directory will not be cleaned:
39912 # after its creation but before its name has been assigned to `$tmp'.
39916 trap 'exit_status=$?
39917 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39919 trap '{ (exit 1); exit 1; }' 1 2 13 15
39921 # Create a (secure) tmp directory for tmp files.
39924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39925 test -n "$tmp" && test -d "$tmp"
39928 tmp=./conf$$-$RANDOM
39929 (umask 077 && mkdir "$tmp")
39932 echo "$me: cannot create a temporary directory in ." >&2
39933 { (exit 1); exit 1; }
39937 # Set up the sed scripts for CONFIG_FILES section.
39940 # No need to generate the scripts if there are no CONFIG_FILES.
39941 # This happens for instance when ./config.status config.h
39942 if test -n "$CONFIG_FILES"; then
39949 for ac_last_try in false false false false false :; do
39950 cat >conf$$subs.sed <<_ACEOF
39951 SHELL!$SHELL$ac_delim
39952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39958 exec_prefix!$exec_prefix$ac_delim
39959 prefix!$prefix$ac_delim
39960 program_transform_name!$program_transform_name$ac_delim
39961 bindir!$bindir$ac_delim
39962 sbindir!$sbindir$ac_delim
39963 libexecdir!$libexecdir$ac_delim
39964 datarootdir!$datarootdir$ac_delim
39965 datadir!$datadir$ac_delim
39966 sysconfdir!$sysconfdir$ac_delim
39967 sharedstatedir!$sharedstatedir$ac_delim
39968 localstatedir!$localstatedir$ac_delim
39969 includedir!$includedir$ac_delim
39970 oldincludedir!$oldincludedir$ac_delim
39971 docdir!$docdir$ac_delim
39972 infodir!$infodir$ac_delim
39973 htmldir!$htmldir$ac_delim
39974 dvidir!$dvidir$ac_delim
39975 pdfdir!$pdfdir$ac_delim
39976 psdir!$psdir$ac_delim
39977 libdir!$libdir$ac_delim
39978 localedir!$localedir$ac_delim
39979 mandir!$mandir$ac_delim
39980 DEFS!$DEFS$ac_delim
39981 ECHO_C!$ECHO_C$ac_delim
39982 ECHO_N!$ECHO_N$ac_delim
39983 ECHO_T!$ECHO_T$ac_delim
39984 LIBS!$LIBS$ac_delim
39985 build_alias!$build_alias$ac_delim
39986 host_alias!$host_alias$ac_delim
39987 target_alias!$target_alias$ac_delim
39988 build!$build$ac_delim
39989 build_cpu!$build_cpu$ac_delim
39990 build_vendor!$build_vendor$ac_delim
39991 build_os!$build_os$ac_delim
39992 host!$host$ac_delim
39993 host_cpu!$host_cpu$ac_delim
39994 host_vendor!$host_vendor$ac_delim
39995 host_os!$host_os$ac_delim
39996 target!$target$ac_delim
39997 target_cpu!$target_cpu$ac_delim
39998 target_vendor!$target_vendor$ac_delim
39999 target_os!$target_os$ac_delim
40000 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40001 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
40002 INSTALL_DATA!$INSTALL_DATA$ac_delim
40003 am__isrc!$am__isrc$ac_delim
40004 CYGPATH_W!$CYGPATH_W$ac_delim
40005 PACKAGE!$PACKAGE$ac_delim
40006 VERSION!$VERSION$ac_delim
40007 ACLOCAL!$ACLOCAL$ac_delim
40008 AUTOCONF!$AUTOCONF$ac_delim
40009 AUTOMAKE!$AUTOMAKE$ac_delim
40010 AUTOHEADER!$AUTOHEADER$ac_delim
40011 MAKEINFO!$MAKEINFO$ac_delim
40012 install_sh!$install_sh$ac_delim
40013 STRIP!$STRIP$ac_delim
40014 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40015 mkdir_p!$mkdir_p$ac_delim
40017 SET_MAKE!$SET_MAKE$ac_delim
40018 am__leading_dot!$am__leading_dot$ac_delim
40019 AMTAR!$AMTAR$ac_delim
40020 am__tar!$am__tar$ac_delim
40021 am__untar!$am__untar$ac_delim
40022 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
40023 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
40024 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
40025 top_builddir!$top_builddir$ac_delim
40026 ldap_subdir!$ldap_subdir$ac_delim
40029 CFLAGS!$CFLAGS$ac_delim
40030 LDFLAGS!$LDFLAGS$ac_delim
40031 CPPFLAGS!$CPPFLAGS$ac_delim
40032 ac_ct_CC!$ac_ct_CC$ac_delim
40033 EXEEXT!$EXEEXT$ac_delim
40034 OBJEXT!$OBJEXT$ac_delim
40035 DEPDIR!$DEPDIR$ac_delim
40036 am__include!$am__include$ac_delim
40037 am__quote!$am__quote$ac_delim
40038 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40039 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40040 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40041 CCDEPMODE!$CCDEPMODE$ac_delim
40042 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40043 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40044 GREP!$GREP$ac_delim
40045 EGREP!$EGREP$ac_delim
40046 LN_S!$LN_S$ac_delim
40047 ECHO!$ECHO$ac_delim
40050 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40052 elif $ac_last_try; then
40053 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40054 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40055 { (exit 1); exit 1; }; }
40057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40061 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40062 if test -n "$ac_eof"; then
40063 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40064 ac_eof=`expr $ac_eof + 1`
40067 cat >>$CONFIG_STATUS <<_ACEOF
40068 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40072 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40073 s/^/s,@/; s/!/@,|#_!!_#|/
40076 s/'"$ac_delim"'$/,g/; t
40078 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40079 ' >>$CONFIG_STATUS <conf$$subs.sed
40080 rm -f conf$$subs.sed
40081 cat >>$CONFIG_STATUS <<_ACEOF
40087 for ac_last_try in false false false false false :; do
40088 cat >conf$$subs.sed <<_ACEOF
40089 RANLIB!$RANLIB$ac_delim
40090 DLLTOOL!$DLLTOOL$ac_delim
40092 OBJDUMP!$OBJDUMP$ac_delim
40094 LIBTOOL!$LIBTOOL$ac_delim
40095 PERLBIN!$PERLBIN$ac_delim
40096 OL_MKDEP!$OL_MKDEP$ac_delim
40097 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40098 LTSTATIC!$LTSTATIC$ac_delim
40099 MYSQL!$MYSQL$ac_delim
40100 LIBOBJS!$LIBOBJS$ac_delim
40101 LIBSRCS!$LIBSRCS$ac_delim
40102 PLAT!$PLAT$ac_delim
40103 WITH_SASL!$WITH_SASL$ac_delim
40104 WITH_TLS!$WITH_TLS$ac_delim
40105 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40106 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40107 BUILD_THREAD!$BUILD_THREAD$ac_delim
40108 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40109 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40110 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40111 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40112 BUILD_BDB!$BUILD_BDB$ac_delim
40113 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40114 BUILD_HDB!$BUILD_HDB$ac_delim
40115 BUILD_LDAP!$BUILD_LDAP$ac_delim
40116 BUILD_META!$BUILD_META$ac_delim
40117 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40118 BUILD_NDB!$BUILD_NDB$ac_delim
40119 BUILD_NULL!$BUILD_NULL$ac_delim
40120 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40121 BUILD_RELAY!$BUILD_RELAY$ac_delim
40122 BUILD_PERL!$BUILD_PERL$ac_delim
40123 BUILD_SHELL!$BUILD_SHELL$ac_delim
40124 BUILD_SOCK!$BUILD_SOCK$ac_delim
40125 BUILD_SQL!$BUILD_SQL$ac_delim
40126 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40127 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40128 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40129 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40130 BUILD_DDS!$BUILD_DDS$ac_delim
40131 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40132 BUILD_DEREF!$BUILD_DEREF$ac_delim
40133 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40134 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40135 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40136 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40137 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40138 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40139 BUILD_REFINT!$BUILD_REFINT$ac_delim
40140 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40141 BUILD_RWM!$BUILD_RWM$ac_delim
40142 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40143 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
40144 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40145 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40146 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40147 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40148 LDAP_LIBS!$LDAP_LIBS$ac_delim
40149 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40150 BDB_LIBS!$BDB_LIBS$ac_delim
40151 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40152 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40153 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40154 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40155 WRAP_LIBS!$WRAP_LIBS$ac_delim
40156 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40157 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40158 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40159 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40160 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40161 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40162 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40163 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40164 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40165 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40166 KRB4_LIBS!$KRB4_LIBS$ac_delim
40167 KRB5_LIBS!$KRB5_LIBS$ac_delim
40168 SASL_LIBS!$SASL_LIBS$ac_delim
40169 TLS_LIBS!$TLS_LIBS$ac_delim
40170 MODULES_LIBS!$MODULES_LIBS$ac_delim
40171 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40172 LIBSLAPI!$LIBSLAPI$ac_delim
40173 AUTH_LIBS!$AUTH_LIBS$ac_delim
40174 ICU_LIBS!$ICU_LIBS$ac_delim
40175 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40176 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40177 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40178 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40179 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40180 LTLIBOBJS!$LTLIBOBJS$ac_delim
40183 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
40185 elif $ac_last_try; then
40186 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40187 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40188 { (exit 1); exit 1; }; }
40190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40194 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40195 if test -n "$ac_eof"; then
40196 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40197 ac_eof=`expr $ac_eof + 1`
40200 cat >>$CONFIG_STATUS <<_ACEOF
40201 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40205 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40206 s/^/s,@/; s/!/@,|#_!!_#|/
40209 s/'"$ac_delim"'$/,g/; t
40211 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40212 ' >>$CONFIG_STATUS <conf$$subs.sed
40213 rm -f conf$$subs.sed
40214 cat >>$CONFIG_STATUS <<_ACEOF
40221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40223 # trailing colons and then remove the whole line if VPATH becomes empty
40224 # (actually we leave an empty line to preserve line numbers).
40225 if test "x$srcdir" = x.; then
40226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40227 s/:*\$(srcdir):*/:/
40228 s/:*\${srcdir}:*/:/
40230 s/^\([^=]*=[ ]*\):*/\1/
40236 cat >>$CONFIG_STATUS <<\_ACEOF
40237 fi # test -n "$CONFIG_FILES"
40240 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
40243 :[FHLC]) ac_mode=$ac_tag; continue;;
40245 case $ac_mode$ac_tag in
40247 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40248 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40249 { (exit 1); exit 1; }; };;
40250 :[FH]-) ac_tag=-:-;;
40251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40268 -) ac_f="$tmp/stdin";;
40269 *) # Look for the file first in the build tree, then in the source tree
40270 # (if the path is not absolute). The absolute path cannot be DOS-style,
40271 # because $ac_f cannot contain `:'.
40275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40277 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40278 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40279 { (exit 1); exit 1; }; };;
40281 ac_file_inputs="$ac_file_inputs $ac_f"
40284 # Let's still pretend it is `configure' which instantiates (i.e., don't
40285 # use $as_me), people would be surprised to read:
40286 # /* config.h. Generated by config.status. */
40287 configure_input="Generated from "`IFS=:
40288 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40289 if test x"$ac_file" != x-; then
40290 configure_input="$ac_file. $configure_input"
40291 { echo "$as_me:$LINENO: creating $ac_file" >&5
40292 echo "$as_me: creating $ac_file" >&6;}
40296 *:-:* | *:-) cat >"$tmp/stdin";;
40301 ac_dir=`$as_dirname -- "$ac_file" ||
40302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40303 X"$ac_file" : 'X\(//\)[^/]' \| \
40304 X"$ac_file" : 'X\(//\)$' \| \
40305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40311 /^X\(\/\/\)[^/].*/{
40326 -*) as_dir=./$as_dir;;
40328 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40332 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40333 *) as_qdir=$as_dir;;
40335 as_dirs="'$as_qdir' $as_dirs"
40336 as_dir=`$as_dirname -- "$as_dir" ||
40337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40338 X"$as_dir" : 'X\(//\)[^/]' \| \
40339 X"$as_dir" : 'X\(//\)$' \| \
40340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40346 /^X\(\/\/\)[^/].*/{
40359 test -d "$as_dir" && break
40361 test -z "$as_dirs" || eval "mkdir $as_dirs"
40362 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40363 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40364 { (exit 1); exit 1; }; }; }
40368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40371 # A ".." for each directory in $ac_dir_suffix.
40372 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40373 case $ac_top_builddir_sub in
40374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40378 ac_abs_top_builddir=$ac_pwd
40379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40380 # for backward compatibility:
40381 ac_top_builddir=$ac_top_build_prefix
40384 .) # We are building in place.
40386 ac_top_srcdir=$ac_top_builddir_sub
40387 ac_abs_top_srcdir=$ac_pwd ;;
40388 [\\/]* | ?:[\\/]* ) # Absolute name.
40389 ac_srcdir=$srcdir$ac_dir_suffix;
40390 ac_top_srcdir=$srcdir
40391 ac_abs_top_srcdir=$srcdir ;;
40392 *) # Relative name.
40393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40394 ac_top_srcdir=$ac_top_build_prefix$srcdir
40395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40407 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40408 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40410 ac_MKDIR_P=$MKDIR_P
40412 [\\/$]* | ?:[\\/]* ) ;;
40413 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40417 cat >>$CONFIG_STATUS <<\_ACEOF
40418 # If the template does not know about datarootdir, expand it.
40419 # FIXME: This hack should be removed a few years after 2.60.
40420 ac_datarootdir_hack=; ac_datarootdir_seen=
40422 case `sed -n '/datarootdir/ {
40431 ' $ac_file_inputs` in
40432 *datarootdir*) ac_datarootdir_seen=yes;;
40433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40437 cat >>$CONFIG_STATUS <<_ACEOF
40438 ac_datarootdir_hack='
40439 s&@datadir@&$datadir&g
40440 s&@docdir@&$docdir&g
40441 s&@infodir@&$infodir&g
40442 s&@localedir@&$localedir&g
40443 s&@mandir@&$mandir&g
40444 s&\\\${datarootdir}&$datarootdir&g' ;;
40448 # Neutralize VPATH when `$srcdir' = `.'.
40449 # Shell code in configure.ac might set extrasub.
40450 # FIXME: do we really want to maintain this feature?
40451 cat >>$CONFIG_STATUS <<_ACEOF
40455 cat >>$CONFIG_STATUS <<\_ACEOF
40457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40458 s&@configure_input@&$configure_input&;t t
40459 s&@top_builddir@&$ac_top_builddir_sub&;t t
40460 s&@srcdir@&$ac_srcdir&;t t
40461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40462 s&@top_srcdir@&$ac_top_srcdir&;t t
40463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40464 s&@builddir@&$ac_builddir&;t t
40465 s&@abs_builddir@&$ac_abs_builddir&;t t
40466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40467 s&@INSTALL@&$ac_INSTALL&;t t
40468 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40469 $ac_datarootdir_hack
40470 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40475 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40476 which seems to be undefined. Please make sure it is defined." >&5
40477 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40478 which seems to be undefined. Please make sure it is defined." >&2;}
40482 -) cat "$tmp/out"; rm -f "$tmp/out";;
40483 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40492 # Transform confdefs.h into a sed script `conftest.defines', that
40493 # substitutes the proper values into config.h.in to produce config.h.
40494 rm -f conftest.defines conftest.tail
40495 # First, append a space to every undef/define line, to ease matching.
40496 echo 's/$/ /' >conftest.defines
40497 # Then, protect against being on the right side of a sed subst, or in
40498 # an unquoted here document, in config.status. If some macros were
40499 # called several times there might be several #defines for the same
40500 # symbol, which is useless. But do not sort them, since the last
40501 # AC_DEFINE must be honored.
40502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40503 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40504 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40505 # PARAMS is the parameter list in the macro definition--in most cases, it's
40506 # just an empty string.
40507 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40508 ac_dB='\\)[ (].*,\\1define\\2'
40516 s/^[ ]*#[ ]*define[ ][ ]*//
40521 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40522 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40523 ' >>conftest.defines
40525 # Remove the space that was appended to ease matching.
40526 # Then replace #undef with comments. This is necessary, for
40527 # example, in the case of _POSIX_SOURCE, which is predefined and required
40528 # on some systems where configure will not decide to define it.
40529 # (The regexp can be short, since the line contains either #define or #undef.)
40531 s,^[ #]*u.*,/* & */,' >>conftest.defines
40533 # Break up conftest.defines:
40534 ac_max_sed_lines=50
40536 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40537 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40538 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40540 ac_in='$ac_file_inputs'
40541 ac_out='"$tmp/out1"'
40542 ac_nxt='"$tmp/out2"'
40546 # Write a here document:
40547 cat >>$CONFIG_STATUS <<_ACEOF
40548 # First, check the format of the line:
40549 cat >"\$tmp/defines.sed" <<\\CEOF
40550 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40551 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40555 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40557 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40558 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40559 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40560 grep . conftest.tail >/dev/null || break
40561 rm -f conftest.defines
40562 mv conftest.tail conftest.defines
40564 rm -f conftest.defines conftest.tail
40566 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40567 cat >>$CONFIG_STATUS <<\_ACEOF
40568 if test x"$ac_file" != x-; then
40569 echo "/* $configure_input */" >"$tmp/config.h"
40570 cat "$ac_result" >>"$tmp/config.h"
40571 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40573 echo "$as_me: $ac_file is unchanged" >&6;}
40576 mv "$tmp/config.h" $ac_file
40579 echo "/* $configure_input */"
40583 # Compute $ac_file's index in $config_headers.
40585 for _am_header in $config_headers :; do
40586 case $_am_header in
40587 $ac_file | $ac_file:* )
40590 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40593 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40594 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40595 X$ac_file : 'X\(//\)[^/]' \| \
40596 X$ac_file : 'X\(//\)$' \| \
40597 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40603 /^X\(\/\/\)[^/].*/{
40615 s/.*/./; q'`/stamp-h$_am_stamp_count
40618 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40619 echo "$as_me: executing $ac_file commands" >&6;}
40624 case $ac_file$ac_mode in
40625 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40626 # Strip MF so we end up with the name of the file.
40627 mf=`echo "$mf" | sed -e 's/:.*$//'`
40628 # Check whether this is an Automake generated Makefile or not.
40629 # We used to match only the files named `Makefile.in', but
40630 # some people rename them; so instead we look at the file content.
40631 # Grep'ing the first line is not enough: some people post-process
40632 # each Makefile.in and add a new line on top of each file to say so.
40633 # Grep'ing the whole file is not good either: AIX grep has a line
40634 # limit of 2048, but all sed's we know have understand at least 4000.
40635 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
40636 dirpart=`$as_dirname -- "$mf" ||
40637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40638 X"$mf" : 'X\(//\)[^/]' \| \
40639 X"$mf" : 'X\(//\)$' \| \
40640 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40646 /^X\(\/\/\)[^/].*/{
40662 # Extract the definition of DEPDIR, am__include, and am__quote
40663 # from the Makefile without running `make'.
40664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40665 test -z "$DEPDIR" && continue
40666 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40667 test -z "am__include" && continue
40668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40669 # When using ansi2knr, U may be empty or an underscore; expand it
40670 U=`sed -n 's/^U = //p' < "$mf"`
40671 # Find all dependency output files, they are included files with
40672 # $(DEPDIR) in their names. We invoke sed twice because it is the
40673 # simplest approach to changing $(DEPDIR) to its actual value in the
40675 for file in `sed -n "
40676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40678 # Make sure the directory exists.
40679 test -f "$dirpart/$file" && continue
40680 fdir=`$as_dirname -- "$file" ||
40681 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40682 X"$file" : 'X\(//\)[^/]' \| \
40683 X"$file" : 'X\(//\)$' \| \
40684 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40690 /^X\(\/\/\)[^/].*/{
40703 { as_dir=$dirpart/$fdir
40705 -*) as_dir=./$as_dir;;
40707 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40711 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40712 *) as_qdir=$as_dir;;
40714 as_dirs="'$as_qdir' $as_dirs"
40715 as_dir=`$as_dirname -- "$as_dir" ||
40716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40717 X"$as_dir" : 'X\(//\)[^/]' \| \
40718 X"$as_dir" : 'X\(//\)$' \| \
40719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40725 /^X\(\/\/\)[^/].*/{
40738 test -d "$as_dir" && break
40740 test -z "$as_dirs" || eval "mkdir $as_dirs"
40741 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40743 { (exit 1); exit 1; }; }; }
40744 # echo "creating $dirpart/$file"
40745 echo '# dummy' > "$dirpart/$file"
40752 BACKENDSC="servers/slapd/backends.c"
40753 echo "Making $BACKENDSC"
40755 cat > $BACKENDSC << ENDX
40756 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40758 * Copyright 1998-2011 The OpenLDAP Foundation.
40759 * All rights reserved.
40761 * Redistribution and use in source and binary forms, with or without
40762 * modification, are permitted only as authorized by the OpenLDAP
40765 * A copy of this license is available in the file LICENSE in the
40766 * top-level directory of the distribution or, alternatively, at
40767 * <http://www.OpenLDAP.org/license.html>.
40769 /* This file is automatically generated by configure; please do not edit. */
40771 #include "portable.h"
40775 if test "${STATIC_BACKENDS}"; then
40776 for b in config ${STATIC_BACKENDS}; do
40777 bb=`echo "${b}" | sed -e 's/back-//'`
40778 cat >> $BACKENDSC << ENDX
40779 extern BI_init ${bb}_back_initialize;
40783 cat >> $BACKENDSC << ENDX
40785 BackendInfo slap_binfo[] = {
40788 for b in config ${STATIC_BACKENDS}; do
40789 bb=`echo "${b}" | sed -e 's/back-//'`
40790 echo " Add ${bb} ..."
40791 cat >> $BACKENDSC << ENDX
40792 { "${bb}", ${bb}_back_initialize },
40796 cat >> $BACKENDSC << ENDX
40800 /* end of generated file */
40803 OVERLAYSC="servers/slapd/overlays/statover.c"
40804 echo "Making $OVERLAYSC"
40806 cat > $OVERLAYSC << ENDX
40807 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40809 * Copyright 1998-2011 The OpenLDAP Foundation.
40810 * All rights reserved.
40812 * Redistribution and use in source and binary forms, with or without
40813 * modification, are permitted only as authorized by the OpenLDAP
40816 * A copy of this license is available in the file LICENSE in the
40817 * top-level directory of the distribution or, alternatively, at
40818 * <http://www.OpenLDAP.org/license.html>.
40820 /* This file is automatically generated by configure; please do not edit. */
40822 #include "portable.h"
40826 if test "${STATIC_OVERLAYS}"; then
40827 for o in ${STATIC_OVERLAYS}; do
40828 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40829 cat >> $OVERLAYSC << ENDX
40830 extern OV_init ${oo}_initialize;
40835 cat >> $OVERLAYSC << ENDX
40837 OverlayInit slap_oinfo[] = {
40840 if test "${STATIC_OVERLAYS}"; then
40841 for o in ${STATIC_OVERLAYS}; do
40842 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40843 echo " Add ${oo} ..."
40844 cat >> $OVERLAYSC << ENDX
40845 { "${oo}", ${oo}_initialize },
40850 cat >> $OVERLAYSC << ENDX
40854 /* end of generated file */
40857 if test "${ol_cv_mkdep}" = no; then
40858 echo '(Do not "make depend"; we do not know how to build dependencies)'
40860 echo 'Please run "make depend" to build dependencies'
40868 { (exit 0); exit 0; }
40870 chmod +x $CONFIG_STATUS
40871 ac_clean_files=$ac_clean_files_save
40874 # configure is writing to config.log, and then calls config.status.
40875 # config.status does its own redirection, appending to config.log.
40876 # Unfortunately, on DOS this fails, as config.log is still kept open
40877 # by configure, so config.status won't be able to write to it; its
40878 # output is simply discarded. So we exec the FD to /dev/null,
40879 # effectively closing config.log, so it can be properly (re)opened and
40880 # appended to by config.status. When coming back to configure, we
40881 # need to make the FD available again.
40882 if test "$no_create" != yes; then
40884 ac_config_status_args=
40885 test "$silent" = yes &&
40886 ac_config_status_args="$ac_config_status_args --quiet"
40888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40891 # would make configure fail if this is the last instruction.
40892 $ac_cs_success || { (exit 1); exit 1; }