2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.29 2010/04/19 16:53:00 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2010 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
834 INSTALL_STRIP_PROGRAM
844 OPENLDAP_RELEASE_DATE
935 SLAPD_MODULES_CPPFLAGS
936 SLAPD_MODULES_LDFLAGS
938 SLAPD_STATIC_BACKENDS
939 SLAPD_DYNAMIC_BACKENDS
940 SLAPD_STATIC_OVERLAYS
941 SLAPD_DYNAMIC_OVERLAYS
962 ac_precious_vars='build_alias
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1542 if test -n "$ac_init_help"; then
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-debug enable debugging no|yes|traditional [yes]
1550 --enable-dynamic enable linking built binaries with dynamic libs [no]
1551 --enable-syslog enable syslog support [auto]
1552 --enable-proctitle enable proctitle support [yes]
1553 --enable-ipv6 enable IPv6 support [auto]
1554 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1556 SLAPD (Standalone LDAP Daemon) Options:
1557 --enable-slapd enable building slapd [yes]
1558 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1559 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1560 --enable-cleartext enable cleartext passwords [yes]
1561 --enable-crypt enable crypt(3) passwords [no]
1562 --enable-lmpasswd enable LAN Manager passwords [no]
1563 --enable-spasswd enable (Cyrus) SASL password verification [no]
1564 --enable-modules enable dynamic module support [no]
1565 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1566 --enable-rlookups enable reverse lookups of client hostnames [no]
1567 --enable-slapi enable SLAPI support (experimental) [no]
1568 --enable-slp enable SLPv2 support [no]
1569 --enable-wrappers enable tcp wrapper support [no]
1571 SLAPD Backend Options:
1572 --enable-backends enable all available backends no|yes|mod
1573 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1574 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1575 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1576 --enable-ldap enable ldap backend no|yes|mod [no]
1577 --enable-meta enable metadirectory backend no|yes|mod [no]
1578 --enable-monitor enable monitor backend no|yes|mod [yes]
1579 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1580 --enable-null enable null backend no|yes|mod [no]
1581 --enable-passwd enable passwd backend no|yes|mod [no]
1582 --enable-perl enable perl backend no|yes|mod [no]
1583 --enable-relay enable relay backend no|yes|mod [yes]
1584 --enable-shell enable shell backend no|yes|mod [no]
1585 --enable-sock enable sock backend no|yes|mod [no]
1586 --enable-sql enable sql backend no|yes|mod [no]
1588 SLAPD Overlay Options:
1589 --enable-overlays enable all available overlays no|yes|mod
1590 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1591 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1592 --enable-collect Collect overlay no|yes|mod [no]
1593 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1594 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1595 --enable-deref Dereference overlay no|yes|mod [no]
1596 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1597 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1598 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1599 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1600 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1601 --enable-refint Referential Integrity overlay no|yes|mod [no]
1602 --enable-retcode Return Code testing overlay no|yes|mod [no]
1603 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1604 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1605 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1606 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1607 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1608 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1609 --enable-valsort Value Sorting overlay no|yes|mod [no]
1611 Library Generation & Linking Options
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-subdir=DIR change default subdirectory used for installs
1624 --with-cyrus-sasl with Cyrus SASL support [auto]
1625 --with-fetch with fetch(3) URL support [auto]
1626 --with-threads with threads [auto]
1627 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1628 --with-yielding-select with implicitly yielding select [auto]
1629 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-pic try to use only PIC/non-PIC objects [default=use
1634 --with-tags[=TAGS] include additional configurations [automatic]
1636 See INSTALL file for further details.
1638 Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
1643 LIBS libraries to pass to the linker, e.g. -l<library>
1644 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645 you have headers in a nonstandard directory <include dir>
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1655 if test "$ac_init_help" = "recursive"; then
1656 # If there are subdirs, report their specific --help.
1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 test -d "$ac_dir" || continue
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.61
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1719 Copyright 1998-2010 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61. Invocation command line was
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 echo "PATH: $as_dir"
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1789 ac_must_keep_next=false
1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797 | -silent | --silent | --silen | --sile | --sil)
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806 if test $ac_must_keep_next = true; then
1807 ac_must_keep_next=false # Got value, back to normal.
1810 *=* | --config-cache | -C | -disable-* | --disable-* \
1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813 | -with-* | --with-* | -without-* | --without-* | --x)
1814 case "$ac_configure_args0 " in
1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818 -* ) ac_must_keep_next=true ;;
1821 ac_configure_args="$ac_configure_args '$ac_arg'"
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log. We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835 # Save into config.log some information that might help in debugging.
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1845 # The following way of writing the cache mishandles newlines in values,
1847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848 eval ac_val=\$$ac_var
1852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1856 _ | IFS | as_nl) ;; #(
1857 *) $as_unset $ac_var ;;
1862 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863 *${as_nl}ac_space=\ *)
1865 "s/'\''/'\''\\\\'\'''\''/g;
1866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1882 for ac_var in $ac_subst_vars
1884 eval ac_val=\$$ac_var
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 echo "$ac_var='\''$ac_val'\''"
1892 if test -n "$ac_subst_files"; then
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1899 for ac_var in $ac_subst_files
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 echo "$ac_var='\''$ac_val'\''"
1910 if test -s confdefs.h; then
1920 test "$ac_signal" != 0 &&
1921 echo "$as_me: caught signal $ac_signal"
1922 echo "$as_me: exit $exit_status"
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1936 # Predefined preprocessor variables.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1970 set x "$ac_default_prefix/share/config.site" \
1971 "$ac_default_prefix/etc/config.site"
1976 if test -r "$ac_site_file"; then
1977 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979 sed 's/^/| /' "$ac_site_file" >&5
1985 # Check that the precious variables saved in the cache have kept the same
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2008 echo "$as_me: former value: $ac_old_val" >&2;}
2009 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2010 echo "$as_me: current value: $ac_new_val" >&2;}
2011 ac_cache_corrupted=:
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2017 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026 if $ac_cache_corrupted; then
2027 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031 { (exit 1); exit 1; }; }
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 for ac_dir in build "$srcdir"/build; do
2085 if test -f "$ac_dir/install-sh"; then
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 elif test -f "$ac_dir/install.sh"; then
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 elif test -f "$ac_dir/shtool"; then
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2099 if test -z "$ac_aux_dir"; then
2100 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102 { (exit 1); exit 1; }; }
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118 { (exit 1); exit 1; }; }
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122 ac_cv_shtool="$ac_aux_dir/shtool"
2124 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126 { (exit 1); exit 1; }; }
2129 SHTOOL="$ac_cv_shtool"
2133 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2138 if test -d $ac_aux_dir/CVS; then
2139 OPENLDAP_CVS="(from CVS sources) "
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161 { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174 { (exit 1); exit 1; }; };;
2177 ac_save_IFS=$IFS; IFS='-'
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$host_alias" = x; then
2196 ac_cv_host=$ac_cv_build
2198 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211 { (exit 1); exit 1; }; };;
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test "x$target_alias" = x; then
2233 ac_cv_target=$ac_cv_host
2235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248 { (exit 1); exit 1; }; };;
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2269 program_prefix=${target_alias}-
2271 am__api_version="1.9"
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2298 ./ | .// | /cC/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2342 echo "${ECHO_T}$INSTALL" >&6; }
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2363 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t $srcdir/configure conftest.file`
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" >&5
2378 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" >&2;}
2380 { (exit 1); exit 1; }; }
2383 test "$2" = conftest.file
2389 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2390 Check your system clock" >&5
2391 echo "$as_me: error: newly created file is older than distributed files!
2392 Check your system clock" >&2;}
2393 { (exit 1); exit 1; }; }
2395 { echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $. echo might interpret backslashes.
2403 # By default was `s,x,x', remove it if useless.
2404 cat <<\_ACEOF >conftest.sed
2405 s/[\\$]/&&/g;s/;s,x,x,$//
2407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416 am_missing_run="$MISSING --run "
2419 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2424 # We used to keeping the `.' as first argument, in order to
2425 # allow $(mkdir_p) to be used without argument. As in
2426 # $(mkdir_p) $(somedir)
2427 # where $(somedir) is conditionally defined. However this is wrong
2429 # 1. if the package is installed by a user who cannot write `.'
2430 # make install will fail,
2431 # 2. the above comment should most certainly read
2432 # $(mkdir_p) $(DESTDIR)$(somedir)
2433 # so it does not work when $(somedir) is undefined and
2434 # $(DESTDIR) is not.
2435 # To support the latter case, we have to write
2436 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2437 # so the `.' trick is pointless.
2438 mkdir_p='mkdir -p --'
2440 # On NextStep and OpenStep, the `mkdir' command does not
2441 # recognize any option. It will interpret all options as
2442 # directories to create, and then abort because `.' already
2444 for d in ./-p ./--version;
2446 test -d $d && rmdir $d
2448 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2449 if test -f "$ac_aux_dir/mkinstalldirs"; then
2450 mkdir_p='$(mkinstalldirs)'
2452 mkdir_p='$(install_sh) -d'
2456 for ac_prog in gawk mawk nawk awk
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_AWK+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$AWK"; then
2466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_AWK="$ac_prog"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$AWK"; then
2487 { echo "$as_me:$LINENO: result: $AWK" >&5
2488 echo "${ECHO_T}$AWK" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2495 test -n "$AWK" && break
2498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.make <<\_ACEOF
2507 @echo '@@@%%%=$(MAKE)=@@@%%%'
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512 eval ac_cv_prog_make_${ac_make}_set=yes;;
2514 eval ac_cv_prog_make_${ac_make}_set=no;;
2518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 SET_MAKE="MAKE=${MAKE-make}"
2528 rm -rf .tst 2>/dev/null
2529 mkdir .tst 2>/dev/null
2530 if test -d .tst; then
2535 rmdir .tst 2>/dev/null
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539 test -f $srcdir/config.status; then
2540 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542 { (exit 1); exit 1; }; }
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547 if (cygpath --version) >/dev/null 2>/dev/null; then
2548 CYGPATH_W='cygpath -w'
2555 # Define the identity of the package.
2560 # Some tools Automake needs.
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'. However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$STRIP"; then
2592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613 { echo "$as_me:$LINENO: result: $STRIP" >&5
2614 echo "${ECHO_T}$STRIP" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$ac_cv_prog_STRIP"; then
2624 # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_STRIP"; then
2632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_STRIP="strip"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2654 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2660 if test "x$ac_ct_STRIP" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2676 STRIP="$ac_cv_prog_STRIP"
2680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2682 # We need awk for the "check" target. The system "awk" is bad on
2684 # Always define AMTAR for backward compatibility.
2686 AMTAR=${AMTAR-"${am_missing_run}tar"}
2688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2694 cat >>confdefs.h <<_ACEOF
2695 #define OPENLDAP_PACKAGE "$PACKAGE"
2699 cat >>confdefs.h <<_ACEOF
2700 #define OPENLDAP_VERSION "$VERSION"
2705 cat >>confdefs.h <<_ACEOF
2706 #define LDAP_VENDOR_VERSION $OL_API_INC
2710 cat >>confdefs.h <<_ACEOF
2711 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2715 cat >>confdefs.h <<_ACEOF
2716 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2720 cat >>confdefs.h <<_ACEOF
2721 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2725 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2727 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2729 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2737 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2739 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2741 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2744 { echo "$as_me:$LINENO: checking configure arguments" >&5
2745 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2750 ldap_subdir="/openldap"
2753 # Check whether --with-subdir was given.
2754 if test "${with_subdir+set}" = set; then
2755 withval=$with_subdir; case "$withval" in
2761 ldap_subdir="$withval"
2764 ldap_subdir="/$withval"
2771 # OpenLDAP --enable-debug
2773 # Check whether --enable-debug was given.
2774 if test "${enable_debug+set}" = set; then
2775 enableval=$enable_debug;
2777 for ol_val in no yes traditional ; do
2778 if test "$enableval" = "$ol_val" ; then
2782 if test "$ol_arg" = "invalid" ; then
2783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2785 { (exit 1); exit 1; }; }
2787 ol_enable_debug="$ol_arg"
2793 # end --enable-debug
2794 # OpenLDAP --enable-dynamic
2796 # Check whether --enable-dynamic was given.
2797 if test "${enable_dynamic+set}" = set; then
2798 enableval=$enable_dynamic;
2800 for ol_val in auto yes no ; do
2801 if test "$enableval" = "$ol_val" ; then
2805 if test "$ol_arg" = "invalid" ; then
2806 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2807 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2808 { (exit 1); exit 1; }; }
2810 ol_enable_dynamic="$ol_arg"
2813 ol_enable_dynamic=no
2816 # end --enable-dynamic
2817 # OpenLDAP --enable-syslog
2819 # Check whether --enable-syslog was given.
2820 if test "${enable_syslog+set}" = set; then
2821 enableval=$enable_syslog;
2823 for ol_val in auto yes no ; do
2824 if test "$enableval" = "$ol_val" ; then
2828 if test "$ol_arg" = "invalid" ; then
2829 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2831 { (exit 1); exit 1; }; }
2833 ol_enable_syslog="$ol_arg"
2836 ol_enable_syslog=auto
2839 # end --enable-syslog
2840 # OpenLDAP --enable-proctitle
2842 # Check whether --enable-proctitle was given.
2843 if test "${enable_proctitle+set}" = set; then
2844 enableval=$enable_proctitle;
2846 for ol_val in auto yes no ; do
2847 if test "$enableval" = "$ol_val" ; then
2851 if test "$ol_arg" = "invalid" ; then
2852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2854 { (exit 1); exit 1; }; }
2856 ol_enable_proctitle="$ol_arg"
2859 ol_enable_proctitle=yes
2862 # end --enable-proctitle
2863 ol_enable_referrals=${ol_enable_referrals-no}
2864 # OpenLDAP --enable-ipv6
2866 # Check whether --enable-ipv6 was given.
2867 if test "${enable_ipv6+set}" = set; then
2868 enableval=$enable_ipv6;
2870 for ol_val in auto yes no ; do
2871 if test "$enableval" = "$ol_val" ; then
2875 if test "$ol_arg" = "invalid" ; then
2876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2878 { (exit 1); exit 1; }; }
2880 ol_enable_ipv6="$ol_arg"
2887 # OpenLDAP --enable-local
2889 # Check whether --enable-local was given.
2890 if test "${enable_local+set}" = set; then
2891 enableval=$enable_local;
2893 for ol_val in auto yes no ; do
2894 if test "$enableval" = "$ol_val" ; then
2898 if test "$ol_arg" = "invalid" ; then
2899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2901 { (exit 1); exit 1; }; }
2903 ol_enable_local="$ol_arg"
2906 ol_enable_local=auto
2909 # end --enable-local
2911 # OpenLDAP --with-cyrus_sasl
2913 # Check whether --with-cyrus_sasl was given.
2914 if test "${with_cyrus_sasl+set}" = set; then
2915 withval=$with_cyrus_sasl;
2917 for ol_val in auto yes no ; do
2918 if test "$withval" = "$ol_val" ; then
2922 if test "$ol_arg" = "invalid" ; then
2923 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2924 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2925 { (exit 1); exit 1; }; }
2927 ol_with_cyrus_sasl="$ol_arg"
2930 ol_with_cyrus_sasl="auto"
2932 # end --with-cyrus_sasl
2934 # OpenLDAP --with-fetch
2936 # Check whether --with-fetch was given.
2937 if test "${with_fetch+set}" = set; then
2938 withval=$with_fetch;
2940 for ol_val in auto yes no ; do
2941 if test "$withval" = "$ol_val" ; then
2945 if test "$ol_arg" = "invalid" ; then
2946 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2947 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2948 { (exit 1); exit 1; }; }
2950 ol_with_fetch="$ol_arg"
2953 ol_with_fetch="auto"
2957 # OpenLDAP --with-threads
2959 # Check whether --with-threads was given.
2960 if test "${with_threads+set}" = set; then
2961 withval=$with_threads;
2963 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2964 if test "$withval" = "$ol_val" ; then
2968 if test "$ol_arg" = "invalid" ; then
2969 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2970 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2971 { (exit 1); exit 1; }; }
2973 ol_with_threads="$ol_arg"
2976 ol_with_threads="auto"
2978 # end --with-threads
2980 # OpenLDAP --with-tls
2982 # Check whether --with-tls was given.
2983 if test "${with_tls+set}" = set; then
2986 for ol_val in auto openssl gnutls yes no ; do
2987 if test "$withval" = "$ol_val" ; then
2991 if test "$ol_arg" = "invalid" ; then
2992 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2993 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2994 { (exit 1); exit 1; }; }
2996 ol_with_tls="$ol_arg"
3003 # OpenLDAP --with-yielding_select
3005 # Check whether --with-yielding_select was given.
3006 if test "${with_yielding_select+set}" = set; then
3007 withval=$with_yielding_select;
3009 for ol_val in auto yes no manual ; do
3010 if test "$withval" = "$ol_val" ; then
3014 if test "$ol_arg" = "invalid" ; then
3015 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3016 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3017 { (exit 1); exit 1; }; }
3019 ol_with_yielding_select="$ol_arg"
3022 ol_with_yielding_select="auto"
3024 # end --with-yielding_select
3026 # OpenLDAP --with-mp
3028 # Check whether --with-mp was given.
3029 if test "${with_mp+set}" = set; then
3032 for ol_val in auto longlong long bignum gmp yes no ; do
3033 if test "$withval" = "$ol_val" ; then
3037 if test "$ol_arg" = "invalid" ; then
3038 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3039 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3040 { (exit 1); exit 1; }; }
3042 ol_with_mp="$ol_arg"
3049 # OpenLDAP --with-odbc
3051 # Check whether --with-odbc was given.
3052 if test "${with_odbc+set}" = set; then
3055 for ol_val in auto iodbc unixodbc odbc32 ; do
3056 if test "$withval" = "$ol_val" ; then
3060 if test "$ol_arg" = "invalid" ; then
3061 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3062 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3063 { (exit 1); exit 1; }; }
3065 ol_with_odbc="$ol_arg"
3074 # Check whether --enable-xxslapdoptions was given.
3075 if test "${enable_xxslapdoptions+set}" = set; then
3076 enableval=$enable_xxslapdoptions;
3079 # OpenLDAP --enable-slapd
3081 # Check whether --enable-slapd was given.
3082 if test "${enable_slapd+set}" = set; then
3083 enableval=$enable_slapd;
3085 for ol_val in auto yes no ; do
3086 if test "$enableval" = "$ol_val" ; then
3090 if test "$ol_arg" = "invalid" ; then
3091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3093 { (exit 1); exit 1; }; }
3095 ol_enable_slapd="$ol_arg"
3101 # end --enable-slapd
3102 # OpenLDAP --enable-dynacl
3104 # Check whether --enable-dynacl was given.
3105 if test "${enable_dynacl+set}" = set; then
3106 enableval=$enable_dynacl;
3108 for ol_val in auto yes no ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_dynacl="$ol_arg"
3124 # end --enable-dynacl
3125 # OpenLDAP --enable-aci
3127 # Check whether --enable-aci was given.
3128 if test "${enable_aci+set}" = set; then
3129 enableval=$enable_aci;
3131 for ol_val in no yes mod ; do
3132 if test "$enableval" = "$ol_val" ; then
3136 if test "$ol_arg" = "invalid" ; then
3137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3139 { (exit 1); exit 1; }; }
3141 ol_enable_aci="$ol_arg"
3148 # OpenLDAP --enable-cleartext
3150 # Check whether --enable-cleartext was given.
3151 if test "${enable_cleartext+set}" = set; then
3152 enableval=$enable_cleartext;
3154 for ol_val in auto yes no ; do
3155 if test "$enableval" = "$ol_val" ; then
3159 if test "$ol_arg" = "invalid" ; then
3160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3161 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3162 { (exit 1); exit 1; }; }
3164 ol_enable_cleartext="$ol_arg"
3167 ol_enable_cleartext=yes
3170 # end --enable-cleartext
3171 # OpenLDAP --enable-crypt
3173 # Check whether --enable-crypt was given.
3174 if test "${enable_crypt+set}" = set; then
3175 enableval=$enable_crypt;
3177 for ol_val in auto yes no ; do
3178 if test "$enableval" = "$ol_val" ; then
3182 if test "$ol_arg" = "invalid" ; then
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3185 { (exit 1); exit 1; }; }
3187 ol_enable_crypt="$ol_arg"
3193 # end --enable-crypt
3194 # OpenLDAP --enable-lmpasswd
3196 # Check whether --enable-lmpasswd was given.
3197 if test "${enable_lmpasswd+set}" = set; then
3198 enableval=$enable_lmpasswd;
3200 for ol_val in auto yes no ; do
3201 if test "$enableval" = "$ol_val" ; then
3205 if test "$ol_arg" = "invalid" ; then
3206 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3208 { (exit 1); exit 1; }; }
3210 ol_enable_lmpasswd="$ol_arg"
3213 ol_enable_lmpasswd=no
3216 # end --enable-lmpasswd
3217 # OpenLDAP --enable-spasswd
3219 # Check whether --enable-spasswd was given.
3220 if test "${enable_spasswd+set}" = set; then
3221 enableval=$enable_spasswd;
3223 for ol_val in auto yes no ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_spasswd="$ol_arg"
3236 ol_enable_spasswd=no
3239 # end --enable-spasswd
3240 # OpenLDAP --enable-modules
3242 # Check whether --enable-modules was given.
3243 if test "${enable_modules+set}" = set; then
3244 enableval=$enable_modules;
3246 for ol_val in auto yes no ; do
3247 if test "$enableval" = "$ol_val" ; then
3251 if test "$ol_arg" = "invalid" ; then
3252 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3254 { (exit 1); exit 1; }; }
3256 ol_enable_modules="$ol_arg"
3259 ol_enable_modules=no
3262 # end --enable-modules
3263 # OpenLDAP --enable-rewrite
3265 # Check whether --enable-rewrite was given.
3266 if test "${enable_rewrite+set}" = set; then
3267 enableval=$enable_rewrite;
3269 for ol_val in auto yes no ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_rewrite="$ol_arg"
3282 ol_enable_rewrite=auto
3285 # end --enable-rewrite
3286 # OpenLDAP --enable-rlookups
3288 # Check whether --enable-rlookups was given.
3289 if test "${enable_rlookups+set}" = set; then
3290 enableval=$enable_rlookups;
3292 for ol_val in auto yes no ; do
3293 if test "$enableval" = "$ol_val" ; then
3297 if test "$ol_arg" = "invalid" ; then
3298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3300 { (exit 1); exit 1; }; }
3302 ol_enable_rlookups="$ol_arg"
3305 ol_enable_rlookups=no
3308 # end --enable-rlookups
3309 # OpenLDAP --enable-slapi
3311 # Check whether --enable-slapi was given.
3312 if test "${enable_slapi+set}" = set; then
3313 enableval=$enable_slapi;
3315 for ol_val in auto yes no ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_slapi="$ol_arg"
3331 # end --enable-slapi
3332 # OpenLDAP --enable-slp
3334 # Check whether --enable-slp was given.
3335 if test "${enable_slp+set}" = set; then
3336 enableval=$enable_slp;
3338 for ol_val in auto yes no ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_slp="$ol_arg"
3355 # OpenLDAP --enable-wrappers
3357 # Check whether --enable-wrappers was given.
3358 if test "${enable_wrappers+set}" = set; then
3359 enableval=$enable_wrappers;
3361 for ol_val in auto yes no ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_wrappers="$ol_arg"
3374 ol_enable_wrappers=no
3377 # end --enable-wrappers
3394 # Check whether --enable-xxslapbackends was given.
3395 if test "${enable_xxslapbackends+set}" = set; then
3396 enableval=$enable_xxslapbackends;
3400 # OpenLDAP --enable-backends
3402 # Check whether --enable-backends was given.
3403 if test "${enable_backends+set}" = set; then
3404 enableval=$enable_backends;
3406 for ol_val in no yes mod ; do
3407 if test "$enableval" = "$ol_val" ; then
3411 if test "$ol_arg" = "invalid" ; then
3412 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3413 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3414 { (exit 1); exit 1; }; }
3416 ol_enable_backends="$ol_arg"
3420 # end --enable-backends
3421 # OpenLDAP --enable-bdb
3423 # Check whether --enable-bdb was given.
3424 if test "${enable_bdb+set}" = set; then
3425 enableval=$enable_bdb;
3427 for ol_val in no yes mod ; do
3428 if test "$enableval" = "$ol_val" ; then
3432 if test "$ol_arg" = "invalid" ; then
3433 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3435 { (exit 1); exit 1; }; }
3437 ol_enable_bdb="$ol_arg"
3440 ol_enable_bdb=${ol_enable_backends:-yes}
3444 # OpenLDAP --enable-dnssrv
3446 # Check whether --enable-dnssrv was given.
3447 if test "${enable_dnssrv+set}" = set; then
3448 enableval=$enable_dnssrv;
3450 for ol_val in no yes mod ; do
3451 if test "$enableval" = "$ol_val" ; then
3455 if test "$ol_arg" = "invalid" ; then
3456 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3457 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3458 { (exit 1); exit 1; }; }
3460 ol_enable_dnssrv="$ol_arg"
3463 ol_enable_dnssrv=${ol_enable_backends:-no}
3466 # end --enable-dnssrv
3467 # OpenLDAP --enable-hdb
3469 # Check whether --enable-hdb was given.
3470 if test "${enable_hdb+set}" = set; then
3471 enableval=$enable_hdb;
3473 for ol_val in no yes mod ; do
3474 if test "$enableval" = "$ol_val" ; then
3478 if test "$ol_arg" = "invalid" ; then
3479 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3480 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3481 { (exit 1); exit 1; }; }
3483 ol_enable_hdb="$ol_arg"
3486 ol_enable_hdb=${ol_enable_backends:-yes}
3490 # OpenLDAP --enable-ldap
3492 # Check whether --enable-ldap was given.
3493 if test "${enable_ldap+set}" = set; then
3494 enableval=$enable_ldap;
3496 for ol_val in no yes mod ; do
3497 if test "$enableval" = "$ol_val" ; then
3501 if test "$ol_arg" = "invalid" ; then
3502 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3503 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3504 { (exit 1); exit 1; }; }
3506 ol_enable_ldap="$ol_arg"
3509 ol_enable_ldap=${ol_enable_backends:-no}
3513 # OpenLDAP --enable-meta
3515 # Check whether --enable-meta was given.
3516 if test "${enable_meta+set}" = set; then
3517 enableval=$enable_meta;
3519 for ol_val in no yes mod ; do
3520 if test "$enableval" = "$ol_val" ; then
3524 if test "$ol_arg" = "invalid" ; then
3525 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3526 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3527 { (exit 1); exit 1; }; }
3529 ol_enable_meta="$ol_arg"
3532 ol_enable_meta=${ol_enable_backends:-no}
3536 # OpenLDAP --enable-monitor
3538 # Check whether --enable-monitor was given.
3539 if test "${enable_monitor+set}" = set; then
3540 enableval=$enable_monitor;
3542 for ol_val in no yes mod ; do
3543 if test "$enableval" = "$ol_val" ; then
3547 if test "$ol_arg" = "invalid" ; then
3548 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3549 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3550 { (exit 1); exit 1; }; }
3552 ol_enable_monitor="$ol_arg"
3555 ol_enable_monitor=${ol_enable_backends:-yes}
3558 # end --enable-monitor
3559 # OpenLDAP --enable-ndb
3561 # Check whether --enable-ndb was given.
3562 if test "${enable_ndb+set}" = set; then
3563 enableval=$enable_ndb;
3565 for ol_val in no yes mod ; do
3566 if test "$enableval" = "$ol_val" ; then
3570 if test "$ol_arg" = "invalid" ; then
3571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3573 { (exit 1); exit 1; }; }
3575 ol_enable_ndb="$ol_arg"
3578 ol_enable_ndb=${ol_enable_backends:-no}
3582 # OpenLDAP --enable-null
3584 # Check whether --enable-null was given.
3585 if test "${enable_null+set}" = set; then
3586 enableval=$enable_null;
3588 for ol_val in no yes mod ; do
3589 if test "$enableval" = "$ol_val" ; then
3593 if test "$ol_arg" = "invalid" ; then
3594 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3595 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3596 { (exit 1); exit 1; }; }
3598 ol_enable_null="$ol_arg"
3601 ol_enable_null=${ol_enable_backends:-no}
3605 # OpenLDAP --enable-passwd
3607 # Check whether --enable-passwd was given.
3608 if test "${enable_passwd+set}" = set; then
3609 enableval=$enable_passwd;
3611 for ol_val in no yes mod ; do
3612 if test "$enableval" = "$ol_val" ; then
3616 if test "$ol_arg" = "invalid" ; then
3617 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3619 { (exit 1); exit 1; }; }
3621 ol_enable_passwd="$ol_arg"
3624 ol_enable_passwd=${ol_enable_backends:-no}
3627 # end --enable-passwd
3628 # OpenLDAP --enable-perl
3630 # Check whether --enable-perl was given.
3631 if test "${enable_perl+set}" = set; then
3632 enableval=$enable_perl;
3634 for ol_val in no yes mod ; do
3635 if test "$enableval" = "$ol_val" ; then
3639 if test "$ol_arg" = "invalid" ; then
3640 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3641 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3642 { (exit 1); exit 1; }; }
3644 ol_enable_perl="$ol_arg"
3647 ol_enable_perl=${ol_enable_backends:-no}
3651 # OpenLDAP --enable-relay
3653 # Check whether --enable-relay was given.
3654 if test "${enable_relay+set}" = set; then
3655 enableval=$enable_relay;
3657 for ol_val in no yes mod ; do
3658 if test "$enableval" = "$ol_val" ; then
3662 if test "$ol_arg" = "invalid" ; then
3663 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3664 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3665 { (exit 1); exit 1; }; }
3667 ol_enable_relay="$ol_arg"
3670 ol_enable_relay=${ol_enable_backends:-yes}
3673 # end --enable-relay
3674 # OpenLDAP --enable-shell
3676 # Check whether --enable-shell was given.
3677 if test "${enable_shell+set}" = set; then
3678 enableval=$enable_shell;
3680 for ol_val in no yes mod ; do
3681 if test "$enableval" = "$ol_val" ; then
3685 if test "$ol_arg" = "invalid" ; then
3686 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3687 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3688 { (exit 1); exit 1; }; }
3690 ol_enable_shell="$ol_arg"
3693 ol_enable_shell=${ol_enable_backends:-no}
3696 # end --enable-shell
3697 # OpenLDAP --enable-sock
3699 # Check whether --enable-sock was given.
3700 if test "${enable_sock+set}" = set; then
3701 enableval=$enable_sock;
3703 for ol_val in no yes mod ; do
3704 if test "$enableval" = "$ol_val" ; then
3708 if test "$ol_arg" = "invalid" ; then
3709 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3710 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3711 { (exit 1); exit 1; }; }
3713 ol_enable_sock="$ol_arg"
3716 ol_enable_sock=${ol_enable_backends:-no}
3720 # OpenLDAP --enable-sql
3722 # Check whether --enable-sql was given.
3723 if test "${enable_sql+set}" = set; then
3724 enableval=$enable_sql;
3726 for ol_val in no yes mod ; do
3727 if test "$enableval" = "$ol_val" ; then
3731 if test "$ol_arg" = "invalid" ; then
3732 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3733 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3734 { (exit 1); exit 1; }; }
3736 ol_enable_sql="$ol_arg"
3739 ol_enable_sql=${ol_enable_backends:-no}
3744 Overlays="accesslog \
3765 # Check whether --enable-xxslapoverlays was given.
3766 if test "${enable_xxslapoverlays+set}" = set; then
3767 enableval=$enable_xxslapoverlays;
3771 # OpenLDAP --enable-overlays
3773 # Check whether --enable-overlays was given.
3774 if test "${enable_overlays+set}" = set; then
3775 enableval=$enable_overlays;
3777 for ol_val in no yes mod ; do
3778 if test "$enableval" = "$ol_val" ; then
3782 if test "$ol_arg" = "invalid" ; then
3783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3784 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3785 { (exit 1); exit 1; }; }
3787 ol_enable_overlays="$ol_arg"
3791 # end --enable-overlays
3792 # OpenLDAP --enable-accesslog
3794 # Check whether --enable-accesslog was given.
3795 if test "${enable_accesslog+set}" = set; then
3796 enableval=$enable_accesslog;
3798 for ol_val in no yes mod ; do
3799 if test "$enableval" = "$ol_val" ; then
3803 if test "$ol_arg" = "invalid" ; then
3804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3806 { (exit 1); exit 1; }; }
3808 ol_enable_accesslog="$ol_arg"
3811 ol_enable_accesslog=${ol_enable_overlays:-no}
3814 # end --enable-accesslog
3816 # OpenLDAP --enable-auditlog
3818 # Check whether --enable-auditlog was given.
3819 if test "${enable_auditlog+set}" = set; then
3820 enableval=$enable_auditlog;
3822 for ol_val in no yes mod ; do
3823 if test "$enableval" = "$ol_val" ; then
3827 if test "$ol_arg" = "invalid" ; then
3828 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3829 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3830 { (exit 1); exit 1; }; }
3832 ol_enable_auditlog="$ol_arg"
3835 ol_enable_auditlog=${ol_enable_overlays:-no}
3838 # end --enable-auditlog
3840 # OpenLDAP --enable-collect
3842 # Check whether --enable-collect was given.
3843 if test "${enable_collect+set}" = set; then
3844 enableval=$enable_collect;
3846 for ol_val in no yes mod ; do
3847 if test "$enableval" = "$ol_val" ; then
3851 if test "$ol_arg" = "invalid" ; then
3852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3853 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3854 { (exit 1); exit 1; }; }
3856 ol_enable_collect="$ol_arg"
3859 ol_enable_collect=${ol_enable_overlays:-no}
3862 # end --enable-collect
3864 # OpenLDAP --enable-constraint
3866 # Check whether --enable-constraint was given.
3867 if test "${enable_constraint+set}" = set; then
3868 enableval=$enable_constraint;
3870 for ol_val in no yes mod ; do
3871 if test "$enableval" = "$ol_val" ; then
3875 if test "$ol_arg" = "invalid" ; then
3876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3877 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3878 { (exit 1); exit 1; }; }
3880 ol_enable_constraint="$ol_arg"
3883 ol_enable_constraint=${ol_enable_overlays:-no}
3886 # end --enable-constraint
3888 # OpenLDAP --enable-dds
3890 # Check whether --enable-dds was given.
3891 if test "${enable_dds+set}" = set; then
3892 enableval=$enable_dds;
3894 for ol_val in no yes mod ; do
3895 if test "$enableval" = "$ol_val" ; then
3899 if test "$ol_arg" = "invalid" ; then
3900 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3901 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3902 { (exit 1); exit 1; }; }
3904 ol_enable_dds="$ol_arg"
3907 ol_enable_dds=${ol_enable_overlays:-no}
3912 # OpenLDAP --enable-deref
3914 # Check whether --enable-deref was given.
3915 if test "${enable_deref+set}" = set; then
3916 enableval=$enable_deref;
3918 for ol_val in no yes mod ; do
3919 if test "$enableval" = "$ol_val" ; then
3923 if test "$ol_arg" = "invalid" ; then
3924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3925 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3926 { (exit 1); exit 1; }; }
3928 ol_enable_deref="$ol_arg"
3931 ol_enable_deref=${ol_enable_overlays:-no}
3934 # end --enable-deref
3936 # OpenLDAP --enable-dyngroup
3938 # Check whether --enable-dyngroup was given.
3939 if test "${enable_dyngroup+set}" = set; then
3940 enableval=$enable_dyngroup;
3942 for ol_val in no yes mod ; do
3943 if test "$enableval" = "$ol_val" ; then
3947 if test "$ol_arg" = "invalid" ; then
3948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3949 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3950 { (exit 1); exit 1; }; }
3952 ol_enable_dyngroup="$ol_arg"
3955 ol_enable_dyngroup=${ol_enable_overlays:-no}
3958 # end --enable-dyngroup
3960 # OpenLDAP --enable-dynlist
3962 # Check whether --enable-dynlist was given.
3963 if test "${enable_dynlist+set}" = set; then
3964 enableval=$enable_dynlist;
3966 for ol_val in no yes mod ; do
3967 if test "$enableval" = "$ol_val" ; then
3971 if test "$ol_arg" = "invalid" ; then
3972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3973 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3974 { (exit 1); exit 1; }; }
3976 ol_enable_dynlist="$ol_arg"
3979 ol_enable_dynlist=${ol_enable_overlays:-no}
3982 # end --enable-dynlist
3984 # OpenLDAP --enable-memberof
3986 # Check whether --enable-memberof was given.
3987 if test "${enable_memberof+set}" = set; then
3988 enableval=$enable_memberof;
3990 for ol_val in no yes mod ; do
3991 if test "$enableval" = "$ol_val" ; then
3995 if test "$ol_arg" = "invalid" ; then
3996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3997 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3998 { (exit 1); exit 1; }; }
4000 ol_enable_memberof="$ol_arg"
4003 ol_enable_memberof=${ol_enable_overlays:-no}
4006 # end --enable-memberof
4008 # OpenLDAP --enable-ppolicy
4010 # Check whether --enable-ppolicy was given.
4011 if test "${enable_ppolicy+set}" = set; then
4012 enableval=$enable_ppolicy;
4014 for ol_val in no yes mod ; do
4015 if test "$enableval" = "$ol_val" ; then
4019 if test "$ol_arg" = "invalid" ; then
4020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4021 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4022 { (exit 1); exit 1; }; }
4024 ol_enable_ppolicy="$ol_arg"
4027 ol_enable_ppolicy=${ol_enable_overlays:-no}
4030 # end --enable-ppolicy
4032 # OpenLDAP --enable-proxycache
4034 # Check whether --enable-proxycache was given.
4035 if test "${enable_proxycache+set}" = set; then
4036 enableval=$enable_proxycache;
4038 for ol_val in no yes mod ; do
4039 if test "$enableval" = "$ol_val" ; then
4043 if test "$ol_arg" = "invalid" ; then
4044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4045 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4046 { (exit 1); exit 1; }; }
4048 ol_enable_proxycache="$ol_arg"
4051 ol_enable_proxycache=${ol_enable_overlays:-no}
4054 # end --enable-proxycache
4056 # OpenLDAP --enable-refint
4058 # Check whether --enable-refint was given.
4059 if test "${enable_refint+set}" = set; then
4060 enableval=$enable_refint;
4062 for ol_val in no yes mod ; do
4063 if test "$enableval" = "$ol_val" ; then
4067 if test "$ol_arg" = "invalid" ; then
4068 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4069 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4070 { (exit 1); exit 1; }; }
4072 ol_enable_refint="$ol_arg"
4075 ol_enable_refint=${ol_enable_overlays:-no}
4078 # end --enable-refint
4080 # OpenLDAP --enable-retcode
4082 # Check whether --enable-retcode was given.
4083 if test "${enable_retcode+set}" = set; then
4084 enableval=$enable_retcode;
4086 for ol_val in no yes mod ; do
4087 if test "$enableval" = "$ol_val" ; then
4091 if test "$ol_arg" = "invalid" ; then
4092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4093 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4094 { (exit 1); exit 1; }; }
4096 ol_enable_retcode="$ol_arg"
4099 ol_enable_retcode=${ol_enable_overlays:-no}
4102 # end --enable-retcode
4104 # OpenLDAP --enable-rwm
4106 # Check whether --enable-rwm was given.
4107 if test "${enable_rwm+set}" = set; then
4108 enableval=$enable_rwm;
4110 for ol_val in no yes mod ; do
4111 if test "$enableval" = "$ol_val" ; then
4115 if test "$ol_arg" = "invalid" ; then
4116 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4117 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4118 { (exit 1); exit 1; }; }
4120 ol_enable_rwm="$ol_arg"
4123 ol_enable_rwm=${ol_enable_overlays:-no}
4128 # OpenLDAP --enable-seqmod
4130 # Check whether --enable-seqmod was given.
4131 if test "${enable_seqmod+set}" = set; then
4132 enableval=$enable_seqmod;
4134 for ol_val in no yes mod ; do
4135 if test "$enableval" = "$ol_val" ; then
4139 if test "$ol_arg" = "invalid" ; then
4140 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4141 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4142 { (exit 1); exit 1; }; }
4144 ol_enable_seqmod="$ol_arg"
4147 ol_enable_seqmod=${ol_enable_overlays:-no}
4150 # end --enable-seqmod
4152 # OpenLDAP --enable-sssvlv
4154 # Check whether --enable-sssvlv was given.
4155 if test "${enable_sssvlv+set}" = set; then
4156 enableval=$enable_sssvlv;
4158 for ol_val in no yes mod ; do
4159 if test "$enableval" = "$ol_val" ; then
4163 if test "$ol_arg" = "invalid" ; then
4164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4166 { (exit 1); exit 1; }; }
4168 ol_enable_sssvlv="$ol_arg"
4171 ol_enable_sssvlv=${ol_enable_overlays:-no}
4174 # end --enable-sssvlv
4176 # OpenLDAP --enable-syncprov
4178 # Check whether --enable-syncprov was given.
4179 if test "${enable_syncprov+set}" = set; then
4180 enableval=$enable_syncprov;
4182 for ol_val in no yes mod ; do
4183 if test "$enableval" = "$ol_val" ; then
4187 if test "$ol_arg" = "invalid" ; then
4188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4189 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4190 { (exit 1); exit 1; }; }
4192 ol_enable_syncprov="$ol_arg"
4195 ol_enable_syncprov=${ol_enable_overlays:-yes}
4198 # end --enable-syncprov
4200 # OpenLDAP --enable-translucent
4202 # Check whether --enable-translucent was given.
4203 if test "${enable_translucent+set}" = set; then
4204 enableval=$enable_translucent;
4206 for ol_val in no yes mod ; do
4207 if test "$enableval" = "$ol_val" ; then
4211 if test "$ol_arg" = "invalid" ; then
4212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4213 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4214 { (exit 1); exit 1; }; }
4216 ol_enable_translucent="$ol_arg"
4219 ol_enable_translucent=${ol_enable_overlays:-no}
4222 # end --enable-translucent
4224 # OpenLDAP --enable-unique
4226 # Check whether --enable-unique was given.
4227 if test "${enable_unique+set}" = set; then
4228 enableval=$enable_unique;
4230 for ol_val in no yes mod ; do
4231 if test "$enableval" = "$ol_val" ; then
4235 if test "$ol_arg" = "invalid" ; then
4236 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4237 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4238 { (exit 1); exit 1; }; }
4240 ol_enable_unique="$ol_arg"
4243 ol_enable_unique=${ol_enable_overlays:-no}
4246 # end --enable-unique
4248 # OpenLDAP --enable-valsort
4250 # Check whether --enable-valsort was given.
4251 if test "${enable_valsort+set}" = set; then
4252 enableval=$enable_valsort;
4254 for ol_val in no yes mod ; do
4255 if test "$enableval" = "$ol_val" ; then
4259 if test "$ol_arg" = "invalid" ; then
4260 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4261 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4262 { (exit 1); exit 1; }; }
4264 ol_enable_valsort="$ol_arg"
4267 ol_enable_valsort=${ol_enable_overlays:-no}
4270 # end --enable-valsort
4273 # Check whether --enable-xxliboptions was given.
4274 if test "${enable_xxliboptions+set}" = set; then
4275 enableval=$enable_xxliboptions;
4278 # Check whether --enable-static was given.
4279 if test "${enable_static+set}" = set; then
4280 enableval=$enable_static; p=${PACKAGE-default}
4282 yes) enable_static=yes ;;
4283 no) enable_static=no ;;
4286 # Look at the argument we got. We use all the common list separators.
4287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288 for pkg in $enableval; do
4290 if test "X$pkg" = "X$p"; then
4302 # Check whether --enable-shared was given.
4303 if test "${enable_shared+set}" = set; then
4304 enableval=$enable_shared; p=${PACKAGE-default}
4306 yes) enable_shared=yes ;;
4307 no) enable_shared=no ;;
4310 # Look at the argument we got. We use all the common list separators.
4311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4312 for pkg in $enableval; do
4314 if test "X$pkg" = "X$p"; then
4329 if test $ol_enable_slapd = no ; then
4330 if test $ol_enable_slapi = yes ; then
4331 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4334 case "$ol_enable_backends" in yes | mod)
4335 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4338 for i in $Backends; do
4339 eval "ol_tmp=\$ol_enable_$i"
4340 if test $ol_tmp != no ; then
4341 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4342 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4343 eval "ol_enable_$i=no"
4346 if test $ol_enable_modules = yes ; then
4347 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4348 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4350 if test $ol_enable_wrappers = yes ; then
4351 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4354 if test $ol_enable_rlookups = yes ; then
4355 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4358 if test $ol_enable_dynacl = yes ; then
4359 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4360 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4362 if test $ol_enable_aci != no ; then
4363 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4366 if test $ol_enable_rewrite = yes ; then
4367 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4370 case "$ol_enable_overlays" in yes | mod)
4371 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4374 for i in $Overlays; do
4375 eval "ol_tmp=\$ol_enable_$i"
4376 if test $ol_tmp != no ; then
4377 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4379 eval "ol_enable_$i=no"
4383 # force settings to no
4388 ol_enable_modules=no
4389 ol_enable_rlookups=no
4392 ol_enable_wrappers=no
4394 ol_enable_rewrite=no
4396 elif test $ol_enable_modules != yes &&
4397 test $ol_enable_bdb = no &&
4398 test $ol_enable_dnssrv = no &&
4399 test $ol_enable_hdb = no &&
4400 test $ol_enable_ldap = no &&
4401 test $ol_enable_meta = no &&
4402 test $ol_enable_monitor = no &&
4403 test $ol_enable_ndb = no &&
4404 test $ol_enable_null = no &&
4405 test $ol_enable_passwd = no &&
4406 test $ol_enable_perl = no &&
4407 test $ol_enable_relay = no &&
4408 test $ol_enable_shell = no &&
4409 test $ol_enable_sock = no &&
4410 test $ol_enable_sql = no ; then
4412 if test $ol_enable_slapd = yes ; then
4413 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4414 echo "$as_me: error: slapd requires a backend" >&2;}
4415 { (exit 1); exit 1; }; }
4417 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4418 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4423 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4424 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4425 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4426 { (exit 1); exit 1; }; }
4429 if test $ol_enable_lmpasswd = yes ; then
4430 if test $ol_with_tls = no ; then
4431 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4432 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4433 { (exit 1); exit 1; }; }
4437 if test $ol_enable_spasswd = yes ; then
4438 if test $ol_with_cyrus_sasl = no ; then
4439 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4440 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4441 { (exit 1); exit 1; }; }
4443 ol_with_cyrus_sasl=yes
4446 { echo "$as_me:$LINENO: result: done" >&5
4447 echo "${ECHO_T}done" >&6; }
4498 BUILD_TRANSLUCENT=no
4502 SLAPD_STATIC_OVERLAYS=
4503 SLAPD_DYNAMIC_OVERLAYS=
4505 SLAPD_MODULES_LDFLAGS=
4506 SLAPD_MODULES_CPPFLAGS=
4508 SLAPD_STATIC_BACKENDS=back-ldif
4509 SLAPD_DYNAMIC_BACKENDS=
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_MKVERSION 1
4544 *-*-aix*) if test -z "$CC" ; then
4545 case "$ol_with_threads" in
4546 auto | yes | posix) ol_aix_threads=yes ;;
4552 if test $ol_aix_threads = yes ; then
4553 if test -z "${CC}" ; then
4554 for ac_prog in cc_r xlc_r cc
4556 # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CC="$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$CC"; then
4585 { echo "$as_me:$LINENO: result: $CC" >&5
4586 echo "${ECHO_T}$CC" >&6; }
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 test -n "$CC" && break
4597 if test "$CC" = cc ; then
4598 if test $ol_with_threads != auto ; then
4599 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4600 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4601 { (exit 1); exit 1; }; }
4603 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4604 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4610 case ${CC} in cc_r | xlc_r)
4611 ol_with_threads=posix
4612 ol_cv_pthread_create=yes
4617 if test -z "${CC}"; then
4618 for ac_prog in cc gcc
4620 # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="$ac_prog"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4657 test -n "$CC" && break
4659 test -n "$CC" || CC="missing"
4662 if test "${CC}" = "missing" ; then
4663 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4664 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4665 { (exit 1); exit 1; }; }
4669 if test -z "${AR}"; then
4670 for ac_prog in ar gar
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_AR+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$AR"; then
4680 ac_cv_prog_AR="$AR" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_AR="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test -n "$AR"; then
4701 { echo "$as_me:$LINENO: result: $AR" >&5
4702 echo "${ECHO_T}$AR" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 test -n "$AR" && break
4711 test -n "$AR" || AR="missing"
4714 if test "${AR}" = "missing" ; then
4715 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4716 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4717 { (exit 1); exit 1; }; }
4725 # Check whether --enable-fast-install was given.
4726 if test "${enable_fast_install+set}" = set; then
4727 enableval=$enable_fast_install; p=${PACKAGE-default}
4729 yes) enable_fast_install=yes ;;
4730 no) enable_fast_install=no ;;
4732 enable_fast_install=no
4733 # Look at the argument we got. We use all the common list separators.
4734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4735 for pkg in $enableval; do
4737 if test "X$pkg" = "X$p"; then
4738 enable_fast_install=yes
4745 enable_fast_install=yes
4749 DEPDIR="${am__leading_dot}deps"
4751 ac_config_commands="$ac_config_commands depfiles"
4754 am_make=${MAKE-make}
4755 cat > confinc << 'END'
4760 # If we don't find an include directive, just comment out the code.
4761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4766 # First try GNU make style include.
4767 echo "include confinc" > confmf
4768 # We grep out `Entering directory' and `Leaving directory'
4769 # messages which can occur if `w' ends up in MAKEFLAGS.
4770 # In particular we don't look at `^make:' because GNU make might
4771 # be invoked under some other name (usually "gmake"), in which
4772 # case it prints its new name instead of `make'.
4773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4778 # Now try BSD make style include.
4779 if test "$am__include" = "#"; then
4780 echo '.include "confinc"' > confmf
4781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4782 am__include=.include
4789 { echo "$as_me:$LINENO: result: $_am_result" >&5
4790 echo "${ECHO_T}$_am_result" >&6; }
4791 rm -f confinc confmf
4793 # Check whether --enable-dependency-tracking was given.
4794 if test "${enable_dependency_tracking+set}" = set; then
4795 enableval=$enable_dependency_tracking;
4798 if test "x$enable_dependency_tracking" != xno; then
4799 am_depcomp="$ac_aux_dir/depcomp"
4804 if test "x$enable_dependency_tracking" != xno; then
4815 ac_cpp='$CPP $CPPFLAGS'
4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$CC"; then
4849 { echo "$as_me:$LINENO: result: $CC" >&5
4850 echo "${ECHO_T}$CC" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4858 if test -z "$ac_cv_prog_CC"; then
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC="gcc"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4896 if test "x$ac_ct_CC" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4902 whose name does not start with the host triplet. If you think this
4903 configuration is useful to you, please write to autoconf@gnu.org." >&5
4904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4905 whose name does not start with the host triplet. If you think this
4906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4907 ac_tool_warned=yes ;;
4915 if test -z "$CC"; then
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_CC+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 if test -n "$CC"; then
4925 ac_cv_prog_CC="$CC" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_CC="${ac_tool_prefix}cc"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 if test -n "$CC"; then
4946 { echo "$as_me:$LINENO: result: $CC" >&5
4947 echo "${ECHO_T}$CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 if test -z "$CC"; then
4957 # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test -n "$CC"; then
4965 ac_cv_prog_CC="$CC" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4976 ac_prog_rejected=yes
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 if test $ac_prog_rejected = yes; then
4988 # We found a bogon in the path, so make sure we never use it.
4989 set dummy $ac_cv_prog_CC
4991 if test $# != 0; then
4992 # We chose a different compiler from the bogus one.
4993 # However, it has the same basename, so the bogon will be chosen
4994 # first if we set CC to just the basename; use the full file name.
4996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5002 if test -n "$CC"; then
5003 { echo "$as_me:$LINENO: result: $CC" >&5
5004 echo "${ECHO_T}$CC" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5012 if test -z "$CC"; then
5013 if test -n "$ac_tool_prefix"; then
5014 for ac_prog in cl.exe
5016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 if test -n "$CC"; then
5045 { echo "$as_me:$LINENO: result: $CC" >&5
5046 echo "${ECHO_T}$CC" >&6; }
5048 { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5053 test -n "$CC" && break
5056 if test -z "$CC"; then
5058 for ac_prog in cl.exe
5060 # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test -n "$ac_ct_CC"; then
5068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_CC="$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5090 echo "${ECHO_T}$ac_ct_CC" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 test -n "$ac_ct_CC" && break
5100 if test "x$ac_ct_CC" = x; then
5103 case $cross_compiling:$ac_tool_warned in
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet. If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5175 ac_clean_files_save=$ac_clean_files
5176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5177 # Try to create an executable without -o first, disregard a.out.
5178 # It will help us diagnose broken compilers, and finding out an intuition
5180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5184 # List of possible output files, starting from the most likely.
5185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5186 # only as a last resort. b.out is created by i960 compilers.
5187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5189 # The IRIX 6 linker writes into existing files which may not be
5190 # executable, retaining their permissions. Remove them first so a
5191 # subsequent execution test works.
5193 for ac_file in $ac_files
5196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5202 if { (ac_try="$ac_link_default"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link_default") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; then
5212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5215 # so that the user can short-circuit this test for compilers unknown to
5217 for ac_file in $ac_files ''
5219 test -f "$ac_file" || continue
5221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5224 # We found the default executable, but exeext='' is most
5228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5232 # We set ac_cv_exeext here because the later test for it is not
5233 # safe: cross compilers may not add the suffix if given an `-o'
5234 # argument, so we may need to know it at that point already.
5235 # Even if this section looks crufty: it has the advantage of
5242 test "$ac_cv_exeext" = no && ac_cv_exeext=
5248 { echo "$as_me:$LINENO: result: $ac_file" >&5
5249 echo "${ECHO_T}$ac_file" >&6; }
5250 if test -z "$ac_file"; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C compiler cannot create executables
5257 See \`config.log' for more details." >&2;}
5258 { (exit 77); exit 77; }; }
5261 ac_exeext=$ac_cv_exeext
5263 # Check that the compiler produces executables we can run. If not, either
5264 # the compiler is broken, or we cross compile.
5265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5268 # If not cross compiling, check that we can run a simple program.
5269 if test "$cross_compiling" != yes; then
5270 if { ac_try='./$ac_file'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 if test "$cross_compiling" = maybe; then
5285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5286 If you meant to cross compile, use \`--host'.
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: cannot run C compiled programs.
5289 If you meant to cross compile, use \`--host'.
5290 See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5295 { echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6; }
5298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5299 ac_clean_files=$ac_clean_files_save
5300 # Check that the compiler produces executables we can run. If not, either
5301 # the compiler is broken, or we cross compile.
5302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5305 echo "${ECHO_T}$cross_compiling" >&6; }
5307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5309 if { (ac_try="$ac_link"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_link") 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; then
5319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5321 # work properly (i.e., refer to `conftest.exe'), while it won't with
5323 for ac_file in conftest.exe conftest conftest.*; do
5324 test -f "$ac_file" || continue
5326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&5
5335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5336 See \`config.log' for more details." >&2;}
5337 { (exit 1); exit 1; }; }
5340 rm -f conftest$ac_cv_exeext
5341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5344 rm -f conftest.$ac_ext
5345 EXEEXT=$ac_cv_exeext
5347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5349 if test "${ac_cv_objext+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5367 rm -f conftest.o conftest.obj
5368 if { (ac_try="$ac_compile"
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 for ac_file in conftest.o conftest.obj conftest.*; do
5379 test -f "$ac_file" || continue;
5381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details." >&2;}
5394 { (exit 1); exit 1; }; }
5397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5400 echo "${ECHO_T}$ac_cv_objext" >&6; }
5401 OBJEXT=$ac_cv_objext
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5457 GCC=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CFLAGS=${CFLAGS+set}
5459 ac_save_CFLAGS=$CFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cc_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_save_c_werror_flag=$ac_c_werror_flag
5466 ac_c_werror_flag=yes
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_c_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 ac_c_werror_flag=$ac_save_c_werror_flag
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_c_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_c_werror_flag=$ac_save_c_werror_flag
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5597 if test "$ac_test_CFLAGS" = set; then
5598 CFLAGS=$ac_save_CFLAGS
5599 elif test $ac_cv_prog_cc_g = yes; then
5600 if test "$GCC" = yes; then
5606 if test "$GCC" = yes; then
5612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_cc_c89+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_cv_prog_cc_c89=no
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5643 s = g (p, va_arg (v,int));
5648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5649 function prototypes and stuff, but not '\xHH' hex character constants.
5650 These don't provoke an error unfortunately, instead are silently treated
5651 as 'x'. The following induces an error, until -std is added to get
5652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5653 array size at least. It's necessary to write '\x00'==0 to get something
5654 that's true only with -std. */
5655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5658 inside strings and character constants. */
5660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5662 int test (int i, double x);
5663 struct s1 {int (*f) (int a);};
5664 struct s2 {int (*f) (double a);};
5665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5679 CC="$ac_save_CC $ac_arg"
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_cv_prog_cc_c89=$ac_arg
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f core conftest.err conftest.$ac_objext
5706 test "x$ac_cv_prog_cc_c89" != "xno" && break
5708 rm -f conftest.$ac_ext
5713 case "x$ac_cv_prog_cc_c89" in
5715 { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5718 { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5721 CC="$CC $ac_cv_prog_cc_c89"
5722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 depcc="$CC" am_compiler_list=
5735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5737 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741 # We make a subdir and do the tests there. Otherwise we can end up
5742 # making bogus files that we don't know about and never remove. For
5743 # instance it was reported that on HP-UX the gcc test will end up
5744 # making a dummy file named `D' -- because `-MD' means `put the output
5747 # Copy depcomp to subdir because otherwise we won't find it if we're
5748 # using a relative directory.
5749 cp "$am_depcomp" conftest.dir
5751 # We will build objects and dependencies in a subdirectory because
5752 # it helps to detect inapplicable dependency modes. For instance
5753 # both Tru64's cc and ICC support -MD to output dependencies as a
5754 # side effect of compilation, but ICC will put the dependencies in
5755 # the current directory while Tru64 will put them in the object
5759 am_cv_CC_dependencies_compiler_type=none
5760 if test "$am_compiler_list" = ""; then
5761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5763 for depmode in $am_compiler_list; do
5764 # Setup a source with many dependencies, because some compilers
5765 # like to wrap large dependency lists on column 80 (with \), and
5766 # we should not choose a depcomp mode which is confused by this.
5768 # We need to recreate these files for each test, as the compiler may
5769 # overwrite some of them when testing with obscure command lines.
5770 # This happens at least with the AIX C compiler.
5772 for i in 1 2 3 4 5 6; do
5773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775 # Solaris 8's {/usr,}/bin/sh.
5776 touch sub/conftst$i.h
5778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5782 # after this tag, mechanisms are not by side-effect, so they'll
5783 # only be used when explicitly requested
5784 if test "x$enable_dependency_tracking" = xyes; then
5792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5793 # mode. It turns out that the SunPro C++ compiler does not properly
5794 # handle `-M -o', and we need to detect this.
5795 if depmode=$depmode \
5796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5799 >/dev/null 2>conftest.err &&
5800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5803 # icc doesn't choke on unknown options, it will just issue warnings
5804 # or remarks (even with -Werror). So we grep stderr for any message
5805 # that says an option was ignored or not supported.
5806 # When given -MP, icc 7.0 and 7.1 complain thusly:
5807 # icc: Command line warning: ignoring option '-M'; no argument required
5808 # The diagnosis changed in icc 8.0:
5809 # icc: Command line remark: option '-MP' not supported
5810 if (grep 'ignoring option' conftest.err ||
5811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5812 am_cv_CC_dependencies_compiler_type=$depmode
5821 am_cv_CC_dependencies_compiler_type=none
5825 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5832 test "x$enable_dependency_tracking" != xno \
5833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5835 am__fastdepCC_FALSE='#'
5837 am__fastdepCC_TRUE='#'
5838 am__fastdepCC_FALSE=
5842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5844 if test "${lt_cv_path_SED+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 # Loop through the user's path and test for sed and gsed.
5848 # Then use that list of sed's as ones to test for truncation.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for lt_ac_prog in sed gsed; do
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5857 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5865 # along with /bin/sed that truncates output.
5866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5867 test ! -f $lt_ac_sed && continue
5868 cat /dev/null > conftest.in
5870 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5871 # Check for GNU sed and select it if it is found.
5872 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5873 lt_cv_path_SED=$lt_ac_sed
5877 cat conftest.in conftest.in >conftest.tmp
5878 mv conftest.tmp conftest.in
5879 cp conftest.in conftest.nl
5881 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5882 cmp -s conftest.out conftest.nl || break
5883 # 10000 chars as input seems more than enough
5884 test $lt_ac_count -gt 10 && break
5885 lt_ac_count=`expr $lt_ac_count + 1`
5886 if test $lt_ac_count -gt $lt_ac_max; then
5887 lt_ac_max=$lt_ac_count
5888 lt_cv_path_SED=$lt_ac_sed
5896 { echo "$as_me:$LINENO: result: $SED" >&5
5897 echo "${ECHO_T}$SED" >&6; }
5899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_GREP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 # Extract the first word of "grep ggrep" to use in msg output
5905 if test -z "$GREP"; then
5906 set dummy grep ggrep; ac_prog_name=$2
5907 if test "${ac_cv_path_GREP+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_path_GREP_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5916 test -z "$as_dir" && as_dir=.
5917 for ac_prog in grep ggrep; do
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5921 # Check for GNU ac_path_GREP and select it if it is found.
5922 # Check for GNU $ac_path_GREP
5923 case `"$ac_path_GREP" --version 2>&1` in
5925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5928 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5931 cat "conftest.in" "conftest.in" >"conftest.tmp"
5932 mv "conftest.tmp" "conftest.in"
5933 cp "conftest.in" "conftest.nl"
5934 echo 'GREP' >> "conftest.nl"
5935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937 ac_count=`expr $ac_count + 1`
5938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5939 # Best one so far, save it but keep looking for a better one
5940 ac_cv_path_GREP="$ac_path_GREP"
5941 ac_path_GREP_max=$ac_count
5943 # 10*(2^10) chars as input seems more than enough
5944 test $ac_count -gt 10 && break
5946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5950 $ac_path_GREP_found && break 3
5960 GREP="$ac_cv_path_GREP"
5961 if test -z "$GREP"; then
5962 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5964 { (exit 1); exit 1; }; }
5968 ac_cv_path_GREP=$GREP
5973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5975 GREP="$ac_cv_path_GREP"
5978 { echo "$as_me:$LINENO: checking for egrep" >&5
5979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_EGREP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984 then ac_cv_path_EGREP="$GREP -E"
5986 # Extract the first word of "egrep" to use in msg output
5987 if test -z "$EGREP"; then
5988 set dummy egrep; ac_prog_name=$2
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_path_EGREP_found=false
5993 # Loop through the user's path and test for each of PROGNAME-LIST
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5998 test -z "$as_dir" && as_dir=.
5999 for ac_prog in egrep; do
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6002 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6003 # Check for GNU ac_path_EGREP and select it if it is found.
6004 # Check for GNU $ac_path_EGREP
6005 case `"$ac_path_EGREP" --version 2>&1` in
6007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6010 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6013 cat "conftest.in" "conftest.in" >"conftest.tmp"
6014 mv "conftest.tmp" "conftest.in"
6015 cp "conftest.in" "conftest.nl"
6016 echo 'EGREP' >> "conftest.nl"
6017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019 ac_count=`expr $ac_count + 1`
6020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6021 # Best one so far, save it but keep looking for a better one
6022 ac_cv_path_EGREP="$ac_path_EGREP"
6023 ac_path_EGREP_max=$ac_count
6025 # 10*(2^10) chars as input seems more than enough
6026 test $ac_count -gt 10 && break
6028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6032 $ac_path_EGREP_found && break 3
6042 EGREP="$ac_cv_path_EGREP"
6043 if test -z "$EGREP"; then
6044 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6046 { (exit 1); exit 1; }; }
6050 ac_cv_path_EGREP=$EGREP
6056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6058 EGREP="$ac_cv_path_EGREP"
6062 # Check whether --with-gnu-ld was given.
6063 if test "${with_gnu_ld+set}" = set; then
6064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6070 if test "$GCC" = yes; then
6071 # Check if gcc -print-prog-name=ld gives a path.
6072 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6076 # gcc leaves a trailing carriage return which upsets mingw
6077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6082 # Accept absolute paths.
6084 re_direlt='/[^/][^/]*/\.\./'
6085 # Canonicalize the pathname of ld
6086 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6088 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6090 test -z "$LD" && LD="$ac_prog"
6093 # If it fails, then pretend we aren't using GCC.
6097 # If it is relative, then search for the first ld in PATH.
6101 elif test "$with_gnu_ld" = yes; then
6102 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6105 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6108 if test "${lt_cv_path_LD+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -z "$LD"; then
6112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113 for ac_dir in $PATH; do
6115 test -z "$ac_dir" && ac_dir=.
6116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6117 lt_cv_path_LD="$ac_dir/$ac_prog"
6118 # Check to see if the program is GNU ld. I'd rather use --version,
6119 # but apparently some variants of GNU ld only accept -v.
6120 # Break only if it was the GNU/non-GNU ld that we prefer.
6121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6122 *GNU* | *'with BFD'*)
6123 test "$with_gnu_ld" != no && break
6126 test "$with_gnu_ld" != yes && break
6133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6138 if test -n "$LD"; then
6139 { echo "$as_me:$LINENO: result: $LD" >&5
6140 echo "${ECHO_T}$LD" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6147 { (exit 1); exit 1; }; }
6148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6154 case `$LD -v 2>&1 </dev/null` in
6155 *GNU* | *'with BFD'*)
6156 lt_cv_prog_gnu_ld=yes
6159 lt_cv_prog_gnu_ld=no
6163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6165 with_gnu_ld=$lt_cv_prog_gnu_ld
6168 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6170 if test "${lt_cv_ld_reload_flag+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 lt_cv_ld_reload_flag='-r'
6175 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6180 *) reload_flag=" $reload_flag" ;;
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 if test "$GCC" = yes; then
6186 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$NM"; then
6199 # Let the user override the test.
6202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6203 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6205 test -z "$ac_dir" && ac_dir=.
6206 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6208 # Check to see if the nm accepts a BSD-compat flag.
6209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6210 # nm: unknown option "B" ignored
6211 # Tru64's nm complains that /dev/null is an invalid object file
6212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6213 */dev/null* | *'Invalid file or object type'*)
6214 lt_cv_path_NM="$tmp_nm -B"
6218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6220 lt_cv_path_NM="$tmp_nm -p"
6224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6225 continue # so that we can try to find one that supports BSD flags
6232 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6235 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6236 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6239 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6242 if test "$LN_S" = "ln -s"; then
6243 { echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6; }
6246 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6247 echo "${ECHO_T}no, using $LN_S" >&6; }
6250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6252 if test "${lt_cv_deplibs_check_method+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 lt_cv_file_magic_cmd='$MAGIC_CMD'
6256 lt_cv_file_magic_test_file=
6257 lt_cv_deplibs_check_method='unknown'
6258 # Need to set the preceding variable on all platforms that support
6259 # interlibrary dependencies.
6260 # 'none' -- dependencies not supported.
6261 # `unknown' -- same as none, but documents that we really don't know.
6262 # 'pass_all' -- all dependencies passed with no checks.
6263 # 'test_compile' -- check by making test program.
6264 # 'file_magic [[regex]]' -- check by looking for files in library path
6265 # which responds to the $file_magic_cmd with a given extended regex.
6266 # If you have `file' or equivalent on your system and you're not sure
6267 # whether `pass_all' will *always* work, you probably want this one.
6271 lt_cv_deplibs_check_method=pass_all
6275 lt_cv_deplibs_check_method=pass_all
6279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6280 lt_cv_file_magic_cmd='/usr/bin/file -L'
6281 lt_cv_file_magic_test_file=/shlib/libc.so
6285 # func_win32_libid is a shell function defined in ltmain.sh
6286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6287 lt_cv_file_magic_cmd='func_win32_libid'
6291 # Base MSYS/MinGW do not provide the 'file' command needed by
6292 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6294 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | kfreebsd*-gnu | dragonfly*)
6302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6313 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6321 hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6339 irix5* | irix6* | nonstopux*)
6341 *-32|*"-32 ") libmagic=32-bit;;
6342 *-n32|*"-n32 ") libmagic=N32;;
6343 *-64|*"-64 ") libmagic=64-bit;;
6344 *) libmagic=never-match;;
6346 lt_cv_deplibs_check_method=pass_all
6349 # This must be Linux ELF.
6351 lt_cv_deplibs_check_method=pass_all
6355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6369 lt_cv_deplibs_check_method=unknown
6373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6380 osf3* | osf4* | osf5*)
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method=pass_all
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393 case $host_vendor in
6395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6399 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_file_magic_cmd='/bin/file'
6403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6406 lt_cv_file_magic_cmd='/bin/file'
6407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408 lt_cv_file_magic_test_file=/lib/libc.so
6411 lt_cv_deplibs_check_method=pass_all
6416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6417 lt_cv_deplibs_check_method=pass_all
6422 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6424 file_magic_cmd=$lt_cv_file_magic_cmd
6425 deplibs_check_method=$lt_cv_deplibs_check_method
6426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6431 # If no C compiler was specified, use CC.
6434 # Allow CC to be a program name with arguments.
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445 # Some flags need to be propagated to the compiler or linker for good
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6468 # Find out which ABI we are using.
6469 echo '#line 6469 "configure"' > conftest.$ac_ext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6478 LD="${LD-ld} -melf32bsmip"
6481 LD="${LD-ld} -melf32bmipn32"
6484 LD="${LD-ld} -melf64bmip"
6488 case `/usr/bin/file conftest.$ac_objext` in
6504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6505 # Find out which ABI we are using.
6506 echo 'int i;' > conftest.$ac_ext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; then
6512 case `/usr/bin/file conftest.o` in
6516 LD="${LD-ld} -m elf_i386"
6518 ppc64-*linux*|powerpc64-*linux*)
6519 LD="${LD-ld} -m elf32ppclinux"
6522 LD="${LD-ld} -m elf_s390"
6525 LD="${LD-ld} -m elf32_sparc"
6532 LD="${LD-ld} -m elf_x86_64"
6534 ppc*-*linux*|powerpc*-*linux*)
6535 LD="${LD-ld} -m elf64ppc"
6538 LD="${LD-ld} -m elf64_s390"
6541 LD="${LD-ld} -m elf64_sparc"
6551 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552 SAVE_CFLAGS="$CFLAGS"
6553 CFLAGS="$CFLAGS -belf"
6554 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_link") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest$ac_exeext &&
6597 $as_test_x conftest$ac_exeext; then
6598 lt_cv_cc_needs_belf=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 lt_cv_cc_needs_belf=no
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607 conftest$ac_exeext conftest.$ac_ext
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6617 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619 CFLAGS="$SAVE_CFLAGS"
6622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 if test -n "$DLLTOOL"; then
6632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 DLLTOOL=$ac_cv_prog_DLLTOOL
6652 if test -n "$DLLTOOL"; then
6653 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6654 echo "${ECHO_T}$DLLTOOL" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6662 if test -z "$ac_cv_prog_DLLTOOL"; then
6663 ac_ct_DLLTOOL=$DLLTOOL
6664 # Extract the first word of "dlltool", so it can be a program name with args.
6665 set dummy dlltool; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 if test -n "$ac_ct_DLLTOOL"; then
6672 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6694 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6700 if test "x$ac_ct_DLLTOOL" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&5
6708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet. If you think this
6710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6711 ac_tool_warned=yes ;;
6713 DLLTOOL=$ac_ct_DLLTOOL
6716 DLLTOOL="$ac_cv_prog_DLLTOOL"
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}as; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_AS+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$AS"; then
6728 ac_cv_prog_AS="$AS" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_AS="${ac_tool_prefix}as"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 if test -n "$AS"; then
6749 { echo "$as_me:$LINENO: result: $AS" >&5
6750 echo "${ECHO_T}$AS" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6758 if test -z "$ac_cv_prog_AS"; then
6760 # Extract the first word of "as", so it can be a program name with args.
6761 set dummy as; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 if test -n "$ac_ct_AS"; then
6768 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_AS="as"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6788 if test -n "$ac_ct_AS"; then
6789 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6790 echo "${ECHO_T}$ac_ct_AS" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6796 if test "x$ac_ct_AS" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 if test -n "$OBJDUMP"; then
6824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6846 echo "${ECHO_T}$OBJDUMP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855 ac_ct_OBJDUMP=$OBJDUMP
6856 # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 if test -n "$ac_ct_OBJDUMP"; then
6864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6886 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6892 if test "x$ac_ct_OBJDUMP" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet. If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&5
6900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet. If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903 ac_tool_warned=yes ;;
6905 OBJDUMP=$ac_ct_OBJDUMP
6908 OBJDUMP="$ac_cv_prog_OBJDUMP"
6915 need_locks="$enable_libtool_lock"
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6925 # On Suns, sometimes $CPP names a directory.
6926 if test -n "$CPP" && test -d "$CPP"; then
6929 if test -z "$CPP"; then
6930 if test "${ac_cv_prog_CPP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 # Double quotes because CPP needs to be expanded
6934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6937 for ac_c_preproc_warn_flag in '' yes
6939 # Use a header file that comes with gcc, so configuring glibc
6940 # with a fresh cross-compiler works.
6941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942 # <limits.h> exists even on freestanding compilers.
6943 # On the NeXT, cc -E runs the code through the compiler's parser,
6944 # not just through cpp. "Syntax error" is here to catch this case.
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 # include <limits.h>
6954 # include <assert.h>
6958 if { (ac_try="$ac_cpp conftest.$ac_ext"
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } >/dev/null && {
6971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 # Broken: fails on valid input.
6983 rm -f conftest.err conftest.$ac_ext
6985 # OK, works on sane cases. Now check whether nonexistent headers
6986 # can be detected and how.
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <ac_nonexistent.h>
6995 if { (ac_try="$ac_cpp conftest.$ac_ext"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } >/dev/null && {
7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7011 # Broken: success on invalid input.
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 # Passes both tests.
7022 rm -f conftest.err conftest.$ac_ext
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then
7039 { echo "$as_me:$LINENO: result: $CPP" >&5
7040 echo "${ECHO_T}$CPP" >&6; }
7042 for ac_c_preproc_warn_flag in '' yes
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7057 # include <limits.h>
7059 # include <assert.h>
7063 if { (ac_try="$ac_cpp conftest.$ac_ext"
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null && {
7076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 # Broken: fails on valid input.
7088 rm -f conftest.err conftest.$ac_ext
7090 # OK, works on sane cases. Now check whether nonexistent headers
7091 # can be detected and how.
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <ac_nonexistent.h>
7100 if { (ac_try="$ac_cpp conftest.$ac_ext"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev/null && {
7113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7116 # Broken: success on invalid input.
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 # Passes both tests.
7127 rm -f conftest.err conftest.$ac_ext
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&5
7137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." >&2;}
7139 { (exit 1); exit 1; }; }
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_stdc+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_header_stdc=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_header_stdc=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "memchr" >/dev/null 2>&1; then
7215 ac_cv_header_stdc=no
7221 if test $ac_cv_header_stdc = yes; then
7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233 $EGREP "free" >/dev/null 2>&1; then
7236 ac_cv_header_stdc=no
7242 if test $ac_cv_header_stdc = yes; then
7243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244 if test "$cross_compiling" = yes; then
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7255 #if ((' ' & 0x0FF) == 0x020)
7256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7259 # define ISLOWER(c) \
7260 (('a' <= (c) && (c) <= 'i') \
7261 || ('j' <= (c) && (c) <= 'r') \
7262 || ('s' <= (c) && (c) <= 'z'))
7263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7271 for (i = 0; i < 256; i++)
7272 if (XOR (islower (i), ISLOWER (i))
7273 || toupper (i) != TOUPPER (i))
7278 rm -f conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7289 { (case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_try") 2>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7300 echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_stdc=no
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7315 if test $ac_cv_header_stdc = yes; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define STDC_HEADERS 1
7323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334 inttypes.h stdint.h unistd.h
7336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7350 #include <$ac_header>
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 eval "$as_ac_Header=yes"
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 eval "$as_ac_Header=no"
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 for ac_header in dlfcn.h
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403 { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7406 # Is the header compilable?
7407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <$ac_header>
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 ac_header_compiler=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_header_compiler=no
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6; }
7447 # Is the header present?
7448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #include <$ac_header>
7458 if { (ac_try="$ac_cpp conftest.$ac_ext"
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } >/dev/null && {
7471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7474 ac_header_preproc=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_header_preproc=no
7482 rm -f conftest.err conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6; }
7486 # So? What about this header?
7487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7493 ac_header_preproc=yes
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509 ## --------------------------------------------- ##
7510 ## Report this to <http://www.openldap.org/its/> ##
7511 ## --------------------------------------------- ##
7513 ) | sed "s/^/$as_me: WARNING: /" >&2
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 eval "$as_ac_Header=\$ac_header_preproc"
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524 { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7540 # find the maximum length of command line arguments
7541 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7542 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 # On DJGPP, this test can blow up pretty badly due to problems in libc
7552 # (any single argument exceeding 2000 bytes causes a buffer overrun
7553 # during glob expansion). Even if it were fixed, the result of this
7554 # check would be larger than it should be.
7555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7559 # Under GNU Hurd, this test is not required because there is
7560 # no limit to the length of command line arguments.
7561 # Libtool will interpret -1 as no limit whatsoever
7562 lt_cv_sys_max_cmd_len=-1;
7566 # On Win9x/ME, this test blows up -- it succeeds, but takes
7567 # about 5 minutes as the teststring grows exponentially.
7568 # Worse, since 9x/ME are not pre-emptively multitasking,
7569 # you end up with a "frozen" computer, even though with patience
7570 # the test eventually succeeds (with a max line length of 256k).
7571 # Instead, let's just punt: use the minimum linelength reported by
7572 # all of the supported platforms: 8192 (on NT/2K/XP).
7573 lt_cv_sys_max_cmd_len=8192;
7577 # On AmigaOS with pdksh, this test takes hours, literally.
7578 # So we just punt and use a minimum line length of 8192.
7579 lt_cv_sys_max_cmd_len=8192;
7582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7583 # This has been around since 386BSD, at least. Likely further.
7584 if test -x /sbin/sysctl; then
7585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7586 elif test -x /usr/sbin/sysctl; then
7587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7591 # And add a safety zone
7592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7598 # nice to cause kernel panics so lets avoid the loop below.
7599 # First set a reasonable default.
7600 lt_cv_sys_max_cmd_len=16384
7602 if test -x /sbin/sysconfig; then
7603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7609 # If test is not a shell built-in, we'll probably end up computing a
7610 # maximum length that is only half of the actual maximum length, but
7612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7613 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7614 = "XX$teststring") >/dev/null 2>&1 &&
7615 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7616 lt_cv_sys_max_cmd_len=$new_result &&
7617 test $i != 17 # 1/2 MB should be enough
7620 teststring=$teststring$teststring
7623 # Add a significant safety factor because C++ compilers can tack on massive
7624 # amounts of additional arguments before passing them to the linker.
7625 # It appears as though 1/2 is a usable value.
7626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7632 if test -n $lt_cv_sys_max_cmd_len ; then
7633 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7634 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7636 { echo "$as_me:$LINENO: result: none" >&5
7637 echo "${ECHO_T}none" >&6; }
7643 # Check for command to grab the raw symbol name followed by C symbol from nm.
7644 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7645 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 # These are sane defaults that work on at least a few old systems.
7651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7653 # Character class describing NM global symbol codes.
7654 symcode='[BCDEGRST]'
7656 # Regexp to match symbols that can be accessed directly from C.
7657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7659 # Transform an extracted symbol line into a proper C declaration
7660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7662 # Transform an extracted symbol line into symbol name and symbol address
7663 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7665 # Define system-specific variables.
7670 cygwin* | mingw* | pw32*)
7671 symcode='[ABCDGISTW]'
7673 hpux*) # Its linker distinguishes data from code symbols
7674 if test "$host_cpu" = ia64; then
7675 symcode='[ABCDEGRST]'
7677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7681 if test "$host_cpu" = ia64; then
7682 symcode='[ABCDGIRSTW]'
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7688 symcode='[BCDEGRST]'
7691 symcode='[BCDEGQRST]'
7701 # Handle CRLF in mingw tool chain
7705 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7709 # If we're using GNU nm, then use its standard symbol codes.
7710 case `$NM -V 2>&1` in
7711 *GNU* | *'with BFD'*)
7712 symcode='[ABCDGIRSTW]' ;;
7715 # Try without a prefix undercore, then with it.
7716 for ac_symprfx in "" "_"; do
7718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7719 symxfrm="\\1 $ac_symprfx\\2 \\2"
7721 # Write the raw and C identifiers.
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7724 # Check to see that the pipe works correctly.
7728 cat > conftest.$ac_ext <<EOF
7733 void nm_test_func(){}
7737 int main(){nm_test_var='a';nm_test_func();return(0);}
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; then
7745 # Now try to grab the symbols.
7747 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7748 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && test -s "$nlist"; then
7752 # Try sorting and uniquifying the output.
7753 if sort "$nlist" | uniq > "$nlist"T; then
7754 mv -f "$nlist"T "$nlist"
7759 # Make sure that we snagged all the symbols we need.
7760 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7761 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7762 cat <<EOF > conftest.$ac_ext
7768 # Now generate the symbol file.
7769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7771 cat <<EOF >> conftest.$ac_ext
7772 #if defined (__STDC__) && __STDC__
7773 # define lt_ptr_t void *
7775 # define lt_ptr_t char *
7779 /* The mapping between symbol names and symbols. */
7784 lt_preloaded_symbols[] =
7787 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7788 cat <<\EOF >> conftest.$ac_ext
7796 # Now try linking the two files.
7797 mv conftest.$ac_objext conftstm.$ac_objext
7798 lt_save_LIBS="$LIBS"
7799 lt_save_CFLAGS="$CFLAGS"
7800 LIBS="conftstm.$ac_objext"
7801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7809 LIBS="$lt_save_LIBS"
7810 CFLAGS="$lt_save_CFLAGS"
7812 echo "cannot find nm_test_func in $nlist" >&5
7815 echo "cannot find nm_test_var in $nlist" >&5
7818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7821 echo "$progname: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 rm -f conftest* conftst*
7826 # Do not use the global_symbol_pipe unless it works.
7827 if test "$pipe_works" = yes; then
7830 lt_cv_sys_global_symbol_pipe=
7836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7837 lt_cv_sys_global_symbol_to_cdecl=
7839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7840 { echo "$as_me:$LINENO: result: failed" >&5
7841 echo "${ECHO_T}failed" >&6; }
7843 { echo "$as_me:$LINENO: result: ok" >&5
7844 echo "${ECHO_T}ok" >&6; }
7847 { echo "$as_me:$LINENO: checking for objdir" >&5
7848 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7849 if test "${lt_cv_objdir+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 rm -f .libs 2>/dev/null
7853 mkdir .libs 2>/dev/null
7854 if test -d .libs; then
7857 # MS-DOS does not allow filenames that begin with a dot.
7860 rmdir .libs 2>/dev/null
7862 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7863 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7864 objdir=$lt_cv_objdir
7872 # AIX sometimes has problems with the GCC collect2 program. For some
7873 # reason, if we set the COLLECT_NAMES environment variable, the problems
7874 # vanish in a puff of smoke.
7875 if test "X${COLLECT_NAMES+set}" != Xset; then
7877 export COLLECT_NAMES
7882 # Sed substitution that helps us do robust quoting. It backslashifies
7883 # metacharacters that are still active within double-quoted strings.
7884 Xsed='sed -e 1s/^X//'
7885 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7887 # Same as above, but do not quote variable references.
7888 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7890 # Sed substitution to delay expansion of an escaped shell variable in a
7891 # double_quote_subst'ed string.
7892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7894 # Sed substitution to avoid accidental globbing in evaled expressions
7895 no_glob_subst='s/\*/\\\*/g'
7901 default_ofile=libtool
7902 can_build_shared=yes
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7907 ltmain="$ac_aux_dir/ltmain.sh"
7908 ofile="$default_ofile"
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}ar; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR="$AR" # Let the user override the test.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_AR="${ac_tool_prefix}ar"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 if test -n "$AR"; then
7941 { echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6; }
7944 { echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6; }
7950 if test -z "$ac_cv_prog_AR"; then
7952 # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 if test -n "$ac_ct_AR"; then
7960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_ac_ct_AR="ar"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7980 if test -n "$ac_ct_AR"; then
7981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7982 echo "${ECHO_T}$ac_ct_AR" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7988 if test "x$ac_ct_AR" = x; then
7991 case $cross_compiling:$ac_tool_warned in
7993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet. If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&5
7996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7997 whose name does not start with the host triplet. If you think this
7998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7999 ac_tool_warned=yes ;;
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_prog_RANLIB+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 if test -n "$RANLIB"; then
8016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 RANLIB=$ac_cv_prog_RANLIB
8036 if test -n "$RANLIB"; then
8037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8038 echo "${ECHO_T}$RANLIB" >&6; }
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8046 if test -z "$ac_cv_prog_RANLIB"; then
8047 ac_ct_RANLIB=$RANLIB
8048 # Extract the first word of "ranlib", so it can be a program name with args.
8049 set dummy ranlib; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 if test -n "$ac_ct_RANLIB"; then
8056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_ac_ct_RANLIB="ranlib"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8076 if test -n "$ac_ct_RANLIB"; then
8077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8084 if test "x$ac_ct_RANLIB" = x; then
8087 case $cross_compiling:$ac_tool_warned in
8089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet. If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&5
8092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8093 whose name does not start with the host triplet. If you think this
8094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8095 ac_tool_warned=yes ;;
8097 RANLIB=$ac_ct_RANLIB
8100 RANLIB="$ac_cv_prog_RANLIB"
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}strip; ac_word=$2
8106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8108 if test "${ac_cv_prog_STRIP+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test -n "$STRIP"; then
8112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 STRIP=$ac_cv_prog_STRIP
8132 if test -n "$STRIP"; then
8133 { echo "$as_me:$LINENO: result: $STRIP" >&5
8134 echo "${ECHO_T}$STRIP" >&6; }
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8142 if test -z "$ac_cv_prog_STRIP"; then
8144 # Extract the first word of "strip", so it can be a program name with args.
8145 set dummy strip; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 if test -n "$ac_ct_STRIP"; then
8152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_ac_ct_STRIP="strip"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8172 if test -n "$ac_ct_STRIP"; then
8173 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8174 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8180 if test "x$ac_ct_STRIP" = x; then
8183 case $cross_compiling:$ac_tool_warned in
8185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet. If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&5
8188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8189 whose name does not start with the host triplet. If you think this
8190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8191 ac_tool_warned=yes ;;
8196 STRIP="$ac_cv_prog_STRIP"
8201 old_CFLAGS="$CFLAGS"
8203 # Set sane defaults for various variables
8204 test -z "$AR" && AR=ar
8205 test -z "$AR_FLAGS" && AR_FLAGS=cru
8206 test -z "$AS" && AS=as
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8210 test -z "$LD" && LD=ld
8211 test -z "$LN_S" && LN_S="ln -s"
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 test -z "$NM" && NM=nm
8214 test -z "$SED" && SED=sed
8215 test -z "$OBJDUMP" && OBJDUMP=objdump
8216 test -z "$RANLIB" && RANLIB=:
8217 test -z "$STRIP" && STRIP=:
8218 test -z "$ac_objext" && ac_objext=o
8220 # Determine commands to create old-style static archives.
8221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8222 old_postinstall_cmds='chmod 644 $oldlib'
8223 old_postuninstall_cmds=
8225 if test -n "$RANLIB"; then
8228 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8231 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8237 for cc_temp in $compiler""; do
8239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8248 # Only perform the check for file, if the check method requires it
8249 case $deplibs_check_method in
8251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8253 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8262 lt_save_MAGIC_CMD="$MAGIC_CMD"
8263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/${ac_tool_prefix}file; then
8269 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270 if test -n "$file_magic_test_file"; then
8271 case $deplibs_check_method in
8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276 $EGREP "$file_magic_regex" > /dev/null; then
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such. This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem. Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8298 MAGIC_CMD="$lt_save_MAGIC_CMD"
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8308 { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { echo "$as_me:$LINENO: checking for file" >&5
8315 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8384 enable_win32_dll=yes
8386 # Check whether --enable-libtool-lock was given.
8387 if test "${enable_libtool_lock+set}" = set; then
8388 enableval=$enable_libtool_lock;
8391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then
8396 withval=$with_pic; pic_mode="$withval"
8401 test -z "$pic_mode" && pic_mode=default
8403 # Use C for the default configuration in the libtool script
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413 # Source file extension for C test sources.
8416 # Object file extension for compiled C test sources.
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;\n"
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}\n'
8427 # If no C compiler was specified, use CC.
8430 # Allow CC to be a program name with arguments.
8434 # save warnings/boilerplate of simple test code
8435 ac_outfile=conftest.$ac_objext
8436 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8438 _lt_compiler_boilerplate=`cat conftest.err`
8441 ac_outfile=conftest.$ac_objext
8442 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8444 _lt_linker_boilerplate=`cat conftest.err`
8449 # Check for any special shared library compilation flags.
8452 if test "$GCC" = no; then
8455 lt_prog_cc_shlib='-belf'
8459 if test -n "$lt_prog_cc_shlib"; then
8460 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8461 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8462 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8464 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8465 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8466 lt_cv_prog_cc_can_build_shared=no
8472 # Check to make sure the static flag actually works.
8474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8475 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8476 if test "${lt_prog_compiler_static_works+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 lt_prog_compiler_static_works=no
8480 save_LDFLAGS="$LDFLAGS"
8481 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8482 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484 # The linker can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 if test -s conftest.err; then
8487 # Append any errors to the config.log.
8488 cat conftest.err 1>&5
8489 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8490 $SED '/^$/d' conftest.err >conftest.er2
8491 if diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_prog_compiler_static_works=yes
8495 lt_prog_compiler_static_works=yes
8499 LDFLAGS="$save_LDFLAGS"
8502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8505 if test x"$lt_prog_compiler_static_works" = xyes; then
8508 lt_prog_compiler_static=
8514 lt_prog_compiler_no_builtin_flag=
8516 if test "$GCC" = yes; then
8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8520 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 lt_cv_prog_compiler_rtti_exceptions=no
8526 ac_outfile=conftest.$ac_objext
8527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-fno-rtti -fno-exceptions"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 # The option is referenced via a variable to avoid confusing sed.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>conftest.err)
8541 cat conftest.err >&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s "$ac_outfile"; then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings other than the usual output.
8546 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8547 $SED '/^$/d' conftest.err >conftest.er2
8548 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_rtti_exceptions=yes
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8566 lt_prog_compiler_wl=
8567 lt_prog_compiler_pic=
8568 lt_prog_compiler_static=
8570 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8573 if test "$GCC" = yes; then
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_static='-static'
8579 # All AIX code is PIC.
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8587 # FIXME: we need at least 68020 code to build shared libraries, but
8588 # adding the `-m68020' flag to GCC prevents building anything better,
8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594 # PIC is the default for these OSes.
8597 mingw* | pw32* | os2*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 lt_prog_compiler_pic='-DDLL_EXPORT'
8603 darwin* | rhapsody*)
8604 # PIC is the default on this platform
8605 # Common symbols not allowed in MH_DYLIB files
8606 lt_prog_compiler_pic='-fno-common'
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared=no
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630 lt_prog_compiler_pic='-fPIC'
8636 lt_prog_compiler_pic='-fPIC'
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8643 lt_prog_compiler_wl='-Wl,'
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8652 # PIC is the default on this platform
8653 # Common symbols not allowed in MH_DYLIB files
8654 case $cc_basename in
8656 lt_prog_compiler_pic='-qnocommon'
8657 lt_prog_compiler_wl='-Wl,'
8662 mingw* | pw32* | os2*)
8663 # This hack is so that the source file can tell whether it is being
8664 # built for inclusion in a dll (and should export symbols for example).
8665 lt_prog_compiler_pic='-DDLL_EXPORT'
8668 hpux9* | hpux10* | hpux11*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677 lt_prog_compiler_pic='+Z'
8680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681 lt_prog_compiler_static='${wl}-a ${wl}archive'
8684 irix5* | irix6* | nonstopux*)
8685 lt_prog_compiler_wl='-Wl,'
8686 # PIC (with -KPIC) is the default.
8687 lt_prog_compiler_static='-non_shared'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8696 case $cc_basename in
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-static'
8702 pgcc* | pgf77* | pgf90* | pgf95*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8717 osf3* | osf4* | osf5*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All OSF/1 code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8724 lt_prog_compiler_pic='-Kpic'
8725 lt_prog_compiler_static='-dn'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 case $cc_basename in
8733 lt_prog_compiler_wl='-Qoption ld ';;
8735 lt_prog_compiler_wl='-Wl,';;
8740 lt_prog_compiler_wl='-Qoption ld '
8741 lt_prog_compiler_pic='-PIC'
8742 lt_prog_compiler_static='-Bstatic'
8745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 if test -d /usr/nec ;then
8753 lt_prog_compiler_pic='-Kconform_pic'
8754 lt_prog_compiler_static='-Bstatic'
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_can_build_shared=no
8764 lt_prog_compiler_pic='-pic'
8765 lt_prog_compiler_static='-Bstatic'
8769 lt_prog_compiler_can_build_shared=no
8774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8775 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8778 # Check to make sure the PIC flag actually works.
8780 if test -n "$lt_prog_compiler_pic"; then
8782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8784 if test "${lt_prog_compiler_pic_works+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 lt_prog_compiler_pic_works=no
8788 ac_outfile=conftest.$ac_objext
8789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 # The option is referenced via a variable to avoid confusing sed.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:8800: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>conftest.err)
8803 cat conftest.err >&5
8804 echo "$as_me:8804: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s "$ac_outfile"; then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings other than the usual output.
8808 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8809 $SED '/^$/d' conftest.err >conftest.er2
8810 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_prog_compiler_pic_works=yes
8817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8820 if test x"$lt_prog_compiler_pic_works" = xyes; then
8821 case $lt_prog_compiler_pic in
8823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_can_build_shared=no
8832 # For platforms which do not support PIC, -DPIC is meaningless:
8834 lt_prog_compiler_pic=
8837 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 lt_cv_prog_compiler_c_o=no
8847 $rm -r conftest 2>/dev/null
8851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8853 lt_compiler_flag="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out/conftest.err)
8865 cat out/conftest.err >&5
8866 echo "$as_me:8866: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8872 $SED '/^$/d' out/conftest.err >out/conftest.er2
8873 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_c_o=yes
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8882 $rm out/* && rmdir out
8888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894 # do not overwrite the value of need_locks provided by the user
8895 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 ln conftest.a conftest.b 2>&5 || hard_links=no
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 { echo "$as_me:$LINENO: result: $hard_links" >&5
8904 echo "${ECHO_T}$hard_links" >&6; }
8905 if test "$hard_links" = no; then
8906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8914 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8918 allow_undefined_flag=
8919 enable_shared_with_static_runtimes=no
8921 archive_expsym_cmds=
8922 old_archive_From_new_cmds=
8923 old_archive_from_expsyms_cmds=
8924 export_dynamic_flag_spec=
8925 whole_archive_flag_spec=
8926 thread_safe_flag_spec=
8927 hardcode_libdir_flag_spec=
8928 hardcode_libdir_flag_spec_ld=
8929 hardcode_libdir_separator=
8932 hardcode_shlibpath_var=unsupported
8933 link_all_deplibs=unknown
8934 hardcode_automatic=no
8937 always_export_symbols=no
8938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939 # include_expsyms should be a list of space-separated symbols to be *always*
8940 # included in the symbol list
8942 # exclude_expsyms can be an extended regexp of symbols to exclude
8943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945 # as well as any symbol that contains `d'.
8946 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948 # platforms (ab)use it in PIC code, but their linkers get confused if
8949 # the symbol is explicitly referenced. Since portable code cannot
8950 # rely on this symbol name, it's probably fine to never include it in
8951 # preloaded symbol tables.
8952 extract_expsyms_cmds=
8953 # Just being paranoid about ensuring that cc_basename is set.
8954 for cc_temp in $compiler""; do
8956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8965 cygwin* | mingw* | pw32*)
8966 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 if test "$GCC" != yes; then
8979 if test "$with_gnu_ld" = yes; then
8980 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 # Set some defaults for GNU ld with shared library support. These
8984 # are reset later if shared libraries are not supported. Putting them
8985 # here allows them to be overridden if necessary.
8986 runpath_var=LD_RUN_PATH
8987 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8988 export_dynamic_flag_spec='${wl}--export-dynamic'
8989 # ancient GNU ld didn't support --whole-archive et. al.
8990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8991 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8993 whole_archive_flag_spec=
8995 supports_anon_versioning=no
8996 case `$LD -v 2>/dev/null` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000 *\ 2.11.*) ;; # other 2.11 versions
9001 *) supports_anon_versioning=yes ;;
9004 # See if GNU ld supports shared libraries.
9006 aix3* | aix4* | aix5*)
9007 # On AIX/PPC, the GNU linker is very broken
9008 if test "$host_cpu" != ia64; then
9012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support. If you
9015 *** really care for shared libraries, you may want to modify your PATH
9016 *** so that a non-GNU linker is found, and then restart.
9023 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_minus_L=yes
9027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9028 # that the semantics of dynamic libraries on AmigaOS, at least up
9029 # to version 4, is to share data among multiple programs linked
9030 # with the same dynamic library. Since this doesn't match the
9031 # behavior of shared libraries on other platforms, we can't use
9037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9038 allow_undefined_flag=unsupported
9039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9040 # support --undefined. This deserves some investigation. FIXME
9041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 cygwin* | mingw* | pw32*)
9048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049 # as there is no search path for DLLs.
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=no
9053 enable_shared_with_static_runtimes=yes
9054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9058 # If the export-symbols file already is a .def file (1st line
9059 # is EXPORTS), use it as is; otherwise, prepend...
9060 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061 cp $export_symbols $output_objdir/$soname.def;
9063 echo EXPORTS > $output_objdir/$soname.def;
9064 cat $export_symbols >> $output_objdir/$soname.def;
9066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9075 case $cc_basename,$host_cpu in
9076 pgcc*) # Portland Group C compiler
9077 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9078 tmp_addflag=' $pic_flag'
9080 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9081 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9082 tmp_addflag=' $pic_flag -Mnomain' ;;
9083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9084 tmp_addflag=' -i_dynamic' ;;
9085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9086 tmp_addflag=' -i_dynamic -nofor_main' ;;
9087 ifc* | ifort*) # Intel Fortran compiler
9088 tmp_addflag=' -nofor_main' ;;
9090 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 if test $supports_anon_versioning = yes; then
9093 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095 $echo "local: *; };" >> $output_objdir/$libname.ver~
9096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9119 *** create shared libraries on Solaris systems. Therefore, libtool
9120 *** is disabling shared libraries support. We urge you to upgrade GNU
9121 *** binutils to release 2.9.1 or newer. Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9151 if test "$ld_shlibs" = no; then
9153 hardcode_libdir_flag_spec=
9154 export_dynamic_flag_spec=
9155 whole_archive_flag_spec=
9158 # PORTME fill in a description of your system's linker (not GNU ld)
9161 allow_undefined_flag=unsupported
9162 always_export_symbols=yes
9163 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9164 # Note: this linker hardcodes the directories in LIBPATH if there
9165 # are no directories specified by -L.
9166 hardcode_minus_L=yes
9167 if test "$GCC" = yes && test -z "$link_static_flag"; then
9168 # Neither direct hardcoding nor static linking is supported with a
9170 hardcode_direct=unsupported
9175 if test "$host_cpu" = ia64; then
9176 # On IA64, the linker does run time linking by default, so we don't
9177 # have to do anything special.
9178 aix_use_runtimelinking=no
9179 exp_sym_flag='-Bexport'
9182 # If we're using GNU nm, then we don't want the "-C" option.
9183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9185 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9187 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9189 aix_use_runtimelinking=no
9191 # Test if we are trying to use run time linking or normal
9192 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193 # need to do runtime linking.
9194 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9195 for ld_flag in $LDFLAGS; do
9196 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197 aix_use_runtimelinking=yes
9203 exp_sym_flag='-bexport'
9204 no_entry_flag='-bnoentry'
9207 # When large executables or shared objects are built, AIX ld can
9208 # have problems creating the table of contents. If linking a library
9209 # or program results in "error TOC overflow" add -mminimal-toc to
9210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9215 hardcode_libdir_separator=':'
9216 link_all_deplibs=yes
9218 if test "$GCC" = yes; then
9219 case $host_os in aix4.[012]|aix4.[012].*)
9220 # We only want to do this on AIX 4.2 and lower, the check
9221 # below for broken collect2 doesn't work under 4.3+
9222 collect2name=`${CC} -print-prog-name=collect2`
9223 if test -f "$collect2name" && \
9224 strings "$collect2name" | grep resolve_lib_name >/dev/null
9226 # We have reworked collect2
9229 # We have old collect2
9230 hardcode_direct=unsupported
9231 # It fails to find uninstalled libraries when the uninstalled
9232 # path is not listed in the libpath. Setting hardcode_minus_L
9233 # to unsupported forces relinking
9234 hardcode_minus_L=yes
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_libdir_separator=
9239 shared_flag='-shared'
9240 if test "$aix_use_runtimelinking" = yes; then
9241 shared_flag="$shared_flag "'${wl}-G'
9245 if test "$host_cpu" = ia64; then
9246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9247 # chokes on -Wl,-G. The following line is correct:
9250 if test "$aix_use_runtimelinking" = yes; then
9251 shared_flag='${wl}-G'
9253 shared_flag='${wl}-bM:SRE'
9258 # It seems that -bexpall does not export symbols beginning with
9259 # underscore (_), so it is better to generate a list of symbols to export.
9260 always_export_symbols=yes
9261 if test "$aix_use_runtimelinking" = yes; then
9262 # Warning - without using the other runtime loading flags (-brtl),
9263 # -berok will link without error, but may produce a broken library.
9264 allow_undefined_flag='-berok'
9265 # Determine the default libpath from the value encoded in an empty executable.
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_link") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest$ac_exeext &&
9298 $as_test_x conftest$ac_exeext; then
9300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9302 # Check for a 64-bit object if we didn't find anything.
9303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9319 if test "$host_cpu" = ia64; then
9320 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321 allow_undefined_flag="-z nodefs"
9322 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9324 # Determine the default libpath from the value encoded in an empty executable.
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext &&
9357 $as_test_x conftest$ac_exeext; then
9359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9361 # Check for a 64-bit object if we didn't find anything.
9362 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372 conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376 # Warning - without using the other run time loading flags,
9377 # -berok will link without error, but may produce a broken library.
9378 no_undefined_flag=' ${wl}-bernotok'
9379 allow_undefined_flag=' ${wl}-berok'
9380 # -bexpall does not export symbols beginning with underscore (_)
9381 always_export_symbols=yes
9382 # Exported symbols can be pulled into shared objects from archives
9383 whole_archive_flag_spec=' '
9384 archive_cmds_need_lc=yes
9385 # This is similar to how AIX traditionally builds its shared libraries.
9386 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9392 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_minus_L=yes
9395 # see comment about different semantics on the GNU ld section
9400 export_dynamic_flag_spec=-rdynamic
9403 cygwin* | mingw* | pw32*)
9404 # When not using gcc, we currently assume that we are using
9405 # Microsoft Visual C++.
9406 # hardcode_libdir_flag_spec is actually meaningless, as there is
9407 # no search path for DLLs.
9408 hardcode_libdir_flag_spec=' '
9409 allow_undefined_flag=unsupported
9410 # Tell ltmain to make .lib files, not .a files.
9412 # Tell ltmain to make .dll files, not .so files.
9414 # FIXME: Setting linknames here is a bad hack.
9415 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416 # The linker will automatically build a .lib file if we build a DLL.
9417 old_archive_From_new_cmds='true'
9418 # FIXME: Should let the user specify the lib program.
9419 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420 fix_srcfile_path='`cygpath -w "$srcfile"`'
9421 enable_shared_with_static_runtimes=yes
9424 darwin* | rhapsody*)
9426 rhapsody* | darwin1.[012])
9427 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9433 case ${MACOSX_DEPLOYMENT_TARGET} in
9435 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9438 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9444 archive_cmds_need_lc=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 whole_archive_flag_spec=''
9449 link_all_deplibs=yes
9450 if test "$GCC" = yes ; then
9451 output_verbose_link_cmd='echo'
9452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9456 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9458 case $cc_basename in
9460 output_verbose_link_cmd='echo'
9461 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9465 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_shlibpath_var=no
9484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485 # support. Future versions do this automatically, but an explicit c++rt0.o
9486 # does not break anything, and helps significantly (at the cost of a little
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490 hardcode_libdir_flag_spec='-R$libdir'
9492 hardcode_shlibpath_var=no
9495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
9503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504 freebsd* | kfreebsd*-gnu | dragonfly*)
9505 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506 hardcode_libdir_flag_spec='-R$libdir'
9508 hardcode_shlibpath_var=no
9512 if test "$GCC" = yes; then
9513 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9515 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9521 # hardcode_minus_L: Not really in the search PATH,
9522 # but as the default location of the library.
9523 hardcode_minus_L=yes
9524 export_dynamic_flag_spec='${wl}-E'
9528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9547 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_flag_spec_ld='+b $libdir'
9552 hardcode_libdir_separator=:
9554 hardcode_shlibpath_var=no
9557 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_shlibpath_var=no
9561 # hardcode_minus_L: Not really in the search PATH,
9562 # but as the default location of the library.
9563 hardcode_minus_L=yes
9566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567 hardcode_libdir_separator=:
9569 export_dynamic_flag_spec='${wl}-E'
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9579 irix5* | irix6* | nonstopux*)
9580 if test "$GCC" = yes; then
9581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9583 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9584 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588 link_all_deplibs=yes
9592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9595 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9597 hardcode_libdir_flag_spec='-R$libdir'
9599 hardcode_shlibpath_var=no
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 hardcode_shlibpath_var=no
9612 hardcode_shlibpath_var=no
9613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617 export_dynamic_flag_spec='${wl}-E'
9620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-R$libdir'
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_minus_L=yes
9635 allow_undefined_flag=unsupported
9636 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9637 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9641 if test "$GCC" = yes; then
9642 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9643 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9645 allow_undefined_flag=' -expect_unresolved \*'
9646 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 hardcode_libdir_separator=:
9652 osf4* | osf5*) # as osf3* with the addition of -msym flag
9653 if test "$GCC" = yes; then
9654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658 allow_undefined_flag=' -expect_unresolved \*'
9659 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9660 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9661 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9663 # Both c and cxx compiler support -rpath directly
9664 hardcode_libdir_flag_spec='-rpath $libdir'
9666 hardcode_libdir_separator=:
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_shlibpath_var=no
9672 export_dynamic_flag_spec='${wl}-Bexport'
9673 runpath_var=LD_RUN_PATH
9674 hardcode_runpath_var=yes
9678 no_undefined_flag=' -z text'
9679 if test "$GCC" = yes; then
9681 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_shlibpath_var=no
9693 solaris2.[0-5] | solaris2.[0-5].*) ;;
9695 # The compiler driver will combine linker options so we
9696 # cannot just pass the convience library names through
9697 # without $wl, iff we do not link with $LD.
9698 # Luckily, gcc supports the same syntax we need for Sun Studio.
9699 # Supported since Solaris 2.6 (maybe 2.5.1?)
9702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9704 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9707 link_all_deplibs=yes
9711 if test "x$host_vendor" = xsequent; then
9712 # Use $CC to link under sequent, because it throws in some extra .o
9713 # files that make .init and .fini sections work.
9714 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_minus_L=yes
9721 hardcode_shlibpath_var=no
9725 case $host_vendor in
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_direct=yes # is this really true???
9731 ## LD is ld it makes a PLAMLIB
9732 ## CC just makes a GrossModule.
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734 reload_cmds='$CC -r -o $output$reload_objs'
9738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9742 runpath_var='LD_RUN_PATH'
9743 hardcode_shlibpath_var=no
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_shlibpath_var=no
9749 export_dynamic_flag_spec='-Bexport'
9753 if test -d /usr/nec; then
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_shlibpath_var=no
9756 runpath_var=LD_RUN_PATH
9757 hardcode_runpath_var=yes
9763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_shlibpath_var=no
9767 hardcode_runpath_var=yes
9768 runpath_var=LD_RUN_PATH
9771 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9772 no_undefined_flag='${wl}-z ${wl}text'
9773 if test "$GCC" = yes; then
9774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 runpath_var='LD_RUN_PATH'
9779 hardcode_shlibpath_var=no
9783 no_undefined_flag=' -z text'
9784 # $CC -shared without GNU ld will not create a library from C++
9785 # object files and a static libstdc++, better avoid it by now
9786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789 hardcode_libdir_flag_spec=
9790 hardcode_shlibpath_var=no
9791 runpath_var='LD_RUN_PATH'
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_shlibpath_var=no
9806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9807 echo "${ECHO_T}$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816 # Do we need to explicitly link libc?
9818 case "x$archive_cmds_need_lc" in
9820 # Assume -lc should be added
9821 archive_cmds_need_lc=yes
9823 if test "$enable_shared" = yes && test "$GCC" = yes; then
9824 case $archive_cmds in
9826 # FIXME: we may have to deal with multi-command sequences.
9829 # Test whether the compiler implicitly links with -lc since on some
9830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831 # to ld, don't add -lc before -lgcc.
9832 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } 2>conftest.err; then
9844 libobjs=conftest.$ac_objext
9846 wl=$lt_prog_compiler_wl
9852 lt_save_allow_undefined_flag=$allow_undefined_flag
9853 allow_undefined_flag=
9854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }
9860 archive_cmds_need_lc=no
9862 archive_cmds_need_lc=yes
9864 allow_undefined_flag=$lt_save_allow_undefined_flag
9866 cat conftest.err 1>&5
9869 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9880 libname_spec='lib$name'
9888 shlibpath_overrides_runpath=unknown
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895 # if the path contains ";" then we assume it to be the separator
9896 # otherwise default to the standard path separator (i.e. ":") - it is
9897 # assumed that no part of a normal pathname contains ";" but that should
9898 # okay in the real world where ";" in dirpaths is itself problematic.
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917 shlibpath_var=LIBPATH
9919 # AIX 3 has no versioning support, so we append a major version to the name.
9920 soname_spec='${libname}${release}${shared_ext}$major'
9927 hardcode_into_libs=yes
9928 if test "$host_cpu" = ia64; then
9929 # AIX 5 supports IA64
9930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931 shlibpath_var=LD_LIBRARY_PATH
9933 # With GCC up to 2.95.x, collect2 would create an import file
9934 # for dependence libraries. The import file would start with
9935 # the line `#! .'. This would cause the generated library to
9936 # depend on `.', always an invalid library. This was fixed in
9937 # development snapshots of GCC prior to 3.0.
9939 aix4 | aix4.[01] | aix4.[01].*)
9940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950 # soname into executable. Probably we can add versioning support to
9951 # collect2, so additional links can be useful in future.
9952 if test "$aix_use_runtimelinking" = yes; then
9953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954 # instead of lib<name>.a to let people know that these are not
9955 # typical AIX shared libraries.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 # We preserve .a as extension for shared libraries through AIX4.2
9959 # and later when we are not doing run time linking.
9960 library_names_spec='${libname}${release}.a $libname.a'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LIBPATH
9968 library_names_spec='$libname.ixlibrary $libname.a'
9969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9974 library_names_spec='${libname}${shared_ext}'
9975 dynamic_linker="$host_os ld.so"
9976 shlibpath_var=LIBRARY_PATH
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988 # the default ld.so.conf also contains /usr/contrib/lib and
9989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990 # libtool to hard-code these into programs
9993 cygwin* | mingw* | pw32*)
9994 version_type=windows
9999 case $GCC,$host_os in
10000 yes,cygwin* | yes,mingw* | yes,pw32*)
10001 library_names_spec='$libname.dll.a'
10002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003 postinstall_cmds='base_file=`basename \${file}`~
10004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005 dldir=$destdir/`dirname \$dlpath`~
10006 test -d \$dldir || mkdir -p \$dldir~
10007 $install_prog $dir/$dlname \$dldir/$dlname~
10008 chmod a+x \$dldir/$dlname'
10009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010 dlpath=$dir/\$dldll~
10012 shlibpath_overrides_runpath=yes
10016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10021 # MinGW DLLs use traditional 'lib' prefix
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025 # It is most probably a Windows format PATH printed by
10026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027 # path with ; separators, and with drive letters. We can handle the
10028 # drive letters (cygwin fileutils understands them), so leave them,
10029 # especially as we might pass files found there to a mingw objdump,
10030 # which wouldn't understand a cygwinified path. Ahh.
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037 # pw32 DLLs use 'pw' prefix rather than 'lib'
10038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10047 dynamic_linker='Win32 ld.exe'
10048 # FIXME: first we should search . and the directory the executable is in
10052 darwin* | rhapsody*)
10053 dynamic_linker="$host_os dyld"
10054 version_type=darwin
10057 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058 soname_spec='${libname}${release}${major}$shared_ext'
10059 shlibpath_overrides_runpath=yes
10060 shlibpath_var=DYLD_LIBRARY_PATH
10061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063 if test "$GCC" = yes; then
10064 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10066 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 dynamic_linker='GNU ld.so'
10096 freebsd* | dragonfly*)
10097 # DragonFly does not have aout. When/if they implement a new
10098 # versioning mechanism, adjust this.
10099 if test -x /usr/bin/objformat; then
10100 objformat=`/usr/bin/objformat`
10103 freebsd[123]*) objformat=aout ;;
10104 *) objformat=elf ;;
10107 version_type=freebsd-$objformat
10108 case $version_type in
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10119 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10124 freebsd3.[01]* | freebsdelf3.[01]*)
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10129 shlibpath_overrides_runpath=no
10130 hardcode_into_libs=yes
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 hardcode_into_libs=yes
10145 hpux9* | hpux10* | hpux11*)
10146 # Give a soname corresponding to the major version so that dld.sl refuses to
10147 # link against other versions.
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.so"
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 if test "X$HPUX_IA64_MODE" = X32; then
10161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10169 hardcode_into_libs=yes
10170 dynamic_linker="$host_os dld.sl"
10171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180 dynamic_linker="$host_os dld.sl"
10181 shlibpath_var=SHLIB_PATH
10182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10187 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188 postinstall_cmds='chmod 555 $lib'
10191 irix5* | irix6* | nonstopux*)
10193 nonstopux*) version_type=nonstopux ;;
10195 if test "$lt_cv_prog_gnu_ld" = yes; then
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10206 irix5* | nonstopux*)
10207 libsuff= shlibsuff=
10210 case $LD in # libtool.m4 will add one of these switches to LD
10211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212 libsuff= shlibsuff= libmagic=32-bit;;
10213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214 libsuff=32 shlibsuff=N32 libmagic=N32;;
10215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217 *) libsuff= shlibsuff= libmagic=never-match;;
10221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222 shlibpath_overrides_runpath=no
10223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225 hardcode_into_libs=yes
10228 # No shared lib support for Linux oldld, aout, or coff.
10229 linux*oldld* | linux*aout* | linux*coff*)
10233 # This must be Linux ELF.
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=no
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10248 # Append ld.so.conf contents to the search path
10249 if test -f /etc/ld.so.conf; then
10250 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10254 # We used to test for /lib/ld.so.1 and disable shared libraries on
10255 # powerpc, because MkLinux only supported shared libraries with the
10256 # GNU dynamic linker. Since this was broken with cross compilers,
10257 # most powerpc-linux boxes support dynamic linking these days and
10258 # people can always --disable-shared, the test was removed, and we
10259 # assume the GNU/Linux dynamic linker is in use.
10260 dynamic_linker='GNU/Linux ld.so'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10271 hardcode_into_libs=yes
10272 dynamic_linker='GNU ld.so'
10279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 dynamic_linker='NetBSD (a.out) ld.so'
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 dynamic_linker='NetBSD ld.elf_so'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10327 shlibpath_overrides_runpath=yes
10331 shlibpath_overrides_runpath=yes
10336 libname_spec='$name'
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10344 osf3* | osf4* | osf5*)
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10371 # ldd complains unless libraries are executable
10372 postinstall_cmds='chmod +x $lib'
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 if test "$with_gnu_ld" = yes; then
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 case $host_vendor in
10394 shlibpath_overrides_runpath=no
10396 export_dynamic_flag_spec='${wl}-Blargedynsym'
10397 runpath_var=LD_RUN_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 if test -d /usr/nec ;then
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10432 echo "${ECHO_T}$dynamic_linker" >&6; }
10433 test "$dynamic_linker" = no && can_build_shared=no
10435 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10438 if test -n "$hardcode_libdir_flag_spec" || \
10439 test -n "$runpath_var" || \
10440 test "X$hardcode_automatic" = "Xyes" ; then
10442 # We can hardcode non-existant directories.
10443 if test "$hardcode_direct" != no &&
10444 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10445 # have to relink, otherwise we might link with an installed library
10446 # when we should be linking with a yet-to-be-installed one
10447 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10448 test "$hardcode_minus_L" != no; then
10449 # Linking always hardcodes the temporary library directory.
10450 hardcode_action=relink
10452 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10453 hardcode_action=immediate
10456 # We cannot hardcode anything, or else we can only hardcode existing
10458 hardcode_action=unsupported
10460 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10461 echo "${ECHO_T}$hardcode_action" >&6; }
10463 if test "$hardcode_action" = relink; then
10464 # Fast installation is not supported
10465 enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467 test "$enable_shared" = no; then
10468 # Fast installation is not necessary
10469 enable_fast_install=needless
10474 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479 { echo "$as_me:$LINENO: result: yes" >&5
10480 echo "${ECHO_T}yes" >&6; }
10482 # FIXME - insert some real tests, host_os isn't really good enough
10485 if test -n "$STRIP" ; then
10486 striplib="$STRIP -x"
10487 { echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6; }
10490 { echo "$as_me:$LINENO: result: no" >&5
10491 echo "${ECHO_T}no" >&6; }
10495 { echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6; }
10501 if test "x$enable_dlopen" != xyes; then
10502 enable_dlopen=unknown
10503 enable_dlopen_self=unknown
10504 enable_dlopen_self_static=unknown
10511 lt_cv_dlopen="load_add_on"
10513 lt_cv_dlopen_self=yes
10517 lt_cv_dlopen="LoadLibrary"
10522 lt_cv_dlopen="dlopen"
10527 # if libdl is installed we need to link against it
10528 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10566 grep -v '^ *+' conftest.er1 >conftest.err
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 ac_cv_lib_dl_dlopen=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_lib_dl_dlopen=no
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10593 lt_cv_dlopen="dyld"
10595 lt_cv_dlopen_self=yes
10602 { echo "$as_me:$LINENO: checking for shl_load" >&5
10603 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10604 if test "${ac_cv_func_shl_load+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10615 #define shl_load innocuous_shl_load
10617 /* System header to define __stub macros and hopefully few prototypes,
10618 which can conflict with char shl_load (); below.
10619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620 <limits.h> exists even on freestanding compilers. */
10623 # include <limits.h>
10625 # include <assert.h>
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10637 /* The GNU C library defines this for functions which it implements
10638 to always fail with ENOSYS. Some functions are actually named
10639 something starting with __ and the normal name is an alias. */
10640 #if defined __stub_shl_load || defined __stub___shl_load
10647 return shl_load ();
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_link") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext &&
10669 $as_test_x conftest$ac_exeext; then
10670 ac_cv_func_shl_load=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_func_shl_load=no
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10683 if test $ac_cv_func_shl_load = yes; then
10684 lt_cv_dlopen="shl_load"
10686 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10687 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_check_lib_save_LIBS=$LIBS
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10710 return shl_load ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10733 ac_cv_lib_dld_shl_load=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_lib_dld_shl_load=no
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10750 { echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763 #define dlopen innocuous_dlopen
10765 /* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char dlopen (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10771 # include <limits.h>
10773 # include <assert.h>
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10785 /* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788 #if defined __stub_dlopen || defined __stub___dlopen
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 ac_cv_func_dlopen=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_func_dlopen=no
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10831 if test $ac_cv_func_dlopen = yes; then
10832 lt_cv_dlopen="dlopen"
10834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_check_lib_save_LIBS=$LIBS
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest$ac_exeext &&
10880 $as_test_x conftest$ac_exeext; then
10881 ac_cv_lib_dl_dlopen=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_svld_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_lib_svld_dlopen=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10959 if test $ac_cv_lib_svld_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10962 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS=$LIBS
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10986 return dld_link ();
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext &&
11008 $as_test_x conftest$ac_exeext; then
11009 ac_cv_lib_dld_dld_link=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_cv_lib_dld_dld_link=no
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11023 if test $ac_cv_lib_dld_dld_link = yes; then
11024 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11045 if test "x$lt_cv_dlopen" != xno; then
11051 case $lt_cv_dlopen in
11053 save_CPPFLAGS="$CPPFLAGS"
11054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056 save_LDFLAGS="$LDFLAGS"
11057 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11060 LIBS="$lt_cv_dlopen_libs $LIBS"
11062 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11064 if test "${lt_cv_dlopen_self+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 if test "$cross_compiling" = yes; then :
11068 lt_cv_dlopen_self=cross
11070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11071 lt_status=$lt_dlunknown
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11083 # define LT_DLGLOBAL RTLD_GLOBAL
11086 # define LT_DLGLOBAL DL_GLOBAL
11088 # define LT_DLGLOBAL 0
11092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11093 find out it does not work in some platform. */
11094 #ifndef LT_DLLAZY_OR_NOW
11096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11099 # define LT_DLLAZY_OR_NOW DL_LAZY
11102 # define LT_DLLAZY_OR_NOW RTLD_NOW
11105 # define LT_DLLAZY_OR_NOW DL_NOW
11107 # define LT_DLLAZY_OR_NOW 0
11115 extern "C" void exit (int);
11118 void fnord() { int i=42;}
11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11122 int status = $lt_dlunknown;
11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128 /* dlclose (self); */
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139 (./conftest; exit; ) >&5 2>/dev/null
11141 case x$lt_status in
11142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11147 # compilation failed
11148 lt_cv_dlopen_self=no
11155 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11158 if test "x$lt_cv_dlopen_self" = xyes; then
11159 LDFLAGS="$LDFLAGS $link_static_flag"
11160 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 if test "$cross_compiling" = yes; then :
11166 lt_cv_dlopen_self_static=cross
11168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169 lt_status=$lt_dlunknown
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11181 # define LT_DLGLOBAL RTLD_GLOBAL
11184 # define LT_DLGLOBAL DL_GLOBAL
11186 # define LT_DLGLOBAL 0
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191 find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11197 # define LT_DLLAZY_OR_NOW DL_LAZY
11200 # define LT_DLLAZY_OR_NOW RTLD_NOW
11203 # define LT_DLLAZY_OR_NOW DL_NOW
11205 # define LT_DLLAZY_OR_NOW 0
11213 extern "C" void exit (int);
11216 void fnord() { int i=42;}
11219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220 int status = $lt_dlunknown;
11224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226 /* dlclose (self); */
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11237 (./conftest; exit; ) >&5 2>/dev/null
11239 case x$lt_status in
11240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11242 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11245 # compilation failed
11246 lt_cv_dlopen_self_static=no
11253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11254 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11257 CPPFLAGS="$save_CPPFLAGS"
11258 LDFLAGS="$save_LDFLAGS"
11263 case $lt_cv_dlopen_self in
11264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11265 *) enable_dlopen_self=unknown ;;
11268 case $lt_cv_dlopen_self_static in
11269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11270 *) enable_dlopen_self_static=unknown ;;
11275 # Report which librarie types wil actually be built
11276 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11277 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11278 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11279 echo "${ECHO_T}$can_build_shared" >&6; }
11281 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11282 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11283 test "$can_build_shared" = "no" && enable_shared=no
11285 # On AIX, shared libraries and static libraries use the same namespace, and
11286 # are all built from PIC.
11289 test "$enable_shared" = yes && enable_static=no
11290 if test -n "$RANLIB"; then
11291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11292 postinstall_cmds='$RANLIB $lib'
11297 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11298 test "$enable_shared" = yes && enable_static=no
11302 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11303 echo "${ECHO_T}$enable_shared" >&6; }
11305 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11306 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11307 # Make sure either enable_shared or enable_static is yes.
11308 test "$enable_shared" = yes || enable_static=yes
11309 { echo "$as_me:$LINENO: result: $enable_static" >&5
11310 echo "${ECHO_T}$enable_static" >&6; }
11312 # The else clause should only fire when bootstrapping the
11313 # libtool distribution, otherwise you forgot to ship ltmain.sh
11314 # with your package, and you will get complaints that there are
11315 # no rules to generate ltmain.sh.
11316 if test -f "$ltmain"; then
11317 # See if we are running on zsh, and set the options which allow our commands through
11318 # without removal of \ escapes.
11319 if test -n "${ZSH_VERSION+set}" ; then
11320 setopt NO_GLOB_SUBST
11322 # Now quote all the things that may contain metacharacters while being
11323 # careful not to overquote the AC_SUBSTed values. We take copies of the
11324 # variables and quote the copies for generation of the libtool script.
11325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11329 deplibs_check_method reload_flag reload_cmds need_locks \
11330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11331 lt_cv_sys_global_symbol_to_c_name_address \
11332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11333 old_postinstall_cmds old_postuninstall_cmds \
11337 lt_prog_compiler_wl \
11338 lt_prog_compiler_pic \
11339 lt_prog_compiler_static \
11340 lt_prog_compiler_no_builtin_flag \
11341 export_dynamic_flag_spec \
11342 thread_safe_flag_spec \
11343 whole_archive_flag_spec \
11344 enable_shared_with_static_runtimes \
11346 old_archive_from_new_cmds \
11351 compiler_lib_search_path \
11353 archive_expsym_cmds \
11355 postuninstall_cmds \
11356 old_archive_from_expsyms_cmds \
11357 allow_undefined_flag \
11358 no_undefined_flag \
11359 export_symbols_cmds \
11360 hardcode_libdir_flag_spec \
11361 hardcode_libdir_flag_spec_ld \
11362 hardcode_libdir_separator \
11363 hardcode_automatic \
11365 module_expsym_cmds \
11366 lt_cv_prog_compiler_c_o \
11368 include_expsyms; do
11371 old_archive_cmds | \
11372 old_archive_from_new_cmds | \
11374 archive_expsym_cmds | \
11376 module_expsym_cmds | \
11377 old_archive_from_expsyms_cmds | \
11378 export_symbols_cmds | \
11379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11380 postinstall_cmds | postuninstall_cmds | \
11381 old_postinstall_cmds | old_postuninstall_cmds | \
11382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11383 # Double-quote double-evaled strings.
11384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11393 *'\$0 --fallback-echo"')
11394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11398 cfgfile="${ofile}T"
11399 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11401 { echo "$as_me:$LINENO: creating $ofile" >&5
11402 echo "$as_me: creating $ofile" >&6;}
11404 cat <<__EOF__ >> "$cfgfile"
11407 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11412 # Free Software Foundation, Inc.
11414 # This file is part of GNU Libtool:
11415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11417 # This program is free software; you can redistribute it and/or modify
11418 # it under the terms of the GNU General Public License as published by
11419 # the Free Software Foundation; either version 2 of the License, or
11420 # (at your option) any later version.
11422 # This program is distributed in the hope that it will be useful, but
11423 # WITHOUT ANY WARRANTY; without even the implied warranty of
11424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11425 # General Public License for more details.
11427 # You should have received a copy of the GNU General Public License
11428 # along with this program; if not, write to the Free Software
11429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11431 # As a special exception to the GNU General Public License, if you
11432 # distribute this file as part of a program that contains a
11433 # configuration script generated by Autoconf, you may include it under
11434 # the same distribution terms that you use for the rest of that program.
11436 # A sed program that does not truncate output.
11439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11440 Xsed="$SED -e 1s/^X//"
11442 # The HP-UX ksh and POSIX shell print the target directory to stdout
11443 # if CDPATH is set.
11444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11446 # The names of the tagged configurations supported by this script.
11449 # ### BEGIN LIBTOOL CONFIG
11451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11453 # Shell to use when invoking shell scripts.
11456 # Whether or not to build shared libraries.
11457 build_libtool_libs=$enable_shared
11459 # Whether or not to build static libraries.
11460 build_old_libs=$enable_static
11462 # Whether or not to add -lc for building shared libraries.
11463 build_libtool_need_lc=$archive_cmds_need_lc
11465 # Whether or not to disallow shared libs when runtime libs are static
11466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11468 # Whether or not to optimize for fast installation.
11469 fast_install=$enable_fast_install
11472 host_alias=$host_alias
11476 # The build system.
11477 build_alias=$build_alias
11481 # An echo program that does not interpret backslashes.
11486 AR_FLAGS=$lt_AR_FLAGS
11491 # A language-specific compiler.
11494 # Is the compiler the GNU C compiler?
11500 # The linker used to build libraries.
11503 # Whether we need hard or soft links.
11506 # A BSD-compatible nm program.
11509 # A symbol stripping program
11512 # Used to examine libraries when file_magic_cmd begins "file"
11513 MAGIC_CMD=$MAGIC_CMD
11515 # Used on cygwin: DLL creation program.
11518 # Used on cygwin: object dumper.
11521 # Used on cygwin: assembler.
11524 # The name of the directory that contains temporary libtool files.
11527 # How to create reloadable object files.
11528 reload_flag=$lt_reload_flag
11529 reload_cmds=$lt_reload_cmds
11531 # How to pass a linker flag through the compiler.
11532 wl=$lt_lt_prog_compiler_wl
11534 # Object file suffix (normally "o").
11535 objext="$ac_objext"
11537 # Old archive suffix (normally "a").
11540 # Shared library suffix (normally ".so").
11541 shrext_cmds='$shrext_cmds'
11543 # Executable file suffix (normally "").
11546 # Additional compiler flags for building library objects.
11547 pic_flag=$lt_lt_prog_compiler_pic
11550 # What is the maximum length of a command?
11551 max_cmd_len=$lt_cv_sys_max_cmd_len
11553 # Does compiler simultaneously support -c and -o options?
11554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11556 # Must we lock files when doing compilation?
11557 need_locks=$lt_need_locks
11559 # Do we need the lib prefix for modules?
11560 need_lib_prefix=$need_lib_prefix
11562 # Do we need a version for libraries?
11563 need_version=$need_version
11565 # Whether dlopen is supported.
11566 dlopen_support=$enable_dlopen
11568 # Whether dlopen of programs is supported.
11569 dlopen_self=$enable_dlopen_self
11571 # Whether dlopen of statically linked programs is supported.
11572 dlopen_self_static=$enable_dlopen_self_static
11574 # Compiler flag to prevent dynamic linking.
11575 link_static_flag=$lt_lt_prog_compiler_static
11577 # Compiler flag to turn off builtin functions.
11578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11580 # Compiler flag to allow reflexive dlopens.
11581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11583 # Compiler flag to generate shared objects directly from archives.
11584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11586 # Compiler flag to generate thread-safe objects.
11587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11589 # Library versioning type.
11590 version_type=$version_type
11592 # Format of library name prefix.
11593 libname_spec=$lt_libname_spec
11595 # List of archive names. First name is the real one, the rest are links.
11596 # The last name is the one that the linker finds with -lNAME.
11597 library_names_spec=$lt_library_names_spec
11599 # The coded name of the library, if different from the real name.
11600 soname_spec=$lt_soname_spec
11602 # Commands used to build and install an old-style archive.
11604 old_archive_cmds=$lt_old_archive_cmds
11605 old_postinstall_cmds=$lt_old_postinstall_cmds
11606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11608 # Create an old-style archive from a shared archive.
11609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11611 # Create a temporary old-style archive to link instead of a shared archive.
11612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11614 # Commands used to build and install a shared archive.
11615 archive_cmds=$lt_archive_cmds
11616 archive_expsym_cmds=$lt_archive_expsym_cmds
11617 postinstall_cmds=$lt_postinstall_cmds
11618 postuninstall_cmds=$lt_postuninstall_cmds
11620 # Commands used to build a loadable module (assumed same as above if empty)
11621 module_cmds=$lt_module_cmds
11622 module_expsym_cmds=$lt_module_expsym_cmds
11624 # Commands to strip libraries.
11625 old_striplib=$lt_old_striplib
11626 striplib=$lt_striplib
11628 # Dependencies to place before the objects being linked to create a
11630 predep_objects=$lt_predep_objects
11632 # Dependencies to place after the objects being linked to create a
11634 postdep_objects=$lt_postdep_objects
11636 # Dependencies to place before the objects being linked to create a
11638 predeps=$lt_predeps
11640 # Dependencies to place after the objects being linked to create a
11642 postdeps=$lt_postdeps
11644 # The library search path used internally by the compiler when linking
11645 # a shared library.
11646 compiler_lib_search_path=$lt_compiler_lib_search_path
11648 # Method to check whether dependent libraries are shared objects.
11649 deplibs_check_method=$lt_deplibs_check_method
11651 # Command to use when deplibs_check_method == file_magic.
11652 file_magic_cmd=$lt_file_magic_cmd
11654 # Flag that allows shared libraries with undefined symbols to be built.
11655 allow_undefined_flag=$lt_allow_undefined_flag
11657 # Flag that forces no undefined symbols.
11658 no_undefined_flag=$lt_no_undefined_flag
11660 # Commands used to finish a libtool library installation in a directory.
11661 finish_cmds=$lt_finish_cmds
11663 # Same as above, but a single script fragment to be evaled but not shown.
11664 finish_eval=$lt_finish_eval
11666 # Take the output of nm and produce a listing of raw symbols and C names.
11667 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11669 # Transform the output of nm in a proper C declaration
11670 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11672 # Transform the output of nm in a C name address pair
11673 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11675 # This is the shared library runtime path variable.
11676 runpath_var=$runpath_var
11678 # This is the shared library path variable.
11679 shlibpath_var=$shlibpath_var
11681 # Is shlibpath searched before the hard-coded library search path?
11682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11684 # How to hardcode a shared library path into an executable.
11685 hardcode_action=$hardcode_action
11687 # Whether we should hardcode library paths into libraries.
11688 hardcode_into_libs=$hardcode_into_libs
11690 # Flag to hardcode \$libdir into a binary during linking.
11691 # This must work even if \$libdir does not exist.
11692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11694 # If ld is used when linking, flag to hardcode \$libdir into
11695 # a binary during linking. This must work even if \$libdir does
11697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11699 # Whether we need a single -rpath flag with a separated argument.
11700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11702 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_direct=$hardcode_direct
11706 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_minus_L=$hardcode_minus_L
11710 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711 # the resulting binary.
11712 hardcode_shlibpath_var=$hardcode_shlibpath_var
11714 # Set to yes if building a shared library automatically hardcodes DIR into the library
11715 # and all subsequent libraries and executables linked against it.
11716 hardcode_automatic=$hardcode_automatic
11718 # Variables whose values should be saved in libtool wrapper scripts and
11719 # restored at relink time.
11720 variables_saved_for_relink="$variables_saved_for_relink"
11722 # Whether libtool must link a program against all its dependency libraries.
11723 link_all_deplibs=$link_all_deplibs
11725 # Compile-time system search path for libraries
11726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11728 # Run-time system search path for libraries
11729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11731 # Fix the shell variable \$srcfile for the compiler.
11732 fix_srcfile_path="$fix_srcfile_path"
11734 # Set to yes if exported symbols are required.
11735 always_export_symbols=$always_export_symbols
11737 # The commands to list exported symbols.
11738 export_symbols_cmds=$lt_export_symbols_cmds
11740 # The commands to extract the exported symbol list from a shared archive.
11741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11743 # Symbols that should not be listed in the preloaded symbols.
11744 exclude_expsyms=$lt_exclude_expsyms
11746 # Symbols that must always be exported.
11747 include_expsyms=$lt_include_expsyms
11749 # ### END LIBTOOL CONFIG
11756 cat <<\EOF >> "$cfgfile"
11758 # AIX sometimes has problems with the GCC collect2 program. For some
11759 # reason, if we set the COLLECT_NAMES environment variable, the problems
11760 # vanish in a puff of smoke.
11761 if test "X${COLLECT_NAMES+set}" != Xset; then
11763 export COLLECT_NAMES
11769 # We use sed instead of cat because bash on DJGPP gets confused if
11770 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11771 # text mode, it properly converts lines to CR/LF. This bash problem
11772 # is reportedly fixed, but why not run on old versions too?
11773 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11775 mv -f "$cfgfile" "$ofile" || \
11776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11780 # If there is no Makefile yet, we rely on a make rule to execute
11781 # `config.status --recheck' to rerun these tests and create the
11782 # libtool script then.
11783 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784 if test -f "$ltmain_in"; then
11785 test -f Makefile && make "$ltmain"
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799 # Check whether --with-tags was given.
11800 if test "${with_tags+set}" = set; then
11801 withval=$with_tags; tagnames="$withval"
11805 if test -f "$ltmain" && test -n "$tagnames"; then
11806 if test ! -f "${ofile}"; then
11807 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11811 if test -z "$LTCC"; then
11812 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813 if test -z "$LTCC"; then
11814 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11822 # Extract list of available tagged configurations in $ofile.
11823 # Note that this assumes the entire list is on one line.
11824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11827 for tagname in $tagnames; do
11829 # Check whether tagname contains only valid characters
11830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11832 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11834 { (exit 1); exit 1; }; }
11838 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11840 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11842 { (exit 1); exit 1; }; }
11845 # Update the list of available tags.
11846 if test -n "$tagname"; then
11847 echo appending configuration tag \"$tagname\" to $ofile
11851 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11852 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11853 (test "X$CXX" != "Xg++"))) ; then
11861 if test -n "$F77" && test "X$F77" != "Xno"; then
11869 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11879 # Source file extension for RC test sources.
11882 # Object file extension for compiled RC test sources.
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code="$lt_simple_compile_test_code"
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11894 # If no C compiler was specified, use CC.
11897 # Allow CC to be a program name with arguments.
11901 # save warnings/boilerplate of simple test code
11902 ac_outfile=conftest.$ac_objext
11903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11905 _lt_compiler_boilerplate=`cat conftest.err`
11908 ac_outfile=conftest.$ac_objext
11909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11911 _lt_linker_boilerplate=`cat conftest.err`
11915 # Allow CC to be a program name with arguments.
11920 for cc_temp in $compiler""; do
11922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11930 lt_cv_prog_compiler_c_o_RC=yes
11932 # The else clause should only fire when bootstrapping the
11933 # libtool distribution, otherwise you forgot to ship ltmain.sh
11934 # with your package, and you will get complaints that there are
11935 # no rules to generate ltmain.sh.
11936 if test -f "$ltmain"; then
11937 # See if we are running on zsh, and set the options which allow our commands through
11938 # without removal of \ escapes.
11939 if test -n "${ZSH_VERSION+set}" ; then
11940 setopt NO_GLOB_SUBST
11942 # Now quote all the things that may contain metacharacters while being
11943 # careful not to overquote the AC_SUBSTed values. We take copies of the
11944 # variables and quote the copies for generation of the libtool script.
11945 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11947 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949 deplibs_check_method reload_flag reload_cmds need_locks \
11950 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951 lt_cv_sys_global_symbol_to_c_name_address \
11952 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953 old_postinstall_cmds old_postuninstall_cmds \
11957 lt_prog_compiler_wl_RC \
11958 lt_prog_compiler_pic_RC \
11959 lt_prog_compiler_static_RC \
11960 lt_prog_compiler_no_builtin_flag_RC \
11961 export_dynamic_flag_spec_RC \
11962 thread_safe_flag_spec_RC \
11963 whole_archive_flag_spec_RC \
11964 enable_shared_with_static_runtimes_RC \
11965 old_archive_cmds_RC \
11966 old_archive_from_new_cmds_RC \
11967 predep_objects_RC \
11968 postdep_objects_RC \
11971 compiler_lib_search_path_RC \
11973 archive_expsym_cmds_RC \
11974 postinstall_cmds_RC \
11975 postuninstall_cmds_RC \
11976 old_archive_from_expsyms_cmds_RC \
11977 allow_undefined_flag_RC \
11978 no_undefined_flag_RC \
11979 export_symbols_cmds_RC \
11980 hardcode_libdir_flag_spec_RC \
11981 hardcode_libdir_flag_spec_ld_RC \
11982 hardcode_libdir_separator_RC \
11983 hardcode_automatic_RC \
11985 module_expsym_cmds_RC \
11986 lt_cv_prog_compiler_c_o_RC \
11987 exclude_expsyms_RC \
11988 include_expsyms_RC; do
11991 old_archive_cmds_RC | \
11992 old_archive_from_new_cmds_RC | \
11993 archive_cmds_RC | \
11994 archive_expsym_cmds_RC | \
11996 module_expsym_cmds_RC | \
11997 old_archive_from_expsyms_cmds_RC | \
11998 export_symbols_cmds_RC | \
11999 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000 postinstall_cmds | postuninstall_cmds | \
12001 old_postinstall_cmds | old_postuninstall_cmds | \
12002 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003 # Double-quote double-evaled strings.
12004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12007 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12013 *'\$0 --fallback-echo"')
12014 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12020 cat <<__EOF__ >> "$cfgfile"
12021 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12023 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12025 # Shell to use when invoking shell scripts.
12028 # Whether or not to build shared libraries.
12029 build_libtool_libs=$enable_shared
12031 # Whether or not to build static libraries.
12032 build_old_libs=$enable_static
12034 # Whether or not to add -lc for building shared libraries.
12035 build_libtool_need_lc=$archive_cmds_need_lc_RC
12037 # Whether or not to disallow shared libs when runtime libs are static
12038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12040 # Whether or not to optimize for fast installation.
12041 fast_install=$enable_fast_install
12044 host_alias=$host_alias
12048 # The build system.
12049 build_alias=$build_alias
12053 # An echo program that does not interpret backslashes.
12058 AR_FLAGS=$lt_AR_FLAGS
12063 # A language-specific compiler.
12066 # Is the compiler the GNU C compiler?
12072 # The linker used to build libraries.
12075 # Whether we need hard or soft links.
12078 # A BSD-compatible nm program.
12081 # A symbol stripping program
12084 # Used to examine libraries when file_magic_cmd begins "file"
12085 MAGIC_CMD=$MAGIC_CMD
12087 # Used on cygwin: DLL creation program.
12090 # Used on cygwin: object dumper.
12093 # Used on cygwin: assembler.
12096 # The name of the directory that contains temporary libtool files.
12099 # How to create reloadable object files.
12100 reload_flag=$lt_reload_flag
12101 reload_cmds=$lt_reload_cmds
12103 # How to pass a linker flag through the compiler.
12104 wl=$lt_lt_prog_compiler_wl_RC
12106 # Object file suffix (normally "o").
12107 objext="$ac_objext"
12109 # Old archive suffix (normally "a").
12112 # Shared library suffix (normally ".so").
12113 shrext_cmds='$shrext_cmds'
12115 # Executable file suffix (normally "").
12118 # Additional compiler flags for building library objects.
12119 pic_flag=$lt_lt_prog_compiler_pic_RC
12122 # What is the maximum length of a command?
12123 max_cmd_len=$lt_cv_sys_max_cmd_len
12125 # Does compiler simultaneously support -c and -o options?
12126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12128 # Must we lock files when doing compilation?
12129 need_locks=$lt_need_locks
12131 # Do we need the lib prefix for modules?
12132 need_lib_prefix=$need_lib_prefix
12134 # Do we need a version for libraries?
12135 need_version=$need_version
12137 # Whether dlopen is supported.
12138 dlopen_support=$enable_dlopen
12140 # Whether dlopen of programs is supported.
12141 dlopen_self=$enable_dlopen_self
12143 # Whether dlopen of statically linked programs is supported.
12144 dlopen_self_static=$enable_dlopen_self_static
12146 # Compiler flag to prevent dynamic linking.
12147 link_static_flag=$lt_lt_prog_compiler_static_RC
12149 # Compiler flag to turn off builtin functions.
12150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12152 # Compiler flag to allow reflexive dlopens.
12153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12155 # Compiler flag to generate shared objects directly from archives.
12156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12158 # Compiler flag to generate thread-safe objects.
12159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12161 # Library versioning type.
12162 version_type=$version_type
12164 # Format of library name prefix.
12165 libname_spec=$lt_libname_spec
12167 # List of archive names. First name is the real one, the rest are links.
12168 # The last name is the one that the linker finds with -lNAME.
12169 library_names_spec=$lt_library_names_spec
12171 # The coded name of the library, if different from the real name.
12172 soname_spec=$lt_soname_spec
12174 # Commands used to build and install an old-style archive.
12176 old_archive_cmds=$lt_old_archive_cmds_RC
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12180 # Create an old-style archive from a shared archive.
12181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12183 # Create a temporary old-style archive to link instead of a shared archive.
12184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12186 # Commands used to build and install a shared archive.
12187 archive_cmds=$lt_archive_cmds_RC
12188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12189 postinstall_cmds=$lt_postinstall_cmds
12190 postuninstall_cmds=$lt_postuninstall_cmds
12192 # Commands used to build a loadable module (assumed same as above if empty)
12193 module_cmds=$lt_module_cmds_RC
12194 module_expsym_cmds=$lt_module_expsym_cmds_RC
12196 # Commands to strip libraries.
12197 old_striplib=$lt_old_striplib
12198 striplib=$lt_striplib
12200 # Dependencies to place before the objects being linked to create a
12202 predep_objects=$lt_predep_objects_RC
12204 # Dependencies to place after the objects being linked to create a
12206 postdep_objects=$lt_postdep_objects_RC
12208 # Dependencies to place before the objects being linked to create a
12210 predeps=$lt_predeps_RC
12212 # Dependencies to place after the objects being linked to create a
12214 postdeps=$lt_postdeps_RC
12216 # The library search path used internally by the compiler when linking
12217 # a shared library.
12218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12220 # Method to check whether dependent libraries are shared objects.
12221 deplibs_check_method=$lt_deplibs_check_method
12223 # Command to use when deplibs_check_method == file_magic.
12224 file_magic_cmd=$lt_file_magic_cmd
12226 # Flag that allows shared libraries with undefined symbols to be built.
12227 allow_undefined_flag=$lt_allow_undefined_flag_RC
12229 # Flag that forces no undefined symbols.
12230 no_undefined_flag=$lt_no_undefined_flag_RC
12232 # Commands used to finish a libtool library installation in a directory.
12233 finish_cmds=$lt_finish_cmds
12235 # Same as above, but a single script fragment to be evaled but not shown.
12236 finish_eval=$lt_finish_eval
12238 # Take the output of nm and produce a listing of raw symbols and C names.
12239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12241 # Transform the output of nm in a proper C declaration
12242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12244 # Transform the output of nm in a C name address pair
12245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12247 # This is the shared library runtime path variable.
12248 runpath_var=$runpath_var
12250 # This is the shared library path variable.
12251 shlibpath_var=$shlibpath_var
12253 # Is shlibpath searched before the hard-coded library search path?
12254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12256 # How to hardcode a shared library path into an executable.
12257 hardcode_action=$hardcode_action_RC
12259 # Whether we should hardcode library paths into libraries.
12260 hardcode_into_libs=$hardcode_into_libs
12262 # Flag to hardcode \$libdir into a binary during linking.
12263 # This must work even if \$libdir does not exist.
12264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12266 # If ld is used when linking, flag to hardcode \$libdir into
12267 # a binary during linking. This must work even if \$libdir does
12269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12271 # Whether we need a single -rpath flag with a separated argument.
12272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_direct=$hardcode_direct_RC
12278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_minus_L=$hardcode_minus_L_RC
12282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283 # the resulting binary.
12284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12286 # Set to yes if building a shared library automatically hardcodes DIR into the library
12287 # and all subsequent libraries and executables linked against it.
12288 hardcode_automatic=$hardcode_automatic_RC
12290 # Variables whose values should be saved in libtool wrapper scripts and
12291 # restored at relink time.
12292 variables_saved_for_relink="$variables_saved_for_relink"
12294 # Whether libtool must link a program against all its dependency libraries.
12295 link_all_deplibs=$link_all_deplibs_RC
12297 # Compile-time system search path for libraries
12298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12300 # Run-time system search path for libraries
12301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12303 # Fix the shell variable \$srcfile for the compiler.
12304 fix_srcfile_path="$fix_srcfile_path_RC"
12306 # Set to yes if exported symbols are required.
12307 always_export_symbols=$always_export_symbols_RC
12309 # The commands to list exported symbols.
12310 export_symbols_cmds=$lt_export_symbols_cmds_RC
12312 # The commands to extract the exported symbol list from a shared archive.
12313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12315 # Symbols that should not be listed in the preloaded symbols.
12316 exclude_expsyms=$lt_exclude_expsyms_RC
12318 # Symbols that must always be exported.
12319 include_expsyms=$lt_include_expsyms_RC
12321 # ### END LIBTOOL TAG CONFIG: $tagname
12327 # If there is no Makefile yet, we rely on a make rule to execute
12328 # `config.status --recheck' to rerun these tests and create the
12329 # libtool script then.
12330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331 if test -f "$ltmain_in"; then
12332 test -f Makefile && make "$ltmain"
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12348 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12349 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12350 { (exit 1); exit 1; }; }
12354 # Append the new tag name to the list of available tags.
12355 if test -n "$tagname" ; then
12356 available_tags="$available_tags $tagname"
12362 # Now substitute the updated list of available tags.
12363 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12364 mv "${ofile}T" "$ofile"
12368 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12369 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12370 { (exit 1); exit 1; }; }
12376 # This can be used to rebuild libtool when needed
12377 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12379 # Always use our own libtool.
12380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12382 # Prevent multiple expansion
12394 if test $ol_enable_perl != no ; then
12395 # Extract the first word of "perl", so it can be a program name with args.
12396 set dummy perl; ac_word=$2
12397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12399 if test "${ac_cv_path_PERLBIN+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12426 PERLBIN=$ac_cv_path_PERLBIN
12427 if test -n "$PERLBIN"; then
12428 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12429 echo "${ECHO_T}$PERLBIN" >&6; }
12431 { echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6; }
12437 if test "no$PERLBIN" = "no" ; then
12438 if test $ol_enable_perl = yes ; then
12439 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12440 echo "$as_me: error: could not locate perl" >&2;}
12441 { (exit 1); exit 1; }; }
12445 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12446 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12448 if test x"$ol_enable_perl" = "xyes" ; then
12449 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12451 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12464 # On Suns, sometimes $CPP names a directory.
12465 if test -n "$CPP" && test -d "$CPP"; then
12468 if test -z "$CPP"; then
12469 if test "${ac_cv_prog_CPP+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 # Double quotes because CPP needs to be expanded
12473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12475 ac_preproc_ok=false
12476 for ac_c_preproc_warn_flag in '' yes
12478 # Use a header file that comes with gcc, so configuring glibc
12479 # with a fresh cross-compiler works.
12480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 # <limits.h> exists even on freestanding compilers.
12482 # On the NeXT, cc -E runs the code through the compiler's parser,
12483 # not just through cpp. "Syntax error" is here to catch this case.
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 # include <limits.h>
12493 # include <assert.h>
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null && {
12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 # Broken: fails on valid input.
12522 rm -f conftest.err conftest.$ac_ext
12524 # OK, works on sane cases. Now check whether nonexistent headers
12525 # can be detected and how.
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <ac_nonexistent.h>
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } >/dev/null && {
12547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12550 # Broken: success on invalid input.
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 # Passes both tests.
12561 rm -f conftest.err conftest.$ac_ext
12564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12565 rm -f conftest.err conftest.$ac_ext
12566 if $ac_preproc_ok; then
12571 ac_cv_prog_CPP=$CPP
12574 CPP=$ac_cv_prog_CPP
12576 ac_cv_prog_CPP=$CPP
12578 { echo "$as_me:$LINENO: result: $CPP" >&5
12579 echo "${ECHO_T}$CPP" >&6; }
12580 ac_preproc_ok=false
12581 for ac_c_preproc_warn_flag in '' yes
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 # include <limits.h>
12598 # include <assert.h>
12602 if { (ac_try="$ac_cpp conftest.$ac_ext"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } >/dev/null && {
12615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 # Broken: fails on valid input.
12627 rm -f conftest.err conftest.$ac_ext
12629 # OK, works on sane cases. Now check whether nonexistent headers
12630 # can be detected and how.
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <ac_nonexistent.h>
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12655 # Broken: success on invalid input.
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 # Passes both tests.
12666 rm -f conftest.err conftest.$ac_ext
12669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670 rm -f conftest.err conftest.$ac_ext
12671 if $ac_preproc_ok; then
12674 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&5
12676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12677 See \`config.log' for more details." >&2;}
12678 { (exit 1); exit 1; }; }
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12688 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12689 if test "${ol_cv_msvc+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12700 #include <__FOO__/generate_error.h>
12704 if { (ac_try="$ac_cpp conftest.$ac_ext"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12728 rm -f conftest.err conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12731 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12734 *mingw32* ) ac_cv_mingw32=yes ;;
12735 *cygwin* ) ac_cv_cygwin=yes ;;
12736 *interix* ) ac_cv_interix=yes ;;
12742 cat >>confdefs.h <<_ACEOF
12743 #define EXEEXT "${EXEEXT}"
12747 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12748 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_be_be_app+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lbe -lroot -lnet $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext &&
12793 $as_test_x conftest$ac_exeext; then
12794 ac_cv_lib_be_be_app=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_be_be_app=no
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12807 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12808 if test $ac_cv_lib_be_be_app = yes; then
12809 LIBS="$LIBS -lbe -lroot -lnet"
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 if test -n "$ac_tool_prefix"; then
12821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12825 if test "${ac_cv_prog_CC+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 if test -n "$CC"; then
12829 ac_cv_prog_CC="$CC" # Let the user override the test.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 if test -n "$CC"; then
12850 { echo "$as_me:$LINENO: result: $CC" >&5
12851 echo "${ECHO_T}$CC" >&6; }
12853 { echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6; }
12859 if test -z "$ac_cv_prog_CC"; then
12861 # Extract the first word of "gcc", so it can be a program name with args.
12862 set dummy gcc; ac_word=$2
12863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 if test -n "$ac_ct_CC"; then
12869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_ac_ct_CC="gcc"
12879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12889 if test -n "$ac_ct_CC"; then
12890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12891 echo "${ECHO_T}$ac_ct_CC" >&6; }
12893 { echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6; }
12897 if test "x$ac_ct_CC" = x; then
12900 case $cross_compiling:$ac_tool_warned in
12902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12903 whose name does not start with the host triplet. If you think this
12904 configuration is useful to you, please write to autoconf@gnu.org." >&5
12905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12906 whose name does not start with the host triplet. If you think this
12907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12908 ac_tool_warned=yes ;;
12913 CC="$ac_cv_prog_CC"
12916 if test -z "$CC"; then
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}cc; ac_word=$2
12920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12922 if test "${ac_cv_prog_CC+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 if test -n "$CC"; then
12926 ac_cv_prog_CC="$CC" # Let the user override the test.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_CC="${ac_tool_prefix}cc"
12936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 if test -n "$CC"; then
12947 { echo "$as_me:$LINENO: result: $CC" >&5
12948 echo "${ECHO_T}$CC" >&6; }
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12957 if test -z "$CC"; then
12958 # Extract the first word of "cc", so it can be a program name with args.
12959 set dummy cc; ac_word=$2
12960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12962 if test "${ac_cv_prog_CC+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 if test -n "$CC"; then
12966 ac_cv_prog_CC="$CC" # Let the user override the test.
12968 ac_prog_rejected=no
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12977 ac_prog_rejected=yes
12981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 if test $ac_prog_rejected = yes; then
12989 # We found a bogon in the path, so make sure we never use it.
12990 set dummy $ac_cv_prog_CC
12992 if test $# != 0; then
12993 # We chose a different compiler from the bogus one.
12994 # However, it has the same basename, so the bogon will be chosen
12995 # first if we set CC to just the basename; use the full file name.
12997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13003 if test -n "$CC"; then
13004 { echo "$as_me:$LINENO: result: $CC" >&5
13005 echo "${ECHO_T}$CC" >&6; }
13007 { echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6; }
13013 if test -z "$CC"; then
13014 if test -n "$ac_tool_prefix"; then
13015 for ac_prog in cl.exe
13017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13021 if test "${ac_cv_prog_CC+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 if test -n "$CC"; then
13025 ac_cv_prog_CC="$CC" # Let the user override the test.
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 if test -n "$CC"; then
13046 { echo "$as_me:$LINENO: result: $CC" >&5
13047 echo "${ECHO_T}$CC" >&6; }
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13054 test -n "$CC" && break
13057 if test -z "$CC"; then
13059 for ac_prog in cl.exe
13061 # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 if test -n "$ac_ct_CC"; then
13069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_ac_ct_CC="$ac_prog"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089 if test -n "$ac_ct_CC"; then
13090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13091 echo "${ECHO_T}$ac_ct_CC" >&6; }
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13098 test -n "$ac_ct_CC" && break
13101 if test "x$ac_ct_CC" = x; then
13104 case $cross_compiling:$ac_tool_warned in
13106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13107 whose name does not start with the host triplet. If you think this
13108 configuration is useful to you, please write to autoconf@gnu.org." >&5
13109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13110 whose name does not start with the host triplet. If you think this
13111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13112 ac_tool_warned=yes ;;
13121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: no acceptable C compiler found in \$PATH
13124 See \`config.log' for more details." >&2;}
13125 { (exit 1); exit 1; }; }
13127 # Provide some information about the compiler.
13128 echo "$as_me:$LINENO: checking for C compiler version" >&5
13129 ac_compiler=`set X $ac_compile; echo $2`
13130 { (ac_try="$ac_compiler --version >&5"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_compiler --version >&5") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }
13140 { (ac_try="$ac_compiler -v >&5"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compiler -v >&5") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }
13150 { (ac_try="$ac_compiler -V >&5"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compiler -V >&5") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }
13161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest.$ac_objext; then
13201 ac_compiler_gnu=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13215 GCC=`test $ac_compiler_gnu = yes && echo yes`
13216 ac_test_CFLAGS=${CFLAGS+set}
13217 ac_save_CFLAGS=$CFLAGS
13218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13220 if test "${ac_cv_prog_cc_g+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_save_c_werror_flag=$ac_c_werror_flag
13224 ac_c_werror_flag=yes
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13242 rm -f conftest.$ac_objext
13243 if { (ac_try="$ac_compile"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_compile") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest.$ac_objext; then
13259 ac_cv_prog_cc_g=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13265 cat >conftest.$ac_ext <<_ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compile") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest.$ac_objext; then
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_c_werror_flag=$ac_save_c_werror_flag
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_cv_prog_cc_g=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 ac_c_werror_flag=$ac_save_c_werror_flag
13353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13355 if test "$ac_test_CFLAGS" = set; then
13356 CFLAGS=$ac_save_CFLAGS
13357 elif test $ac_cv_prog_cc_g = yes; then
13358 if test "$GCC" = yes; then
13364 if test "$GCC" = yes; then
13370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13372 if test "${ac_cv_prog_cc_c89+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_cv_prog_cc_c89=no
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <stdarg.h>
13385 #include <sys/types.h>
13386 #include <sys/stat.h>
13387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13388 struct buf { int x; };
13389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13390 static char *e (p, i)
13396 static char *f (char * (*g) (char **, int), char **p, ...)
13401 s = g (p, va_arg (v,int));
13406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13407 function prototypes and stuff, but not '\xHH' hex character constants.
13408 These don't provoke an error unfortunately, instead are silently treated
13409 as 'x'. The following induces an error, until -std is added to get
13410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13411 array size at least. It's necessary to write '\x00'==0 to get something
13412 that's true only with -std. */
13413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13416 inside strings and character constants. */
13418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13420 int test (int i, double x);
13421 struct s1 {int (*f) (int a);};
13422 struct s2 {int (*f) (double a);};
13423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13437 CC="$ac_save_CC $ac_arg"
13438 rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_compile") 2>conftest.er1
13447 grep -v '^ *+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest.$ac_objext; then
13455 ac_cv_prog_cc_c89=$ac_arg
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13463 rm -f core conftest.err conftest.$ac_objext
13464 test "x$ac_cv_prog_cc_c89" != "xno" && break
13466 rm -f conftest.$ac_ext
13471 case "x$ac_cv_prog_cc_c89" in
13473 { echo "$as_me:$LINENO: result: none needed" >&5
13474 echo "${ECHO_T}none needed" >&6; } ;;
13476 { echo "$as_me:$LINENO: result: unsupported" >&5
13477 echo "${ECHO_T}unsupported" >&6; } ;;
13479 CC="$CC $ac_cv_prog_cc_c89"
13480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491 depcc="$CC" am_compiler_list=
13493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13499 # We make a subdir and do the tests there. Otherwise we can end up
13500 # making bogus files that we don't know about and never remove. For
13501 # instance it was reported that on HP-UX the gcc test will end up
13502 # making a dummy file named `D' -- because `-MD' means `put the output
13505 # Copy depcomp to subdir because otherwise we won't find it if we're
13506 # using a relative directory.
13507 cp "$am_depcomp" conftest.dir
13509 # We will build objects and dependencies in a subdirectory because
13510 # it helps to detect inapplicable dependency modes. For instance
13511 # both Tru64's cc and ICC support -MD to output dependencies as a
13512 # side effect of compilation, but ICC will put the dependencies in
13513 # the current directory while Tru64 will put them in the object
13517 am_cv_CC_dependencies_compiler_type=none
13518 if test "$am_compiler_list" = ""; then
13519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13521 for depmode in $am_compiler_list; do
13522 # Setup a source with many dependencies, because some compilers
13523 # like to wrap large dependency lists on column 80 (with \), and
13524 # we should not choose a depcomp mode which is confused by this.
13526 # We need to recreate these files for each test, as the compiler may
13527 # overwrite some of them when testing with obscure command lines.
13528 # This happens at least with the AIX C compiler.
13530 for i in 1 2 3 4 5 6; do
13531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13533 # Solaris 8's {/usr,}/bin/sh.
13534 touch sub/conftst$i.h
13536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13540 # after this tag, mechanisms are not by side-effect, so they'll
13541 # only be used when explicitly requested
13542 if test "x$enable_dependency_tracking" = xyes; then
13550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13551 # mode. It turns out that the SunPro C++ compiler does not properly
13552 # handle `-M -o', and we need to detect this.
13553 if depmode=$depmode \
13554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13557 >/dev/null 2>conftest.err &&
13558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13561 # icc doesn't choke on unknown options, it will just issue warnings
13562 # or remarks (even with -Werror). So we grep stderr for any message
13563 # that says an option was ignored or not supported.
13564 # When given -MP, icc 7.0 and 7.1 complain thusly:
13565 # icc: Command line warning: ignoring option '-M'; no argument required
13566 # The diagnosis changed in icc 8.0:
13567 # icc: Command line remark: option '-MP' not supported
13568 if (grep 'ignoring option' conftest.err ||
13569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13570 am_cv_CC_dependencies_compiler_type=$depmode
13577 rm -rf conftest.dir
13579 am_cv_CC_dependencies_compiler_type=none
13583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13590 test "x$enable_dependency_tracking" != xno \
13591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13592 am__fastdepCC_TRUE=
13593 am__fastdepCC_FALSE='#'
13595 am__fastdepCC_TRUE='#'
13596 am__fastdepCC_FALSE=
13600 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13601 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13602 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13603 { (exit 1); exit 1; }; }
13606 # test for make depend flag
13609 if test -z "${MKDEP}"; then
13610 OL_MKDEP="${CC-cc}"
13611 if test -z "${MKDEP_FLAGS}"; then
13612 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13613 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13614 if test "${ol_cv_mkdep+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 for flag in "-M" "-xM"; do
13620 cat > conftest.c <<EOF
13623 if { ac_try='$OL_MKDEP $flag conftest.c'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } \
13629 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13631 if test ! -f conftest."${ac_object}" ; then
13633 OL_MKDEP_FLAGS="$flag"
13641 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13642 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13643 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13646 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 OL_MKDEP="${MKDEP}"
13651 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13656 if test "${ol_cv_mkdep}" = no ; then
13657 # this will soon become an error
13658 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13659 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13662 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13663 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_s_afopen+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_check_lib_save_LIBS=$LIBS
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext &&
13708 $as_test_x conftest$ac_exeext; then
13709 ac_cv_lib_s_afopen=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_lib_s_afopen=no
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13722 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13723 if test $ac_cv_lib_s_afopen = yes; then
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_AIX_SECURITY 1
13737 ac_cv_func_getopt=no
13739 cat >>confdefs.h <<\_ACEOF
13740 #define BOTH_STRINGS_H 1
13747 WITH_MODULES_ENABLED=no
13748 if test $ol_enable_modules != no ; then
13750 for ac_header in ltdl.h
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_res=`eval echo '${'$as_ac_Header'}'`
13760 { echo "$as_me:$LINENO: result: $ac_res" >&5
13761 echo "${ECHO_T}$ac_res" >&6; }
13763 # Is the header compilable?
13764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13773 #include <$ac_header>
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_compile") 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && {
13789 test -z "$ac_c_werror_flag" ||
13790 test ! -s conftest.err
13791 } && test -s conftest.$ac_objext; then
13792 ac_header_compiler=yes
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 ac_header_compiler=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6; }
13804 # Is the header present?
13805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <$ac_header>
13815 if { (ac_try="$ac_cpp conftest.$ac_ext"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null && {
13828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13829 test ! -s conftest.err
13831 ac_header_preproc=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_header_preproc=no
13839 rm -f conftest.err conftest.$ac_ext
13840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13841 echo "${ECHO_T}$ac_header_preproc" >&6; }
13843 # So? What about this header?
13844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13850 ac_header_preproc=yes
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13866 ## --------------------------------------------- ##
13867 ## Report this to <http://www.openldap.org/its/> ##
13868 ## --------------------------------------------- ##
13870 ) | sed "s/^/$as_me: WARNING: /" >&2
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 eval "$as_ac_Header=\$ac_header_preproc"
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881 { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886 cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 if test $ac_cv_header_ltdl_h = no ; then
13896 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13897 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13898 { (exit 1); exit 1; }; }
13901 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13902 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lltdl $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13925 return lt_dlinit ();
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest$ac_exeext &&
13947 $as_test_x conftest$ac_exeext; then
13948 ac_cv_lib_ltdl_lt_dlinit=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_ltdl_lt_dlinit=no
13956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13961 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13962 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13964 MODULES_LIBS=-lltdl
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_LIBLTDL 1
13974 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13975 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13976 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13977 { (exit 1); exit 1; }; }
13979 ol_link_modules=yes
13980 WITH_MODULES_ENABLED=yes
13983 for i in $Backends; do
13984 eval "ol_tmp=\$ol_enable_$i"
13985 if test $ol_tmp = mod ; then
13986 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13987 echo "$as_me: WARNING: building static $i backend" >&2;}
13988 eval "ol_enable_$i=yes"
13991 for i in $Overlays; do
13992 eval "ol_tmp=\$ol_enable_$i"
13993 if test $ol_tmp = mod ; then
13994 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13995 echo "$as_me: WARNING: building static $i overlay" >&2;}
13996 eval "ol_enable_$i=yes"
14002 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14003 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14004 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14016 #include <__ASCII__/generate_error.h>
14020 if { (ac_try="$ac_cpp conftest.$ac_ext"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } >/dev/null && {
14033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14036 ol_cv_cpp_ebcdic=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ol_cv_cpp_ebcdic=no
14044 rm -f conftest.err conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14047 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14048 if test $ol_cv_cpp_ebcdic = yes ; then
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_EBCDIC 1
14056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14058 if test "${ol_cv_header_stdc+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <stdlib.h>
14068 #include <stdarg.h>
14069 #include <string.h>
14072 if { (ac_try="$ac_cpp conftest.$ac_ext"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } >/dev/null && {
14085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14088 ol_cv_header_stdc=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ol_cv_header_stdc=no
14096 rm -f conftest.err conftest.$ac_ext
14098 if test $ol_cv_header_stdc = yes; then
14099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 #include <string.h>
14109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14110 $EGREP "memchr" >/dev/null 2>&1; then
14113 ol_cv_header_stdc=no
14119 if test $ol_cv_header_stdc = yes; then
14120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <stdlib.h>
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "free" >/dev/null 2>&1; then
14134 ol_cv_header_stdc=no
14140 if test $ol_cv_header_stdc = yes; then
14141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14142 if test "$cross_compiling" = yes; then
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14152 #ifndef HAVE_EBCDIC
14153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14156 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14157 || ('j' <= (c) && (c) <= 'r') \
14158 || ('s' <= (c) && (c) <= 'z'))
14159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14162 int main () { int i; for (i = 0; i < 256; i++)
14163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14167 rm -f conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_link") 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14189 echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ( exit $ac_status )
14194 ol_cv_header_stdc=no
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14202 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14203 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14204 if test $ol_cv_header_stdc = yes; then
14205 cat >>confdefs.h <<\_ACEOF
14206 #define STDC_HEADERS 1
14210 ac_cv_header_stdc=disable
14213 if test $ol_cv_header_stdc != yes; then
14214 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14215 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14223 ac_header_dirent=no
14224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14225 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 eval "$as_ac_Header=yes"
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 eval "$as_ac_Header=no"
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277 { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14280 cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14284 ac_header_dirent=$ac_hdr; break
14288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14289 if test $ac_header_dirent = dirent.h; then
14290 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14292 if test "${ac_cv_search_opendir+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 ac_func_search_save_LIBS=$LIBS
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14318 for ac_lib in '' dir; do
14319 if test -z "$ac_lib"; then
14320 ac_res="none required"
14323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest$ac_exeext &&
14342 $as_test_x conftest$ac_exeext; then
14343 ac_cv_search_opendir=$ac_res
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 if test "${ac_cv_search_opendir+set}" = set; then
14357 if test "${ac_cv_search_opendir+set}" = set; then
14360 ac_cv_search_opendir=no
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14367 ac_res=$ac_cv_search_opendir
14368 if test "$ac_res" != no; then
14369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14376 if test "${ac_cv_search_opendir+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_func_search_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14402 for ac_lib in '' x; do
14403 if test -z "$ac_lib"; then
14404 ac_res="none required"
14407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest$ac_exeext &&
14426 $as_test_x conftest$ac_exeext; then
14427 ac_cv_search_opendir=$ac_res
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14437 if test "${ac_cv_search_opendir+set}" = set; then
14441 if test "${ac_cv_search_opendir+set}" = set; then
14444 ac_cv_search_opendir=no
14446 rm conftest.$ac_ext
14447 LIBS=$ac_func_search_save_LIBS
14449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14451 ac_res=$ac_cv_search_opendir
14452 if test "$ac_res" != no; then
14453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <sys/types.h>
14471 #include <sys/wait.h>
14472 #ifndef WEXITSTATUS
14473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
14506 ac_cv_header_sys_wait_h=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_cv_header_sys_wait_h=no
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14518 if test $ac_cv_header_sys_wait_h = yes; then
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_SYS_WAIT_H 1
14526 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14527 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14528 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <sys/types.h>
14538 #include <termios.h>
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545 $EGREP "yes" >/dev/null 2>&1; then
14546 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14548 ac_cv_sys_tiocgwinsz_in_termios_h=no
14553 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14554 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14556 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14557 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14558 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14559 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14569 #include <sys/ioctl.h>
14575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14576 $EGREP "yes" >/dev/null 2>&1; then
14577 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14579 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14584 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14585 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14587 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14589 cat >>confdefs.h <<\_ACEOF
14590 #define GWINSZ_IN_SYS_IOCTL 1
14694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 ac_res=`eval echo '${'$as_ac_Header'}'`
14702 { echo "$as_me:$LINENO: result: $ac_res" >&5
14703 echo "${ECHO_T}$ac_res" >&6; }
14705 # Is the header compilable?
14706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 #include <$ac_header>
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_compile") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
14734 ac_header_compiler=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_header_compiler=no
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <$ac_header>
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_preproc=no
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14808 ## --------------------------------------------- ##
14809 ## Report this to <http://www.openldap.org/its/> ##
14810 ## --------------------------------------------- ##
14812 ) | sed "s/^/$as_me: WARNING: /" >&2
14815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 eval "$as_ac_Header=\$ac_header_preproc"
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823 { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14837 if test "$ac_cv_mingw32" = yes \
14838 -o "$ac_cv_interix" = yes \
14839 -o "$ol_cv_msvc" = yes
14843 for ac_header in winsock.h winsock2.h
14845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853 { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14856 # Is the header compilable?
14857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14866 #include <$ac_header>
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_compile") 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest.$ac_objext; then
14885 ac_header_compiler=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_header_compiler=no
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <$ac_header>
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null && {
14921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14924 ac_header_preproc=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14959 ## --------------------------------------------- ##
14960 ## Report this to <http://www.openldap.org/its/> ##
14961 ## --------------------------------------------- ##
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 eval "$as_ac_Header=\$ac_header_preproc"
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974 { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990 for ac_header in resolv.h
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 #include <netinet/in.h>
15008 #include <$ac_header>
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 eval "$as_ac_Header=yes"
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 eval "$as_ac_Header=no"
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 for ac_header in netinet/tcp.h
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 #include <netinet/in.h>
15069 #include <$ac_header>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } && {
15085 test -z "$ac_c_werror_flag" ||
15086 test ! -s conftest.err
15087 } && test -s conftest.$ac_objext; then
15088 eval "$as_ac_Header=yes"
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 eval "$as_ac_Header=no"
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099 { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112 for ac_header in sys/ucred.h
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15127 #ifdef HAVE_SYS_PARAM_H
15128 #include <sys/param.h>
15132 #include <$ac_header>
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_compile") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest.$ac_objext; then
15151 eval "$as_ac_Header=yes"
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 eval "$as_ac_Header=no"
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15177 for ac_func in sigaction sigset
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15225 return $ac_func ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 eval "$as_ac_var=yes"
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no"
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15273 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15274 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any GCC internal prototype to avoid an error.
15288 Use char because int might match the return type of a GCC
15289 builtin and then its argument prototype would still apply. */
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_link") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest$ac_exeext &&
15319 $as_test_x conftest$ac_exeext; then
15320 ac_cv_lib_V3_sigset=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_cv_lib_V3_sigset=no
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329 conftest$ac_exeext conftest.$ac_ext
15330 LIBS=$ac_check_lib_save_LIBS
15332 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15333 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15334 if test $ac_cv_lib_V3_sigset = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_LIBV3 1
15345 if test $ol_cv_msvc = yes ; then
15349 if test "$ac_cv_header_winsock_h" = yes; then
15350 { echo "$as_me:$LINENO: checking for winsock" >&5
15351 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15352 if test "${ol_cv_winsock+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 for curlib in none ws2_32 wsock32; do
15358 if test $curlib != none ; then
15359 LIBS="$save_LIBS -l$curlib"
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <winsock.h>
15374 select(0,NULL,NULL,NULL,NULL);
15376 gethostname(NULL,0);
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_link") 2>conftest.er1
15391 grep -v '^ *+' conftest.er1 >conftest.err
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest$ac_exeext &&
15399 $as_test_x conftest$ac_exeext; then
15400 ol_cv_winsock=$curlib
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15411 test "$ol_cv_winsock" != no && break
15416 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15417 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15419 if test $ol_cv_winsock != no ; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_WINSOCK 1
15425 ac_cv_func_socket=yes
15426 ac_cv_func_select=yes
15427 ac_cv_func_closesocket=yes
15428 ac_cv_func_gethostname=yes
15430 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15431 LIBS="$LIBS -l$ol_cv_winsock"
15434 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_WINSOCK2 1
15445 { echo "$as_me:$LINENO: checking for socket" >&5
15446 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_socket+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15458 #define socket innocuous_socket
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char socket (); below.
15462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463 <limits.h> exists even on freestanding compilers. */
15466 # include <limits.h>
15468 # include <assert.h>
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined __stub_socket || defined __stub___socket
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && {
15509 test -z "$ac_c_werror_flag" ||
15510 test ! -s conftest.err
15511 } && test -s conftest$ac_exeext &&
15512 $as_test_x conftest$ac_exeext; then
15513 ac_cv_func_socket=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_func_socket=no
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15524 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15525 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15526 if test $ac_cv_func_socket = yes; then
15531 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15532 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_socket_main+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lsocket $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 ac_cv_lib_socket_main=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_cv_lib_socket_main=no
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15584 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15585 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15586 if test $ac_cv_lib_socket_main = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define HAVE_LIBSOCKET 1
15591 LIBS="-lsocket $LIBS"
15596 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15597 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_net_main+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext &&
15636 $as_test_x conftest$ac_exeext; then
15637 ac_cv_lib_net_main=yes
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_net_main=no
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15650 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15651 if test $ac_cv_lib_net_main = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBNET 1
15661 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15662 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lnsl_s $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext &&
15701 $as_test_x conftest$ac_exeext; then
15702 ac_cv_lib_nsl_s_main=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_cv_lib_nsl_s_main=no
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15715 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15716 if test $ac_cv_lib_nsl_s_main = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_LIBNSL_S 1
15721 LIBS="-lnsl_s $LIBS"
15726 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15727 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15728 if test "${ac_cv_lib_nsl_main+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 ac_check_lib_save_LIBS=$LIBS
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 ac_cv_lib_nsl_main=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_nsl_main=no
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15780 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15781 if test $ac_cv_lib_nsl_main = yes; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBNSL 1
15791 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15792 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_inet_socket+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-linet $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 ac_cv_lib_inet_socket=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_cv_lib_inet_socket=no
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15851 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15852 if test $ac_cv_lib_inet_socket = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_LIBINET 1
15857 LIBS="-linet $LIBS"
15862 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15863 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gen_main+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 ac_check_lib_save_LIBS=$LIBS
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (ac_try="$ac_link"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_link") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest$ac_exeext &&
15902 $as_test_x conftest$ac_exeext; then
15903 ac_cv_lib_gen_main=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_cv_lib_gen_main=no
15911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15912 conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15916 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15917 if test $ac_cv_lib_gen_main = yes; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define HAVE_LIBGEN 1
15930 { echo "$as_me:$LINENO: checking for select" >&5
15931 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15932 if test "${ac_cv_func_select+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 /* Define select to an innocuous variant, in case <limits.h> declares select.
15942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15943 #define select innocuous_select
15945 /* System header to define __stub macros and hopefully few prototypes,
15946 which can conflict with char select (); below.
15947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15948 <limits.h> exists even on freestanding compilers. */
15951 # include <limits.h>
15953 # include <assert.h>
15958 /* Override any GCC internal prototype to avoid an error.
15959 Use char because int might match the return type of a GCC
15960 builtin and then its argument prototype would still apply. */
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined __stub_select || defined __stub___select
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 ac_cv_func_select=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_cv_func_select=no
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16010 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16011 if test $ac_cv_func_select = yes; then
16014 { { echo "$as_me:$LINENO: error: select() required." >&5
16015 echo "$as_me: error: select() required." >&2;}
16016 { (exit 1); exit 1; }; }
16020 if test "${ac_cv_header_winsock_h}" != yes; then
16023 for ac_header in sys/select.h sys/socket.h
16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16036 # Is the header compilable?
16037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16046 #include <$ac_header>
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.$ac_objext; then
16065 ac_header_compiler=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_header_compiler=no
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <$ac_header>
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16104 ac_header_preproc=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139 ## --------------------------------------------- ##
16140 ## Report this to <http://www.openldap.org/its/> ##
16141 ## --------------------------------------------- ##
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16168 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16169 if test "${ac_cv_func_select_args+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16173 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16174 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 #ifdef HAVE_SYS_SELECT_H
16183 # include <sys/select.h>
16185 #ifdef HAVE_SYS_SOCKET_H
16186 # include <sys/socket.h>
16192 extern int select ($ac_arg1,
16193 $ac_arg234, $ac_arg234, $ac_arg234,
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest.$ac_objext; then
16216 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 # Provide a safe default value.
16229 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16232 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16233 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16234 ac_save_IFS=$IFS; IFS=','
16235 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16239 cat >>confdefs.h <<_ACEOF
16240 #define SELECT_TYPE_ARG1 $1
16244 cat >>confdefs.h <<_ACEOF
16245 #define SELECT_TYPE_ARG234 ($2)
16249 cat >>confdefs.h <<_ACEOF
16250 #define SELECT_TYPE_ARG5 ($3)
16259 for ac_func in poll
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16283 # include <limits.h>
16285 # include <assert.h>
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16307 return $ac_func ();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 eval "$as_ac_var=no"
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352 if test $ac_cv_func_poll = yes; then
16355 for ac_header in poll.h sys/poll.h
16357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16368 # Is the header compilable?
16369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 $ac_includes_default
16378 #include <$ac_header>
16380 rm -f conftest.$ac_objext
16381 if { (ac_try="$ac_compile"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_compile") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest.$ac_objext; then
16397 ac_header_compiler=yes
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_header_compiler=no
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6; }
16409 # Is the header present?
16410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <$ac_header>
16420 if { (ac_try="$ac_cpp conftest.$ac_ext"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } >/dev/null && {
16433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16436 ac_header_preproc=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_preproc=no
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448 # So? What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ## --------------------------------------------- ##
16472 ## Report this to <http://www.openldap.org/its/> ##
16473 ## --------------------------------------------- ##
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 eval "$as_ac_Header=\$ac_header_preproc"
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16502 for ac_header in sys/epoll.h
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_res=`eval echo '${'$as_ac_Header'}'`
16512 { echo "$as_me:$LINENO: result: $ac_res" >&5
16513 echo "${ECHO_T}$ac_res" >&6; }
16515 # Is the header compilable?
16516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 #include <$ac_header>
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_compile") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest.$ac_objext; then
16544 ac_header_compiler=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_compiler=no
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554 echo "${ECHO_T}$ac_header_compiler" >&6; }
16556 # Is the header present?
16557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 #include <$ac_header>
16567 if { (ac_try="$ac_cpp conftest.$ac_ext"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } >/dev/null && {
16580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16583 ac_header_preproc=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_header_preproc=no
16591 rm -f conftest.err conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6; }
16595 # So? What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16602 ac_header_preproc=yes
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16618 ## --------------------------------------------- ##
16619 ## Report this to <http://www.openldap.org/its/> ##
16620 ## --------------------------------------------- ##
16622 ) | sed "s/^/$as_me: WARNING: /" >&2
16625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 eval "$as_ac_Header=\$ac_header_preproc"
16632 ac_res=`eval echo '${'$as_ac_Header'}'`
16633 { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16646 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16647 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16648 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16649 if test "$cross_compiling" = yes; then
16650 { echo "$as_me:$LINENO: result: no" >&5
16651 echo "${ECHO_T}no" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 int main(int argc, char **argv)
16661 int epfd = epoll_create(256);
16662 exit (epfd == -1 ? 1 : 0);
16665 rm -f conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16688 cat >>confdefs.h <<\_ACEOF
16689 #define HAVE_EPOLL 1
16693 echo "$as_me: program exited with status $ac_status" >&5
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ( exit $ac_status )
16698 { echo "$as_me:$LINENO: result: no" >&5
16699 echo "${ECHO_T}no" >&6; }
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16708 for ac_header in sys/devpoll.h
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 ac_res=`eval echo '${'$as_ac_Header'}'`
16718 { echo "$as_me:$LINENO: result: $ac_res" >&5
16719 echo "${ECHO_T}$ac_res" >&6; }
16721 # Is the header compilable?
16722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 #include <$ac_header>
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.$ac_objext; then
16750 ac_header_compiler=yes
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_header_compiler=no
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6; }
16762 # Is the header present?
16763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 #include <$ac_header>
16773 if { (ac_try="$ac_cpp conftest.$ac_ext"
16774 case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } >/dev/null && {
16786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16789 ac_header_preproc=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_preproc=no
16797 rm -f conftest.err conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 echo "${ECHO_T}$ac_header_preproc" >&6; }
16801 # So? What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16808 ac_header_preproc=yes
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16824 ## --------------------------------------------- ##
16825 ## Report this to <http://www.openldap.org/its/> ##
16826 ## --------------------------------------------- ##
16828 ) | sed "s/^/$as_me: WARNING: /" >&2
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 eval "$as_ac_Header=\$ac_header_preproc"
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16852 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16853 -a "${ac_cv_header_poll_h}" = yes ; \
16855 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16856 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16857 if test "$cross_compiling" = yes; then
16858 { echo "$as_me:$LINENO: result: no" >&5
16859 echo "${ECHO_T}no" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 int main(int argc, char **argv)
16869 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16870 exit (devpollfd == -1 ? 1 : 0);
16873 rm -f conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEVPOLL 1
16901 echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ( exit $ac_status )
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16916 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16917 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16929 #include <sys/types.h>
16932 #include <stdlib.h>
16937 char *c = (char *) *sys_errlist
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_compile") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest.$ac_objext; then
16959 ol_cv_dcl_sys_errlist=yes
16960 ol_cv_have_sys_errlist=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ol_cv_dcl_sys_errlist=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16971 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16973 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16974 if test $ol_cv_dcl_sys_errlist = no ; then
16976 cat >>confdefs.h <<\_ACEOF
16977 #define DECL_SYS_ERRLIST 1
16981 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16982 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16983 if test "${ol_cv_have_sys_errlist+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16997 char *c = (char *) *sys_errlist
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && {
17016 test -z "$ac_c_werror_flag" ||
17017 test ! -s conftest.err
17018 } && test -s conftest$ac_exeext &&
17019 $as_test_x conftest$ac_exeext; then
17020 ol_cv_have_sys_errlist=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ol_cv_have_sys_errlist=no
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029 conftest$ac_exeext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17032 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17034 if test $ol_cv_have_sys_errlist = yes ; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_SYS_ERRLIST 1
17043 for ac_func in strerror strerror_r
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 return $ac_func ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17114 eval "$as_ac_var=yes"
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 eval "$as_ac_var=no"
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123 conftest$ac_exeext conftest.$ac_ext
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126 { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17136 ol_cv_func_strerror_r=no
17137 if test "${ac_cv_func_strerror_r}" = yes ; then
17138 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17139 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17140 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <string.h>
17152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17153 $EGREP "strerror_r" >/dev/null 2>&1; then
17154 ol_decl_strerror_r=yes
17156 ol_decl_strerror_r=no
17160 if test $ol_decl_strerror_r = yes ; then
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <string.h>
17171 /* from autoconf 2.59 */
17173 char x = *strerror_r (0, buf, sizeof buf);
17174 char *p = strerror_r (0, buf, sizeof buf);
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ol_cv_nonposix_strerror_r=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ol_cv_nonposix_strerror_r=no
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 if test "$cross_compiling" = yes; then
17208 ol_cv_nonposix_strerror=no
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17220 strerror_r( 1, buf, sizeof buf );
17221 exit( buf[0] == 0 );
17225 rm -f conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ol_cv_nonposix_strerror_r=yes
17247 echo "$as_me: program exited with status $ac_status" >&5
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ( exit $ac_status )
17252 ol_cv_nonposix_strerror=no
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17262 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17263 if test $ol_cv_nonposix_strerror_r = yes ; then
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_NONPOSIX_STRERROR_R 1
17271 elif test "${ac_cv_func_strerror}" = no ; then
17272 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17273 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17274 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17286 #include <sys/types.h>
17289 #include <stdlib.h>
17294 char *c = (char *) *sys_errlist
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest.$ac_objext; then
17316 ol_cv_dcl_sys_errlist=yes
17317 ol_cv_have_sys_errlist=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ol_cv_dcl_sys_errlist=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17328 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17331 if test $ol_cv_dcl_sys_errlist = no ; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define DECL_SYS_ERRLIST 1
17338 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17339 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17340 if test "${ol_cv_have_sys_errlist+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17354 char *c = (char *) *sys_errlist
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 ol_cv_have_sys_errlist=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ol_cv_have_sys_errlist=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17389 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17391 if test $ol_cv_have_sys_errlist = yes ; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_SYS_ERRLIST 1
17403 for ac_header in regex.h
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 $ac_includes_default
17418 #ifdef HAVE_SYS_TYPES_H
17419 #include <sys/types.h>
17423 #include <$ac_header>
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 eval "$as_ac_Header=yes"
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 eval "$as_ac_Header=no"
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452 ac_res=`eval echo '${'$as_ac_Header'}'`
17453 { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465 if test "$ac_cv_header_regex_h" != yes ; then
17466 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17467 echo "$as_me: error: POSIX regex.h required." >&2;}
17468 { (exit 1); exit 1; }; }
17470 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17471 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17472 if test "${ac_cv_search_regfree+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_func_search_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17498 for ac_lib in '' regex gnuregex; do
17499 if test -z "$ac_lib"; then
17500 ac_res="none required"
17503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext &&
17522 $as_test_x conftest$ac_exeext; then
17523 ac_cv_search_regfree=$ac_res
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 if test "${ac_cv_search_regfree+set}" = set; then
17537 if test "${ac_cv_search_regfree+set}" = set; then
17540 ac_cv_search_regfree=no
17542 rm conftest.$ac_ext
17543 LIBS=$ac_func_search_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17546 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17547 ac_res=$ac_cv_search_regfree
17548 if test "$ac_res" != no; then
17549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17552 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17553 echo "$as_me: error: POSIX regex required." >&2;}
17554 { (exit 1); exit 1; }; }
17559 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17560 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17561 if test "${ol_cv_c_posix_regex+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 if test "$cross_compiling" = yes; then
17566 ol_cv_c_posix_regex=cross
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17575 #include <sys/types.h>
17577 static char *pattern, *string;
17585 if(regcomp(&re, pattern, 0)) {
17589 string = "ALL MATCH";
17591 rc = regexec(&re, string, 0, (void*)0, 0);
17598 rm -f conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ol_cv_c_posix_regex=yes
17620 echo "$as_me: program exited with status $ac_status" >&5
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ( exit $ac_status )
17625 ol_cv_c_posix_regex=no
17627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17633 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17635 if test "$ol_cv_c_posix_regex" = no ; then
17636 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17637 echo "$as_me: error: broken POSIX regex!" >&2;}
17638 { (exit 1); exit 1; }; }
17644 for ac_header in sys/uuid.h
17646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_res=`eval echo '${'$as_ac_Header'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17657 # Is the header compilable?
17658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 $ac_includes_default
17667 #include <$ac_header>
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_compile") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && {
17683 test -z "$ac_c_werror_flag" ||
17684 test ! -s conftest.err
17685 } && test -s conftest.$ac_objext; then
17686 ac_header_compiler=yes
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 ac_header_compiler=no
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17696 echo "${ECHO_T}$ac_header_compiler" >&6; }
17698 # Is the header present?
17699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <$ac_header>
17709 if { (ac_try="$ac_cpp conftest.$ac_ext"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } >/dev/null && {
17722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17725 ac_header_preproc=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_header_preproc=no
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17737 # So? What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744 ac_header_preproc=yes
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17760 ## --------------------------------------------- ##
17761 ## Report this to <http://www.openldap.org/its/> ##
17762 ## --------------------------------------------- ##
17764 ) | sed "s/^/$as_me: WARNING: /" >&2
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 eval "$as_ac_Header=\$ac_header_preproc"
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17788 if test $ac_cv_header_sys_uuid_h = yes ; then
17790 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17791 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17792 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ac_func_search_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17809 char uuid_to_str ();
17813 return uuid_to_str ();
17818 for ac_lib in '' uuid; do
17819 if test -z "$ac_lib"; then
17820 ac_res="none required"
17823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext &&
17842 $as_test_x conftest$ac_exeext; then
17843 ac_cv_search_uuid_to_str=$ac_res
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17857 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17860 ac_cv_search_uuid_to_str=no
17862 rm conftest.$ac_ext
17863 LIBS=$ac_func_search_save_LIBS
17865 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17866 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17867 ac_res=$ac_cv_search_uuid_to_str
17868 if test "$ac_res" != no; then
17869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17875 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17876 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17877 if test "${ac_cv_search_uuid_create+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 ac_func_search_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17894 char uuid_create ();
17898 return uuid_create ();
17903 for ac_lib in '' uuid; do
17904 if test -z "$ac_lib"; then
17905 ac_res="none required"
17908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_link") 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest$ac_exeext &&
17927 $as_test_x conftest$ac_exeext; then
17928 ac_cv_search_uuid_create=$ac_res
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 if test "${ac_cv_search_uuid_create+set}" = set; then
17942 if test "${ac_cv_search_uuid_create+set}" = set; then
17945 ac_cv_search_uuid_create=no
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17950 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17951 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17952 ac_res=$ac_cv_search_uuid_create
17953 if test "$ac_res" != no; then
17954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17962 if test $have_uuid = yes ; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_UUID_TO_STR 1
17969 test "$ac_cv_search_uuid_to_str" = "none required" || \
17970 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17974 if test $have_uuid = no ; then
17976 for ac_header in uuid/uuid.h
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18092 ## --------------------------------------------- ##
18093 ## Report this to <http://www.openldap.org/its/> ##
18094 ## --------------------------------------------- ##
18096 ) | sed "s/^/$as_me: WARNING: /" >&2
18099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 eval "$as_ac_Header=\$ac_header_preproc"
18106 ac_res=`eval echo '${'$as_ac_Header'}'`
18107 { echo "$as_me:$LINENO: result: $ac_res" >&5
18108 echo "${ECHO_T}$ac_res" >&6; }
18111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18112 cat >>confdefs.h <<_ACEOF
18113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18120 if test $ac_cv_header_uuid_uuid_h = yes ; then
18122 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18123 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18124 if test "${ac_cv_search_uuid_generate+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_func_search_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18141 char uuid_generate ();
18145 return uuid_generate ();
18150 for ac_lib in '' uuid; do
18151 if test -z "$ac_lib"; then
18152 ac_res="none required"
18155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && {
18171 test -z "$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 } && test -s conftest$ac_exeext &&
18174 $as_test_x conftest$ac_exeext; then
18175 ac_cv_search_uuid_generate=$ac_res
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18185 if test "${ac_cv_search_uuid_generate+set}" = set; then
18189 if test "${ac_cv_search_uuid_generate+set}" = set; then
18192 ac_cv_search_uuid_generate=no
18194 rm conftest.$ac_ext
18195 LIBS=$ac_func_search_save_LIBS
18197 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18198 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18199 ac_res=$ac_cv_search_uuid_generate
18200 if test "$ac_res" != no; then
18201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18207 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18208 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18209 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 ac_func_search_save_LIBS=$LIBS
18213 cat >conftest.$ac_ext <<_ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18220 /* Override any GCC internal prototype to avoid an error.
18221 Use char because int might match the return type of a GCC
18222 builtin and then its argument prototype would still apply. */
18226 char uuid_unparse_lower ();
18230 return uuid_unparse_lower ();
18235 for ac_lib in '' uuid; do
18236 if test -z "$ac_lib"; then
18237 ac_res="none required"
18240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_link") 2>conftest.er1
18251 grep -v '^ *+' conftest.er1 >conftest.err
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_c_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest$ac_exeext &&
18259 $as_test_x conftest$ac_exeext; then
18260 ac_cv_search_uuid_unparse_lower=$ac_res
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18274 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18277 ac_cv_search_uuid_unparse_lower=no
18279 rm conftest.$ac_ext
18280 LIBS=$ac_func_search_save_LIBS
18282 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18283 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18284 ac_res=$ac_cv_search_uuid_unparse_lower
18285 if test "$ac_res" != no; then
18286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18294 if test $have_uuid = yes ; then
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_UUID_GENERATE 1
18301 test "$ac_cv_search_uuid_generate" = "none required" || \
18302 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18307 if test $have_uuid = no ; then
18308 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18309 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18311 LIBS="$LIBS -lrpcrt4"
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18319 int __stdcall UuidCreate(void *);
18320 int __stdcall UuidToStringA(void *,void **);
18327 UuidToStringA(0,0);
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18361 if test $need_rpcrt = yes; then
18362 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18365 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18366 echo "${ECHO_T}$need_rpcrt" >&6; }
18369 ol_cv_lib_resolver=no
18370 if test $ol_cv_lib_resolver = no ; then
18371 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18372 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18373 if test "${ol_cv_resolver_none+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 LIBS="$ol_RESOLVER_LIB $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 #ifdef HAVE_SYS_TYPES_H
18389 # include <sys/types.h>
18391 #include <netinet/in.h>
18392 #ifdef HAVE_ARPA_NAMESER_H
18393 # include <arpa/nameser.h>
18395 #ifdef HAVE_RESOLV_H
18396 # include <resolv.h>
18404 char *request = NULL;
18405 unsigned char reply[64*1024];
18406 unsigned char host[64*1024];
18410 /* Bind 8/9 interface */
18411 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18413 /* Bind 4 interface */
18417 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18421 /* Bind 8/9 interface */
18423 #elif defined(HFIXEDSZ)
18424 /* Bind 4 interface w/ HFIXEDSZ */
18427 /* Bind 4 interface w/o HFIXEDSZ */
18428 p += sizeof(HEADER);
18430 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext &&
18453 $as_test_x conftest$ac_exeext; then
18454 ol_cv_resolver_none=yes
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ol_cv_resolver_none=no
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18469 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18471 if test $ol_cv_resolver_none = yes ; then
18472 ol_cv_lib_resolver=yes
18476 if test $ol_cv_lib_resolver = no ; then
18477 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18478 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18479 if test "${ol_cv_resolver_resolv+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ol_RESOLVER_LIB=-lresolv
18485 LIBS="$ol_RESOLVER_LIB $LIBS"
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18494 #ifdef HAVE_SYS_TYPES_H
18495 # include <sys/types.h>
18497 #include <netinet/in.h>
18498 #ifdef HAVE_ARPA_NAMESER_H
18499 # include <arpa/nameser.h>
18501 #ifdef HAVE_RESOLV_H
18502 # include <resolv.h>
18510 char *request = NULL;
18511 unsigned char reply[64*1024];
18512 unsigned char host[64*1024];
18516 /* Bind 8/9 interface */
18517 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18519 /* Bind 4 interface */
18523 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18527 /* Bind 8/9 interface */
18529 #elif defined(HFIXEDSZ)
18530 /* Bind 4 interface w/ HFIXEDSZ */
18533 /* Bind 4 interface w/o HFIXEDSZ */
18534 p += sizeof(HEADER);
18536 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18551 grep -v '^ *+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && {
18556 test -z "$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 } && test -s conftest$ac_exeext &&
18559 $as_test_x conftest$ac_exeext; then
18560 ol_cv_resolver_resolv=yes
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ol_cv_resolver_resolv=no
18568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18569 conftest$ac_exeext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18575 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18577 if test $ol_cv_resolver_resolv = yes ; then
18578 ol_cv_lib_resolver=-lresolv
18582 if test $ol_cv_lib_resolver = no ; then
18583 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18584 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18585 if test "${ol_cv_resolver_bind+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ol_RESOLVER_LIB=-lbind
18591 LIBS="$ol_RESOLVER_LIB $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 #ifdef HAVE_SYS_TYPES_H
18601 # include <sys/types.h>
18603 #include <netinet/in.h>
18604 #ifdef HAVE_ARPA_NAMESER_H
18605 # include <arpa/nameser.h>
18607 #ifdef HAVE_RESOLV_H
18608 # include <resolv.h>
18616 char *request = NULL;
18617 unsigned char reply[64*1024];
18618 unsigned char host[64*1024];
18622 /* Bind 8/9 interface */
18623 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18625 /* Bind 4 interface */
18629 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18633 /* Bind 8/9 interface */
18635 #elif defined(HFIXEDSZ)
18636 /* Bind 4 interface w/ HFIXEDSZ */
18639 /* Bind 4 interface w/o HFIXEDSZ */
18640 p += sizeof(HEADER);
18642 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ol_cv_resolver_bind=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ol_cv_resolver_bind=no
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18681 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18683 if test $ol_cv_resolver_bind = yes ; then
18684 ol_cv_lib_resolver=-lbind
18691 if test "$ol_cv_lib_resolver" != no ; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_RES_QUERY 1
18698 if test "$ol_enable_dnssrv" != no ; then
18702 if test "$ol_cv_lib_resolver" != yes ; then
18703 LIBS="$ol_cv_lib_resolver $LIBS"
18707 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18708 if test "$ol_link_dnssrv" = no ; then
18709 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18710 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18711 { (exit 1); exit 1; }; }
18714 ol_enable_dnssrv=no
18718 for ac_func in hstrerror
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 eval "$as_ac_var=yes"
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 eval "$as_ac_var=no"
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801 { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18832 #define $ac_func innocuous_$ac_func
18834 /* System header to define __stub macros and hopefully few prototypes,
18835 which can conflict with char $ac_func (); below.
18836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837 <limits.h> exists even on freestanding compilers. */
18840 # include <limits.h>
18842 # include <assert.h>
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18854 /* The GNU C library defines this for functions which it implements
18855 to always fail with ENOSYS. Some functions are actually named
18856 something starting with __ and the normal name is an alias. */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18864 return $ac_func ();
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest$ac_exeext &&
18886 $as_test_x conftest$ac_exeext; then
18887 eval "$as_ac_var=yes"
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 eval "$as_ac_var=no"
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896 conftest$ac_exeext conftest.$ac_ext
18898 ac_res=`eval echo '${'$as_ac_var'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18912 if test $ol_enable_ipv6 = yes ; then
18913 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18914 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18915 { (exit 1); exit 1; }; }
18917 elif test $ol_enable_ipv6 != no ; then
18918 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18919 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18920 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18931 # include <netinet/in.h>
18932 # ifdef INET6_ADDRSTRLEN
18933 __has_inet6_addrstrlen__;
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18939 ol_cv_inet6_addrstrlen=yes
18941 ol_cv_inet6_addrstrlen=no
18946 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18947 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18950 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18951 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18952 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #include <sys/types.h>
18964 #include <sys/socket.h>
18970 struct sockaddr_storage ss;
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_compile") 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } && {
18990 test -z "$ac_c_werror_flag" ||
18991 test ! -s conftest.err
18992 } && test -s conftest.$ac_objext; then
18993 ol_cv_struct_sockaddr_storage=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ol_cv_struct_sockaddr_storage=no
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19004 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19006 if test $ol_cv_inet6_addrstrlen = yes &&
19007 test $ol_cv_struct_sockaddr_storage = yes ; then
19009 elif test $ol_enable_ipv6 = yes &&
19010 test $ol_cv_inet6_addrstrlen = no ; then
19011 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19012 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19013 { (exit 1); exit 1; }; }
19014 elif test $ol_enable_ipv6 = yes &&
19015 test $ol_cv_struct_sockaddr_storage = no ; then
19016 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19017 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19018 { (exit 1); exit 1; }; }
19022 if test $ol_enable_local != no ; then
19024 for ac_header in sys/un.h
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 ac_res=`eval echo '${'$as_ac_Header'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19037 # Is the header compilable?
19038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 $ac_includes_default
19047 #include <$ac_header>
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_header_compiler=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <$ac_header>
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null && {
19102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19105 ac_header_preproc=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19140 ## --------------------------------------------- ##
19141 ## Report this to <http://www.openldap.org/its/> ##
19142 ## --------------------------------------------- ##
19144 ) | sed "s/^/$as_me: WARNING: /" >&2
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 eval "$as_ac_Header=\$ac_header_preproc"
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 if test $ol_enable_local = auto ; then
19170 ol_enable_local=$ac_cv_header_sys_un_h
19171 elif test $ac_cv_header_sys_un_h = no ; then
19172 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19173 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19174 { (exit 1); exit 1; }; }
19179 if test $ol_with_tls = yes ; then
19184 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19186 for ac_header in openssl/ssl.h
19188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 ac_res=`eval echo '${'$as_ac_Header'}'`
19196 { echo "$as_me:$LINENO: result: $ac_res" >&5
19197 echo "${ECHO_T}$ac_res" >&6; }
19199 # Is the header compilable?
19200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 $ac_includes_default
19209 #include <$ac_header>
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_compile") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_c_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest.$ac_objext; then
19228 ac_header_compiler=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_header_compiler=no
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19238 echo "${ECHO_T}$ac_header_compiler" >&6; }
19240 # Is the header present?
19241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <$ac_header>
19251 if { (ac_try="$ac_cpp conftest.$ac_ext"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } >/dev/null && {
19264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19267 ac_header_preproc=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_header_preproc=no
19275 rm -f conftest.err conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6; }
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286 ac_header_preproc=yes
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19302 ## --------------------------------------------- ##
19303 ## Report this to <http://www.openldap.org/its/> ##
19304 ## --------------------------------------------- ##
19306 ) | sed "s/^/$as_me: WARNING: /" >&2
19309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 eval "$as_ac_Header=\$ac_header_preproc"
19316 ac_res=`eval echo '${'$as_ac_Header'}'`
19317 { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19331 if test $ac_cv_header_openssl_ssl_h = yes ; then
19332 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19333 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lssl -lcrypto $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char SSL_library_init ();
19356 return SSL_library_init ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_ssl_SSL_library_init=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_ssl_SSL_library_init=no
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19392 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19393 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19401 if test $have_openssl = no ; then
19402 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19403 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19422 char ssl3_accept ();
19426 return ssl3_accept ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_ssl_ssl3_accept=yes
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_ssl_ssl3_accept=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19472 if test $have_openssl = yes ; then
19473 ol_with_tls=openssl
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19482 if test $need_rsaref = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19489 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19491 TLS_LIBS="-lssl -lcrypto"
19494 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19511 /* Require 0.9.7d+ */
19512 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19513 char *__ssl_compat = "0.9.7d";
19517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19518 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19519 ol_cv_ssl_crl_compat=yes
19521 ol_cv_ssl_crl_compat=no
19526 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19527 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19529 if test $ol_cv_ssl_crl_compat = yes ; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL_CRL 1
19540 if test $ol_link_tls = no ; then
19541 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19543 for ac_header in gnutls/gnutls.h
19545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_res=`eval echo '${'$as_ac_Header'}'`
19553 { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19556 # Is the header compilable?
19557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19566 #include <$ac_header>
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.$ac_objext; then
19585 ac_header_compiler=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_header_compiler=no
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6; }
19597 # Is the header present?
19598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 #include <$ac_header>
19608 if { (ac_try="$ac_cpp conftest.$ac_ext"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null && {
19621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19624 ac_header_preproc=yes
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_header_preproc=no
19632 rm -f conftest.err conftest.$ac_ext
19633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6; }
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19659 ## --------------------------------------------- ##
19660 ## Report this to <http://www.openldap.org/its/> ##
19661 ## --------------------------------------------- ##
19663 ) | sed "s/^/$as_me: WARNING: /" >&2
19666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 eval "$as_ac_Header=\$ac_header_preproc"
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674 { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19688 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19689 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19690 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgnutls $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19709 char gnutls_init ();
19713 return gnutls_init ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest$ac_exeext &&
19735 $as_test_x conftest$ac_exeext; then
19736 ac_cv_lib_gnutls_gnutls_init=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gnutls_gnutls_init=no
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19750 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19757 if test $have_gnutls = yes ; then
19761 TLS_LIBS="-lgnutls"
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_GNUTLS 1
19774 if test $ol_link_tls = yes ; then
19776 cat >>confdefs.h <<\_ACEOF
19781 elif test $ol_with_tls = auto ; then
19782 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19783 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19785 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19786 elif test $ol_with_tls != no ; then
19787 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19788 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19789 { (exit 1); exit 1; }; }
19791 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19792 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19795 if test $ol_enable_lmpasswd != no; then
19796 if test $ol_link_tls != yes ; then
19797 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19798 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19799 { (exit 1); exit 1; }; }
19803 cat >>confdefs.h <<\_ACEOF
19804 #define SLAPD_LMHASH 1
19811 case $ol_with_threads in auto | yes | nt)
19814 { echo "$as_me:$LINENO: checking for _beginthread" >&5
19815 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19816 if test "${ac_cv_func__beginthread+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19827 #define _beginthread innocuous__beginthread
19829 /* System header to define __stub macros and hopefully few prototypes,
19830 which can conflict with char _beginthread (); below.
19831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832 <limits.h> exists even on freestanding compilers. */
19835 # include <limits.h>
19837 # include <assert.h>
19840 #undef _beginthread
19842 /* Override any GCC internal prototype to avoid an error.
19843 Use char because int might match the return type of a GCC
19844 builtin and then its argument prototype would still apply. */
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850 to always fail with ENOSYS. Some functions are actually named
19851 something starting with __ and the normal name is an alias. */
19852 #if defined __stub__beginthread || defined __stub____beginthread
19859 return _beginthread ();
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext &&
19881 $as_test_x conftest$ac_exeext; then
19882 ac_cv_func__beginthread=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_func__beginthread=no
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891 conftest$ac_exeext conftest.$ac_ext
19893 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19894 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19897 if test $ac_cv_func__beginthread = yes ; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_NT_THREADS 1
19903 ol_cv_nt_threads=yes
19907 if test "$ol_cv_nt_threads" = yes ; then
19909 ol_with_threads=found
19910 ol_with_yielding_select=yes
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_NT_SERVICE_MANAGER 1
19918 cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_NT_EVENT_LOG 1
19924 if test $ol_with_threads = nt ; then
19925 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19926 echo "$as_me: error: could not locate NT Threads" >&2;}
19927 { (exit 1); exit 1; }; }
19932 case $ol_with_threads in auto | yes | posix)
19935 for ac_header in pthread.h
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19948 # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19958 #include <$ac_header>
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_header_compiler=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_header_compiler=no
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6; }
19989 # Is the header present?
19990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <$ac_header>
20000 if { (ac_try="$ac_cpp conftest.$ac_ext"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } >/dev/null && {
20013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20016 ac_header_preproc=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 ## --------------------------------------------- ##
20052 ## Report this to <http://www.openldap.org/its/> ##
20053 ## --------------------------------------------- ##
20055 ) | sed "s/^/$as_me: WARNING: /" >&2
20058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 eval "$as_ac_Header=\$ac_header_preproc"
20065 ac_res=`eval echo '${'$as_ac_Header'}'`
20066 { echo "$as_me:$LINENO: result: $ac_res" >&5
20067 echo "${ECHO_T}$ac_res" >&6; }
20070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20080 if test $ac_cv_header_pthread_h = yes ; then
20081 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20082 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20083 if test "${ol_cv_pthread_version+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 # include <pthread.h>
20100 int i = PTHREAD_CREATE_JOINABLE;
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20115 grep -v '^ *+' conftest.er1 >conftest.err
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest.$ac_objext; then
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 #include <pthread.h>
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134 $EGREP "pthread_detach" >/dev/null 2>&1; then
20135 ol_cv_pthread_version=10
20137 ol_cv_pthread_version=8
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 # include <pthread.h>
20154 # ifdef PTHREAD_CREATE_UNDETACHED
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160 $EGREP "draft7" >/dev/null 2>&1; then
20161 ol_cv_pthread_version=7
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 #include <pthread.h>
20173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20174 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20175 ol_cv_pthread_version=6
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20185 # include <pthread.h>
20186 #ifdef PTHREAD_MUTEX_INITIALIZER
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192 $EGREP "draft5" >/dev/null 2>&1; then
20193 ol_cv_pthread_version=5
20195 ol_cv_pthread_version=4
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20211 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20214 if test $ol_cv_pthread_version != 0 ; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_PTHREADS $ol_cv_pthread_version
20221 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20222 echo "$as_me: error: unknown pthread version" >&2;}
20223 { (exit 1); exit 1; }; }
20226 # consider threads found
20227 ol_with_threads=found
20230 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20231 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20232 if test "${ol_cv_header_linux_threads+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <pthread.h>
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20245 ol_cv_header_linux_threads=yes
20247 ol_cv_header_linux_threads=no
20253 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20254 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20255 if test $ol_cv_header_linux_threads = yes; then
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_LINUX_THREADS 1
20264 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20265 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20266 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 #include <pthread.h>
20276 #ifdef _POSIX_THREAD_IS_GNU_PTH
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20283 ol_cv_header_gnu_pth_pthread_h=yes
20285 ol_cv_header_gnu_pth_pthread_h=no
20291 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20292 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20295 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20297 for ac_header in sched.h
20299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307 { echo "$as_me:$LINENO: result: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20310 # Is the header compilable?
20311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 $ac_includes_default
20320 #include <$ac_header>
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_compile") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest.$ac_objext; then
20339 ac_header_compiler=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_header_compiler=no
20347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20349 echo "${ECHO_T}$ac_header_compiler" >&6; }
20351 # Is the header present?
20352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 #include <$ac_header>
20362 if { (ac_try="$ac_cpp conftest.$ac_ext"
20363 case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } >/dev/null && {
20375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20376 test ! -s conftest.err
20378 ac_header_preproc=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ac_header_preproc=no
20386 rm -f conftest.err conftest.$ac_ext
20387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20388 echo "${ECHO_T}$ac_header_preproc" >&6; }
20390 # So? What about this header?
20391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20397 ac_header_preproc=yes
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20413 ## --------------------------------------------- ##
20414 ## Report this to <http://www.openldap.org/its/> ##
20415 ## --------------------------------------------- ##
20417 ) | sed "s/^/$as_me: WARNING: /" >&2
20420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 eval "$as_ac_Header=\$ac_header_preproc"
20427 ac_res=`eval echo '${'$as_ac_Header'}'`
20428 { echo "$as_me:$LINENO: result: $ac_res" >&5
20429 echo "${ECHO_T}$ac_res" >&6; }
20432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20433 cat >>confdefs.h <<_ACEOF
20434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20444 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20445 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20446 if test "${ol_cv_pthread_create+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 if test "$cross_compiling" = yes; then
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* pthread test headers */
20459 #include <pthread.h>
20460 #if HAVE_PTHREADS < 7
20464 #define NULL (void*)0
20467 static void *task(p)
20470 return (void *) (p == NULL);
20477 /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20483 int detach = PTHREAD_CREATE_DETACHED;
20485 #if HAVE_PTHREADS > 4
20486 /* Final pthreads */
20487 pthread_attr_t attr;
20489 status = pthread_attr_init(&attr);
20490 if( status ) return status;
20492 #if HAVE_PTHREADS < 7
20493 status = pthread_attr_setdetachstate(&attr, &detach);
20494 if( status < 0 ) status = errno;
20496 status = pthread_attr_setdetachstate(&attr, detach);
20498 if( status ) return status;
20499 status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501 if( status < 0 ) status = errno;
20503 if( status ) return status;
20505 /* Draft 4 pthreads */
20506 status = pthread_create( &t, pthread_attr_default, task, NULL );
20507 if( status ) return errno;
20509 /* give thread a chance to complete */
20510 /* it should remain joinable and hence detachable */
20513 status = pthread_detach( &t );
20514 if( status ) return errno;
20517 #ifdef HAVE_LINUX_THREADS
20518 pthread_kill_other_threads_np();
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_link") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest$ac_exeext &&
20544 $as_test_x conftest$ac_exeext; then
20545 ol_cv_pthread_create=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ol_cv_pthread_create=no
20553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554 conftest$ac_exeext conftest.$ac_ext
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* pthread test headers */
20564 #include <pthread.h>
20565 #if HAVE_PTHREADS < 7
20569 #define NULL (void*)0
20572 static void *task(p)
20575 return (void *) (p == NULL);
20579 int main(argc, argv)
20584 /* pthread test function */
20585 #ifndef PTHREAD_CREATE_DETACHED
20586 #define PTHREAD_CREATE_DETACHED 1
20590 int detach = PTHREAD_CREATE_DETACHED;
20592 #if HAVE_PTHREADS > 4
20593 /* Final pthreads */
20594 pthread_attr_t attr;
20596 status = pthread_attr_init(&attr);
20597 if( status ) return status;
20599 #if HAVE_PTHREADS < 7
20600 status = pthread_attr_setdetachstate(&attr, &detach);
20601 if( status < 0 ) status = errno;
20603 status = pthread_attr_setdetachstate(&attr, detach);
20605 if( status ) return status;
20606 status = pthread_create( &t, &attr, task, NULL );
20607 #if HAVE_PTHREADS < 7
20608 if( status < 0 ) status = errno;
20610 if( status ) return status;
20612 /* Draft 4 pthreads */
20613 status = pthread_create( &t, pthread_attr_default, task, NULL );
20614 if( status ) return errno;
20616 /* give thread a chance to complete */
20617 /* it should remain joinable and hence detachable */
20620 status = pthread_detach( &t );
20621 if( status ) return errno;
20624 #ifdef HAVE_LINUX_THREADS
20625 pthread_kill_other_threads_np();
20633 rm -f conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_link") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ol_cv_pthread_create=yes
20655 echo "$as_me: program exited with status $ac_status" >&5
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ( exit $ac_status )
20660 ol_cv_pthread_create=no
20662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20668 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20670 if test $ol_cv_pthread_create != no ; then
20671 ol_link_threads=posix
20672 ol_link_pthreads=""
20675 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20676 if test "$ol_link_threads" = no ; then
20678 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20679 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20680 if test "${ol_cv_pthread_kthread+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 LIBS="-kthread $LIBS"
20688 if test "$cross_compiling" = yes; then
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20696 /* pthread test headers */
20697 #include <pthread.h>
20698 #if HAVE_PTHREADS < 7
20702 #define NULL (void*)0
20705 static void *task(p)
20708 return (void *) (p == NULL);
20715 /* pthread test function */
20716 #ifndef PTHREAD_CREATE_DETACHED
20717 #define PTHREAD_CREATE_DETACHED 1
20721 int detach = PTHREAD_CREATE_DETACHED;
20723 #if HAVE_PTHREADS > 4
20724 /* Final pthreads */
20725 pthread_attr_t attr;
20727 status = pthread_attr_init(&attr);
20728 if( status ) return status;
20730 #if HAVE_PTHREADS < 7
20731 status = pthread_attr_setdetachstate(&attr, &detach);
20732 if( status < 0 ) status = errno;
20734 status = pthread_attr_setdetachstate(&attr, detach);
20736 if( status ) return status;
20737 status = pthread_create( &t, &attr, task, NULL );
20738 #if HAVE_PTHREADS < 7
20739 if( status < 0 ) status = errno;
20741 if( status ) return status;
20743 /* Draft 4 pthreads */
20744 status = pthread_create( &t, pthread_attr_default, task, NULL );
20745 if( status ) return errno;
20747 /* give thread a chance to complete */
20748 /* it should remain joinable and hence detachable */
20751 status = pthread_detach( &t );
20752 if( status ) return errno;
20755 #ifdef HAVE_LINUX_THREADS
20756 pthread_kill_other_threads_np();
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest$ac_exeext &&
20782 $as_test_x conftest$ac_exeext; then
20783 ol_cv_pthread_kthread=yes
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ol_cv_pthread_kthread=no
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792 conftest$ac_exeext conftest.$ac_ext
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20801 /* pthread test headers */
20802 #include <pthread.h>
20803 #if HAVE_PTHREADS < 7
20807 #define NULL (void*)0
20810 static void *task(p)
20813 return (void *) (p == NULL);
20817 int main(argc, argv)
20822 /* pthread test function */
20823 #ifndef PTHREAD_CREATE_DETACHED
20824 #define PTHREAD_CREATE_DETACHED 1
20828 int detach = PTHREAD_CREATE_DETACHED;
20830 #if HAVE_PTHREADS > 4
20831 /* Final pthreads */
20832 pthread_attr_t attr;
20834 status = pthread_attr_init(&attr);
20835 if( status ) return status;
20837 #if HAVE_PTHREADS < 7
20838 status = pthread_attr_setdetachstate(&attr, &detach);
20839 if( status < 0 ) status = errno;
20841 status = pthread_attr_setdetachstate(&attr, detach);
20843 if( status ) return status;
20844 status = pthread_create( &t, &attr, task, NULL );
20845 #if HAVE_PTHREADS < 7
20846 if( status < 0 ) status = errno;
20848 if( status ) return status;
20850 /* Draft 4 pthreads */
20851 status = pthread_create( &t, pthread_attr_default, task, NULL );
20852 if( status ) return errno;
20854 /* give thread a chance to complete */
20855 /* it should remain joinable and hence detachable */
20858 status = pthread_detach( &t );
20859 if( status ) return errno;
20862 #ifdef HAVE_LINUX_THREADS
20863 pthread_kill_other_threads_np();
20871 rm -f conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 ol_cv_pthread_kthread=yes
20893 echo "$as_me: program exited with status $ac_status" >&5
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ( exit $ac_status )
20898 ol_cv_pthread_kthread=no
20900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20910 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20912 if test $ol_cv_pthread_kthread = yes ; then
20913 ol_link_pthreads="-kthread"
20914 ol_link_threads=posix
20918 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20919 if test "$ol_link_threads" = no ; then
20921 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20922 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20923 if test "${ol_cv_pthread_pthread+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 LIBS="-pthread $LIBS"
20931 if test "$cross_compiling" = yes; then
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20939 /* pthread test headers */
20940 #include <pthread.h>
20941 #if HAVE_PTHREADS < 7
20945 #define NULL (void*)0
20948 static void *task(p)
20951 return (void *) (p == NULL);
20958 /* pthread test function */
20959 #ifndef PTHREAD_CREATE_DETACHED
20960 #define PTHREAD_CREATE_DETACHED 1
20964 int detach = PTHREAD_CREATE_DETACHED;
20966 #if HAVE_PTHREADS > 4
20967 /* Final pthreads */
20968 pthread_attr_t attr;
20970 status = pthread_attr_init(&attr);
20971 if( status ) return status;
20973 #if HAVE_PTHREADS < 7
20974 status = pthread_attr_setdetachstate(&attr, &detach);
20975 if( status < 0 ) status = errno;
20977 status = pthread_attr_setdetachstate(&attr, detach);
20979 if( status ) return status;
20980 status = pthread_create( &t, &attr, task, NULL );
20981 #if HAVE_PTHREADS < 7
20982 if( status < 0 ) status = errno;
20984 if( status ) return status;
20986 /* Draft 4 pthreads */
20987 status = pthread_create( &t, pthread_attr_default, task, NULL );
20988 if( status ) return errno;
20990 /* give thread a chance to complete */
20991 /* it should remain joinable and hence detachable */
20994 status = pthread_detach( &t );
20995 if( status ) return errno;
20998 #ifdef HAVE_LINUX_THREADS
20999 pthread_kill_other_threads_np();
21008 rm -f conftest.$ac_objext conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_link") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest$ac_exeext &&
21025 $as_test_x conftest$ac_exeext; then
21026 ol_cv_pthread_pthread=yes
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ol_cv_pthread_pthread=no
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035 conftest$ac_exeext conftest.$ac_ext
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21044 /* pthread test headers */
21045 #include <pthread.h>
21046 #if HAVE_PTHREADS < 7
21050 #define NULL (void*)0
21053 static void *task(p)
21056 return (void *) (p == NULL);
21060 int main(argc, argv)
21065 /* pthread test function */
21066 #ifndef PTHREAD_CREATE_DETACHED
21067 #define PTHREAD_CREATE_DETACHED 1
21071 int detach = PTHREAD_CREATE_DETACHED;
21073 #if HAVE_PTHREADS > 4
21074 /* Final pthreads */
21075 pthread_attr_t attr;
21077 status = pthread_attr_init(&attr);
21078 if( status ) return status;
21080 #if HAVE_PTHREADS < 7
21081 status = pthread_attr_setdetachstate(&attr, &detach);
21082 if( status < 0 ) status = errno;
21084 status = pthread_attr_setdetachstate(&attr, detach);
21086 if( status ) return status;
21087 status = pthread_create( &t, &attr, task, NULL );
21088 #if HAVE_PTHREADS < 7
21089 if( status < 0 ) status = errno;
21091 if( status ) return status;
21093 /* Draft 4 pthreads */
21094 status = pthread_create( &t, pthread_attr_default, task, NULL );
21095 if( status ) return errno;
21097 /* give thread a chance to complete */
21098 /* it should remain joinable and hence detachable */
21101 status = pthread_detach( &t );
21102 if( status ) return errno;
21105 #ifdef HAVE_LINUX_THREADS
21106 pthread_kill_other_threads_np();
21114 rm -f conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_link") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125 { (case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_try") 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ol_cv_pthread_pthread=yes
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21152 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21153 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21155 if test $ol_cv_pthread_pthread = yes ; then
21156 ol_link_pthreads="-pthread"
21157 ol_link_threads=posix
21161 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21162 if test "$ol_link_threads" = no ; then
21164 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21165 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21166 if test "${ol_cv_pthread_pthreads+set}" = set; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 LIBS="-pthreads $LIBS"
21174 if test "$cross_compiling" = yes; then
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* pthread test headers */
21183 #include <pthread.h>
21184 #if HAVE_PTHREADS < 7
21188 #define NULL (void*)0
21191 static void *task(p)
21194 return (void *) (p == NULL);
21201 /* pthread test function */
21202 #ifndef PTHREAD_CREATE_DETACHED
21203 #define PTHREAD_CREATE_DETACHED 1
21207 int detach = PTHREAD_CREATE_DETACHED;
21209 #if HAVE_PTHREADS > 4
21210 /* Final pthreads */
21211 pthread_attr_t attr;
21213 status = pthread_attr_init(&attr);
21214 if( status ) return status;
21216 #if HAVE_PTHREADS < 7
21217 status = pthread_attr_setdetachstate(&attr, &detach);
21218 if( status < 0 ) status = errno;
21220 status = pthread_attr_setdetachstate(&attr, detach);
21222 if( status ) return status;
21223 status = pthread_create( &t, &attr, task, NULL );
21224 #if HAVE_PTHREADS < 7
21225 if( status < 0 ) status = errno;
21227 if( status ) return status;
21229 /* Draft 4 pthreads */
21230 status = pthread_create( &t, pthread_attr_default, task, NULL );
21231 if( status ) return errno;
21233 /* give thread a chance to complete */
21234 /* it should remain joinable and hence detachable */
21237 status = pthread_detach( &t );
21238 if( status ) return errno;
21241 #ifdef HAVE_LINUX_THREADS
21242 pthread_kill_other_threads_np();
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_link") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext &&
21268 $as_test_x conftest$ac_exeext; then
21269 ol_cv_pthread_pthreads=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ol_cv_pthread_pthreads=no
21277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278 conftest$ac_exeext conftest.$ac_ext
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 /* pthread test headers */
21288 #include <pthread.h>
21289 #if HAVE_PTHREADS < 7
21293 #define NULL (void*)0
21296 static void *task(p)
21299 return (void *) (p == NULL);
21303 int main(argc, argv)
21308 /* pthread test function */
21309 #ifndef PTHREAD_CREATE_DETACHED
21310 #define PTHREAD_CREATE_DETACHED 1
21314 int detach = PTHREAD_CREATE_DETACHED;
21316 #if HAVE_PTHREADS > 4
21317 /* Final pthreads */
21318 pthread_attr_t attr;
21320 status = pthread_attr_init(&attr);
21321 if( status ) return status;
21323 #if HAVE_PTHREADS < 7
21324 status = pthread_attr_setdetachstate(&attr, &detach);
21325 if( status < 0 ) status = errno;
21327 status = pthread_attr_setdetachstate(&attr, detach);
21329 if( status ) return status;
21330 status = pthread_create( &t, &attr, task, NULL );
21331 #if HAVE_PTHREADS < 7
21332 if( status < 0 ) status = errno;
21334 if( status ) return status;
21336 /* Draft 4 pthreads */
21337 status = pthread_create( &t, pthread_attr_default, task, NULL );
21338 if( status ) return errno;
21340 /* give thread a chance to complete */
21341 /* it should remain joinable and hence detachable */
21344 status = pthread_detach( &t );
21345 if( status ) return errno;
21348 #ifdef HAVE_LINUX_THREADS
21349 pthread_kill_other_threads_np();
21357 rm -f conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_link") 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ol_cv_pthread_pthreads=yes
21379 echo "$as_me: program exited with status $ac_status" >&5
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ( exit $ac_status )
21384 ol_cv_pthread_pthreads=no
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21398 if test $ol_cv_pthread_pthreads = yes ; then
21399 ol_link_pthreads="-pthreads"
21400 ol_link_threads=posix
21404 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21405 if test "$ol_link_threads" = no ; then
21407 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21408 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21409 if test "${ol_cv_pthread_mthreads+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 LIBS="-mthreads $LIBS"
21417 if test "$cross_compiling" = yes; then
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21431 #define NULL (void*)0
21434 static void *task(p)
21437 return (void *) (p == NULL);
21444 /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21450 int detach = PTHREAD_CREATE_DETACHED;
21452 #if HAVE_PTHREADS > 4
21453 /* Final pthreads */
21454 pthread_attr_t attr;
21456 status = pthread_attr_init(&attr);
21457 if( status ) return status;
21459 #if HAVE_PTHREADS < 7
21460 status = pthread_attr_setdetachstate(&attr, &detach);
21461 if( status < 0 ) status = errno;
21463 status = pthread_attr_setdetachstate(&attr, detach);
21465 if( status ) return status;
21466 status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468 if( status < 0 ) status = errno;
21470 if( status ) return status;
21472 /* Draft 4 pthreads */
21473 status = pthread_create( &t, pthread_attr_default, task, NULL );
21474 if( status ) return errno;
21476 /* give thread a chance to complete */
21477 /* it should remain joinable and hence detachable */
21480 status = pthread_detach( &t );
21481 if( status ) return errno;
21484 #ifdef HAVE_LINUX_THREADS
21485 pthread_kill_other_threads_np();
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_link") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest$ac_exeext &&
21511 $as_test_x conftest$ac_exeext; then
21512 ol_cv_pthread_mthreads=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ol_cv_pthread_mthreads=no
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21530 /* pthread test headers */
21531 #include <pthread.h>
21532 #if HAVE_PTHREADS < 7
21536 #define NULL (void*)0
21539 static void *task(p)
21542 return (void *) (p == NULL);
21546 int main(argc, argv)
21551 /* pthread test function */
21552 #ifndef PTHREAD_CREATE_DETACHED
21553 #define PTHREAD_CREATE_DETACHED 1
21557 int detach = PTHREAD_CREATE_DETACHED;
21559 #if HAVE_PTHREADS > 4
21560 /* Final pthreads */
21561 pthread_attr_t attr;
21563 status = pthread_attr_init(&attr);
21564 if( status ) return status;
21566 #if HAVE_PTHREADS < 7
21567 status = pthread_attr_setdetachstate(&attr, &detach);
21568 if( status < 0 ) status = errno;
21570 status = pthread_attr_setdetachstate(&attr, detach);
21572 if( status ) return status;
21573 status = pthread_create( &t, &attr, task, NULL );
21574 #if HAVE_PTHREADS < 7
21575 if( status < 0 ) status = errno;
21577 if( status ) return status;
21579 /* Draft 4 pthreads */
21580 status = pthread_create( &t, pthread_attr_default, task, NULL );
21581 if( status ) return errno;
21583 /* give thread a chance to complete */
21584 /* it should remain joinable and hence detachable */
21587 status = pthread_detach( &t );
21588 if( status ) return errno;
21591 #ifdef HAVE_LINUX_THREADS
21592 pthread_kill_other_threads_np();
21600 rm -f conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ol_cv_pthread_mthreads=yes
21622 echo "$as_me: program exited with status $ac_status" >&5
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ( exit $ac_status )
21627 ol_cv_pthread_mthreads=no
21629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21639 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21641 if test $ol_cv_pthread_mthreads = yes ; then
21642 ol_link_pthreads="-mthreads"
21643 ol_link_threads=posix
21647 # Pthread try link: -thread (ol_cv_pthread_thread)
21648 if test "$ol_link_threads" = no ; then
21650 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21651 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21652 if test "${ol_cv_pthread_thread+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 LIBS="-thread $LIBS"
21660 if test "$cross_compiling" = yes; then
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* pthread test headers */
21669 #include <pthread.h>
21670 #if HAVE_PTHREADS < 7
21674 #define NULL (void*)0
21677 static void *task(p)
21680 return (void *) (p == NULL);
21687 /* pthread test function */
21688 #ifndef PTHREAD_CREATE_DETACHED
21689 #define PTHREAD_CREATE_DETACHED 1
21693 int detach = PTHREAD_CREATE_DETACHED;
21695 #if HAVE_PTHREADS > 4
21696 /* Final pthreads */
21697 pthread_attr_t attr;
21699 status = pthread_attr_init(&attr);
21700 if( status ) return status;
21702 #if HAVE_PTHREADS < 7
21703 status = pthread_attr_setdetachstate(&attr, &detach);
21704 if( status < 0 ) status = errno;
21706 status = pthread_attr_setdetachstate(&attr, detach);
21708 if( status ) return status;
21709 status = pthread_create( &t, &attr, task, NULL );
21710 #if HAVE_PTHREADS < 7
21711 if( status < 0 ) status = errno;
21713 if( status ) return status;
21715 /* Draft 4 pthreads */
21716 status = pthread_create( &t, pthread_attr_default, task, NULL );
21717 if( status ) return errno;
21719 /* give thread a chance to complete */
21720 /* it should remain joinable and hence detachable */
21723 status = pthread_detach( &t );
21724 if( status ) return errno;
21727 #ifdef HAVE_LINUX_THREADS
21728 pthread_kill_other_threads_np();
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (ac_try="$ac_link"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_link") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest$ac_exeext &&
21754 $as_test_x conftest$ac_exeext; then
21755 ol_cv_pthread_thread=yes
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ol_cv_pthread_thread=no
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764 conftest$ac_exeext conftest.$ac_ext
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21773 /* pthread test headers */
21774 #include <pthread.h>
21775 #if HAVE_PTHREADS < 7
21779 #define NULL (void*)0
21782 static void *task(p)
21785 return (void *) (p == NULL);
21789 int main(argc, argv)
21794 /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21800 int detach = PTHREAD_CREATE_DETACHED;
21802 #if HAVE_PTHREADS > 4
21803 /* Final pthreads */
21804 pthread_attr_t attr;
21806 status = pthread_attr_init(&attr);
21807 if( status ) return status;
21809 #if HAVE_PTHREADS < 7
21810 status = pthread_attr_setdetachstate(&attr, &detach);
21811 if( status < 0 ) status = errno;
21813 status = pthread_attr_setdetachstate(&attr, detach);
21815 if( status ) return status;
21816 status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818 if( status < 0 ) status = errno;
21820 if( status ) return status;
21822 /* Draft 4 pthreads */
21823 status = pthread_create( &t, pthread_attr_default, task, NULL );
21824 if( status ) return errno;
21826 /* give thread a chance to complete */
21827 /* it should remain joinable and hence detachable */
21830 status = pthread_detach( &t );
21831 if( status ) return errno;
21834 #ifdef HAVE_LINUX_THREADS
21835 pthread_kill_other_threads_np();
21843 rm -f conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_link") 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21854 { (case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_try") 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 ol_cv_pthread_thread=yes
21865 echo "$as_me: program exited with status $ac_status" >&5
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21869 ( exit $ac_status )
21870 ol_cv_pthread_thread=no
21872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21882 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21884 if test $ol_cv_pthread_thread = yes ; then
21885 ol_link_pthreads="-thread"
21886 ol_link_threads=posix
21891 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21892 if test "$ol_link_threads" = no ; then
21893 # try -lpthread -lmach -lexc -lc_r
21894 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21895 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21896 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21904 if test "$cross_compiling" = yes; then
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21912 /* pthread test headers */
21913 #include <pthread.h>
21914 #if HAVE_PTHREADS < 7
21918 #define NULL (void*)0
21921 static void *task(p)
21924 return (void *) (p == NULL);
21931 /* pthread test function */
21932 #ifndef PTHREAD_CREATE_DETACHED
21933 #define PTHREAD_CREATE_DETACHED 1
21937 int detach = PTHREAD_CREATE_DETACHED;
21939 #if HAVE_PTHREADS > 4
21940 /* Final pthreads */
21941 pthread_attr_t attr;
21943 status = pthread_attr_init(&attr);
21944 if( status ) return status;
21946 #if HAVE_PTHREADS < 7
21947 status = pthread_attr_setdetachstate(&attr, &detach);
21948 if( status < 0 ) status = errno;
21950 status = pthread_attr_setdetachstate(&attr, detach);
21952 if( status ) return status;
21953 status = pthread_create( &t, &attr, task, NULL );
21954 #if HAVE_PTHREADS < 7
21955 if( status < 0 ) status = errno;
21957 if( status ) return status;
21959 /* Draft 4 pthreads */
21960 status = pthread_create( &t, pthread_attr_default, task, NULL );
21961 if( status ) return errno;
21963 /* give thread a chance to complete */
21964 /* it should remain joinable and hence detachable */
21967 status = pthread_detach( &t );
21968 if( status ) return errno;
21971 #ifdef HAVE_LINUX_THREADS
21972 pthread_kill_other_threads_np();
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_link") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext &&
21998 $as_test_x conftest$ac_exeext; then
21999 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008 conftest$ac_exeext conftest.$ac_ext
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22017 /* pthread test headers */
22018 #include <pthread.h>
22019 #if HAVE_PTHREADS < 7
22023 #define NULL (void*)0
22026 static void *task(p)
22029 return (void *) (p == NULL);
22033 int main(argc, argv)
22038 /* pthread test function */
22039 #ifndef PTHREAD_CREATE_DETACHED
22040 #define PTHREAD_CREATE_DETACHED 1
22044 int detach = PTHREAD_CREATE_DETACHED;
22046 #if HAVE_PTHREADS > 4
22047 /* Final pthreads */
22048 pthread_attr_t attr;
22050 status = pthread_attr_init(&attr);
22051 if( status ) return status;
22053 #if HAVE_PTHREADS < 7
22054 status = pthread_attr_setdetachstate(&attr, &detach);
22055 if( status < 0 ) status = errno;
22057 status = pthread_attr_setdetachstate(&attr, detach);
22059 if( status ) return status;
22060 status = pthread_create( &t, &attr, task, NULL );
22061 #if HAVE_PTHREADS < 7
22062 if( status < 0 ) status = errno;
22064 if( status ) return status;
22066 /* Draft 4 pthreads */
22067 status = pthread_create( &t, pthread_attr_default, task, NULL );
22068 if( status ) return errno;
22070 /* give thread a chance to complete */
22071 /* it should remain joinable and hence detachable */
22074 status = pthread_detach( &t );
22075 if( status ) return errno;
22078 #ifdef HAVE_LINUX_THREADS
22079 pthread_kill_other_threads_np();
22087 rm -f conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22098 { (case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_try") 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22109 echo "$as_me: program exited with status $ac_status" >&5
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ( exit $ac_status )
22114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22126 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22128 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22129 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22130 ol_link_threads=posix
22134 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22135 if test "$ol_link_threads" = no ; then
22136 # try -lpthread -lmach -lexc
22137 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22138 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22139 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 LIBS="-lpthread -lmach -lexc $LIBS"
22147 if test "$cross_compiling" = yes; then
22148 cat >conftest.$ac_ext <<_ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22155 /* pthread test headers */
22156 #include <pthread.h>
22157 #if HAVE_PTHREADS < 7
22161 #define NULL (void*)0
22164 static void *task(p)
22167 return (void *) (p == NULL);
22174 /* pthread test function */
22175 #ifndef PTHREAD_CREATE_DETACHED
22176 #define PTHREAD_CREATE_DETACHED 1
22180 int detach = PTHREAD_CREATE_DETACHED;
22182 #if HAVE_PTHREADS > 4
22183 /* Final pthreads */
22184 pthread_attr_t attr;
22186 status = pthread_attr_init(&attr);
22187 if( status ) return status;
22189 #if HAVE_PTHREADS < 7
22190 status = pthread_attr_setdetachstate(&attr, &detach);
22191 if( status < 0 ) status = errno;
22193 status = pthread_attr_setdetachstate(&attr, detach);
22195 if( status ) return status;
22196 status = pthread_create( &t, &attr, task, NULL );
22197 #if HAVE_PTHREADS < 7
22198 if( status < 0 ) status = errno;
22200 if( status ) return status;
22202 /* Draft 4 pthreads */
22203 status = pthread_create( &t, pthread_attr_default, task, NULL );
22204 if( status ) return errno;
22206 /* give thread a chance to complete */
22207 /* it should remain joinable and hence detachable */
22210 status = pthread_detach( &t );
22211 if( status ) return errno;
22214 #ifdef HAVE_LINUX_THREADS
22215 pthread_kill_other_threads_np();
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } && {
22238 test -z "$ac_c_werror_flag" ||
22239 test ! -s conftest.err
22240 } && test -s conftest$ac_exeext &&
22241 $as_test_x conftest$ac_exeext; then
22242 ol_cv_pthread_lpthread_lmach_lexc=yes
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22247 ol_cv_pthread_lpthread_lmach_lexc=no
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251 conftest$ac_exeext conftest.$ac_ext
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 /* pthread test headers */
22261 #include <pthread.h>
22262 #if HAVE_PTHREADS < 7
22266 #define NULL (void*)0
22269 static void *task(p)
22272 return (void *) (p == NULL);
22276 int main(argc, argv)
22281 /* pthread test function */
22282 #ifndef PTHREAD_CREATE_DETACHED
22283 #define PTHREAD_CREATE_DETACHED 1
22287 int detach = PTHREAD_CREATE_DETACHED;
22289 #if HAVE_PTHREADS > 4
22290 /* Final pthreads */
22291 pthread_attr_t attr;
22293 status = pthread_attr_init(&attr);
22294 if( status ) return status;
22296 #if HAVE_PTHREADS < 7
22297 status = pthread_attr_setdetachstate(&attr, &detach);
22298 if( status < 0 ) status = errno;
22300 status = pthread_attr_setdetachstate(&attr, detach);
22302 if( status ) return status;
22303 status = pthread_create( &t, &attr, task, NULL );
22304 #if HAVE_PTHREADS < 7
22305 if( status < 0 ) status = errno;
22307 if( status ) return status;
22309 /* Draft 4 pthreads */
22310 status = pthread_create( &t, pthread_attr_default, task, NULL );
22311 if( status ) return errno;
22313 /* give thread a chance to complete */
22314 /* it should remain joinable and hence detachable */
22317 status = pthread_detach( &t );
22318 if( status ) return errno;
22321 #ifdef HAVE_LINUX_THREADS
22322 pthread_kill_other_threads_np();
22330 rm -f conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22341 { (case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_try") 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); }; }; then
22350 ol_cv_pthread_lpthread_lmach_lexc=yes
22352 echo "$as_me: program exited with status $ac_status" >&5
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ( exit $ac_status )
22357 ol_cv_pthread_lpthread_lmach_lexc=no
22359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22368 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22369 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22371 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22372 ol_link_pthreads="-lpthread -lmach -lexc"
22373 ol_link_threads=posix
22378 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22379 if test "$ol_link_threads" = no ; then
22380 # try -lpthread -Wl,-woff,85
22381 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22382 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22383 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22384 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22391 if test "$cross_compiling" = yes; then
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22399 /* pthread test headers */
22400 #include <pthread.h>
22401 #if HAVE_PTHREADS < 7
22405 #define NULL (void*)0
22408 static void *task(p)
22411 return (void *) (p == NULL);
22418 /* pthread test function */
22419 #ifndef PTHREAD_CREATE_DETACHED
22420 #define PTHREAD_CREATE_DETACHED 1
22424 int detach = PTHREAD_CREATE_DETACHED;
22426 #if HAVE_PTHREADS > 4
22427 /* Final pthreads */
22428 pthread_attr_t attr;
22430 status = pthread_attr_init(&attr);
22431 if( status ) return status;
22433 #if HAVE_PTHREADS < 7
22434 status = pthread_attr_setdetachstate(&attr, &detach);
22435 if( status < 0 ) status = errno;
22437 status = pthread_attr_setdetachstate(&attr, detach);
22439 if( status ) return status;
22440 status = pthread_create( &t, &attr, task, NULL );
22441 #if HAVE_PTHREADS < 7
22442 if( status < 0 ) status = errno;
22444 if( status ) return status;
22446 /* Draft 4 pthreads */
22447 status = pthread_create( &t, pthread_attr_default, task, NULL );
22448 if( status ) return errno;
22450 /* give thread a chance to complete */
22451 /* it should remain joinable and hence detachable */
22454 status = pthread_detach( &t );
22455 if( status ) return errno;
22458 #ifdef HAVE_LINUX_THREADS
22459 pthread_kill_other_threads_np();
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (ac_try="$ac_link"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_link") 2>conftest.er1
22477 grep -v '^ *+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest$ac_exeext &&
22485 $as_test_x conftest$ac_exeext; then
22486 ol_cv_pthread_lib_lpthread_woff=yes
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ol_cv_pthread_lib_lpthread_woff=no
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495 conftest$ac_exeext conftest.$ac_ext
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22504 /* pthread test headers */
22505 #include <pthread.h>
22506 #if HAVE_PTHREADS < 7
22510 #define NULL (void*)0
22513 static void *task(p)
22516 return (void *) (p == NULL);
22520 int main(argc, argv)
22525 /* pthread test function */
22526 #ifndef PTHREAD_CREATE_DETACHED
22527 #define PTHREAD_CREATE_DETACHED 1
22531 int detach = PTHREAD_CREATE_DETACHED;
22533 #if HAVE_PTHREADS > 4
22534 /* Final pthreads */
22535 pthread_attr_t attr;
22537 status = pthread_attr_init(&attr);
22538 if( status ) return status;
22540 #if HAVE_PTHREADS < 7
22541 status = pthread_attr_setdetachstate(&attr, &detach);
22542 if( status < 0 ) status = errno;
22544 status = pthread_attr_setdetachstate(&attr, detach);
22546 if( status ) return status;
22547 status = pthread_create( &t, &attr, task, NULL );
22548 #if HAVE_PTHREADS < 7
22549 if( status < 0 ) status = errno;
22551 if( status ) return status;
22553 /* Draft 4 pthreads */
22554 status = pthread_create( &t, pthread_attr_default, task, NULL );
22555 if( status ) return errno;
22557 /* give thread a chance to complete */
22558 /* it should remain joinable and hence detachable */
22561 status = pthread_detach( &t );
22562 if( status ) return errno;
22565 #ifdef HAVE_LINUX_THREADS
22566 pthread_kill_other_threads_np();
22574 rm -f conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_link") 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22585 { (case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_try") 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; }; then
22594 ol_cv_pthread_lib_lpthread_woff=yes
22596 echo "$as_me: program exited with status $ac_status" >&5
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ( exit $ac_status )
22601 ol_cv_pthread_lib_lpthread_woff=no
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22613 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22615 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22616 ol_link_pthreads="-lpthread -Wl,-woff,85"
22617 ol_link_threads=posix
22622 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22623 if test "$ol_link_threads" = no ; then
22625 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22626 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22627 if test "${ol_cv_pthread_lpthread+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 LIBS="-lpthread $LIBS"
22635 if test "$cross_compiling" = yes; then
22636 cat >conftest.$ac_ext <<_ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22643 /* pthread test headers */
22644 #include <pthread.h>
22645 #if HAVE_PTHREADS < 7
22649 #define NULL (void*)0
22652 static void *task(p)
22655 return (void *) (p == NULL);
22662 /* pthread test function */
22663 #ifndef PTHREAD_CREATE_DETACHED
22664 #define PTHREAD_CREATE_DETACHED 1
22668 int detach = PTHREAD_CREATE_DETACHED;
22670 #if HAVE_PTHREADS > 4
22671 /* Final pthreads */
22672 pthread_attr_t attr;
22674 status = pthread_attr_init(&attr);
22675 if( status ) return status;
22677 #if HAVE_PTHREADS < 7
22678 status = pthread_attr_setdetachstate(&attr, &detach);
22679 if( status < 0 ) status = errno;
22681 status = pthread_attr_setdetachstate(&attr, detach);
22683 if( status ) return status;
22684 status = pthread_create( &t, &attr, task, NULL );
22685 #if HAVE_PTHREADS < 7
22686 if( status < 0 ) status = errno;
22688 if( status ) return status;
22690 /* Draft 4 pthreads */
22691 status = pthread_create( &t, pthread_attr_default, task, NULL );
22692 if( status ) return errno;
22694 /* give thread a chance to complete */
22695 /* it should remain joinable and hence detachable */
22698 status = pthread_detach( &t );
22699 if( status ) return errno;
22702 #ifdef HAVE_LINUX_THREADS
22703 pthread_kill_other_threads_np();
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_link") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext &&
22729 $as_test_x conftest$ac_exeext; then
22730 ol_cv_pthread_lpthread=yes
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ol_cv_pthread_lpthread=no
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 conftest$ac_exeext conftest.$ac_ext
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22748 /* pthread test headers */
22749 #include <pthread.h>
22750 #if HAVE_PTHREADS < 7
22754 #define NULL (void*)0
22757 static void *task(p)
22760 return (void *) (p == NULL);
22764 int main(argc, argv)
22769 /* pthread test function */
22770 #ifndef PTHREAD_CREATE_DETACHED
22771 #define PTHREAD_CREATE_DETACHED 1
22775 int detach = PTHREAD_CREATE_DETACHED;
22777 #if HAVE_PTHREADS > 4
22778 /* Final pthreads */
22779 pthread_attr_t attr;
22781 status = pthread_attr_init(&attr);
22782 if( status ) return status;
22784 #if HAVE_PTHREADS < 7
22785 status = pthread_attr_setdetachstate(&attr, &detach);
22786 if( status < 0 ) status = errno;
22788 status = pthread_attr_setdetachstate(&attr, detach);
22790 if( status ) return status;
22791 status = pthread_create( &t, &attr, task, NULL );
22792 #if HAVE_PTHREADS < 7
22793 if( status < 0 ) status = errno;
22795 if( status ) return status;
22797 /* Draft 4 pthreads */
22798 status = pthread_create( &t, pthread_attr_default, task, NULL );
22799 if( status ) return errno;
22801 /* give thread a chance to complete */
22802 /* it should remain joinable and hence detachable */
22805 status = pthread_detach( &t );
22806 if( status ) return errno;
22809 #ifdef HAVE_LINUX_THREADS
22810 pthread_kill_other_threads_np();
22818 rm -f conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22829 { (case "(($ac_try" in
22830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831 *) ac_try_echo=$ac_try;;
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834 (eval "$ac_try") 2>&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22838 ol_cv_pthread_lpthread=yes
22840 echo "$as_me: program exited with status $ac_status" >&5
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ( exit $ac_status )
22845 ol_cv_pthread_lpthread=no
22847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22857 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22859 if test $ol_cv_pthread_lpthread = yes ; then
22860 ol_link_pthreads="-lpthread"
22861 ol_link_threads=posix
22865 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22866 if test "$ol_link_threads" = no ; then
22868 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22869 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22870 if test "${ol_cv_pthread_lc_r+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 if test "$cross_compiling" = yes; then
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22886 /* pthread test headers */
22887 #include <pthread.h>
22888 #if HAVE_PTHREADS < 7
22892 #define NULL (void*)0
22895 static void *task(p)
22898 return (void *) (p == NULL);
22905 /* pthread test function */
22906 #ifndef PTHREAD_CREATE_DETACHED
22907 #define PTHREAD_CREATE_DETACHED 1
22911 int detach = PTHREAD_CREATE_DETACHED;
22913 #if HAVE_PTHREADS > 4
22914 /* Final pthreads */
22915 pthread_attr_t attr;
22917 status = pthread_attr_init(&attr);
22918 if( status ) return status;
22920 #if HAVE_PTHREADS < 7
22921 status = pthread_attr_setdetachstate(&attr, &detach);
22922 if( status < 0 ) status = errno;
22924 status = pthread_attr_setdetachstate(&attr, detach);
22926 if( status ) return status;
22927 status = pthread_create( &t, &attr, task, NULL );
22928 #if HAVE_PTHREADS < 7
22929 if( status < 0 ) status = errno;
22931 if( status ) return status;
22933 /* Draft 4 pthreads */
22934 status = pthread_create( &t, pthread_attr_default, task, NULL );
22935 if( status ) return errno;
22937 /* give thread a chance to complete */
22938 /* it should remain joinable and hence detachable */
22941 status = pthread_detach( &t );
22942 if( status ) return errno;
22945 #ifdef HAVE_LINUX_THREADS
22946 pthread_kill_other_threads_np();
22955 rm -f conftest.$ac_objext conftest$ac_exeext
22956 if { (ac_try="$ac_link"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_link") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest$ac_exeext &&
22972 $as_test_x conftest$ac_exeext; then
22973 ol_cv_pthread_lc_r=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ol_cv_pthread_lc_r=no
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982 conftest$ac_exeext conftest.$ac_ext
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22991 /* pthread test headers */
22992 #include <pthread.h>
22993 #if HAVE_PTHREADS < 7
22997 #define NULL (void*)0
23000 static void *task(p)
23003 return (void *) (p == NULL);
23007 int main(argc, argv)
23012 /* pthread test function */
23013 #ifndef PTHREAD_CREATE_DETACHED
23014 #define PTHREAD_CREATE_DETACHED 1
23018 int detach = PTHREAD_CREATE_DETACHED;
23020 #if HAVE_PTHREADS > 4
23021 /* Final pthreads */
23022 pthread_attr_t attr;
23024 status = pthread_attr_init(&attr);
23025 if( status ) return status;
23027 #if HAVE_PTHREADS < 7
23028 status = pthread_attr_setdetachstate(&attr, &detach);
23029 if( status < 0 ) status = errno;
23031 status = pthread_attr_setdetachstate(&attr, detach);
23033 if( status ) return status;
23034 status = pthread_create( &t, &attr, task, NULL );
23035 #if HAVE_PTHREADS < 7
23036 if( status < 0 ) status = errno;
23038 if( status ) return status;
23040 /* Draft 4 pthreads */
23041 status = pthread_create( &t, pthread_attr_default, task, NULL );
23042 if( status ) return errno;
23044 /* give thread a chance to complete */
23045 /* it should remain joinable and hence detachable */
23048 status = pthread_detach( &t );
23049 if( status ) return errno;
23052 #ifdef HAVE_LINUX_THREADS
23053 pthread_kill_other_threads_np();
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072 { (case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_try") 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ol_cv_pthread_lc_r=yes
23083 echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ( exit $ac_status )
23088 ol_cv_pthread_lc_r=no
23090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23099 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23100 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23102 if test $ol_cv_pthread_lc_r = yes ; then
23103 ol_link_pthreads="-lc_r"
23104 ol_link_threads=posix
23109 # Pthread try link: -threads (ol_cv_pthread_threads)
23110 if test "$ol_link_threads" = no ; then
23112 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23113 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23114 if test "${ol_cv_pthread_threads+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 LIBS="-threads $LIBS"
23122 if test "$cross_compiling" = yes; then
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23130 /* pthread test headers */
23131 #include <pthread.h>
23132 #if HAVE_PTHREADS < 7
23136 #define NULL (void*)0
23139 static void *task(p)
23142 return (void *) (p == NULL);
23149 /* pthread test function */
23150 #ifndef PTHREAD_CREATE_DETACHED
23151 #define PTHREAD_CREATE_DETACHED 1
23155 int detach = PTHREAD_CREATE_DETACHED;
23157 #if HAVE_PTHREADS > 4
23158 /* Final pthreads */
23159 pthread_attr_t attr;
23161 status = pthread_attr_init(&attr);
23162 if( status ) return status;
23164 #if HAVE_PTHREADS < 7
23165 status = pthread_attr_setdetachstate(&attr, &detach);
23166 if( status < 0 ) status = errno;
23168 status = pthread_attr_setdetachstate(&attr, detach);
23170 if( status ) return status;
23171 status = pthread_create( &t, &attr, task, NULL );
23172 #if HAVE_PTHREADS < 7
23173 if( status < 0 ) status = errno;
23175 if( status ) return status;
23177 /* Draft 4 pthreads */
23178 status = pthread_create( &t, pthread_attr_default, task, NULL );
23179 if( status ) return errno;
23181 /* give thread a chance to complete */
23182 /* it should remain joinable and hence detachable */
23185 status = pthread_detach( &t );
23186 if( status ) return errno;
23189 #ifdef HAVE_LINUX_THREADS
23190 pthread_kill_other_threads_np();
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_link") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest$ac_exeext &&
23216 $as_test_x conftest$ac_exeext; then
23217 ol_cv_pthread_threads=yes
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23222 ol_cv_pthread_threads=no
23225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23226 conftest$ac_exeext conftest.$ac_ext
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23235 /* pthread test headers */
23236 #include <pthread.h>
23237 #if HAVE_PTHREADS < 7
23241 #define NULL (void*)0
23244 static void *task(p)
23247 return (void *) (p == NULL);
23251 int main(argc, argv)
23256 /* pthread test function */
23257 #ifndef PTHREAD_CREATE_DETACHED
23258 #define PTHREAD_CREATE_DETACHED 1
23262 int detach = PTHREAD_CREATE_DETACHED;
23264 #if HAVE_PTHREADS > 4
23265 /* Final pthreads */
23266 pthread_attr_t attr;
23268 status = pthread_attr_init(&attr);
23269 if( status ) return status;
23271 #if HAVE_PTHREADS < 7
23272 status = pthread_attr_setdetachstate(&attr, &detach);
23273 if( status < 0 ) status = errno;
23275 status = pthread_attr_setdetachstate(&attr, detach);
23277 if( status ) return status;
23278 status = pthread_create( &t, &attr, task, NULL );
23279 #if HAVE_PTHREADS < 7
23280 if( status < 0 ) status = errno;
23282 if( status ) return status;
23284 /* Draft 4 pthreads */
23285 status = pthread_create( &t, pthread_attr_default, task, NULL );
23286 if( status ) return errno;
23288 /* give thread a chance to complete */
23289 /* it should remain joinable and hence detachable */
23292 status = pthread_detach( &t );
23293 if( status ) return errno;
23296 #ifdef HAVE_LINUX_THREADS
23297 pthread_kill_other_threads_np();
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_link") 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ol_cv_pthread_threads=yes
23327 echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ( exit $ac_status )
23332 ol_cv_pthread_threads=no
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23343 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23344 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23346 if test $ol_cv_pthread_threads = yes ; then
23347 ol_link_pthreads="-threads"
23348 ol_link_threads=posix
23353 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23354 if test "$ol_link_threads" = no ; then
23355 # try -lpthreads -lmach -lexc -lc_r
23356 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23357 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23358 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23366 if test "$cross_compiling" = yes; then
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23374 /* pthread test headers */
23375 #include <pthread.h>
23376 #if HAVE_PTHREADS < 7
23380 #define NULL (void*)0
23383 static void *task(p)
23386 return (void *) (p == NULL);
23393 /* pthread test function */
23394 #ifndef PTHREAD_CREATE_DETACHED
23395 #define PTHREAD_CREATE_DETACHED 1
23399 int detach = PTHREAD_CREATE_DETACHED;
23401 #if HAVE_PTHREADS > 4
23402 /* Final pthreads */
23403 pthread_attr_t attr;
23405 status = pthread_attr_init(&attr);
23406 if( status ) return status;
23408 #if HAVE_PTHREADS < 7
23409 status = pthread_attr_setdetachstate(&attr, &detach);
23410 if( status < 0 ) status = errno;
23412 status = pthread_attr_setdetachstate(&attr, detach);
23414 if( status ) return status;
23415 status = pthread_create( &t, &attr, task, NULL );
23416 #if HAVE_PTHREADS < 7
23417 if( status < 0 ) status = errno;
23419 if( status ) return status;
23421 /* Draft 4 pthreads */
23422 status = pthread_create( &t, pthread_attr_default, task, NULL );
23423 if( status ) return errno;
23425 /* give thread a chance to complete */
23426 /* it should remain joinable and hence detachable */
23429 status = pthread_detach( &t );
23430 if( status ) return errno;
23433 #ifdef HAVE_LINUX_THREADS
23434 pthread_kill_other_threads_np();
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_link") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest$ac_exeext &&
23460 $as_test_x conftest$ac_exeext; then
23461 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470 conftest$ac_exeext conftest.$ac_ext
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 /* pthread test headers */
23480 #include <pthread.h>
23481 #if HAVE_PTHREADS < 7
23485 #define NULL (void*)0
23488 static void *task(p)
23491 return (void *) (p == NULL);
23495 int main(argc, argv)
23500 /* pthread test function */
23501 #ifndef PTHREAD_CREATE_DETACHED
23502 #define PTHREAD_CREATE_DETACHED 1
23506 int detach = PTHREAD_CREATE_DETACHED;
23508 #if HAVE_PTHREADS > 4
23509 /* Final pthreads */
23510 pthread_attr_t attr;
23512 status = pthread_attr_init(&attr);
23513 if( status ) return status;
23515 #if HAVE_PTHREADS < 7
23516 status = pthread_attr_setdetachstate(&attr, &detach);
23517 if( status < 0 ) status = errno;
23519 status = pthread_attr_setdetachstate(&attr, detach);
23521 if( status ) return status;
23522 status = pthread_create( &t, &attr, task, NULL );
23523 #if HAVE_PTHREADS < 7
23524 if( status < 0 ) status = errno;
23526 if( status ) return status;
23528 /* Draft 4 pthreads */
23529 status = pthread_create( &t, pthread_attr_default, task, NULL );
23530 if( status ) return errno;
23532 /* give thread a chance to complete */
23533 /* it should remain joinable and hence detachable */
23536 status = pthread_detach( &t );
23537 if( status ) return errno;
23540 #ifdef HAVE_LINUX_THREADS
23541 pthread_kill_other_threads_np();
23549 rm -f conftest$ac_exeext
23550 if { (ac_try="$ac_link"
23551 case "(($ac_try" in
23552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553 *) ac_try_echo=$ac_try;;
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556 (eval "$ac_link") 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560 { (case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_try") 2>&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23569 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23571 echo "$as_me: program exited with status $ac_status" >&5
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ( exit $ac_status )
23576 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23587 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23588 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23590 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23591 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23592 ol_link_threads=posix
23596 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23597 if test "$ol_link_threads" = no ; then
23598 # try -lpthreads -lmach -lexc
23599 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23600 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23601 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 LIBS="-lpthreads -lmach -lexc $LIBS"
23609 if test "$cross_compiling" = yes; then
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23617 /* pthread test headers */
23618 #include <pthread.h>
23619 #if HAVE_PTHREADS < 7
23623 #define NULL (void*)0
23626 static void *task(p)
23629 return (void *) (p == NULL);
23636 /* pthread test function */
23637 #ifndef PTHREAD_CREATE_DETACHED
23638 #define PTHREAD_CREATE_DETACHED 1
23642 int detach = PTHREAD_CREATE_DETACHED;
23644 #if HAVE_PTHREADS > 4
23645 /* Final pthreads */
23646 pthread_attr_t attr;
23648 status = pthread_attr_init(&attr);
23649 if( status ) return status;
23651 #if HAVE_PTHREADS < 7
23652 status = pthread_attr_setdetachstate(&attr, &detach);
23653 if( status < 0 ) status = errno;
23655 status = pthread_attr_setdetachstate(&attr, detach);
23657 if( status ) return status;
23658 status = pthread_create( &t, &attr, task, NULL );
23659 #if HAVE_PTHREADS < 7
23660 if( status < 0 ) status = errno;
23662 if( status ) return status;
23664 /* Draft 4 pthreads */
23665 status = pthread_create( &t, pthread_attr_default, task, NULL );
23666 if( status ) return errno;
23668 /* give thread a chance to complete */
23669 /* it should remain joinable and hence detachable */
23672 status = pthread_detach( &t );
23673 if( status ) return errno;
23676 #ifdef HAVE_LINUX_THREADS
23677 pthread_kill_other_threads_np();
23686 rm -f conftest.$ac_objext conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_link") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest$ac_exeext &&
23703 $as_test_x conftest$ac_exeext; then
23704 ol_cv_pthread_lpthreads_lmach_lexc=yes
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ol_cv_pthread_lpthreads_lmach_lexc=no
23712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713 conftest$ac_exeext conftest.$ac_ext
23715 cat >conftest.$ac_ext <<_ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23722 /* pthread test headers */
23723 #include <pthread.h>
23724 #if HAVE_PTHREADS < 7
23728 #define NULL (void*)0
23731 static void *task(p)
23734 return (void *) (p == NULL);
23738 int main(argc, argv)
23743 /* pthread test function */
23744 #ifndef PTHREAD_CREATE_DETACHED
23745 #define PTHREAD_CREATE_DETACHED 1
23749 int detach = PTHREAD_CREATE_DETACHED;
23751 #if HAVE_PTHREADS > 4
23752 /* Final pthreads */
23753 pthread_attr_t attr;
23755 status = pthread_attr_init(&attr);
23756 if( status ) return status;
23758 #if HAVE_PTHREADS < 7
23759 status = pthread_attr_setdetachstate(&attr, &detach);
23760 if( status < 0 ) status = errno;
23762 status = pthread_attr_setdetachstate(&attr, detach);
23764 if( status ) return status;
23765 status = pthread_create( &t, &attr, task, NULL );
23766 #if HAVE_PTHREADS < 7
23767 if( status < 0 ) status = errno;
23769 if( status ) return status;
23771 /* Draft 4 pthreads */
23772 status = pthread_create( &t, pthread_attr_default, task, NULL );
23773 if( status ) return errno;
23775 /* give thread a chance to complete */
23776 /* it should remain joinable and hence detachable */
23779 status = pthread_detach( &t );
23780 if( status ) return errno;
23783 #ifdef HAVE_LINUX_THREADS
23784 pthread_kill_other_threads_np();
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803 { (case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_try") 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ol_cv_pthread_lpthreads_lmach_lexc=yes
23814 echo "$as_me: program exited with status $ac_status" >&5
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23818 ( exit $ac_status )
23819 ol_cv_pthread_lpthreads_lmach_lexc=no
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23831 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23833 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23834 ol_link_pthreads="-lpthreads -lmach -lexc"
23835 ol_link_threads=posix
23839 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23840 if test "$ol_link_threads" = no ; then
23841 # try -lpthreads -lexc
23842 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23843 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23844 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 LIBS="-lpthreads -lexc $LIBS"
23852 if test "$cross_compiling" = yes; then
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23860 /* pthread test headers */
23861 #include <pthread.h>
23862 #if HAVE_PTHREADS < 7
23866 #define NULL (void*)0
23869 static void *task(p)
23872 return (void *) (p == NULL);
23879 /* pthread test function */
23880 #ifndef PTHREAD_CREATE_DETACHED
23881 #define PTHREAD_CREATE_DETACHED 1
23885 int detach = PTHREAD_CREATE_DETACHED;
23887 #if HAVE_PTHREADS > 4
23888 /* Final pthreads */
23889 pthread_attr_t attr;
23891 status = pthread_attr_init(&attr);
23892 if( status ) return status;
23894 #if HAVE_PTHREADS < 7
23895 status = pthread_attr_setdetachstate(&attr, &detach);
23896 if( status < 0 ) status = errno;
23898 status = pthread_attr_setdetachstate(&attr, detach);
23900 if( status ) return status;
23901 status = pthread_create( &t, &attr, task, NULL );
23902 #if HAVE_PTHREADS < 7
23903 if( status < 0 ) status = errno;
23905 if( status ) return status;
23907 /* Draft 4 pthreads */
23908 status = pthread_create( &t, pthread_attr_default, task, NULL );
23909 if( status ) return errno;
23911 /* give thread a chance to complete */
23912 /* it should remain joinable and hence detachable */
23915 status = pthread_detach( &t );
23916 if( status ) return errno;
23919 #ifdef HAVE_LINUX_THREADS
23920 pthread_kill_other_threads_np();
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ol_cv_pthread_lpthreads_lexc=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ol_cv_pthread_lpthreads_lexc=no
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23965 /* pthread test headers */
23966 #include <pthread.h>
23967 #if HAVE_PTHREADS < 7
23971 #define NULL (void*)0
23974 static void *task(p)
23977 return (void *) (p == NULL);
23981 int main(argc, argv)
23986 /* pthread test function */
23987 #ifndef PTHREAD_CREATE_DETACHED
23988 #define PTHREAD_CREATE_DETACHED 1
23992 int detach = PTHREAD_CREATE_DETACHED;
23994 #if HAVE_PTHREADS > 4
23995 /* Final pthreads */
23996 pthread_attr_t attr;
23998 status = pthread_attr_init(&attr);
23999 if( status ) return status;
24001 #if HAVE_PTHREADS < 7
24002 status = pthread_attr_setdetachstate(&attr, &detach);
24003 if( status < 0 ) status = errno;
24005 status = pthread_attr_setdetachstate(&attr, detach);
24007 if( status ) return status;
24008 status = pthread_create( &t, &attr, task, NULL );
24009 #if HAVE_PTHREADS < 7
24010 if( status < 0 ) status = errno;
24012 if( status ) return status;
24014 /* Draft 4 pthreads */
24015 status = pthread_create( &t, pthread_attr_default, task, NULL );
24016 if( status ) return errno;
24018 /* give thread a chance to complete */
24019 /* it should remain joinable and hence detachable */
24022 status = pthread_detach( &t );
24023 if( status ) return errno;
24026 #ifdef HAVE_LINUX_THREADS
24027 pthread_kill_other_threads_np();
24035 rm -f conftest$ac_exeext
24036 if { (ac_try="$ac_link"
24037 case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_link") 2>&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24046 { (case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_try") 2>&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ol_cv_pthread_lpthreads_lexc=yes
24057 echo "$as_me: program exited with status $ac_status" >&5
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ( exit $ac_status )
24062 ol_cv_pthread_lpthreads_lexc=no
24064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24074 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24076 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24077 ol_link_pthreads="-lpthreads -lexc"
24078 ol_link_threads=posix
24083 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24084 if test "$ol_link_threads" = no ; then
24086 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24087 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24088 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24094 LIBS="-lpthreads $LIBS"
24096 if test "$cross_compiling" = yes; then
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24104 /* pthread test headers */
24105 #include <pthread.h>
24106 #if HAVE_PTHREADS < 7
24110 #define NULL (void*)0
24113 static void *task(p)
24116 return (void *) (p == NULL);
24123 /* pthread test function */
24124 #ifndef PTHREAD_CREATE_DETACHED
24125 #define PTHREAD_CREATE_DETACHED 1
24129 int detach = PTHREAD_CREATE_DETACHED;
24131 #if HAVE_PTHREADS > 4
24132 /* Final pthreads */
24133 pthread_attr_t attr;
24135 status = pthread_attr_init(&attr);
24136 if( status ) return status;
24138 #if HAVE_PTHREADS < 7
24139 status = pthread_attr_setdetachstate(&attr, &detach);
24140 if( status < 0 ) status = errno;
24142 status = pthread_attr_setdetachstate(&attr, detach);
24144 if( status ) return status;
24145 status = pthread_create( &t, &attr, task, NULL );
24146 #if HAVE_PTHREADS < 7
24147 if( status < 0 ) status = errno;
24149 if( status ) return status;
24151 /* Draft 4 pthreads */
24152 status = pthread_create( &t, pthread_attr_default, task, NULL );
24153 if( status ) return errno;
24155 /* give thread a chance to complete */
24156 /* it should remain joinable and hence detachable */
24159 status = pthread_detach( &t );
24160 if( status ) return errno;
24163 #ifdef HAVE_LINUX_THREADS
24164 pthread_kill_other_threads_np();
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_link") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest$ac_exeext &&
24190 $as_test_x conftest$ac_exeext; then
24191 ol_cv_pthread_lib_lpthreads=yes
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24196 ol_cv_pthread_lib_lpthreads=no
24199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200 conftest$ac_exeext conftest.$ac_ext
24202 cat >conftest.$ac_ext <<_ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24209 /* pthread test headers */
24210 #include <pthread.h>
24211 #if HAVE_PTHREADS < 7
24215 #define NULL (void*)0
24218 static void *task(p)
24221 return (void *) (p == NULL);
24225 int main(argc, argv)
24230 /* pthread test function */
24231 #ifndef PTHREAD_CREATE_DETACHED
24232 #define PTHREAD_CREATE_DETACHED 1
24236 int detach = PTHREAD_CREATE_DETACHED;
24238 #if HAVE_PTHREADS > 4
24239 /* Final pthreads */
24240 pthread_attr_t attr;
24242 status = pthread_attr_init(&attr);
24243 if( status ) return status;
24245 #if HAVE_PTHREADS < 7
24246 status = pthread_attr_setdetachstate(&attr, &detach);
24247 if( status < 0 ) status = errno;
24249 status = pthread_attr_setdetachstate(&attr, detach);
24251 if( status ) return status;
24252 status = pthread_create( &t, &attr, task, NULL );
24253 #if HAVE_PTHREADS < 7
24254 if( status < 0 ) status = errno;
24256 if( status ) return status;
24258 /* Draft 4 pthreads */
24259 status = pthread_create( &t, pthread_attr_default, task, NULL );
24260 if( status ) return errno;
24262 /* give thread a chance to complete */
24263 /* it should remain joinable and hence detachable */
24266 status = pthread_detach( &t );
24267 if( status ) return errno;
24270 #ifdef HAVE_LINUX_THREADS
24271 pthread_kill_other_threads_np();
24279 rm -f conftest$ac_exeext
24280 if { (ac_try="$ac_link"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_link") 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24290 { (case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295 (eval "$ac_try") 2>&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
24299 ol_cv_pthread_lib_lpthreads=yes
24301 echo "$as_me: program exited with status $ac_status" >&5
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ( exit $ac_status )
24306 ol_cv_pthread_lib_lpthreads=no
24308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24318 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24320 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24321 ol_link_pthreads="-lpthreads"
24322 ol_link_threads=posix
24327 if test $ol_link_threads != no ; then
24328 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24330 save_CPPFLAGS="$CPPFLAGS"
24332 LIBS="$LTHREAD_LIBS $LIBS"
24337 for ac_func in sched_yield pthread_yield thr_yield
24339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 cat >conftest.$ac_ext <<_ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h. */
24351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24353 #define $ac_func innocuous_$ac_func
24355 /* System header to define __stub macros and hopefully few prototypes,
24356 which can conflict with char $ac_func (); below.
24357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24358 <limits.h> exists even on freestanding compilers. */
24361 # include <limits.h>
24363 # include <assert.h>
24368 /* Override any GCC internal prototype to avoid an error.
24369 Use char because int might match the return type of a GCC
24370 builtin and then its argument prototype would still apply. */
24375 /* The GNU C library defines this for functions which it implements
24376 to always fail with ENOSYS. Some functions are actually named
24377 something starting with __ and the normal name is an alias. */
24378 #if defined __stub_$ac_func || defined __stub___$ac_func
24385 return $ac_func ();
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397 (eval "$ac_link") 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest$ac_exeext &&
24407 $as_test_x conftest$ac_exeext; then
24408 eval "$as_ac_var=yes"
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 eval "$as_ac_var=no"
24416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24417 conftest$ac_exeext conftest.$ac_ext
24419 ac_res=`eval echo '${'$as_ac_var'}'`
24420 { echo "$as_me:$LINENO: result: $ac_res" >&5
24421 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_var'}'` = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24431 if test $ac_cv_func_sched_yield = no &&
24432 test $ac_cv_func_pthread_yield = no &&
24433 test $ac_cv_func_thr_yield = no ; then
24434 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24435 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24436 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 ac_check_lib_save_LIBS=$LIBS
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24448 /* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24454 char sched_yield ();
24458 return sched_yield ();
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470 (eval "$ac_link") 2>conftest.er1
24472 grep -v '^ *+' conftest.er1 >conftest.err
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } && {
24477 test -z "$ac_c_werror_flag" ||
24478 test ! -s conftest.err
24479 } && test -s conftest$ac_exeext &&
24480 $as_test_x conftest$ac_exeext; then
24481 ac_cv_lib_rt_sched_yield=yes
24483 echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24486 ac_cv_lib_rt_sched_yield=no
24489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24490 conftest$ac_exeext conftest.$ac_ext
24491 LIBS=$ac_check_lib_save_LIBS
24493 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24494 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24495 if test $ac_cv_lib_rt_sched_yield = yes; then
24496 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SCHED_YIELD 1
24502 ac_cv_func_sched_yield=yes
24504 ac_cv_func_sched_yield=no
24508 if test $ac_cv_func_sched_yield = no &&
24509 test $ac_cv_func_pthread_yield = no &&
24510 test "$ac_cv_func_thr_yield" = no ; then
24511 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24512 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24516 for ac_func in pthread_kill
24518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24532 #define $ac_func innocuous_$ac_func
24534 /* System header to define __stub macros and hopefully few prototypes,
24535 which can conflict with char $ac_func (); below.
24536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537 <limits.h> exists even on freestanding compilers. */
24540 # include <limits.h>
24542 # include <assert.h>
24547 /* Override any GCC internal prototype to avoid an error.
24548 Use char because int might match the return type of a GCC
24549 builtin and then its argument prototype would still apply. */
24554 /* The GNU C library defines this for functions which it implements
24555 to always fail with ENOSYS. Some functions are actually named
24556 something starting with __ and the normal name is an alias. */
24557 #if defined __stub_$ac_func || defined __stub___$ac_func
24564 return $ac_func ();
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest$ac_exeext &&
24586 $as_test_x conftest$ac_exeext; then
24587 eval "$as_ac_var=yes"
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 eval "$as_ac_var=no"
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596 conftest$ac_exeext conftest.$ac_ext
24598 ac_res=`eval echo '${'$as_ac_var'}'`
24599 { echo "$as_me:$LINENO: result: $ac_res" >&5
24600 echo "${ECHO_T}$ac_res" >&6; }
24601 if test `eval echo '${'$as_ac_var'}'` = yes; then
24602 cat >>confdefs.h <<_ACEOF
24603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24610 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24611 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24612 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24616 cat >conftest.$ac_ext <<_ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h. */
24623 #include <pthread.h>
24624 pthread_rwlock_t rwlock;
24629 pthread_rwlock_destroy(&rwlock);
24634 rm -f conftest.$ac_objext conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_link") 2>conftest.er1
24643 grep -v '^ *+' conftest.er1 >conftest.err
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } && {
24648 test -z "$ac_c_werror_flag" ||
24649 test ! -s conftest.err
24650 } && test -s conftest$ac_exeext &&
24651 $as_test_x conftest$ac_exeext; then
24652 ol_cv_func_pthread_rwlock_destroy=yes
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24657 ol_cv_func_pthread_rwlock_destroy=no
24660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24661 conftest$ac_exeext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24665 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24666 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24668 cat >>confdefs.h <<\_ACEOF
24669 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24674 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24675 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24676 if test "${ol_cv_func_pthread_detach+set}" = set; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 cat >conftest.$ac_ext <<_ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24687 #include <pthread.h>
24689 #define NULL (void*)0
24695 pthread_detach(NULL);
24700 rm -f conftest.$ac_objext conftest$ac_exeext
24701 if { (ac_try="$ac_link"
24702 case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_link") 2>conftest.er1
24709 grep -v '^ *+' conftest.er1 >conftest.err
24711 cat conftest.err >&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest$ac_exeext &&
24717 $as_test_x conftest$ac_exeext; then
24718 ol_cv_func_pthread_detach=yes
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ol_cv_func_pthread_detach=no
24726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24727 conftest$ac_exeext conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24731 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24733 if test $ol_cv_func_pthread_detach = no ; then
24734 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24735 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24736 { (exit 1); exit 1; }; }
24740 cat >>confdefs.h <<\_ACEOF
24741 #define HAVE_PTHREAD_DETACH 1
24750 pthread_setconcurrency \
24751 pthread_getconcurrency \
24752 thr_setconcurrency \
24753 thr_getconcurrency \
24756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24770 #define $ac_func innocuous_$ac_func
24772 /* System header to define __stub macros and hopefully few prototypes,
24773 which can conflict with char $ac_func (); below.
24774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775 <limits.h> exists even on freestanding compilers. */
24778 # include <limits.h>
24780 # include <assert.h>
24785 /* Override any GCC internal prototype to avoid an error.
24786 Use char because int might match the return type of a GCC
24787 builtin and then its argument prototype would still apply. */
24792 /* The GNU C library defines this for functions which it implements
24793 to always fail with ENOSYS. Some functions are actually named
24794 something starting with __ and the normal name is an alias. */
24795 #if defined __stub_$ac_func || defined __stub___$ac_func
24802 return $ac_func ();
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_link") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } && {
24821 test -z "$ac_c_werror_flag" ||
24822 test ! -s conftest.err
24823 } && test -s conftest$ac_exeext &&
24824 $as_test_x conftest$ac_exeext; then
24825 eval "$as_ac_var=yes"
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 eval "$as_ac_var=no"
24833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24834 conftest$ac_exeext conftest.$ac_ext
24836 ac_res=`eval echo '${'$as_ac_var'}'`
24837 { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24839 if test `eval echo '${'$as_ac_var'}'` = yes; then
24840 cat >>confdefs.h <<_ACEOF
24841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24850 for ac_func in pthread_kill_other_threads_np
24852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24856 echo $ECHO_N "(cached) $ECHO_C" >&6
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24866 #define $ac_func innocuous_$ac_func
24868 /* System header to define __stub macros and hopefully few prototypes,
24869 which can conflict with char $ac_func (); below.
24870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24871 <limits.h> exists even on freestanding compilers. */
24874 # include <limits.h>
24876 # include <assert.h>
24881 /* Override any GCC internal prototype to avoid an error.
24882 Use char because int might match the return type of a GCC
24883 builtin and then its argument prototype would still apply. */
24888 /* The GNU C library defines this for functions which it implements
24889 to always fail with ENOSYS. Some functions are actually named
24890 something starting with __ and the normal name is an alias. */
24891 #if defined __stub_$ac_func || defined __stub___$ac_func
24898 return $ac_func ();
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_link") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest$ac_exeext &&
24920 $as_test_x conftest$ac_exeext; then
24921 eval "$as_ac_var=yes"
24923 echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24926 eval "$as_ac_var=no"
24929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24930 conftest$ac_exeext conftest.$ac_ext
24932 ac_res=`eval echo '${'$as_ac_var'}'`
24933 { echo "$as_me:$LINENO: result: $ac_res" >&5
24934 echo "${ECHO_T}$ac_res" >&6; }
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936 cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24943 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24944 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24945 if test "${ol_cv_sys_linux_threads+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24950 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24951 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24956 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24957 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24958 if test "${ol_cv_linux_threads+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 if test $ol_cv_header_linux_threads = yes &&
24963 test $ol_cv_sys_linux_threads = yes; then
24964 ol_cv_linux_threads=yes
24965 elif test $ol_cv_header_linux_threads = no &&
24966 test $ol_cv_sys_linux_threads = no; then
24967 ol_cv_linux_threads=no
24969 ol_cv_linux_threads=error
24973 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24974 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24977 if test $ol_cv_linux_threads = error; then
24978 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24979 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24980 { (exit 1); exit 1; }; };
24983 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24984 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24985 if test "${ol_cv_pthread_create_works+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 if test "$cross_compiling" = yes; then
24990 ol_cv_pthread_create_works=yes
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 /* pthread test headers */
25000 #include <pthread.h>
25001 #if HAVE_PTHREADS < 7
25005 #define NULL (void*)0
25008 static void *task(p)
25011 return (void *) (p == NULL);
25015 int main(argc, argv)
25020 /* pthread test function */
25021 #ifndef PTHREAD_CREATE_DETACHED
25022 #define PTHREAD_CREATE_DETACHED 1
25026 int detach = PTHREAD_CREATE_DETACHED;
25028 #if HAVE_PTHREADS > 4
25029 /* Final pthreads */
25030 pthread_attr_t attr;
25032 status = pthread_attr_init(&attr);
25033 if( status ) return status;
25035 #if HAVE_PTHREADS < 7
25036 status = pthread_attr_setdetachstate(&attr, &detach);
25037 if( status < 0 ) status = errno;
25039 status = pthread_attr_setdetachstate(&attr, detach);
25041 if( status ) return status;
25042 status = pthread_create( &t, &attr, task, NULL );
25043 #if HAVE_PTHREADS < 7
25044 if( status < 0 ) status = errno;
25046 if( status ) return status;
25048 /* Draft 4 pthreads */
25049 status = pthread_create( &t, pthread_attr_default, task, NULL );
25050 if( status ) return errno;
25052 /* give thread a chance to complete */
25053 /* it should remain joinable and hence detachable */
25056 status = pthread_detach( &t );
25057 if( status ) return errno;
25060 #ifdef HAVE_LINUX_THREADS
25061 pthread_kill_other_threads_np();
25069 rm -f conftest$ac_exeext
25070 if { (ac_try="$ac_link"
25071 case "(($ac_try" in
25072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073 *) ac_try_echo=$ac_try;;
25075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076 (eval "$ac_link") 2>&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25080 { (case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_try") 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; }; then
25089 ol_cv_pthread_create_works=yes
25091 echo "$as_me: program exited with status $ac_status" >&5
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 ( exit $ac_status )
25096 ol_cv_pthread_create_works=no
25098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25103 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25104 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25106 if test $ol_cv_pthread_create_works = no ; then
25107 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25108 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25109 { (exit 1); exit 1; }; }
25112 ol_replace_broken_yield=no
25114 if test $ol_replace_broken_yield = yes ; then
25116 cat >>confdefs.h <<\_ACEOF
25117 #define REPLACE_BROKEN_YIELD 1
25122 if test $ol_with_yielding_select = auto ; then
25123 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25124 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25125 if test "${ol_cv_pthread_select_yields+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25129 if test "$cross_compiling" = yes; then
25130 ol_cv_pthread_select_yields=cross
25132 cat >conftest.$ac_ext <<_ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25139 #include <sys/types.h>
25140 #include <sys/time.h>
25141 #include <unistd.h>
25142 #include <pthread.h>
25144 #define NULL (void*) 0
25147 static int fildes[2];
25149 static void *task(p)
25161 FD_SET(fildes[0], &rfds);
25163 /* we're not interested in any fds */
25164 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25171 exit(0); /* if we exit here, the select blocked the whole process */
25174 int main(argc, argv)
25180 /* create a pipe to select */
25181 if(pipe(&fildes[0])) {
25186 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25187 (void) pthread_setconcurrency(2);
25189 #ifdef HAVE_THR_SETCONCURRENCY
25190 /* Set Solaris LWP concurrency to 2 */
25191 thr_setconcurrency(2);
25195 #if HAVE_PTHREADS < 6
25196 pthread_create(&t, pthread_attr_default, task, NULL);
25198 pthread_create(&t, NULL, task, NULL);
25201 /* make sure task runs first */
25202 #ifdef HAVE_THR_YIELD
25204 #elif defined( HAVE_SCHED_YIELD )
25206 #elif defined( HAVE_PTHREAD_YIELD )
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_link") 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224 { (case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229 (eval "$ac_try") 2>&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); }; }; then
25233 ol_cv_pthread_select_yields=no
25235 echo "$as_me: program exited with status $ac_status" >&5
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ( exit $ac_status )
25240 ol_cv_pthread_select_yields=yes
25242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25247 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25248 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25250 if test $ol_cv_pthread_select_yields = cross ; then
25251 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25252 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25253 { (exit 1); exit 1; }; }
25256 if test $ol_cv_pthread_select_yields = yes ; then
25257 ol_with_yielding_select=yes
25261 CPPFLAGS="$save_CPPFLAGS"
25264 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25265 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25266 { (exit 1); exit 1; }; }
25270 if test $ol_with_threads = posix ; then
25271 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25272 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25273 { (exit 1); exit 1; }; }
25278 case $ol_with_threads in auto | yes | mach)
25282 for ac_header in mach/cthreads.h cthreads.h
25284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292 { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25295 # Is the header compilable?
25296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 #include <$ac_header>
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 ac_header_compiler=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_header_compiler=no
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25334 echo "${ECHO_T}$ac_header_compiler" >&6; }
25336 # Is the header present?
25337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 #include <$ac_header>
25347 if { (ac_try="$ac_cpp conftest.$ac_ext"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } >/dev/null && {
25360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25363 ac_header_preproc=yes
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_header_preproc=no
25371 rm -f conftest.err conftest.$ac_ext
25372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25373 echo "${ECHO_T}$ac_header_preproc" >&6; }
25375 # So? What about this header?
25376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25382 ac_header_preproc=yes
25385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25398 ## --------------------------------------------- ##
25399 ## Report this to <http://www.openldap.org/its/> ##
25400 ## --------------------------------------------- ##
25402 ) | sed "s/^/$as_me: WARNING: /" >&2
25405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 eval "$as_ac_Header=\$ac_header_preproc"
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413 { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25418 cat >>confdefs.h <<_ACEOF
25419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25426 if test $ac_cv_header_mach_cthreads_h = yes ; then
25427 ol_with_threads=found
25429 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25430 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25431 if test "${ac_cv_func_cthread_fork+set}" = set; then
25432 echo $ECHO_N "(cached) $ECHO_C" >&6
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25442 #define cthread_fork innocuous_cthread_fork
25444 /* System header to define __stub macros and hopefully few prototypes,
25445 which can conflict with char cthread_fork (); below.
25446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25447 <limits.h> exists even on freestanding compilers. */
25450 # include <limits.h>
25452 # include <assert.h>
25455 #undef cthread_fork
25457 /* Override any GCC internal prototype to avoid an error.
25458 Use char because int might match the return type of a GCC
25459 builtin and then its argument prototype would still apply. */
25463 char cthread_fork ();
25464 /* The GNU C library defines this for functions which it implements
25465 to always fail with ENOSYS. Some functions are actually named
25466 something starting with __ and the normal name is an alias. */
25467 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25474 return cthread_fork ();
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486 (eval "$ac_link") 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest$ac_exeext &&
25496 $as_test_x conftest$ac_exeext; then
25497 ac_cv_func_cthread_fork=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_cv_func_cthread_fork=no
25505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25506 conftest$ac_exeext conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25509 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25510 if test $ac_cv_func_cthread_fork = yes; then
25511 ol_link_threads=yes
25515 if test $ol_link_threads = no ; then
25516 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25517 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25518 if test "${ol_cv_cthread_all_load+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 LIBS="-all_load $LIBS"
25524 cat >conftest.$ac_ext <<_ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h. */
25530 #include <mach/cthreads.h>
25535 cthread_fork((void *)0, (void *)0);
25541 rm -f conftest.$ac_objext conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_link") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest$ac_exeext &&
25558 $as_test_x conftest$ac_exeext; then
25559 ol_cv_cthread_all_load=yes
25561 echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25564 ol_cv_cthread_all_load=no
25567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25568 conftest$ac_exeext conftest.$ac_ext
25572 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25573 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25575 if test $ol_cv_cthread_all_load = yes ; then
25576 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25577 ol_link_threads=mach
25578 ol_with_threads=found
25582 elif test $ac_cv_header_cthreads_h = yes ; then
25584 ol_with_threads=found
25587 LIBS="$LIBS -lthreads"
25588 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25589 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25590 if test "${ac_cv_func_cthread_fork+set}" = set; then
25591 echo $ECHO_N "(cached) $ECHO_C" >&6
25593 cat >conftest.$ac_ext <<_ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25599 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25601 #define cthread_fork innocuous_cthread_fork
25603 /* System header to define __stub macros and hopefully few prototypes,
25604 which can conflict with char cthread_fork (); below.
25605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25606 <limits.h> exists even on freestanding compilers. */
25609 # include <limits.h>
25611 # include <assert.h>
25614 #undef cthread_fork
25616 /* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25622 char cthread_fork ();
25623 /* The GNU C library defines this for functions which it implements
25624 to always fail with ENOSYS. Some functions are actually named
25625 something starting with __ and the normal name is an alias. */
25626 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25633 return cthread_fork ();
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_link") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_func_cthread_fork=yes
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_func_cthread_fork=no
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665 conftest$ac_exeext conftest.$ac_ext
25667 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25668 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25669 if test $ac_cv_func_cthread_fork = yes; then
25670 ol_link_threads=yes
25675 if test $ol_link_threads = yes ; then
25676 LTHREAD_LIBS="-lthreads"
25677 ol_link_threads=mach
25678 ol_with_threads=found
25680 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25681 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25682 { (exit 1); exit 1; }; }
25685 elif test $ol_with_threads = mach ; then
25686 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25687 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25688 { (exit 1); exit 1; }; }
25691 if test $ol_link_threads = mach ; then
25693 cat >>confdefs.h <<\_ACEOF
25694 #define HAVE_MACH_CTHREADS 1
25697 elif test $ol_with_threads = found ; then
25698 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25699 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25700 { (exit 1); exit 1; }; }
25705 case $ol_with_threads in auto | yes | pth)
25708 for ac_header in pth.h
25710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718 { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25721 # Is the header compilable?
25722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25724 cat >conftest.$ac_ext <<_ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 $ac_includes_default
25731 #include <$ac_header>
25733 rm -f conftest.$ac_objext
25734 if { (ac_try="$ac_compile"
25735 case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_compile") 2>conftest.er1
25742 grep -v '^ *+' conftest.er1 >conftest.err
25744 cat conftest.err >&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); } && {
25747 test -z "$ac_c_werror_flag" ||
25748 test ! -s conftest.err
25749 } && test -s conftest.$ac_objext; then
25750 ac_header_compiler=yes
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 ac_header_compiler=no
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25760 echo "${ECHO_T}$ac_header_compiler" >&6; }
25762 # Is the header present?
25763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 #include <$ac_header>
25773 if { (ac_try="$ac_cpp conftest.$ac_ext"
25774 case "(($ac_try" in
25775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776 *) ac_try_echo=$ac_try;;
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } >/dev/null && {
25786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25787 test ! -s conftest.err
25789 ac_header_preproc=yes
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_header_preproc=no
25797 rm -f conftest.err conftest.$ac_ext
25798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25799 echo "${ECHO_T}$ac_header_preproc" >&6; }
25801 # So? What about this header?
25802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25808 ac_header_preproc=yes
25811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25824 ## --------------------------------------------- ##
25825 ## Report this to <http://www.openldap.org/its/> ##
25826 ## --------------------------------------------- ##
25828 ) | sed "s/^/$as_me: WARNING: /" >&2
25831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 eval "$as_ac_Header=\$ac_header_preproc"
25838 ac_res=`eval echo '${'$as_ac_Header'}'`
25839 { echo "$as_me:$LINENO: result: $ac_res" >&5
25840 echo "${ECHO_T}$ac_res" >&6; }
25843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25844 cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25853 if test $ac_cv_header_pth_h = yes ; then
25854 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25855 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25856 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 ac_check_lib_save_LIBS=$LIBS
25861 cat >conftest.$ac_ext <<_ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h. */
25868 /* Override any GCC internal prototype to avoid an error.
25869 Use char because int might match the return type of a GCC
25870 builtin and then its argument prototype would still apply. */
25874 char pth_version ();
25878 return pth_version ();
25883 rm -f conftest.$ac_objext conftest$ac_exeext
25884 if { (ac_try="$ac_link"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_link") 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest$ac_exeext &&
25900 $as_test_x conftest$ac_exeext; then
25901 ac_cv_lib_pth_pth_version=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_lib_pth_pth_version=no
25909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25910 conftest$ac_exeext conftest.$ac_ext
25911 LIBS=$ac_check_lib_save_LIBS
25913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25914 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25915 if test $ac_cv_lib_pth_pth_version = yes; then
25922 if test $have_pth = yes ; then
25924 cat >>confdefs.h <<\_ACEOF
25925 #define HAVE_GNU_PTH 1
25928 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25929 ol_link_threads=pth
25930 ol_with_threads=found
25932 if test $ol_with_yielding_select = auto ; then
25933 ol_with_yielding_select=yes
25940 case $ol_with_threads in auto | yes | lwp)
25944 for ac_header in thread.h synch.h
25946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 ac_res=`eval echo '${'$as_ac_Header'}'`
25954 { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25957 # Is the header compilable?
25958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 $ac_includes_default
25967 #include <$ac_header>
25969 rm -f conftest.$ac_objext
25970 if { (ac_try="$ac_compile"
25971 case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_compile") 2>conftest.er1
25978 grep -v '^ *+' conftest.er1 >conftest.err
25980 cat conftest.err >&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } && {
25983 test -z "$ac_c_werror_flag" ||
25984 test ! -s conftest.err
25985 } && test -s conftest.$ac_objext; then
25986 ac_header_compiler=yes
25988 echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25991 ac_header_compiler=no
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25996 echo "${ECHO_T}$ac_header_compiler" >&6; }
25998 # Is the header present?
25999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26001 cat >conftest.$ac_ext <<_ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 #include <$ac_header>
26009 if { (ac_try="$ac_cpp conftest.$ac_ext"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } >/dev/null && {
26022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26025 ac_header_preproc=yes
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_header_preproc=no
26033 rm -f conftest.err conftest.$ac_ext
26034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26035 echo "${ECHO_T}$ac_header_preproc" >&6; }
26037 # So? What about this header?
26038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26044 ac_header_preproc=yes
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26060 ## --------------------------------------------- ##
26061 ## Report this to <http://www.openldap.org/its/> ##
26062 ## --------------------------------------------- ##
26064 ) | sed "s/^/$as_me: WARNING: /" >&2
26067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26072 eval "$as_ac_Header=\$ac_header_preproc"
26074 ac_res=`eval echo '${'$as_ac_Header'}'`
26075 { echo "$as_me:$LINENO: result: $ac_res" >&5
26076 echo "${ECHO_T}$ac_res" >&6; }
26079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26080 cat >>confdefs.h <<_ACEOF
26081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26088 if test $ac_cv_header_thread_h = yes &&
26089 test $ac_cv_header_synch_h = yes ; then
26090 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26091 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26092 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26093 echo $ECHO_N "(cached) $ECHO_C" >&6
26095 ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lthread $LIBS"
26097 cat >conftest.$ac_ext <<_ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26104 /* Override any GCC internal prototype to avoid an error.
26105 Use char because int might match the return type of a GCC
26106 builtin and then its argument prototype would still apply. */
26110 char thr_create ();
26114 return thr_create ();
26119 rm -f conftest.$ac_objext conftest$ac_exeext
26120 if { (ac_try="$ac_link"
26121 case "(($ac_try" in
26122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123 *) ac_try_echo=$ac_try;;
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126 (eval "$ac_link") 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest$ac_exeext &&
26136 $as_test_x conftest$ac_exeext; then
26137 ac_cv_lib_thread_thr_create=yes
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 ac_cv_lib_thread_thr_create=no
26145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26146 conftest$ac_exeext conftest.$ac_ext
26147 LIBS=$ac_check_lib_save_LIBS
26149 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26150 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26151 if test $ac_cv_lib_thread_thr_create = yes; then
26158 if test $have_thr = yes ; then
26160 cat >>confdefs.h <<\_ACEOF
26164 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26165 ol_link_threads=thr
26167 if test $ol_with_yielding_select = auto ; then
26168 ol_with_yielding_select=yes
26174 thr_setconcurrency \
26175 thr_getconcurrency \
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define $ac_func innocuous_$ac_func
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any GCC internal prototype to avoid an error.
26208 Use char because int might match the return type of a GCC
26209 builtin and then its argument prototype would still apply. */
26214 /* The GNU C library defines this for functions which it implements
26215 to always fail with ENOSYS. Some functions are actually named
26216 something starting with __ and the normal name is an alias. */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26224 return $ac_func ();
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_link") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest$ac_exeext &&
26246 $as_test_x conftest$ac_exeext; then
26247 eval "$as_ac_var=yes"
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 eval "$as_ac_var=no"
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256 conftest$ac_exeext conftest.$ac_ext
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259 { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262 cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26273 for ac_header in lwp/lwp.h
26275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 ac_res=`eval echo '${'$as_ac_Header'}'`
26283 { echo "$as_me:$LINENO: result: $ac_res" >&5
26284 echo "${ECHO_T}$ac_res" >&6; }
26286 # Is the header compilable?
26287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 $ac_includes_default
26296 #include <$ac_header>
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_compile") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } && {
26312 test -z "$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 } && test -s conftest.$ac_objext; then
26315 ac_header_compiler=yes
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_header_compiler=no
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26325 echo "${ECHO_T}$ac_header_compiler" >&6; }
26327 # Is the header present?
26328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26336 #include <$ac_header>
26338 if { (ac_try="$ac_cpp conftest.$ac_ext"
26339 case "(($ac_try" in
26340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341 *) ac_try_echo=$ac_try;;
26343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26346 grep -v '^ *+' conftest.er1 >conftest.err
26348 cat conftest.err >&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } >/dev/null && {
26351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26352 test ! -s conftest.err
26354 ac_header_preproc=yes
26356 echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26359 ac_header_preproc=no
26362 rm -f conftest.err conftest.$ac_ext
26363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6; }
26366 # So? What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373 ac_header_preproc=yes
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26389 ## --------------------------------------------- ##
26390 ## Report this to <http://www.openldap.org/its/> ##
26391 ## --------------------------------------------- ##
26393 ) | sed "s/^/$as_me: WARNING: /" >&2
26396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 eval "$as_ac_Header=\$ac_header_preproc"
26403 ac_res=`eval echo '${'$as_ac_Header'}'`
26404 { echo "$as_me:$LINENO: result: $ac_res" >&5
26405 echo "${ECHO_T}$ac_res" >&6; }
26408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26409 cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26417 if test $ac_cv_header_lwp_lwp_h = yes ; then
26418 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26419 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26420 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 ac_check_lib_save_LIBS=$LIBS
26425 cat >conftest.$ac_ext <<_ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26432 /* Override any GCC internal prototype to avoid an error.
26433 Use char because int might match the return type of a GCC
26434 builtin and then its argument prototype would still apply. */
26438 char lwp_create ();
26442 return lwp_create ();
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (ac_try="$ac_link"
26449 case "(($ac_try" in
26450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454 (eval "$ac_link") 2>conftest.er1
26456 grep -v '^ *+' conftest.er1 >conftest.err
26458 cat conftest.err >&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); } && {
26461 test -z "$ac_c_werror_flag" ||
26462 test ! -s conftest.err
26463 } && test -s conftest$ac_exeext &&
26464 $as_test_x conftest$ac_exeext; then
26465 ac_cv_lib_lwp_lwp_create=yes
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470 ac_cv_lib_lwp_lwp_create=no
26473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26474 conftest$ac_exeext conftest.$ac_ext
26475 LIBS=$ac_check_lib_save_LIBS
26477 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26478 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26479 if test $ac_cv_lib_lwp_lwp_create = yes; then
26486 if test $have_lwp = yes ; then
26488 cat >>confdefs.h <<\_ACEOF
26492 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26493 ol_link_threads=lwp
26495 if test $ol_with_yielding_select = auto ; then
26496 ol_with_yielding_select=no
26503 if test $ol_with_yielding_select = yes ; then
26505 cat >>confdefs.h <<\_ACEOF
26506 #define HAVE_YIELDING_SELECT 1
26511 if test $ol_with_threads = manual ; then
26512 ol_link_threads=yes
26514 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26515 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26519 for ac_header in pthread.h sched.h
26521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526 echo $ECHO_N "(cached) $ECHO_C" >&6
26528 ac_res=`eval echo '${'$as_ac_Header'}'`
26529 { echo "$as_me:$LINENO: result: $ac_res" >&5
26530 echo "${ECHO_T}$ac_res" >&6; }
26532 # Is the header compilable?
26533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 $ac_includes_default
26542 #include <$ac_header>
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_compile") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } && {
26558 test -z "$ac_c_werror_flag" ||
26559 test ! -s conftest.err
26560 } && test -s conftest.$ac_objext; then
26561 ac_header_compiler=yes
26563 echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 ac_header_compiler=no
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26571 echo "${ECHO_T}$ac_header_compiler" >&6; }
26573 # Is the header present?
26574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26576 cat >conftest.$ac_ext <<_ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26582 #include <$ac_header>
26584 if { (ac_try="$ac_cpp conftest.$ac_ext"
26585 case "(($ac_try" in
26586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26587 *) ac_try_echo=$ac_try;;
26589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26592 grep -v '^ *+' conftest.er1 >conftest.err
26594 cat conftest.err >&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } >/dev/null && {
26597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26598 test ! -s conftest.err
26600 ac_header_preproc=yes
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 ac_header_preproc=no
26608 rm -f conftest.err conftest.$ac_ext
26609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26610 echo "${ECHO_T}$ac_header_preproc" >&6; }
26612 # So? What about this header?
26613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26619 ac_header_preproc=yes
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26635 ## --------------------------------------------- ##
26636 ## Report this to <http://www.openldap.org/its/> ##
26637 ## --------------------------------------------- ##
26639 ) | sed "s/^/$as_me: WARNING: /" >&2
26642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 eval "$as_ac_Header=\$ac_header_preproc"
26649 ac_res=`eval echo '${'$as_ac_Header'}'`
26650 { echo "$as_me:$LINENO: result: $ac_res" >&5
26651 echo "${ECHO_T}$ac_res" >&6; }
26654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26655 cat >>confdefs.h <<_ACEOF
26656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665 for ac_func in sched_yield pthread_yield
26667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26681 #define $ac_func innocuous_$ac_func
26683 /* System header to define __stub macros and hopefully few prototypes,
26684 which can conflict with char $ac_func (); below.
26685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26686 <limits.h> exists even on freestanding compilers. */
26689 # include <limits.h>
26691 # include <assert.h>
26696 /* Override any GCC internal prototype to avoid an error.
26697 Use char because int might match the return type of a GCC
26698 builtin and then its argument prototype would still apply. */
26703 /* The GNU C library defines this for functions which it implements
26704 to always fail with ENOSYS. Some functions are actually named
26705 something starting with __ and the normal name is an alias. */
26706 #if defined __stub_$ac_func || defined __stub___$ac_func
26713 return $ac_func ();
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (ac_try="$ac_link"
26720 case "(($ac_try" in
26721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722 *) ac_try_echo=$ac_try;;
26724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26725 (eval "$ac_link") 2>conftest.er1
26727 grep -v '^ *+' conftest.er1 >conftest.err
26729 cat conftest.err >&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } && {
26732 test -z "$ac_c_werror_flag" ||
26733 test ! -s conftest.err
26734 } && test -s conftest$ac_exeext &&
26735 $as_test_x conftest$ac_exeext; then
26736 eval "$as_ac_var=yes"
26738 echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26741 eval "$as_ac_var=no"
26744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26745 conftest$ac_exeext conftest.$ac_ext
26747 ac_res=`eval echo '${'$as_ac_var'}'`
26748 { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26750 if test `eval echo '${'$as_ac_var'}'` = yes; then
26751 cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26759 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26760 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26761 if test "${ol_cv_header_linux_threads+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 #include <pthread.h>
26772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26773 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26774 ol_cv_header_linux_threads=yes
26776 ol_cv_header_linux_threads=no
26782 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26783 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26784 if test $ol_cv_header_linux_threads = yes; then
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_LINUX_THREADS 1
26794 for ac_header in mach/cthreads.h
26796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 ac_res=`eval echo '${'$as_ac_Header'}'`
26804 { echo "$as_me:$LINENO: result: $ac_res" >&5
26805 echo "${ECHO_T}$ac_res" >&6; }
26807 # Is the header compilable?
26808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 $ac_includes_default
26817 #include <$ac_header>
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_compile") 2>conftest.er1
26828 grep -v '^ *+' conftest.er1 >conftest.err
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest.$ac_objext; then
26836 ac_header_compiler=yes
26838 echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26841 ac_header_compiler=no
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26846 echo "${ECHO_T}$ac_header_compiler" >&6; }
26848 # Is the header present?
26849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26851 cat >conftest.$ac_ext <<_ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h. */
26857 #include <$ac_header>
26859 if { (ac_try="$ac_cpp conftest.$ac_ext"
26860 case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } >/dev/null && {
26872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26873 test ! -s conftest.err
26875 ac_header_preproc=yes
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26880 ac_header_preproc=no
26883 rm -f conftest.err conftest.$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26885 echo "${ECHO_T}$ac_header_preproc" >&6; }
26887 # So? What about this header?
26888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26894 ac_header_preproc=yes
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26910 ## --------------------------------------------- ##
26911 ## Report this to <http://www.openldap.org/its/> ##
26912 ## --------------------------------------------- ##
26914 ) | sed "s/^/$as_me: WARNING: /" >&2
26917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 eval "$as_ac_Header=\$ac_header_preproc"
26924 ac_res=`eval echo '${'$as_ac_Header'}'`
26925 { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930 cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26939 for ac_header in lwp/lwp.h
26941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26946 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 ac_res=`eval echo '${'$as_ac_Header'}'`
26949 { echo "$as_me:$LINENO: result: $ac_res" >&5
26950 echo "${ECHO_T}$ac_res" >&6; }
26952 # Is the header compilable?
26953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26955 cat >conftest.$ac_ext <<_ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 $ac_includes_default
26962 #include <$ac_header>
26964 rm -f conftest.$ac_objext
26965 if { (ac_try="$ac_compile"
26966 case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_compile") 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } && {
26978 test -z "$ac_c_werror_flag" ||
26979 test ! -s conftest.err
26980 } && test -s conftest.$ac_objext; then
26981 ac_header_compiler=yes
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_header_compiler=no
26989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26991 echo "${ECHO_T}$ac_header_compiler" >&6; }
26993 # Is the header present?
26994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27002 #include <$ac_header>
27004 if { (ac_try="$ac_cpp conftest.$ac_ext"
27005 case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27012 grep -v '^ *+' conftest.er1 >conftest.err
27014 cat conftest.err >&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } >/dev/null && {
27017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27018 test ! -s conftest.err
27020 ac_header_preproc=yes
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27025 ac_header_preproc=no
27028 rm -f conftest.err conftest.$ac_ext
27029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27030 echo "${ECHO_T}$ac_header_preproc" >&6; }
27032 # So? What about this header?
27033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27039 ac_header_preproc=yes
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27055 ## --------------------------------------------- ##
27056 ## Report this to <http://www.openldap.org/its/> ##
27057 ## --------------------------------------------- ##
27059 ) | sed "s/^/$as_me: WARNING: /" >&2
27062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 eval "$as_ac_Header=\$ac_header_preproc"
27069 ac_res=`eval echo '${'$as_ac_Header'}'`
27070 { echo "$as_me:$LINENO: result: $ac_res" >&5
27071 echo "${ECHO_T}$ac_res" >&6; }
27074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27075 cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27085 for ac_header in thread.h synch.h
27087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 ac_res=`eval echo '${'$as_ac_Header'}'`
27095 { echo "$as_me:$LINENO: result: $ac_res" >&5
27096 echo "${ECHO_T}$ac_res" >&6; }
27098 # Is the header compilable?
27099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 $ac_includes_default
27108 #include <$ac_header>
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117 (eval "$ac_compile") 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } && {
27124 test -z "$ac_c_werror_flag" ||
27125 test ! -s conftest.err
27126 } && test -s conftest.$ac_objext; then
27127 ac_header_compiler=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_header_compiler=no
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27137 echo "${ECHO_T}$ac_header_compiler" >&6; }
27139 # Is the header present?
27140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27142 cat >conftest.$ac_ext <<_ACEOF
27145 cat confdefs.h >>conftest.$ac_ext
27146 cat >>conftest.$ac_ext <<_ACEOF
27147 /* end confdefs.h. */
27148 #include <$ac_header>
27150 if { (ac_try="$ac_cpp conftest.$ac_ext"
27151 case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } >/dev/null && {
27163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27164 test ! -s conftest.err
27166 ac_header_preproc=yes
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 ac_header_preproc=no
27174 rm -f conftest.err conftest.$ac_ext
27175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6; }
27178 # So? What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185 ac_header_preproc=yes
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27201 ## --------------------------------------------- ##
27202 ## Report this to <http://www.openldap.org/its/> ##
27203 ## --------------------------------------------- ##
27205 ) | sed "s/^/$as_me: WARNING: /" >&2
27208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27211 echo $ECHO_N "(cached) $ECHO_C" >&6
27213 eval "$as_ac_Header=\$ac_header_preproc"
27215 ac_res=`eval echo '${'$as_ac_Header'}'`
27216 { echo "$as_me:$LINENO: result: $ac_res" >&5
27217 echo "${ECHO_T}$ac_res" >&6; }
27220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27221 cat >>confdefs.h <<_ACEOF
27222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27231 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27232 cat >>confdefs.h <<\_ACEOF
27233 #define REENTRANT 1
27236 cat >>confdefs.h <<\_ACEOF
27237 #define _REENTRANT 1
27240 cat >>confdefs.h <<\_ACEOF
27241 #define THREAD_SAFE 1
27244 cat >>confdefs.h <<\_ACEOF
27245 #define _THREAD_SAFE 1
27248 cat >>confdefs.h <<\_ACEOF
27249 #define THREADSAFE 1
27252 cat >>confdefs.h <<\_ACEOF
27253 #define _THREADSAFE 1
27256 cat >>confdefs.h <<\_ACEOF
27257 #define _SGI_MP_SOURCE 1
27261 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27262 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27263 if test "${ol_cv_errno_thread_specific+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 cat >conftest.$ac_ext <<_ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_link") 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } && {
27296 test -z "$ac_c_werror_flag" ||
27297 test ! -s conftest.err
27298 } && test -s conftest$ac_exeext &&
27299 $as_test_x conftest$ac_exeext; then
27300 ol_cv_errno_thread_specific=yes
27302 echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27305 ol_cv_errno_thread_specific=no
27308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27309 conftest$ac_exeext conftest.$ac_ext
27312 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27313 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27315 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27316 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27317 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27318 echo $ECHO_N "(cached) $ECHO_C" >&6
27321 cat >conftest.$ac_ext <<_ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h. */
27336 rm -f conftest.$ac_objext conftest$ac_exeext
27337 if { (ac_try="$ac_link"
27338 case "(($ac_try" in
27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343 (eval "$ac_link") 2>conftest.er1
27345 grep -v '^ *+' conftest.er1 >conftest.err
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && {
27350 test -z "$ac_c_werror_flag" ||
27351 test ! -s conftest.err
27352 } && test -s conftest$ac_exeext &&
27353 $as_test_x conftest$ac_exeext; then
27354 ol_cv_h_errno_thread_specific=yes
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 ol_cv_h_errno_thread_specific=no
27362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27363 conftest$ac_exeext conftest.$ac_ext
27366 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27367 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27369 if test $ol_cv_errno_thread_specific != yes ||
27370 test $ol_cv_h_errno_thread_specific != yes ; then
27371 LIBS="$LTHREAD_LIBS $LIBS"
27377 if test $ol_link_threads = no ; then
27378 if test $ol_with_threads = yes ; then
27379 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27380 echo "$as_me: error: no suitable thread support" >&2;}
27381 { (exit 1); exit 1; }; }
27384 if test $ol_with_threads = auto ; then
27385 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27386 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27391 cat >>confdefs.h <<\_ACEOF
27392 #define NO_THREADS 1
27401 if test $ol_link_threads != no ; then
27403 cat >>confdefs.h <<\_ACEOF
27404 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27416 gmtime_r localtime_r \
27417 gethostbyname_r gethostbyaddr_r \
27420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27434 #define $ac_func innocuous_$ac_func
27436 /* System header to define __stub macros and hopefully few prototypes,
27437 which can conflict with char $ac_func (); below.
27438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27439 <limits.h> exists even on freestanding compilers. */
27442 # include <limits.h>
27444 # include <assert.h>
27449 /* Override any GCC internal prototype to avoid an error.
27450 Use char because int might match the return type of a GCC
27451 builtin and then its argument prototype would still apply. */
27456 /* The GNU C library defines this for functions which it implements
27457 to always fail with ENOSYS. Some functions are actually named
27458 something starting with __ and the normal name is an alias. */
27459 #if defined __stub_$ac_func || defined __stub___$ac_func
27466 return $ac_func ();
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } && {
27485 test -z "$ac_c_werror_flag" ||
27486 test ! -s conftest.err
27487 } && test -s conftest$ac_exeext &&
27488 $as_test_x conftest$ac_exeext; then
27489 eval "$as_ac_var=yes"
27491 echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27494 eval "$as_ac_var=no"
27497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27498 conftest$ac_exeext conftest.$ac_ext
27500 ac_res=`eval echo '${'$as_ac_var'}'`
27501 { echo "$as_me:$LINENO: result: $ac_res" >&5
27502 echo "${ECHO_T}$ac_res" >&6; }
27503 if test `eval echo '${'$as_ac_var'}'` = yes; then
27504 cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27512 if test "$ac_cv_func_ctime_r" = no ; then
27513 ol_cv_func_ctime_r_nargs=0
27515 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27516 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27517 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27518 echo $ECHO_N "(cached) $ECHO_C" >&6
27520 cat >conftest.$ac_ext <<_ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27530 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27535 rm -f conftest.$ac_objext
27536 if { (ac_try="$ac_compile"
27537 case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_compile") 2>conftest.er1
27544 grep -v '^ *+' conftest.er1 >conftest.err
27546 cat conftest.err >&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); } && {
27549 test -z "$ac_c_werror_flag" ||
27550 test ! -s conftest.err
27551 } && test -s conftest.$ac_objext; then
27552 ol_cv_func_ctime_r_nargs3=yes
27554 echo "$as_me: failed program was:" >&5
27555 sed 's/^/| /' conftest.$ac_ext >&5
27557 ol_cv_func_ctime_r_nargs3=no
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27562 cat >conftest.$ac_ext <<_ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27572 time_t ti; char *buffer; ctime_r(&ti,buffer);
27577 rm -f conftest.$ac_objext
27578 if { (ac_try="$ac_compile"
27579 case "(($ac_try" in
27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581 *) ac_try_echo=$ac_try;;
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_compile") 2>conftest.er1
27586 grep -v '^ *+' conftest.er1 >conftest.err
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } && {
27591 test -z "$ac_c_werror_flag" ||
27592 test ! -s conftest.err
27593 } && test -s conftest.$ac_objext; then
27594 ol_cv_func_ctime_r_nargs2=yes
27596 echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27599 ol_cv_func_ctime_r_nargs2=no
27602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27605 test $ol_cv_func_ctime_r_nargs2 = no ; then
27607 ol_cv_func_ctime_r_nargs=3
27609 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27610 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27612 ol_cv_func_ctime_r_nargs=2
27615 ol_cv_func_ctime_r_nargs=0
27619 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27620 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27622 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27632 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27633 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27634 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27635 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27638 cat >conftest.$ac_ext <<_ACEOF
27641 cat confdefs.h >>conftest.$ac_ext
27642 cat >>conftest.$ac_ext <<_ACEOF
27643 /* end confdefs.h. */
27644 #include <sys/types.h>
27645 #include <sys/socket.h>
27646 #include <netinet/in.h>
27648 #define BUFSIZE (sizeof(struct hostent)+10)
27652 struct hostent hent; char buffer[BUFSIZE];
27653 int bufsize=BUFSIZE;int h_errno;
27654 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27655 buffer, bufsize, &h_errno);
27660 rm -f conftest.$ac_objext
27661 if { (ac_try="$ac_compile"
27662 case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_compile") 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } && {
27674 test -z "$ac_c_werror_flag" ||
27675 test ! -s conftest.err
27676 } && test -s conftest.$ac_objext; then
27677 ol_cv_func_gethostbyname_r_nargs5=yes
27679 echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27682 ol_cv_func_gethostbyname_r_nargs5=no
27685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 #include <sys/types.h>
27694 #include <sys/socket.h>
27695 #include <netinet/in.h>
27697 #define BUFSIZE (sizeof(struct hostent)+10)
27701 struct hostent hent;struct hostent *rhent;
27702 char buffer[BUFSIZE];
27703 int bufsize=BUFSIZE;int h_errno;
27704 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27710 rm -f conftest.$ac_objext
27711 if { (ac_try="$ac_compile"
27712 case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_compile") 2>conftest.er1
27719 grep -v '^ *+' conftest.er1 >conftest.err
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && {
27724 test -z "$ac_c_werror_flag" ||
27725 test ! -s conftest.err
27726 } && test -s conftest.$ac_objext; then
27727 ol_cv_func_gethostbyname_r_nargs6=yes
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27732 ol_cv_func_gethostbyname_r_nargs6=no
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27738 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27740 ol_cv_func_gethostbyname_r_nargs=5
27742 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27743 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27745 ol_cv_func_gethostbyname_r_nargs=6
27748 ol_cv_func_gethostbyname_r_nargs=0
27752 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27753 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27754 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27756 cat >>confdefs.h <<_ACEOF
27757 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27763 ol_cv_func_gethostbyname_r_nargs=0
27766 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27767 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27768 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27769 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27778 #include <sys/types.h>
27779 #include <sys/socket.h>
27780 #include <netinet/in.h>
27782 #define BUFSIZE (sizeof(struct hostent)+10)
27786 struct hostent hent; char buffer[BUFSIZE];
27787 struct in_addr add;
27788 size_t alen=sizeof(struct in_addr);
27789 int bufsize=BUFSIZE;int h_errno;
27790 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27791 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27796 rm -f conftest.$ac_objext
27797 if { (ac_try="$ac_compile"
27798 case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_compile") 2>conftest.er1
27805 grep -v '^ *+' conftest.er1 >conftest.err
27807 cat conftest.err >&5
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); } && {
27810 test -z "$ac_c_werror_flag" ||
27811 test ! -s conftest.err
27812 } && test -s conftest.$ac_objext; then
27813 ol_cv_func_gethostbyaddr_r_nargs7=yes
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27818 ol_cv_func_gethostbyaddr_r_nargs7=no
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 cat >conftest.$ac_ext <<_ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h. */
27829 #include <sys/types.h>
27830 #include <sys/socket.h>
27831 #include <netinet/in.h>
27833 #define BUFSIZE (sizeof(struct hostent)+10)
27837 struct hostent hent;
27838 struct hostent *rhent; char buffer[BUFSIZE];
27839 struct in_addr add;
27840 size_t alen=sizeof(struct in_addr);
27841 int bufsize=BUFSIZE;int h_errno;
27842 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27843 alen, AF_INET, &hent, buffer, bufsize,
27849 rm -f conftest.$ac_objext
27850 if { (ac_try="$ac_compile"
27851 case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_compile") 2>conftest.er1
27858 grep -v '^ *+' conftest.er1 >conftest.err
27860 cat conftest.err >&5
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } && {
27863 test -z "$ac_c_werror_flag" ||
27864 test ! -s conftest.err
27865 } && test -s conftest.$ac_objext; then
27866 ol_cv_func_gethostbyaddr_r_nargs8=yes
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27871 ol_cv_func_gethostbyaddr_r_nargs8=no
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27876 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27877 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27879 ol_cv_func_gethostbyaddr_r_nargs=7
27881 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27882 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27884 ol_cv_func_gethostbyaddr_r_nargs=8
27887 ol_cv_func_gethostbyaddr_r_nargs=0
27891 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27892 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27893 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27895 cat >>confdefs.h <<_ACEOF
27896 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27902 ol_cv_func_gethostbyaddr_r_nargs=0
27907 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27908 ol_cv_berkeley_db=no
27910 for ac_header in db.h
27912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27919 ac_res=`eval echo '${'$as_ac_Header'}'`
27920 { echo "$as_me:$LINENO: result: $ac_res" >&5
27921 echo "${ECHO_T}$ac_res" >&6; }
27923 # Is the header compilable?
27924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27926 cat >conftest.$ac_ext <<_ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27932 $ac_includes_default
27933 #include <$ac_header>
27935 rm -f conftest.$ac_objext
27936 if { (ac_try="$ac_compile"
27937 case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27944 grep -v '^ *+' conftest.er1 >conftest.err
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } && {
27949 test -z "$ac_c_werror_flag" ||
27950 test ! -s conftest.err
27951 } && test -s conftest.$ac_objext; then
27952 ac_header_compiler=yes
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 ac_header_compiler=no
27960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27962 echo "${ECHO_T}$ac_header_compiler" >&6; }
27964 # Is the header present?
27965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27967 cat >conftest.$ac_ext <<_ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 #include <$ac_header>
27975 if { (ac_try="$ac_cpp conftest.$ac_ext"
27976 case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27983 grep -v '^ *+' conftest.er1 >conftest.err
27985 cat conftest.err >&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } >/dev/null && {
27988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27989 test ! -s conftest.err
27991 ac_header_preproc=yes
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27996 ac_header_preproc=no
27999 rm -f conftest.err conftest.$ac_ext
28000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28001 echo "${ECHO_T}$ac_header_preproc" >&6; }
28003 # So? What about this header?
28004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28010 ac_header_preproc=yes
28013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28026 ## --------------------------------------------- ##
28027 ## Report this to <http://www.openldap.org/its/> ##
28028 ## --------------------------------------------- ##
28030 ) | sed "s/^/$as_me: WARNING: /" >&2
28033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 eval "$as_ac_Header=\$ac_header_preproc"
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041 { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28046 cat >>confdefs.h <<_ACEOF
28047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28054 if test $ac_cv_header_db_h = yes; then
28055 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28056 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28057 if test "${ol_cv_bdb_major+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 cat >conftest.$ac_ext <<_ACEOF
28064 #ifndef DB_VERSION_MAJOR
28065 # define DB_VERSION_MAJOR 1
28067 __db_version DB_VERSION_MAJOR
28070 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28071 ol_cv_bdb_major=${3}
28074 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28075 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28076 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28077 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28078 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28079 { (exit 1); exit 1; }; } ;;
28082 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28083 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28084 if test "${ol_cv_bdb_minor+set}" = set; then
28085 echo $ECHO_N "(cached) $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
28091 #ifndef DB_VERSION_MINOR
28092 # define DB_VERSION_MINOR 0
28094 __db_version DB_VERSION_MINOR
28097 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28098 ol_cv_bdb_minor=${3}
28101 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28102 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28103 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28104 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28105 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28106 { (exit 1); exit 1; }; } ;;
28109 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28110 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28111 if test "${ol_cv_bdb_compat+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28124 /* this check could be improved */
28125 #ifndef DB_VERSION_MAJOR
28126 # define DB_VERSION_MAJOR 1
28128 #ifndef DB_VERSION_MINOR
28129 # define DB_VERSION_MINOR 0
28132 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28134 /* require 4.4 or later */
28135 #if DB_VERSION_MM >= 0x0404
28136 __db_version_compat
28140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28141 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28142 ol_cv_bdb_compat=yes
28144 ol_cv_bdb_compat=no
28149 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28150 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28153 if test $ol_cv_bdb_compat != yes ; then
28154 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28155 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28156 { (exit 1); exit 1; }; }
28161 if test $ol_cv_bdb_major = 4 ; then
28162 if test $ol_cv_lib_db = no ; then
28163 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28164 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28165 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28169 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28171 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28173 cat >conftest.$ac_ext <<_ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28180 #ifdef HAVE_DB_185_H
28181 # include <db_185.h>
28186 #ifndef DB_VERSION_MAJOR
28187 # define DB_VERSION_MAJOR 1
28191 #define NULL ((void*)0)
28198 #if DB_VERSION_MAJOR > 2
28199 db_env_create( NULL, 0 );
28200 #elif DB_VERSION_MAJOR > 1
28201 db_appexit( NULL );
28203 (void) dbopen( NULL, 0, 0, 0, NULL);
28210 rm -f conftest.$ac_objext conftest$ac_exeext
28211 if { (ac_try="$ac_link"
28212 case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_link") 2>conftest.er1
28219 grep -v '^ *+' conftest.er1 >conftest.err
28221 cat conftest.err >&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } && {
28224 test -z "$ac_c_werror_flag" ||
28225 test ! -s conftest.err
28226 } && test -s conftest$ac_exeext &&
28227 $as_test_x conftest$ac_exeext; then
28228 ol_cv_db_db_4_dot_m=yes
28230 echo "$as_me: failed program was:" >&5
28231 sed 's/^/| /' conftest.$ac_ext >&5
28233 ol_cv_db_db_4_dot_m=no
28236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28237 conftest$ac_exeext conftest.$ac_ext
28242 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28243 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28245 if test $ol_cv_db_db_4_dot_m = yes ; then
28246 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28250 if test $ol_cv_lib_db = no ; then
28251 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28252 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28253 if test "${ol_cv_db_db4m+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28257 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28259 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28261 cat >conftest.$ac_ext <<_ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h. */
28268 #ifdef HAVE_DB_185_H
28269 # include <db_185.h>
28274 #ifndef DB_VERSION_MAJOR
28275 # define DB_VERSION_MAJOR 1
28279 #define NULL ((void*)0)
28286 #if DB_VERSION_MAJOR > 2
28287 db_env_create( NULL, 0 );
28288 #elif DB_VERSION_MAJOR > 1
28289 db_appexit( NULL );
28291 (void) dbopen( NULL, 0, 0, 0, NULL);
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1 >conftest.err
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest$ac_exeext &&
28315 $as_test_x conftest$ac_exeext; then
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28325 conftest$ac_exeext conftest.$ac_ext
28330 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28331 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28333 if test $ol_cv_db_db4m = yes ; then
28334 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28338 if test $ol_cv_lib_db = no ; then
28339 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28341 if test "${ol_cv_db_db_4m+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28356 #ifdef HAVE_DB_185_H
28357 # include <db_185.h>
28362 #ifndef DB_VERSION_MAJOR
28363 # define DB_VERSION_MAJOR 1
28367 #define NULL ((void*)0)
28374 #if DB_VERSION_MAJOR > 2
28375 db_env_create( NULL, 0 );
28376 #elif DB_VERSION_MAJOR > 1
28377 db_appexit( NULL );
28379 (void) dbopen( NULL, 0, 0, 0, NULL);
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (ac_try="$ac_link"
28388 case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393 (eval "$ac_link") 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest$ac_exeext &&
28403 $as_test_x conftest$ac_exeext; then
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28413 conftest$ac_exeext conftest.$ac_ext
28418 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28419 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28421 if test $ol_cv_db_db_4m = yes ; then
28422 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28426 if test $ol_cv_lib_db = no ; then
28427 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28428 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28429 if test "${ol_cv_db_db_4_m+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28433 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28435 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28444 #ifdef HAVE_DB_185_H
28445 # include <db_185.h>
28450 #ifndef DB_VERSION_MAJOR
28451 # define DB_VERSION_MAJOR 1
28455 #define NULL ((void*)0)
28462 #if DB_VERSION_MAJOR > 2
28463 db_env_create( NULL, 0 );
28464 #elif DB_VERSION_MAJOR > 1
28465 db_appexit( NULL );
28467 (void) dbopen( NULL, 0, 0, 0, NULL);
28474 rm -f conftest.$ac_objext conftest$ac_exeext
28475 if { (ac_try="$ac_link"
28476 case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_link") 2>conftest.er1
28483 grep -v '^ *+' conftest.er1 >conftest.err
28485 cat conftest.err >&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } && {
28488 test -z "$ac_c_werror_flag" ||
28489 test ! -s conftest.err
28490 } && test -s conftest$ac_exeext &&
28491 $as_test_x conftest$ac_exeext; then
28492 ol_cv_db_db_4_m=yes
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28501 conftest$ac_exeext conftest.$ac_ext
28506 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28507 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28509 if test $ol_cv_db_db_4_m = yes ; then
28510 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28514 if test $ol_cv_lib_db = no ; then
28515 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28516 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28517 if test "${ol_cv_db_db_4+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28523 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28525 cat >conftest.$ac_ext <<_ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h. */
28532 #ifdef HAVE_DB_185_H
28533 # include <db_185.h>
28538 #ifndef DB_VERSION_MAJOR
28539 # define DB_VERSION_MAJOR 1
28543 #define NULL ((void*)0)
28550 #if DB_VERSION_MAJOR > 2
28551 db_env_create( NULL, 0 );
28552 #elif DB_VERSION_MAJOR > 1
28553 db_appexit( NULL );
28555 (void) dbopen( NULL, 0, 0, 0, NULL);
28562 rm -f conftest.$ac_objext conftest$ac_exeext
28563 if { (ac_try="$ac_link"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_link") 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } && {
28576 test -z "$ac_c_werror_flag" ||
28577 test ! -s conftest.err
28578 } && test -s conftest$ac_exeext &&
28579 $as_test_x conftest$ac_exeext; then
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28589 conftest$ac_exeext conftest.$ac_ext
28594 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28595 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28597 if test $ol_cv_db_db_4 = yes ; then
28598 ol_cv_lib_db=-ldb-4
28602 if test $ol_cv_lib_db = no ; then
28603 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28604 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28605 if test "${ol_cv_db_db4+set}" = set; then
28606 echo $ECHO_N "(cached) $ECHO_C" >&6
28611 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28613 cat >conftest.$ac_ext <<_ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h. */
28620 #ifdef HAVE_DB_185_H
28621 # include <db_185.h>
28626 #ifndef DB_VERSION_MAJOR
28627 # define DB_VERSION_MAJOR 1
28631 #define NULL ((void*)0)
28638 #if DB_VERSION_MAJOR > 2
28639 db_env_create( NULL, 0 );
28640 #elif DB_VERSION_MAJOR > 1
28641 db_appexit( NULL );
28643 (void) dbopen( NULL, 0, 0, 0, NULL);
28650 rm -f conftest.$ac_objext conftest$ac_exeext
28651 if { (ac_try="$ac_link"
28652 case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_link") 2>conftest.er1
28659 grep -v '^ *+' conftest.er1 >conftest.err
28661 cat conftest.err >&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); } && {
28664 test -z "$ac_c_werror_flag" ||
28665 test ! -s conftest.err
28666 } && test -s conftest$ac_exeext &&
28667 $as_test_x conftest$ac_exeext; then
28670 echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28677 conftest$ac_exeext conftest.$ac_ext
28682 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28683 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28685 if test $ol_cv_db_db4 = yes ; then
28690 if test $ol_cv_lib_db = no ; then
28691 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28692 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28693 if test "${ol_cv_db_db+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28701 cat >conftest.$ac_ext <<_ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h. */
28708 #ifdef HAVE_DB_185_H
28709 # include <db_185.h>
28714 #ifndef DB_VERSION_MAJOR
28715 # define DB_VERSION_MAJOR 1
28719 #define NULL ((void*)0)
28726 #if DB_VERSION_MAJOR > 2
28727 db_env_create( NULL, 0 );
28728 #elif DB_VERSION_MAJOR > 1
28729 db_appexit( NULL );
28731 (void) dbopen( NULL, 0, 0, 0, NULL);
28738 rm -f conftest.$ac_objext conftest$ac_exeext
28739 if { (ac_try="$ac_link"
28740 case "(($ac_try" in
28741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742 *) ac_try_echo=$ac_try;;
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745 (eval "$ac_link") 2>conftest.er1
28747 grep -v '^ *+' conftest.er1 >conftest.err
28749 cat conftest.err >&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); } && {
28752 test -z "$ac_c_werror_flag" ||
28753 test ! -s conftest.err
28754 } && test -s conftest$ac_exeext &&
28755 $as_test_x conftest$ac_exeext; then
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28765 conftest$ac_exeext conftest.$ac_ext
28770 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28771 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28773 if test $ol_cv_db_db = yes ; then
28779 if test $ol_cv_lib_db = no ; then
28780 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28781 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28782 if test "${ol_cv_db_none+set}" = set; then
28783 echo $ECHO_N "(cached) $ECHO_C" >&6
28788 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28790 cat >conftest.$ac_ext <<_ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28797 #ifdef HAVE_DB_185_H
28798 # include <db_185.h>
28803 #ifndef DB_VERSION_MAJOR
28804 # define DB_VERSION_MAJOR 1
28808 #define NULL ((void*)0)
28815 #if DB_VERSION_MAJOR > 2
28816 db_env_create( NULL, 0 );
28817 #elif DB_VERSION_MAJOR > 1
28818 db_appexit( NULL );
28820 (void) dbopen( NULL, 0, 0, 0, NULL);
28827 rm -f conftest.$ac_objext conftest$ac_exeext
28828 if { (ac_try="$ac_link"
28829 case "(($ac_try" in
28830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831 *) ac_try_echo=$ac_try;;
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834 (eval "$ac_link") 2>conftest.er1
28836 grep -v '^ *+' conftest.er1 >conftest.err
28838 cat conftest.err >&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); } && {
28841 test -z "$ac_c_werror_flag" ||
28842 test ! -s conftest.err
28843 } && test -s conftest$ac_exeext &&
28844 $as_test_x conftest$ac_exeext; then
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28854 conftest$ac_exeext conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28860 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28862 if test $ol_cv_db_none = yes ; then
28868 if test "$ol_cv_lib_db" != no ; then
28869 ol_cv_berkeley_db=yes
28870 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28871 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28872 if test "${ol_cv_berkeley_db_version+set}" = set; then
28873 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 LIBS="$LTHREAD_LIBS $LIBS"
28878 if test $ol_cv_lib_db != yes ; then
28879 LIBS="$ol_cv_lib_db $LIBS"
28882 if test "$cross_compiling" = yes; then
28883 ol_cv_berkeley_db_version=cross
28885 cat >conftest.$ac_ext <<_ACEOF
28888 cat confdefs.h >>conftest.$ac_ext
28889 cat >>conftest.$ac_ext <<_ACEOF
28890 /* end confdefs.h. */
28892 #ifdef HAVE_DB_185_H
28897 #ifndef DB_VERSION_MAJOR
28898 # define DB_VERSION_MAJOR 1
28901 #define NULL ((void *)0)
28905 #if DB_VERSION_MAJOR > 1
28907 int major, minor, patch;
28909 version = db_version( &major, &minor, &patch );
28911 if( major != DB_VERSION_MAJOR ||
28912 minor != DB_VERSION_MINOR ||
28913 patch != DB_VERSION_PATCH )
28915 printf("Berkeley DB version mismatch\n"
28916 "\theader: %s\n\tlibrary: %s\n",
28917 DB_VERSION_STRING, version);
28925 rm -f conftest$ac_exeext
28926 if { (ac_try="$ac_link"
28927 case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_link") 2>&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28936 { (case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_try") 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ol_cv_berkeley_db_version=yes
28947 echo "$as_me: program exited with status $ac_status" >&5
28948 echo "$as_me: failed program was:" >&5
28949 sed 's/^/| /' conftest.$ac_ext >&5
28951 ( exit $ac_status )
28952 ol_cv_berkeley_db_version=no
28954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28962 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28963 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28965 if test $ol_cv_berkeley_db_version = no ; then
28966 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28967 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28968 { (exit 1); exit 1; }; }
28971 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28972 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28973 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28974 echo $ECHO_N "(cached) $ECHO_C" >&6
28978 LIBS="$LTHREAD_LIBS $LIBS"
28979 if test $ol_cv_lib_db != yes ; then
28980 LIBS="$ol_cv_lib_db $LIBS"
28983 if test "$cross_compiling" = yes; then
28984 ol_cv_berkeley_db_thread=cross
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28993 #ifdef HAVE_DB_185_H
28999 #define NULL ((void *)0)
29004 u_int32_t flags = DB_CREATE |
29010 #if DB_VERSION_MAJOR > 2
29011 DB_ENV *env = NULL;
29013 rc = db_env_create( &env, 0 );
29015 flags |= DB_INIT_MPOOL;
29016 #ifdef DB_MPOOL_PRIVATE
29017 flags |= DB_MPOOL_PRIVATE;
29021 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29025 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29026 rc = (env->open)( env, NULL, flags, 0 );
29028 rc = (env->open)( env, NULL, NULL, flags, 0 );
29032 rc = env->close( env, 0 );
29036 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29042 memset( &env, '\0', sizeof(env) );
29044 rc = db_appinit( NULL, NULL, &env, flags );
29047 db_appexit( &env );
29050 unlink("__db_mpool.share");
29051 unlink("__db_lock.share");
29057 rm -f conftest$ac_exeext
29058 if { (ac_try="$ac_link"
29059 case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064 (eval "$ac_link") 2>&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29068 { (case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_try") 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 ol_cv_berkeley_db_thread=yes
29079 echo "$as_me: program exited with status $ac_status" >&5
29080 echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29083 ( exit $ac_status )
29084 ol_cv_berkeley_db_thread=no
29086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29094 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29095 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29097 if test $ol_cv_berkeley_db_thread != no ; then
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE_BERKELEY_DB_THREAD 1
29109 if test $ol_cv_berkeley_db = no ; then
29110 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29111 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29112 { (exit 1); exit 1; }; }
29116 cat >>confdefs.h <<\_ACEOF
29117 #define HAVE_BERKELEY_DB 1
29121 if test $ol_cv_lib_db != yes ; then
29122 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29125 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29131 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29132 BUILD_LIBS_DYNAMIC=shared
29134 cat >>confdefs.h <<\_ACEOF
29135 #define LDAP_LIBS_DYNAMIC 1
29140 BUILD_LIBS_DYNAMIC=static
29144 if test $ol_enable_wrappers != no ; then
29146 for ac_header in tcpd.h
29148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156 { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29159 # Is the header compilable?
29160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168 $ac_includes_default
29169 #include <$ac_header>
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } && {
29185 test -z "$ac_c_werror_flag" ||
29186 test ! -s conftest.err
29187 } && test -s conftest.$ac_objext; then
29188 ac_header_compiler=yes
29190 echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29193 ac_header_compiler=no
29196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29198 echo "${ECHO_T}$ac_header_compiler" >&6; }
29200 # Is the header present?
29201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29203 cat >conftest.$ac_ext <<_ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h. */
29209 #include <$ac_header>
29211 if { (ac_try="$ac_cpp conftest.$ac_ext"
29212 case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29219 grep -v '^ *+' conftest.er1 >conftest.err
29221 cat conftest.err >&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); } >/dev/null && {
29224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29225 test ! -s conftest.err
29227 ac_header_preproc=yes
29229 echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29232 ac_header_preproc=no
29235 rm -f conftest.err conftest.$ac_ext
29236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29237 echo "${ECHO_T}$ac_header_preproc" >&6; }
29239 # So? What about this header?
29240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29246 ac_header_preproc=yes
29249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29262 ## --------------------------------------------- ##
29263 ## Report this to <http://www.openldap.org/its/> ##
29264 ## --------------------------------------------- ##
29266 ) | sed "s/^/$as_me: WARNING: /" >&2
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 eval "$as_ac_Header=\$ac_header_preproc"
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277 { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29282 cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29286 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29287 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29289 LIBS="$LIBS -lwrap"
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29298 int allow_severity = 0;
29299 int deny_severity = 0;
29301 struct request_info *req;
29313 rm -f conftest.$ac_objext conftest$ac_exeext
29314 if { (ac_try="$ac_link"
29315 case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_link") 2>conftest.er1
29322 grep -v '^ *+' conftest.er1 >conftest.err
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } && {
29327 test -z "$ac_c_werror_flag" ||
29328 test ! -s conftest.err
29329 } && test -s conftest$ac_exeext &&
29330 $as_test_x conftest$ac_exeext; then
29331 { echo "$as_me:$LINENO: result: -lwrap" >&5
29332 echo "${ECHO_T}-lwrap" >&6; }
29336 echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29341 cat >conftest.$ac_ext <<_ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h. */
29349 int allow_severity = 0;
29350 int deny_severity = 0;
29352 struct request_info *req;
29364 rm -f conftest.$ac_objext conftest$ac_exeext
29365 if { (ac_try="$ac_link"
29366 case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_link") 2>conftest.er1
29373 grep -v '^ *+' conftest.er1 >conftest.err
29375 cat conftest.err >&5
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } && {
29378 test -z "$ac_c_werror_flag" ||
29379 test ! -s conftest.err
29380 } && test -s conftest$ac_exeext &&
29381 $as_test_x conftest$ac_exeext; then
29382 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29383 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29385 LIBS="$save_LIBS -lnsl"
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29391 { echo "$as_me:$LINENO: result: no" >&5
29392 echo "${ECHO_T}no" >&6; }
29397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29398 conftest$ac_exeext conftest.$ac_ext
29401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402 conftest$ac_exeext conftest.$ac_ext
29410 if test $have_wrappers = yes ; then
29412 cat >>confdefs.h <<\_ACEOF
29413 #define HAVE_TCPD 1
29417 elif test $ol_enable_wrappers = yes ; then
29418 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29419 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29420 { (exit 1); exit 1; }; }
29422 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29423 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29428 if test $ol_enable_syslog != no ; then
29429 { echo "$as_me:$LINENO: checking for openlog" >&5
29430 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29431 if test "${ac_cv_func_openlog+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 cat >conftest.$ac_ext <<_ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29440 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29442 #define openlog innocuous_openlog
29444 /* System header to define __stub macros and hopefully few prototypes,
29445 which can conflict with char openlog (); below.
29446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29447 <limits.h> exists even on freestanding compilers. */
29450 # include <limits.h>
29452 # include <assert.h>
29457 /* Override any GCC internal prototype to avoid an error.
29458 Use char because int might match the return type of a GCC
29459 builtin and then its argument prototype would still apply. */
29464 /* The GNU C library defines this for functions which it implements
29465 to always fail with ENOSYS. Some functions are actually named
29466 something starting with __ and the normal name is an alias. */
29467 #if defined __stub_openlog || defined __stub___openlog
29479 rm -f conftest.$ac_objext conftest$ac_exeext
29480 if { (ac_try="$ac_link"
29481 case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_link") 2>conftest.er1
29488 grep -v '^ *+' conftest.er1 >conftest.err
29490 cat conftest.err >&5
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); } && {
29493 test -z "$ac_c_werror_flag" ||
29494 test ! -s conftest.err
29495 } && test -s conftest$ac_exeext &&
29496 $as_test_x conftest$ac_exeext; then
29497 ac_cv_func_openlog=yes
29499 echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29502 ac_cv_func_openlog=no
29505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29506 conftest$ac_exeext conftest.$ac_ext
29508 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29509 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29511 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29512 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29513 echo "$as_me: error: could not find syslog" >&2;}
29514 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29516 ol_enable_syslog=$ac_cv_func_openlog
29520 if test $ol_enable_sql != no ; then
29523 for ac_header in sql.h sqlext.h
29525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29532 ac_res=`eval echo '${'$as_ac_Header'}'`
29533 { echo "$as_me:$LINENO: result: $ac_res" >&5
29534 echo "${ECHO_T}$ac_res" >&6; }
29536 # Is the header compilable?
29537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29539 cat >conftest.$ac_ext <<_ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h. */
29545 $ac_includes_default
29546 #include <$ac_header>
29548 rm -f conftest.$ac_objext
29549 if { (ac_try="$ac_compile"
29550 case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_compile") 2>conftest.er1
29557 grep -v '^ *+' conftest.er1 >conftest.err
29559 cat conftest.err >&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } && {
29562 test -z "$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 } && test -s conftest.$ac_objext; then
29565 ac_header_compiler=yes
29567 echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29570 ac_header_compiler=no
29573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29575 echo "${ECHO_T}$ac_header_compiler" >&6; }
29577 # Is the header present?
29578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29580 cat >conftest.$ac_ext <<_ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h. */
29586 #include <$ac_header>
29588 if { (ac_try="$ac_cpp conftest.$ac_ext"
29589 case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29596 grep -v '^ *+' conftest.er1 >conftest.err
29598 cat conftest.err >&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } >/dev/null && {
29601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29602 test ! -s conftest.err
29604 ac_header_preproc=yes
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_header_preproc=no
29612 rm -f conftest.err conftest.$ac_ext
29613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6; }
29616 # So? What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623 ac_header_preproc=yes
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29639 ## --------------------------------------------- ##
29640 ## Report this to <http://www.openldap.org/its/> ##
29641 ## --------------------------------------------- ##
29643 ) | sed "s/^/$as_me: WARNING: /" >&2
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 eval "$as_ac_Header=\$ac_header_preproc"
29653 ac_res=`eval echo '${'$as_ac_Header'}'`
29654 { echo "$as_me:$LINENO: result: $ac_res" >&5
29655 echo "${ECHO_T}$ac_res" >&6; }
29658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659 cat >>confdefs.h <<_ACEOF
29660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29665 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29666 echo "$as_me: error: could not locate SQL headers" >&2;}
29667 { (exit 1); exit 1; }; }
29675 LIBS="$LTHREAD_LIBS"
29677 if test $ol_with_odbc = auto ; then
29678 ol_with_odbc="iodbc unixodbc odbc32"
29681 for odbc in $ol_with_odbc ; do
29682 if test $ol_link_sql = no ; then
29685 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29686 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29687 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29690 ac_check_lib_save_LIBS=$LIBS
29691 LIBS="-liodbc $LIBS"
29692 cat >conftest.$ac_ext <<_ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h. */
29699 /* Override any GCC internal prototype to avoid an error.
29700 Use char because int might match the return type of a GCC
29701 builtin and then its argument prototype would still apply. */
29705 char SQLDriverConnect ();
29709 return SQLDriverConnect ();
29714 rm -f conftest.$ac_objext conftest$ac_exeext
29715 if { (ac_try="$ac_link"
29716 case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_link") 2>conftest.er1
29723 grep -v '^ *+' conftest.er1 >conftest.err
29725 cat conftest.err >&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } && {
29728 test -z "$ac_c_werror_flag" ||
29729 test ! -s conftest.err
29730 } && test -s conftest$ac_exeext &&
29731 $as_test_x conftest$ac_exeext; then
29732 ac_cv_lib_iodbc_SQLDriverConnect=yes
29734 echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29737 ac_cv_lib_iodbc_SQLDriverConnect=no
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741 conftest$ac_exeext conftest.$ac_ext
29742 LIBS=$ac_check_lib_save_LIBS
29744 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29745 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29746 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29752 if test $have_iodbc = yes ; then
29753 ol_link_sql="-liodbc"
29758 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29759 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29760 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29763 ac_check_lib_save_LIBS=$LIBS
29764 LIBS="-lodbc $LIBS"
29765 cat >conftest.$ac_ext <<_ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29772 /* Override any GCC internal prototype to avoid an error.
29773 Use char because int might match the return type of a GCC
29774 builtin and then its argument prototype would still apply. */
29778 char SQLDriverConnect ();
29782 return SQLDriverConnect ();
29787 rm -f conftest.$ac_objext conftest$ac_exeext
29788 if { (ac_try="$ac_link"
29789 case "(($ac_try" in
29790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794 (eval "$ac_link") 2>conftest.er1
29796 grep -v '^ *+' conftest.er1 >conftest.err
29798 cat conftest.err >&5
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); } && {
29801 test -z "$ac_c_werror_flag" ||
29802 test ! -s conftest.err
29803 } && test -s conftest$ac_exeext &&
29804 $as_test_x conftest$ac_exeext; then
29805 ac_cv_lib_odbc_SQLDriverConnect=yes
29807 echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29810 ac_cv_lib_odbc_SQLDriverConnect=no
29813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29814 conftest$ac_exeext conftest.$ac_ext
29815 LIBS=$ac_check_lib_save_LIBS
29817 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29818 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29819 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29825 if test $have_odbc = yes ; then
29826 ol_link_sql="-lodbc"
29831 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29832 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29833 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29834 echo $ECHO_N "(cached) $ECHO_C" >&6
29836 ac_check_lib_save_LIBS=$LIBS
29837 LIBS="-lodbc32 $LIBS"
29838 cat >conftest.$ac_ext <<_ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h. */
29845 /* Override any GCC internal prototype to avoid an error.
29846 Use char because int might match the return type of a GCC
29847 builtin and then its argument prototype would still apply. */
29851 char SQLDriverConnect ();
29855 return SQLDriverConnect ();
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (ac_try="$ac_link"
29862 case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_link") 2>conftest.er1
29869 grep -v '^ *+' conftest.er1 >conftest.err
29871 cat conftest.err >&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); } && {
29874 test -z "$ac_c_werror_flag" ||
29875 test ! -s conftest.err
29876 } && test -s conftest$ac_exeext &&
29877 $as_test_x conftest$ac_exeext; then
29878 ac_cv_lib_odbc32_SQLDriverConnect=yes
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ac_cv_lib_odbc32_SQLDriverConnect=no
29886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29887 conftest$ac_exeext conftest.$ac_ext
29888 LIBS=$ac_check_lib_save_LIBS
29890 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29891 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29892 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29898 if test $have_odbc32 = yes ; then
29899 ol_link_sql="-lodbc32"
29904 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29905 echo "$as_me: error: unknown ODBC library" >&2;}
29906 { (exit 1); exit 1; }; }
29914 if test $ol_link_sql != no ; then
29915 SLAPD_SQL_LIBS="$ol_link_sql"
29917 elif test $ol_enable_sql != auto ; then
29918 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29919 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29920 { (exit 1); exit 1; }; }
29925 if test $ol_enable_ndb != no ; then
29926 # Extract the first word of "mysql_config", so it can be a program name with args.
29927 set dummy mysql_config; ac_word=$2
29928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29930 if test "${ac_cv_prog_MYSQL+set}" = set; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29933 if test -n "$MYSQL"; then
29934 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29937 for as_dir in $PATH
29940 test -z "$as_dir" && as_dir=.
29941 for ac_exec_ext in '' $ac_executable_extensions; do
29942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29943 ac_cv_prog_MYSQL="yes"
29944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29953 MYSQL=$ac_cv_prog_MYSQL
29954 if test -n "$MYSQL"; then
29955 { echo "$as_me:$LINENO: result: $MYSQL" >&5
29956 echo "${ECHO_T}$MYSQL" >&6; }
29958 { echo "$as_me:$LINENO: result: no" >&5
29959 echo "${ECHO_T}no" >&6; }
29963 if test "$MYSQL" != yes ; then
29964 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29965 echo "$as_me: error: could not locate mysql_config" >&2;}
29966 { (exit 1); exit 1; }; }
29969 SQL_INC=`mysql_config --include`
29970 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29972 save_CPPFLAGS="$CPPFLAGS"
29973 CPPFLAGS="$SLAPD_NDB_INCS"
29974 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29975 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29976 cat >conftest.$ac_ext <<_ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29982 #include <NdbApi.hpp>
29984 if { (ac_try="$ac_cpp conftest.$ac_ext"
29985 case "(($ac_try" in
29986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987 *) ac_try_echo=$ac_try;;
29989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29992 grep -v '^ *+' conftest.er1 >conftest.err
29994 cat conftest.err >&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); } >/dev/null && {
29997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29998 test ! -s conftest.err
30000 { echo "$as_me:$LINENO: result: yes" >&5
30001 echo "${ECHO_T}yes" >&6; }
30003 echo "$as_me: failed program was:" >&5
30004 sed 's/^/| /' conftest.$ac_ext >&5
30006 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30007 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30008 { (exit 1); exit 1; }; }
30012 rm -f conftest.err conftest.$ac_ext
30013 CPPFLAGS="$save_CPPFLAGS"
30015 SQL_LIB=`mysql_config --libs_r`
30016 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30018 save_LDFLAGS="$LDFLAGS"
30021 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30022 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30023 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30026 ac_check_lib_save_LIBS=$LIBS
30027 LIBS="-lndbclient -lstdc++ $LIBS"
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30035 /* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
30045 return ndb_init ();
30050 rm -f conftest.$ac_objext conftest$ac_exeext
30051 if { (ac_try="$ac_link"
30052 case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_link") 2>conftest.er1
30059 grep -v '^ *+' conftest.er1 >conftest.err
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } && {
30064 test -z "$ac_c_werror_flag" ||
30065 test ! -s conftest.err
30066 } && test -s conftest$ac_exeext &&
30067 $as_test_x conftest$ac_exeext; then
30068 ac_cv_lib_ndbclient_ndb_init=yes
30070 echo "$as_me: failed program was:" >&5
30071 sed 's/^/| /' conftest.$ac_ext >&5
30073 ac_cv_lib_ndbclient_ndb_init=no
30076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30077 conftest$ac_exeext conftest.$ac_ext
30078 LIBS=$ac_check_lib_save_LIBS
30080 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30081 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30082 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30086 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30087 echo "$as_me: error: could not locate ndbclient library" >&2;}
30088 { (exit 1); exit 1; }; }
30093 LDFLAGS="$save_LDFLAGS"
30095 if test "$ol_enable_ndb" = yes ; then
30096 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30102 for ac_header in unicode/utypes.h
30104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30111 ac_res=`eval echo '${'$as_ac_Header'}'`
30112 { echo "$as_me:$LINENO: result: $ac_res" >&5
30113 echo "${ECHO_T}$ac_res" >&6; }
30115 # Is the header compilable?
30116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30118 cat >conftest.$ac_ext <<_ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h. */
30124 $ac_includes_default
30125 #include <$ac_header>
30127 rm -f conftest.$ac_objext
30128 if { (ac_try="$ac_compile"
30129 case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134 (eval "$ac_compile") 2>conftest.er1
30136 grep -v '^ *+' conftest.er1 >conftest.err
30138 cat conftest.err >&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); } && {
30141 test -z "$ac_c_werror_flag" ||
30142 test ! -s conftest.err
30143 } && test -s conftest.$ac_objext; then
30144 ac_header_compiler=yes
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_header_compiler=no
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30154 echo "${ECHO_T}$ac_header_compiler" >&6; }
30156 # Is the header present?
30157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30165 #include <$ac_header>
30167 if { (ac_try="$ac_cpp conftest.$ac_ext"
30168 case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30175 grep -v '^ *+' conftest.er1 >conftest.err
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } >/dev/null && {
30180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30181 test ! -s conftest.err
30183 ac_header_preproc=yes
30185 echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30188 ac_header_preproc=no
30191 rm -f conftest.err conftest.$ac_ext
30192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193 echo "${ECHO_T}$ac_header_preproc" >&6; }
30195 # So? What about this header?
30196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202 ac_header_preproc=yes
30205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30218 ## --------------------------------------------- ##
30219 ## Report this to <http://www.openldap.org/its/> ##
30220 ## --------------------------------------------- ##
30222 ) | sed "s/^/$as_me: WARNING: /" >&2
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30230 eval "$as_ac_Header=\$ac_header_preproc"
30232 ac_res=`eval echo '${'$as_ac_Header'}'`
30233 { echo "$as_me:$LINENO: result: $ac_res" >&5
30234 echo "${ECHO_T}$ac_res" >&6; }
30237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238 cat >>confdefs.h <<_ACEOF
30239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30246 if test $ac_cv_header_unicode_utypes_h = yes ; then
30247 OL_ICULIBS="-licuuc -licudata"
30249 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30250 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30251 if test "${ol_cv_lib_icu+set}" = set; then
30252 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 LIBS="$OL_ICULIBS $LIBS"
30257 cat >conftest.$ac_ext <<_ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30264 #include <unicode/utypes.h>
30270 (void) u_errorName(0);
30276 rm -f conftest.$ac_objext conftest$ac_exeext
30277 if { (ac_try="$ac_link"
30278 case "(($ac_try" in
30279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280 *) ac_try_echo=$ac_try;;
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283 (eval "$ac_link") 2>conftest.er1
30285 grep -v '^ *+' conftest.er1 >conftest.err
30287 cat conftest.err >&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); } && {
30290 test -z "$ac_c_werror_flag" ||
30291 test ! -s conftest.err
30292 } && test -s conftest$ac_exeext &&
30293 $as_test_x conftest$ac_exeext; then
30296 echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30303 conftest$ac_exeext conftest.$ac_ext
30307 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30308 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30310 if test $ol_cv_lib_icu != no ; then
30311 ol_icu="$OL_ICULIBS"
30313 cat >>confdefs.h <<\_ACEOF
30320 if test "$ol_icu" = no ; then
30321 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30322 echo "$as_me: WARNING: ICU not available" >&2;}
30329 if test $ol_with_cyrus_sasl != no ; then
30332 for ac_header in sasl/sasl.h sasl.h
30334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30341 ac_res=`eval echo '${'$as_ac_Header'}'`
30342 { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30345 # Is the header compilable?
30346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30348 cat >conftest.$ac_ext <<_ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h. */
30354 $ac_includes_default
30355 #include <$ac_header>
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_compile") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest.$ac_objext; then
30374 ac_header_compiler=yes
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30379 ac_header_compiler=no
30382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30384 echo "${ECHO_T}$ac_header_compiler" >&6; }
30386 # Is the header present?
30387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30389 cat >conftest.$ac_ext <<_ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 #include <$ac_header>
30397 if { (ac_try="$ac_cpp conftest.$ac_ext"
30398 case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30405 grep -v '^ *+' conftest.er1 >conftest.err
30407 cat conftest.err >&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } >/dev/null && {
30410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30411 test ! -s conftest.err
30413 ac_header_preproc=yes
30415 echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30418 ac_header_preproc=no
30421 rm -f conftest.err conftest.$ac_ext
30422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30423 echo "${ECHO_T}$ac_header_preproc" >&6; }
30425 # So? What about this header?
30426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30432 ac_header_preproc=yes
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30448 ## --------------------------------------------- ##
30449 ## Report this to <http://www.openldap.org/its/> ##
30450 ## --------------------------------------------- ##
30452 ) | sed "s/^/$as_me: WARNING: /" >&2
30455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30460 eval "$as_ac_Header=\$ac_header_preproc"
30462 ac_res=`eval echo '${'$as_ac_Header'}'`
30463 { echo "$as_me:$LINENO: result: $ac_res" >&5
30464 echo "${ECHO_T}$ac_res" >&6; }
30467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30468 cat >>confdefs.h <<_ACEOF
30469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30477 if test $ac_cv_header_sasl_sasl_h = yes ||
30478 test $ac_cv_header_sasl_h = yes; then
30479 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30480 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30481 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 ac_check_lib_save_LIBS=$LIBS
30485 LIBS="-lsasl2 $LIBS"
30486 cat >conftest.$ac_ext <<_ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h. */
30493 /* Override any GCC internal prototype to avoid an error.
30494 Use char because int might match the return type of a GCC
30495 builtin and then its argument prototype would still apply. */
30499 char sasl_client_init ();
30503 return sasl_client_init ();
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } && {
30522 test -z "$ac_c_werror_flag" ||
30523 test ! -s conftest.err
30524 } && test -s conftest$ac_exeext &&
30525 $as_test_x conftest$ac_exeext; then
30526 ac_cv_lib_sasl2_sasl_client_init=yes
30528 echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30531 ac_cv_lib_sasl2_sasl_client_init=no
30534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30535 conftest$ac_exeext conftest.$ac_ext
30536 LIBS=$ac_check_lib_save_LIBS
30538 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30539 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30540 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30541 ol_link_sasl="-lsasl2"
30543 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30544 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30545 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30548 ac_check_lib_save_LIBS=$LIBS
30549 LIBS="-lsasl $LIBS"
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30557 /* Override any GCC internal prototype to avoid an error.
30558 Use char because int might match the return type of a GCC
30559 builtin and then its argument prototype would still apply. */
30563 char sasl_client_init ();
30567 return sasl_client_init ();
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (ac_try="$ac_link"
30574 case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_link") 2>conftest.er1
30581 grep -v '^ *+' conftest.er1 >conftest.err
30583 cat conftest.err >&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } && {
30586 test -z "$ac_c_werror_flag" ||
30587 test ! -s conftest.err
30588 } && test -s conftest$ac_exeext &&
30589 $as_test_x conftest$ac_exeext; then
30590 ac_cv_lib_sasl_sasl_client_init=yes
30592 echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30595 ac_cv_lib_sasl_sasl_client_init=no
30598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30599 conftest$ac_exeext conftest.$ac_ext
30600 LIBS=$ac_check_lib_save_LIBS
30602 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30603 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30604 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30605 ol_link_sasl="-lsasl"
30612 if test $ol_link_sasl = no ; then
30613 if test $ol_with_cyrus_sasl != auto ; then
30614 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30615 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30616 { (exit 1); exit 1; }; }
30618 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30619 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30621 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30622 if test $ol_link_tls = no ; then
30623 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30624 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30628 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30629 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30630 if test "${ol_cv_sasl_compat+set}" = set; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30634 cat >conftest.$ac_ext <<_ACEOF
30637 cat confdefs.h >>conftest.$ac_ext
30638 cat >>conftest.$ac_ext <<_ACEOF
30639 /* end confdefs.h. */
30641 #ifdef HAVE_SASL_SASL_H
30642 #include <sasl/sasl.h>
30647 /* Require 2.1.15+ */
30648 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30649 char *__sasl_compat = "2.2+ or better okay (we guess)";
30650 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30651 && SASL_VERSION_STEP >=15
30652 char *__sasl_compat = "2.1.15+ or better okay";
30656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30657 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30658 ol_cv_sasl_compat=yes
30660 ol_cv_sasl_compat=no
30665 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30666 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30668 if test $ol_cv_sasl_compat = no ; then
30670 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30671 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30672 { (exit 1); exit 1; }; }
30676 cat >>confdefs.h <<\_ACEOF
30677 #define HAVE_CYRUS_SASL 1
30680 SASL_LIBS="$ol_link_sasl"
30681 if test $ol_enable_spasswd != no ; then
30682 ol_link_spasswd=yes
30685 ac_save_LIBS="$LIBS"
30686 LIBS="$LIBS $ol_link_sasl"
30687 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30688 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30689 if test "${ac_cv_func_sasl_version+set}" = set; then
30690 echo $ECHO_N "(cached) $ECHO_C" >&6
30692 cat >conftest.$ac_ext <<_ACEOF
30695 cat confdefs.h >>conftest.$ac_ext
30696 cat >>conftest.$ac_ext <<_ACEOF
30697 /* end confdefs.h. */
30698 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30700 #define sasl_version innocuous_sasl_version
30702 /* System header to define __stub macros and hopefully few prototypes,
30703 which can conflict with char sasl_version (); below.
30704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30705 <limits.h> exists even on freestanding compilers. */
30708 # include <limits.h>
30710 # include <assert.h>
30713 #undef sasl_version
30715 /* Override any GCC internal prototype to avoid an error.
30716 Use char because int might match the return type of a GCC
30717 builtin and then its argument prototype would still apply. */
30721 char sasl_version ();
30722 /* The GNU C library defines this for functions which it implements
30723 to always fail with ENOSYS. Some functions are actually named
30724 something starting with __ and the normal name is an alias. */
30725 #if defined __stub_sasl_version || defined __stub___sasl_version
30732 return sasl_version ();
30737 rm -f conftest.$ac_objext conftest$ac_exeext
30738 if { (ac_try="$ac_link"
30739 case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_link") 2>conftest.er1
30746 grep -v '^ *+' conftest.er1 >conftest.err
30748 cat conftest.err >&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); } && {
30751 test -z "$ac_c_werror_flag" ||
30752 test ! -s conftest.err
30753 } && test -s conftest$ac_exeext &&
30754 $as_test_x conftest$ac_exeext; then
30755 ac_cv_func_sasl_version=yes
30757 echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30760 ac_cv_func_sasl_version=no
30763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30764 conftest$ac_exeext conftest.$ac_ext
30766 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30767 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30768 if test $ac_cv_func_sasl_version = yes; then
30770 cat >>confdefs.h <<\_ACEOF
30771 #define HAVE_SASL_VERSION 1
30776 LIBS="$ac_save_LIBS"
30782 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30783 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30784 if test $ol_link_tls = no ; then
30785 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30786 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30790 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30792 if test -r /dev/urandom ; then
30793 dev="/dev/urandom";
30794 elif test -r /idev/urandom ; then
30795 dev="/idev/urandom";
30796 elif test -r /dev/srandom ; then
30797 dev="/dev/srandom";
30798 elif test -r /dev/random ; then
30800 elif test -r /idev/random ; then
30801 dev="/idev/random";
30804 if test $dev != no ; then
30806 cat >>confdefs.h <<_ACEOF
30807 #define URANDOM_DEVICE "$dev"
30814 if test $ol_with_fetch != no ; then
30816 LIBS="-lfetch -lcom_err $LIBS"
30817 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30818 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30819 if test "${ol_cv_lib_fetch+set}" = set; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30823 cat >conftest.$ac_ext <<_ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30830 #ifdef HAVE_SYS_PARAM_H
30831 #include <sys/param.h>
30838 struct url *u = fetchParseURL("file:///");
30843 rm -f conftest.$ac_objext conftest$ac_exeext
30844 if { (ac_try="$ac_link"
30845 case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_link") 2>conftest.er1
30852 grep -v '^ *+' conftest.er1 >conftest.err
30854 cat conftest.err >&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); } && {
30857 test -z "$ac_c_werror_flag" ||
30858 test ! -s conftest.err
30859 } && test -s conftest$ac_exeext &&
30860 $as_test_x conftest$ac_exeext; then
30861 ol_cv_lib_fetch=yes
30863 echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870 conftest$ac_exeext conftest.$ac_ext
30872 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30873 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30875 if test $ol_cv_lib_fetch != no ; then
30876 ol_link_fetch="-lfetch -lcom_err"
30878 cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_FETCH 1
30885 if test $ol_cv_lib_fetch != no ; then
30886 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30887 ol_link_fetch=freebsd
30889 elif test $ol_with_fetch != auto ; then
30890 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30891 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30892 { (exit 1); exit 1; }; }
30896 if test $ol_enable_crypt != no ; then
30898 LIBS="$TLS_LIBS $LIBS"
30900 { echo "$as_me:$LINENO: checking for crypt" >&5
30901 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30902 if test "${ac_cv_func_crypt+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30905 cat >conftest.$ac_ext <<_ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h. */
30911 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30913 #define crypt innocuous_crypt
30915 /* System header to define __stub macros and hopefully few prototypes,
30916 which can conflict with char crypt (); below.
30917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918 <limits.h> exists even on freestanding compilers. */
30921 # include <limits.h>
30923 # include <assert.h>
30928 /* Override any GCC internal prototype to avoid an error.
30929 Use char because int might match the return type of a GCC
30930 builtin and then its argument prototype would still apply. */
30935 /* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
30938 #if defined __stub_crypt || defined __stub___crypt
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_link") 2>conftest.er1
30959 grep -v '^ *+' conftest.er1 >conftest.err
30961 cat conftest.err >&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } && {
30964 test -z "$ac_c_werror_flag" ||
30965 test ! -s conftest.err
30966 } && test -s conftest$ac_exeext &&
30967 $as_test_x conftest$ac_exeext; then
30968 ac_cv_func_crypt=yes
30970 echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30973 ac_cv_func_crypt=no
30976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30977 conftest$ac_exeext conftest.$ac_ext
30979 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30980 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30981 if test $ac_cv_func_crypt = yes; then
30986 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30987 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30988 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 ac_check_lib_save_LIBS=$LIBS
30992 LIBS="-lcrypt $LIBS"
30993 cat >conftest.$ac_ext <<_ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h. */
31000 /* Override any GCC internal prototype to avoid an error.
31001 Use char because int might match the return type of a GCC
31002 builtin and then its argument prototype would still apply. */
31015 rm -f conftest.$ac_objext conftest$ac_exeext
31016 if { (ac_try="$ac_link"
31017 case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_link") 2>conftest.er1
31024 grep -v '^ *+' conftest.er1 >conftest.err
31026 cat conftest.err >&5
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); } && {
31029 test -z "$ac_c_werror_flag" ||
31030 test ! -s conftest.err
31031 } && test -s conftest$ac_exeext &&
31032 $as_test_x conftest$ac_exeext; then
31033 ac_cv_lib_crypt_crypt=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_cv_lib_crypt_crypt=no
31041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31042 conftest$ac_exeext conftest.$ac_ext
31043 LIBS=$ac_check_lib_save_LIBS
31045 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31046 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31047 if test $ac_cv_lib_crypt_crypt = yes; then
31048 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31059 if test $have_crypt = yes ; then
31061 cat >>confdefs.h <<\_ACEOF
31062 #define HAVE_CRYPT 1
31066 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31067 echo "$as_me: WARNING: could not find crypt" >&2;}
31068 if test $ol_enable_crypt = yes ; then
31069 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31070 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31071 { (exit 1); exit 1; }; }
31074 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31075 echo "$as_me: WARNING: disabling crypt support" >&2;}
31080 if test $ol_enable_proctitle != no ; then
31081 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31082 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31083 if test "${ac_cv_func_setproctitle+set}" = set; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
31086 cat >conftest.$ac_ext <<_ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h. */
31092 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31094 #define setproctitle innocuous_setproctitle
31096 /* System header to define __stub macros and hopefully few prototypes,
31097 which can conflict with char setproctitle (); below.
31098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31099 <limits.h> exists even on freestanding compilers. */
31102 # include <limits.h>
31104 # include <assert.h>
31107 #undef setproctitle
31109 /* Override any GCC internal prototype to avoid an error.
31110 Use char because int might match the return type of a GCC
31111 builtin and then its argument prototype would still apply. */
31115 char setproctitle ();
31116 /* The GNU C library defines this for functions which it implements
31117 to always fail with ENOSYS. Some functions are actually named
31118 something starting with __ and the normal name is an alias. */
31119 #if defined __stub_setproctitle || defined __stub___setproctitle
31126 return setproctitle ();
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_link") 2>conftest.er1
31140 grep -v '^ *+' conftest.er1 >conftest.err
31142 cat conftest.err >&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); } && {
31145 test -z "$ac_c_werror_flag" ||
31146 test ! -s conftest.err
31147 } && test -s conftest$ac_exeext &&
31148 $as_test_x conftest$ac_exeext; then
31149 ac_cv_func_setproctitle=yes
31151 echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31154 ac_cv_func_setproctitle=no
31157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31158 conftest$ac_exeext conftest.$ac_ext
31160 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31161 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31162 if test $ac_cv_func_setproctitle = yes; then
31163 have_setproctitle=yes
31166 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31167 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31168 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 ac_check_lib_save_LIBS=$LIBS
31172 LIBS="-lutil $LIBS"
31173 cat >conftest.$ac_ext <<_ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31180 /* Override any GCC internal prototype to avoid an error.
31181 Use char because int might match the return type of a GCC
31182 builtin and then its argument prototype would still apply. */
31186 char setproctitle ();
31190 return setproctitle ();
31195 rm -f conftest.$ac_objext conftest$ac_exeext
31196 if { (ac_try="$ac_link"
31197 case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_link") 2>conftest.er1
31204 grep -v '^ *+' conftest.er1 >conftest.err
31206 cat conftest.err >&5
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); } && {
31209 test -z "$ac_c_werror_flag" ||
31210 test ! -s conftest.err
31211 } && test -s conftest$ac_exeext &&
31212 $as_test_x conftest$ac_exeext; then
31213 ac_cv_lib_util_setproctitle=yes
31215 echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31218 ac_cv_lib_util_setproctitle=no
31221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31222 conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31225 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31226 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31227 if test $ac_cv_lib_util_setproctitle = yes; then
31228 have_setproctitle=yes
31229 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31231 have_setproctitle=no
31232 case " $LIBOBJS " in
31233 *" setproctitle.$ac_objext "* ) ;;
31234 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31238 LIBSRCS="$LIBSRCS setproctitle.c"
31244 if test $have_setproctitle = yes ; then
31246 cat >>confdefs.h <<\_ACEOF
31247 #define HAVE_SETPROCTITLE 1
31253 if test $ol_enable_slp != no ; then
31255 for ac_header in slp.h
31257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31262 echo $ECHO_N "(cached) $ECHO_C" >&6
31264 ac_res=`eval echo '${'$as_ac_Header'}'`
31265 { echo "$as_me:$LINENO: result: $ac_res" >&5
31266 echo "${ECHO_T}$ac_res" >&6; }
31268 # Is the header compilable?
31269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31271 cat >conftest.$ac_ext <<_ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h. */
31277 $ac_includes_default
31278 #include <$ac_header>
31280 rm -f conftest.$ac_objext
31281 if { (ac_try="$ac_compile"
31282 case "(($ac_try" in
31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31289 grep -v '^ *+' conftest.er1 >conftest.err
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } && {
31294 test -z "$ac_c_werror_flag" ||
31295 test ! -s conftest.err
31296 } && test -s conftest.$ac_objext; then
31297 ac_header_compiler=yes
31299 echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31302 ac_header_compiler=no
31305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31307 echo "${ECHO_T}$ac_header_compiler" >&6; }
31309 # Is the header present?
31310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31312 cat >conftest.$ac_ext <<_ACEOF
31315 cat confdefs.h >>conftest.$ac_ext
31316 cat >>conftest.$ac_ext <<_ACEOF
31317 /* end confdefs.h. */
31318 #include <$ac_header>
31320 if { (ac_try="$ac_cpp conftest.$ac_ext"
31321 case "(($ac_try" in
31322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31323 *) ac_try_echo=$ac_try;;
31325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31328 grep -v '^ *+' conftest.er1 >conftest.err
31330 cat conftest.err >&5
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } >/dev/null && {
31333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31334 test ! -s conftest.err
31336 ac_header_preproc=yes
31338 echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31341 ac_header_preproc=no
31344 rm -f conftest.err conftest.$ac_ext
31345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31346 echo "${ECHO_T}$ac_header_preproc" >&6; }
31348 # So? What about this header?
31349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31355 ac_header_preproc=yes
31358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31371 ## --------------------------------------------- ##
31372 ## Report this to <http://www.openldap.org/its/> ##
31373 ## --------------------------------------------- ##
31375 ) | sed "s/^/$as_me: WARNING: /" >&2
31378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31381 echo $ECHO_N "(cached) $ECHO_C" >&6
31383 eval "$as_ac_Header=\$ac_header_preproc"
31385 ac_res=`eval echo '${'$as_ac_Header'}'`
31386 { echo "$as_me:$LINENO: result: $ac_res" >&5
31387 echo "${ECHO_T}$ac_res" >&6; }
31390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31391 cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31400 if test $ac_cv_header_slp_h = yes ; then
31401 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31402 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31403 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31404 echo $ECHO_N "(cached) $ECHO_C" >&6
31406 ac_check_lib_save_LIBS=$LIBS
31408 cat >conftest.$ac_ext <<_ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h. */
31415 /* Override any GCC internal prototype to avoid an error.
31416 Use char because int might match the return type of a GCC
31417 builtin and then its argument prototype would still apply. */
31430 rm -f conftest.$ac_objext conftest$ac_exeext
31431 if { (ac_try="$ac_link"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_link") 2>conftest.er1
31439 grep -v '^ *+' conftest.er1 >conftest.err
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest$ac_exeext &&
31447 $as_test_x conftest$ac_exeext; then
31448 ac_cv_lib_slp_SLPOpen=yes
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_lib_slp_SLPOpen=no
31456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31457 conftest$ac_exeext conftest.$ac_ext
31458 LIBS=$ac_check_lib_save_LIBS
31460 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31461 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31462 if test $ac_cv_lib_slp_SLPOpen = yes; then
31468 if test $have_slp = yes ; then
31470 cat >>confdefs.h <<\_ACEOF
31474 SLAPD_SLP_LIBS=-lslp
31477 elif test $ol_enable_slp = yes ; then
31478 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31479 echo "$as_me: error: SLP not found" >&2;}
31480 { (exit 1); exit 1; }; }
31485 { echo "$as_me:$LINENO: checking for mode_t" >&5
31486 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31487 if test "${ac_cv_type_mode_t+set}" = set; then
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
31490 cat >conftest.$ac_ext <<_ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h. */
31496 $ac_includes_default
31497 typedef mode_t ac__type_new_;
31501 if ((ac__type_new_ *) 0)
31503 if (sizeof (ac__type_new_))
31509 rm -f conftest.$ac_objext
31510 if { (ac_try="$ac_compile"
31511 case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_compile") 2>conftest.er1
31518 grep -v '^ *+' conftest.er1 >conftest.err
31520 cat conftest.err >&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); } && {
31523 test -z "$ac_c_werror_flag" ||
31524 test ! -s conftest.err
31525 } && test -s conftest.$ac_objext; then
31526 ac_cv_type_mode_t=yes
31528 echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31531 ac_cv_type_mode_t=no
31534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31537 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31538 if test $ac_cv_type_mode_t = yes; then
31542 cat >>confdefs.h <<_ACEOF
31548 { echo "$as_me:$LINENO: checking for off_t" >&5
31549 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31550 if test "${ac_cv_type_off_t+set}" = set; then
31551 echo $ECHO_N "(cached) $ECHO_C" >&6
31553 cat >conftest.$ac_ext <<_ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h. */
31559 $ac_includes_default
31560 typedef off_t ac__type_new_;
31564 if ((ac__type_new_ *) 0)
31566 if (sizeof (ac__type_new_))
31572 rm -f conftest.$ac_objext
31573 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
31589 ac_cv_type_off_t=yes
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31594 ac_cv_type_off_t=no
31597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31599 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31600 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31601 if test $ac_cv_type_off_t = yes; then
31605 cat >>confdefs.h <<_ACEOF
31611 { echo "$as_me:$LINENO: checking for pid_t" >&5
31612 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31613 if test "${ac_cv_type_pid_t+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31616 cat >conftest.$ac_ext <<_ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h. */
31622 $ac_includes_default
31623 typedef pid_t ac__type_new_;
31627 if ((ac__type_new_ *) 0)
31629 if (sizeof (ac__type_new_))
31635 rm -f conftest.$ac_objext
31636 if { (ac_try="$ac_compile"
31637 case "(($ac_try" in
31638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31639 *) ac_try_echo=$ac_try;;
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_compile") 2>conftest.er1
31644 grep -v '^ *+' conftest.er1 >conftest.err
31646 cat conftest.err >&5
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } && {
31649 test -z "$ac_c_werror_flag" ||
31650 test ! -s conftest.err
31651 } && test -s conftest.$ac_objext; then
31652 ac_cv_type_pid_t=yes
31654 echo "$as_me: failed program was:" >&5
31655 sed 's/^/| /' conftest.$ac_ext >&5
31657 ac_cv_type_pid_t=no
31660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31662 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31664 if test $ac_cv_type_pid_t = yes; then
31668 cat >>confdefs.h <<_ACEOF
31674 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31675 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31676 if test "${ac_cv_type_ssize_t+set}" = set; then
31677 echo $ECHO_N "(cached) $ECHO_C" >&6
31679 cat >conftest.$ac_ext <<_ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h. */
31685 $ac_includes_default
31686 typedef ssize_t ac__type_new_;
31690 if ((ac__type_new_ *) 0)
31692 if (sizeof (ac__type_new_))
31698 rm -f conftest.$ac_objext
31699 if { (ac_try="$ac_compile"
31700 case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_compile") 2>conftest.er1
31707 grep -v '^ *+' conftest.er1 >conftest.err
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } && {
31712 test -z "$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31714 } && test -s conftest.$ac_objext; then
31715 ac_cv_type_ssize_t=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_cv_type_ssize_t=no
31723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31725 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31726 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31727 if test $ac_cv_type_ssize_t = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732 #define ssize_t signed int
31737 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31738 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31739 if test "${ac_cv_type_caddr_t+set}" = set; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31742 cat >conftest.$ac_ext <<_ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h. */
31748 $ac_includes_default
31749 typedef caddr_t ac__type_new_;
31753 if ((ac__type_new_ *) 0)
31755 if (sizeof (ac__type_new_))
31761 rm -f conftest.$ac_objext
31762 if { (ac_try="$ac_compile"
31763 case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_compile") 2>conftest.er1
31770 grep -v '^ *+' conftest.er1 >conftest.err
31772 cat conftest.err >&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } && {
31775 test -z "$ac_c_werror_flag" ||
31776 test ! -s conftest.err
31777 } && test -s conftest.$ac_objext; then
31778 ac_cv_type_caddr_t=yes
31780 echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31783 ac_cv_type_caddr_t=no
31786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31788 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31789 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31790 if test $ac_cv_type_caddr_t = yes; then
31794 cat >>confdefs.h <<_ACEOF
31795 #define caddr_t char *
31800 { echo "$as_me:$LINENO: checking for size_t" >&5
31801 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31802 if test "${ac_cv_type_size_t+set}" = set; then
31803 echo $ECHO_N "(cached) $ECHO_C" >&6
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 $ac_includes_default
31812 typedef size_t ac__type_new_;
31816 if ((ac__type_new_ *) 0)
31818 if (sizeof (ac__type_new_))
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
31826 case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1 >conftest.err
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } && {
31838 test -z "$ac_c_werror_flag" ||
31839 test ! -s conftest.err
31840 } && test -s conftest.$ac_objext; then
31841 ac_cv_type_size_t=yes
31843 echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31846 ac_cv_type_size_t=no
31849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31851 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31852 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31853 if test $ac_cv_type_size_t = yes; then
31857 cat >>confdefs.h <<_ACEOF
31858 #define size_t unsigned
31864 { echo "$as_me:$LINENO: checking for long long" >&5
31865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31866 if test "${ac_cv_type_long_long+set}" = set; then
31867 echo $ECHO_N "(cached) $ECHO_C" >&6
31869 cat >conftest.$ac_ext <<_ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h. */
31875 $ac_includes_default
31876 typedef long long ac__type_new_;
31880 if ((ac__type_new_ *) 0)
31882 if (sizeof (ac__type_new_))
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_compile") 2>conftest.er1
31897 grep -v '^ *+' conftest.er1 >conftest.err
31899 cat conftest.err >&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } && {
31902 test -z "$ac_c_werror_flag" ||
31903 test ! -s conftest.err
31904 } && test -s conftest.$ac_objext; then
31905 ac_cv_type_long_long=yes
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 ac_cv_type_long_long=no
31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31916 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31917 if test $ac_cv_type_long_long = yes; then
31919 cat >>confdefs.h <<_ACEOF
31920 #define HAVE_LONG_LONG 1
31926 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31927 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31928 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31929 echo $ECHO_N "(cached) $ECHO_C" >&6
31931 cat >conftest.$ac_ext <<_ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 $ac_includes_default
31938 typedef ptrdiff_t ac__type_new_;
31942 if ((ac__type_new_ *) 0)
31944 if (sizeof (ac__type_new_))
31950 rm -f conftest.$ac_objext
31951 if { (ac_try="$ac_compile"
31952 case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957 (eval "$ac_compile") 2>conftest.er1
31959 grep -v '^ *+' conftest.er1 >conftest.err
31961 cat conftest.err >&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); } && {
31964 test -z "$ac_c_werror_flag" ||
31965 test ! -s conftest.err
31966 } && test -s conftest.$ac_objext; then
31967 ac_cv_type_ptrdiff_t=yes
31969 echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.$ac_ext >&5
31972 ac_cv_type_ptrdiff_t=no
31975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31977 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31978 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31979 if test $ac_cv_type_ptrdiff_t = yes; then
31981 cat >>confdefs.h <<_ACEOF
31982 #define HAVE_PTRDIFF_T 1
31990 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31991 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31992 if test "${ac_cv_type_socklen_t+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 $ac_includes_default
32002 #ifdef HAVE_SYS_SOCKET_H
32003 #include <sys/socket.h>
32006 typedef socklen_t ac__type_new_;
32010 if ((ac__type_new_ *) 0)
32012 if (sizeof (ac__type_new_))
32018 rm -f conftest.$ac_objext
32019 if { (ac_try="$ac_compile"
32020 case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_compile") 2>conftest.er1
32027 grep -v '^ *+' conftest.er1 >conftest.err
32029 cat conftest.err >&5
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); } && {
32032 test -z "$ac_c_werror_flag" ||
32033 test ! -s conftest.err
32034 } && test -s conftest.$ac_objext; then
32035 ac_cv_type_socklen_t=yes
32037 echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32040 ac_cv_type_socklen_t=no
32043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32045 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32046 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32049 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32050 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32051 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32055 set socklen_t int unsigned "unsigned long" long size_t
32056 test "$ac_cv_type_socklen_t" = yes || shift
32057 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32058 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32059 cat >conftest.$ac_ext <<_ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h. */
32065 $ac_includes_default
32066 #ifdef HAVE_SYS_SOCKET_H
32067 #include <sys/socket.h>
32069 extern int accept(int s, $addrtype *ap, $lentype *lp);
32075 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32081 rm -f conftest.$ac_objext
32082 if { (ac_try="$ac_compile"
32083 case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_compile") 2>conftest.er1
32090 grep -v '^ *+' conftest.er1 >conftest.err
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } && {
32095 test -z "$ac_c_werror_flag" ||
32096 test ! -s conftest.err
32097 } && test -s conftest.$ac_objext; then
32098 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32100 echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32110 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32111 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32113 cat >>confdefs.h <<_ACEOF
32114 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32118 if test "$ac_cv_type_socklen_t" != yes; then
32120 cat >>confdefs.h <<_ACEOF
32121 #define socklen_t $ol_cv_type_ber_socklen_t
32127 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32128 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32129 if test "${ac_cv_type_signal+set}" = set; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32132 cat >conftest.$ac_ext <<_ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h. */
32138 #include <sys/types.h>
32139 #include <signal.h>
32144 return *(signal (0, 0)) (0) == 1;
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_compile") 2>conftest.er1
32158 grep -v '^ *+' conftest.er1 >conftest.err
32160 cat conftest.err >&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); } && {
32163 test -z "$ac_c_werror_flag" ||
32164 test ! -s conftest.err
32165 } && test -s conftest.$ac_objext; then
32166 ac_cv_type_signal=int
32168 echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32171 ac_cv_type_signal=void
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32176 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32177 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32179 cat >>confdefs.h <<_ACEOF
32180 #define RETSIGTYPE $ac_cv_type_signal
32185 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32186 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32187 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32190 cat >conftest.$ac_ext <<_ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 $ac_includes_default
32197 #include <signal.h>
32200 typedef sig_atomic_t ac__type_new_;
32204 if ((ac__type_new_ *) 0)
32206 if (sizeof (ac__type_new_))
32212 rm -f conftest.$ac_objext
32213 if { (ac_try="$ac_compile"
32214 case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_compile") 2>conftest.er1
32221 grep -v '^ *+' conftest.er1 >conftest.err
32223 cat conftest.err >&5
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); } && {
32226 test -z "$ac_c_werror_flag" ||
32227 test ! -s conftest.err
32228 } && test -s conftest.$ac_objext; then
32229 ac_cv_type_sig_atomic_t=yes
32231 echo "$as_me: failed program was:" >&5
32232 sed 's/^/| /' conftest.$ac_ext >&5
32234 ac_cv_type_sig_atomic_t=no
32237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32239 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32240 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32241 if test $ac_cv_type_sig_atomic_t = yes; then
32245 cat >>confdefs.h <<_ACEOF
32246 #define sig_atomic_t int
32252 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32253 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32254 if test "${ac_cv_type_uid_t+set}" = set; then
32255 echo $ECHO_N "(cached) $ECHO_C" >&6
32257 cat >conftest.$ac_ext <<_ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h. */
32263 #include <sys/types.h>
32266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32267 $EGREP "uid_t" >/dev/null 2>&1; then
32268 ac_cv_type_uid_t=yes
32270 ac_cv_type_uid_t=no
32275 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32276 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32277 if test $ac_cv_type_uid_t = no; then
32279 cat >>confdefs.h <<\_ACEOF
32284 cat >>confdefs.h <<\_ACEOF
32291 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32292 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32293 if test "${ac_cv_header_time+set}" = set; then
32294 echo $ECHO_N "(cached) $ECHO_C" >&6
32296 cat >conftest.$ac_ext <<_ACEOF
32299 cat confdefs.h >>conftest.$ac_ext
32300 cat >>conftest.$ac_ext <<_ACEOF
32301 /* end confdefs.h. */
32302 #include <sys/types.h>
32303 #include <sys/time.h>
32309 if ((struct tm *) 0)
32315 rm -f conftest.$ac_objext
32316 if { (ac_try="$ac_compile"
32317 case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_compile") 2>conftest.er1
32324 grep -v '^ *+' conftest.er1 >conftest.err
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } && {
32329 test -z "$ac_c_werror_flag" ||
32330 test ! -s conftest.err
32331 } && test -s conftest.$ac_objext; then
32332 ac_cv_header_time=yes
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 ac_cv_header_time=no
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32343 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32344 if test $ac_cv_header_time = yes; then
32346 cat >>confdefs.h <<\_ACEOF
32347 #define TIME_WITH_SYS_TIME 1
32352 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32354 if test "${ac_cv_struct_tm+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32357 cat >conftest.$ac_ext <<_ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h. */
32363 #include <sys/types.h>
32370 int *p = &tm.tm_sec;
32376 rm -f conftest.$ac_objext
32377 if { (ac_try="$ac_compile"
32378 case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_compile") 2>conftest.er1
32385 grep -v '^ *+' conftest.er1 >conftest.err
32387 cat conftest.err >&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } && {
32390 test -z "$ac_c_werror_flag" ||
32391 test ! -s conftest.err
32392 } && test -s conftest.$ac_objext; then
32393 ac_cv_struct_tm=time.h
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32398 ac_cv_struct_tm=sys/time.h
32401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32404 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32405 if test $ac_cv_struct_tm = sys/time.h; then
32407 cat >>confdefs.h <<\_ACEOF
32408 #define TM_IN_SYS_TIME 1
32413 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32414 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32415 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32416 echo $ECHO_N "(cached) $ECHO_C" >&6
32418 cat >conftest.$ac_ext <<_ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h. */
32424 $ac_includes_default
32428 static struct stat ac_aggr;
32429 if (ac_aggr.st_blksize)
32435 rm -f conftest.$ac_objext
32436 if { (ac_try="$ac_compile"
32437 case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_compile") 2>conftest.er1
32444 grep -v '^ *+' conftest.er1 >conftest.err
32446 cat conftest.err >&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); } && {
32449 test -z "$ac_c_werror_flag" ||
32450 test ! -s conftest.err
32451 } && test -s conftest.$ac_objext; then
32452 ac_cv_member_struct_stat_st_blksize=yes
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32457 cat >conftest.$ac_ext <<_ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h. */
32463 $ac_includes_default
32467 static struct stat ac_aggr;
32468 if (sizeof ac_aggr.st_blksize)
32474 rm -f conftest.$ac_objext
32475 if { (ac_try="$ac_compile"
32476 case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_compile") 2>conftest.er1
32483 grep -v '^ *+' conftest.er1 >conftest.err
32485 cat conftest.err >&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } && {
32488 test -z "$ac_c_werror_flag" ||
32489 test ! -s conftest.err
32490 } && test -s conftest.$ac_objext; then
32491 ac_cv_member_struct_stat_st_blksize=yes
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_cv_member_struct_stat_st_blksize=no
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32504 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32505 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32506 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32508 cat >>confdefs.h <<_ACEOF
32509 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32515 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32516 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32517 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32520 cat >conftest.$ac_ext <<_ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h. */
32526 $ac_includes_default
32532 static struct passwd ac_aggr;
32533 if (ac_aggr.pw_gecos)
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543 *) ac_try_echo=$ac_try;;
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546 (eval "$ac_compile") 2>conftest.er1
32548 grep -v '^ *+' conftest.er1 >conftest.err
32550 cat conftest.err >&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } && {
32553 test -z "$ac_c_werror_flag" ||
32554 test ! -s conftest.err
32555 } && test -s conftest.$ac_objext; then
32556 ac_cv_member_struct_passwd_pw_gecos=yes
32558 echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32561 cat >conftest.$ac_ext <<_ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h. */
32567 $ac_includes_default
32573 static struct passwd ac_aggr;
32574 if (sizeof ac_aggr.pw_gecos)
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
32589 grep -v '^ *+' conftest.er1 >conftest.err
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } && {
32594 test -z "$ac_c_werror_flag" ||
32595 test ! -s conftest.err
32596 } && test -s conftest.$ac_objext; then
32597 ac_cv_member_struct_passwd_pw_gecos=yes
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602 ac_cv_member_struct_passwd_pw_gecos=no
32605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32611 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32612 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32614 cat >>confdefs.h <<_ACEOF
32615 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32621 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32622 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32623 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32624 echo $ECHO_N "(cached) $ECHO_C" >&6
32626 cat >conftest.$ac_ext <<_ACEOF
32629 cat confdefs.h >>conftest.$ac_ext
32630 cat >>conftest.$ac_ext <<_ACEOF
32631 /* end confdefs.h. */
32632 $ac_includes_default
32638 static struct passwd ac_aggr;
32639 if (ac_aggr.pw_passwd)
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_compile") 2>conftest.er1
32654 grep -v '^ *+' conftest.er1 >conftest.err
32656 cat conftest.err >&5
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } && {
32659 test -z "$ac_c_werror_flag" ||
32660 test ! -s conftest.err
32661 } && test -s conftest.$ac_objext; then
32662 ac_cv_member_struct_passwd_pw_passwd=yes
32664 echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32667 cat >conftest.$ac_ext <<_ACEOF
32670 cat confdefs.h >>conftest.$ac_ext
32671 cat >>conftest.$ac_ext <<_ACEOF
32672 /* end confdefs.h. */
32673 $ac_includes_default
32679 static struct passwd ac_aggr;
32680 if (sizeof ac_aggr.pw_passwd)
32686 rm -f conftest.$ac_objext
32687 if { (ac_try="$ac_compile"
32688 case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_compile") 2>conftest.er1
32695 grep -v '^ *+' conftest.er1 >conftest.err
32697 cat conftest.err >&5
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } && {
32700 test -z "$ac_c_werror_flag" ||
32701 test ! -s conftest.err
32702 } && test -s conftest.$ac_objext; then
32703 ac_cv_member_struct_passwd_pw_passwd=yes
32705 echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32708 ac_cv_member_struct_passwd_pw_passwd=no
32711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32717 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32718 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32720 cat >>confdefs.h <<_ACEOF
32721 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32728 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32729 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32730 if test "${ol_cv_c_upper_lower+set}" = set; then
32731 echo $ECHO_N "(cached) $ECHO_C" >&6
32734 if test "$cross_compiling" = yes; then
32735 ol_cv_c_upper_lower=safe
32737 cat >conftest.$ac_ext <<_ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h. */
32747 if ('C' == toupper('C'))
32753 rm -f conftest$ac_exeext
32754 if { (ac_try="$ac_link"
32755 case "(($ac_try" in
32756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32757 *) ac_try_echo=$ac_try;;
32759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32760 (eval "$ac_link") 2>&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32764 { (case "(($ac_try" in
32765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32766 *) ac_try_echo=$ac_try;;
32768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32769 (eval "$ac_try") 2>&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); }; }; then
32773 ol_cv_c_upper_lower=no
32775 echo "$as_me: program exited with status $ac_status" >&5
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32779 ( exit $ac_status )
32780 ol_cv_c_upper_lower=yes
32782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32787 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32788 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32789 if test $ol_cv_c_upper_lower != no ; then
32791 cat >>confdefs.h <<\_ACEOF
32792 #define C_UPPER_LOWER 1
32797 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32798 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32799 if test "${ac_cv_c_const+set}" = set; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32802 cat >conftest.$ac_ext <<_ACEOF
32805 cat confdefs.h >>conftest.$ac_ext
32806 cat >>conftest.$ac_ext <<_ACEOF
32807 /* end confdefs.h. */
32812 /* FIXME: Include the comments suggested by Paul. */
32813 #ifndef __cplusplus
32814 /* Ultrix mips cc rejects this. */
32815 typedef int charset[2];
32817 /* SunOS 4.1.1 cc rejects this. */
32818 char const *const *pcpcc;
32820 /* NEC SVR4.0.2 mips cc rejects this. */
32821 struct point {int x, y;};
32822 static struct point const zero = {0,0};
32823 /* AIX XL C 1.02.0.0 rejects this.
32824 It does not let you subtract one const X* pointer from another in
32825 an arm of an if-expression whose if-part is not a constant
32827 const char *g = "string";
32828 pcpcc = &g + (g ? g-g : 0);
32829 /* HPUX 7.0 cc rejects these. */
32831 ppc = (char**) pcpcc;
32832 pcpcc = (char const *const *) ppc;
32833 { /* SCO 3.2v4 cc rejects this. */
32835 char const *s = 0 ? (char *) 0 : (char const *) 0;
32840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32841 int x[] = {25, 17};
32842 const int *foo = &x[0];
32845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32846 typedef const int *iptr;
32850 { /* AIX XL C 1.02.0.0 rejects this saying
32851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32852 struct s { int j; const int *ap[3]; };
32853 struct s *b; b->j = 5;
32855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32856 const int foo = 10;
32857 if (!foo) return 0;
32859 return !cs[0] && !zero.x;
32866 rm -f conftest.$ac_objext
32867 if { (ac_try="$ac_compile"
32868 case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_compile") 2>conftest.er1
32875 grep -v '^ *+' conftest.er1 >conftest.err
32877 cat conftest.err >&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } && {
32880 test -z "$ac_c_werror_flag" ||
32881 test ! -s conftest.err
32882 } && test -s conftest.$ac_objext; then
32885 echo "$as_me: failed program was:" >&5
32886 sed 's/^/| /' conftest.$ac_ext >&5
32891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32893 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32894 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32895 if test $ac_cv_c_const = no; then
32897 cat >>confdefs.h <<\_ACEOF
32903 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32904 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32905 if test "${ol_cv_c_volatile+set}" = set; then
32906 echo $ECHO_N "(cached) $ECHO_C" >&6
32908 cat >conftest.$ac_ext <<_ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h. */
32918 volatile int a; int * volatile b = x ? &y : &z;
32919 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32925 rm -f conftest.$ac_objext
32926 if { (ac_try="$ac_compile"
32927 case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_compile") 2>conftest.er1
32934 grep -v '^ *+' conftest.er1 >conftest.err
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } && {
32939 test -z "$ac_c_werror_flag" ||
32940 test ! -s conftest.err
32941 } && test -s conftest.$ac_objext; then
32942 ol_cv_c_volatile=yes
32944 echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32947 ol_cv_c_volatile=no
32950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32953 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32954 if test $ol_cv_c_volatile = yes; then
32958 cat >>confdefs.h <<\_ACEOF
32965 if test $cross_compiling = yes ; then
32966 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32967 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32969 cat >>confdefs.h <<\_ACEOF
32970 #define CROSS_COMPILING 1
32974 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32975 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32976 if test "${ac_cv_c_bigendian+set}" = set; then
32977 echo $ECHO_N "(cached) $ECHO_C" >&6
32979 # See if sys/param.h defines the BYTE_ORDER macro.
32980 cat >conftest.$ac_ext <<_ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h. */
32986 #include <sys/types.h>
32987 #include <sys/param.h>
32992 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32993 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32994 bogus endian macros
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_compile") 2>conftest.er1
33010 grep -v '^ *+' conftest.er1 >conftest.err
33012 cat conftest.err >&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } && {
33015 test -z "$ac_c_werror_flag" ||
33016 test ! -s conftest.err
33017 } && test -s conftest.$ac_objext; then
33018 # It does; now see whether it defined to BIG_ENDIAN or not.
33019 cat >conftest.$ac_ext <<_ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h. */
33025 #include <sys/types.h>
33026 #include <sys/param.h>
33031 #if BYTE_ORDER != BIG_ENDIAN
33039 rm -f conftest.$ac_objext
33040 if { (ac_try="$ac_compile"
33041 case "(($ac_try" in
33042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043 *) ac_try_echo=$ac_try;;
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046 (eval "$ac_compile") 2>conftest.er1
33048 grep -v '^ *+' conftest.er1 >conftest.err
33050 cat conftest.err >&5
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); } && {
33053 test -z "$ac_c_werror_flag" ||
33054 test ! -s conftest.err
33055 } && test -s conftest.$ac_objext; then
33056 ac_cv_c_bigendian=yes
33058 echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33061 ac_cv_c_bigendian=no
33064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33069 # It does not; compile a test program.
33070 if test "$cross_compiling" = yes; then
33071 # try to guess the endianness by grepping values into an object file
33072 ac_cv_c_bigendian=unknown
33073 cat >conftest.$ac_ext <<_ACEOF
33076 cat confdefs.h >>conftest.$ac_ext
33077 cat >>conftest.$ac_ext <<_ACEOF
33078 /* end confdefs.h. */
33079 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33080 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33081 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33082 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33083 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33084 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33088 _ascii (); _ebcdic ();
33093 rm -f conftest.$ac_objext
33094 if { (ac_try="$ac_compile"
33095 case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_compile") 2>conftest.er1
33102 grep -v '^ *+' conftest.er1 >conftest.err
33104 cat conftest.err >&5
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } && {
33107 test -z "$ac_c_werror_flag" ||
33108 test ! -s conftest.err
33109 } && test -s conftest.$ac_objext; then
33110 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33111 ac_cv_c_bigendian=yes
33113 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33114 if test "$ac_cv_c_bigendian" = unknown; then
33115 ac_cv_c_bigendian=no
33117 # finding both strings is unlikely to happen, but who knows?
33118 ac_cv_c_bigendian=unknown
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33130 cat >conftest.$ac_ext <<_ACEOF
33133 cat confdefs.h >>conftest.$ac_ext
33134 cat >>conftest.$ac_ext <<_ACEOF
33135 /* end confdefs.h. */
33136 $ac_includes_default
33141 /* Are we little or big endian? From Harbison&Steele. */
33145 char c[sizeof (long int)];
33148 return u.c[sizeof (long int) - 1] == 1;
33154 rm -f conftest$ac_exeext
33155 if { (ac_try="$ac_link"
33156 case "(($ac_try" in
33157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158 *) ac_try_echo=$ac_try;;
33160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33161 (eval "$ac_link") 2>&5
33163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33165 { (case "(($ac_try" in
33166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167 *) ac_try_echo=$ac_try;;
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170 (eval "$ac_try") 2>&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_cv_c_bigendian=no
33176 echo "$as_me: program exited with status $ac_status" >&5
33177 echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33180 ( exit $ac_status )
33181 ac_cv_c_bigendian=yes
33183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33191 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33192 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33193 case $ac_cv_c_bigendian in
33196 cat >>confdefs.h <<\_ACEOF
33197 #define WORDS_BIGENDIAN 1
33203 { { echo "$as_me:$LINENO: error: unknown endianness
33204 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33205 echo "$as_me: error: unknown endianness
33206 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33207 { (exit 1); exit 1; }; } ;;
33212 { echo "$as_me:$LINENO: checking for short" >&5
33213 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33214 if test "${ac_cv_type_short+set}" = set; then
33215 echo $ECHO_N "(cached) $ECHO_C" >&6
33217 cat >conftest.$ac_ext <<_ACEOF
33220 cat confdefs.h >>conftest.$ac_ext
33221 cat >>conftest.$ac_ext <<_ACEOF
33222 /* end confdefs.h. */
33223 $ac_includes_default
33224 typedef short ac__type_new_;
33228 if ((ac__type_new_ *) 0)
33230 if (sizeof (ac__type_new_))
33236 rm -f conftest.$ac_objext
33237 if { (ac_try="$ac_compile"
33238 case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_compile") 2>conftest.er1
33245 grep -v '^ *+' conftest.er1 >conftest.err
33247 cat conftest.err >&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); } && {
33250 test -z "$ac_c_werror_flag" ||
33251 test ! -s conftest.err
33252 } && test -s conftest.$ac_objext; then
33253 ac_cv_type_short=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ac_cv_type_short=no
33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33264 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33266 # The cast to long int works around a bug in the HP C Compiler
33267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33269 # This bug is HP SR number 8606223364.
33270 { echo "$as_me:$LINENO: checking size of short" >&5
33271 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33272 if test "${ac_cv_sizeof_short+set}" = set; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33275 if test "$cross_compiling" = yes; then
33276 # Depending upon the size, compute the lo and hi bounds.
33277 cat >conftest.$ac_ext <<_ACEOF
33280 cat confdefs.h >>conftest.$ac_ext
33281 cat >>conftest.$ac_ext <<_ACEOF
33282 /* end confdefs.h. */
33283 $ac_includes_default
33284 typedef short ac__type_sizeof_;
33288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_compile") 2>conftest.er1
33304 grep -v '^ *+' conftest.er1 >conftest.err
33306 cat conftest.err >&5
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } && {
33309 test -z "$ac_c_werror_flag" ||
33310 test ! -s conftest.err
33311 } && test -s conftest.$ac_objext; then
33314 cat >conftest.$ac_ext <<_ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h. */
33320 $ac_includes_default
33321 typedef short ac__type_sizeof_;
33325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33332 rm -f conftest.$ac_objext
33333 if { (ac_try="$ac_compile"
33334 case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_compile") 2>conftest.er1
33341 grep -v '^ *+' conftest.er1 >conftest.err
33343 cat conftest.err >&5
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); } && {
33346 test -z "$ac_c_werror_flag" ||
33347 test ! -s conftest.err
33348 } && test -s conftest.$ac_objext; then
33349 ac_hi=$ac_mid; break
33351 echo "$as_me: failed program was:" >&5
33352 sed 's/^/| /' conftest.$ac_ext >&5
33354 ac_lo=`expr $ac_mid + 1`
33355 if test $ac_lo -le $ac_mid; then
33359 ac_mid=`expr 2 '*' $ac_mid + 1`
33362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33365 echo "$as_me: failed program was:" >&5
33366 sed 's/^/| /' conftest.$ac_ext >&5
33368 cat >conftest.$ac_ext <<_ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h. */
33374 $ac_includes_default
33375 typedef short ac__type_sizeof_;
33379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33386 rm -f conftest.$ac_objext
33387 if { (ac_try="$ac_compile"
33388 case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_compile") 2>conftest.er1
33395 grep -v '^ *+' conftest.er1 >conftest.err
33397 cat conftest.err >&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } && {
33400 test -z "$ac_c_werror_flag" ||
33401 test ! -s conftest.err
33402 } && test -s conftest.$ac_objext; then
33405 cat >conftest.$ac_ext <<_ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 $ac_includes_default
33412 typedef short ac__type_sizeof_;
33416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33423 rm -f conftest.$ac_objext
33424 if { (ac_try="$ac_compile"
33425 case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_compile") 2>conftest.er1
33432 grep -v '^ *+' conftest.er1 >conftest.err
33434 cat conftest.err >&5
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } && {
33437 test -z "$ac_c_werror_flag" ||
33438 test ! -s conftest.err
33439 } && test -s conftest.$ac_objext; then
33440 ac_lo=$ac_mid; break
33442 echo "$as_me: failed program was:" >&5
33443 sed 's/^/| /' conftest.$ac_ext >&5
33445 ac_hi=`expr '(' $ac_mid ')' - 1`
33446 if test $ac_mid -le $ac_hi; then
33450 ac_mid=`expr 2 '*' $ac_mid`
33453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33456 echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33466 # Binary search between lo and hi bounds.
33467 while test "x$ac_lo" != "x$ac_hi"; do
33468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33469 cat >conftest.$ac_ext <<_ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h. */
33475 $ac_includes_default
33476 typedef short ac__type_sizeof_;
33480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_compile") 2>conftest.er1
33496 grep -v '^ *+' conftest.er1 >conftest.err
33498 cat conftest.err >&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } && {
33501 test -z "$ac_c_werror_flag" ||
33502 test ! -s conftest.err
33503 } && test -s conftest.$ac_objext; then
33506 echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33509 ac_lo=`expr '(' $ac_mid ')' + 1`
33512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33515 ?*) ac_cv_sizeof_short=$ac_lo;;
33516 '') if test "$ac_cv_type_short" = yes; then
33517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33518 See \`config.log' for more details." >&5
33519 echo "$as_me: error: cannot compute sizeof (short)
33520 See \`config.log' for more details." >&2;}
33521 { (exit 77); exit 77; }; }
33523 ac_cv_sizeof_short=0
33527 cat >conftest.$ac_ext <<_ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h. */
33533 $ac_includes_default
33534 typedef short ac__type_sizeof_;
33535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33538 #include <stdlib.h>
33543 FILE *f = fopen ("conftest.val", "w");
33546 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33548 long int i = longval ();
33549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33551 fprintf (f, "%ld\n", i);
33555 unsigned long int i = ulongval ();
33556 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33558 fprintf (f, "%lu\n", i);
33560 return ferror (f) || fclose (f) != 0;
33566 rm -f conftest$ac_exeext
33567 if { (ac_try="$ac_link"
33568 case "(($ac_try" in
33569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33570 *) ac_try_echo=$ac_try;;
33572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33573 (eval "$ac_link") 2>&5
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33577 { (case "(($ac_try" in
33578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33579 *) ac_try_echo=$ac_try;;
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582 (eval "$ac_try") 2>&5
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; }; then
33586 ac_cv_sizeof_short=`cat conftest.val`
33588 echo "$as_me: program exited with status $ac_status" >&5
33589 echo "$as_me: failed program was:" >&5
33590 sed 's/^/| /' conftest.$ac_ext >&5
33592 ( exit $ac_status )
33593 if test "$ac_cv_type_short" = yes; then
33594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33595 See \`config.log' for more details." >&5
33596 echo "$as_me: error: cannot compute sizeof (short)
33597 See \`config.log' for more details." >&2;}
33598 { (exit 77); exit 77; }; }
33600 ac_cv_sizeof_short=0
33603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33608 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33612 cat >>confdefs.h <<_ACEOF
33613 #define SIZEOF_SHORT $ac_cv_sizeof_short
33617 { echo "$as_me:$LINENO: checking for int" >&5
33618 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33619 if test "${ac_cv_type_int+set}" = set; then
33620 echo $ECHO_N "(cached) $ECHO_C" >&6
33622 cat >conftest.$ac_ext <<_ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h. */
33628 $ac_includes_default
33629 typedef int ac__type_new_;
33633 if ((ac__type_new_ *) 0)
33635 if (sizeof (ac__type_new_))
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645 *) ac_try_echo=$ac_try;;
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648 (eval "$ac_compile") 2>conftest.er1
33650 grep -v '^ *+' conftest.er1 >conftest.err
33652 cat conftest.err >&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } && {
33655 test -z "$ac_c_werror_flag" ||
33656 test ! -s conftest.err
33657 } && test -s conftest.$ac_objext; then
33660 echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.$ac_ext >&5
33666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33669 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33671 # The cast to long int works around a bug in the HP C Compiler
33672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33674 # This bug is HP SR number 8606223364.
33675 { echo "$as_me:$LINENO: checking size of int" >&5
33676 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33677 if test "${ac_cv_sizeof_int+set}" = set; then
33678 echo $ECHO_N "(cached) $ECHO_C" >&6
33680 if test "$cross_compiling" = yes; then
33681 # Depending upon the size, compute the lo and hi bounds.
33682 cat >conftest.$ac_ext <<_ACEOF
33685 cat confdefs.h >>conftest.$ac_ext
33686 cat >>conftest.$ac_ext <<_ACEOF
33687 /* end confdefs.h. */
33688 $ac_includes_default
33689 typedef int ac__type_sizeof_;
33693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33700 rm -f conftest.$ac_objext
33701 if { (ac_try="$ac_compile"
33702 case "(($ac_try" in
33703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704 *) ac_try_echo=$ac_try;;
33706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707 (eval "$ac_compile") 2>conftest.er1
33709 grep -v '^ *+' conftest.er1 >conftest.err
33711 cat conftest.err >&5
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } && {
33714 test -z "$ac_c_werror_flag" ||
33715 test ! -s conftest.err
33716 } && test -s conftest.$ac_objext; then
33719 cat >conftest.$ac_ext <<_ACEOF
33722 cat confdefs.h >>conftest.$ac_ext
33723 cat >>conftest.$ac_ext <<_ACEOF
33724 /* end confdefs.h. */
33725 $ac_includes_default
33726 typedef int ac__type_sizeof_;
33730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33737 rm -f conftest.$ac_objext
33738 if { (ac_try="$ac_compile"
33739 case "(($ac_try" in
33740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741 *) ac_try_echo=$ac_try;;
33743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33744 (eval "$ac_compile") 2>conftest.er1
33746 grep -v '^ *+' conftest.er1 >conftest.err
33748 cat conftest.err >&5
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); } && {
33751 test -z "$ac_c_werror_flag" ||
33752 test ! -s conftest.err
33753 } && test -s conftest.$ac_objext; then
33754 ac_hi=$ac_mid; break
33756 echo "$as_me: failed program was:" >&5
33757 sed 's/^/| /' conftest.$ac_ext >&5
33759 ac_lo=`expr $ac_mid + 1`
33760 if test $ac_lo -le $ac_mid; then
33764 ac_mid=`expr 2 '*' $ac_mid + 1`
33767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33773 cat >conftest.$ac_ext <<_ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h. */
33779 $ac_includes_default
33780 typedef int ac__type_sizeof_;
33784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_compile") 2>conftest.er1
33800 grep -v '^ *+' conftest.er1 >conftest.err
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } && {
33805 test -z "$ac_c_werror_flag" ||
33806 test ! -s conftest.err
33807 } && test -s conftest.$ac_objext; then
33810 cat >conftest.$ac_ext <<_ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h. */
33816 $ac_includes_default
33817 typedef int ac__type_sizeof_;
33821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33828 rm -f conftest.$ac_objext
33829 if { (ac_try="$ac_compile"
33830 case "(($ac_try" in
33831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832 *) ac_try_echo=$ac_try;;
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835 (eval "$ac_compile") 2>conftest.er1
33837 grep -v '^ *+' conftest.er1 >conftest.err
33839 cat conftest.err >&5
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); } && {
33842 test -z "$ac_c_werror_flag" ||
33843 test ! -s conftest.err
33844 } && test -s conftest.$ac_objext; then
33845 ac_lo=$ac_mid; break
33847 echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33850 ac_hi=`expr '(' $ac_mid ')' - 1`
33851 if test $ac_mid -le $ac_hi; then
33855 ac_mid=`expr 2 '*' $ac_mid`
33858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33861 echo "$as_me: failed program was:" >&5
33862 sed 's/^/| /' conftest.$ac_ext >&5
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 # Binary search between lo and hi bounds.
33872 while test "x$ac_lo" != "x$ac_hi"; do
33873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33874 cat >conftest.$ac_ext <<_ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h. */
33880 $ac_includes_default
33881 typedef int ac__type_sizeof_;
33885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33892 rm -f conftest.$ac_objext
33893 if { (ac_try="$ac_compile"
33894 case "(($ac_try" in
33895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896 *) ac_try_echo=$ac_try;;
33898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899 (eval "$ac_compile") 2>conftest.er1
33901 grep -v '^ *+' conftest.er1 >conftest.err
33903 cat conftest.err >&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); } && {
33906 test -z "$ac_c_werror_flag" ||
33907 test ! -s conftest.err
33908 } && test -s conftest.$ac_objext; then
33911 echo "$as_me: failed program was:" >&5
33912 sed 's/^/| /' conftest.$ac_ext >&5
33914 ac_lo=`expr '(' $ac_mid ')' + 1`
33917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 ?*) ac_cv_sizeof_int=$ac_lo;;
33921 '') if test "$ac_cv_type_int" = yes; then
33922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33923 See \`config.log' for more details." >&5
33924 echo "$as_me: error: cannot compute sizeof (int)
33925 See \`config.log' for more details." >&2;}
33926 { (exit 77); exit 77; }; }
33932 cat >conftest.$ac_ext <<_ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h. */
33938 $ac_includes_default
33939 typedef int ac__type_sizeof_;
33940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33943 #include <stdlib.h>
33948 FILE *f = fopen ("conftest.val", "w");
33951 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33953 long int i = longval ();
33954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33956 fprintf (f, "%ld\n", i);
33960 unsigned long int i = ulongval ();
33961 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33963 fprintf (f, "%lu\n", i);
33965 return ferror (f) || fclose (f) != 0;
33971 rm -f conftest$ac_exeext
33972 if { (ac_try="$ac_link"
33973 case "(($ac_try" in
33974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975 *) ac_try_echo=$ac_try;;
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978 (eval "$ac_link") 2>&5
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33982 { (case "(($ac_try" in
33983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984 *) ac_try_echo=$ac_try;;
33986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33987 (eval "$ac_try") 2>&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); }; }; then
33991 ac_cv_sizeof_int=`cat conftest.val`
33993 echo "$as_me: program exited with status $ac_status" >&5
33994 echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33997 ( exit $ac_status )
33998 if test "$ac_cv_type_int" = yes; then
33999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34000 See \`config.log' for more details." >&5
34001 echo "$as_me: error: cannot compute sizeof (int)
34002 See \`config.log' for more details." >&2;}
34003 { (exit 77); exit 77; }; }
34008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34013 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34017 cat >>confdefs.h <<_ACEOF
34018 #define SIZEOF_INT $ac_cv_sizeof_int
34022 { echo "$as_me:$LINENO: checking for long" >&5
34023 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34024 if test "${ac_cv_type_long+set}" = set; then
34025 echo $ECHO_N "(cached) $ECHO_C" >&6
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 long ac__type_new_;
34038 if ((ac__type_new_ *) 0)
34040 if (sizeof (ac__type_new_))
34046 rm -f conftest.$ac_objext
34047 if { (ac_try="$ac_compile"
34048 case "(($ac_try" in
34049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34050 *) ac_try_echo=$ac_try;;
34052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34053 (eval "$ac_compile") 2>conftest.er1
34055 grep -v '^ *+' conftest.er1 >conftest.err
34057 cat conftest.err >&5
34058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059 (exit $ac_status); } && {
34060 test -z "$ac_c_werror_flag" ||
34061 test ! -s conftest.err
34062 } && test -s conftest.$ac_objext; then
34063 ac_cv_type_long=yes
34065 echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34073 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34074 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34076 # The cast to long int works around a bug in the HP C Compiler
34077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34079 # This bug is HP SR number 8606223364.
34080 { echo "$as_me:$LINENO: checking size of long" >&5
34081 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34082 if test "${ac_cv_sizeof_long+set}" = set; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34085 if test "$cross_compiling" = yes; then
34086 # Depending upon the size, compute the lo and hi bounds.
34087 cat >conftest.$ac_ext <<_ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h. */
34093 $ac_includes_default
34094 typedef long ac__type_sizeof_;
34098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34105 rm -f conftest.$ac_objext
34106 if { (ac_try="$ac_compile"
34107 case "(($ac_try" in
34108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34109 *) ac_try_echo=$ac_try;;
34111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34112 (eval "$ac_compile") 2>conftest.er1
34114 grep -v '^ *+' conftest.er1 >conftest.err
34116 cat conftest.err >&5
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } && {
34119 test -z "$ac_c_werror_flag" ||
34120 test ! -s conftest.err
34121 } && test -s conftest.$ac_objext; then
34124 cat >conftest.$ac_ext <<_ACEOF
34127 cat confdefs.h >>conftest.$ac_ext
34128 cat >>conftest.$ac_ext <<_ACEOF
34129 /* end confdefs.h. */
34130 $ac_includes_default
34131 typedef long ac__type_sizeof_;
34135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149 (eval "$ac_compile") 2>conftest.er1
34151 grep -v '^ *+' conftest.er1 >conftest.err
34153 cat conftest.err >&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } && {
34156 test -z "$ac_c_werror_flag" ||
34157 test ! -s conftest.err
34158 } && test -s conftest.$ac_objext; then
34159 ac_hi=$ac_mid; break
34161 echo "$as_me: failed program was:" >&5
34162 sed 's/^/| /' conftest.$ac_ext >&5
34164 ac_lo=`expr $ac_mid + 1`
34165 if test $ac_lo -le $ac_mid; then
34169 ac_mid=`expr 2 '*' $ac_mid + 1`
34172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34175 echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34178 cat >conftest.$ac_ext <<_ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h. */
34184 $ac_includes_default
34185 typedef long ac__type_sizeof_;
34189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34196 rm -f conftest.$ac_objext
34197 if { (ac_try="$ac_compile"
34198 case "(($ac_try" in
34199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34200 *) ac_try_echo=$ac_try;;
34202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34203 (eval "$ac_compile") 2>conftest.er1
34205 grep -v '^ *+' conftest.er1 >conftest.err
34207 cat conftest.err >&5
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); } && {
34210 test -z "$ac_c_werror_flag" ||
34211 test ! -s conftest.err
34212 } && test -s conftest.$ac_objext; then
34215 cat >conftest.$ac_ext <<_ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h. */
34221 $ac_includes_default
34222 typedef long ac__type_sizeof_;
34226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237 *) ac_try_echo=$ac_try;;
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240 (eval "$ac_compile") 2>conftest.er1
34242 grep -v '^ *+' conftest.er1 >conftest.err
34244 cat conftest.err >&5
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } && {
34247 test -z "$ac_c_werror_flag" ||
34248 test ! -s conftest.err
34249 } && test -s conftest.$ac_objext; then
34250 ac_lo=$ac_mid; break
34252 echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34255 ac_hi=`expr '(' $ac_mid ')' - 1`
34256 if test $ac_mid -le $ac_hi; then
34260 ac_mid=`expr 2 '*' $ac_mid`
34263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34266 echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34276 # Binary search between lo and hi bounds.
34277 while test "x$ac_lo" != "x$ac_hi"; do
34278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34279 cat >conftest.$ac_ext <<_ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h. */
34285 $ac_includes_default
34286 typedef long ac__type_sizeof_;
34290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34306 grep -v '^ *+' conftest.er1 >conftest.err
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } && {
34311 test -z "$ac_c_werror_flag" ||
34312 test ! -s conftest.err
34313 } && test -s conftest.$ac_objext; then
34316 echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34319 ac_lo=`expr '(' $ac_mid ')' + 1`
34322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34325 ?*) ac_cv_sizeof_long=$ac_lo;;
34326 '') if test "$ac_cv_type_long" = yes; then
34327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34328 See \`config.log' for more details." >&5
34329 echo "$as_me: error: cannot compute sizeof (long)
34330 See \`config.log' for more details." >&2;}
34331 { (exit 77); exit 77; }; }
34333 ac_cv_sizeof_long=0
34337 cat >conftest.$ac_ext <<_ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h. */
34343 $ac_includes_default
34344 typedef long ac__type_sizeof_;
34345 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34346 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34348 #include <stdlib.h>
34353 FILE *f = fopen ("conftest.val", "w");
34356 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34358 long int i = longval ();
34359 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34361 fprintf (f, "%ld\n", i);
34365 unsigned long int i = ulongval ();
34366 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34368 fprintf (f, "%lu\n", i);
34370 return ferror (f) || fclose (f) != 0;
34376 rm -f conftest$ac_exeext
34377 if { (ac_try="$ac_link"
34378 case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_link") 2>&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34387 { (case "(($ac_try" in
34388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34389 *) ac_try_echo=$ac_try;;
34391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34392 (eval "$ac_try") 2>&5
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); }; }; then
34396 ac_cv_sizeof_long=`cat conftest.val`
34398 echo "$as_me: program exited with status $ac_status" >&5
34399 echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34402 ( exit $ac_status )
34403 if test "$ac_cv_type_long" = yes; then
34404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34405 See \`config.log' for more details." >&5
34406 echo "$as_me: error: cannot compute sizeof (long)
34407 See \`config.log' for more details." >&2;}
34408 { (exit 77); exit 77; }; }
34410 ac_cv_sizeof_long=0
34413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34417 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34418 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34422 cat >>confdefs.h <<_ACEOF
34423 #define SIZEOF_LONG $ac_cv_sizeof_long
34427 { echo "$as_me:$LINENO: checking for long long" >&5
34428 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34429 if test "${ac_cv_type_long_long+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
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 long long ac__type_new_;
34443 if ((ac__type_new_ *) 0)
34445 if (sizeof (ac__type_new_))
34451 rm -f conftest.$ac_objext
34452 if { (ac_try="$ac_compile"
34453 case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_compile") 2>conftest.er1
34460 grep -v '^ *+' conftest.er1 >conftest.err
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } && {
34465 test -z "$ac_c_werror_flag" ||
34466 test ! -s conftest.err
34467 } && test -s conftest.$ac_objext; then
34468 ac_cv_type_long_long=yes
34470 echo "$as_me: failed program was:" >&5
34471 sed 's/^/| /' conftest.$ac_ext >&5
34473 ac_cv_type_long_long=no
34476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34478 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34479 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34481 # The cast to long int works around a bug in the HP C Compiler
34482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34484 # This bug is HP SR number 8606223364.
34485 { echo "$as_me:$LINENO: checking size of long long" >&5
34486 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34487 if test "${ac_cv_sizeof_long_long+set}" = set; then
34488 echo $ECHO_N "(cached) $ECHO_C" >&6
34490 if test "$cross_compiling" = yes; then
34491 # Depending upon the size, compute the lo and hi bounds.
34492 cat >conftest.$ac_ext <<_ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498 $ac_includes_default
34499 typedef long long ac__type_sizeof_;
34503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34510 rm -f conftest.$ac_objext
34511 if { (ac_try="$ac_compile"
34512 case "(($ac_try" in
34513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514 *) ac_try_echo=$ac_try;;
34516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517 (eval "$ac_compile") 2>conftest.er1
34519 grep -v '^ *+' conftest.er1 >conftest.err
34521 cat conftest.err >&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } && {
34524 test -z "$ac_c_werror_flag" ||
34525 test ! -s conftest.err
34526 } && test -s conftest.$ac_objext; then
34529 cat >conftest.$ac_ext <<_ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h. */
34535 $ac_includes_default
34536 typedef long long ac__type_sizeof_;
34540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34547 rm -f conftest.$ac_objext
34548 if { (ac_try="$ac_compile"
34549 case "(($ac_try" in
34550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34551 *) ac_try_echo=$ac_try;;
34553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34554 (eval "$ac_compile") 2>conftest.er1
34556 grep -v '^ *+' conftest.er1 >conftest.err
34558 cat conftest.err >&5
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); } && {
34561 test -z "$ac_c_werror_flag" ||
34562 test ! -s conftest.err
34563 } && test -s conftest.$ac_objext; then
34564 ac_hi=$ac_mid; break
34566 echo "$as_me: failed program was:" >&5
34567 sed 's/^/| /' conftest.$ac_ext >&5
34569 ac_lo=`expr $ac_mid + 1`
34570 if test $ac_lo -le $ac_mid; then
34574 ac_mid=`expr 2 '*' $ac_mid + 1`
34577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34580 echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.$ac_ext >&5
34583 cat >conftest.$ac_ext <<_ACEOF
34586 cat confdefs.h >>conftest.$ac_ext
34587 cat >>conftest.$ac_ext <<_ACEOF
34588 /* end confdefs.h. */
34589 $ac_includes_default
34590 typedef long long ac__type_sizeof_;
34594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34601 rm -f conftest.$ac_objext
34602 if { (ac_try="$ac_compile"
34603 case "(($ac_try" in
34604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34605 *) ac_try_echo=$ac_try;;
34607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34608 (eval "$ac_compile") 2>conftest.er1
34610 grep -v '^ *+' conftest.er1 >conftest.err
34612 cat conftest.err >&5
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } && {
34615 test -z "$ac_c_werror_flag" ||
34616 test ! -s conftest.err
34617 } && test -s conftest.$ac_objext; then
34620 cat >conftest.$ac_ext <<_ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h. */
34626 $ac_includes_default
34627 typedef long long ac__type_sizeof_;
34631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34638 rm -f conftest.$ac_objext
34639 if { (ac_try="$ac_compile"
34640 case "(($ac_try" in
34641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642 *) ac_try_echo=$ac_try;;
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645 (eval "$ac_compile") 2>conftest.er1
34647 grep -v '^ *+' conftest.er1 >conftest.err
34649 cat conftest.err >&5
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } && {
34652 test -z "$ac_c_werror_flag" ||
34653 test ! -s conftest.err
34654 } && test -s conftest.$ac_objext; then
34655 ac_lo=$ac_mid; break
34657 echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34660 ac_hi=`expr '(' $ac_mid ')' - 1`
34661 if test $ac_mid -le $ac_hi; then
34665 ac_mid=`expr 2 '*' $ac_mid`
34668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34671 echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34681 # Binary search between lo and hi bounds.
34682 while test "x$ac_lo" != "x$ac_hi"; do
34683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34684 cat >conftest.$ac_ext <<_ACEOF
34687 cat confdefs.h >>conftest.$ac_ext
34688 cat >>conftest.$ac_ext <<_ACEOF
34689 /* end confdefs.h. */
34690 $ac_includes_default
34691 typedef long long ac__type_sizeof_;
34695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34702 rm -f conftest.$ac_objext
34703 if { (ac_try="$ac_compile"
34704 case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709 (eval "$ac_compile") 2>conftest.er1
34711 grep -v '^ *+' conftest.er1 >conftest.err
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } && {
34716 test -z "$ac_c_werror_flag" ||
34717 test ! -s conftest.err
34718 } && test -s conftest.$ac_objext; then
34721 echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34724 ac_lo=`expr '(' $ac_mid ')' + 1`
34727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34730 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34731 '') if test "$ac_cv_type_long_long" = yes; then
34732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34733 See \`config.log' for more details." >&5
34734 echo "$as_me: error: cannot compute sizeof (long long)
34735 See \`config.log' for more details." >&2;}
34736 { (exit 77); exit 77; }; }
34738 ac_cv_sizeof_long_long=0
34742 cat >conftest.$ac_ext <<_ACEOF
34745 cat confdefs.h >>conftest.$ac_ext
34746 cat >>conftest.$ac_ext <<_ACEOF
34747 /* end confdefs.h. */
34748 $ac_includes_default
34749 typedef long long ac__type_sizeof_;
34750 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34751 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34753 #include <stdlib.h>
34758 FILE *f = fopen ("conftest.val", "w");
34761 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34763 long int i = longval ();
34764 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34766 fprintf (f, "%ld\n", i);
34770 unsigned long int i = ulongval ();
34771 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34773 fprintf (f, "%lu\n", i);
34775 return ferror (f) || fclose (f) != 0;
34781 rm -f conftest$ac_exeext
34782 if { (ac_try="$ac_link"
34783 case "(($ac_try" in
34784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34785 *) ac_try_echo=$ac_try;;
34787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34788 (eval "$ac_link") 2>&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34792 { (case "(($ac_try" in
34793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794 *) ac_try_echo=$ac_try;;
34796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34797 (eval "$ac_try") 2>&5
34799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800 (exit $ac_status); }; }; then
34801 ac_cv_sizeof_long_long=`cat conftest.val`
34803 echo "$as_me: program exited with status $ac_status" >&5
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34807 ( exit $ac_status )
34808 if test "$ac_cv_type_long_long" = yes; then
34809 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34810 See \`config.log' for more details." >&5
34811 echo "$as_me: error: cannot compute sizeof (long long)
34812 See \`config.log' for more details." >&2;}
34813 { (exit 77); exit 77; }; }
34815 ac_cv_sizeof_long_long=0
34818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34822 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34823 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34827 cat >>confdefs.h <<_ACEOF
34828 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34832 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34833 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34834 if test "${ac_cv_type_wchar_t+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
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 wchar_t ac__type_new_;
34848 if ((ac__type_new_ *) 0)
34850 if (sizeof (ac__type_new_))
34856 rm -f conftest.$ac_objext
34857 if { (ac_try="$ac_compile"
34858 case "(($ac_try" in
34859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860 *) ac_try_echo=$ac_try;;
34862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863 (eval "$ac_compile") 2>conftest.er1
34865 grep -v '^ *+' conftest.er1 >conftest.err
34867 cat conftest.err >&5
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } && {
34870 test -z "$ac_c_werror_flag" ||
34871 test ! -s conftest.err
34872 } && test -s conftest.$ac_objext; then
34873 ac_cv_type_wchar_t=yes
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34878 ac_cv_type_wchar_t=no
34881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34884 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34886 # The cast to long int works around a bug in the HP C Compiler
34887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34889 # This bug is HP SR number 8606223364.
34890 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34891 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34892 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34893 echo $ECHO_N "(cached) $ECHO_C" >&6
34895 if test "$cross_compiling" = yes; then
34896 # Depending upon the size, compute the lo and hi bounds.
34897 cat >conftest.$ac_ext <<_ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h. */
34903 $ac_includes_default
34904 typedef wchar_t ac__type_sizeof_;
34908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34915 rm -f conftest.$ac_objext
34916 if { (ac_try="$ac_compile"
34917 case "(($ac_try" in
34918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919 *) ac_try_echo=$ac_try;;
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922 (eval "$ac_compile") 2>conftest.er1
34924 grep -v '^ *+' conftest.er1 >conftest.err
34926 cat conftest.err >&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } && {
34929 test -z "$ac_c_werror_flag" ||
34930 test ! -s conftest.err
34931 } && test -s conftest.$ac_objext; then
34934 cat >conftest.$ac_ext <<_ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h. */
34940 $ac_includes_default
34941 typedef wchar_t ac__type_sizeof_;
34945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34952 rm -f conftest.$ac_objext
34953 if { (ac_try="$ac_compile"
34954 case "(($ac_try" in
34955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956 *) ac_try_echo=$ac_try;;
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_compile") 2>conftest.er1
34961 grep -v '^ *+' conftest.er1 >conftest.err
34963 cat conftest.err >&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } && {
34966 test -z "$ac_c_werror_flag" ||
34967 test ! -s conftest.err
34968 } && test -s conftest.$ac_objext; then
34969 ac_hi=$ac_mid; break
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ac_lo=`expr $ac_mid + 1`
34975 if test $ac_lo -le $ac_mid; then
34979 ac_mid=`expr 2 '*' $ac_mid + 1`
34982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34985 echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34988 cat >conftest.$ac_ext <<_ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h. */
34994 $ac_includes_default
34995 typedef wchar_t ac__type_sizeof_;
34999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35006 rm -f conftest.$ac_objext
35007 if { (ac_try="$ac_compile"
35008 case "(($ac_try" in
35009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35010 *) ac_try_echo=$ac_try;;
35012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35013 (eval "$ac_compile") 2>conftest.er1
35015 grep -v '^ *+' conftest.er1 >conftest.err
35017 cat conftest.err >&5
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } && {
35020 test -z "$ac_c_werror_flag" ||
35021 test ! -s conftest.err
35022 } && test -s conftest.$ac_objext; then
35025 cat >conftest.$ac_ext <<_ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h. */
35031 $ac_includes_default
35032 typedef wchar_t ac__type_sizeof_;
35036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_compile") 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); } && {
35057 test -z "$ac_c_werror_flag" ||
35058 test ! -s conftest.err
35059 } && test -s conftest.$ac_objext; then
35060 ac_lo=$ac_mid; break
35062 echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35065 ac_hi=`expr '(' $ac_mid ')' - 1`
35066 if test $ac_mid -le $ac_hi; then
35070 ac_mid=`expr 2 '*' $ac_mid`
35073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35076 echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 # Binary search between lo and hi bounds.
35087 while test "x$ac_lo" != "x$ac_hi"; do
35088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35089 cat >conftest.$ac_ext <<_ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 $ac_includes_default
35096 typedef wchar_t ac__type_sizeof_;
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111 *) ac_try_echo=$ac_try;;
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114 (eval "$ac_compile") 2>conftest.er1
35116 grep -v '^ *+' conftest.er1 >conftest.err
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } && {
35121 test -z "$ac_c_werror_flag" ||
35122 test ! -s conftest.err
35123 } && test -s conftest.$ac_objext; then
35126 echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35129 ac_lo=`expr '(' $ac_mid ')' + 1`
35132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35135 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35136 '') if test "$ac_cv_type_wchar_t" = yes; then
35137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35138 See \`config.log' for more details." >&5
35139 echo "$as_me: error: cannot compute sizeof (wchar_t)
35140 See \`config.log' for more details." >&2;}
35141 { (exit 77); exit 77; }; }
35143 ac_cv_sizeof_wchar_t=0
35147 cat >conftest.$ac_ext <<_ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 $ac_includes_default
35154 typedef wchar_t ac__type_sizeof_;
35155 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35156 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35158 #include <stdlib.h>
35163 FILE *f = fopen ("conftest.val", "w");
35166 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35168 long int i = longval ();
35169 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35171 fprintf (f, "%ld\n", i);
35175 unsigned long int i = ulongval ();
35176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35178 fprintf (f, "%lu\n", i);
35180 return ferror (f) || fclose (f) != 0;
35186 rm -f conftest$ac_exeext
35187 if { (ac_try="$ac_link"
35188 case "(($ac_try" in
35189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190 *) ac_try_echo=$ac_try;;
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193 (eval "$ac_link") 2>&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35197 { (case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_try") 2>&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
35206 ac_cv_sizeof_wchar_t=`cat conftest.val`
35208 echo "$as_me: program exited with status $ac_status" >&5
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 ( exit $ac_status )
35213 if test "$ac_cv_type_wchar_t" = yes; then
35214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35215 See \`config.log' for more details." >&5
35216 echo "$as_me: error: cannot compute sizeof (wchar_t)
35217 See \`config.log' for more details." >&2;}
35218 { (exit 77); exit 77; }; }
35220 ac_cv_sizeof_wchar_t=0
35223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35228 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35232 cat >>confdefs.h <<_ACEOF
35233 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35238 if test "$ac_cv_sizeof_int" -lt 4 ; then
35239 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35240 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35243 cat >>confdefs.h <<\_ACEOF
35244 #define LBER_INT_T long
35249 cat >>confdefs.h <<\_ACEOF
35250 #define LBER_INT_T int
35256 cat >>confdefs.h <<\_ACEOF
35257 #define LBER_LEN_T long
35261 cat >>confdefs.h <<\_ACEOF
35262 #define LBER_SOCKET_T int
35266 cat >>confdefs.h <<\_ACEOF
35267 #define LBER_TAG_T long
35271 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35272 if test $ac_cv_sizeof_long_long -gt 4 ; then
35273 ol_with_mp=longlong
35275 cat >>confdefs.h <<\_ACEOF
35276 #define USE_MP_LONG_LONG 1
35279 elif test $ol_with_mp = longlong ; then
35280 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35281 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35282 { (exit 1); exit 1; }; }
35285 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35286 if test $ac_cv_sizeof_long -gt 4 ; then
35289 cat >>confdefs.h <<\_ACEOF
35290 #define USE_MP_LONG 1
35293 elif test $ol_with_mp = long ; then
35294 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35295 echo "$as_me: error: long unusable for multiple precision" >&2;}
35296 { (exit 1); exit 1; }; }
35299 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35301 for ac_header in openssl/bn.h
35303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35308 echo $ECHO_N "(cached) $ECHO_C" >&6
35310 ac_res=`eval echo '${'$as_ac_Header'}'`
35311 { echo "$as_me:$LINENO: result: $ac_res" >&5
35312 echo "${ECHO_T}$ac_res" >&6; }
35314 # Is the header compilable?
35315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35317 cat >conftest.$ac_ext <<_ACEOF
35320 cat confdefs.h >>conftest.$ac_ext
35321 cat >>conftest.$ac_ext <<_ACEOF
35322 /* end confdefs.h. */
35323 $ac_includes_default
35324 #include <$ac_header>
35326 rm -f conftest.$ac_objext
35327 if { (ac_try="$ac_compile"
35328 case "(($ac_try" in
35329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35330 *) ac_try_echo=$ac_try;;
35332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35333 (eval "$ac_compile") 2>conftest.er1
35335 grep -v '^ *+' conftest.er1 >conftest.err
35337 cat conftest.err >&5
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); } && {
35340 test -z "$ac_c_werror_flag" ||
35341 test ! -s conftest.err
35342 } && test -s conftest.$ac_objext; then
35343 ac_header_compiler=yes
35345 echo "$as_me: failed program was:" >&5
35346 sed 's/^/| /' conftest.$ac_ext >&5
35348 ac_header_compiler=no
35351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35353 echo "${ECHO_T}$ac_header_compiler" >&6; }
35355 # Is the header present?
35356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35358 cat >conftest.$ac_ext <<_ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h. */
35364 #include <$ac_header>
35366 if { (ac_try="$ac_cpp conftest.$ac_ext"
35367 case "(($ac_try" in
35368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35369 *) ac_try_echo=$ac_try;;
35371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35374 grep -v '^ *+' conftest.er1 >conftest.err
35376 cat conftest.err >&5
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); } >/dev/null && {
35379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35380 test ! -s conftest.err
35382 ac_header_preproc=yes
35384 echo "$as_me: failed program was:" >&5
35385 sed 's/^/| /' conftest.$ac_ext >&5
35387 ac_header_preproc=no
35390 rm -f conftest.err conftest.$ac_ext
35391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35392 echo "${ECHO_T}$ac_header_preproc" >&6; }
35394 # So? What about this header?
35395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35401 ac_header_preproc=yes
35404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35417 ## --------------------------------------------- ##
35418 ## Report this to <http://www.openldap.org/its/> ##
35419 ## --------------------------------------------- ##
35421 ) | sed "s/^/$as_me: WARNING: /" >&2
35424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35427 echo $ECHO_N "(cached) $ECHO_C" >&6
35429 eval "$as_ac_Header=\$ac_header_preproc"
35431 ac_res=`eval echo '${'$as_ac_Header'}'`
35432 { echo "$as_me:$LINENO: result: $ac_res" >&5
35433 echo "${ECHO_T}$ac_res" >&6; }
35436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35437 cat >>confdefs.h <<_ACEOF
35438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35446 for ac_header in openssl/crypto.h
35448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35453 echo $ECHO_N "(cached) $ECHO_C" >&6
35455 ac_res=`eval echo '${'$as_ac_Header'}'`
35456 { echo "$as_me:$LINENO: result: $ac_res" >&5
35457 echo "${ECHO_T}$ac_res" >&6; }
35459 # Is the header compilable?
35460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35462 cat >conftest.$ac_ext <<_ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h. */
35468 $ac_includes_default
35469 #include <$ac_header>
35471 rm -f conftest.$ac_objext
35472 if { (ac_try="$ac_compile"
35473 case "(($ac_try" in
35474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35475 *) ac_try_echo=$ac_try;;
35477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35478 (eval "$ac_compile") 2>conftest.er1
35480 grep -v '^ *+' conftest.er1 >conftest.err
35482 cat conftest.err >&5
35483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } && {
35485 test -z "$ac_c_werror_flag" ||
35486 test ! -s conftest.err
35487 } && test -s conftest.$ac_objext; then
35488 ac_header_compiler=yes
35490 echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35493 ac_header_compiler=no
35496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35498 echo "${ECHO_T}$ac_header_compiler" >&6; }
35500 # Is the header present?
35501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35503 cat >conftest.$ac_ext <<_ACEOF
35506 cat confdefs.h >>conftest.$ac_ext
35507 cat >>conftest.$ac_ext <<_ACEOF
35508 /* end confdefs.h. */
35509 #include <$ac_header>
35511 if { (ac_try="$ac_cpp conftest.$ac_ext"
35512 case "(($ac_try" in
35513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514 *) ac_try_echo=$ac_try;;
35516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35519 grep -v '^ *+' conftest.er1 >conftest.err
35521 cat conftest.err >&5
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); } >/dev/null && {
35524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35525 test ! -s conftest.err
35527 ac_header_preproc=yes
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ac_header_preproc=no
35535 rm -f conftest.err conftest.$ac_ext
35536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35537 echo "${ECHO_T}$ac_header_preproc" >&6; }
35539 # So? What about this header?
35540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35546 ac_header_preproc=yes
35549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35562 ## --------------------------------------------- ##
35563 ## Report this to <http://www.openldap.org/its/> ##
35564 ## --------------------------------------------- ##
35566 ) | sed "s/^/$as_me: WARNING: /" >&2
35569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35572 echo $ECHO_N "(cached) $ECHO_C" >&6
35574 eval "$as_ac_Header=\$ac_header_preproc"
35576 ac_res=`eval echo '${'$as_ac_Header'}'`
35577 { echo "$as_me:$LINENO: result: $ac_res" >&5
35578 echo "${ECHO_T}$ac_res" >&6; }
35581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35582 cat >>confdefs.h <<_ACEOF
35583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35590 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35591 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35592 test "$ol_with_tls" = "found" ; then
35595 cat >>confdefs.h <<\_ACEOF
35596 #define USE_MP_BIGNUM 1
35599 elif test $ol_with_mp = bignum ; then
35600 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35601 echo "$as_me: error: bignum not available" >&2;}
35602 { (exit 1); exit 1; }; }
35605 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35607 for ac_header in gmp.h
35609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35614 echo $ECHO_N "(cached) $ECHO_C" >&6
35616 ac_res=`eval echo '${'$as_ac_Header'}'`
35617 { echo "$as_me:$LINENO: result: $ac_res" >&5
35618 echo "${ECHO_T}$ac_res" >&6; }
35620 # Is the header compilable?
35621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35623 cat >conftest.$ac_ext <<_ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h. */
35629 $ac_includes_default
35630 #include <$ac_header>
35632 rm -f conftest.$ac_objext
35633 if { (ac_try="$ac_compile"
35634 case "(($ac_try" in
35635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636 *) ac_try_echo=$ac_try;;
35638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35639 (eval "$ac_compile") 2>conftest.er1
35641 grep -v '^ *+' conftest.er1 >conftest.err
35643 cat conftest.err >&5
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); } && {
35646 test -z "$ac_c_werror_flag" ||
35647 test ! -s conftest.err
35648 } && test -s conftest.$ac_objext; then
35649 ac_header_compiler=yes
35651 echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35654 ac_header_compiler=no
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35659 echo "${ECHO_T}$ac_header_compiler" >&6; }
35661 # Is the header present?
35662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35664 cat >conftest.$ac_ext <<_ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h. */
35670 #include <$ac_header>
35672 if { (ac_try="$ac_cpp conftest.$ac_ext"
35673 case "(($ac_try" in
35674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35675 *) ac_try_echo=$ac_try;;
35677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35680 grep -v '^ *+' conftest.er1 >conftest.err
35682 cat conftest.err >&5
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); } >/dev/null && {
35685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35686 test ! -s conftest.err
35688 ac_header_preproc=yes
35690 echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.$ac_ext >&5
35693 ac_header_preproc=no
35696 rm -f conftest.err conftest.$ac_ext
35697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35698 echo "${ECHO_T}$ac_header_preproc" >&6; }
35700 # So? What about this header?
35701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35707 ac_header_preproc=yes
35710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35723 ## --------------------------------------------- ##
35724 ## Report this to <http://www.openldap.org/its/> ##
35725 ## --------------------------------------------- ##
35727 ) | sed "s/^/$as_me: WARNING: /" >&2
35730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35735 eval "$as_ac_Header=\$ac_header_preproc"
35737 ac_res=`eval echo '${'$as_ac_Header'}'`
35738 { echo "$as_me:$LINENO: result: $ac_res" >&5
35739 echo "${ECHO_T}$ac_res" >&6; }
35742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35743 cat >>confdefs.h <<_ACEOF
35744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35752 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35753 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35754 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35755 echo $ECHO_N "(cached) $ECHO_C" >&6
35757 ac_check_lib_save_LIBS=$LIBS
35759 cat >conftest.$ac_ext <<_ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35766 /* Override any GCC internal prototype to avoid an error.
35767 Use char because int might match the return type of a GCC
35768 builtin and then its argument prototype would still apply. */
35772 char __gmpz_add_ui ();
35776 return __gmpz_add_ui ();
35781 rm -f conftest.$ac_objext conftest$ac_exeext
35782 if { (ac_try="$ac_link"
35783 case "(($ac_try" in
35784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35785 *) ac_try_echo=$ac_try;;
35787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35788 (eval "$ac_link") 2>conftest.er1
35790 grep -v '^ *+' conftest.er1 >conftest.err
35792 cat conftest.err >&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } && {
35795 test -z "$ac_c_werror_flag" ||
35796 test ! -s conftest.err
35797 } && test -s conftest$ac_exeext &&
35798 $as_test_x conftest$ac_exeext; then
35799 ac_cv_lib_gmp___gmpz_add_ui=yes
35801 echo "$as_me: failed program was:" >&5
35802 sed 's/^/| /' conftest.$ac_ext >&5
35804 ac_cv_lib_gmp___gmpz_add_ui=no
35807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35808 conftest$ac_exeext conftest.$ac_ext
35809 LIBS=$ac_check_lib_save_LIBS
35811 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35812 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35813 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35814 cat >>confdefs.h <<_ACEOF
35815 #define HAVE_LIBGMP 1
35822 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35824 cat >>confdefs.h <<\_ACEOF
35825 #define USE_MP_GMP 1
35829 elif test $ol_with_mp = gmp ; then
35830 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35831 echo "$as_me: error: gmp not available" >&2;}
35832 { (exit 1); exit 1; }; }
35835 if test $ol_with_mp = auto ; then
35839 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35840 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35841 if test "${ac_cv_func_memcmp_working+set}" = set; then
35842 echo $ECHO_N "(cached) $ECHO_C" >&6
35844 if test "$cross_compiling" = yes; then
35845 ac_cv_func_memcmp_working=no
35847 cat >conftest.$ac_ext <<_ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h. */
35853 $ac_includes_default
35858 /* Some versions of memcmp are not 8-bit clean. */
35859 char c0 = '\100', c1 = '\200', c2 = '\201';
35860 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35863 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35864 or more and with at least one buffer not starting on a 4-byte boundary.
35865 William Lewis provided this test program. */
35870 for (i = 0; i < 4; i++)
35874 strcpy (a, "--------01111111");
35875 strcpy (b, "--------10000000");
35876 if (memcmp (a, b, 16) >= 0)
35886 rm -f conftest$ac_exeext
35887 if { (ac_try="$ac_link"
35888 case "(($ac_try" in
35889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890 *) ac_try_echo=$ac_try;;
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893 (eval "$ac_link") 2>&5
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35897 { (case "(($ac_try" in
35898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899 *) ac_try_echo=$ac_try;;
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902 (eval "$ac_try") 2>&5
35904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905 (exit $ac_status); }; }; then
35906 ac_cv_func_memcmp_working=yes
35908 echo "$as_me: program exited with status $ac_status" >&5
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35912 ( exit $ac_status )
35913 ac_cv_func_memcmp_working=no
35915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35920 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35921 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35922 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35923 *" memcmp.$ac_objext "* ) ;;
35924 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35930 if test $ac_cv_func_memcmp_working = no ; then
35932 cat >>confdefs.h <<\_ACEOF
35933 #define NEED_MEMCMP_REPLACEMENT 1
35939 for ac_func in strftime
35941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35947 cat >conftest.$ac_ext <<_ACEOF
35950 cat confdefs.h >>conftest.$ac_ext
35951 cat >>conftest.$ac_ext <<_ACEOF
35952 /* end confdefs.h. */
35953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35955 #define $ac_func innocuous_$ac_func
35957 /* System header to define __stub macros and hopefully few prototypes,
35958 which can conflict with char $ac_func (); below.
35959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35960 <limits.h> exists even on freestanding compilers. */
35963 # include <limits.h>
35965 # include <assert.h>
35970 /* Override any GCC internal prototype to avoid an error.
35971 Use char because int might match the return type of a GCC
35972 builtin and then its argument prototype would still apply. */
35977 /* The GNU C library defines this for functions which it implements
35978 to always fail with ENOSYS. Some functions are actually named
35979 something starting with __ and the normal name is an alias. */
35980 #if defined __stub_$ac_func || defined __stub___$ac_func
35987 return $ac_func ();
35992 rm -f conftest.$ac_objext conftest$ac_exeext
35993 if { (ac_try="$ac_link"
35994 case "(($ac_try" in
35995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35996 *) ac_try_echo=$ac_try;;
35998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35999 (eval "$ac_link") 2>conftest.er1
36001 grep -v '^ *+' conftest.er1 >conftest.err
36003 cat conftest.err >&5
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); } && {
36006 test -z "$ac_c_werror_flag" ||
36007 test ! -s conftest.err
36008 } && test -s conftest$ac_exeext &&
36009 $as_test_x conftest$ac_exeext; then
36010 eval "$as_ac_var=yes"
36012 echo "$as_me: failed program was:" >&5
36013 sed 's/^/| /' conftest.$ac_ext >&5
36015 eval "$as_ac_var=no"
36018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36019 conftest$ac_exeext conftest.$ac_ext
36021 ac_res=`eval echo '${'$as_ac_var'}'`
36022 { echo "$as_me:$LINENO: result: $ac_res" >&5
36023 echo "${ECHO_T}$ac_res" >&6; }
36024 if test `eval echo '${'$as_ac_var'}'` = yes; then
36025 cat >>confdefs.h <<_ACEOF
36026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36030 # strftime is in -lintl on SCO UNIX.
36031 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36032 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36033 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36034 echo $ECHO_N "(cached) $ECHO_C" >&6
36036 ac_check_lib_save_LIBS=$LIBS
36037 LIBS="-lintl $LIBS"
36038 cat >conftest.$ac_ext <<_ACEOF
36041 cat confdefs.h >>conftest.$ac_ext
36042 cat >>conftest.$ac_ext <<_ACEOF
36043 /* end confdefs.h. */
36045 /* Override any GCC internal prototype to avoid an error.
36046 Use char because int might match the return type of a GCC
36047 builtin and then its argument prototype would still apply. */
36055 return strftime ();
36060 rm -f conftest.$ac_objext conftest$ac_exeext
36061 if { (ac_try="$ac_link"
36062 case "(($ac_try" in
36063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36064 *) ac_try_echo=$ac_try;;
36066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36067 (eval "$ac_link") 2>conftest.er1
36069 grep -v '^ *+' conftest.er1 >conftest.err
36071 cat conftest.err >&5
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); } && {
36074 test -z "$ac_c_werror_flag" ||
36075 test ! -s conftest.err
36076 } && test -s conftest$ac_exeext &&
36077 $as_test_x conftest$ac_exeext; then
36078 ac_cv_lib_intl_strftime=yes
36080 echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.$ac_ext >&5
36083 ac_cv_lib_intl_strftime=no
36086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36087 conftest$ac_exeext conftest.$ac_ext
36088 LIBS=$ac_check_lib_save_LIBS
36090 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36091 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36092 if test $ac_cv_lib_intl_strftime = yes; then
36093 cat >>confdefs.h <<\_ACEOF
36094 #define HAVE_STRFTIME 1
36097 LIBS="-lintl $LIBS"
36104 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36105 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36106 if test "${ol_cv_func_inet_aton+set}" = set; then
36107 echo $ECHO_N "(cached) $ECHO_C" >&6
36109 cat >conftest.$ac_ext <<_ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h. */
36116 #ifdef HAVE_SYS_TYPES_H
36117 # include <sys/types.h>
36119 #ifdef HAVE_SYS_SOCKET_H
36120 # include <sys/socket.h>
36121 # ifdef HAVE_SYS_SELECT_H
36122 # include <sys/select.h>
36124 # include <netinet/in.h>
36125 # ifdef HAVE_ARPA_INET_H
36126 # include <arpa/inet.h>
36134 int rc = inet_aton( "255.255.255.255", &in );
36139 rm -f conftest.$ac_objext conftest$ac_exeext
36140 if { (ac_try="$ac_link"
36141 case "(($ac_try" in
36142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36143 *) ac_try_echo=$ac_try;;
36145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36146 (eval "$ac_link") 2>conftest.er1
36148 grep -v '^ *+' conftest.er1 >conftest.err
36150 cat conftest.err >&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } && {
36153 test -z "$ac_c_werror_flag" ||
36154 test ! -s conftest.err
36155 } && test -s conftest$ac_exeext &&
36156 $as_test_x conftest$ac_exeext; then
36157 ol_cv_func_inet_aton=yes
36159 echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.$ac_ext >&5
36162 ol_cv_func_inet_aton=no
36165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36166 conftest$ac_exeext conftest.$ac_ext
36168 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36169 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36170 if test $ol_cv_func_inet_aton != no; then
36172 cat >>confdefs.h <<\_ACEOF
36173 #define HAVE_INET_ATON 1
36179 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36180 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36181 if test "${ac_cv_func__spawnlp+set}" = set; then
36182 echo $ECHO_N "(cached) $ECHO_C" >&6
36184 cat >conftest.$ac_ext <<_ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h. */
36190 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36192 #define _spawnlp innocuous__spawnlp
36194 /* System header to define __stub macros and hopefully few prototypes,
36195 which can conflict with char _spawnlp (); below.
36196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36197 <limits.h> exists even on freestanding compilers. */
36200 # include <limits.h>
36202 # include <assert.h>
36207 /* Override any GCC internal prototype to avoid an error.
36208 Use char because int might match the return type of a GCC
36209 builtin and then its argument prototype would still apply. */
36214 /* The GNU C library defines this for functions which it implements
36215 to always fail with ENOSYS. Some functions are actually named
36216 something starting with __ and the normal name is an alias. */
36217 #if defined __stub__spawnlp || defined __stub____spawnlp
36224 return _spawnlp ();
36229 rm -f conftest.$ac_objext conftest$ac_exeext
36230 if { (ac_try="$ac_link"
36231 case "(($ac_try" in
36232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36233 *) ac_try_echo=$ac_try;;
36235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36236 (eval "$ac_link") 2>conftest.er1
36238 grep -v '^ *+' conftest.er1 >conftest.err
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } && {
36243 test -z "$ac_c_werror_flag" ||
36244 test ! -s conftest.err
36245 } && test -s conftest$ac_exeext &&
36246 $as_test_x conftest$ac_exeext; then
36247 ac_cv_func__spawnlp=yes
36249 echo "$as_me: failed program was:" >&5
36250 sed 's/^/| /' conftest.$ac_ext >&5
36252 ac_cv_func__spawnlp=no
36255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36256 conftest$ac_exeext conftest.$ac_ext
36258 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36259 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36260 if test $ac_cv_func__spawnlp = yes; then
36262 cat >>confdefs.h <<\_ACEOF
36263 #define HAVE_SPAWNLP 1
36269 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36270 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36271 if test "${ac_cv_func__snprintf+set}" = set; then
36272 echo $ECHO_N "(cached) $ECHO_C" >&6
36274 cat >conftest.$ac_ext <<_ACEOF
36277 cat confdefs.h >>conftest.$ac_ext
36278 cat >>conftest.$ac_ext <<_ACEOF
36279 /* end confdefs.h. */
36280 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36282 #define _snprintf innocuous__snprintf
36284 /* System header to define __stub macros and hopefully few prototypes,
36285 which can conflict with char _snprintf (); below.
36286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36287 <limits.h> exists even on freestanding compilers. */
36290 # include <limits.h>
36292 # include <assert.h>
36297 /* Override any GCC internal prototype to avoid an error.
36298 Use char because int might match the return type of a GCC
36299 builtin and then its argument prototype would still apply. */
36304 /* The GNU C library defines this for functions which it implements
36305 to always fail with ENOSYS. Some functions are actually named
36306 something starting with __ and the normal name is an alias. */
36307 #if defined __stub__snprintf || defined __stub____snprintf
36314 return _snprintf ();
36319 rm -f conftest.$ac_objext conftest$ac_exeext
36320 if { (ac_try="$ac_link"
36321 case "(($ac_try" in
36322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323 *) ac_try_echo=$ac_try;;
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326 (eval "$ac_link") 2>conftest.er1
36328 grep -v '^ *+' conftest.er1 >conftest.err
36330 cat conftest.err >&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } && {
36333 test -z "$ac_c_werror_flag" ||
36334 test ! -s conftest.err
36335 } && test -s conftest$ac_exeext &&
36336 $as_test_x conftest$ac_exeext; then
36337 ac_cv_func__snprintf=yes
36339 echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36342 ac_cv_func__snprintf=no
36345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36346 conftest$ac_exeext conftest.$ac_ext
36348 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36349 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36350 if test $ac_cv_func__snprintf = yes; then
36351 ac_cv_func_snprintf=yes
36353 cat >>confdefs.h <<\_ACEOF
36354 #define snprintf _snprintf
36363 for ac_func in vsnprintf _vsnprintf
36365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36369 echo $ECHO_N "(cached) $ECHO_C" >&6
36371 cat >conftest.$ac_ext <<_ACEOF
36374 cat confdefs.h >>conftest.$ac_ext
36375 cat >>conftest.$ac_ext <<_ACEOF
36376 /* end confdefs.h. */
36377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36379 #define $ac_func innocuous_$ac_func
36381 /* System header to define __stub macros and hopefully few prototypes,
36382 which can conflict with char $ac_func (); below.
36383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36384 <limits.h> exists even on freestanding compilers. */
36387 # include <limits.h>
36389 # include <assert.h>
36394 /* Override any GCC internal prototype to avoid an error.
36395 Use char because int might match the return type of a GCC
36396 builtin and then its argument prototype would still apply. */
36401 /* The GNU C library defines this for functions which it implements
36402 to always fail with ENOSYS. Some functions are actually named
36403 something starting with __ and the normal name is an alias. */
36404 #if defined __stub_$ac_func || defined __stub___$ac_func
36411 return $ac_func ();
36416 rm -f conftest.$ac_objext conftest$ac_exeext
36417 if { (ac_try="$ac_link"
36418 case "(($ac_try" in
36419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36420 *) ac_try_echo=$ac_try;;
36422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36423 (eval "$ac_link") 2>conftest.er1
36425 grep -v '^ *+' conftest.er1 >conftest.err
36427 cat conftest.err >&5
36428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 (exit $ac_status); } && {
36430 test -z "$ac_c_werror_flag" ||
36431 test ! -s conftest.err
36432 } && test -s conftest$ac_exeext &&
36433 $as_test_x conftest$ac_exeext; then
36434 eval "$as_ac_var=yes"
36436 echo "$as_me: failed program was:" >&5
36437 sed 's/^/| /' conftest.$ac_ext >&5
36439 eval "$as_ac_var=no"
36442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36443 conftest$ac_exeext conftest.$ac_ext
36445 ac_res=`eval echo '${'$as_ac_var'}'`
36446 { echo "$as_me:$LINENO: result: $ac_res" >&5
36447 echo "${ECHO_T}$ac_res" >&6; }
36448 if test `eval echo '${'$as_ac_var'}'` = yes; then
36449 cat >>confdefs.h <<_ACEOF
36450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36457 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36458 ac_cv_func_vsnprintf=yes
36460 cat >>confdefs.h <<\_ACEOF
36461 #define vsnprintf _vsnprintf
36467 for ac_func in vprintf
36469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36473 echo $ECHO_N "(cached) $ECHO_C" >&6
36475 cat >conftest.$ac_ext <<_ACEOF
36478 cat confdefs.h >>conftest.$ac_ext
36479 cat >>conftest.$ac_ext <<_ACEOF
36480 /* end confdefs.h. */
36481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36483 #define $ac_func innocuous_$ac_func
36485 /* System header to define __stub macros and hopefully few prototypes,
36486 which can conflict with char $ac_func (); below.
36487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36488 <limits.h> exists even on freestanding compilers. */
36491 # include <limits.h>
36493 # include <assert.h>
36498 /* Override any GCC internal prototype to avoid an error.
36499 Use char because int might match the return type of a GCC
36500 builtin and then its argument prototype would still apply. */
36505 /* The GNU C library defines this for functions which it implements
36506 to always fail with ENOSYS. Some functions are actually named
36507 something starting with __ and the normal name is an alias. */
36508 #if defined __stub_$ac_func || defined __stub___$ac_func
36515 return $ac_func ();
36520 rm -f conftest.$ac_objext conftest$ac_exeext
36521 if { (ac_try="$ac_link"
36522 case "(($ac_try" in
36523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36524 *) ac_try_echo=$ac_try;;
36526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36527 (eval "$ac_link") 2>conftest.er1
36529 grep -v '^ *+' conftest.er1 >conftest.err
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } && {
36534 test -z "$ac_c_werror_flag" ||
36535 test ! -s conftest.err
36536 } && test -s conftest$ac_exeext &&
36537 $as_test_x conftest$ac_exeext; then
36538 eval "$as_ac_var=yes"
36540 echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.$ac_ext >&5
36543 eval "$as_ac_var=no"
36546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36547 conftest$ac_exeext conftest.$ac_ext
36549 ac_res=`eval echo '${'$as_ac_var'}'`
36550 { echo "$as_me:$LINENO: result: $ac_res" >&5
36551 echo "${ECHO_T}$ac_res" >&6; }
36552 if test `eval echo '${'$as_ac_var'}'` = yes; then
36553 cat >>confdefs.h <<_ACEOF
36554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36557 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36558 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36559 if test "${ac_cv_func__doprnt+set}" = set; then
36560 echo $ECHO_N "(cached) $ECHO_C" >&6
36562 cat >conftest.$ac_ext <<_ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h. */
36568 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36570 #define _doprnt innocuous__doprnt
36572 /* System header to define __stub macros and hopefully few prototypes,
36573 which can conflict with char _doprnt (); below.
36574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36575 <limits.h> exists even on freestanding compilers. */
36578 # include <limits.h>
36580 # include <assert.h>
36585 /* Override any GCC internal prototype to avoid an error.
36586 Use char because int might match the return type of a GCC
36587 builtin and then its argument prototype would still apply. */
36592 /* The GNU C library defines this for functions which it implements
36593 to always fail with ENOSYS. Some functions are actually named
36594 something starting with __ and the normal name is an alias. */
36595 #if defined __stub__doprnt || defined __stub____doprnt
36607 rm -f conftest.$ac_objext conftest$ac_exeext
36608 if { (ac_try="$ac_link"
36609 case "(($ac_try" in
36610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36611 *) ac_try_echo=$ac_try;;
36613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36614 (eval "$ac_link") 2>conftest.er1
36616 grep -v '^ *+' conftest.er1 >conftest.err
36618 cat conftest.err >&5
36619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); } && {
36621 test -z "$ac_c_werror_flag" ||
36622 test ! -s conftest.err
36623 } && test -s conftest$ac_exeext &&
36624 $as_test_x conftest$ac_exeext; then
36625 ac_cv_func__doprnt=yes
36627 echo "$as_me: failed program was:" >&5
36628 sed 's/^/| /' conftest.$ac_ext >&5
36630 ac_cv_func__doprnt=no
36633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36634 conftest$ac_exeext conftest.$ac_ext
36636 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36637 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36638 if test $ac_cv_func__doprnt = yes; then
36640 cat >>confdefs.h <<\_ACEOF
36641 #define HAVE_DOPRNT 1
36651 if test $ac_cv_func_vprintf = yes ; then
36654 for ac_func in snprintf vsnprintf
36656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36660 echo $ECHO_N "(cached) $ECHO_C" >&6
36662 cat >conftest.$ac_ext <<_ACEOF
36665 cat confdefs.h >>conftest.$ac_ext
36666 cat >>conftest.$ac_ext <<_ACEOF
36667 /* end confdefs.h. */
36668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36670 #define $ac_func innocuous_$ac_func
36672 /* System header to define __stub macros and hopefully few prototypes,
36673 which can conflict with char $ac_func (); below.
36674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36675 <limits.h> exists even on freestanding compilers. */
36678 # include <limits.h>
36680 # include <assert.h>
36685 /* Override any GCC internal prototype to avoid an error.
36686 Use char because int might match the return type of a GCC
36687 builtin and then its argument prototype would still apply. */
36692 /* The GNU C library defines this for functions which it implements
36693 to always fail with ENOSYS. Some functions are actually named
36694 something starting with __ and the normal name is an alias. */
36695 #if defined __stub_$ac_func || defined __stub___$ac_func
36702 return $ac_func ();
36707 rm -f conftest.$ac_objext conftest$ac_exeext
36708 if { (ac_try="$ac_link"
36709 case "(($ac_try" in
36710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36711 *) ac_try_echo=$ac_try;;
36713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36714 (eval "$ac_link") 2>conftest.er1
36716 grep -v '^ *+' conftest.er1 >conftest.err
36718 cat conftest.err >&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } && {
36721 test -z "$ac_c_werror_flag" ||
36722 test ! -s conftest.err
36723 } && test -s conftest$ac_exeext &&
36724 $as_test_x conftest$ac_exeext; then
36725 eval "$as_ac_var=yes"
36727 echo "$as_me: failed program was:" >&5
36728 sed 's/^/| /' conftest.$ac_ext >&5
36730 eval "$as_ac_var=no"
36733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36734 conftest$ac_exeext conftest.$ac_ext
36736 ac_res=`eval echo '${'$as_ac_var'}'`
36737 { echo "$as_me:$LINENO: result: $ac_res" >&5
36738 echo "${ECHO_T}$ac_res" >&6; }
36739 if test `eval echo '${'$as_ac_var'}'` = yes; then
36740 cat >>confdefs.h <<_ACEOF
36741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36866 echo $ECHO_N "(cached) $ECHO_C" >&6
36868 cat >conftest.$ac_ext <<_ACEOF
36871 cat confdefs.h >>conftest.$ac_ext
36872 cat >>conftest.$ac_ext <<_ACEOF
36873 /* end confdefs.h. */
36874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36876 #define $ac_func innocuous_$ac_func
36878 /* System header to define __stub macros and hopefully few prototypes,
36879 which can conflict with char $ac_func (); below.
36880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36881 <limits.h> exists even on freestanding compilers. */
36884 # include <limits.h>
36886 # include <assert.h>
36891 /* Override any GCC internal prototype to avoid an error.
36892 Use char because int might match the return type of a GCC
36893 builtin and then its argument prototype would still apply. */
36898 /* The GNU C library defines this for functions which it implements
36899 to always fail with ENOSYS. Some functions are actually named
36900 something starting with __ and the normal name is an alias. */
36901 #if defined __stub_$ac_func || defined __stub___$ac_func
36908 return $ac_func ();
36913 rm -f conftest.$ac_objext conftest$ac_exeext
36914 if { (ac_try="$ac_link"
36915 case "(($ac_try" in
36916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36917 *) ac_try_echo=$ac_try;;
36919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36920 (eval "$ac_link") 2>conftest.er1
36922 grep -v '^ *+' conftest.er1 >conftest.err
36924 cat conftest.err >&5
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); } && {
36927 test -z "$ac_c_werror_flag" ||
36928 test ! -s conftest.err
36929 } && test -s conftest$ac_exeext &&
36930 $as_test_x conftest$ac_exeext; then
36931 eval "$as_ac_var=yes"
36933 echo "$as_me: failed program was:" >&5
36934 sed 's/^/| /' conftest.$ac_ext >&5
36936 eval "$as_ac_var=no"
36939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36940 conftest$ac_exeext conftest.$ac_ext
36942 ac_res=`eval echo '${'$as_ac_var'}'`
36943 { echo "$as_me:$LINENO: result: $ac_res" >&5
36944 echo "${ECHO_T}$ac_res" >&6; }
36945 if test `eval echo '${'$as_ac_var'}'` = yes; then
36946 cat >>confdefs.h <<_ACEOF
36947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36956 for ac_func in getopt getpeereid
36958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36962 echo $ECHO_N "(cached) $ECHO_C" >&6
36964 cat >conftest.$ac_ext <<_ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h. */
36970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36972 #define $ac_func innocuous_$ac_func
36974 /* System header to define __stub macros and hopefully few prototypes,
36975 which can conflict with char $ac_func (); below.
36976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36977 <limits.h> exists even on freestanding compilers. */
36980 # include <limits.h>
36982 # include <assert.h>
36987 /* Override any GCC internal prototype to avoid an error.
36988 Use char because int might match the return type of a GCC
36989 builtin and then its argument prototype would still apply. */
36994 /* The GNU C library defines this for functions which it implements
36995 to always fail with ENOSYS. Some functions are actually named
36996 something starting with __ and the normal name is an alias. */
36997 #if defined __stub_$ac_func || defined __stub___$ac_func
37004 return $ac_func ();
37009 rm -f conftest.$ac_objext conftest$ac_exeext
37010 if { (ac_try="$ac_link"
37011 case "(($ac_try" in
37012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37013 *) ac_try_echo=$ac_try;;
37015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37016 (eval "$ac_link") 2>conftest.er1
37018 grep -v '^ *+' conftest.er1 >conftest.err
37020 cat conftest.err >&5
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); } && {
37023 test -z "$ac_c_werror_flag" ||
37024 test ! -s conftest.err
37025 } && test -s conftest$ac_exeext &&
37026 $as_test_x conftest$ac_exeext; then
37027 eval "$as_ac_var=yes"
37029 echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37032 eval "$as_ac_var=no"
37035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37036 conftest$ac_exeext conftest.$ac_ext
37038 ac_res=`eval echo '${'$as_ac_var'}'`
37039 { echo "$as_me:$LINENO: result: $ac_res" >&5
37040 echo "${ECHO_T}$ac_res" >&6; }
37041 if test `eval echo '${'$as_ac_var'}'` = yes; then
37042 cat >>confdefs.h <<_ACEOF
37043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37047 case " $LIBOBJS " in
37048 *" $ac_func.$ac_objext "* ) ;;
37049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37058 if test "$ac_cv_func_getopt" != yes; then
37059 LIBSRCS="$LIBSRCS getopt.c"
37062 if test "$ac_cv_func_getpeereid" != yes; then
37064 for ac_func in getpeerucred
37066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37072 cat >conftest.$ac_ext <<_ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h. */
37078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37080 #define $ac_func innocuous_$ac_func
37082 /* System header to define __stub macros and hopefully few prototypes,
37083 which can conflict with char $ac_func (); below.
37084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37085 <limits.h> exists even on freestanding compilers. */
37088 # include <limits.h>
37090 # include <assert.h>
37095 /* Override any GCC internal prototype to avoid an error.
37096 Use char because int might match the return type of a GCC
37097 builtin and then its argument prototype would still apply. */
37102 /* The GNU C library defines this for functions which it implements
37103 to always fail with ENOSYS. Some functions are actually named
37104 something starting with __ and the normal name is an alias. */
37105 #if defined __stub_$ac_func || defined __stub___$ac_func
37112 return $ac_func ();
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (ac_try="$ac_link"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_link") 2>conftest.er1
37126 grep -v '^ *+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } && {
37131 test -z "$ac_c_werror_flag" ||
37132 test ! -s conftest.err
37133 } && test -s conftest$ac_exeext &&
37134 $as_test_x conftest$ac_exeext; then
37135 eval "$as_ac_var=yes"
37137 echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37140 eval "$as_ac_var=no"
37143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37144 conftest$ac_exeext conftest.$ac_ext
37146 ac_res=`eval echo '${'$as_ac_var'}'`
37147 { echo "$as_me:$LINENO: result: $ac_res" >&5
37148 echo "${ECHO_T}$ac_res" >&6; }
37149 if test `eval echo '${'$as_ac_var'}'` = yes; then
37150 cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37157 if test "$ac_cv_func_getpeerucred" != yes ; then
37158 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37159 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37160 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37161 echo $ECHO_N "(cached) $ECHO_C" >&6
37163 cat >conftest.$ac_ext <<_ACEOF
37166 cat confdefs.h >>conftest.$ac_ext
37167 cat >>conftest.$ac_ext <<_ACEOF
37168 /* end confdefs.h. */
37169 $ac_includes_default
37170 #ifdef HAVE_SYS_SOCKET_H
37171 #include <sys/socket.h>
37177 static struct msghdr ac_aggr;
37178 if (ac_aggr.msg_accrightslen)
37184 rm -f conftest.$ac_objext
37185 if { (ac_try="$ac_compile"
37186 case "(($ac_try" in
37187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37188 *) ac_try_echo=$ac_try;;
37190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37191 (eval "$ac_compile") 2>conftest.er1
37193 grep -v '^ *+' conftest.er1 >conftest.err
37195 cat conftest.err >&5
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); } && {
37198 test -z "$ac_c_werror_flag" ||
37199 test ! -s conftest.err
37200 } && test -s conftest.$ac_objext; then
37201 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37203 echo "$as_me: failed program was:" >&5
37204 sed 's/^/| /' conftest.$ac_ext >&5
37206 cat >conftest.$ac_ext <<_ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h. */
37212 $ac_includes_default
37213 #ifdef HAVE_SYS_SOCKET_H
37214 #include <sys/socket.h>
37220 static struct msghdr ac_aggr;
37221 if (sizeof ac_aggr.msg_accrightslen)
37227 rm -f conftest.$ac_objext
37228 if { (ac_try="$ac_compile"
37229 case "(($ac_try" in
37230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37231 *) ac_try_echo=$ac_try;;
37233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37234 (eval "$ac_compile") 2>conftest.er1
37236 grep -v '^ *+' conftest.er1 >conftest.err
37238 cat conftest.err >&5
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); } && {
37241 test -z "$ac_c_werror_flag" ||
37242 test ! -s conftest.err
37243 } && test -s conftest.$ac_objext; then
37244 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37246 echo "$as_me: failed program was:" >&5
37247 sed 's/^/| /' conftest.$ac_ext >&5
37249 ac_cv_member_struct_msghdr_msg_accrightslen=no
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37258 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37259 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37261 cat >>confdefs.h <<_ACEOF
37262 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37268 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37269 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37270 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37271 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37272 echo $ECHO_N "(cached) $ECHO_C" >&6
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 $ac_includes_default
37281 #ifdef HAVE_SYS_SOCKET_H
37282 #include <sys/socket.h>
37288 static struct msghdr ac_aggr;
37289 if (ac_aggr.msg_control)
37295 rm -f conftest.$ac_objext
37296 if { (ac_try="$ac_compile"
37297 case "(($ac_try" in
37298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37299 *) ac_try_echo=$ac_try;;
37301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37302 (eval "$ac_compile") 2>conftest.er1
37304 grep -v '^ *+' conftest.er1 >conftest.err
37306 cat conftest.err >&5
37307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308 (exit $ac_status); } && {
37309 test -z "$ac_c_werror_flag" ||
37310 test ! -s conftest.err
37311 } && test -s conftest.$ac_objext; then
37312 ac_cv_member_struct_msghdr_msg_control=yes
37314 echo "$as_me: failed program was:" >&5
37315 sed 's/^/| /' conftest.$ac_ext >&5
37317 cat >conftest.$ac_ext <<_ACEOF
37320 cat confdefs.h >>conftest.$ac_ext
37321 cat >>conftest.$ac_ext <<_ACEOF
37322 /* end confdefs.h. */
37323 $ac_includes_default
37324 #ifdef HAVE_SYS_SOCKET_H
37325 #include <sys/socket.h>
37331 static struct msghdr ac_aggr;
37332 if (sizeof ac_aggr.msg_control)
37338 rm -f conftest.$ac_objext
37339 if { (ac_try="$ac_compile"
37340 case "(($ac_try" in
37341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37342 *) ac_try_echo=$ac_try;;
37344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37345 (eval "$ac_compile") 2>conftest.er1
37347 grep -v '^ *+' conftest.er1 >conftest.err
37349 cat conftest.err >&5
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); } && {
37352 test -z "$ac_c_werror_flag" ||
37353 test ! -s conftest.err
37354 } && test -s conftest.$ac_objext; then
37355 ac_cv_member_struct_msghdr_msg_control=yes
37357 echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37360 ac_cv_member_struct_msghdr_msg_control=no
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37369 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37370 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37372 cat >>confdefs.h <<_ACEOF
37373 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37380 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37381 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37382 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37383 echo $ECHO_N "(cached) $ECHO_C" >&6
37385 cat >conftest.$ac_ext <<_ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37391 $ac_includes_default
37395 static struct stat ac_aggr;
37396 if (ac_aggr.st_fstype)
37402 rm -f conftest.$ac_objext
37403 if { (ac_try="$ac_compile"
37404 case "(($ac_try" in
37405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406 *) ac_try_echo=$ac_try;;
37408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37409 (eval "$ac_compile") 2>conftest.er1
37411 grep -v '^ *+' conftest.er1 >conftest.err
37413 cat conftest.err >&5
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); } && {
37416 test -z "$ac_c_werror_flag" ||
37417 test ! -s conftest.err
37418 } && test -s conftest.$ac_objext; then
37419 ac_cv_member_struct_stat_st_fstype=yes
37421 echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37424 cat >conftest.$ac_ext <<_ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h. */
37430 $ac_includes_default
37434 static struct stat ac_aggr;
37435 if (sizeof ac_aggr.st_fstype)
37441 rm -f conftest.$ac_objext
37442 if { (ac_try="$ac_compile"
37443 case "(($ac_try" in
37444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37445 *) ac_try_echo=$ac_try;;
37447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37448 (eval "$ac_compile") 2>conftest.er1
37450 grep -v '^ *+' conftest.er1 >conftest.err
37452 cat conftest.err >&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); } && {
37455 test -z "$ac_c_werror_flag" ||
37456 test ! -s conftest.err
37457 } && test -s conftest.$ac_objext; then
37458 ac_cv_member_struct_stat_st_fstype=yes
37460 echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37463 ac_cv_member_struct_stat_st_fstype=no
37466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37471 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37472 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37473 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37475 cat >>confdefs.h <<_ACEOF
37476 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37481 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37482 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37483 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37484 echo $ECHO_N "(cached) $ECHO_C" >&6
37486 cat >conftest.$ac_ext <<_ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h. */
37492 $ac_includes_default
37496 static struct stat ac_aggr;
37497 if (ac_aggr.st_vfstype)
37503 rm -f conftest.$ac_objext
37504 if { (ac_try="$ac_compile"
37505 case "(($ac_try" in
37506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37507 *) ac_try_echo=$ac_try;;
37509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37510 (eval "$ac_compile") 2>conftest.er1
37512 grep -v '^ *+' conftest.er1 >conftest.err
37514 cat conftest.err >&5
37515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516 (exit $ac_status); } && {
37517 test -z "$ac_c_werror_flag" ||
37518 test ! -s conftest.err
37519 } && test -s conftest.$ac_objext; then
37520 ac_cv_member_struct_stat_st_vfstype=yes
37522 echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.$ac_ext >&5
37525 cat >conftest.$ac_ext <<_ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h. */
37531 $ac_includes_default
37535 static struct stat ac_aggr;
37536 if (sizeof ac_aggr.st_vfstype)
37542 rm -f conftest.$ac_objext
37543 if { (ac_try="$ac_compile"
37544 case "(($ac_try" in
37545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37546 *) ac_try_echo=$ac_try;;
37548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37549 (eval "$ac_compile") 2>conftest.er1
37551 grep -v '^ *+' conftest.er1 >conftest.err
37553 cat conftest.err >&5
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); } && {
37556 test -z "$ac_c_werror_flag" ||
37557 test ! -s conftest.err
37558 } && test -s conftest.$ac_objext; then
37559 ac_cv_member_struct_stat_st_vfstype=yes
37561 echo "$as_me: failed program was:" >&5
37562 sed 's/^/| /' conftest.$ac_ext >&5
37564 ac_cv_member_struct_stat_st_vfstype=no
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37572 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37573 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37574 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37576 cat >>confdefs.h <<_ACEOF
37577 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37583 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37584 cat >conftest.$ac_ext <<_ACEOF
37585 struct stat st; char *ptr=st.st_fstype;
37587 rm -f conftest.$ac_objext
37588 if { (ac_try="$ac_compile"
37589 case "(($ac_try" in
37590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37591 *) ac_try_echo=$ac_try;;
37593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37594 (eval "$ac_compile") 2>conftest.er1
37596 grep -v '^ *+' conftest.er1 >conftest.err
37598 cat conftest.err >&5
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); } && {
37601 test -z "$ac_c_werror_flag" ||
37602 test ! -s conftest.err
37603 } && test -s conftest.$ac_objext; then
37605 cat >>confdefs.h <<\_ACEOF
37606 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37610 echo "$as_me: failed program was:" >&5
37611 sed 's/^/| /' conftest.$ac_ext >&5
37614 cat >>confdefs.h <<\_ACEOF
37615 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37623 LIBSRCS="$LIBSRCS getpeereid.c"
37626 if test "$ac_cv_func_snprintf" != yes ||
37627 test "$ac_cv_func_vsnprintf" != yes; then
37628 if test "$ac_cv_func_snprintf" != yes; then
37630 cat >>confdefs.h <<\_ACEOF
37631 #define snprintf ber_pvt_snprintf
37635 if test "$ac_cv_func_vsnprintf" != yes; then
37637 cat >>confdefs.h <<\_ACEOF
37638 #define vsnprintf ber_pvt_vsnprintf
37645 if test "$ol_enable_slapi" != no ; then
37647 for ac_header in ltdl.h
37649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37654 echo $ECHO_N "(cached) $ECHO_C" >&6
37656 ac_res=`eval echo '${'$as_ac_Header'}'`
37657 { echo "$as_me:$LINENO: result: $ac_res" >&5
37658 echo "${ECHO_T}$ac_res" >&6; }
37660 # Is the header compilable?
37661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37663 cat >conftest.$ac_ext <<_ACEOF
37666 cat confdefs.h >>conftest.$ac_ext
37667 cat >>conftest.$ac_ext <<_ACEOF
37668 /* end confdefs.h. */
37669 $ac_includes_default
37670 #include <$ac_header>
37672 rm -f conftest.$ac_objext
37673 if { (ac_try="$ac_compile"
37674 case "(($ac_try" in
37675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37676 *) ac_try_echo=$ac_try;;
37678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37679 (eval "$ac_compile") 2>conftest.er1
37681 grep -v '^ *+' conftest.er1 >conftest.err
37683 cat conftest.err >&5
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); } && {
37686 test -z "$ac_c_werror_flag" ||
37687 test ! -s conftest.err
37688 } && test -s conftest.$ac_objext; then
37689 ac_header_compiler=yes
37691 echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37694 ac_header_compiler=no
37697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37699 echo "${ECHO_T}$ac_header_compiler" >&6; }
37701 # Is the header present?
37702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37704 cat >conftest.$ac_ext <<_ACEOF
37707 cat confdefs.h >>conftest.$ac_ext
37708 cat >>conftest.$ac_ext <<_ACEOF
37709 /* end confdefs.h. */
37710 #include <$ac_header>
37712 if { (ac_try="$ac_cpp conftest.$ac_ext"
37713 case "(($ac_try" in
37714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715 *) ac_try_echo=$ac_try;;
37717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37720 grep -v '^ *+' conftest.er1 >conftest.err
37722 cat conftest.err >&5
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); } >/dev/null && {
37725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37726 test ! -s conftest.err
37728 ac_header_preproc=yes
37730 echo "$as_me: failed program was:" >&5
37731 sed 's/^/| /' conftest.$ac_ext >&5
37733 ac_header_preproc=no
37736 rm -f conftest.err conftest.$ac_ext
37737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37738 echo "${ECHO_T}$ac_header_preproc" >&6; }
37740 # So? What about this header?
37741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37747 ac_header_preproc=yes
37750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37763 ## --------------------------------------------- ##
37764 ## Report this to <http://www.openldap.org/its/> ##
37765 ## --------------------------------------------- ##
37767 ) | sed "s/^/$as_me: WARNING: /" >&2
37770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37773 echo $ECHO_N "(cached) $ECHO_C" >&6
37775 eval "$as_ac_Header=\$ac_header_preproc"
37777 ac_res=`eval echo '${'$as_ac_Header'}'`
37778 { echo "$as_me:$LINENO: result: $ac_res" >&5
37779 echo "${ECHO_T}$ac_res" >&6; }
37782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37783 cat >>confdefs.h <<_ACEOF
37784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37792 if test $ac_cv_header_ltdl_h != yes ; then
37793 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37794 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37795 { (exit 1); exit 1; }; }
37797 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37798 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37799 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37800 echo $ECHO_N "(cached) $ECHO_C" >&6
37802 ac_check_lib_save_LIBS=$LIBS
37803 LIBS="-lltdl $LIBS"
37804 cat >conftest.$ac_ext <<_ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h. */
37811 /* Override any GCC internal prototype to avoid an error.
37812 Use char because int might match the return type of a GCC
37813 builtin and then its argument prototype would still apply. */
37821 return lt_dlinit ();
37826 rm -f conftest.$ac_objext conftest$ac_exeext
37827 if { (ac_try="$ac_link"
37828 case "(($ac_try" in
37829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37830 *) ac_try_echo=$ac_try;;
37832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37833 (eval "$ac_link") 2>conftest.er1
37835 grep -v '^ *+' conftest.er1 >conftest.err
37837 cat conftest.err >&5
37838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); } && {
37840 test -z "$ac_c_werror_flag" ||
37841 test ! -s conftest.err
37842 } && test -s conftest$ac_exeext &&
37843 $as_test_x conftest$ac_exeext; then
37844 ac_cv_lib_ltdl_lt_dlinit=yes
37846 echo "$as_me: failed program was:" >&5
37847 sed 's/^/| /' conftest.$ac_ext >&5
37849 ac_cv_lib_ltdl_lt_dlinit=no
37852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37853 conftest$ac_exeext conftest.$ac_ext
37854 LIBS=$ac_check_lib_save_LIBS
37856 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37857 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37858 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37861 LIBSLAPI=libslapi.a
37862 LIBSLAPITOOLS=../libslapi.a
37864 cat >>confdefs.h <<\_ACEOF
37865 #define HAVE_LIBLTDL 1
37870 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37871 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37872 { (exit 1); exit 1; }; }
37877 cat >>confdefs.h <<\_ACEOF
37878 #define LDAP_SLAPI 1
37883 if test "$ol_enable_debug" != no ; then
37884 if test "$ol_enable_debug" = traditional; then
37886 cat >>confdefs.h <<\_ACEOF
37887 #define OLD_DEBUG 1
37892 cat >>confdefs.h <<\_ACEOF
37893 #define LDAP_DEBUG 1
37897 if test "$ol_enable_syslog" = yes ; then
37899 cat >>confdefs.h <<\_ACEOF
37900 #define LDAP_SYSLOG 1
37904 if test "$ol_enable_proctitle" != no ; then
37906 cat >>confdefs.h <<\_ACEOF
37907 #define LDAP_PROCTITLE 1
37911 if test "$ol_enable_referrals" != no ; then
37913 cat >>confdefs.h <<\_ACEOF
37914 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37918 if test "$ol_enable_local" != no; then
37920 cat >>confdefs.h <<\_ACEOF
37921 #define LDAP_PF_LOCAL 1
37925 if test "$ol_link_ipv6" != no; then
37927 cat >>confdefs.h <<\_ACEOF
37928 #define LDAP_PF_INET6 1
37932 if test "$ol_enable_cleartext" != no ; then
37934 cat >>confdefs.h <<\_ACEOF
37935 #define SLAPD_CLEARTEXT 1
37939 if test "$ol_enable_crypt" != no ; then
37941 cat >>confdefs.h <<\_ACEOF
37942 #define SLAPD_CRYPT 1
37946 if test "$ol_link_spasswd" != no ; then
37948 cat >>confdefs.h <<\_ACEOF
37949 #define SLAPD_SPASSWD 1
37953 if test "$ol_enable_rlookups" != no ; then
37955 cat >>confdefs.h <<\_ACEOF
37956 #define SLAPD_RLOOKUPS 1
37960 if test "$ol_enable_aci" != no ; then
37961 if test $ol_enable_dynacl = no ; then
37962 ol_enable_dynacl=yes
37963 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37964 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37966 if test "$ol_enable_aci" = mod ; then
37967 MFLAG=SLAPD_MOD_DYNAMIC
37968 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37969 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37970 { (exit 1); exit 1; }; }
37972 MFLAG=SLAPD_MOD_STATIC
37974 WITH_ACI_ENABLED=$ol_enable_aci
37976 cat >>confdefs.h <<_ACEOF
37977 #define SLAPD_ACI_ENABLED $MFLAG
37981 WITH_ACI_ENABLED=no
37983 if test "$ol_enable_dynacl" != no ; then
37985 cat >>confdefs.h <<\_ACEOF
37986 #define SLAP_DYNACL 1
37991 if test "$ol_link_modules" != no ; then
37993 cat >>confdefs.h <<\_ACEOF
37994 #define SLAPD_MODULES 1
37998 SLAPD_MODULES_LDFLAGS="-dlopen self"
38002 cat >>confdefs.h <<\_ACEOF
38003 #define SLAPD_MOD_STATIC 1
38007 cat >>confdefs.h <<\_ACEOF
38008 #define SLAPD_MOD_DYNAMIC 2
38012 if test "$ol_enable_monitor" != no ; then
38014 BUILD_MONITOR=$ol_enable_monitor
38015 if test "$ol_enable_monitor" = mod ; then
38016 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38017 MFLAG=SLAPD_MOD_DYNAMIC
38019 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38020 MFLAG=SLAPD_MOD_STATIC
38023 cat >>confdefs.h <<_ACEOF
38024 #define SLAPD_MONITOR $MFLAG
38029 if test "$ol_enable_bdb" != no ; then
38031 BUILD_BDB=$ol_enable_bdb
38032 if test "$ol_enable_bdb" = mod ; then
38033 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38034 MFLAG=SLAPD_MOD_DYNAMIC
38036 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38037 MFLAG=SLAPD_MOD_STATIC
38040 cat >>confdefs.h <<_ACEOF
38041 #define SLAPD_BDB $MFLAG
38046 if test "$ol_enable_dnssrv" != no ; then
38048 BUILD_DNSSRV=$ol_enable_dnssrv
38049 if test "$ol_enable_dnssrv" = mod ; then
38050 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38051 MFLAG=SLAPD_MOD_DYNAMIC
38053 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38054 MFLAG=SLAPD_MOD_STATIC
38057 cat >>confdefs.h <<_ACEOF
38058 #define SLAPD_DNSSRV $MFLAG
38063 if test "$ol_enable_hdb" != no ; then
38065 BUILD_HDB=$ol_enable_hdb
38066 if test "$ol_enable_hdb" = mod ; then
38067 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38068 MFLAG=SLAPD_MOD_DYNAMIC
38070 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38071 MFLAG=SLAPD_MOD_STATIC
38074 cat >>confdefs.h <<_ACEOF
38075 #define SLAPD_HDB $MFLAG
38080 if test "$ol_enable_ldap" != no ; then
38082 BUILD_LDAP=$ol_enable_ldap
38083 if test "$ol_enable_ldap" = mod ; then
38084 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38085 MFLAG=SLAPD_MOD_DYNAMIC
38087 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38088 MFLAG=SLAPD_MOD_STATIC
38091 cat >>confdefs.h <<_ACEOF
38092 #define SLAPD_LDAP $MFLAG
38097 if test "$ol_enable_meta" != no ; then
38099 BUILD_META=$ol_enable_meta
38101 if test "$ol_enable_meta" = mod ; then
38102 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38103 MFLAG=SLAPD_MOD_DYNAMIC
38105 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38106 MFLAG=SLAPD_MOD_STATIC
38109 cat >>confdefs.h <<_ACEOF
38110 #define SLAPD_META $MFLAG
38115 if test "$ol_enable_ndb" != no ; then
38117 BUILD_NDB=$ol_enable_ndb
38118 if test "$ol_enable_ndb" = mod ; then
38119 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38120 MFLAG=SLAPD_MOD_DYNAMIC
38122 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38123 MFLAG=SLAPD_MOD_STATIC
38126 cat >>confdefs.h <<_ACEOF
38127 #define SLAPD_NDB $MFLAG
38132 if test "$ol_enable_null" != no ; then
38134 BUILD_NULL=$ol_enable_null
38135 if test "$ol_enable_null" = mod ; then
38136 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38137 MFLAG=SLAPD_MOD_DYNAMIC
38139 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38140 MFLAG=SLAPD_MOD_STATIC
38143 cat >>confdefs.h <<_ACEOF
38144 #define SLAPD_NULL $MFLAG
38149 if test "$ol_enable_passwd" != no ; then
38151 BUILD_PASSWD=$ol_enable_passwd
38152 if test "$ol_enable_passwd" = mod ; then
38153 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38154 MFLAG=SLAPD_MOD_DYNAMIC
38156 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38157 MFLAG=SLAPD_MOD_STATIC
38160 cat >>confdefs.h <<_ACEOF
38161 #define SLAPD_PASSWD $MFLAG
38166 if test "$ol_link_perl" != no ; then
38168 BUILD_PERL=$ol_enable_perl
38169 if test "$ol_enable_perl" = mod ; then
38170 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38171 MFLAG=SLAPD_MOD_DYNAMIC
38173 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38174 MFLAG=SLAPD_MOD_STATIC
38177 cat >>confdefs.h <<_ACEOF
38178 #define SLAPD_PERL $MFLAG
38183 if test "$ol_enable_relay" != no ; then
38185 BUILD_RELAY=$ol_enable_relay
38186 if test "$ol_enable_relay" = mod ; then
38187 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38188 MFLAG=SLAPD_MOD_DYNAMIC
38190 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38191 MFLAG=SLAPD_MOD_STATIC
38194 cat >>confdefs.h <<_ACEOF
38195 #define SLAPD_RELAY $MFLAG
38200 if test "$ol_enable_shell" != no ; then
38201 if test "$ol_link_threads" != no ; then
38202 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38203 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38206 BUILD_SHELL=$ol_enable_shell
38207 if test "$ol_enable_shell" = mod ; then
38208 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38209 MFLAG=SLAPD_MOD_DYNAMIC
38211 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38212 MFLAG=SLAPD_MOD_STATIC
38215 cat >>confdefs.h <<_ACEOF
38216 #define SLAPD_SHELL $MFLAG
38221 if test "$ol_enable_sock" != no ; then
38223 BUILD_SOCK=$ol_enable_sock
38224 if test "$ol_enable_sock" = mod ; then
38225 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38226 MFLAG=SLAPD_MOD_DYNAMIC
38228 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38229 MFLAG=SLAPD_MOD_STATIC
38232 cat >>confdefs.h <<_ACEOF
38233 #define SLAPD_SOCK $MFLAG
38238 if test "$ol_link_sql" != no ; then
38240 BUILD_SQL=$ol_enable_sql
38241 if test "$ol_enable_sql" = mod; then
38242 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38243 MFLAG=SLAPD_MOD_DYNAMIC
38245 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38246 MFLAG=SLAPD_MOD_STATIC
38249 cat >>confdefs.h <<_ACEOF
38250 #define SLAPD_SQL $MFLAG
38255 if test "$ol_enable_accesslog" != no ; then
38256 BUILD_ACCESSLOG=$ol_enable_accesslog
38257 if test "$ol_enable_accesslog" = mod ; then
38258 MFLAG=SLAPD_MOD_DYNAMIC
38259 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38261 MFLAG=SLAPD_MOD_STATIC
38262 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38265 cat >>confdefs.h <<_ACEOF
38266 #define SLAPD_OVER_ACCESSLOG $MFLAG
38271 if test "$ol_enable_auditlog" != no ; then
38272 BUILD_AUDITLOG=$ol_enable_auditlog
38273 if test "$ol_enable_auditlog" = mod ; then
38274 MFLAG=SLAPD_MOD_DYNAMIC
38275 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38277 MFLAG=SLAPD_MOD_STATIC
38278 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38281 cat >>confdefs.h <<_ACEOF
38282 #define SLAPD_OVER_AUDITLOG $MFLAG
38287 if test "$ol_enable_collect" != no ; then
38288 BUILD_COLLECT=$ol_enable_collect
38289 if test "$ol_enable_collect" = mod ; then
38290 MFLAG=SLAPD_MOD_DYNAMIC
38291 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38293 MFLAG=SLAPD_MOD_STATIC
38294 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38297 cat >>confdefs.h <<_ACEOF
38298 #define SLAPD_OVER_COLLECT $MFLAG
38303 if test "$ol_enable_constraint" != no ; then
38304 BUILD_CONSTRAINT=$ol_enable_constraint
38305 if test "$ol_enable_constraint" = mod ; then
38306 MFLAG=SLAPD_MOD_DYNAMIC
38307 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38309 MFLAG=SLAPD_MOD_STATIC
38310 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38313 cat >>confdefs.h <<_ACEOF
38314 #define SLAPD_OVER_CONSTRAINT $MFLAG
38319 if test "$ol_enable_dds" != no ; then
38320 BUILD_DDS=$ol_enable_dds
38321 if test "$ol_enable_dds" = mod ; then
38322 MFLAG=SLAPD_MOD_DYNAMIC
38323 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38325 MFLAG=SLAPD_MOD_STATIC
38326 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38329 cat >>confdefs.h <<_ACEOF
38330 #define SLAPD_OVER_DDS $MFLAG
38335 if test "$ol_enable_deref" != no ; then
38336 BUILD_DEREF=$ol_enable_deref
38337 if test "$ol_enable_deref" = mod ; then
38338 MFLAG=SLAPD_MOD_DYNAMIC
38339 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38341 MFLAG=SLAPD_MOD_STATIC
38342 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38345 cat >>confdefs.h <<_ACEOF
38346 #define SLAPD_OVER_DEREF $MFLAG
38351 if test "$ol_enable_dyngroup" != no ; then
38352 BUILD_DYNGROUP=$ol_enable_dyngroup
38353 if test "$ol_enable_dyngroup" = mod ; then
38354 MFLAG=SLAPD_MOD_DYNAMIC
38355 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38357 MFLAG=SLAPD_MOD_STATIC
38358 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38361 cat >>confdefs.h <<_ACEOF
38362 #define SLAPD_OVER_DYNGROUP $MFLAG
38367 if test "$ol_enable_dynlist" != no ; then
38368 BUILD_DYNLIST=$ol_enable_dynlist
38369 if test "$ol_enable_dynlist" = mod ; then
38370 MFLAG=SLAPD_MOD_DYNAMIC
38371 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38373 MFLAG=SLAPD_MOD_STATIC
38374 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38377 cat >>confdefs.h <<_ACEOF
38378 #define SLAPD_OVER_DYNLIST $MFLAG
38383 if test "$ol_enable_memberof" != no ; then
38384 BUILD_MEMBEROF=$ol_enable_memberof
38385 if test "$ol_enable_memberof" = mod ; then
38386 MFLAG=SLAPD_MOD_DYNAMIC
38387 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38389 MFLAG=SLAPD_MOD_STATIC
38390 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38393 cat >>confdefs.h <<_ACEOF
38394 #define SLAPD_OVER_MEMBEROF $MFLAG
38399 if test "$ol_enable_ppolicy" != no ; then
38400 BUILD_PPOLICY=$ol_enable_ppolicy
38401 if test "$ol_enable_ppolicy" = mod ; then
38402 MFLAG=SLAPD_MOD_DYNAMIC
38403 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38405 MFLAG=SLAPD_MOD_STATIC
38406 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38409 cat >>confdefs.h <<_ACEOF
38410 #define SLAPD_OVER_PPOLICY $MFLAG
38415 if test "$ol_enable_proxycache" != no ; then
38416 BUILD_PROXYCACHE=$ol_enable_proxycache
38417 if test "$ol_enable_proxycache" = mod ; then
38418 MFLAG=SLAPD_MOD_DYNAMIC
38419 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38421 MFLAG=SLAPD_MOD_STATIC
38422 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38425 cat >>confdefs.h <<_ACEOF
38426 #define SLAPD_OVER_PROXYCACHE $MFLAG
38431 if test "$ol_enable_refint" != no ; then
38432 BUILD_REFINT=$ol_enable_refint
38433 if test "$ol_enable_refint" = mod ; then
38434 MFLAG=SLAPD_MOD_DYNAMIC
38435 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38437 MFLAG=SLAPD_MOD_STATIC
38438 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38441 cat >>confdefs.h <<_ACEOF
38442 #define SLAPD_OVER_REFINT $MFLAG
38447 if test "$ol_enable_retcode" != no ; then
38448 BUILD_RETCODE=$ol_enable_retcode
38449 if test "$ol_enable_retcode" = mod ; then
38450 MFLAG=SLAPD_MOD_DYNAMIC
38451 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38453 MFLAG=SLAPD_MOD_STATIC
38454 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38457 cat >>confdefs.h <<_ACEOF
38458 #define SLAPD_OVER_RETCODE $MFLAG
38463 if test "$ol_enable_rwm" != no ; then
38465 BUILD_RWM=$ol_enable_rwm
38466 if test "$ol_enable_rwm" = mod ; then
38467 MFLAG=SLAPD_MOD_DYNAMIC
38468 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38470 MFLAG=SLAPD_MOD_STATIC
38471 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38474 cat >>confdefs.h <<_ACEOF
38475 #define SLAPD_OVER_RWM $MFLAG
38480 if test "$ol_enable_seqmod" != no ; then
38481 BUILD_SEQMOD=$ol_enable_seqmod
38482 if test "$ol_enable_seqmod" = mod ; then
38483 MFLAG=SLAPD_MOD_DYNAMIC
38484 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38486 MFLAG=SLAPD_MOD_STATIC
38487 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38490 cat >>confdefs.h <<_ACEOF
38491 #define SLAPD_OVER_SEQMOD $MFLAG
38496 if test "$ol_enable_sssvlv" != no ; then
38497 BUILD_SSSVLV=$ol_enable_sssvlv
38498 if test "$ol_enable_sssvlv" = mod ; then
38499 MFLAG=SLAPD_MOD_DYNAMIC
38500 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38502 MFLAG=SLAPD_MOD_STATIC
38503 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38506 cat >>confdefs.h <<_ACEOF
38507 #define SLAPD_OVER_SSSVLV $MFLAG
38512 if test "$ol_enable_syncprov" != no ; then
38513 BUILD_SYNCPROV=$ol_enable_syncprov
38514 if test "$ol_enable_syncprov" = mod ; then
38515 MFLAG=SLAPD_MOD_DYNAMIC
38516 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38518 MFLAG=SLAPD_MOD_STATIC
38519 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38522 cat >>confdefs.h <<_ACEOF
38523 #define SLAPD_OVER_SYNCPROV $MFLAG
38528 if test "$ol_enable_translucent" != no ; then
38529 BUILD_TRANSLUCENT=$ol_enable_translucent
38530 if test "$ol_enable_translucent" = mod ; then
38531 MFLAG=SLAPD_MOD_DYNAMIC
38532 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38534 MFLAG=SLAPD_MOD_STATIC
38535 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38538 cat >>confdefs.h <<_ACEOF
38539 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38544 if test "$ol_enable_unique" != no ; then
38545 BUILD_UNIQUE=$ol_enable_unique
38546 if test "$ol_enable_unique" = mod ; then
38547 MFLAG=SLAPD_MOD_DYNAMIC
38548 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38550 MFLAG=SLAPD_MOD_STATIC
38551 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38554 cat >>confdefs.h <<_ACEOF
38555 #define SLAPD_OVER_UNIQUE $MFLAG
38560 if test "$ol_enable_valsort" != no ; then
38561 BUILD_VALSORT=$ol_enable_valsort
38562 if test "$ol_enable_valsort" = mod ; then
38563 MFLAG=SLAPD_MOD_DYNAMIC
38564 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38566 MFLAG=SLAPD_MOD_STATIC
38567 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38570 cat >>confdefs.h <<_ACEOF
38571 #define SLAPD_OVER_VALSORT $MFLAG
38576 if test "$ol_enable_rewrite" != no ; then
38578 cat >>confdefs.h <<\_ACEOF
38579 #define ENABLE_REWRITE 1
38585 if test "$ol_enable_slapi" != no ; then
38587 cat >>confdefs.h <<\_ACEOF
38588 #define ENABLE_SLAPI 1
38592 SLAPD_SLAPI_DEPEND=libslapi.a
38597 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38599 SLAPD_MODULES_LDFLAGS=
38694 # Check whether --with-xxinstall was given.
38695 if test "${with_xxinstall+set}" = set; then
38696 withval=$with_xxinstall;
38701 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"
38704 ac_config_commands="$ac_config_commands default"
38708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38709 # Let make expand exec_prefix.
38710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38712 DEFS=-DHAVE_CONFIG_H
38716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38717 # 1. Remove the extension, and $U if already installed.
38718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38719 ac_i=`echo "$ac_i" | sed "$ac_script"`
38720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38721 # will be set to the directory where LIBOBJS objects are built.
38722 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38723 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38725 LIBOBJS=$ac_libobjs
38727 LTLIBOBJS=$ac_ltlibobjs
38730 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38731 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38732 Usually this means the macro was only invoked conditionally." >&5
38733 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38734 Usually this means the macro was only invoked conditionally." >&2;}
38735 { (exit 1); exit 1; }; }
38737 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38738 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38739 Usually this means the macro was only invoked conditionally." >&5
38740 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38741 Usually this means the macro was only invoked conditionally." >&2;}
38742 { (exit 1); exit 1; }; }
38744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38745 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38746 Usually this means the macro was only invoked conditionally." >&5
38747 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38748 Usually this means the macro was only invoked conditionally." >&2;}
38749 { (exit 1); exit 1; }; }
38752 : ${CONFIG_STATUS=./config.status}
38753 ac_clean_files_save=$ac_clean_files
38754 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38755 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38756 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38757 cat >$CONFIG_STATUS <<_ACEOF
38759 # Generated by $as_me.
38760 # Run this file to recreate the current configuration.
38761 # Compiler output produced by configure, useful for debugging
38762 # configure, is in config.log if it exists.
38765 ac_cs_recheck=false
38767 SHELL=\${CONFIG_SHELL-$SHELL}
38770 cat >>$CONFIG_STATUS <<\_ACEOF
38771 ## --------------------- ##
38772 ## M4sh Initialization. ##
38773 ## --------------------- ##
38775 # Be more Bourne compatible
38776 DUALCASE=1; export DUALCASE # for MKS sh
38777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38780 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38781 # is contrary to our usage. Disable this feature.
38782 alias -g '${1+"$@"}'='"$@"'
38783 setopt NO_GLOB_SUBST
38785 case `(set -o) 2>/dev/null` in
38786 *posix*) set -o posix ;;
38795 # Avoid depending upon Character Ranges.
38796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38799 as_cr_digits='0123456789'
38800 as_cr_alnum=$as_cr_Letters$as_cr_digits
38802 # The user is always right.
38803 if test "${PATH_SEPARATOR+set}" != set; then
38804 echo "#! /bin/sh" >conf$$.sh
38805 echo "exit 0" >>conf$$.sh
38807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38815 # Support unset when possible.
38816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38824 # We need space, tab and new line, in precisely that order. Quoting is
38825 # there to prevent editors from complaining about space-tab.
38826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38827 # splitting by setting IFS to empty value.)
38832 # Find who we are. Look in the path if we contain no directory separator.
38834 *[\\/]* ) as_myself=$0 ;;
38835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38836 for as_dir in $PATH
38839 test -z "$as_dir" && as_dir=.
38840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38846 # We did not find ourselves, most probably we were run as `sh COMMAND'
38847 # in which case we are not to be found in the path.
38848 if test "x$as_myself" = x; then
38851 if test ! -f "$as_myself"; then
38852 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38853 { (exit 1); exit 1; }
38856 # Work around bugs in pre-3.0 UWIN ksh.
38857 for as_var in ENV MAIL MAILPATH
38858 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38866 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38867 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38868 LC_TELEPHONE LC_TIME
38870 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38871 eval $as_var=C; export $as_var
38873 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38877 # Required to use basename.
38878 if expr a : '\(a\)' >/dev/null 2>&1 &&
38879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38886 as_basename=basename
38892 # Name of the executable.
38893 as_me=`$as_basename -- "$0" ||
38894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38895 X"$0" : 'X\(//\)$' \| \
38896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38898 sed '/^.*\/\([^/][^/]*\)\/*$/{
38917 as_lineno_1=$LINENO
38918 as_lineno_2=$LINENO
38919 test "x$as_lineno_1" != "x$as_lineno_2" &&
38920 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38923 # uniformly replaced by the line number. The first 'sed' inserts a
38924 # line-number line after each line using $LINENO; the second 'sed'
38925 # does the real work. The second script uses 'N' to pair each
38926 # line-number line with the line containing $LINENO, and appends
38927 # trailing '-' during substitution so that $LINENO is not a special
38928 # case at line end.
38929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38930 # scripts with optimization help from Paolo Bonzini. Blame Lee
38931 # E. McMahon (1931-1989) for sed's syntax. :-)
38943 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38946 ' >$as_me.lineno &&
38947 chmod +x "$as_me.lineno" ||
38948 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38949 { (exit 1); exit 1; }; }
38951 # Don't try to exec as it changes $[0], causing all sort of problems
38952 # (the dirname of $[0] is not the place where we might find the
38953 # original and so on. Autoconf is especially sensitive to this).
38954 . "./$as_me.lineno"
38955 # Exit status is that of the last command.
38960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38966 ECHO_C= ECHO_N= ECHO_T=
38967 case `echo -n x` in
38969 case `echo 'x\c'` in
38970 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38977 if expr a : '\(a\)' >/dev/null 2>&1 &&
38978 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38984 rm -f conf$$ conf$$.exe conf$$.file
38985 if test -d conf$$.dir; then
38986 rm -f conf$$.dir/conf$$.file
38992 if ln -s conf$$.file conf$$ 2>/dev/null; then
38994 # ... but there are two gotchas:
38995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38997 # In both cases, we have to default to `cp -p'.
38998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39000 elif ln conf$$.file conf$$ 2>/dev/null; then
39005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39006 rmdir conf$$.dir 2>/dev/null
39008 if mkdir -p . 2>/dev/null; then
39011 test -d ./-p && rmdir ./-p
39015 if test -x / >/dev/null 2>&1; then
39016 as_test_x='test -x'
39018 if ls -dL / >/dev/null 2>&1; then
39025 if test -d "$1"; then
39031 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39032 ???[sx]*):;;*)false;;esac;fi
39036 as_executable_p=$as_test_x
39038 # Sed expression to map a string onto a valid CPP name.
39039 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39041 # Sed expression to map a string onto a valid variable name.
39042 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39047 # Save the log message, to keep $[0] and so on meaningful, and to
39048 # report actual input values of CONFIG_FILES etc. instead of their
39049 # values after options handling.
39051 This file was extended by $as_me, which was
39052 generated by GNU Autoconf 2.61. Invocation command line was
39054 CONFIG_FILES = $CONFIG_FILES
39055 CONFIG_HEADERS = $CONFIG_HEADERS
39056 CONFIG_LINKS = $CONFIG_LINKS
39057 CONFIG_COMMANDS = $CONFIG_COMMANDS
39060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39065 cat >>$CONFIG_STATUS <<_ACEOF
39066 # Files that config.status was made for.
39067 config_files="$ac_config_files"
39068 config_headers="$ac_config_headers"
39069 config_commands="$ac_config_commands"
39073 cat >>$CONFIG_STATUS <<\_ACEOF
39075 \`$as_me' instantiates files from templates according to the
39076 current configuration.
39078 Usage: $0 [OPTIONS] [FILE]...
39080 -h, --help print this help, then exit
39081 -V, --version print version number and configuration settings, then exit
39082 -q, --quiet do not print progress messages
39083 -d, --debug don't remove temporary files
39084 --recheck update $as_me by reconfiguring in the same conditions
39085 --file=FILE[:TEMPLATE]
39086 instantiate the configuration file FILE
39087 --header=FILE[:TEMPLATE]
39088 instantiate the configuration header FILE
39090 Configuration files:
39093 Configuration headers:
39096 Configuration commands:
39099 Report bugs to <bug-autoconf@gnu.org>."
39102 cat >>$CONFIG_STATUS <<_ACEOF
39105 configured by $0, generated by GNU Autoconf 2.61,
39106 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39108 Copyright (C) 2006 Free Software Foundation, Inc.
39109 This config.status script is free software; the Free Software Foundation
39110 gives unlimited permission to copy, distribute and modify it."
39117 cat >>$CONFIG_STATUS <<\_ACEOF
39118 # If no file are specified by the user, then we need to provide default
39119 # value. By we need to know if files were specified by the user.
39125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39137 # Handling of the options.
39138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39141 echo "$ac_cs_version"; exit ;;
39142 --debug | --debu | --deb | --de | --d | -d )
39144 --file | --fil | --fi | --f )
39146 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39147 ac_need_defaults=false;;
39148 --header | --heade | --head | --hea )
39150 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39151 ac_need_defaults=false;;
39153 # Conflict between --help and --header
39154 { echo "$as_me: error: ambiguous option: $1
39155 Try \`$0 --help' for more information." >&2
39156 { (exit 1); exit 1; }; };;
39157 --help | --hel | -h )
39158 echo "$ac_cs_usage"; exit ;;
39159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39163 # This is an error.
39164 -*) { echo "$as_me: error: unrecognized option: $1
39165 Try \`$0 --help' for more information." >&2
39166 { (exit 1); exit 1; }; } ;;
39168 *) ac_config_targets="$ac_config_targets $1"
39169 ac_need_defaults=false ;;
39175 ac_configure_extra_args=
39177 if $ac_cs_silent; then
39179 ac_configure_extra_args="$ac_configure_extra_args --silent"
39183 cat >>$CONFIG_STATUS <<_ACEOF
39184 if \$ac_cs_recheck; then
39185 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39186 CONFIG_SHELL=$SHELL
39187 export CONFIG_SHELL
39188 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39192 cat >>$CONFIG_STATUS <<\_ACEOF
39196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39197 ## Running $as_me. ##
39203 cat >>$CONFIG_STATUS <<_ACEOF
39207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39209 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39210 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39215 cat >>$CONFIG_STATUS <<\_ACEOF
39217 # Handling of arguments.
39218 for ac_config_target in $ac_config_targets
39220 case $ac_config_target in
39221 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39222 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39223 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39226 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39227 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39228 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39229 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39230 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39231 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39232 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39233 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39234 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39235 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39236 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39237 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39238 "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" ;;
39239 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39240 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39241 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39242 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39243 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39244 "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" ;;
39245 "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" ;;
39246 "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" ;;
39247 "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" ;;
39248 "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" ;;
39249 "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" ;;
39250 "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" ;;
39251 "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" ;;
39252 "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" ;;
39253 "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" ;;
39254 "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" ;;
39255 "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" ;;
39256 "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" ;;
39257 "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" ;;
39258 "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" ;;
39259 "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" ;;
39260 "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" ;;
39261 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39262 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39263 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39264 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39265 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39267 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39268 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39269 { (exit 1); exit 1; }; };;
39274 # If the user did not use the arguments to specify the items to instantiate,
39275 # then the envvar interface is used. Set only those that are not.
39276 # We use the long form for the default assignment because of an extremely
39277 # bizarre bug on SunOS 4.1.3.
39278 if $ac_need_defaults; then
39279 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39280 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39281 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39284 # Have a temporary directory for convenience. Make it in the build tree
39285 # simply because there is no reason against having it here, and in addition,
39286 # creating and moving files from /tmp can sometimes cause problems.
39287 # Hook for its removal unless debugging.
39288 # Note that there is a small window in which the directory will not be cleaned:
39289 # after its creation but before its name has been assigned to `$tmp'.
39293 trap 'exit_status=$?
39294 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39296 trap '{ (exit 1); exit 1; }' 1 2 13 15
39298 # Create a (secure) tmp directory for tmp files.
39301 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39302 test -n "$tmp" && test -d "$tmp"
39305 tmp=./conf$$-$RANDOM
39306 (umask 077 && mkdir "$tmp")
39309 echo "$me: cannot create a temporary directory in ." >&2
39310 { (exit 1); exit 1; }
39314 # Set up the sed scripts for CONFIG_FILES section.
39317 # No need to generate the scripts if there are no CONFIG_FILES.
39318 # This happens for instance when ./config.status config.h
39319 if test -n "$CONFIG_FILES"; then
39326 for ac_last_try in false false false false false :; do
39327 cat >conf$$subs.sed <<_ACEOF
39328 SHELL!$SHELL$ac_delim
39329 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39330 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39331 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39332 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39333 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39334 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39335 exec_prefix!$exec_prefix$ac_delim
39336 prefix!$prefix$ac_delim
39337 program_transform_name!$program_transform_name$ac_delim
39338 bindir!$bindir$ac_delim
39339 sbindir!$sbindir$ac_delim
39340 libexecdir!$libexecdir$ac_delim
39341 datarootdir!$datarootdir$ac_delim
39342 datadir!$datadir$ac_delim
39343 sysconfdir!$sysconfdir$ac_delim
39344 sharedstatedir!$sharedstatedir$ac_delim
39345 localstatedir!$localstatedir$ac_delim
39346 includedir!$includedir$ac_delim
39347 oldincludedir!$oldincludedir$ac_delim
39348 docdir!$docdir$ac_delim
39349 infodir!$infodir$ac_delim
39350 htmldir!$htmldir$ac_delim
39351 dvidir!$dvidir$ac_delim
39352 pdfdir!$pdfdir$ac_delim
39353 psdir!$psdir$ac_delim
39354 libdir!$libdir$ac_delim
39355 localedir!$localedir$ac_delim
39356 mandir!$mandir$ac_delim
39357 DEFS!$DEFS$ac_delim
39358 ECHO_C!$ECHO_C$ac_delim
39359 ECHO_N!$ECHO_N$ac_delim
39360 ECHO_T!$ECHO_T$ac_delim
39361 LIBS!$LIBS$ac_delim
39362 build_alias!$build_alias$ac_delim
39363 host_alias!$host_alias$ac_delim
39364 target_alias!$target_alias$ac_delim
39365 build!$build$ac_delim
39366 build_cpu!$build_cpu$ac_delim
39367 build_vendor!$build_vendor$ac_delim
39368 build_os!$build_os$ac_delim
39369 host!$host$ac_delim
39370 host_cpu!$host_cpu$ac_delim
39371 host_vendor!$host_vendor$ac_delim
39372 host_os!$host_os$ac_delim
39373 target!$target$ac_delim
39374 target_cpu!$target_cpu$ac_delim
39375 target_vendor!$target_vendor$ac_delim
39376 target_os!$target_os$ac_delim
39377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39379 INSTALL_DATA!$INSTALL_DATA$ac_delim
39380 CYGPATH_W!$CYGPATH_W$ac_delim
39381 PACKAGE!$PACKAGE$ac_delim
39382 VERSION!$VERSION$ac_delim
39383 ACLOCAL!$ACLOCAL$ac_delim
39384 AUTOCONF!$AUTOCONF$ac_delim
39385 AUTOMAKE!$AUTOMAKE$ac_delim
39386 AUTOHEADER!$AUTOHEADER$ac_delim
39387 MAKEINFO!$MAKEINFO$ac_delim
39388 install_sh!$install_sh$ac_delim
39389 STRIP!$STRIP$ac_delim
39390 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39391 mkdir_p!$mkdir_p$ac_delim
39393 SET_MAKE!$SET_MAKE$ac_delim
39394 am__leading_dot!$am__leading_dot$ac_delim
39395 AMTAR!$AMTAR$ac_delim
39396 am__tar!$am__tar$ac_delim
39397 am__untar!$am__untar$ac_delim
39398 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39399 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39400 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39401 top_builddir!$top_builddir$ac_delim
39402 ldap_subdir!$ldap_subdir$ac_delim
39405 CFLAGS!$CFLAGS$ac_delim
39406 LDFLAGS!$LDFLAGS$ac_delim
39407 CPPFLAGS!$CPPFLAGS$ac_delim
39408 ac_ct_CC!$ac_ct_CC$ac_delim
39409 EXEEXT!$EXEEXT$ac_delim
39410 OBJEXT!$OBJEXT$ac_delim
39411 DEPDIR!$DEPDIR$ac_delim
39412 am__include!$am__include$ac_delim
39413 am__quote!$am__quote$ac_delim
39414 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39415 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39416 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39417 CCDEPMODE!$CCDEPMODE$ac_delim
39418 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39419 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39420 GREP!$GREP$ac_delim
39421 EGREP!$EGREP$ac_delim
39422 LN_S!$LN_S$ac_delim
39423 ECHO!$ECHO$ac_delim
39424 RANLIB!$RANLIB$ac_delim
39427 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39429 elif $ac_last_try; then
39430 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39432 { (exit 1); exit 1; }; }
39434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39438 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39439 if test -n "$ac_eof"; then
39440 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39441 ac_eof=`expr $ac_eof + 1`
39444 cat >>$CONFIG_STATUS <<_ACEOF
39445 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39450 s/^/s,@/; s/!/@,|#_!!_#|/
39453 s/'"$ac_delim"'$/,g/; t
39455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39456 ' >>$CONFIG_STATUS <conf$$subs.sed
39457 rm -f conf$$subs.sed
39458 cat >>$CONFIG_STATUS <<_ACEOF
39464 for ac_last_try in false false false false false :; do
39465 cat >conf$$subs.sed <<_ACEOF
39466 DLLTOOL!$DLLTOOL$ac_delim
39468 OBJDUMP!$OBJDUMP$ac_delim
39470 LIBTOOL!$LIBTOOL$ac_delim
39471 PERLBIN!$PERLBIN$ac_delim
39472 OL_MKDEP!$OL_MKDEP$ac_delim
39473 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39474 LTSTATIC!$LTSTATIC$ac_delim
39475 MYSQL!$MYSQL$ac_delim
39476 LIBOBJS!$LIBOBJS$ac_delim
39477 LIBSRCS!$LIBSRCS$ac_delim
39478 PLAT!$PLAT$ac_delim
39479 WITH_SASL!$WITH_SASL$ac_delim
39480 WITH_TLS!$WITH_TLS$ac_delim
39481 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39482 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39483 BUILD_THREAD!$BUILD_THREAD$ac_delim
39484 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39485 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39486 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39487 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39488 BUILD_BDB!$BUILD_BDB$ac_delim
39489 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39490 BUILD_HDB!$BUILD_HDB$ac_delim
39491 BUILD_LDAP!$BUILD_LDAP$ac_delim
39492 BUILD_META!$BUILD_META$ac_delim
39493 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39494 BUILD_NDB!$BUILD_NDB$ac_delim
39495 BUILD_NULL!$BUILD_NULL$ac_delim
39496 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39497 BUILD_RELAY!$BUILD_RELAY$ac_delim
39498 BUILD_PERL!$BUILD_PERL$ac_delim
39499 BUILD_SHELL!$BUILD_SHELL$ac_delim
39500 BUILD_SOCK!$BUILD_SOCK$ac_delim
39501 BUILD_SQL!$BUILD_SQL$ac_delim
39502 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39503 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39504 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39505 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39506 BUILD_DDS!$BUILD_DDS$ac_delim
39507 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39508 BUILD_DEREF!$BUILD_DEREF$ac_delim
39509 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39510 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39511 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39512 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39513 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39514 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39515 BUILD_REFINT!$BUILD_REFINT$ac_delim
39516 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39517 BUILD_RWM!$BUILD_RWM$ac_delim
39518 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39519 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39520 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39521 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39522 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39523 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39524 LDAP_LIBS!$LDAP_LIBS$ac_delim
39525 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39526 BDB_LIBS!$BDB_LIBS$ac_delim
39527 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39528 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39529 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39530 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39531 WRAP_LIBS!$WRAP_LIBS$ac_delim
39532 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39533 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39534 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39535 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39536 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39537 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39538 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39539 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39540 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39541 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39542 KRB4_LIBS!$KRB4_LIBS$ac_delim
39543 KRB5_LIBS!$KRB5_LIBS$ac_delim
39544 SASL_LIBS!$SASL_LIBS$ac_delim
39545 TLS_LIBS!$TLS_LIBS$ac_delim
39546 MODULES_LIBS!$MODULES_LIBS$ac_delim
39547 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39548 LIBSLAPI!$LIBSLAPI$ac_delim
39549 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39550 AUTH_LIBS!$AUTH_LIBS$ac_delim
39551 ICU_LIBS!$ICU_LIBS$ac_delim
39552 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39553 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39554 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39555 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39556 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39557 LTLIBOBJS!$LTLIBOBJS$ac_delim
39560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39562 elif $ac_last_try; then
39563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39565 { (exit 1); exit 1; }; }
39567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39571 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39572 if test -n "$ac_eof"; then
39573 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39574 ac_eof=`expr $ac_eof + 1`
39577 cat >>$CONFIG_STATUS <<_ACEOF
39578 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39583 s/^/s,@/; s/!/@,|#_!!_#|/
39586 s/'"$ac_delim"'$/,g/; t
39588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39589 ' >>$CONFIG_STATUS <conf$$subs.sed
39590 rm -f conf$$subs.sed
39591 cat >>$CONFIG_STATUS <<_ACEOF
39598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39600 # trailing colons and then remove the whole line if VPATH becomes empty
39601 # (actually we leave an empty line to preserve line numbers).
39602 if test "x$srcdir" = x.; then
39603 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39604 s/:*\$(srcdir):*/:/
39605 s/:*\${srcdir}:*/:/
39607 s/^\([^=]*=[ ]*\):*/\1/
39613 cat >>$CONFIG_STATUS <<\_ACEOF
39614 fi # test -n "$CONFIG_FILES"
39617 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39620 :[FHLC]) ac_mode=$ac_tag; continue;;
39622 case $ac_mode$ac_tag in
39624 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39625 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39626 { (exit 1); exit 1; }; };;
39627 :[FH]-) ac_tag=-:-;;
39628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39645 -) ac_f="$tmp/stdin";;
39646 *) # Look for the file first in the build tree, then in the source tree
39647 # (if the path is not absolute). The absolute path cannot be DOS-style,
39648 # because $ac_f cannot contain `:'.
39652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39654 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39655 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39656 { (exit 1); exit 1; }; };;
39658 ac_file_inputs="$ac_file_inputs $ac_f"
39661 # Let's still pretend it is `configure' which instantiates (i.e., don't
39662 # use $as_me), people would be surprised to read:
39663 # /* config.h. Generated by config.status. */
39664 configure_input="Generated from "`IFS=:
39665 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39666 if test x"$ac_file" != x-; then
39667 configure_input="$ac_file. $configure_input"
39668 { echo "$as_me:$LINENO: creating $ac_file" >&5
39669 echo "$as_me: creating $ac_file" >&6;}
39673 *:-:* | *:-) cat >"$tmp/stdin";;
39678 ac_dir=`$as_dirname -- "$ac_file" ||
39679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39680 X"$ac_file" : 'X\(//\)[^/]' \| \
39681 X"$ac_file" : 'X\(//\)$' \| \
39682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39688 /^X\(\/\/\)[^/].*/{
39703 -*) as_dir=./$as_dir;;
39705 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39709 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39710 *) as_qdir=$as_dir;;
39712 as_dirs="'$as_qdir' $as_dirs"
39713 as_dir=`$as_dirname -- "$as_dir" ||
39714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39715 X"$as_dir" : 'X\(//\)[^/]' \| \
39716 X"$as_dir" : 'X\(//\)$' \| \
39717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39723 /^X\(\/\/\)[^/].*/{
39736 test -d "$as_dir" && break
39738 test -z "$as_dirs" || eval "mkdir $as_dirs"
39739 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39740 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39741 { (exit 1); exit 1; }; }; }
39745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39748 # A ".." for each directory in $ac_dir_suffix.
39749 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39750 case $ac_top_builddir_sub in
39751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39755 ac_abs_top_builddir=$ac_pwd
39756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39757 # for backward compatibility:
39758 ac_top_builddir=$ac_top_build_prefix
39761 .) # We are building in place.
39763 ac_top_srcdir=$ac_top_builddir_sub
39764 ac_abs_top_srcdir=$ac_pwd ;;
39765 [\\/]* | ?:[\\/]* ) # Absolute name.
39766 ac_srcdir=$srcdir$ac_dir_suffix;
39767 ac_top_srcdir=$srcdir
39768 ac_abs_top_srcdir=$srcdir ;;
39769 *) # Relative name.
39770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39771 ac_top_srcdir=$ac_top_build_prefix$srcdir
39772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39789 cat >>$CONFIG_STATUS <<\_ACEOF
39790 # If the template does not know about datarootdir, expand it.
39791 # FIXME: This hack should be removed a few years after 2.60.
39792 ac_datarootdir_hack=; ac_datarootdir_seen=
39794 case `sed -n '/datarootdir/ {
39803 ' $ac_file_inputs` in
39804 *datarootdir*) ac_datarootdir_seen=yes;;
39805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39806 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39807 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39809 cat >>$CONFIG_STATUS <<_ACEOF
39810 ac_datarootdir_hack='
39811 s&@datadir@&$datadir&g
39812 s&@docdir@&$docdir&g
39813 s&@infodir@&$infodir&g
39814 s&@localedir@&$localedir&g
39815 s&@mandir@&$mandir&g
39816 s&\\\${datarootdir}&$datarootdir&g' ;;
39820 # Neutralize VPATH when `$srcdir' = `.'.
39821 # Shell code in configure.ac might set extrasub.
39822 # FIXME: do we really want to maintain this feature?
39823 cat >>$CONFIG_STATUS <<_ACEOF
39827 cat >>$CONFIG_STATUS <<\_ACEOF
39829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39830 s&@configure_input@&$configure_input&;t t
39831 s&@top_builddir@&$ac_top_builddir_sub&;t t
39832 s&@srcdir@&$ac_srcdir&;t t
39833 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39834 s&@top_srcdir@&$ac_top_srcdir&;t t
39835 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39836 s&@builddir@&$ac_builddir&;t t
39837 s&@abs_builddir@&$ac_abs_builddir&;t t
39838 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39839 s&@INSTALL@&$ac_INSTALL&;t t
39840 $ac_datarootdir_hack
39841 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39846 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39847 which seems to be undefined. Please make sure it is defined." >&5
39848 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39849 which seems to be undefined. Please make sure it is defined." >&2;}
39853 -) cat "$tmp/out"; rm -f "$tmp/out";;
39854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39863 # Transform confdefs.h into a sed script `conftest.defines', that
39864 # substitutes the proper values into config.h.in to produce config.h.
39865 rm -f conftest.defines conftest.tail
39866 # First, append a space to every undef/define line, to ease matching.
39867 echo 's/$/ /' >conftest.defines
39868 # Then, protect against being on the right side of a sed subst, or in
39869 # an unquoted here document, in config.status. If some macros were
39870 # called several times there might be several #defines for the same
39871 # symbol, which is useless. But do not sort them, since the last
39872 # AC_DEFINE must be honored.
39873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39874 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39875 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39876 # PARAMS is the parameter list in the macro definition--in most cases, it's
39877 # just an empty string.
39878 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39879 ac_dB='\\)[ (].*,\\1define\\2'
39887 s/^[ ]*#[ ]*define[ ][ ]*//
39892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39894 ' >>conftest.defines
39896 # Remove the space that was appended to ease matching.
39897 # Then replace #undef with comments. This is necessary, for
39898 # example, in the case of _POSIX_SOURCE, which is predefined and required
39899 # on some systems where configure will not decide to define it.
39900 # (The regexp can be short, since the line contains either #define or #undef.)
39902 s,^[ #]*u.*,/* & */,' >>conftest.defines
39904 # Break up conftest.defines:
39905 ac_max_sed_lines=50
39907 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39908 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39909 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39911 ac_in='$ac_file_inputs'
39912 ac_out='"$tmp/out1"'
39913 ac_nxt='"$tmp/out2"'
39917 # Write a here document:
39918 cat >>$CONFIG_STATUS <<_ACEOF
39919 # First, check the format of the line:
39920 cat >"\$tmp/defines.sed" <<\\CEOF
39921 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39922 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39926 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39929 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39930 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39931 grep . conftest.tail >/dev/null || break
39932 rm -f conftest.defines
39933 mv conftest.tail conftest.defines
39935 rm -f conftest.defines conftest.tail
39937 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39938 cat >>$CONFIG_STATUS <<\_ACEOF
39939 if test x"$ac_file" != x-; then
39940 echo "/* $configure_input */" >"$tmp/config.h"
39941 cat "$ac_result" >>"$tmp/config.h"
39942 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39944 echo "$as_me: $ac_file is unchanged" >&6;}
39947 mv "$tmp/config.h" $ac_file
39950 echo "/* $configure_input */"
39954 # Compute $ac_file's index in $config_headers.
39956 for _am_header in $config_headers :; do
39957 case $_am_header in
39958 $ac_file | $ac_file:* )
39961 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39964 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39965 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39966 X$ac_file : 'X\(//\)[^/]' \| \
39967 X$ac_file : 'X\(//\)$' \| \
39968 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39974 /^X\(\/\/\)[^/].*/{
39986 s/.*/./; q'`/stamp-h$_am_stamp_count
39989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39990 echo "$as_me: executing $ac_file commands" >&6;}
39995 case $ac_file$ac_mode in
39996 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39997 # Strip MF so we end up with the name of the file.
39998 mf=`echo "$mf" | sed -e 's/:.*$//'`
39999 # Check whether this is an Automake generated Makefile or not.
40000 # We used to match only the files named `Makefile.in', but
40001 # some people rename them; so instead we look at the file content.
40002 # Grep'ing the first line is not enough: some people post-process
40003 # each Makefile.in and add a new line on top of each file to say so.
40004 # So let's grep whole file.
40005 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40006 dirpart=`$as_dirname -- "$mf" ||
40007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40008 X"$mf" : 'X\(//\)[^/]' \| \
40009 X"$mf" : 'X\(//\)$' \| \
40010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40016 /^X\(\/\/\)[^/].*/{
40032 # Extract the definition of DEPDIR, am__include, and am__quote
40033 # from the Makefile without running `make'.
40034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40035 test -z "$DEPDIR" && continue
40036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40037 test -z "am__include" && continue
40038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40039 # When using ansi2knr, U may be empty or an underscore; expand it
40040 U=`sed -n 's/^U = //p' < "$mf"`
40041 # Find all dependency output files, they are included files with
40042 # $(DEPDIR) in their names. We invoke sed twice because it is the
40043 # simplest approach to changing $(DEPDIR) to its actual value in the
40045 for file in `sed -n "
40046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40048 # Make sure the directory exists.
40049 test -f "$dirpart/$file" && continue
40050 fdir=`$as_dirname -- "$file" ||
40051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40052 X"$file" : 'X\(//\)[^/]' \| \
40053 X"$file" : 'X\(//\)$' \| \
40054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40060 /^X\(\/\/\)[^/].*/{
40073 { as_dir=$dirpart/$fdir
40075 -*) as_dir=./$as_dir;;
40077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40081 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40082 *) as_qdir=$as_dir;;
40084 as_dirs="'$as_qdir' $as_dirs"
40085 as_dir=`$as_dirname -- "$as_dir" ||
40086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40087 X"$as_dir" : 'X\(//\)[^/]' \| \
40088 X"$as_dir" : 'X\(//\)$' \| \
40089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40095 /^X\(\/\/\)[^/].*/{
40108 test -d "$as_dir" && break
40110 test -z "$as_dirs" || eval "mkdir $as_dirs"
40111 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40113 { (exit 1); exit 1; }; }; }
40114 # echo "creating $dirpart/$file"
40115 echo '# dummy' > "$dirpart/$file"
40122 BACKENDSC="servers/slapd/backends.c"
40123 echo "Making $BACKENDSC"
40125 cat > $BACKENDSC << ENDX
40126 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40128 * Copyright 1998-2010 The OpenLDAP Foundation.
40129 * All rights reserved.
40131 * Redistribution and use in source and binary forms, with or without
40132 * modification, are permitted only as authorized by the OpenLDAP
40135 * A copy of this license is available in the file LICENSE in the
40136 * top-level directory of the distribution or, alternatively, at
40137 * <http://www.OpenLDAP.org/license.html>.
40139 /* This file is automatically generated by configure; please do not edit. */
40141 #include "portable.h"
40145 if test "${STATIC_BACKENDS}"; then
40146 for b in config ${STATIC_BACKENDS}; do
40147 bb=`echo "${b}" | sed -e 's/back-//'`
40148 cat >> $BACKENDSC << ENDX
40149 extern BI_init ${bb}_back_initialize;
40153 cat >> $BACKENDSC << ENDX
40155 BackendInfo slap_binfo[] = {
40158 for b in config ${STATIC_BACKENDS}; do
40159 bb=`echo "${b}" | sed -e 's/back-//'`
40160 echo " Add ${bb} ..."
40161 cat >> $BACKENDSC << ENDX
40162 { "${bb}", ${bb}_back_initialize },
40166 cat >> $BACKENDSC << ENDX
40170 /* end of generated file */
40173 OVERLAYSC="servers/slapd/overlays/statover.c"
40174 echo "Making $OVERLAYSC"
40176 cat > $OVERLAYSC << ENDX
40177 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40179 * Copyright 1998-2010 The OpenLDAP Foundation.
40180 * All rights reserved.
40182 * Redistribution and use in source and binary forms, with or without
40183 * modification, are permitted only as authorized by the OpenLDAP
40186 * A copy of this license is available in the file LICENSE in the
40187 * top-level directory of the distribution or, alternatively, at
40188 * <http://www.OpenLDAP.org/license.html>.
40190 /* This file is automatically generated by configure; please do not edit. */
40192 #include "portable.h"
40196 if test "${STATIC_OVERLAYS}"; then
40197 for o in ${STATIC_OVERLAYS}; do
40198 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40199 cat >> $OVERLAYSC << ENDX
40200 extern OV_init ${oo}_initialize;
40205 cat >> $OVERLAYSC << ENDX
40207 OverlayInit slap_oinfo[] = {
40210 if test "${STATIC_OVERLAYS}"; then
40211 for o in ${STATIC_OVERLAYS}; do
40212 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40213 echo " Add ${oo} ..."
40214 cat >> $OVERLAYSC << ENDX
40215 { "${oo}", ${oo}_initialize },
40220 cat >> $OVERLAYSC << ENDX
40224 /* end of generated file */
40227 if test "${ol_cv_mkdep}" = no; then
40228 echo '(Do not "make depend"; we do not know how to build dependencies)'
40230 echo 'Please run "make depend" to build dependencies'
40238 { (exit 0); exit 0; }
40240 chmod +x $CONFIG_STATUS
40241 ac_clean_files=$ac_clean_files_save
40244 # configure is writing to config.log, and then calls config.status.
40245 # config.status does its own redirection, appending to config.log.
40246 # Unfortunately, on DOS this fails, as config.log is still kept open
40247 # by configure, so config.status won't be able to write to it; its
40248 # output is simply discarded. So we exec the FD to /dev/null,
40249 # effectively closing config.log, so it can be properly (re)opened and
40250 # appended to by config.status. When coming back to configure, we
40251 # need to make the FD available again.
40252 if test "$no_create" != yes; then
40254 ac_config_status_args=
40255 test "$silent" = yes &&
40256 ac_config_status_args="$ac_config_status_args --quiet"
40258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40261 # would make configure fail if this is the last instruction.
40262 $ac_cs_success || { (exit 1); exit 1; }