2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.24 2009/07/06 19:22:51 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
834 INSTALL_STRIP_PROGRAM
844 OPENLDAP_RELEASE_DATE
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
960 ac_precious_vars='build_alias
971 # Initialize some variables set by options.
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
983 program_transform_name=s,x,x,
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1059 -datadir | --datadir | --datadi | --datad)
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1071 -disable-* | --disable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078 eval enable_$ac_feature=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1097 eval enable_$ac_feature=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1261 -site=* | --site=* | --sit=*)
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1288 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294 eval with_$ac_package=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1303 eval with_$ac_package=no ;;
1306 # Obsolete; use --with-x.
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1354 # Be sure to have absolute directory names.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366 { (exit 1); exit 1; }; }
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1374 target=$target_alias
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 { echo "$as_me: error: Working directory cannot be determined" >&2
1397 { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 { echo "$as_me: error: pwd does not report name of working directory" >&2
1400 { (exit 1); exit 1; }; }
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$0" : 'X\(//\)[^/]' \| \
1410 X"$0" : 'X\(//\)$' \| \
1411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440 { (exit 1); exit 1; }; }
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445 { (exit 1); exit 1; }; }
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 # Report the --help message.
1467 if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1471 \`configure' configures this package to adapt to many kinds of systems.
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE. See below for descriptions of some of the useful variables.
1478 Defaults for the options are specified in brackets.
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491 Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1502 For better control, use the options below.
1504 Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1540 if test -n "$ac_init_help"; then
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-debug enable debugging no|yes|traditional [yes]
1548 --enable-dynamic enable linking built binaries with dynamic libs [no]
1549 --enable-syslog enable syslog support [auto]
1550 --enable-proctitle enable proctitle support [yes]
1551 --enable-ipv6 enable IPv6 support [auto]
1552 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1554 SLAPD (Standalone LDAP Daemon) Options:
1555 --enable-slapd enable building slapd [yes]
1556 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1557 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1558 --enable-cleartext enable cleartext passwords [yes]
1559 --enable-crypt enable crypt(3) passwords [no]
1560 --enable-lmpasswd enable LAN Manager passwords [no]
1561 --enable-spasswd enable (Cyrus) SASL password verification [no]
1562 --enable-modules enable dynamic module support [no]
1563 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1564 --enable-rlookups enable reverse lookups of client hostnames [no]
1565 --enable-slapi enable SLAPI support (experimental) [no]
1566 --enable-slp enable SLPv2 support [no]
1567 --enable-wrappers enable tcp wrapper support [no]
1569 SLAPD Backend Options:
1570 --enable-backends enable all available backends no|yes|mod
1571 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1572 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1573 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1574 --enable-ldap enable ldap backend no|yes|mod [no]
1575 --enable-meta enable metadirectory backend no|yes|mod [no]
1576 --enable-monitor enable monitor backend no|yes|mod [yes]
1577 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1578 --enable-null enable null backend no|yes|mod [no]
1579 --enable-passwd enable passwd backend no|yes|mod [no]
1580 --enable-perl enable perl backend no|yes|mod [no]
1581 --enable-relay enable relay backend no|yes|mod [yes]
1582 --enable-shell enable shell backend no|yes|mod [no]
1583 --enable-sock enable sock backend no|yes|mod [no]
1584 --enable-sql enable sql backend no|yes|mod [no]
1586 SLAPD Overlay Options:
1587 --enable-overlays enable all available overlays no|yes|mod
1588 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1589 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1590 --enable-collect Collect overlay no|yes|mod [no]
1591 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1592 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1593 --enable-deref Dereference overlay no|yes|mod [no]
1594 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1595 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1596 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1597 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1598 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1599 --enable-refint Referential Integrity overlay no|yes|mod [no]
1600 --enable-retcode Return Code testing overlay no|yes|mod [no]
1601 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1602 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1603 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1604 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1605 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1606 --enable-valsort Value Sorting overlay no|yes|mod [no]
1608 Library Generation & Linking Options
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-dependency-tracking speeds up one-time build
1614 --enable-dependency-tracking do not reject slow dependency extractors
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1620 --with-subdir=DIR change default subdirectory used for installs
1621 --with-cyrus-sasl with Cyrus SASL support [auto]
1622 --with-fetch with fetch(3) URL support [auto]
1623 --with-threads with threads [auto]
1624 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1625 --with-yielding-select with implicitly yielding select [auto]
1626 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1627 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1629 --with-pic try to use only PIC/non-PIC objects [default=use
1631 --with-tags[=TAGS] include additional configurations [automatic]
1633 See INSTALL file for further details.
1635 Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
1640 LIBS libraries to pass to the linker, e.g. -l<library>
1641 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1642 you have headers in a nonstandard directory <include dir>
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" || continue
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1709 generated by GNU Autoconf 2.61
1711 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1716 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1717 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.61. Invocation command line was
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1751 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 echo "PATH: $as_dir"
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_must_keep_next=false
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1797 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815 -* ) ac_must_keep_next=true ;;
1818 ac_configure_args="$ac_configure_args '$ac_arg'"
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log. We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1842 # The following way of writing the cache mishandles newlines in values,
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1849 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1850 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853 _ | IFS | as_nl) ;; #(
1854 *) $as_unset $ac_var ;;
1859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860 *${as_nl}ac_space=\ *)
1862 "s/'\''/'\''\\\\'\'''\''/g;
1863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1874 ## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##
1879 for ac_var in $ac_subst_vars
1881 eval ac_val=\$$ac_var
1883 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 echo "$ac_var='\''$ac_val'\''"
1889 if test -n "$ac_subst_files"; then
1891 ## ------------------- ##
1892 ## File substitutions. ##
1893 ## ------------------- ##
1896 for ac_var in $ac_subst_files
1898 eval ac_val=\$$ac_var
1900 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 echo "$ac_var='\''$ac_val'\''"
1907 if test -s confdefs.h; then
1917 test "$ac_signal" != 0 &&
1918 echo "$as_me: caught signal $ac_signal"
1919 echo "$as_me: exit $exit_status"
1921 rm -f core *.core core.conftest.* &&
1922 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925 for ac_signal in 1 2 13 15; do
1926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931 rm -f -r conftest* confdefs.h
1933 # Predefined preprocessor variables.
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 # Let the site file select an alternate cache file if it wants to.
1961 # Prefer explicitly selected file to automatically selected ones.
1962 if test -n "$CONFIG_SITE"; then
1963 set x "$CONFIG_SITE"
1964 elif test "x$prefix" != xNONE; then
1965 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1967 set x "$ac_default_prefix/share/config.site" \
1968 "$ac_default_prefix/etc/config.site"
1973 if test -r "$ac_site_file"; then
1974 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1975 echo "$as_me: loading site script $ac_site_file" >&6;}
1976 sed 's/^/| /' "$ac_site_file" >&5
1982 # Check that the precious variables saved in the cache have kept the same
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987 eval ac_new_set=\$ac_env_${ac_var}_set
1988 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989 eval ac_new_val=\$ac_env_${ac_var}_value
1990 case $ac_old_set,$ac_new_set in
1992 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1996 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
2001 if test "x$ac_old_val" != "x$ac_new_val"; then
2002 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2005 echo "$as_me: former value: $ac_old_val" >&2;}
2006 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2007 echo "$as_me: current value: $ac_new_val" >&2;}
2008 ac_cache_corrupted=:
2011 # Pass precious variables to config.status.
2012 if test "$ac_new_set" = set; then
2014 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 *) ac_arg=$ac_var=$ac_new_val ;;
2017 case " $ac_configure_args " in
2018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2019 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023 if $ac_cache_corrupted; then
2024 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028 { (exit 1); exit 1; }; }
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 for ac_dir in build "$srcdir"/build; do
2082 if test -f "$ac_dir/install-sh"; then
2084 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 elif test -f "$ac_dir/install.sh"; then
2088 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 elif test -f "$ac_dir/shtool"; then
2092 ac_install_sh="$ac_aux_dir/shtool install -c"
2096 if test -z "$ac_aux_dir"; then
2097 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2098 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2099 { (exit 1); exit 1; }; }
2102 # These three variables are undocumented and unsupported,
2103 # and are intended to be withdrawn in a future Autoconf release.
2104 # They can cause serious problems if a builder's source tree is in a directory
2105 # whose full name contains unusual characters.
2106 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2107 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2108 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111 eval `$ac_aux_dir/version.sh`
2112 if test -z "$OL_STRING"; then
2113 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2114 echo "$as_me: error: could not determine version" >&2;}
2115 { (exit 1); exit 1; }; }
2118 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2119 ac_cv_shtool="$ac_aux_dir/shtool"
2121 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2122 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2123 { (exit 1); exit 1; }; }
2126 SHTOOL="$ac_cv_shtool"
2130 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2131 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 if test -d $ac_aux_dir/CVS; then
2136 OPENLDAP_CVS="(from CVS sources) "
2139 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158 { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171 { (exit 1); exit 1; }; };;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test "x$host_alias" = x; then
2193 ac_cv_host=$ac_cv_build
2195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198 { (exit 1); exit 1; }; }
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208 { (exit 1); exit 1; }; };;
2211 ac_save_IFS=$IFS; IFS='-'
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test "x$target_alias" = x; then
2230 ac_cv_target=$ac_cv_host
2232 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235 { (exit 1); exit 1; }; }
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245 { (exit 1); exit 1; }; };;
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264 test "$program_prefix$program_suffix$program_transform_name" = \
2266 program_prefix=${target_alias}-
2268 am__api_version="1.9"
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2295 ./ | .// | /cC/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328 if test "${ac_cv_path_install+set}" = set; then
2329 INSTALL=$ac_cv_path_install
2331 # As a last resort, use the slow shell script. Don't cache a
2332 # value for INSTALL within a source directory, because that will
2333 # break other packages using the cache if that directory is
2334 # removed, or if the value is a relative name.
2335 INSTALL=$ac_install_sh
2338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6; }
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2350 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 echo timestamp > conftest.file
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2360 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2361 if test "$*" = "X"; then
2363 set X `ls -t $srcdir/configure conftest.file`
2366 if test "$*" != "X $srcdir/configure conftest.file" \
2367 && test "$*" != "X conftest.file $srcdir/configure"; then
2369 # If neither matched, then we have a broken ls. This can happen
2370 # if, for instance, CONFIG_SHELL is bash and it inherits a
2371 # broken ls alias from the environment. This has actually
2372 # happened. Such a system could not be considered "sane".
2373 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2374 alias in your environment" >&5
2375 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" >&2;}
2377 { (exit 1); exit 1; }; }
2380 test "$2" = conftest.file
2386 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2387 Check your system clock" >&5
2388 echo "$as_me: error: newly created file is older than distributed files!
2389 Check your system clock" >&2;}
2390 { (exit 1); exit 1; }; }
2392 { echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $. echo might interpret backslashes.
2400 # By default was `s,x,x', remove it if useless.
2401 cat <<\_ACEOF >conftest.sed
2402 s/[\\$]/&&/g;s/;s,x,x,$//
2404 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2410 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413 am_missing_run="$MISSING --run "
2416 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2417 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2421 # We used to keeping the `.' as first argument, in order to
2422 # allow $(mkdir_p) to be used without argument. As in
2423 # $(mkdir_p) $(somedir)
2424 # where $(somedir) is conditionally defined. However this is wrong
2426 # 1. if the package is installed by a user who cannot write `.'
2427 # make install will fail,
2428 # 2. the above comment should most certainly read
2429 # $(mkdir_p) $(DESTDIR)$(somedir)
2430 # so it does not work when $(somedir) is undefined and
2431 # $(DESTDIR) is not.
2432 # To support the latter case, we have to write
2433 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2434 # so the `.' trick is pointless.
2435 mkdir_p='mkdir -p --'
2437 # On NextStep and OpenStep, the `mkdir' command does not
2438 # recognize any option. It will interpret all options as
2439 # directories to create, and then abort because `.' already
2441 for d in ./-p ./--version;
2443 test -d $d && rmdir $d
2445 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2446 if test -f "$ac_aux_dir/mkinstalldirs"; then
2447 mkdir_p='$(mkinstalldirs)'
2449 mkdir_p='$(install_sh) -d'
2453 for ac_prog in gawk mawk nawk awk
2455 # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_AWK+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$AWK"; then
2463 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_AWK="$ac_prog"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test -n "$AWK"; then
2484 { echo "$as_me:$LINENO: result: $AWK" >&5
2485 echo "${ECHO_T}$AWK" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2492 test -n "$AWK" && break
2495 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2497 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.make <<\_ACEOF
2504 @echo '@@@%%%=$(MAKE)=@@@%%%'
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2509 eval ac_cv_prog_make_${ac_make}_set=yes;;
2511 eval ac_cv_prog_make_${ac_make}_set=no;;
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516 { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 SET_MAKE="MAKE=${MAKE-make}"
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2532 rmdir .tst 2>/dev/null
2534 # test to see if srcdir already configured
2535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2536 test -f $srcdir/config.status; then
2537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539 { (exit 1); exit 1; }; }
2542 # test whether we have cygpath
2543 if test -z "$CYGPATH_W"; then
2544 if (cygpath --version) >/dev/null 2>/dev/null; then
2545 CYGPATH_W='cygpath -w'
2552 # Define the identity of the package.
2557 # Some tools Automake needs.
2559 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2573 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2575 # Installed binaries are usually stripped using `strip' when the user
2576 # run `make install-strip'. However `strip' might not be the right
2577 # tool to use in cross-compilation environments, therefore Automake
2578 # will honor the `STRIP' environment variable to overrule this program.
2579 if test "$cross_compiling" != no; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}strip; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_STRIP+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$STRIP"; then
2589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 STRIP=$ac_cv_prog_STRIP
2609 if test -n "$STRIP"; then
2610 { echo "$as_me:$LINENO: result: $STRIP" >&5
2611 echo "${ECHO_T}$STRIP" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2619 if test -z "$ac_cv_prog_STRIP"; then
2621 # Extract the first word of "strip", so it can be a program name with args.
2622 set dummy strip; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_STRIP"; then
2629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_STRIP="strip"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649 if test -n "$ac_ct_STRIP"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2651 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2657 if test "x$ac_ct_STRIP" = x; then
2660 case $cross_compiling:$ac_tool_warned in
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: 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." >&2;}
2668 ac_tool_warned=yes ;;
2673 STRIP="$ac_cv_prog_STRIP"
2677 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2679 # We need awk for the "check" target. The system "awk" is bad on
2681 # Always define AMTAR for backward compatibility.
2683 AMTAR=${AMTAR-"${am_missing_run}tar"}
2685 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2691 cat >>confdefs.h <<_ACEOF
2692 #define OPENLDAP_PACKAGE "$PACKAGE"
2696 cat >>confdefs.h <<_ACEOF
2697 #define OPENLDAP_VERSION "$VERSION"
2702 cat >>confdefs.h <<_ACEOF
2703 #define LDAP_VENDOR_VERSION $OL_API_INC
2707 cat >>confdefs.h <<_ACEOF
2708 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2712 cat >>confdefs.h <<_ACEOF
2713 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2717 cat >>confdefs.h <<_ACEOF
2718 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2722 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2724 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2726 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2734 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2736 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2738 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741 { echo "$as_me:$LINENO: checking configure arguments" >&5
2742 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2747 ldap_subdir="/openldap"
2750 # Check whether --with-subdir was given.
2751 if test "${with_subdir+set}" = set; then
2752 withval=$with_subdir; case "$withval" in
2758 ldap_subdir="$withval"
2761 ldap_subdir="/$withval"
2768 # OpenLDAP --enable-debug
2770 # Check whether --enable-debug was given.
2771 if test "${enable_debug+set}" = set; then
2772 enableval=$enable_debug;
2774 for ol_val in no yes traditional ; do
2775 if test "$enableval" = "$ol_val" ; then
2779 if test "$ol_arg" = "invalid" ; then
2780 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2782 { (exit 1); exit 1; }; }
2784 ol_enable_debug="$ol_arg"
2790 # end --enable-debug
2791 # OpenLDAP --enable-dynamic
2793 # Check whether --enable-dynamic was given.
2794 if test "${enable_dynamic+set}" = set; then
2795 enableval=$enable_dynamic;
2797 for ol_val in auto yes no ; do
2798 if test "$enableval" = "$ol_val" ; then
2802 if test "$ol_arg" = "invalid" ; then
2803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2805 { (exit 1); exit 1; }; }
2807 ol_enable_dynamic="$ol_arg"
2810 ol_enable_dynamic=no
2813 # end --enable-dynamic
2814 # OpenLDAP --enable-syslog
2816 # Check whether --enable-syslog was given.
2817 if test "${enable_syslog+set}" = set; then
2818 enableval=$enable_syslog;
2820 for ol_val in auto yes no ; do
2821 if test "$enableval" = "$ol_val" ; then
2825 if test "$ol_arg" = "invalid" ; then
2826 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2828 { (exit 1); exit 1; }; }
2830 ol_enable_syslog="$ol_arg"
2833 ol_enable_syslog=auto
2836 # end --enable-syslog
2837 # OpenLDAP --enable-proctitle
2839 # Check whether --enable-proctitle was given.
2840 if test "${enable_proctitle+set}" = set; then
2841 enableval=$enable_proctitle;
2843 for ol_val in auto yes no ; do
2844 if test "$enableval" = "$ol_val" ; then
2848 if test "$ol_arg" = "invalid" ; then
2849 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2851 { (exit 1); exit 1; }; }
2853 ol_enable_proctitle="$ol_arg"
2856 ol_enable_proctitle=yes
2859 # end --enable-proctitle
2860 ol_enable_referrals=${ol_enable_referrals-no}
2861 # OpenLDAP --enable-ipv6
2863 # Check whether --enable-ipv6 was given.
2864 if test "${enable_ipv6+set}" = set; then
2865 enableval=$enable_ipv6;
2867 for ol_val in auto yes no ; do
2868 if test "$enableval" = "$ol_val" ; then
2872 if test "$ol_arg" = "invalid" ; then
2873 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2875 { (exit 1); exit 1; }; }
2877 ol_enable_ipv6="$ol_arg"
2884 # OpenLDAP --enable-local
2886 # Check whether --enable-local was given.
2887 if test "${enable_local+set}" = set; then
2888 enableval=$enable_local;
2890 for ol_val in auto yes no ; do
2891 if test "$enableval" = "$ol_val" ; then
2895 if test "$ol_arg" = "invalid" ; then
2896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2898 { (exit 1); exit 1; }; }
2900 ol_enable_local="$ol_arg"
2903 ol_enable_local=auto
2906 # end --enable-local
2908 # OpenLDAP --with-cyrus_sasl
2910 # Check whether --with-cyrus_sasl was given.
2911 if test "${with_cyrus_sasl+set}" = set; then
2912 withval=$with_cyrus_sasl;
2914 for ol_val in auto yes no ; do
2915 if test "$withval" = "$ol_val" ; then
2919 if test "$ol_arg" = "invalid" ; then
2920 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2921 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2922 { (exit 1); exit 1; }; }
2924 ol_with_cyrus_sasl="$ol_arg"
2927 ol_with_cyrus_sasl="auto"
2929 # end --with-cyrus_sasl
2931 # OpenLDAP --with-fetch
2933 # Check whether --with-fetch was given.
2934 if test "${with_fetch+set}" = set; then
2935 withval=$with_fetch;
2937 for ol_val in auto yes no ; do
2938 if test "$withval" = "$ol_val" ; then
2942 if test "$ol_arg" = "invalid" ; then
2943 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2944 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2945 { (exit 1); exit 1; }; }
2947 ol_with_fetch="$ol_arg"
2950 ol_with_fetch="auto"
2954 # OpenLDAP --with-threads
2956 # Check whether --with-threads was given.
2957 if test "${with_threads+set}" = set; then
2958 withval=$with_threads;
2960 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2961 if test "$withval" = "$ol_val" ; then
2965 if test "$ol_arg" = "invalid" ; then
2966 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2967 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2968 { (exit 1); exit 1; }; }
2970 ol_with_threads="$ol_arg"
2973 ol_with_threads="auto"
2975 # end --with-threads
2977 # OpenLDAP --with-tls
2979 # Check whether --with-tls was given.
2980 if test "${with_tls+set}" = set; then
2983 for ol_val in auto openssl gnutls yes no ; do
2984 if test "$withval" = "$ol_val" ; then
2988 if test "$ol_arg" = "invalid" ; then
2989 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2990 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2991 { (exit 1); exit 1; }; }
2993 ol_with_tls="$ol_arg"
3000 # OpenLDAP --with-yielding_select
3002 # Check whether --with-yielding_select was given.
3003 if test "${with_yielding_select+set}" = set; then
3004 withval=$with_yielding_select;
3006 for ol_val in auto yes no manual ; do
3007 if test "$withval" = "$ol_val" ; then
3011 if test "$ol_arg" = "invalid" ; then
3012 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3013 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3014 { (exit 1); exit 1; }; }
3016 ol_with_yielding_select="$ol_arg"
3019 ol_with_yielding_select="auto"
3021 # end --with-yielding_select
3023 # OpenLDAP --with-mp
3025 # Check whether --with-mp was given.
3026 if test "${with_mp+set}" = set; then
3029 for ol_val in auto longlong long bignum gmp yes no ; do
3030 if test "$withval" = "$ol_val" ; then
3034 if test "$ol_arg" = "invalid" ; then
3035 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3036 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3037 { (exit 1); exit 1; }; }
3039 ol_with_mp="$ol_arg"
3046 # OpenLDAP --with-odbc
3048 # Check whether --with-odbc was given.
3049 if test "${with_odbc+set}" = set; then
3052 for ol_val in auto iodbc unixodbc odbc32 ; do
3053 if test "$withval" = "$ol_val" ; then
3057 if test "$ol_arg" = "invalid" ; then
3058 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3059 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3060 { (exit 1); exit 1; }; }
3062 ol_with_odbc="$ol_arg"
3071 # Check whether --enable-xxslapdoptions was given.
3072 if test "${enable_xxslapdoptions+set}" = set; then
3073 enableval=$enable_xxslapdoptions;
3076 # OpenLDAP --enable-slapd
3078 # Check whether --enable-slapd was given.
3079 if test "${enable_slapd+set}" = set; then
3080 enableval=$enable_slapd;
3082 for ol_val in auto yes no ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_slapd="$ol_arg"
3098 # end --enable-slapd
3099 # OpenLDAP --enable-dynacl
3101 # Check whether --enable-dynacl was given.
3102 if test "${enable_dynacl+set}" = set; then
3103 enableval=$enable_dynacl;
3105 for ol_val in auto yes no ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_dynacl="$ol_arg"
3121 # end --enable-dynacl
3122 # OpenLDAP --enable-aci
3124 # Check whether --enable-aci was given.
3125 if test "${enable_aci+set}" = set; then
3126 enableval=$enable_aci;
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_aci="$ol_arg"
3145 # OpenLDAP --enable-cleartext
3147 # Check whether --enable-cleartext was given.
3148 if test "${enable_cleartext+set}" = set; then
3149 enableval=$enable_cleartext;
3151 for ol_val in auto yes no ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_cleartext="$ol_arg"
3164 ol_enable_cleartext=yes
3167 # end --enable-cleartext
3168 # OpenLDAP --enable-crypt
3170 # Check whether --enable-crypt was given.
3171 if test "${enable_crypt+set}" = set; then
3172 enableval=$enable_crypt;
3174 for ol_val in auto yes no ; do
3175 if test "$enableval" = "$ol_val" ; then
3179 if test "$ol_arg" = "invalid" ; then
3180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3182 { (exit 1); exit 1; }; }
3184 ol_enable_crypt="$ol_arg"
3190 # end --enable-crypt
3191 # OpenLDAP --enable-lmpasswd
3193 # Check whether --enable-lmpasswd was given.
3194 if test "${enable_lmpasswd+set}" = set; then
3195 enableval=$enable_lmpasswd;
3197 for ol_val in auto yes no ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_lmpasswd="$ol_arg"
3210 ol_enable_lmpasswd=no
3213 # end --enable-lmpasswd
3214 # OpenLDAP --enable-spasswd
3216 # Check whether --enable-spasswd was given.
3217 if test "${enable_spasswd+set}" = set; then
3218 enableval=$enable_spasswd;
3220 for ol_val in auto yes no ; do
3221 if test "$enableval" = "$ol_val" ; then
3225 if test "$ol_arg" = "invalid" ; then
3226 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3228 { (exit 1); exit 1; }; }
3230 ol_enable_spasswd="$ol_arg"
3233 ol_enable_spasswd=no
3236 # end --enable-spasswd
3237 # OpenLDAP --enable-modules
3239 # Check whether --enable-modules was given.
3240 if test "${enable_modules+set}" = set; then
3241 enableval=$enable_modules;
3243 for ol_val in auto yes no ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_modules="$ol_arg"
3256 ol_enable_modules=no
3259 # end --enable-modules
3260 # OpenLDAP --enable-rewrite
3262 # Check whether --enable-rewrite was given.
3263 if test "${enable_rewrite+set}" = set; then
3264 enableval=$enable_rewrite;
3266 for ol_val in auto yes no ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_rewrite="$ol_arg"
3279 ol_enable_rewrite=auto
3282 # end --enable-rewrite
3283 # OpenLDAP --enable-rlookups
3285 # Check whether --enable-rlookups was given.
3286 if test "${enable_rlookups+set}" = set; then
3287 enableval=$enable_rlookups;
3289 for ol_val in auto yes no ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_rlookups="$ol_arg"
3302 ol_enable_rlookups=no
3305 # end --enable-rlookups
3306 # OpenLDAP --enable-slapi
3308 # Check whether --enable-slapi was given.
3309 if test "${enable_slapi+set}" = set; then
3310 enableval=$enable_slapi;
3312 for ol_val in auto yes no ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_slapi="$ol_arg"
3328 # end --enable-slapi
3329 # OpenLDAP --enable-slp
3331 # Check whether --enable-slp was given.
3332 if test "${enable_slp+set}" = set; then
3333 enableval=$enable_slp;
3335 for ol_val in auto yes no ; do
3336 if test "$enableval" = "$ol_val" ; then
3340 if test "$ol_arg" = "invalid" ; then
3341 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3343 { (exit 1); exit 1; }; }
3345 ol_enable_slp="$ol_arg"
3352 # OpenLDAP --enable-wrappers
3354 # Check whether --enable-wrappers was given.
3355 if test "${enable_wrappers+set}" = set; then
3356 enableval=$enable_wrappers;
3358 for ol_val in auto yes no ; do
3359 if test "$enableval" = "$ol_val" ; then
3363 if test "$ol_arg" = "invalid" ; then
3364 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3366 { (exit 1); exit 1; }; }
3368 ol_enable_wrappers="$ol_arg"
3371 ol_enable_wrappers=no
3374 # end --enable-wrappers
3391 # Check whether --enable-xxslapbackends was given.
3392 if test "${enable_xxslapbackends+set}" = set; then
3393 enableval=$enable_xxslapbackends;
3397 # OpenLDAP --enable-backends
3399 # Check whether --enable-backends was given.
3400 if test "${enable_backends+set}" = set; then
3401 enableval=$enable_backends;
3403 for ol_val in no yes mod ; do
3404 if test "$enableval" = "$ol_val" ; then
3408 if test "$ol_arg" = "invalid" ; then
3409 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3410 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3411 { (exit 1); exit 1; }; }
3413 ol_enable_backends="$ol_arg"
3417 # end --enable-backends
3418 # OpenLDAP --enable-bdb
3420 # Check whether --enable-bdb was given.
3421 if test "${enable_bdb+set}" = set; then
3422 enableval=$enable_bdb;
3424 for ol_val in no yes mod ; do
3425 if test "$enableval" = "$ol_val" ; then
3429 if test "$ol_arg" = "invalid" ; then
3430 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3431 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3432 { (exit 1); exit 1; }; }
3434 ol_enable_bdb="$ol_arg"
3437 ol_enable_bdb=${ol_enable_backends:-yes}
3441 # OpenLDAP --enable-dnssrv
3443 # Check whether --enable-dnssrv was given.
3444 if test "${enable_dnssrv+set}" = set; then
3445 enableval=$enable_dnssrv;
3447 for ol_val in no yes mod ; do
3448 if test "$enableval" = "$ol_val" ; then
3452 if test "$ol_arg" = "invalid" ; then
3453 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3455 { (exit 1); exit 1; }; }
3457 ol_enable_dnssrv="$ol_arg"
3460 ol_enable_dnssrv=${ol_enable_backends:-no}
3463 # end --enable-dnssrv
3464 # OpenLDAP --enable-hdb
3466 # Check whether --enable-hdb was given.
3467 if test "${enable_hdb+set}" = set; then
3468 enableval=$enable_hdb;
3470 for ol_val in no yes mod ; do
3471 if test "$enableval" = "$ol_val" ; then
3475 if test "$ol_arg" = "invalid" ; then
3476 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3478 { (exit 1); exit 1; }; }
3480 ol_enable_hdb="$ol_arg"
3483 ol_enable_hdb=${ol_enable_backends:-yes}
3487 # OpenLDAP --enable-ldap
3489 # Check whether --enable-ldap was given.
3490 if test "${enable_ldap+set}" = set; then
3491 enableval=$enable_ldap;
3493 for ol_val in no yes mod ; do
3494 if test "$enableval" = "$ol_val" ; then
3498 if test "$ol_arg" = "invalid" ; then
3499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3501 { (exit 1); exit 1; }; }
3503 ol_enable_ldap="$ol_arg"
3506 ol_enable_ldap=${ol_enable_backends:-no}
3510 # OpenLDAP --enable-meta
3512 # Check whether --enable-meta was given.
3513 if test "${enable_meta+set}" = set; then
3514 enableval=$enable_meta;
3516 for ol_val in no yes mod ; do
3517 if test "$enableval" = "$ol_val" ; then
3521 if test "$ol_arg" = "invalid" ; then
3522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3524 { (exit 1); exit 1; }; }
3526 ol_enable_meta="$ol_arg"
3529 ol_enable_meta=${ol_enable_backends:-no}
3533 # OpenLDAP --enable-monitor
3535 # Check whether --enable-monitor was given.
3536 if test "${enable_monitor+set}" = set; then
3537 enableval=$enable_monitor;
3539 for ol_val in no yes mod ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3547 { (exit 1); exit 1; }; }
3549 ol_enable_monitor="$ol_arg"
3552 ol_enable_monitor=${ol_enable_backends:-yes}
3555 # end --enable-monitor
3556 # OpenLDAP --enable-ndb
3558 # Check whether --enable-ndb was given.
3559 if test "${enable_ndb+set}" = set; then
3560 enableval=$enable_ndb;
3562 for ol_val in no yes mod ; do
3563 if test "$enableval" = "$ol_val" ; then
3567 if test "$ol_arg" = "invalid" ; then
3568 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3570 { (exit 1); exit 1; }; }
3572 ol_enable_ndb="$ol_arg"
3575 ol_enable_ndb=${ol_enable_backends:-no}
3579 # OpenLDAP --enable-null
3581 # Check whether --enable-null was given.
3582 if test "${enable_null+set}" = set; then
3583 enableval=$enable_null;
3585 for ol_val in no yes mod ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_null="$ol_arg"
3598 ol_enable_null=${ol_enable_backends:-no}
3602 # OpenLDAP --enable-passwd
3604 # Check whether --enable-passwd was given.
3605 if test "${enable_passwd+set}" = set; then
3606 enableval=$enable_passwd;
3608 for ol_val in no yes mod ; do
3609 if test "$enableval" = "$ol_val" ; then
3613 if test "$ol_arg" = "invalid" ; then
3614 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3616 { (exit 1); exit 1; }; }
3618 ol_enable_passwd="$ol_arg"
3621 ol_enable_passwd=${ol_enable_backends:-no}
3624 # end --enable-passwd
3625 # OpenLDAP --enable-perl
3627 # Check whether --enable-perl was given.
3628 if test "${enable_perl+set}" = set; then
3629 enableval=$enable_perl;
3631 for ol_val in no yes mod ; do
3632 if test "$enableval" = "$ol_val" ; then
3636 if test "$ol_arg" = "invalid" ; then
3637 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3639 { (exit 1); exit 1; }; }
3641 ol_enable_perl="$ol_arg"
3644 ol_enable_perl=${ol_enable_backends:-no}
3648 # OpenLDAP --enable-relay
3650 # Check whether --enable-relay was given.
3651 if test "${enable_relay+set}" = set; then
3652 enableval=$enable_relay;
3654 for ol_val in no yes mod ; do
3655 if test "$enableval" = "$ol_val" ; then
3659 if test "$ol_arg" = "invalid" ; then
3660 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3662 { (exit 1); exit 1; }; }
3664 ol_enable_relay="$ol_arg"
3667 ol_enable_relay=${ol_enable_backends:-yes}
3670 # end --enable-relay
3671 # OpenLDAP --enable-shell
3673 # Check whether --enable-shell was given.
3674 if test "${enable_shell+set}" = set; then
3675 enableval=$enable_shell;
3677 for ol_val in no yes mod ; do
3678 if test "$enableval" = "$ol_val" ; then
3682 if test "$ol_arg" = "invalid" ; then
3683 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3685 { (exit 1); exit 1; }; }
3687 ol_enable_shell="$ol_arg"
3690 ol_enable_shell=${ol_enable_backends:-no}
3693 # end --enable-shell
3694 # OpenLDAP --enable-sock
3696 # Check whether --enable-sock was given.
3697 if test "${enable_sock+set}" = set; then
3698 enableval=$enable_sock;
3700 for ol_val in no yes mod ; do
3701 if test "$enableval" = "$ol_val" ; then
3705 if test "$ol_arg" = "invalid" ; then
3706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3708 { (exit 1); exit 1; }; }
3710 ol_enable_sock="$ol_arg"
3713 ol_enable_sock=${ol_enable_backends:-no}
3717 # OpenLDAP --enable-sql
3719 # Check whether --enable-sql was given.
3720 if test "${enable_sql+set}" = set; then
3721 enableval=$enable_sql;
3723 for ol_val in no yes mod ; do
3724 if test "$enableval" = "$ol_val" ; then
3728 if test "$ol_arg" = "invalid" ; then
3729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3731 { (exit 1); exit 1; }; }
3733 ol_enable_sql="$ol_arg"
3736 ol_enable_sql=${ol_enable_backends:-no}
3741 Overlays="accesslog \
3761 # Check whether --enable-xxslapoverlays was given.
3762 if test "${enable_xxslapoverlays+set}" = set; then
3763 enableval=$enable_xxslapoverlays;
3767 # OpenLDAP --enable-overlays
3769 # Check whether --enable-overlays was given.
3770 if test "${enable_overlays+set}" = set; then
3771 enableval=$enable_overlays;
3773 for ol_val in no yes mod ; do
3774 if test "$enableval" = "$ol_val" ; then
3778 if test "$ol_arg" = "invalid" ; then
3779 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3780 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3781 { (exit 1); exit 1; }; }
3783 ol_enable_overlays="$ol_arg"
3787 # end --enable-overlays
3788 # OpenLDAP --enable-accesslog
3790 # Check whether --enable-accesslog was given.
3791 if test "${enable_accesslog+set}" = set; then
3792 enableval=$enable_accesslog;
3794 for ol_val in no yes mod ; do
3795 if test "$enableval" = "$ol_val" ; then
3799 if test "$ol_arg" = "invalid" ; then
3800 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3801 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3802 { (exit 1); exit 1; }; }
3804 ol_enable_accesslog="$ol_arg"
3807 ol_enable_accesslog=${ol_enable_overlays:-no}
3810 # end --enable-accesslog
3812 # OpenLDAP --enable-auditlog
3814 # Check whether --enable-auditlog was given.
3815 if test "${enable_auditlog+set}" = set; then
3816 enableval=$enable_auditlog;
3818 for ol_val in no yes mod ; do
3819 if test "$enableval" = "$ol_val" ; then
3823 if test "$ol_arg" = "invalid" ; then
3824 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3826 { (exit 1); exit 1; }; }
3828 ol_enable_auditlog="$ol_arg"
3831 ol_enable_auditlog=${ol_enable_overlays:-no}
3834 # end --enable-auditlog
3836 # OpenLDAP --enable-collect
3838 # Check whether --enable-collect was given.
3839 if test "${enable_collect+set}" = set; then
3840 enableval=$enable_collect;
3842 for ol_val in no yes mod ; do
3843 if test "$enableval" = "$ol_val" ; then
3847 if test "$ol_arg" = "invalid" ; then
3848 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3850 { (exit 1); exit 1; }; }
3852 ol_enable_collect="$ol_arg"
3855 ol_enable_collect=${ol_enable_overlays:-no}
3858 # end --enable-collect
3860 # OpenLDAP --enable-constraint
3862 # Check whether --enable-constraint was given.
3863 if test "${enable_constraint+set}" = set; then
3864 enableval=$enable_constraint;
3866 for ol_val in no yes mod ; do
3867 if test "$enableval" = "$ol_val" ; then
3871 if test "$ol_arg" = "invalid" ; then
3872 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3874 { (exit 1); exit 1; }; }
3876 ol_enable_constraint="$ol_arg"
3879 ol_enable_constraint=${ol_enable_overlays:-no}
3882 # end --enable-constraint
3884 # OpenLDAP --enable-dds
3886 # Check whether --enable-dds was given.
3887 if test "${enable_dds+set}" = set; then
3888 enableval=$enable_dds;
3890 for ol_val in no yes mod ; do
3891 if test "$enableval" = "$ol_val" ; then
3895 if test "$ol_arg" = "invalid" ; then
3896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3898 { (exit 1); exit 1; }; }
3900 ol_enable_dds="$ol_arg"
3903 ol_enable_dds=${ol_enable_overlays:-no}
3908 # OpenLDAP --enable-deref
3910 # Check whether --enable-deref was given.
3911 if test "${enable_deref+set}" = set; then
3912 enableval=$enable_deref;
3914 for ol_val in no yes mod ; do
3915 if test "$enableval" = "$ol_val" ; then
3919 if test "$ol_arg" = "invalid" ; then
3920 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3922 { (exit 1); exit 1; }; }
3924 ol_enable_deref="$ol_arg"
3927 ol_enable_deref=${ol_enable_overlays:-no}
3930 # end --enable-deref
3932 # OpenLDAP --enable-dyngroup
3934 # Check whether --enable-dyngroup was given.
3935 if test "${enable_dyngroup+set}" = set; then
3936 enableval=$enable_dyngroup;
3938 for ol_val in no yes mod ; do
3939 if test "$enableval" = "$ol_val" ; then
3943 if test "$ol_arg" = "invalid" ; then
3944 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3946 { (exit 1); exit 1; }; }
3948 ol_enable_dyngroup="$ol_arg"
3951 ol_enable_dyngroup=${ol_enable_overlays:-no}
3954 # end --enable-dyngroup
3956 # OpenLDAP --enable-dynlist
3958 # Check whether --enable-dynlist was given.
3959 if test "${enable_dynlist+set}" = set; then
3960 enableval=$enable_dynlist;
3962 for ol_val in no yes mod ; do
3963 if test "$enableval" = "$ol_val" ; then
3967 if test "$ol_arg" = "invalid" ; then
3968 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3970 { (exit 1); exit 1; }; }
3972 ol_enable_dynlist="$ol_arg"
3975 ol_enable_dynlist=${ol_enable_overlays:-no}
3978 # end --enable-dynlist
3980 # OpenLDAP --enable-memberof
3982 # Check whether --enable-memberof was given.
3983 if test "${enable_memberof+set}" = set; then
3984 enableval=$enable_memberof;
3986 for ol_val in no yes mod ; do
3987 if test "$enableval" = "$ol_val" ; then
3991 if test "$ol_arg" = "invalid" ; then
3992 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3994 { (exit 1); exit 1; }; }
3996 ol_enable_memberof="$ol_arg"
3999 ol_enable_memberof=${ol_enable_overlays:-no}
4002 # end --enable-memberof
4004 # OpenLDAP --enable-ppolicy
4006 # Check whether --enable-ppolicy was given.
4007 if test "${enable_ppolicy+set}" = set; then
4008 enableval=$enable_ppolicy;
4010 for ol_val in no yes mod ; do
4011 if test "$enableval" = "$ol_val" ; then
4015 if test "$ol_arg" = "invalid" ; then
4016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4018 { (exit 1); exit 1; }; }
4020 ol_enable_ppolicy="$ol_arg"
4023 ol_enable_ppolicy=${ol_enable_overlays:-no}
4026 # end --enable-ppolicy
4028 # OpenLDAP --enable-proxycache
4030 # Check whether --enable-proxycache was given.
4031 if test "${enable_proxycache+set}" = set; then
4032 enableval=$enable_proxycache;
4034 for ol_val in no yes mod ; do
4035 if test "$enableval" = "$ol_val" ; then
4039 if test "$ol_arg" = "invalid" ; then
4040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4042 { (exit 1); exit 1; }; }
4044 ol_enable_proxycache="$ol_arg"
4047 ol_enable_proxycache=${ol_enable_overlays:-no}
4050 # end --enable-proxycache
4052 # OpenLDAP --enable-refint
4054 # Check whether --enable-refint was given.
4055 if test "${enable_refint+set}" = set; then
4056 enableval=$enable_refint;
4058 for ol_val in no yes mod ; do
4059 if test "$enableval" = "$ol_val" ; then
4063 if test "$ol_arg" = "invalid" ; then
4064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4066 { (exit 1); exit 1; }; }
4068 ol_enable_refint="$ol_arg"
4071 ol_enable_refint=${ol_enable_overlays:-no}
4074 # end --enable-refint
4076 # OpenLDAP --enable-retcode
4078 # Check whether --enable-retcode was given.
4079 if test "${enable_retcode+set}" = set; then
4080 enableval=$enable_retcode;
4082 for ol_val in no yes mod ; do
4083 if test "$enableval" = "$ol_val" ; then
4087 if test "$ol_arg" = "invalid" ; then
4088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4090 { (exit 1); exit 1; }; }
4092 ol_enable_retcode="$ol_arg"
4095 ol_enable_retcode=${ol_enable_overlays:-no}
4098 # end --enable-retcode
4100 # OpenLDAP --enable-rwm
4102 # Check whether --enable-rwm was given.
4103 if test "${enable_rwm+set}" = set; then
4104 enableval=$enable_rwm;
4106 for ol_val in no yes mod ; do
4107 if test "$enableval" = "$ol_val" ; then
4111 if test "$ol_arg" = "invalid" ; then
4112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4114 { (exit 1); exit 1; }; }
4116 ol_enable_rwm="$ol_arg"
4119 ol_enable_rwm=${ol_enable_overlays:-no}
4124 # OpenLDAP --enable-seqmod
4126 # Check whether --enable-seqmod was given.
4127 if test "${enable_seqmod+set}" = set; then
4128 enableval=$enable_seqmod;
4130 for ol_val in no yes mod ; do
4131 if test "$enableval" = "$ol_val" ; then
4135 if test "$ol_arg" = "invalid" ; then
4136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4138 { (exit 1); exit 1; }; }
4140 ol_enable_seqmod="$ol_arg"
4143 ol_enable_seqmod=${ol_enable_overlays:-yes}
4146 # end --enable-seqmod
4148 # OpenLDAP --enable-syncprov
4150 # Check whether --enable-syncprov was given.
4151 if test "${enable_syncprov+set}" = set; then
4152 enableval=$enable_syncprov;
4154 for ol_val in no yes mod ; do
4155 if test "$enableval" = "$ol_val" ; then
4159 if test "$ol_arg" = "invalid" ; then
4160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4162 { (exit 1); exit 1; }; }
4164 ol_enable_syncprov="$ol_arg"
4167 ol_enable_syncprov=${ol_enable_overlays:-yes}
4170 # end --enable-syncprov
4172 # OpenLDAP --enable-translucent
4174 # Check whether --enable-translucent was given.
4175 if test "${enable_translucent+set}" = set; then
4176 enableval=$enable_translucent;
4178 for ol_val in no yes mod ; do
4179 if test "$enableval" = "$ol_val" ; then
4183 if test "$ol_arg" = "invalid" ; then
4184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4186 { (exit 1); exit 1; }; }
4188 ol_enable_translucent="$ol_arg"
4191 ol_enable_translucent=${ol_enable_overlays:-no}
4194 # end --enable-translucent
4196 # OpenLDAP --enable-unique
4198 # Check whether --enable-unique was given.
4199 if test "${enable_unique+set}" = set; then
4200 enableval=$enable_unique;
4202 for ol_val in no yes mod ; do
4203 if test "$enableval" = "$ol_val" ; then
4207 if test "$ol_arg" = "invalid" ; then
4208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4210 { (exit 1); exit 1; }; }
4212 ol_enable_unique="$ol_arg"
4215 ol_enable_unique=${ol_enable_overlays:-no}
4218 # end --enable-unique
4220 # OpenLDAP --enable-valsort
4222 # Check whether --enable-valsort was given.
4223 if test "${enable_valsort+set}" = set; then
4224 enableval=$enable_valsort;
4226 for ol_val in no yes mod ; do
4227 if test "$enableval" = "$ol_val" ; then
4231 if test "$ol_arg" = "invalid" ; then
4232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4234 { (exit 1); exit 1; }; }
4236 ol_enable_valsort="$ol_arg"
4239 ol_enable_valsort=${ol_enable_overlays:-no}
4242 # end --enable-valsort
4245 # Check whether --enable-xxliboptions was given.
4246 if test "${enable_xxliboptions+set}" = set; then
4247 enableval=$enable_xxliboptions;
4250 # Check whether --enable-static was given.
4251 if test "${enable_static+set}" = set; then
4252 enableval=$enable_static; p=${PACKAGE-default}
4254 yes) enable_static=yes ;;
4255 no) enable_static=no ;;
4258 # Look at the argument we got. We use all the common list separators.
4259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260 for pkg in $enableval; do
4262 if test "X$pkg" = "X$p"; then
4274 # Check whether --enable-shared was given.
4275 if test "${enable_shared+set}" = set; then
4276 enableval=$enable_shared; p=${PACKAGE-default}
4278 yes) enable_shared=yes ;;
4279 no) enable_shared=no ;;
4282 # Look at the argument we got. We use all the common list separators.
4283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4284 for pkg in $enableval; do
4286 if test "X$pkg" = "X$p"; then
4301 if test $ol_enable_slapd = no ; then
4302 if test $ol_enable_slapi = yes ; then
4303 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4304 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4306 case "$ol_enable_backends" in yes | mod)
4307 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4308 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4310 for i in $Backends; do
4311 eval "ol_tmp=\$ol_enable_$i"
4312 if test $ol_tmp != no ; then
4313 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4314 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4315 eval "ol_enable_$i=no"
4318 if test $ol_enable_modules = yes ; then
4319 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4320 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4322 if test $ol_enable_wrappers = yes ; then
4323 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4324 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4326 if test $ol_enable_rlookups = yes ; then
4327 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4328 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4330 if test $ol_enable_dynacl = yes ; then
4331 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4334 if test $ol_enable_aci != no ; then
4335 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4338 if test $ol_enable_rewrite = yes ; then
4339 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4340 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4342 case "$ol_enable_overlays" in yes | mod)
4343 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4344 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4346 for i in $Overlays; do
4347 eval "ol_tmp=\$ol_enable_$i"
4348 if test $ol_tmp != no ; then
4349 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4350 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4351 eval "ol_enable_$i=no"
4355 # force settings to no
4360 ol_enable_modules=no
4361 ol_enable_rlookups=no
4364 ol_enable_wrappers=no
4366 ol_enable_rewrite=no
4368 elif test $ol_enable_modules != yes &&
4369 test $ol_enable_bdb = no &&
4370 test $ol_enable_dnssrv = no &&
4371 test $ol_enable_hdb = no &&
4372 test $ol_enable_ldap = no &&
4373 test $ol_enable_meta = no &&
4374 test $ol_enable_monitor = no &&
4375 test $ol_enable_ndb = no &&
4376 test $ol_enable_null = no &&
4377 test $ol_enable_passwd = no &&
4378 test $ol_enable_perl = no &&
4379 test $ol_enable_relay = no &&
4380 test $ol_enable_shell = no &&
4381 test $ol_enable_sock = no &&
4382 test $ol_enable_sql = no ; then
4384 if test $ol_enable_slapd = yes ; then
4385 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4386 echo "$as_me: error: slapd requires a backend" >&2;}
4387 { (exit 1); exit 1; }; }
4389 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4390 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4395 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4396 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4397 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4398 { (exit 1); exit 1; }; }
4401 if test $ol_enable_lmpasswd = yes ; then
4402 if test $ol_with_tls = no ; then
4403 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4404 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4405 { (exit 1); exit 1; }; }
4409 if test $ol_enable_spasswd = yes ; then
4410 if test $ol_with_cyrus_sasl = no ; then
4411 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4412 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4413 { (exit 1); exit 1; }; }
4415 ol_with_cyrus_sasl=yes
4418 { echo "$as_me:$LINENO: result: done" >&5
4419 echo "${ECHO_T}done" >&6; }
4468 BUILD_TRANSLUCENT=no
4472 SLAPD_STATIC_OVERLAYS=
4473 SLAPD_DYNAMIC_OVERLAYS=
4475 SLAPD_MODULES_LDFLAGS=
4476 SLAPD_MODULES_CPPFLAGS=
4478 SLAPD_STATIC_BACKENDS=back-ldif
4479 SLAPD_DYNAMIC_BACKENDS=
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_MKVERSION 1
4514 *-*-aix*) if test -z "$CC" ; then
4515 case "$ol_with_threads" in
4516 auto | yes | posix) ol_aix_threads=yes ;;
4522 if test $ol_aix_threads = yes ; then
4523 if test -z "${CC}" ; then
4524 for ac_prog in cc_r xlc_r cc
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CC="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CC"; then
4555 { echo "$as_me:$LINENO: result: $CC" >&5
4556 echo "${ECHO_T}$CC" >&6; }
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 test -n "$CC" && break
4567 if test "$CC" = cc ; then
4568 if test $ol_with_threads != auto ; then
4569 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4570 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4571 { (exit 1); exit 1; }; }
4573 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4574 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4580 case ${CC} in cc_r | xlc_r)
4581 ol_with_threads=posix
4582 ol_cv_pthread_create=yes
4587 if test -z "${CC}"; then
4588 for ac_prog in cc gcc
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC="$ac_prog"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$CC"; then
4619 { echo "$as_me:$LINENO: result: $CC" >&5
4620 echo "${ECHO_T}$CC" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 test -n "$CC" && break
4629 test -n "$CC" || CC="missing"
4632 if test "${CC}" = "missing" ; then
4633 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4634 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4635 { (exit 1); exit 1; }; }
4639 if test -z "${AR}"; then
4640 for ac_prog in ar gar
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_AR+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test -n "$AR"; then
4650 ac_cv_prog_AR="$AR" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_AR="$ac_prog"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 if test -n "$AR"; then
4671 { echo "$as_me:$LINENO: result: $AR" >&5
4672 echo "${ECHO_T}$AR" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 test -n "$AR" && break
4681 test -n "$AR" || AR="missing"
4684 if test "${AR}" = "missing" ; then
4685 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4686 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4687 { (exit 1); exit 1; }; }
4695 # Check whether --enable-fast-install was given.
4696 if test "${enable_fast_install+set}" = set; then
4697 enableval=$enable_fast_install; p=${PACKAGE-default}
4699 yes) enable_fast_install=yes ;;
4700 no) enable_fast_install=no ;;
4702 enable_fast_install=no
4703 # Look at the argument we got. We use all the common list separators.
4704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4705 for pkg in $enableval; do
4707 if test "X$pkg" = "X$p"; then
4708 enable_fast_install=yes
4715 enable_fast_install=yes
4719 DEPDIR="${am__leading_dot}deps"
4721 ac_config_commands="$ac_config_commands depfiles"
4724 am_make=${MAKE-make}
4725 cat > confinc << 'END'
4730 # If we don't find an include directive, just comment out the code.
4731 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4732 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4736 # First try GNU make style include.
4737 echo "include confinc" > confmf
4738 # We grep out `Entering directory' and `Leaving directory'
4739 # messages which can occur if `w' ends up in MAKEFLAGS.
4740 # In particular we don't look at `^make:' because GNU make might
4741 # be invoked under some other name (usually "gmake"), in which
4742 # case it prints its new name instead of `make'.
4743 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4748 # Now try BSD make style include.
4749 if test "$am__include" = "#"; then
4750 echo '.include "confinc"' > confmf
4751 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4752 am__include=.include
4759 { echo "$as_me:$LINENO: result: $_am_result" >&5
4760 echo "${ECHO_T}$_am_result" >&6; }
4761 rm -f confinc confmf
4763 # Check whether --enable-dependency-tracking was given.
4764 if test "${enable_dependency_tracking+set}" = set; then
4765 enableval=$enable_dependency_tracking;
4768 if test "x$enable_dependency_tracking" != xno; then
4769 am_depcomp="$ac_aux_dir/depcomp"
4774 if test "x$enable_dependency_tracking" != xno; then
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 if test -n "$CC"; then
4819 { echo "$as_me:$LINENO: result: $CC" >&5
4820 echo "${ECHO_T}$CC" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4828 if test -z "$ac_cv_prog_CC"; then
4830 # Extract the first word of "gcc", so it can be a program name with args.
4831 set dummy gcc; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test -n "$ac_ct_CC"; then
4838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_CC="gcc"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4860 echo "${ECHO_T}$ac_ct_CC" >&6; }
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4866 if test "x$ac_ct_CC" = x; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet. If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&5
4874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4875 whose name does not start with the host triplet. If you think this
4876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4877 ac_tool_warned=yes ;;
4885 if test -z "$CC"; then
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}cc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_CC+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$CC"; then
4895 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_CC="${ac_tool_prefix}cc"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 if test -n "$CC"; then
4916 { echo "$as_me:$LINENO: result: $CC" >&5
4917 echo "${ECHO_T}$CC" >&6; }
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4926 if test -z "$CC"; then
4927 # Extract the first word of "cc", so it can be a program name with args.
4928 set dummy cc; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 if test -n "$CC"; then
4935 ac_cv_prog_CC="$CC" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4946 ac_prog_rejected=yes
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 if test $ac_prog_rejected = yes; then
4958 # We found a bogon in the path, so make sure we never use it.
4959 set dummy $ac_cv_prog_CC
4961 if test $# != 0; then
4962 # We chose a different compiler from the bogus one.
4963 # However, it has the same basename, so the bogon will be chosen
4964 # first if we set CC to just the basename; use the full file name.
4966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4972 if test -n "$CC"; then
4973 { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4982 if test -z "$CC"; then
4983 if test -n "$ac_tool_prefix"; then
4984 for ac_prog in cl.exe
4986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_CC+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 if test -n "$CC"; then
4994 ac_cv_prog_CC="$CC" # Let the user override the test.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 if test -n "$CC"; then
5015 { echo "$as_me:$LINENO: result: $CC" >&5
5016 echo "${ECHO_T}$CC" >&6; }
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5023 test -n "$CC" && break
5026 if test -z "$CC"; then
5028 for ac_prog in cl.exe
5030 # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test -n "$ac_ct_CC"; then
5038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_ac_ct_CC="$ac_prog"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5058 if test -n "$ac_ct_CC"; then
5059 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5060 echo "${ECHO_T}$ac_ct_CC" >&6; }
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5067 test -n "$ac_ct_CC" && break
5070 if test "x$ac_ct_CC" = x; then
5073 case $cross_compiling:$ac_tool_warned in
5075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet. If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&5
5078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet. If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5081 ac_tool_warned=yes ;;
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094 { (exit 1); exit 1; }; }
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compiler --version >&5") 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compiler -v >&5") 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compiler -V >&5") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5145 ac_clean_files_save=$ac_clean_files
5146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5147 # Try to create an executable without -o first, disregard a.out.
5148 # It will help us diagnose broken compilers, and finding out an intuition
5150 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5154 # List of possible output files, starting from the most likely.
5155 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5156 # only as a last resort. b.out is created by i960 compilers.
5157 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5159 # The IRIX 6 linker writes into existing files which may not be
5160 # executable, retaining their permissions. Remove them first so a
5161 # subsequent execution test works.
5163 for ac_file in $ac_files
5166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5172 if { (ac_try="$ac_link_default"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_link_default") 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; then
5182 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5184 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5185 # so that the user can short-circuit this test for compilers unknown to
5187 for ac_file in $ac_files ''
5189 test -f "$ac_file" || continue
5191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5194 # We found the default executable, but exeext='' is most
5198 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5200 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5202 # We set ac_cv_exeext here because the later test for it is not
5203 # safe: cross compilers may not add the suffix if given an `-o'
5204 # argument, so we may need to know it at that point already.
5205 # Even if this section looks crufty: it has the advantage of
5212 test "$ac_cv_exeext" = no && ac_cv_exeext=
5218 { echo "$as_me:$LINENO: result: $ac_file" >&5
5219 echo "${ECHO_T}$ac_file" >&6; }
5220 if test -z "$ac_file"; then
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C compiler cannot create executables
5227 See \`config.log' for more details." >&2;}
5228 { (exit 77); exit 77; }; }
5231 ac_exeext=$ac_cv_exeext
5233 # Check that the compiler produces executables we can run. If not, either
5234 # the compiler is broken, or we cross compile.
5235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5238 # If not cross compiling, check that we can run a simple program.
5239 if test "$cross_compiling" != yes; then
5240 if { ac_try='./$ac_file'
5241 { (case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_try") 2>&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5252 if test "$cross_compiling" = maybe; then
5255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5256 If you meant to cross compile, use \`--host'.
5257 See \`config.log' for more details." >&5
5258 echo "$as_me: error: cannot run C compiled programs.
5259 If you meant to cross compile, use \`--host'.
5260 See \`config.log' for more details." >&2;}
5261 { (exit 1); exit 1; }; }
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5269 ac_clean_files=$ac_clean_files_save
5270 # Check that the compiler produces executables we can run. If not, either
5271 # the compiler is broken, or we cross compile.
5272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5275 echo "${ECHO_T}$cross_compiling" >&6; }
5277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5279 if { (ac_try="$ac_link"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; then
5289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5291 # work properly (i.e., refer to `conftest.exe'), while it won't with
5293 for ac_file in conftest.exe conftest conftest.*; do
5294 test -f "$ac_file" || continue
5296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5304 See \`config.log' for more details." >&5
5305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5306 See \`config.log' for more details." >&2;}
5307 { (exit 1); exit 1; }; }
5310 rm -f conftest$ac_cv_exeext
5311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5314 rm -f conftest.$ac_ext
5315 EXEEXT=$ac_cv_exeext
5317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5319 if test "${ac_cv_objext+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5337 rm -f conftest.o conftest.obj
5338 if { (ac_try="$ac_compile"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; then
5348 for ac_file in conftest.o conftest.obj conftest.*; do
5349 test -f "$ac_file" || continue;
5351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5363 See \`config.log' for more details." >&2;}
5364 { (exit 1); exit 1; }; }
5367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5370 echo "${ECHO_T}$ac_cv_objext" >&6; }
5371 OBJEXT=$ac_cv_objext
5373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5427 GCC=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_test_CFLAGS=${CFLAGS+set}
5429 ac_save_CFLAGS=$CFLAGS
5430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_cc_g+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_save_c_werror_flag=$ac_c_werror_flag
5436 ac_c_werror_flag=yes
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_c_werror_flag=$ac_save_c_werror_flag
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_c_werror_flag=$ac_save_c_werror_flag
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5567 if test "$ac_test_CFLAGS" = set; then
5568 CFLAGS=$ac_save_CFLAGS
5569 elif test $ac_cv_prog_cc_g = yes; then
5570 if test "$GCC" = yes; then
5576 if test "$GCC" = yes; then
5582 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5583 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_c89+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_prog_cc_c89=no
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5597 #include <sys/types.h>
5598 #include <sys/stat.h>
5599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5600 struct buf { int x; };
5601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5602 static char *e (p, i)
5608 static char *f (char * (*g) (char **, int), char **p, ...)
5613 s = g (p, va_arg (v,int));
5618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5619 function prototypes and stuff, but not '\xHH' hex character constants.
5620 These don't provoke an error unfortunately, instead are silently treated
5621 as 'x'. The following induces an error, until -std is added to get
5622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5623 array size at least. It's necessary to write '\x00'==0 to get something
5624 that's true only with -std. */
5625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5628 inside strings and character constants. */
5630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5632 int test (int i, double x);
5633 struct s1 {int (*f) (int a);};
5634 struct s2 {int (*f) (double a);};
5635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5649 CC="$ac_save_CC $ac_arg"
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_prog_cc_c89=$ac_arg
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5678 rm -f conftest.$ac_ext
5683 case "x$ac_cv_prog_cc_c89" in
5685 { echo "$as_me:$LINENO: result: none needed" >&5
5686 echo "${ECHO_T}none needed" >&6; } ;;
5688 { echo "$as_me:$LINENO: result: unsupported" >&5
5689 echo "${ECHO_T}unsupported" >&6; } ;;
5691 CC="$CC $ac_cv_prog_cc_c89"
5692 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 depcc="$CC" am_compiler_list=
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711 # We make a subdir and do the tests there. Otherwise we can end up
5712 # making bogus files that we don't know about and never remove. For
5713 # instance it was reported that on HP-UX the gcc test will end up
5714 # making a dummy file named `D' -- because `-MD' means `put the output
5717 # Copy depcomp to subdir because otherwise we won't find it if we're
5718 # using a relative directory.
5719 cp "$am_depcomp" conftest.dir
5721 # We will build objects and dependencies in a subdirectory because
5722 # it helps to detect inapplicable dependency modes. For instance
5723 # both Tru64's cc and ICC support -MD to output dependencies as a
5724 # side effect of compilation, but ICC will put the dependencies in
5725 # the current directory while Tru64 will put them in the object
5729 am_cv_CC_dependencies_compiler_type=none
5730 if test "$am_compiler_list" = ""; then
5731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5733 for depmode in $am_compiler_list; do
5734 # Setup a source with many dependencies, because some compilers
5735 # like to wrap large dependency lists on column 80 (with \), and
5736 # we should not choose a depcomp mode which is confused by this.
5738 # We need to recreate these files for each test, as the compiler may
5739 # overwrite some of them when testing with obscure command lines.
5740 # This happens at least with the AIX C compiler.
5742 for i in 1 2 3 4 5 6; do
5743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745 # Solaris 8's {/usr,}/bin/sh.
5746 touch sub/conftst$i.h
5748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5752 # after this tag, mechanisms are not by side-effect, so they'll
5753 # only be used when explicitly requested
5754 if test "x$enable_dependency_tracking" = xyes; then
5762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763 # mode. It turns out that the SunPro C++ compiler does not properly
5764 # handle `-M -o', and we need to detect this.
5765 if depmode=$depmode \
5766 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769 >/dev/null 2>conftest.err &&
5770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5771 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5773 # icc doesn't choke on unknown options, it will just issue warnings
5774 # or remarks (even with -Werror). So we grep stderr for any message
5775 # that says an option was ignored or not supported.
5776 # When given -MP, icc 7.0 and 7.1 complain thusly:
5777 # icc: Command line warning: ignoring option '-M'; no argument required
5778 # The diagnosis changed in icc 8.0:
5779 # icc: Command line remark: option '-MP' not supported
5780 if (grep 'ignoring option' conftest.err ||
5781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5782 am_cv_CC_dependencies_compiler_type=$depmode
5791 am_cv_CC_dependencies_compiler_type=none
5795 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5796 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5802 test "x$enable_dependency_tracking" != xno \
5803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5805 am__fastdepCC_FALSE='#'
5807 am__fastdepCC_TRUE='#'
5808 am__fastdepCC_FALSE=
5812 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5813 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5814 if test "${lt_cv_path_SED+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 # Loop through the user's path and test for sed and gsed.
5818 # Then use that list of sed's as ones to test for truncation.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for lt_ac_prog in sed gsed; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5827 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5834 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5835 # along with /bin/sed that truncates output.
5836 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5837 test ! -f $lt_ac_sed && continue
5838 cat /dev/null > conftest.in
5840 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5841 # Check for GNU sed and select it if it is found.
5842 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5843 lt_cv_path_SED=$lt_ac_sed
5847 cat conftest.in conftest.in >conftest.tmp
5848 mv conftest.tmp conftest.in
5849 cp conftest.in conftest.nl
5851 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5852 cmp -s conftest.out conftest.nl || break
5853 # 10000 chars as input seems more than enough
5854 test $lt_ac_count -gt 10 && break
5855 lt_ac_count=`expr $lt_ac_count + 1`
5856 if test $lt_ac_count -gt $lt_ac_max; then
5857 lt_ac_max=$lt_ac_count
5858 lt_cv_path_SED=$lt_ac_sed
5866 { echo "$as_me:$LINENO: result: $SED" >&5
5867 echo "${ECHO_T}$SED" >&6; }
5869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 # Extract the first word of "grep ggrep" to use in msg output
5875 if test -z "$GREP"; then
5876 set dummy grep ggrep; ac_prog_name=$2
5877 if test "${ac_cv_path_GREP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_path_GREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in grep ggrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5891 # Check for GNU ac_path_GREP and select it if it is found.
5892 # Check for GNU $ac_path_GREP
5893 case `"$ac_path_GREP" --version 2>&1` in
5895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 echo 'GREP' >> "conftest.nl"
5905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 ac_count=`expr $ac_count + 1`
5908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_GREP="$ac_path_GREP"
5911 ac_path_GREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5920 $ac_path_GREP_found && break 3
5930 GREP="$ac_cv_path_GREP"
5931 if test -z "$GREP"; then
5932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5934 { (exit 1); exit 1; }; }
5938 ac_cv_path_GREP=$GREP
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5945 GREP="$ac_cv_path_GREP"
5948 { echo "$as_me:$LINENO: checking for egrep" >&5
5949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_EGREP+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954 then ac_cv_path_EGREP="$GREP -E"
5956 # Extract the first word of "egrep" to use in msg output
5957 if test -z "$EGREP"; then
5958 set dummy egrep; ac_prog_name=$2
5959 if test "${ac_cv_path_EGREP+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 test -z "$as_dir" && as_dir=.
5969 for ac_prog in egrep; do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5980 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5983 cat "conftest.in" "conftest.in" >"conftest.tmp"
5984 mv "conftest.tmp" "conftest.in"
5985 cp "conftest.in" "conftest.nl"
5986 echo 'EGREP' >> "conftest.nl"
5987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989 ac_count=`expr $ac_count + 1`
5990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991 # Best one so far, save it but keep looking for a better one
5992 ac_cv_path_EGREP="$ac_path_EGREP"
5993 ac_path_EGREP_max=$ac_count
5995 # 10*(2^10) chars as input seems more than enough
5996 test $ac_count -gt 10 && break
5998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 $ac_path_EGREP_found && break 3
6012 EGREP="$ac_cv_path_EGREP"
6013 if test -z "$EGREP"; then
6014 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6016 { (exit 1); exit 1; }; }
6020 ac_cv_path_EGREP=$EGREP
6026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6028 EGREP="$ac_cv_path_EGREP"
6032 # Check whether --with-gnu-ld was given.
6033 if test "${with_gnu_ld+set}" = set; then
6034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6040 if test "$GCC" = yes; then
6041 # Check if gcc -print-prog-name=ld gives a path.
6042 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6043 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6046 # gcc leaves a trailing carriage return which upsets mingw
6047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6052 # Accept absolute paths.
6054 re_direlt='/[^/][^/]*/\.\./'
6055 # Canonicalize the pathname of ld
6056 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6058 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6060 test -z "$LD" && LD="$ac_prog"
6063 # If it fails, then pretend we aren't using GCC.
6067 # If it is relative, then search for the first ld in PATH.
6071 elif test "$with_gnu_ld" = yes; then
6072 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6075 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6078 if test "${lt_cv_path_LD+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 if test -z "$LD"; then
6082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083 for ac_dir in $PATH; do
6085 test -z "$ac_dir" && ac_dir=.
6086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6087 lt_cv_path_LD="$ac_dir/$ac_prog"
6088 # Check to see if the program is GNU ld. I'd rather use --version,
6089 # but apparently some variants of GNU ld only accept -v.
6090 # Break only if it was the GNU/non-GNU ld that we prefer.
6091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6092 *GNU* | *'with BFD'*)
6093 test "$with_gnu_ld" != no && break
6096 test "$with_gnu_ld" != yes && break
6103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6108 if test -n "$LD"; then
6109 { echo "$as_me:$LINENO: result: $LD" >&5
6110 echo "${ECHO_T}$LD" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6117 { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126 lt_cv_prog_gnu_ld=yes
6129 lt_cv_prog_gnu_ld=no
6133 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6134 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6138 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6139 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6140 if test "${lt_cv_ld_reload_flag+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 lt_cv_ld_reload_flag='-r'
6145 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6146 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6147 reload_flag=$lt_cv_ld_reload_flag
6148 case $reload_flag in
6150 *) reload_flag=" $reload_flag" ;;
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155 if test "$GCC" = yes; then
6156 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6158 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6163 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6164 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6165 if test "${lt_cv_path_NM+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 if test -n "$NM"; then
6169 # Let the user override the test.
6172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6175 test -z "$ac_dir" && ac_dir=.
6176 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6177 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6178 # Check to see if the nm accepts a BSD-compat flag.
6179 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6180 # nm: unknown option "B" ignored
6181 # Tru64's nm complains that /dev/null is an invalid object file
6182 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6183 */dev/null* | *'Invalid file or object type'*)
6184 lt_cv_path_NM="$tmp_nm -B"
6188 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6190 lt_cv_path_NM="$tmp_nm -p"
6194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6195 continue # so that we can try to find one that supports BSD flags
6202 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6212 if test "$LN_S" = "ln -s"; then
6213 { echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6; }
6216 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6217 echo "${ECHO_T}no, using $LN_S" >&6; }
6220 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6221 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6222 if test "${lt_cv_deplibs_check_method+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_cv_file_magic_cmd='$MAGIC_CMD'
6226 lt_cv_file_magic_test_file=
6227 lt_cv_deplibs_check_method='unknown'
6228 # Need to set the preceding variable on all platforms that support
6229 # interlibrary dependencies.
6230 # 'none' -- dependencies not supported.
6231 # `unknown' -- same as none, but documents that we really don't know.
6232 # 'pass_all' -- all dependencies passed with no checks.
6233 # 'test_compile' -- check by making test program.
6234 # 'file_magic [[regex]]' -- check by looking for files in library path
6235 # which responds to the $file_magic_cmd with a given extended regex.
6236 # If you have `file' or equivalent on your system and you're not sure
6237 # whether `pass_all' will *always* work, you probably want this one.
6241 lt_cv_deplibs_check_method=pass_all
6245 lt_cv_deplibs_check_method=pass_all
6249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6250 lt_cv_file_magic_cmd='/usr/bin/file -L'
6251 lt_cv_file_magic_test_file=/shlib/libc.so
6255 # func_win32_libid is a shell function defined in ltmain.sh
6256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257 lt_cv_file_magic_cmd='func_win32_libid'
6261 # Base MSYS/MinGW do not provide the 'file' command needed by
6262 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6263 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6264 lt_cv_file_magic_cmd='$OBJDUMP -f'
6267 darwin* | rhapsody*)
6268 lt_cv_deplibs_check_method=pass_all
6271 freebsd* | kfreebsd*-gnu | dragonfly*)
6272 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6275 # Not sure whether the presence of OpenBSD here was a mistake.
6276 # Let's accept both of them until this is cleared up.
6277 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6278 lt_cv_file_magic_cmd=/usr/bin/file
6279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6283 lt_cv_deplibs_check_method=pass_all
6288 lt_cv_deplibs_check_method=pass_all
6291 hpux10.20* | hpux11*)
6292 lt_cv_file_magic_cmd=/usr/bin/file
6295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6296 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6299 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]'
6300 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6304 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6309 irix5* | irix6* | nonstopux*)
6311 *-32|*"-32 ") libmagic=32-bit;;
6312 *-n32|*"-n32 ") libmagic=N32;;
6313 *-64|*"-64 ") libmagic=64-bit;;
6314 *) libmagic=never-match;;
6316 lt_cv_deplibs_check_method=pass_all
6319 # This must be Linux ELF.
6321 lt_cv_deplibs_check_method=pass_all
6325 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6334 lt_cv_file_magic_cmd=/usr/bin/file
6335 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339 lt_cv_deplibs_check_method=unknown
6343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350 osf3* | osf4* | osf5*)
6351 lt_cv_deplibs_check_method=pass_all
6355 lt_cv_deplibs_check_method=pass_all
6359 lt_cv_deplibs_check_method=pass_all
6362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6363 case $host_vendor in
6365 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]'
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6369 lt_cv_deplibs_check_method=pass_all
6372 lt_cv_file_magic_cmd='/bin/file'
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6376 lt_cv_file_magic_cmd='/bin/file'
6377 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6378 lt_cv_file_magic_test_file=/lib/libc.so
6381 lt_cv_deplibs_check_method=pass_all
6386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6387 lt_cv_deplibs_check_method=pass_all
6392 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6393 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6394 file_magic_cmd=$lt_cv_file_magic_cmd
6395 deplibs_check_method=$lt_cv_deplibs_check_method
6396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6401 # If no C compiler was specified, use CC.
6404 # Allow CC to be a program name with arguments.
6408 # Check whether --enable-libtool-lock was given.
6409 if test "${enable_libtool_lock+set}" = set; then
6410 enableval=$enable_libtool_lock;
6413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6415 # Some flags need to be propagated to the compiler or linker for good
6419 # Find out which ABI we are using.
6420 echo 'int i;' > conftest.$ac_ext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; then
6426 case `/usr/bin/file conftest.$ac_objext` in
6438 # Find out which ABI we are using.
6439 echo '#line 6439 "configure"' > conftest.$ac_ext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; then
6445 if test "$lt_cv_prog_gnu_ld" = yes; then
6446 case `/usr/bin/file conftest.$ac_objext` in
6448 LD="${LD-ld} -melf32bsmip"
6451 LD="${LD-ld} -melf32bmipn32"
6454 LD="${LD-ld} -melf64bmip"
6458 case `/usr/bin/file conftest.$ac_objext` in
6474 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6475 # Find out which ABI we are using.
6476 echo 'int i;' > conftest.$ac_ext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; then
6482 case `/usr/bin/file conftest.o` in
6486 LD="${LD-ld} -m elf_i386"
6488 ppc64-*linux*|powerpc64-*linux*)
6489 LD="${LD-ld} -m elf32ppclinux"
6492 LD="${LD-ld} -m elf_s390"
6495 LD="${LD-ld} -m elf32_sparc"
6502 LD="${LD-ld} -m elf_x86_64"
6504 ppc*-*linux*|powerpc*-*linux*)
6505 LD="${LD-ld} -m elf64ppc"
6508 LD="${LD-ld} -m elf64_s390"
6511 LD="${LD-ld} -m elf64_sparc"
6521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6522 SAVE_CFLAGS="$CFLAGS"
6523 CFLAGS="$CFLAGS -belf"
6524 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6525 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6526 if test "${lt_cv_cc_needs_belf+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_cpp='$CPP $CPPFLAGS'
6531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_link") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest$ac_exeext &&
6567 $as_test_x conftest$ac_exeext; then
6568 lt_cv_cc_needs_belf=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 lt_cv_cc_needs_belf=no
6576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577 conftest$ac_exeext conftest.$ac_ext
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589 CFLAGS="$SAVE_CFLAGS"
6592 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 if test -n "$DLLTOOL"; then
6602 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 DLLTOOL=$ac_cv_prog_DLLTOOL
6622 if test -n "$DLLTOOL"; then
6623 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6624 echo "${ECHO_T}$DLLTOOL" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6632 if test -z "$ac_cv_prog_DLLTOOL"; then
6633 ac_ct_DLLTOOL=$DLLTOOL
6634 # Extract the first word of "dlltool", so it can be a program name with args.
6635 set dummy dlltool; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 if test -n "$ac_ct_DLLTOOL"; then
6642 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6662 if test -n "$ac_ct_DLLTOOL"; then
6663 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6664 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6666 { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6670 if test "x$ac_ct_DLLTOOL" = x; then
6673 case $cross_compiling:$ac_tool_warned in
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet. If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet. If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6683 DLLTOOL=$ac_ct_DLLTOOL
6686 DLLTOOL="$ac_cv_prog_DLLTOOL"
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}as; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_AS+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 if test -n "$AS"; then
6698 ac_cv_prog_AS="$AS" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_AS="${ac_tool_prefix}as"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$AS"; then
6719 { echo "$as_me:$LINENO: result: $AS" >&5
6720 echo "${ECHO_T}$AS" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6728 if test -z "$ac_cv_prog_AS"; then
6730 # Extract the first word of "as", so it can be a program name with args.
6731 set dummy as; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 if test -n "$ac_ct_AS"; then
6738 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_AS="as"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6758 if test -n "$ac_ct_AS"; then
6759 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6760 echo "${ECHO_T}$ac_ct_AS" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6766 if test "x$ac_ct_AS" = x; then
6769 case $cross_compiling:$ac_tool_warned in
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet. If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet. If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$OBJDUMP"; then
6794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 OBJDUMP=$ac_cv_prog_OBJDUMP
6814 if test -n "$OBJDUMP"; then
6815 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6816 echo "${ECHO_T}$OBJDUMP" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_OBJDUMP"; then
6825 ac_ct_OBJDUMP=$OBJDUMP
6826 # Extract the first word of "objdump", so it can be a program name with args.
6827 set dummy objdump; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 if test -n "$ac_ct_OBJDUMP"; then
6834 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6854 if test -n "$ac_ct_OBJDUMP"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6856 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_OBJDUMP" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6875 OBJDUMP=$ac_ct_OBJDUMP
6878 OBJDUMP="$ac_cv_prog_OBJDUMP"
6885 need_locks="$enable_libtool_lock"
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6895 # On Suns, sometimes $CPP names a directory.
6896 if test -n "$CPP" && test -d "$CPP"; then
6899 if test -z "$CPP"; then
6900 if test "${ac_cv_prog_CPP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 # Double quotes because CPP needs to be expanded
6904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6907 for ac_c_preproc_warn_flag in '' yes
6909 # Use a header file that comes with gcc, so configuring glibc
6910 # with a fresh cross-compiler works.
6911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912 # <limits.h> exists even on freestanding compilers.
6913 # On the NeXT, cc -E runs the code through the compiler's parser,
6914 # not just through cpp. "Syntax error" is here to catch this case.
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6922 # include <limits.h>
6924 # include <assert.h>
6928 if { (ac_try="$ac_cpp conftest.$ac_ext"
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6936 grep -v '^ *+' conftest.er1 >conftest.err
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 # Broken: fails on valid input.
6953 rm -f conftest.err conftest.$ac_ext
6955 # OK, works on sane cases. Now check whether nonexistent headers
6956 # can be detected and how.
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <ac_nonexistent.h>
6965 if { (ac_try="$ac_cpp conftest.$ac_ext"
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } >/dev/null && {
6978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6981 # Broken: success on invalid input.
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Passes both tests.
6992 rm -f conftest.err conftest.$ac_ext
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
7009 { echo "$as_me:$LINENO: result: $CPP" >&5
7010 echo "${ECHO_T}$CPP" >&6; }
7012 for ac_c_preproc_warn_flag in '' yes
7014 # Use a header file that comes with gcc, so configuring glibc
7015 # with a fresh cross-compiler works.
7016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017 # <limits.h> exists even on freestanding compilers.
7018 # On the NeXT, cc -E runs the code through the compiler's parser,
7019 # not just through cpp. "Syntax error" is here to catch this case.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 # include <limits.h>
7029 # include <assert.h>
7033 if { (ac_try="$ac_cpp conftest.$ac_ext"
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 # Broken: fails on valid input.
7058 rm -f conftest.err conftest.$ac_ext
7060 # OK, works on sane cases. Now check whether nonexistent headers
7061 # can be detected and how.
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <ac_nonexistent.h>
7070 if { (ac_try="$ac_cpp conftest.$ac_ext"
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7078 grep -v '^ *+' conftest.er1 >conftest.err
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } >/dev/null && {
7083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7084 test ! -s conftest.err
7086 # Broken: success on invalid input.
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 # Passes both tests.
7097 rm -f conftest.err conftest.$ac_ext
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109 { (exit 1); exit 1; }; }
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7121 if test "${ac_cv_header_stdc+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_header_stdc=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_header_stdc=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 if test $ac_cv_header_stdc = yes; then
7171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "memchr" >/dev/null 2>&1; then
7185 ac_cv_header_stdc=no
7191 if test $ac_cv_header_stdc = yes; then
7192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "free" >/dev/null 2>&1; then
7206 ac_cv_header_stdc=no
7212 if test $ac_cv_header_stdc = yes; then
7213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7214 if test "$cross_compiling" = yes; then
7217 cat >conftest.$ac_ext <<_ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229 # define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
7248 rm -f conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_link") 2>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7259 { (case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_try") 2>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 echo "$as_me: program exited with status $ac_status" >&5
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_header_stdc=no
7277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7285 if test $ac_cv_header_stdc = yes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define STDC_HEADERS 1
7293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304 inttypes.h stdint.h unistd.h
7306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7320 #include <$ac_header>
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 eval "$as_ac_Header=yes"
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 eval "$as_ac_Header=no"
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 ac_res=`eval echo '${'$as_ac_Header'}'`
7350 { echo "$as_me:$LINENO: result: $ac_res" >&5
7351 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353 cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 for ac_header in dlfcn.h
7365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_res=`eval echo '${'$as_ac_Header'}'`
7373 { echo "$as_me:$LINENO: result: $ac_res" >&5
7374 echo "${ECHO_T}$ac_res" >&6; }
7376 # Is the header compilable?
7377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7386 #include <$ac_header>
7388 rm -f conftest.$ac_objext
7389 if { (ac_try="$ac_compile"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest.$ac_objext; then
7405 ac_header_compiler=yes
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_header_compiler=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7415 echo "${ECHO_T}$ac_header_compiler" >&6; }
7417 # Is the header present?
7418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <$ac_header>
7428 if { (ac_try="$ac_cpp conftest.$ac_ext"
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1 >conftest.err
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } >/dev/null && {
7441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7444 ac_header_preproc=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_header_preproc=no
7452 rm -f conftest.err conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7454 echo "${ECHO_T}$ac_header_preproc" >&6; }
7456 # So? What about this header?
7457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7463 ac_header_preproc=yes
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7479 ## --------------------------------------------- ##
7480 ## Report this to <http://www.openldap.org/its/> ##
7481 ## --------------------------------------------- ##
7483 ) | sed "s/^/$as_me: WARNING: /" >&2
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 eval "$as_ac_Header=\$ac_header_preproc"
7493 ac_res=`eval echo '${'$as_ac_Header'}'`
7494 { echo "$as_me:$LINENO: result: $ac_res" >&5
7495 echo "${ECHO_T}$ac_res" >&6; }
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7510 # find the maximum length of command line arguments
7511 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7512 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7513 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 # On DJGPP, this test can blow up pretty badly due to problems in libc
7522 # (any single argument exceeding 2000 bytes causes a buffer overrun
7523 # during glob expansion). Even if it were fixed, the result of this
7524 # check would be larger than it should be.
7525 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7529 # Under GNU Hurd, this test is not required because there is
7530 # no limit to the length of command line arguments.
7531 # Libtool will interpret -1 as no limit whatsoever
7532 lt_cv_sys_max_cmd_len=-1;
7536 # On Win9x/ME, this test blows up -- it succeeds, but takes
7537 # about 5 minutes as the teststring grows exponentially.
7538 # Worse, since 9x/ME are not pre-emptively multitasking,
7539 # you end up with a "frozen" computer, even though with patience
7540 # the test eventually succeeds (with a max line length of 256k).
7541 # Instead, let's just punt: use the minimum linelength reported by
7542 # all of the supported platforms: 8192 (on NT/2K/XP).
7543 lt_cv_sys_max_cmd_len=8192;
7547 # On AmigaOS with pdksh, this test takes hours, literally.
7548 # So we just punt and use a minimum line length of 8192.
7549 lt_cv_sys_max_cmd_len=8192;
7552 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7553 # This has been around since 386BSD, at least. Likely further.
7554 if test -x /sbin/sysctl; then
7555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7556 elif test -x /usr/sbin/sysctl; then
7557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7561 # And add a safety zone
7562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7566 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7567 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7568 # nice to cause kernel panics so lets avoid the loop below.
7569 # First set a reasonable default.
7570 lt_cv_sys_max_cmd_len=16384
7572 if test -x /sbin/sysconfig; then
7573 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7574 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7579 # If test is not a shell built-in, we'll probably end up computing a
7580 # maximum length that is only half of the actual maximum length, but
7582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7583 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7584 = "XX$teststring") >/dev/null 2>&1 &&
7585 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7586 lt_cv_sys_max_cmd_len=$new_result &&
7587 test $i != 17 # 1/2 MB should be enough
7590 teststring=$teststring$teststring
7593 # Add a significant safety factor because C++ compilers can tack on massive
7594 # amounts of additional arguments before passing them to the linker.
7595 # It appears as though 1/2 is a usable value.
7596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7602 if test -n $lt_cv_sys_max_cmd_len ; then
7603 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7606 { echo "$as_me:$LINENO: result: none" >&5
7607 echo "${ECHO_T}none" >&6; }
7613 # Check for command to grab the raw symbol name followed by C symbol from nm.
7614 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7615 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7616 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 # These are sane defaults that work on at least a few old systems.
7621 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7623 # Character class describing NM global symbol codes.
7624 symcode='[BCDEGRST]'
7626 # Regexp to match symbols that can be accessed directly from C.
7627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7629 # Transform an extracted symbol line into a proper C declaration
7630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7632 # Transform an extracted symbol line into symbol name and symbol address
7633 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'"
7635 # Define system-specific variables.
7640 cygwin* | mingw* | pw32*)
7641 symcode='[ABCDGISTW]'
7643 hpux*) # Its linker distinguishes data from code symbols
7644 if test "$host_cpu" = ia64; then
7645 symcode='[ABCDEGRST]'
7647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7648 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'"
7651 if test "$host_cpu" = ia64; then
7652 symcode='[ABCDGIRSTW]'
7653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7654 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'"
7658 symcode='[BCDEGRST]'
7661 symcode='[BCDEGQRST]'
7671 # Handle CRLF in mingw tool chain
7675 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7679 # If we're using GNU nm, then use its standard symbol codes.
7680 case `$NM -V 2>&1` in
7681 *GNU* | *'with BFD'*)
7682 symcode='[ABCDGIRSTW]' ;;
7685 # Try without a prefix undercore, then with it.
7686 for ac_symprfx in "" "_"; do
7688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7689 symxfrm="\\1 $ac_symprfx\\2 \\2"
7691 # Write the raw and C identifiers.
7692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7694 # Check to see that the pipe works correctly.
7698 cat > conftest.$ac_ext <<EOF
7703 void nm_test_func(){}
7707 int main(){nm_test_var='a';nm_test_func();return(0);}
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; then
7715 # Now try to grab the symbols.
7717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && test -s "$nlist"; then
7722 # Try sorting and uniquifying the output.
7723 if sort "$nlist" | uniq > "$nlist"T; then
7724 mv -f "$nlist"T "$nlist"
7729 # Make sure that we snagged all the symbols we need.
7730 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7731 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7732 cat <<EOF > conftest.$ac_ext
7738 # Now generate the symbol file.
7739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7741 cat <<EOF >> conftest.$ac_ext
7742 #if defined (__STDC__) && __STDC__
7743 # define lt_ptr_t void *
7745 # define lt_ptr_t char *
7749 /* The mapping between symbol names and symbols. */
7754 lt_preloaded_symbols[] =
7757 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7758 cat <<\EOF >> conftest.$ac_ext
7766 # Now try linking the two files.
7767 mv conftest.$ac_objext conftstm.$ac_objext
7768 lt_save_LIBS="$LIBS"
7769 lt_save_CFLAGS="$CFLAGS"
7770 LIBS="conftstm.$ac_objext"
7771 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7779 LIBS="$lt_save_LIBS"
7780 CFLAGS="$lt_save_CFLAGS"
7782 echo "cannot find nm_test_func in $nlist" >&5
7785 echo "cannot find nm_test_var in $nlist" >&5
7788 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7791 echo "$progname: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 rm -f conftest* conftst*
7796 # Do not use the global_symbol_pipe unless it works.
7797 if test "$pipe_works" = yes; then
7800 lt_cv_sys_global_symbol_pipe=
7806 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7807 lt_cv_sys_global_symbol_to_cdecl=
7809 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7810 { echo "$as_me:$LINENO: result: failed" >&5
7811 echo "${ECHO_T}failed" >&6; }
7813 { echo "$as_me:$LINENO: result: ok" >&5
7814 echo "${ECHO_T}ok" >&6; }
7817 { echo "$as_me:$LINENO: checking for objdir" >&5
7818 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7819 if test "${lt_cv_objdir+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 rm -f .libs 2>/dev/null
7823 mkdir .libs 2>/dev/null
7824 if test -d .libs; then
7827 # MS-DOS does not allow filenames that begin with a dot.
7830 rmdir .libs 2>/dev/null
7832 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7833 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7834 objdir=$lt_cv_objdir
7842 # AIX sometimes has problems with the GCC collect2 program. For some
7843 # reason, if we set the COLLECT_NAMES environment variable, the problems
7844 # vanish in a puff of smoke.
7845 if test "X${COLLECT_NAMES+set}" != Xset; then
7847 export COLLECT_NAMES
7852 # Sed substitution that helps us do robust quoting. It backslashifies
7853 # metacharacters that are still active within double-quoted strings.
7854 Xsed='sed -e 1s/^X//'
7855 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7857 # Same as above, but do not quote variable references.
7858 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7860 # Sed substitution to delay expansion of an escaped shell variable in a
7861 # double_quote_subst'ed string.
7862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7864 # Sed substitution to avoid accidental globbing in evaled expressions
7865 no_glob_subst='s/\*/\\\*/g'
7871 default_ofile=libtool
7872 can_build_shared=yes
7874 # All known linkers require a `.a' archive for static linking (except MSVC,
7875 # which needs '.lib').
7877 ltmain="$ac_aux_dir/ltmain.sh"
7878 ofile="$default_ofile"
7879 with_gnu_ld="$lt_cv_prog_gnu_ld"
7881 if test -n "$ac_tool_prefix"; then
7882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}ar; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_prog_AR+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 if test -n "$AR"; then
7890 ac_cv_prog_AR="$AR" # Let the user override the test.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_AR="${ac_tool_prefix}ar"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 if test -n "$AR"; then
7911 { echo "$as_me:$LINENO: result: $AR" >&5
7912 echo "${ECHO_T}$AR" >&6; }
7914 { echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6; }
7920 if test -z "$ac_cv_prog_AR"; then
7922 # Extract the first word of "ar", so it can be a program name with args.
7923 set dummy ar; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 if test -n "$ac_ct_AR"; then
7930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_ac_ct_AR="ar"
7940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7950 if test -n "$ac_ct_AR"; then
7951 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7952 echo "${ECHO_T}$ac_ct_AR" >&6; }
7954 { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7958 if test "x$ac_ct_AR" = x; then
7961 case $cross_compiling:$ac_tool_warned in
7963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet. If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet. If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 if test -n "$RANLIB"; then
7986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 RANLIB=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8008 echo "${ECHO_T}$RANLIB" >&6; }
8010 { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017 ac_ct_RANLIB=$RANLIB
8018 # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib; ac_word=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 if test -n "$ac_ct_RANLIB"; then
8026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_ac_ct_RANLIB="ranlib"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8048 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8050 { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8054 if test "x$ac_ct_RANLIB" = x; then
8057 case $cross_compiling:$ac_tool_warned in
8059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8060 whose name does not start with the host triplet. If you think this
8061 configuration is useful to you, please write to autoconf@gnu.org." >&5
8062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8063 whose name does not start with the host triplet. If you think this
8064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8065 ac_tool_warned=yes ;;
8067 RANLIB=$ac_ct_RANLIB
8070 RANLIB="$ac_cv_prog_RANLIB"
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}strip; ac_word=$2
8076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8078 if test "${ac_cv_prog_STRIP+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 if test -n "$STRIP"; then
8082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 STRIP=$ac_cv_prog_STRIP
8102 if test -n "$STRIP"; then
8103 { echo "$as_me:$LINENO: result: $STRIP" >&5
8104 echo "${ECHO_T}$STRIP" >&6; }
8106 { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8112 if test -z "$ac_cv_prog_STRIP"; then
8114 # Extract the first word of "strip", so it can be a program name with args.
8115 set dummy strip; ac_word=$2
8116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8118 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 if test -n "$ac_ct_STRIP"; then
8122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_STRIP="strip"
8132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8142 if test -n "$ac_ct_STRIP"; then
8143 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8144 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8146 { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8150 if test "x$ac_ct_STRIP" = x; then
8153 case $cross_compiling:$ac_tool_warned in
8155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8156 whose name does not start with the host triplet. If you think this
8157 configuration is useful to you, please write to autoconf@gnu.org." >&5
8158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8159 whose name does not start with the host triplet. If you think this
8160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8161 ac_tool_warned=yes ;;
8166 STRIP="$ac_cv_prog_STRIP"
8171 old_CFLAGS="$CFLAGS"
8173 # Set sane defaults for various variables
8174 test -z "$AR" && AR=ar
8175 test -z "$AR_FLAGS" && AR_FLAGS=cru
8176 test -z "$AS" && AS=as
8177 test -z "$CC" && CC=cc
8178 test -z "$LTCC" && LTCC=$CC
8179 test -z "$DLLTOOL" && DLLTOOL=dlltool
8180 test -z "$LD" && LD=ld
8181 test -z "$LN_S" && LN_S="ln -s"
8182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8183 test -z "$NM" && NM=nm
8184 test -z "$SED" && SED=sed
8185 test -z "$OBJDUMP" && OBJDUMP=objdump
8186 test -z "$RANLIB" && RANLIB=:
8187 test -z "$STRIP" && STRIP=:
8188 test -z "$ac_objext" && ac_objext=o
8190 # Determine commands to create old-style static archives.
8191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8192 old_postinstall_cmds='chmod 644 $oldlib'
8193 old_postuninstall_cmds=
8195 if test -n "$RANLIB"; then
8198 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8201 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8207 for cc_temp in $compiler""; do
8209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8218 # Only perform the check for file, if the check method requires it
8219 case $deplibs_check_method in
8221 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232 lt_save_MAGIC_CMD="$MAGIC_CMD"
8233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235 for ac_dir in $ac_dummy; do
8237 test -z "$ac_dir" && ac_dir=.
8238 if test -f $ac_dir/${ac_tool_prefix}file; then
8239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240 if test -n "$file_magic_test_file"; then
8241 case $deplibs_check_method in
8243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246 $EGREP "$file_magic_regex" > /dev/null; then
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such. This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem. Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8268 MAGIC_CMD="$lt_save_MAGIC_CMD"
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8282 if test -z "$lt_cv_path_MAGIC_CMD"; then
8283 if test -n "$ac_tool_prefix"; then
8284 { echo "$as_me:$LINENO: checking for file" >&5
8285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8294 lt_save_MAGIC_CMD="$MAGIC_CMD"
8295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297 for ac_dir in $ac_dummy; do
8299 test -z "$ac_dir" && ac_dir=.
8300 if test -f $ac_dir/file; then
8301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8302 if test -n "$file_magic_test_file"; then
8303 case $deplibs_check_method in
8305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308 $EGREP "$file_magic_regex" > /dev/null; then
8313 *** Warning: the command libtool uses to detect shared libraries,
8314 *** $file_magic_cmd, produces output that libtool cannot recognize.
8315 *** The result is that libtool may fail to recognize shared libraries
8316 *** as such. This will affect the creation of libtool libraries that
8317 *** depend on shared libraries, but programs linked with such libtool
8318 *** libraries will work regardless of this problem. Nevertheless, you
8319 *** may want to report the problem to your system manager and/or to
8320 *** bug-libtool@gnu.org
8330 MAGIC_CMD="$lt_save_MAGIC_CMD"
8335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336 if test -n "$MAGIC_CMD"; then
8337 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8354 enable_win32_dll=yes
8356 # Check whether --enable-libtool-lock was given.
8357 if test "${enable_libtool_lock+set}" = set; then
8358 enableval=$enable_libtool_lock;
8361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8364 # Check whether --with-pic was given.
8365 if test "${with_pic+set}" = set; then
8366 withval=$with_pic; pic_mode="$withval"
8371 test -z "$pic_mode" && pic_mode=default
8373 # Use C for the default configuration in the libtool script
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8383 # Source file extension for C test sources.
8386 # Object file extension for compiled C test sources.
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;\n"
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}\n'
8397 # If no C compiler was specified, use CC.
8400 # Allow CC to be a program name with arguments.
8404 # save warnings/boilerplate of simple test code
8405 ac_outfile=conftest.$ac_objext
8406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8408 _lt_compiler_boilerplate=`cat conftest.err`
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_linker_boilerplate=`cat conftest.err`
8419 # Check for any special shared library compilation flags.
8422 if test "$GCC" = no; then
8425 lt_prog_cc_shlib='-belf'
8429 if test -n "$lt_prog_cc_shlib"; then
8430 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8431 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8432 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8434 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8435 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8436 lt_cv_prog_cc_can_build_shared=no
8442 # Check to make sure the static flag actually works.
8444 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8445 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8446 if test "${lt_prog_compiler_static_works+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 lt_prog_compiler_static_works=no
8450 save_LDFLAGS="$LDFLAGS"
8451 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8452 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454 # The linker can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 if test -s conftest.err; then
8457 # Append any errors to the config.log.
8458 cat conftest.err 1>&5
8459 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8460 $SED '/^$/d' conftest.err >conftest.er2
8461 if diff conftest.exp conftest.er2 >/dev/null; then
8462 lt_prog_compiler_static_works=yes
8465 lt_prog_compiler_static_works=yes
8469 LDFLAGS="$save_LDFLAGS"
8472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8473 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8475 if test x"$lt_prog_compiler_static_works" = xyes; then
8478 lt_prog_compiler_static=
8484 lt_prog_compiler_no_builtin_flag=
8486 if test "$GCC" = yes; then
8487 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8490 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 lt_cv_prog_compiler_rtti_exceptions=no
8496 ac_outfile=conftest.$ac_objext
8497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8498 lt_compiler_flag="-fno-rtti -fno-exceptions"
8499 # Insert the option either (1) after the last *FLAGS variable, or
8500 # (2) before a word containing "conftest.", or (3) at the end.
8501 # Note that $ac_compile itself does not contain backslashes and begins
8502 # with a dollar sign (not a hyphen), so the echo should work correctly.
8503 # The option is referenced via a variable to avoid confusing sed.
8504 lt_compile=`echo "$ac_compile" | $SED \
8505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507 -e 's:$: $lt_compiler_flag:'`
8508 (eval echo "\"\$as_me:8508: $lt_compile\"" >&5)
8509 (eval "$lt_compile" 2>conftest.err)
8511 cat conftest.err >&5
8512 echo "$as_me:8512: \$? = $ac_status" >&5
8513 if (exit $ac_status) && test -s "$ac_outfile"; then
8514 # The compiler can only warn and ignore the option if not recognized
8515 # So say no if there are warnings other than the usual output.
8516 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8517 $SED '/^$/d' conftest.err >conftest.er2
8518 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8519 lt_cv_prog_compiler_rtti_exceptions=yes
8525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8526 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8529 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8536 lt_prog_compiler_wl=
8537 lt_prog_compiler_pic=
8538 lt_prog_compiler_static=
8540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8543 if test "$GCC" = yes; then
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_static='-static'
8549 # All AIX code is PIC.
8550 if test "$host_cpu" = ia64; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8557 # FIXME: we need at least 68020 code to build shared libraries, but
8558 # adding the `-m68020' flag to GCC prevents building anything better,
8560 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8563 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8564 # PIC is the default for these OSes.
8567 mingw* | pw32* | os2*)
8568 # This hack is so that the source file can tell whether it is being
8569 # built for inclusion in a dll (and should export symbols for example).
8570 lt_prog_compiler_pic='-DDLL_EXPORT'
8573 darwin* | rhapsody*)
8574 # PIC is the default on this platform
8575 # Common symbols not allowed in MH_DYLIB files
8576 lt_prog_compiler_pic='-fno-common'
8580 # Just because we use GCC doesn't mean we suddenly get shared libraries
8581 # on systems that don't support them.
8582 lt_prog_compiler_can_build_shared=no
8587 if test -d /usr/nec; then
8588 lt_prog_compiler_pic=-Kconform_pic
8593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8600 lt_prog_compiler_pic='-fPIC'
8606 lt_prog_compiler_pic='-fPIC'
8610 # PORTME Check for flag to pass linker flags through the system compiler.
8613 lt_prog_compiler_wl='-Wl,'
8614 if test "$host_cpu" = ia64; then
8615 # AIX 5 now supports IA64 processor
8616 lt_prog_compiler_static='-Bstatic'
8618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8622 # PIC is the default on this platform
8623 # Common symbols not allowed in MH_DYLIB files
8624 case $cc_basename in
8626 lt_prog_compiler_pic='-qnocommon'
8627 lt_prog_compiler_wl='-Wl,'
8632 mingw* | pw32* | os2*)
8633 # This hack is so that the source file can tell whether it is being
8634 # built for inclusion in a dll (and should export symbols for example).
8635 lt_prog_compiler_pic='-DDLL_EXPORT'
8638 hpux9* | hpux10* | hpux11*)
8639 lt_prog_compiler_wl='-Wl,'
8640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8647 lt_prog_compiler_pic='+Z'
8650 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8651 lt_prog_compiler_static='${wl}-a ${wl}archive'
8654 irix5* | irix6* | nonstopux*)
8655 lt_prog_compiler_wl='-Wl,'
8656 # PIC (with -KPIC) is the default.
8657 lt_prog_compiler_static='-non_shared'
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8666 case $cc_basename in
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-static'
8672 pgcc* | pgf77* | pgf90* | pgf95*)
8673 # Portland Group compilers (*not* the Pentium gcc compiler,
8674 # which looks to be a dead project)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-fpic'
8677 lt_prog_compiler_static='-Bstatic'
8680 lt_prog_compiler_wl='-Wl,'
8681 # All Alpha code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8687 osf3* | osf4* | osf5*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # All OSF/1 code is PIC.
8690 lt_prog_compiler_static='-non_shared'
8694 lt_prog_compiler_pic='-Kpic'
8695 lt_prog_compiler_static='-dn'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 case $cc_basename in
8703 lt_prog_compiler_wl='-Qoption ld ';;
8705 lt_prog_compiler_wl='-Wl,';;
8710 lt_prog_compiler_wl='-Qoption ld '
8711 lt_prog_compiler_pic='-PIC'
8712 lt_prog_compiler_static='-Bstatic'
8715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8722 if test -d /usr/nec ;then
8723 lt_prog_compiler_pic='-Kconform_pic'
8724 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_can_build_shared=no
8734 lt_prog_compiler_pic='-pic'
8735 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_can_build_shared=no
8744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8745 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8748 # Check to make sure the PIC flag actually works.
8750 if test -n "$lt_prog_compiler_pic"; then
8752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8754 if test "${lt_prog_compiler_pic_works+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 lt_prog_compiler_pic_works=no
8758 ac_outfile=conftest.$ac_objext
8759 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8760 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8761 # Insert the option either (1) after the last *FLAGS variable, or
8762 # (2) before a word containing "conftest.", or (3) at the end.
8763 # Note that $ac_compile itself does not contain backslashes and begins
8764 # with a dollar sign (not a hyphen), so the echo should work correctly.
8765 # The option is referenced via a variable to avoid confusing sed.
8766 lt_compile=`echo "$ac_compile" | $SED \
8767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769 -e 's:$: $lt_compiler_flag:'`
8770 (eval echo "\"\$as_me:8770: $lt_compile\"" >&5)
8771 (eval "$lt_compile" 2>conftest.err)
8773 cat conftest.err >&5
8774 echo "$as_me:8774: \$? = $ac_status" >&5
8775 if (exit $ac_status) && test -s "$ac_outfile"; then
8776 # The compiler can only warn and ignore the option if not recognized
8777 # So say no if there are warnings other than the usual output.
8778 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8779 $SED '/^$/d' conftest.err >conftest.er2
8780 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8781 lt_prog_compiler_pic_works=yes
8787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8788 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8790 if test x"$lt_prog_compiler_pic_works" = xyes; then
8791 case $lt_prog_compiler_pic in
8793 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8796 lt_prog_compiler_pic=
8797 lt_prog_compiler_can_build_shared=no
8802 # For platforms which do not support PIC, -DPIC is meaningless:
8804 lt_prog_compiler_pic=
8807 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 lt_cv_prog_compiler_c_o=no
8817 $rm -r conftest 2>/dev/null
8821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8823 lt_compiler_flag="-o out/conftest2.$ac_objext"
8824 # Insert the option either (1) after the last *FLAGS variable, or
8825 # (2) before a word containing "conftest.", or (3) at the end.
8826 # Note that $ac_compile itself does not contain backslashes and begins
8827 # with a dollar sign (not a hyphen), so the echo should work correctly.
8828 lt_compile=`echo "$ac_compile" | $SED \
8829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831 -e 's:$: $lt_compiler_flag:'`
8832 (eval echo "\"\$as_me:8832: $lt_compile\"" >&5)
8833 (eval "$lt_compile" 2>out/conftest.err)
8835 cat out/conftest.err >&5
8836 echo "$as_me:8836: \$? = $ac_status" >&5
8837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8839 # The compiler can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8842 $SED '/^$/d' out/conftest.err >out/conftest.er2
8843 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_c_o=yes
8849 # SGI C++ compiler will create directory out/ii_files/ for
8850 # template instantiation
8851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8852 $rm out/* && rmdir out
8858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8862 hard_links="nottested"
8863 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8864 # do not overwrite the value of need_locks provided by the user
8865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871 ln conftest.a conftest.b 2>&5 || hard_links=no
8872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8873 { echo "$as_me:$LINENO: result: $hard_links" >&5
8874 echo "${ECHO_T}$hard_links" >&6; }
8875 if test "$hard_links" = no; then
8876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8888 allow_undefined_flag=
8889 enable_shared_with_static_runtimes=no
8891 archive_expsym_cmds=
8892 old_archive_From_new_cmds=
8893 old_archive_from_expsyms_cmds=
8894 export_dynamic_flag_spec=
8895 whole_archive_flag_spec=
8896 thread_safe_flag_spec=
8897 hardcode_libdir_flag_spec=
8898 hardcode_libdir_flag_spec_ld=
8899 hardcode_libdir_separator=
8902 hardcode_shlibpath_var=unsupported
8903 link_all_deplibs=unknown
8904 hardcode_automatic=no
8907 always_export_symbols=no
8908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8909 # include_expsyms should be a list of space-separated symbols to be *always*
8910 # included in the symbol list
8912 # exclude_expsyms can be an extended regexp of symbols to exclude
8913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915 # as well as any symbol that contains `d'.
8916 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918 # platforms (ab)use it in PIC code, but their linkers get confused if
8919 # the symbol is explicitly referenced. Since portable code cannot
8920 # rely on this symbol name, it's probably fine to never include it in
8921 # preloaded symbol tables.
8922 extract_expsyms_cmds=
8923 # Just being paranoid about ensuring that cc_basename is set.
8924 for cc_temp in $compiler""; do
8926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8935 cygwin* | mingw* | pw32*)
8936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937 # When not using gcc, we currently assume that we are using
8938 # Microsoft Visual C++.
8939 if test "$GCC" != yes; then
8949 if test "$with_gnu_ld" = yes; then
8950 # If archive_cmds runs LD, not CC, wlarc should be empty
8953 # Set some defaults for GNU ld with shared library support. These
8954 # are reset later if shared libraries are not supported. Putting them
8955 # here allows them to be overridden if necessary.
8956 runpath_var=LD_RUN_PATH
8957 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8958 export_dynamic_flag_spec='${wl}--export-dynamic'
8959 # ancient GNU ld didn't support --whole-archive et. al.
8960 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8961 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8963 whole_archive_flag_spec=
8965 supports_anon_versioning=no
8966 case `$LD -v 2>/dev/null` in
8967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8970 *\ 2.11.*) ;; # other 2.11 versions
8971 *) supports_anon_versioning=yes ;;
8974 # See if GNU ld supports shared libraries.
8976 aix3* | aix4* | aix5*)
8977 # On AIX/PPC, the GNU linker is very broken
8978 if test "$host_cpu" != ia64; then
8982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8983 *** to be unable to reliably create shared libraries on AIX.
8984 *** Therefore, libtool is disabling shared libraries support. If you
8985 *** really care for shared libraries, you may want to modify your PATH
8986 *** so that a non-GNU linker is found, and then restart.
8993 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)'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
8997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8998 # that the semantics of dynamic libraries on AmigaOS, at least up
8999 # to version 4, is to share data among multiple programs linked
9000 # with the same dynamic library. Since this doesn't match the
9001 # behavior of shared libraries on other platforms, we can't use
9007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008 allow_undefined_flag=unsupported
9009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9010 # support --undefined. This deserves some investigation. FIXME
9011 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 cygwin* | mingw* | pw32*)
9018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9019 # as there is no search path for DLLs.
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 allow_undefined_flag=unsupported
9022 always_export_symbols=no
9023 enable_shared_with_static_runtimes=yes
9024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9028 # If the export-symbols file already is a .def file (1st line
9029 # is EXPORTS), use it as is; otherwise, prepend...
9030 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9031 cp $export_symbols $output_objdir/$soname.def;
9033 echo EXPORTS > $output_objdir/$soname.def;
9034 cat $export_symbols >> $output_objdir/$soname.def;
9036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9045 case $cc_basename,$host_cpu in
9046 pgcc*) # Portland Group C compiler
9047 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'
9048 tmp_addflag=' $pic_flag'
9050 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9051 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'
9052 tmp_addflag=' $pic_flag -Mnomain' ;;
9053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9054 tmp_addflag=' -i_dynamic' ;;
9055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9056 tmp_addflag=' -i_dynamic -nofor_main' ;;
9057 ifc* | ifort*) # Intel Fortran compiler
9058 tmp_addflag=' -nofor_main' ;;
9060 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 if test $supports_anon_versioning = yes; then
9063 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065 $echo "local: *; };" >> $output_objdir/$libname.ver~
9066 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9089 *** create shared libraries on Solaris systems. Therefore, libtool
9090 *** is disabling shared libraries support. We urge you to upgrade GNU
9091 *** binutils to release 2.9.1 or newer. Another option is to modify
9092 *** your PATH or compiler configuration so that the native linker is
9093 *** used, and then restart.
9096 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_shlibpath_var=no
9112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121 if test "$ld_shlibs" = no; then
9123 hardcode_libdir_flag_spec=
9124 export_dynamic_flag_spec=
9125 whole_archive_flag_spec=
9128 # PORTME fill in a description of your system's linker (not GNU ld)
9131 allow_undefined_flag=unsupported
9132 always_export_symbols=yes
9133 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'
9134 # Note: this linker hardcodes the directories in LIBPATH if there
9135 # are no directories specified by -L.
9136 hardcode_minus_L=yes
9137 if test "$GCC" = yes && test -z "$link_static_flag"; then
9138 # Neither direct hardcoding nor static linking is supported with a
9140 hardcode_direct=unsupported
9145 if test "$host_cpu" = ia64; then
9146 # On IA64, the linker does run time linking by default, so we don't
9147 # have to do anything special.
9148 aix_use_runtimelinking=no
9149 exp_sym_flag='-Bexport'
9152 # If we're using GNU nm, then we don't want the "-C" option.
9153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9154 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9155 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'
9157 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'
9159 aix_use_runtimelinking=no
9161 # Test if we are trying to use run time linking or normal
9162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163 # need to do runtime linking.
9164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165 for ld_flag in $LDFLAGS; do
9166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9167 aix_use_runtimelinking=yes
9173 exp_sym_flag='-bexport'
9174 no_entry_flag='-bnoentry'
9177 # When large executables or shared objects are built, AIX ld can
9178 # have problems creating the table of contents. If linking a library
9179 # or program results in "error TOC overflow" add -mminimal-toc to
9180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9185 hardcode_libdir_separator=':'
9186 link_all_deplibs=yes
9188 if test "$GCC" = yes; then
9189 case $host_os in aix4.[012]|aix4.[012].*)
9190 # We only want to do this on AIX 4.2 and lower, the check
9191 # below for broken collect2 doesn't work under 4.3+
9192 collect2name=`${CC} -print-prog-name=collect2`
9193 if test -f "$collect2name" && \
9194 strings "$collect2name" | grep resolve_lib_name >/dev/null
9196 # We have reworked collect2
9199 # We have old collect2
9200 hardcode_direct=unsupported
9201 # It fails to find uninstalled libraries when the uninstalled
9202 # path is not listed in the libpath. Setting hardcode_minus_L
9203 # to unsupported forces relinking
9204 hardcode_minus_L=yes
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_libdir_separator=
9209 shared_flag='-shared'
9210 if test "$aix_use_runtimelinking" = yes; then
9211 shared_flag="$shared_flag "'${wl}-G'
9215 if test "$host_cpu" = ia64; then
9216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9217 # chokes on -Wl,-G. The following line is correct:
9220 if test "$aix_use_runtimelinking" = yes; then
9221 shared_flag='${wl}-G'
9223 shared_flag='${wl}-bM:SRE'
9228 # It seems that -bexpall does not export symbols beginning with
9229 # underscore (_), so it is better to generate a list of symbols to export.
9230 always_export_symbols=yes
9231 if test "$aix_use_runtimelinking" = yes; then
9232 # Warning - without using the other runtime loading flags (-brtl),
9233 # -berok will link without error, but may produce a broken library.
9234 allow_undefined_flag='-berok'
9235 # Determine the default libpath from the value encoded in an empty executable.
9236 cat >conftest.$ac_ext <<_ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_link") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest$ac_exeext &&
9268 $as_test_x conftest$ac_exeext; then
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9272 # Check for a 64-bit object if we didn't find anything.
9273 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; }
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283 conftest$ac_exeext conftest.$ac_ext
9284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9287 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"
9289 if test "$host_cpu" = ia64; then
9290 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9291 allow_undefined_flag="-z nodefs"
9292 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"
9294 # Determine the default libpath from the value encoded in an empty executable.
9295 cat >conftest.$ac_ext <<_ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext &&
9327 $as_test_x conftest$ac_exeext; then
9329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9331 # Check for a 64-bit object if we didn't find anything.
9332 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; }
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346 # Warning - without using the other run time loading flags,
9347 # -berok will link without error, but may produce a broken library.
9348 no_undefined_flag=' ${wl}-bernotok'
9349 allow_undefined_flag=' ${wl}-berok'
9350 # -bexpall does not export symbols beginning with underscore (_)
9351 always_export_symbols=yes
9352 # Exported symbols can be pulled into shared objects from archives
9353 whole_archive_flag_spec=' '
9354 archive_cmds_need_lc=yes
9355 # This is similar to how AIX traditionally builds its shared libraries.
9356 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'
9362 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)'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_minus_L=yes
9365 # see comment about different semantics on the GNU ld section
9370 export_dynamic_flag_spec=-rdynamic
9373 cygwin* | mingw* | pw32*)
9374 # When not using gcc, we currently assume that we are using
9375 # Microsoft Visual C++.
9376 # hardcode_libdir_flag_spec is actually meaningless, as there is
9377 # no search path for DLLs.
9378 hardcode_libdir_flag_spec=' '
9379 allow_undefined_flag=unsupported
9380 # Tell ltmain to make .lib files, not .a files.
9382 # Tell ltmain to make .dll files, not .so files.
9384 # FIXME: Setting linknames here is a bad hack.
9385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386 # The linker will automatically build a .lib file if we build a DLL.
9387 old_archive_From_new_cmds='true'
9388 # FIXME: Should let the user specify the lib program.
9389 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390 fix_srcfile_path='`cygpath -w "$srcfile"`'
9391 enable_shared_with_static_runtimes=yes
9394 darwin* | rhapsody*)
9396 rhapsody* | darwin1.[012])
9397 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9403 case ${MACOSX_DEPLOYMENT_TARGET} in
9405 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9408 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9414 archive_cmds_need_lc=no
9416 hardcode_automatic=yes
9417 hardcode_shlibpath_var=unsupported
9418 whole_archive_flag_spec=''
9419 link_all_deplibs=yes
9420 if test "$GCC" = yes ; then
9421 output_verbose_link_cmd='echo'
9422 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9425 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}'
9426 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}'
9428 case $cc_basename in
9430 output_verbose_link_cmd='echo'
9431 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9434 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}'
9435 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}'
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455 # support. Future versions do this automatically, but an explicit c++rt0.o
9456 # does not break anything, and helps significantly (at the cost of a little
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460 hardcode_libdir_flag_spec='-R$libdir'
9462 hardcode_shlibpath_var=no
9465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_minus_L=yes
9470 hardcode_shlibpath_var=no
9473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474 freebsd* | kfreebsd*-gnu | dragonfly*)
9475 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9478 hardcode_shlibpath_var=no
9482 if test "$GCC" = yes; then
9483 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'
9485 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'
9487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488 hardcode_libdir_separator=:
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9494 export_dynamic_flag_spec='${wl}-E'
9498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9517 if test "$with_gnu_ld" = no; then
9520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521 hardcode_libdir_flag_spec_ld='+b $libdir'
9522 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9527 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537 hardcode_libdir_separator=:
9539 export_dynamic_flag_spec='${wl}-E'
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9549 irix5* | irix6* | nonstopux*)
9550 if test "$GCC" = yes; then
9551 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'
9553 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'
9554 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 link_all_deplibs=yes
9562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9567 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_shlibpath_var=no
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 hardcode_shlibpath_var=no
9582 hardcode_shlibpath_var=no
9583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec='${wl}-E'
9590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-R$libdir'
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_minus_L=yes
9605 allow_undefined_flag=unsupported
9606 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'
9607 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9611 if test "$GCC" = yes; then
9612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613 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'
9615 allow_undefined_flag=' -expect_unresolved \*'
9616 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
9622 osf4* | osf5*) # as osf3* with the addition of -msym flag
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625 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'
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 allow_undefined_flag=' -expect_unresolved \*'
9629 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'
9630 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631 $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'
9633 # Both c and cxx compiler support -rpath directly
9634 hardcode_libdir_flag_spec='-rpath $libdir'
9636 hardcode_libdir_separator=:
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_shlibpath_var=no
9642 export_dynamic_flag_spec='${wl}-Bexport'
9643 runpath_var=LD_RUN_PATH
9644 hardcode_runpath_var=yes
9648 no_undefined_flag=' -z text'
9649 if test "$GCC" = yes; then
9651 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9656 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9663 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 # The compiler driver will combine linker options so we
9666 # cannot just pass the convience library names through
9667 # without $wl, iff we do not link with $LD.
9668 # Luckily, gcc supports the same syntax we need for Sun Studio.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9674 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' ;;
9677 link_all_deplibs=yes
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9695 case $host_vendor in
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_shlibpath_var=no
9737 hardcode_runpath_var=yes
9738 runpath_var=LD_RUN_PATH
9741 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9742 no_undefined_flag='${wl}-z ${wl}text'
9743 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 runpath_var='LD_RUN_PATH'
9749 hardcode_shlibpath_var=no
9753 no_undefined_flag=' -z text'
9754 # $CC -shared without GNU ld will not create a library from C++
9755 # object files and a static libstdc++, better avoid it by now
9756 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759 hardcode_libdir_flag_spec=
9760 hardcode_shlibpath_var=no
9761 runpath_var='LD_RUN_PATH'
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9776 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6; }
9778 test "$ld_shlibs" = no && can_build_shared=no
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 # Do we need to explicitly link libc?
9788 case "x$archive_cmds_need_lc" in
9790 # Assume -lc should be added
9791 archive_cmds_need_lc=yes
9793 if test "$enable_shared" = yes && test "$GCC" = yes; then
9794 case $archive_cmds in
9796 # FIXME: we may have to deal with multi-command sequences.
9799 # Test whether the compiler implicitly links with -lc since on some
9800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801 # to ld, don't add -lc before -lgcc.
9802 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } 2>conftest.err; then
9814 libobjs=conftest.$ac_objext
9816 wl=$lt_prog_compiler_wl
9822 lt_save_allow_undefined_flag=$allow_undefined_flag
9823 allow_undefined_flag=
9824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }
9830 archive_cmds_need_lc=no
9832 archive_cmds_need_lc=yes
9834 allow_undefined_flag=$lt_save_allow_undefined_flag
9836 cat conftest.err 1>&5
9839 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9850 libname_spec='lib$name'
9858 shlibpath_overrides_runpath=unknown
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865 # if the path contains ";" then we assume it to be the separator
9866 # otherwise default to the standard path separator (i.e. ":") - it is
9867 # assumed that no part of a normal pathname contains ";" but that should
9868 # okay in the real world where ";" in dirpaths is itself problematic.
9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887 shlibpath_var=LIBPATH
9889 # AIX 3 has no versioning support, so we append a major version to the name.
9890 soname_spec='${libname}${release}${shared_ext}$major'
9897 hardcode_into_libs=yes
9898 if test "$host_cpu" = ia64; then
9899 # AIX 5 supports IA64
9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901 shlibpath_var=LD_LIBRARY_PATH
9903 # With GCC up to 2.95.x, collect2 would create an import file
9904 # for dependence libraries. The import file would start with
9905 # the line `#! .'. This would cause the generated library to
9906 # depend on `.', always an invalid library. This was fixed in
9907 # development snapshots of GCC prior to 3.0.
9909 aix4 | aix4.[01] | aix4.[01].*)
9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920 # soname into executable. Probably we can add versioning support to
9921 # collect2, so additional links can be useful in future.
9922 if test "$aix_use_runtimelinking" = yes; then
9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924 # instead of lib<name>.a to let people know that these are not
9925 # typical AIX shared libraries.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 # We preserve .a as extension for shared libraries through AIX4.2
9929 # and later when we are not doing run time linking.
9930 library_names_spec='${libname}${release}.a $libname.a'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LIBPATH
9938 library_names_spec='$libname.ixlibrary $libname.a'
9939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940 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'
9944 library_names_spec='${libname}${shared_ext}'
9945 dynamic_linker="$host_os ld.so"
9946 shlibpath_var=LIBRARY_PATH
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958 # the default ld.so.conf also contains /usr/contrib/lib and
9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960 # libtool to hard-code these into programs
9963 cygwin* | mingw* | pw32*)
9964 version_type=windows
9969 case $GCC,$host_os in
9970 yes,cygwin* | yes,mingw* | yes,pw32*)
9971 library_names_spec='$libname.dll.a'
9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973 postinstall_cmds='base_file=`basename \${file}`~
9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975 dldir=$destdir/`dirname \$dlpath`~
9976 test -d \$dldir || mkdir -p \$dldir~
9977 $install_prog $dir/$dlname \$dldir/$dlname~
9978 chmod a+x \$dldir/$dlname'
9979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980 dlpath=$dir/\$dldll~
9982 shlibpath_overrides_runpath=yes
9986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9991 # MinGW DLLs use traditional 'lib' prefix
9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995 # It is most probably a Windows format PATH printed by
9996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997 # path with ; separators, and with drive letters. We can handle the
9998 # drive letters (cygwin fileutils understands them), so leave them,
9999 # especially as we might pass files found there to a mingw objdump,
10000 # which wouldn't understand a cygwinified path. Ahh.
10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10022 darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
10031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033 if test "$GCC" = yes; then
10034 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"`
10036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 dynamic_linker='GNU ld.so'
10066 freebsd* | dragonfly*)
10067 # DragonFly does not have aout. When/if they implement a new
10068 # versioning mechanism, adjust this.
10069 if test -x /usr/bin/objformat; then
10070 objformat=`/usr/bin/objformat`
10073 freebsd[123]*) objformat=aout ;;
10074 *) objformat=elf ;;
10077 version_type=freebsd-$objformat
10078 case $version_type in
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10089 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes
10094 freebsd3.[01]* | freebsdelf3.[01]*)
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10099 shlibpath_overrides_runpath=no
10100 hardcode_into_libs=yes
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 hardcode_into_libs=yes
10115 hpux9* | hpux10* | hpux11*)
10116 # Give a soname corresponding to the major version so that dld.sl refuses to
10117 # link against other versions.
10124 hardcode_into_libs=yes
10125 dynamic_linker="$host_os dld.so"
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 if test "X$HPUX_IA64_MODE" = X32; then
10131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.sl"
10141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=SHLIB_PATH
10152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10158 postinstall_cmds='chmod 555 $lib'
10161 irix5* | irix6* | nonstopux*)
10163 nonstopux*) version_type=nonstopux ;;
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10176 irix5* | nonstopux*)
10177 libsuff= shlibsuff=
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182 libsuff= shlibsuff= libmagic=32-bit;;
10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184 libsuff=32 shlibsuff=N32 libmagic=N32;;
10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187 *) libsuff= shlibsuff= libmagic=never-match;;
10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192 shlibpath_overrides_runpath=no
10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195 hardcode_into_libs=yes
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10203 # This must be Linux ELF.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 # This implies no fast_install, which is unacceptable.
10214 # Some rework will be needed to allow for fast_install
10215 # before this can be enabled.
10216 hardcode_into_libs=yes
10218 # Append ld.so.conf contents to the search path
10219 if test -f /etc/ld.so.conf; then
10220 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' ' '`
10221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10224 # We used to test for /lib/ld.so.1 and disable shared libraries on
10225 # powerpc, because MkLinux only supported shared libraries with the
10226 # GNU dynamic linker. Since this was broken with cross compilers,
10227 # most powerpc-linux boxes support dynamic linking these days and
10228 # people can always --disable-shared, the test was removed, and we
10229 # assume the GNU/Linux dynamic linker is in use.
10230 dynamic_linker='GNU/Linux ld.so'
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=no
10241 hardcode_into_libs=yes
10242 dynamic_linker='GNU ld.so'
10249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252 dynamic_linker='NetBSD (a.out) ld.so'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 dynamic_linker='NetBSD ld.elf_so'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 hardcode_into_libs=yes
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=yes
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10286 *) need_version=no ;;
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293 openbsd2.[89] | openbsd2.[89].*)
10294 shlibpath_overrides_runpath=no
10297 shlibpath_overrides_runpath=yes
10301 shlibpath_overrides_runpath=yes
10306 libname_spec='$name'
10309 library_names_spec='$libname${shared_ext} $libname.a'
10310 dynamic_linker='OS/2 ld.exe'
10311 shlibpath_var=LIBPATH
10314 osf3* | osf4* | osf5*)
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 shlibpath_var=LD_LIBRARY_PATH
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=yes
10340 hardcode_into_libs=yes
10341 # ldd complains unless libraries are executable
10342 postinstall_cmds='chmod +x $lib'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 if test "$with_gnu_ld" = yes; then
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 case $host_vendor in
10364 shlibpath_overrides_runpath=no
10366 export_dynamic_flag_spec='${wl}-Blargedynsym'
10367 runpath_var=LD_RUN_PATH
10375 shlibpath_overrides_runpath=no
10376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10382 if test -d /usr/nec ;then
10384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385 soname_spec='$libname${shared_ext}.$major'
10386 shlibpath_var=LD_LIBRARY_PATH
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10402 echo "${ECHO_T}$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10408 if test -n "$hardcode_libdir_flag_spec" || \
10409 test -n "$runpath_var" || \
10410 test "X$hardcode_automatic" = "Xyes" ; then
10412 # We can hardcode non-existant directories.
10413 if test "$hardcode_direct" != no &&
10414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10415 # have to relink, otherwise we might link with an installed library
10416 # when we should be linking with a yet-to-be-installed one
10417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10418 test "$hardcode_minus_L" != no; then
10419 # Linking always hardcodes the temporary library directory.
10420 hardcode_action=relink
10422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10423 hardcode_action=immediate
10426 # We cannot hardcode anything, or else we can only hardcode existing
10428 hardcode_action=unsupported
10430 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10431 echo "${ECHO_T}$hardcode_action" >&6; }
10433 if test "$hardcode_action" = relink; then
10434 # Fast installation is not supported
10435 enable_fast_install=no
10436 elif test "$shlibpath_overrides_runpath" = yes ||
10437 test "$enable_shared" = no; then
10438 # Fast installation is not necessary
10439 enable_fast_install=needless
10444 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449 { echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6; }
10452 # FIXME - insert some real tests, host_os isn't really good enough
10455 if test -n "$STRIP" ; then
10456 striplib="$STRIP -x"
10457 { echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6; }
10460 { echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6; }
10465 { echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6; }
10471 if test "x$enable_dlopen" != xyes; then
10472 enable_dlopen=unknown
10473 enable_dlopen_self=unknown
10474 enable_dlopen_self_static=unknown
10481 lt_cv_dlopen="load_add_on"
10483 lt_cv_dlopen_self=yes
10487 lt_cv_dlopen="LoadLibrary"
10492 lt_cv_dlopen="dlopen"
10497 # if libdl is installed we need to link against it
10498 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 ac_check_lib_save_LIBS=$LIBS
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest$ac_exeext &&
10544 $as_test_x conftest$ac_exeext; then
10545 ac_cv_lib_dl_dlopen=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_cv_lib_dl_dlopen=no
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10559 if test $ac_cv_lib_dl_dlopen = yes; then
10560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10563 lt_cv_dlopen="dyld"
10565 lt_cv_dlopen_self=yes
10572 { echo "$as_me:$LINENO: checking for shl_load" >&5
10573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574 if test "${ac_cv_func_shl_load+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10585 #define shl_load innocuous_shl_load
10587 /* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char shl_load (); below.
10589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590 <limits.h> exists even on freestanding compilers. */
10593 # include <limits.h>
10595 # include <assert.h>
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined __stub_shl_load || defined __stub___shl_load
10617 return shl_load ();
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 ac_cv_func_shl_load=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_func_shl_load=no
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10652 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10653 if test $ac_cv_func_shl_load = yes; then
10654 lt_cv_dlopen="shl_load"
10656 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10657 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_check_lib_save_LIBS=$LIBS
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10680 return shl_load ();
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest$ac_exeext &&
10702 $as_test_x conftest$ac_exeext; then
10703 ac_cv_lib_dld_shl_load=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_lib_dld_shl_load=no
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10717 if test $ac_cv_lib_dld_shl_load = yes; then
10718 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10720 { echo "$as_me:$LINENO: checking for dlopen" >&5
10721 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_dlopen+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10733 #define dlopen innocuous_dlopen
10735 /* System header to define __stub macros and hopefully few prototypes,
10736 which can conflict with char dlopen (); below.
10737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738 <limits.h> exists even on freestanding compilers. */
10741 # include <limits.h>
10743 # include <assert.h>
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined __stub_dlopen || defined __stub___dlopen
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 ac_cv_func_dlopen=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_func_dlopen=no
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10800 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10801 if test $ac_cv_func_dlopen = yes; then
10802 lt_cv_dlopen="dlopen"
10804 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10805 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 ac_check_lib_save_LIBS=$LIBS
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_link") 2>conftest.er1
10842 grep -v '^ *+' conftest.er1 >conftest.err
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest$ac_exeext &&
10850 $as_test_x conftest$ac_exeext; then
10851 ac_cv_lib_dl_dlopen=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_lib_dl_dlopen=no
10859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_link") 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && {
10911 test -z "$ac_c_werror_flag" ||
10912 test ! -s conftest.err
10913 } && test -s conftest$ac_exeext &&
10914 $as_test_x conftest$ac_exeext; then
10915 ac_cv_lib_svld_dlopen=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_lib_svld_dlopen=no
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10929 if test $ac_cv_lib_svld_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 ac_check_lib_save_LIBS=$LIBS
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10956 return dld_link ();
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext &&
10978 $as_test_x conftest$ac_exeext; then
10979 ac_cv_lib_dld_dld_link=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_lib_dld_dld_link=no
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10993 if test $ac_cv_lib_dld_dld_link = yes; then
10994 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11015 if test "x$lt_cv_dlopen" != xno; then
11021 case $lt_cv_dlopen in
11023 save_CPPFLAGS="$CPPFLAGS"
11024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11026 save_LDFLAGS="$LDFLAGS"
11027 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11030 LIBS="$lt_cv_dlopen_libs $LIBS"
11032 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11034 if test "${lt_cv_dlopen_self+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 if test "$cross_compiling" = yes; then :
11038 lt_cv_dlopen_self=cross
11040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041 lt_status=$lt_dlunknown
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11053 # define LT_DLGLOBAL RTLD_GLOBAL
11056 # define LT_DLGLOBAL DL_GLOBAL
11058 # define LT_DLGLOBAL 0
11062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063 find out it does not work in some platform. */
11064 #ifndef LT_DLLAZY_OR_NOW
11066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11069 # define LT_DLLAZY_OR_NOW DL_LAZY
11072 # define LT_DLLAZY_OR_NOW RTLD_NOW
11075 # define LT_DLLAZY_OR_NOW DL_NOW
11077 # define LT_DLLAZY_OR_NOW 0
11085 extern "C" void exit (int);
11088 void fnord() { int i=42;}
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11097 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098 /* dlclose (self); */
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11109 (./conftest; exit; ) >&5 2>/dev/null
11111 case x$lt_status in
11112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11114 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11117 # compilation failed
11118 lt_cv_dlopen_self=no
11125 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11128 if test "x$lt_cv_dlopen_self" = xyes; then
11129 LDFLAGS="$LDFLAGS $link_static_flag"
11130 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11132 if test "${lt_cv_dlopen_self_static+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 if test "$cross_compiling" = yes; then :
11136 lt_cv_dlopen_self_static=cross
11138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139 lt_status=$lt_dlunknown
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11151 # define LT_DLGLOBAL RTLD_GLOBAL
11154 # define LT_DLGLOBAL DL_GLOBAL
11156 # define LT_DLGLOBAL 0
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161 find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11167 # define LT_DLLAZY_OR_NOW DL_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_NOW
11173 # define LT_DLLAZY_OR_NOW DL_NOW
11175 # define LT_DLLAZY_OR_NOW 0
11183 extern "C" void exit (int);
11186 void fnord() { int i=42;}
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196 /* dlclose (self); */
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207 (./conftest; exit; ) >&5 2>/dev/null
11209 case x$lt_status in
11210 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11215 # compilation failed
11216 lt_cv_dlopen_self_static=no
11223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11227 CPPFLAGS="$save_CPPFLAGS"
11228 LDFLAGS="$save_LDFLAGS"
11233 case $lt_cv_dlopen_self in
11234 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235 *) enable_dlopen_self=unknown ;;
11238 case $lt_cv_dlopen_self_static in
11239 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240 *) enable_dlopen_self_static=unknown ;;
11245 # Report which librarie types wil actually be built
11246 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11247 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11248 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11249 echo "${ECHO_T}$can_build_shared" >&6; }
11251 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11252 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11272 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11273 echo "${ECHO_T}$enable_shared" >&6; }
11275 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { echo "$as_me:$LINENO: result: $enable_static" >&5
11280 echo "${ECHO_T}$enable_static" >&6; }
11282 # The else clause should only fire when bootstrapping the
11283 # libtool distribution, otherwise you forgot to ship ltmain.sh
11284 # with your package, and you will get complaints that there are
11285 # no rules to generate ltmain.sh.
11286 if test -f "$ltmain"; then
11287 # See if we are running on zsh, and set the options which allow our commands through
11288 # without removal of \ escapes.
11289 if test -n "${ZSH_VERSION+set}" ; then
11290 setopt NO_GLOB_SUBST
11292 # Now quote all the things that may contain metacharacters while being
11293 # careful not to overquote the AC_SUBSTed values. We take copies of the
11294 # variables and quote the copies for generation of the libtool script.
11295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11299 deplibs_check_method reload_flag reload_cmds need_locks \
11300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11301 lt_cv_sys_global_symbol_to_c_name_address \
11302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11303 old_postinstall_cmds old_postuninstall_cmds \
11307 lt_prog_compiler_wl \
11308 lt_prog_compiler_pic \
11309 lt_prog_compiler_static \
11310 lt_prog_compiler_no_builtin_flag \
11311 export_dynamic_flag_spec \
11312 thread_safe_flag_spec \
11313 whole_archive_flag_spec \
11314 enable_shared_with_static_runtimes \
11316 old_archive_from_new_cmds \
11321 compiler_lib_search_path \
11323 archive_expsym_cmds \
11325 postuninstall_cmds \
11326 old_archive_from_expsyms_cmds \
11327 allow_undefined_flag \
11328 no_undefined_flag \
11329 export_symbols_cmds \
11330 hardcode_libdir_flag_spec \
11331 hardcode_libdir_flag_spec_ld \
11332 hardcode_libdir_separator \
11333 hardcode_automatic \
11335 module_expsym_cmds \
11336 lt_cv_prog_compiler_c_o \
11338 include_expsyms; do
11341 old_archive_cmds | \
11342 old_archive_from_new_cmds | \
11344 archive_expsym_cmds | \
11346 module_expsym_cmds | \
11347 old_archive_from_expsyms_cmds | \
11348 export_symbols_cmds | \
11349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11350 postinstall_cmds | postuninstall_cmds | \
11351 old_postinstall_cmds | old_postuninstall_cmds | \
11352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11353 # Double-quote double-evaled strings.
11354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11363 *'\$0 --fallback-echo"')
11364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11368 cfgfile="${ofile}T"
11369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11371 { echo "$as_me:$LINENO: creating $ofile" >&5
11372 echo "$as_me: creating $ofile" >&6;}
11374 cat <<__EOF__ >> "$cfgfile"
11377 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11382 # Free Software Foundation, Inc.
11384 # This file is part of GNU Libtool:
11385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11387 # This program is free software; you can redistribute it and/or modify
11388 # it under the terms of the GNU General Public License as published by
11389 # the Free Software Foundation; either version 2 of the License, or
11390 # (at your option) any later version.
11392 # This program is distributed in the hope that it will be useful, but
11393 # WITHOUT ANY WARRANTY; without even the implied warranty of
11394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11395 # General Public License for more details.
11397 # You should have received a copy of the GNU General Public License
11398 # along with this program; if not, write to the Free Software
11399 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11401 # As a special exception to the GNU General Public License, if you
11402 # distribute this file as part of a program that contains a
11403 # configuration script generated by Autoconf, you may include it under
11404 # the same distribution terms that you use for the rest of that program.
11406 # A sed program that does not truncate output.
11409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11410 Xsed="$SED -e 1s/^X//"
11412 # The HP-UX ksh and POSIX shell print the target directory to stdout
11413 # if CDPATH is set.
11414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11416 # The names of the tagged configurations supported by this script.
11419 # ### BEGIN LIBTOOL CONFIG
11421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11423 # Shell to use when invoking shell scripts.
11426 # Whether or not to build shared libraries.
11427 build_libtool_libs=$enable_shared
11429 # Whether or not to build static libraries.
11430 build_old_libs=$enable_static
11432 # Whether or not to add -lc for building shared libraries.
11433 build_libtool_need_lc=$archive_cmds_need_lc
11435 # Whether or not to disallow shared libs when runtime libs are static
11436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11438 # Whether or not to optimize for fast installation.
11439 fast_install=$enable_fast_install
11442 host_alias=$host_alias
11446 # The build system.
11447 build_alias=$build_alias
11451 # An echo program that does not interpret backslashes.
11456 AR_FLAGS=$lt_AR_FLAGS
11461 # A language-specific compiler.
11464 # Is the compiler the GNU C compiler?
11470 # The linker used to build libraries.
11473 # Whether we need hard or soft links.
11476 # A BSD-compatible nm program.
11479 # A symbol stripping program
11482 # Used to examine libraries when file_magic_cmd begins "file"
11483 MAGIC_CMD=$MAGIC_CMD
11485 # Used on cygwin: DLL creation program.
11488 # Used on cygwin: object dumper.
11491 # Used on cygwin: assembler.
11494 # The name of the directory that contains temporary libtool files.
11497 # How to create reloadable object files.
11498 reload_flag=$lt_reload_flag
11499 reload_cmds=$lt_reload_cmds
11501 # How to pass a linker flag through the compiler.
11502 wl=$lt_lt_prog_compiler_wl
11504 # Object file suffix (normally "o").
11505 objext="$ac_objext"
11507 # Old archive suffix (normally "a").
11510 # Shared library suffix (normally ".so").
11511 shrext_cmds='$shrext_cmds'
11513 # Executable file suffix (normally "").
11516 # Additional compiler flags for building library objects.
11517 pic_flag=$lt_lt_prog_compiler_pic
11520 # What is the maximum length of a command?
11521 max_cmd_len=$lt_cv_sys_max_cmd_len
11523 # Does compiler simultaneously support -c and -o options?
11524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11526 # Must we lock files when doing compilation?
11527 need_locks=$lt_need_locks
11529 # Do we need the lib prefix for modules?
11530 need_lib_prefix=$need_lib_prefix
11532 # Do we need a version for libraries?
11533 need_version=$need_version
11535 # Whether dlopen is supported.
11536 dlopen_support=$enable_dlopen
11538 # Whether dlopen of programs is supported.
11539 dlopen_self=$enable_dlopen_self
11541 # Whether dlopen of statically linked programs is supported.
11542 dlopen_self_static=$enable_dlopen_self_static
11544 # Compiler flag to prevent dynamic linking.
11545 link_static_flag=$lt_lt_prog_compiler_static
11547 # Compiler flag to turn off builtin functions.
11548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11550 # Compiler flag to allow reflexive dlopens.
11551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11553 # Compiler flag to generate shared objects directly from archives.
11554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11556 # Compiler flag to generate thread-safe objects.
11557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11559 # Library versioning type.
11560 version_type=$version_type
11562 # Format of library name prefix.
11563 libname_spec=$lt_libname_spec
11565 # List of archive names. First name is the real one, the rest are links.
11566 # The last name is the one that the linker finds with -lNAME.
11567 library_names_spec=$lt_library_names_spec
11569 # The coded name of the library, if different from the real name.
11570 soname_spec=$lt_soname_spec
11572 # Commands used to build and install an old-style archive.
11574 old_archive_cmds=$lt_old_archive_cmds
11575 old_postinstall_cmds=$lt_old_postinstall_cmds
11576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11578 # Create an old-style archive from a shared archive.
11579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11581 # Create a temporary old-style archive to link instead of a shared archive.
11582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11584 # Commands used to build and install a shared archive.
11585 archive_cmds=$lt_archive_cmds
11586 archive_expsym_cmds=$lt_archive_expsym_cmds
11587 postinstall_cmds=$lt_postinstall_cmds
11588 postuninstall_cmds=$lt_postuninstall_cmds
11590 # Commands used to build a loadable module (assumed same as above if empty)
11591 module_cmds=$lt_module_cmds
11592 module_expsym_cmds=$lt_module_expsym_cmds
11594 # Commands to strip libraries.
11595 old_striplib=$lt_old_striplib
11596 striplib=$lt_striplib
11598 # Dependencies to place before the objects being linked to create a
11600 predep_objects=$lt_predep_objects
11602 # Dependencies to place after the objects being linked to create a
11604 postdep_objects=$lt_postdep_objects
11606 # Dependencies to place before the objects being linked to create a
11608 predeps=$lt_predeps
11610 # Dependencies to place after the objects being linked to create a
11612 postdeps=$lt_postdeps
11614 # The library search path used internally by the compiler when linking
11615 # a shared library.
11616 compiler_lib_search_path=$lt_compiler_lib_search_path
11618 # Method to check whether dependent libraries are shared objects.
11619 deplibs_check_method=$lt_deplibs_check_method
11621 # Command to use when deplibs_check_method == file_magic.
11622 file_magic_cmd=$lt_file_magic_cmd
11624 # Flag that allows shared libraries with undefined symbols to be built.
11625 allow_undefined_flag=$lt_allow_undefined_flag
11627 # Flag that forces no undefined symbols.
11628 no_undefined_flag=$lt_no_undefined_flag
11630 # Commands used to finish a libtool library installation in a directory.
11631 finish_cmds=$lt_finish_cmds
11633 # Same as above, but a single script fragment to be evaled but not shown.
11634 finish_eval=$lt_finish_eval
11636 # Take the output of nm and produce a listing of raw symbols and C names.
11637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11639 # Transform the output of nm in a proper C declaration
11640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11642 # Transform the output of nm in a C name address pair
11643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11645 # This is the shared library runtime path variable.
11646 runpath_var=$runpath_var
11648 # This is the shared library path variable.
11649 shlibpath_var=$shlibpath_var
11651 # Is shlibpath searched before the hard-coded library search path?
11652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11654 # How to hardcode a shared library path into an executable.
11655 hardcode_action=$hardcode_action
11657 # Whether we should hardcode library paths into libraries.
11658 hardcode_into_libs=$hardcode_into_libs
11660 # Flag to hardcode \$libdir into a binary during linking.
11661 # This must work even if \$libdir does not exist.
11662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11664 # If ld is used when linking, flag to hardcode \$libdir into
11665 # a binary during linking. This must work even if \$libdir does
11667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11669 # Whether we need a single -rpath flag with a separated argument.
11670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_direct=$hardcode_direct
11676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11677 # resulting binary.
11678 hardcode_minus_L=$hardcode_minus_L
11680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11681 # the resulting binary.
11682 hardcode_shlibpath_var=$hardcode_shlibpath_var
11684 # Set to yes if building a shared library automatically hardcodes DIR into the library
11685 # and all subsequent libraries and executables linked against it.
11686 hardcode_automatic=$hardcode_automatic
11688 # Variables whose values should be saved in libtool wrapper scripts and
11689 # restored at relink time.
11690 variables_saved_for_relink="$variables_saved_for_relink"
11692 # Whether libtool must link a program against all its dependency libraries.
11693 link_all_deplibs=$link_all_deplibs
11695 # Compile-time system search path for libraries
11696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11698 # Run-time system search path for libraries
11699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11701 # Fix the shell variable \$srcfile for the compiler.
11702 fix_srcfile_path="$fix_srcfile_path"
11704 # Set to yes if exported symbols are required.
11705 always_export_symbols=$always_export_symbols
11707 # The commands to list exported symbols.
11708 export_symbols_cmds=$lt_export_symbols_cmds
11710 # The commands to extract the exported symbol list from a shared archive.
11711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11713 # Symbols that should not be listed in the preloaded symbols.
11714 exclude_expsyms=$lt_exclude_expsyms
11716 # Symbols that must always be exported.
11717 include_expsyms=$lt_include_expsyms
11719 # ### END LIBTOOL CONFIG
11726 cat <<\EOF >> "$cfgfile"
11728 # AIX sometimes has problems with the GCC collect2 program. For some
11729 # reason, if we set the COLLECT_NAMES environment variable, the problems
11730 # vanish in a puff of smoke.
11731 if test "X${COLLECT_NAMES+set}" != Xset; then
11733 export COLLECT_NAMES
11739 # We use sed instead of cat because bash on DJGPP gets confused if
11740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11741 # text mode, it properly converts lines to CR/LF. This bash problem
11742 # is reportedly fixed, but why not run on old versions too?
11743 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11745 mv -f "$cfgfile" "$ofile" || \
11746 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11750 # If there is no Makefile yet, we rely on a make rule to execute
11751 # `config.status --recheck' to rerun these tests and create the
11752 # libtool script then.
11753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11754 if test -f "$ltmain_in"; then
11755 test -f Makefile && make "$ltmain"
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11769 # Check whether --with-tags was given.
11770 if test "${with_tags+set}" = set; then
11771 withval=$with_tags; tagnames="$withval"
11775 if test -f "$ltmain" && test -n "$tagnames"; then
11776 if test ! -f "${ofile}"; then
11777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11781 if test -z "$LTCC"; then
11782 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11783 if test -z "$LTCC"; then
11784 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11792 # Extract list of available tagged configurations in $ofile.
11793 # Note that this assumes the entire list is on one line.
11794 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11797 for tagname in $tagnames; do
11799 # Check whether tagname contains only valid characters
11800 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11802 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11803 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11804 { (exit 1); exit 1; }; }
11808 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11810 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11811 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11812 { (exit 1); exit 1; }; }
11815 # Update the list of available tags.
11816 if test -n "$tagname"; then
11817 echo appending configuration tag \"$tagname\" to $ofile
11821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11822 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11823 (test "X$CXX" != "Xg++"))) ; then
11831 if test -n "$F77" && test "X$F77" != "Xno"; then
11839 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11849 # Source file extension for RC test sources.
11852 # Object file extension for compiled RC test sources.
11856 # Code to be used in simple compile tests
11857 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11859 # Code to be used in simple link tests
11860 lt_simple_link_test_code="$lt_simple_compile_test_code"
11862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11864 # If no C compiler was specified, use CC.
11867 # Allow CC to be a program name with arguments.
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11885 # Allow CC to be a program name with arguments.
11890 for cc_temp in $compiler""; do
11892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11900 lt_cv_prog_compiler_c_o_RC=yes
11902 # The else clause should only fire when bootstrapping the
11903 # libtool distribution, otherwise you forgot to ship ltmain.sh
11904 # with your package, and you will get complaints that there are
11905 # no rules to generate ltmain.sh.
11906 if test -f "$ltmain"; then
11907 # See if we are running on zsh, and set the options which allow our commands through
11908 # without removal of \ escapes.
11909 if test -n "${ZSH_VERSION+set}" ; then
11910 setopt NO_GLOB_SUBST
11912 # Now quote all the things that may contain metacharacters while being
11913 # careful not to overquote the AC_SUBSTed values. We take copies of the
11914 # variables and quote the copies for generation of the libtool script.
11915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11919 deplibs_check_method reload_flag reload_cmds need_locks \
11920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11921 lt_cv_sys_global_symbol_to_c_name_address \
11922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11923 old_postinstall_cmds old_postuninstall_cmds \
11927 lt_prog_compiler_wl_RC \
11928 lt_prog_compiler_pic_RC \
11929 lt_prog_compiler_static_RC \
11930 lt_prog_compiler_no_builtin_flag_RC \
11931 export_dynamic_flag_spec_RC \
11932 thread_safe_flag_spec_RC \
11933 whole_archive_flag_spec_RC \
11934 enable_shared_with_static_runtimes_RC \
11935 old_archive_cmds_RC \
11936 old_archive_from_new_cmds_RC \
11937 predep_objects_RC \
11938 postdep_objects_RC \
11941 compiler_lib_search_path_RC \
11943 archive_expsym_cmds_RC \
11944 postinstall_cmds_RC \
11945 postuninstall_cmds_RC \
11946 old_archive_from_expsyms_cmds_RC \
11947 allow_undefined_flag_RC \
11948 no_undefined_flag_RC \
11949 export_symbols_cmds_RC \
11950 hardcode_libdir_flag_spec_RC \
11951 hardcode_libdir_flag_spec_ld_RC \
11952 hardcode_libdir_separator_RC \
11953 hardcode_automatic_RC \
11955 module_expsym_cmds_RC \
11956 lt_cv_prog_compiler_c_o_RC \
11957 exclude_expsyms_RC \
11958 include_expsyms_RC; do
11961 old_archive_cmds_RC | \
11962 old_archive_from_new_cmds_RC | \
11963 archive_cmds_RC | \
11964 archive_expsym_cmds_RC | \
11966 module_expsym_cmds_RC | \
11967 old_archive_from_expsyms_cmds_RC | \
11968 export_symbols_cmds_RC | \
11969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11970 postinstall_cmds | postuninstall_cmds | \
11971 old_postinstall_cmds | old_postuninstall_cmds | \
11972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11973 # Double-quote double-evaled strings.
11974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11983 *'\$0 --fallback-echo"')
11984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11990 cat <<__EOF__ >> "$cfgfile"
11991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11995 # Shell to use when invoking shell scripts.
11998 # Whether or not to build shared libraries.
11999 build_libtool_libs=$enable_shared
12001 # Whether or not to build static libraries.
12002 build_old_libs=$enable_static
12004 # Whether or not to add -lc for building shared libraries.
12005 build_libtool_need_lc=$archive_cmds_need_lc_RC
12007 # Whether or not to disallow shared libs when runtime libs are static
12008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12014 host_alias=$host_alias
12018 # The build system.
12019 build_alias=$build_alias
12023 # An echo program that does not interpret backslashes.
12028 AR_FLAGS=$lt_AR_FLAGS
12033 # A language-specific compiler.
12036 # Is the compiler the GNU C compiler?
12042 # The linker used to build libraries.
12045 # Whether we need hard or soft links.
12048 # A BSD-compatible nm program.
12051 # A symbol stripping program
12054 # Used to examine libraries when file_magic_cmd begins "file"
12055 MAGIC_CMD=$MAGIC_CMD
12057 # Used on cygwin: DLL creation program.
12060 # Used on cygwin: object dumper.
12063 # Used on cygwin: assembler.
12066 # The name of the directory that contains temporary libtool files.
12069 # How to create reloadable object files.
12070 reload_flag=$lt_reload_flag
12071 reload_cmds=$lt_reload_cmds
12073 # How to pass a linker flag through the compiler.
12074 wl=$lt_lt_prog_compiler_wl_RC
12076 # Object file suffix (normally "o").
12077 objext="$ac_objext"
12079 # Old archive suffix (normally "a").
12082 # Shared library suffix (normally ".so").
12083 shrext_cmds='$shrext_cmds'
12085 # Executable file suffix (normally "").
12088 # Additional compiler flags for building library objects.
12089 pic_flag=$lt_lt_prog_compiler_pic_RC
12092 # What is the maximum length of a command?
12093 max_cmd_len=$lt_cv_sys_max_cmd_len
12095 # Does compiler simultaneously support -c and -o options?
12096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12098 # Must we lock files when doing compilation?
12099 need_locks=$lt_need_locks
12101 # Do we need the lib prefix for modules?
12102 need_lib_prefix=$need_lib_prefix
12104 # Do we need a version for libraries?
12105 need_version=$need_version
12107 # Whether dlopen is supported.
12108 dlopen_support=$enable_dlopen
12110 # Whether dlopen of programs is supported.
12111 dlopen_self=$enable_dlopen_self
12113 # Whether dlopen of statically linked programs is supported.
12114 dlopen_self_static=$enable_dlopen_self_static
12116 # Compiler flag to prevent dynamic linking.
12117 link_static_flag=$lt_lt_prog_compiler_static_RC
12119 # Compiler flag to turn off builtin functions.
12120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12122 # Compiler flag to allow reflexive dlopens.
12123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12125 # Compiler flag to generate shared objects directly from archives.
12126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12128 # Compiler flag to generate thread-safe objects.
12129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12131 # Library versioning type.
12132 version_type=$version_type
12134 # Format of library name prefix.
12135 libname_spec=$lt_libname_spec
12137 # List of archive names. First name is the real one, the rest are links.
12138 # The last name is the one that the linker finds with -lNAME.
12139 library_names_spec=$lt_library_names_spec
12141 # The coded name of the library, if different from the real name.
12142 soname_spec=$lt_soname_spec
12144 # Commands used to build and install an old-style archive.
12146 old_archive_cmds=$lt_old_archive_cmds_RC
12147 old_postinstall_cmds=$lt_old_postinstall_cmds
12148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12150 # Create an old-style archive from a shared archive.
12151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12153 # Create a temporary old-style archive to link instead of a shared archive.
12154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12156 # Commands used to build and install a shared archive.
12157 archive_cmds=$lt_archive_cmds_RC
12158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12159 postinstall_cmds=$lt_postinstall_cmds
12160 postuninstall_cmds=$lt_postuninstall_cmds
12162 # Commands used to build a loadable module (assumed same as above if empty)
12163 module_cmds=$lt_module_cmds_RC
12164 module_expsym_cmds=$lt_module_expsym_cmds_RC
12166 # Commands to strip libraries.
12167 old_striplib=$lt_old_striplib
12168 striplib=$lt_striplib
12170 # Dependencies to place before the objects being linked to create a
12172 predep_objects=$lt_predep_objects_RC
12174 # Dependencies to place after the objects being linked to create a
12176 postdep_objects=$lt_postdep_objects_RC
12178 # Dependencies to place before the objects being linked to create a
12180 predeps=$lt_predeps_RC
12182 # Dependencies to place after the objects being linked to create a
12184 postdeps=$lt_postdeps_RC
12186 # The library search path used internally by the compiler when linking
12187 # a shared library.
12188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12190 # Method to check whether dependent libraries are shared objects.
12191 deplibs_check_method=$lt_deplibs_check_method
12193 # Command to use when deplibs_check_method == file_magic.
12194 file_magic_cmd=$lt_file_magic_cmd
12196 # Flag that allows shared libraries with undefined symbols to be built.
12197 allow_undefined_flag=$lt_allow_undefined_flag_RC
12199 # Flag that forces no undefined symbols.
12200 no_undefined_flag=$lt_no_undefined_flag_RC
12202 # Commands used to finish a libtool library installation in a directory.
12203 finish_cmds=$lt_finish_cmds
12205 # Same as above, but a single script fragment to be evaled but not shown.
12206 finish_eval=$lt_finish_eval
12208 # Take the output of nm and produce a listing of raw symbols and C names.
12209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12211 # Transform the output of nm in a proper C declaration
12212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12214 # Transform the output of nm in a C name address pair
12215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12217 # This is the shared library runtime path variable.
12218 runpath_var=$runpath_var
12220 # This is the shared library path variable.
12221 shlibpath_var=$shlibpath_var
12223 # Is shlibpath searched before the hard-coded library search path?
12224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12226 # How to hardcode a shared library path into an executable.
12227 hardcode_action=$hardcode_action_RC
12229 # Whether we should hardcode library paths into libraries.
12230 hardcode_into_libs=$hardcode_into_libs
12232 # Flag to hardcode \$libdir into a binary during linking.
12233 # This must work even if \$libdir does not exist.
12234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12236 # If ld is used when linking, flag to hardcode \$libdir into
12237 # a binary during linking. This must work even if \$libdir does
12239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12241 # Whether we need a single -rpath flag with a separated argument.
12242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12245 # resulting binary.
12246 hardcode_direct=$hardcode_direct_RC
12248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12249 # resulting binary.
12250 hardcode_minus_L=$hardcode_minus_L_RC
12252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12253 # the resulting binary.
12254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12256 # Set to yes if building a shared library automatically hardcodes DIR into the library
12257 # and all subsequent libraries and executables linked against it.
12258 hardcode_automatic=$hardcode_automatic_RC
12260 # Variables whose values should be saved in libtool wrapper scripts and
12261 # restored at relink time.
12262 variables_saved_for_relink="$variables_saved_for_relink"
12264 # Whether libtool must link a program against all its dependency libraries.
12265 link_all_deplibs=$link_all_deplibs_RC
12267 # Compile-time system search path for libraries
12268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12270 # Run-time system search path for libraries
12271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12273 # Fix the shell variable \$srcfile for the compiler.
12274 fix_srcfile_path="$fix_srcfile_path_RC"
12276 # Set to yes if exported symbols are required.
12277 always_export_symbols=$always_export_symbols_RC
12279 # The commands to list exported symbols.
12280 export_symbols_cmds=$lt_export_symbols_cmds_RC
12282 # The commands to extract the exported symbol list from a shared archive.
12283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12285 # Symbols that should not be listed in the preloaded symbols.
12286 exclude_expsyms=$lt_exclude_expsyms_RC
12288 # Symbols that must always be exported.
12289 include_expsyms=$lt_include_expsyms_RC
12291 # ### END LIBTOOL TAG CONFIG: $tagname
12297 # If there is no Makefile yet, we rely on a make rule to execute
12298 # `config.status --recheck' to rerun these tests and create the
12299 # libtool script then.
12300 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12301 if test -f "$ltmain_in"; then
12302 test -f Makefile && make "$ltmain"
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12320 { (exit 1); exit 1; }; }
12324 # Append the new tag name to the list of available tags.
12325 if test -n "$tagname" ; then
12326 available_tags="$available_tags $tagname"
12332 # Now substitute the updated list of available tags.
12333 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12334 mv "${ofile}T" "$ofile"
12338 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12340 { (exit 1); exit 1; }; }
12346 # This can be used to rebuild libtool when needed
12347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12349 # Always use our own libtool.
12350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12352 # Prevent multiple expansion
12364 if test $ol_enable_perl != no ; then
12365 # Extract the first word of "perl", so it can be a program name with args.
12366 set dummy perl; ac_word=$2
12367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12369 if test "${ac_cv_path_PERLBIN+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12396 PERLBIN=$ac_cv_path_PERLBIN
12397 if test -n "$PERLBIN"; then
12398 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12399 echo "${ECHO_T}$PERLBIN" >&6; }
12401 { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; }
12407 if test "no$PERLBIN" = "no" ; then
12408 if test $ol_enable_perl = yes ; then
12409 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12410 echo "$as_me: error: could not locate perl" >&2;}
12411 { (exit 1); exit 1; }; }
12415 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12416 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12418 if test x"$ol_enable_perl" = "xyes" ; then
12419 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12421 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12434 # On Suns, sometimes $CPP names a directory.
12435 if test -n "$CPP" && test -d "$CPP"; then
12438 if test -z "$CPP"; then
12439 if test "${ac_cv_prog_CPP+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 # Double quotes because CPP needs to be expanded
12443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12445 ac_preproc_ok=false
12446 for ac_c_preproc_warn_flag in '' yes
12448 # Use a header file that comes with gcc, so configuring glibc
12449 # with a fresh cross-compiler works.
12450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451 # <limits.h> exists even on freestanding compilers.
12452 # On the NeXT, cc -E runs the code through the compiler's parser,
12453 # not just through cpp. "Syntax error" is here to catch this case.
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 # include <limits.h>
12463 # include <assert.h>
12467 if { (ac_try="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } >/dev/null && {
12480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 # Broken: fails on valid input.
12492 rm -f conftest.err conftest.$ac_ext
12494 # OK, works on sane cases. Now check whether nonexistent headers
12495 # can be detected and how.
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 #include <ac_nonexistent.h>
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null && {
12517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12520 # Broken: success on invalid input.
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 # Passes both tests.
12531 rm -f conftest.err conftest.$ac_ext
12534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12535 rm -f conftest.err conftest.$ac_ext
12536 if $ac_preproc_ok; then
12541 ac_cv_prog_CPP=$CPP
12544 CPP=$ac_cv_prog_CPP
12546 ac_cv_prog_CPP=$CPP
12548 { echo "$as_me:$LINENO: result: $CPP" >&5
12549 echo "${ECHO_T}$CPP" >&6; }
12550 ac_preproc_ok=false
12551 for ac_c_preproc_warn_flag in '' yes
12553 # Use a header file that comes with gcc, so configuring glibc
12554 # with a fresh cross-compiler works.
12555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 # <limits.h> exists even on freestanding compilers.
12557 # On the NeXT, cc -E runs the code through the compiler's parser,
12558 # not just through cpp. "Syntax error" is here to catch this case.
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 # include <limits.h>
12568 # include <assert.h>
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null && {
12585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 # Broken: fails on valid input.
12597 rm -f conftest.err conftest.$ac_ext
12599 # OK, works on sane cases. Now check whether nonexistent headers
12600 # can be detected and how.
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 #include <ac_nonexistent.h>
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12617 grep -v '^ *+' conftest.er1 >conftest.err
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } >/dev/null && {
12622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12625 # Broken: success on invalid input.
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 # Passes both tests.
12636 rm -f conftest.err conftest.$ac_ext
12639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12640 rm -f conftest.err conftest.$ac_ext
12641 if $ac_preproc_ok; then
12644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12645 See \`config.log' for more details." >&5
12646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12647 See \`config.log' for more details." >&2;}
12648 { (exit 1); exit 1; }; }
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12658 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12659 if test "${ol_cv_msvc+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12670 #include <__FOO__/generate_error.h>
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev/null && {
12687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f conftest.err conftest.$ac_ext
12700 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12701 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12704 *mingw32* ) ac_cv_mingw32=yes ;;
12705 *cygwin* ) ac_cv_cygwin=yes ;;
12706 *interix* ) ac_cv_interix=yes ;;
12712 cat >>confdefs.h <<_ACEOF
12713 #define EXEEXT "${EXEEXT}"
12717 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12718 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12719 if test "${ac_cv_lib_be_be_app+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lbe -lroot -lnet $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest$ac_exeext &&
12763 $as_test_x conftest$ac_exeext; then
12764 ac_cv_lib_be_be_app=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_cv_lib_be_be_app=no
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12777 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12778 if test $ac_cv_lib_be_be_app = yes; then
12779 LIBS="$LIBS -lbe -lroot -lnet"
12786 ac_cpp='$CPP $CPPFLAGS'
12787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12790 if test -n "$ac_tool_prefix"; then
12791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12795 if test "${ac_cv_prog_CC+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 if test -n "$CC"; then
12799 ac_cv_prog_CC="$CC" # Let the user override the test.
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12805 test -z "$as_dir" && as_dir=.
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 if test -n "$CC"; then
12820 { echo "$as_me:$LINENO: result: $CC" >&5
12821 echo "${ECHO_T}$CC" >&6; }
12823 { echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6; }
12829 if test -z "$ac_cv_prog_CC"; then
12831 # Extract the first word of "gcc", so it can be a program name with args.
12832 set dummy gcc; ac_word=$2
12833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 if test -n "$ac_ct_CC"; then
12839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_ac_ct_CC="gcc"
12849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12859 if test -n "$ac_ct_CC"; then
12860 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12861 echo "${ECHO_T}$ac_ct_CC" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12867 if test "x$ac_ct_CC" = x; then
12870 case $cross_compiling:$ac_tool_warned in
12872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12873 whose name does not start with the host triplet. If you think this
12874 configuration is useful to you, please write to autoconf@gnu.org." >&5
12875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12876 whose name does not start with the host triplet. If you think this
12877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12878 ac_tool_warned=yes ;;
12883 CC="$ac_cv_prog_CC"
12886 if test -z "$CC"; then
12887 if test -n "$ac_tool_prefix"; then
12888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12889 set dummy ${ac_tool_prefix}cc; ac_word=$2
12890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12892 if test "${ac_cv_prog_CC+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 if test -n "$CC"; then
12896 ac_cv_prog_CC="$CC" # Let the user override the test.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_CC="${ac_tool_prefix}cc"
12906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 if test -n "$CC"; then
12917 { echo "$as_me:$LINENO: result: $CC" >&5
12918 echo "${ECHO_T}$CC" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12927 if test -z "$CC"; then
12928 # Extract the first word of "cc", so it can be a program name with args.
12929 set dummy cc; ac_word=$2
12930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12932 if test "${ac_cv_prog_CC+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 if test -n "$CC"; then
12936 ac_cv_prog_CC="$CC" # Let the user override the test.
12938 ac_prog_rejected=no
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12947 ac_prog_rejected=yes
12951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 if test $ac_prog_rejected = yes; then
12959 # We found a bogon in the path, so make sure we never use it.
12960 set dummy $ac_cv_prog_CC
12962 if test $# != 0; then
12963 # We chose a different compiler from the bogus one.
12964 # However, it has the same basename, so the bogon will be chosen
12965 # first if we set CC to just the basename; use the full file name.
12967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12973 if test -n "$CC"; then
12974 { echo "$as_me:$LINENO: result: $CC" >&5
12975 echo "${ECHO_T}$CC" >&6; }
12977 { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12983 if test -z "$CC"; then
12984 if test -n "$ac_tool_prefix"; then
12985 for ac_prog in cl.exe
12987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_prog_CC+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 if test -n "$CC"; then
12995 ac_cv_prog_CC="$CC" # Let the user override the test.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 if test -n "$CC"; then
13016 { echo "$as_me:$LINENO: result: $CC" >&5
13017 echo "${ECHO_T}$CC" >&6; }
13019 { echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6; }
13024 test -n "$CC" && break
13027 if test -z "$CC"; then
13029 for ac_prog in cl.exe
13031 # Extract the first word of "$ac_prog", so it can be a program name with args.
13032 set dummy $ac_prog; ac_word=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 if test -n "$ac_ct_CC"; then
13039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048 ac_cv_prog_ac_ct_CC="$ac_prog"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13059 if test -n "$ac_ct_CC"; then
13060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13061 echo "${ECHO_T}$ac_ct_CC" >&6; }
13063 { echo "$as_me:$LINENO: result: no" >&5
13064 echo "${ECHO_T}no" >&6; }
13068 test -n "$ac_ct_CC" && break
13071 if test "x$ac_ct_CC" = x; then
13074 case $cross_compiling:$ac_tool_warned in
13076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13077 whose name does not start with the host triplet. If you think this
13078 configuration is useful to you, please write to autoconf@gnu.org." >&5
13079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet. If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13082 ac_tool_warned=yes ;;
13091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: no acceptable C compiler found in \$PATH
13094 See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; }
13097 # Provide some information about the compiler.
13098 echo "$as_me:$LINENO: checking for C compiler version" >&5
13099 ac_compiler=`set X $ac_compile; echo $2`
13100 { (ac_try="$ac_compiler --version >&5"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compiler --version >&5") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }
13110 { (ac_try="$ac_compiler -v >&5"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compiler -v >&5") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }
13120 { (ac_try="$ac_compiler -V >&5"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_compiler -V >&5") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }
13131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && {
13168 test -z "$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13170 } && test -s conftest.$ac_objext; then
13171 ac_compiler_gnu=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13183 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13185 GCC=`test $ac_compiler_gnu = yes && echo yes`
13186 ac_test_CFLAGS=${CFLAGS+set}
13187 ac_save_CFLAGS=$CFLAGS
13188 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13189 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13190 if test "${ac_cv_prog_cc_g+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_save_c_werror_flag=$ac_c_werror_flag
13194 ac_c_werror_flag=yes
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_compile") 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest.$ac_objext; then
13229 ac_cv_prog_cc_g=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.$ac_objext; then
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_c_werror_flag=$ac_save_c_werror_flag
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest.$ac_objext; then
13306 ac_cv_prog_cc_g=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 ac_c_werror_flag=$ac_save_c_werror_flag
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13325 if test "$ac_test_CFLAGS" = set; then
13326 CFLAGS=$ac_save_CFLAGS
13327 elif test $ac_cv_prog_cc_g = yes; then
13328 if test "$GCC" = yes; then
13334 if test "$GCC" = yes; then
13340 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13341 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13342 if test "${ac_cv_prog_cc_c89+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_cv_prog_cc_c89=no
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 #include <stdarg.h>
13355 #include <sys/types.h>
13356 #include <sys/stat.h>
13357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13358 struct buf { int x; };
13359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13360 static char *e (p, i)
13366 static char *f (char * (*g) (char **, int), char **p, ...)
13371 s = g (p, va_arg (v,int));
13376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13377 function prototypes and stuff, but not '\xHH' hex character constants.
13378 These don't provoke an error unfortunately, instead are silently treated
13379 as 'x'. The following induces an error, until -std is added to get
13380 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13381 array size at least. It's necessary to write '\x00'==0 to get something
13382 that's true only with -std. */
13383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13386 inside strings and character constants. */
13388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13390 int test (int i, double x);
13391 struct s1 {int (*f) (int a);};
13392 struct s2 {int (*f) (double a);};
13393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13407 CC="$ac_save_CC $ac_arg"
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest.$ac_objext; then
13425 ac_cv_prog_cc_c89=$ac_arg
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13433 rm -f core conftest.err conftest.$ac_objext
13434 test "x$ac_cv_prog_cc_c89" != "xno" && break
13436 rm -f conftest.$ac_ext
13441 case "x$ac_cv_prog_cc_c89" in
13443 { echo "$as_me:$LINENO: result: none needed" >&5
13444 echo "${ECHO_T}none needed" >&6; } ;;
13446 { echo "$as_me:$LINENO: result: unsupported" >&5
13447 echo "${ECHO_T}unsupported" >&6; } ;;
13449 CC="$CC $ac_cv_prog_cc_c89"
13450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13451 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13456 ac_cpp='$CPP $CPPFLAGS'
13457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13461 depcc="$CC" am_compiler_list=
13463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13469 # We make a subdir and do the tests there. Otherwise we can end up
13470 # making bogus files that we don't know about and never remove. For
13471 # instance it was reported that on HP-UX the gcc test will end up
13472 # making a dummy file named `D' -- because `-MD' means `put the output
13475 # Copy depcomp to subdir because otherwise we won't find it if we're
13476 # using a relative directory.
13477 cp "$am_depcomp" conftest.dir
13479 # We will build objects and dependencies in a subdirectory because
13480 # it helps to detect inapplicable dependency modes. For instance
13481 # both Tru64's cc and ICC support -MD to output dependencies as a
13482 # side effect of compilation, but ICC will put the dependencies in
13483 # the current directory while Tru64 will put them in the object
13487 am_cv_CC_dependencies_compiler_type=none
13488 if test "$am_compiler_list" = ""; then
13489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13491 for depmode in $am_compiler_list; do
13492 # Setup a source with many dependencies, because some compilers
13493 # like to wrap large dependency lists on column 80 (with \), and
13494 # we should not choose a depcomp mode which is confused by this.
13496 # We need to recreate these files for each test, as the compiler may
13497 # overwrite some of them when testing with obscure command lines.
13498 # This happens at least with the AIX C compiler.
13500 for i in 1 2 3 4 5 6; do
13501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13503 # Solaris 8's {/usr,}/bin/sh.
13504 touch sub/conftst$i.h
13506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13510 # after this tag, mechanisms are not by side-effect, so they'll
13511 # only be used when explicitly requested
13512 if test "x$enable_dependency_tracking" = xyes; then
13520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13521 # mode. It turns out that the SunPro C++ compiler does not properly
13522 # handle `-M -o', and we need to detect this.
13523 if depmode=$depmode \
13524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13527 >/dev/null 2>conftest.err &&
13528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13529 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13531 # icc doesn't choke on unknown options, it will just issue warnings
13532 # or remarks (even with -Werror). So we grep stderr for any message
13533 # that says an option was ignored or not supported.
13534 # When given -MP, icc 7.0 and 7.1 complain thusly:
13535 # icc: Command line warning: ignoring option '-M'; no argument required
13536 # The diagnosis changed in icc 8.0:
13537 # icc: Command line remark: option '-MP' not supported
13538 if (grep 'ignoring option' conftest.err ||
13539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13540 am_cv_CC_dependencies_compiler_type=$depmode
13547 rm -rf conftest.dir
13549 am_cv_CC_dependencies_compiler_type=none
13553 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13554 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13560 test "x$enable_dependency_tracking" != xno \
13561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13562 am__fastdepCC_TRUE=
13563 am__fastdepCC_FALSE='#'
13565 am__fastdepCC_TRUE='#'
13566 am__fastdepCC_FALSE=
13570 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13571 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13572 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13573 { (exit 1); exit 1; }; }
13576 # test for make depend flag
13579 if test -z "${MKDEP}"; then
13580 OL_MKDEP="${CC-cc}"
13581 if test -z "${MKDEP_FLAGS}"; then
13582 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13583 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13584 if test "${ol_cv_mkdep+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 for flag in "-M" "-xM"; do
13590 cat > conftest.c <<EOF
13593 if { ac_try='$OL_MKDEP $flag conftest.c'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } \
13599 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13601 if test ! -f conftest."${ac_object}" ; then
13603 OL_MKDEP_FLAGS="$flag"
13611 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13612 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13613 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13616 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13620 OL_MKDEP="${MKDEP}"
13621 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13626 if test "${ol_cv_mkdep}" = no ; then
13627 # this will soon become an error
13628 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13629 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13632 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13633 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_s_afopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext &&
13678 $as_test_x conftest$ac_exeext; then
13679 ac_cv_lib_s_afopen=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_cv_lib_s_afopen=no
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13692 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13693 if test $ac_cv_lib_s_afopen = yes; then
13697 cat >>confdefs.h <<\_ACEOF
13698 #define HAVE_AIX_SECURITY 1
13707 ac_cv_func_getopt=no
13709 cat >>confdefs.h <<\_ACEOF
13710 #define BOTH_STRINGS_H 1
13717 WITH_MODULES_ENABLED=no
13718 if test $ol_enable_modules != no ; then
13720 for ac_header in ltdl.h
13722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 ac_res=`eval echo '${'$as_ac_Header'}'`
13730 { echo "$as_me:$LINENO: result: $ac_res" >&5
13731 echo "${ECHO_T}$ac_res" >&6; }
13733 # Is the header compilable?
13734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 #include <$ac_header>
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } && {
13759 test -z "$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 } && test -s conftest.$ac_objext; then
13762 ac_header_compiler=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_header_compiler=no
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6; }
13774 # Is the header present?
13775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <$ac_header>
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } >/dev/null && {
13798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13801 ac_header_preproc=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_header_preproc=no
13809 rm -f conftest.err conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811 echo "${ECHO_T}$ac_header_preproc" >&6; }
13813 # So? What about this header?
13814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13820 ac_header_preproc=yes
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13836 ## --------------------------------------------- ##
13837 ## Report this to <http://www.openldap.org/its/> ##
13838 ## --------------------------------------------- ##
13840 ) | sed "s/^/$as_me: WARNING: /" >&2
13843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 eval "$as_ac_Header=\$ac_header_preproc"
13850 ac_res=`eval echo '${'$as_ac_Header'}'`
13851 { echo "$as_me:$LINENO: result: $ac_res" >&5
13852 echo "${ECHO_T}$ac_res" >&6; }
13855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 if test $ac_cv_header_ltdl_h = no ; then
13866 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13867 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13868 { (exit 1); exit 1; }; }
13871 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13872 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13873 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lltdl $LIBS"
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13895 return lt_dlinit ();
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13918 ac_cv_lib_ltdl_lt_dlinit=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_lib_ltdl_lt_dlinit=no
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927 conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13930 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13931 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13932 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13934 MODULES_LIBS=-lltdl
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_LIBLTDL 1
13944 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13945 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13946 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13947 { (exit 1); exit 1; }; }
13949 ol_link_modules=yes
13950 WITH_MODULES_ENABLED=yes
13953 for i in $Backends; do
13954 eval "ol_tmp=\$ol_enable_$i"
13955 if test $ol_tmp = mod ; then
13956 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13957 echo "$as_me: WARNING: building static $i backend" >&2;}
13958 eval "ol_enable_$i=yes"
13961 for i in $Overlays; do
13962 eval "ol_tmp=\$ol_enable_$i"
13963 if test $ol_tmp = mod ; then
13964 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13965 echo "$as_me: WARNING: building static $i overlay" >&2;}
13966 eval "ol_enable_$i=yes"
13972 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13973 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13974 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13986 #include <__ASCII__/generate_error.h>
13990 if { (ac_try="$ac_cpp conftest.$ac_ext"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } >/dev/null && {
14003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14006 ol_cv_cpp_ebcdic=yes
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ol_cv_cpp_ebcdic=no
14014 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14017 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14018 if test $ol_cv_cpp_ebcdic = yes ; then
14020 cat >>confdefs.h <<\_ACEOF
14021 #define HAVE_EBCDIC 1
14026 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14027 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14028 if test "${ol_cv_header_stdc+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 #include <stdlib.h>
14038 #include <stdarg.h>
14039 #include <string.h>
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null && {
14055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14058 ol_cv_header_stdc=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ol_cv_header_stdc=no
14066 rm -f conftest.err conftest.$ac_ext
14068 if test $ol_cv_header_stdc = yes; then
14069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <string.h>
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "memchr" >/dev/null 2>&1; then
14083 ol_cv_header_stdc=no
14089 if test $ol_cv_header_stdc = yes; then
14090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <stdlib.h>
14100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14101 $EGREP "free" >/dev/null 2>&1; then
14104 ol_cv_header_stdc=no
14110 if test $ol_cv_header_stdc = yes; then
14111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14112 if test "$cross_compiling" = yes; then
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 #ifndef HAVE_EBCDIC
14123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14126 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14127 || ('j' <= (c) && (c) <= 'r') \
14128 || ('s' <= (c) && (c) <= 'z'))
14129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14132 int main () { int i; for (i = 0; i < 256; i++)
14133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14137 rm -f conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_link") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14159 echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ( exit $ac_status )
14164 ol_cv_header_stdc=no
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14173 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14174 if test $ol_cv_header_stdc = yes; then
14175 cat >>confdefs.h <<\_ACEOF
14176 #define STDC_HEADERS 1
14180 ac_cv_header_stdc=disable
14183 if test $ol_cv_header_stdc != yes; then
14184 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14185 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14193 ac_header_dirent=no
14194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14195 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14196 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14197 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 cat >conftest.$ac_ext <<_ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14207 #include <sys/types.h>
14219 rm -f conftest.$ac_objext
14220 if { (ac_try="$ac_compile"
14221 case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_compile") 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && {
14233 test -z "$ac_c_werror_flag" ||
14234 test ! -s conftest.err
14235 } && test -s conftest.$ac_objext; then
14236 eval "$as_ac_Header=yes"
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 eval "$as_ac_Header=no"
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246 ac_res=`eval echo '${'$as_ac_Header'}'`
14247 { echo "$as_me:$LINENO: result: $ac_res" >&5
14248 echo "${ECHO_T}$ac_res" >&6; }
14249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14250 cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14254 ac_header_dirent=$ac_hdr; break
14258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14259 if test $ac_header_dirent = dirent.h; then
14260 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_opendir+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 ac_func_search_save_LIBS=$LIBS
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14288 for ac_lib in '' dir; do
14289 if test -z "$ac_lib"; then
14290 ac_res="none required"
14293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext &&
14312 $as_test_x conftest$ac_exeext; then
14313 ac_cv_search_opendir=$ac_res
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323 if test "${ac_cv_search_opendir+set}" = set; then
14327 if test "${ac_cv_search_opendir+set}" = set; then
14330 ac_cv_search_opendir=no
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14335 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14336 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14337 ac_res=$ac_cv_search_opendir
14338 if test "$ac_res" != no; then
14339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14344 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14345 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_opendir+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14372 for ac_lib in '' x; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14397 ac_cv_search_opendir=$ac_res
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 if test "${ac_cv_search_opendir+set}" = set; then
14411 if test "${ac_cv_search_opendir+set}" = set; then
14414 ac_cv_search_opendir=no
14416 rm conftest.$ac_ext
14417 LIBS=$ac_func_search_save_LIBS
14419 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14420 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14421 ac_res=$ac_cv_search_opendir
14422 if test "$ac_res" != no; then
14423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14429 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <sys/types.h>
14441 #include <sys/wait.h>
14442 #ifndef WEXITSTATUS
14443 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14454 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14459 rm -f conftest.$ac_objext
14460 if { (ac_try="$ac_compile"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_compile") 2>conftest.er1
14468 grep -v '^ *+' conftest.er1 >conftest.err
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
14476 ac_cv_header_sys_wait_h=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_header_sys_wait_h=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14488 if test $ac_cv_header_sys_wait_h = yes; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_SYS_WAIT_H 1
14496 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14497 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14498 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <sys/types.h>
14508 #include <termios.h>
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "yes" >/dev/null 2>&1; then
14516 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14518 ac_cv_sys_tiocgwinsz_in_termios_h=no
14523 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14524 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14526 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14527 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14528 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14529 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 #include <sys/types.h>
14539 #include <sys/ioctl.h>
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546 $EGREP "yes" >/dev/null 2>&1; then
14547 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14549 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14554 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14555 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14557 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define GWINSZ_IN_SYS_IOCTL 1
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14675 # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 $ac_includes_default
14685 #include <$ac_header>
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest.$ac_objext; then
14704 ac_header_compiler=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_compiler=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null && {
14740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14743 ac_header_preproc=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_header_preproc=no
14751 rm -f conftest.err conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14753 echo "${ECHO_T}$ac_header_preproc" >&6; }
14755 # So? What about this header?
14756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14762 ac_header_preproc=yes
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14778 ## --------------------------------------------- ##
14779 ## Report this to <http://www.openldap.org/its/> ##
14780 ## --------------------------------------------- ##
14782 ) | sed "s/^/$as_me: WARNING: /" >&2
14785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 eval "$as_ac_Header=\$ac_header_preproc"
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807 if test "$ac_cv_mingw32" = yes \
14808 -o "$ac_cv_interix" = yes \
14809 -o "$ol_cv_msvc" = yes
14813 for ac_header in winsock.h winsock2.h
14815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823 { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14826 # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 #include <$ac_header>
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 ac_header_compiler=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_header_compiler=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <$ac_header>
14878 if { (ac_try="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev/null && {
14891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14894 ac_header_preproc=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_preproc=no
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14906 # So? What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14929 ## --------------------------------------------- ##
14930 ## Report this to <http://www.openldap.org/its/> ##
14931 ## --------------------------------------------- ##
14933 ) | sed "s/^/$as_me: WARNING: /" >&2
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 eval "$as_ac_Header=\$ac_header_preproc"
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944 { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14960 for ac_header in resolv.h
14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 #include <netinet/in.h>
14978 #include <$ac_header>
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.$ac_objext; then
14997 eval "$as_ac_Header=yes"
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 eval "$as_ac_Header=no"
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15021 for ac_header in netinet/tcp.h
15023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 #include <netinet/in.h>
15039 #include <$ac_header>
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_compile") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest.$ac_objext; then
15058 eval "$as_ac_Header=yes"
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 eval "$as_ac_Header=no"
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15082 for ac_header in sys/ucred.h
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 $ac_includes_default
15097 #ifdef HAVE_SYS_PARAM_H
15098 #include <sys/param.h>
15102 #include <$ac_header>
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 eval "$as_ac_Header=yes"
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 eval "$as_ac_Header=no"
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 ac_res=`eval echo '${'$as_ac_Header'}'`
15132 { echo "$as_me:$LINENO: result: $ac_res" >&5
15133 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15147 for ac_func in sigaction sigset
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15185 /* The GNU C library defines this for functions which it implements
15186 to always fail with ENOSYS. Some functions are actually named
15187 something starting with __ and the normal name is an alias. */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15195 return $ac_func ();
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest$ac_exeext &&
15217 $as_test_x conftest$ac_exeext; then
15218 eval "$as_ac_var=yes"
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 eval "$as_ac_var=no"
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227 conftest$ac_exeext conftest.$ac_ext
15229 ac_res=`eval echo '${'$as_ac_var'}'`
15230 { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15243 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15244 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_check_lib_save_LIBS=$LIBS
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 ac_cv_lib_V3_sigset=yes
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 ac_cv_lib_V3_sigset=no
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15303 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15304 if test $ac_cv_lib_V3_sigset = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define HAVE_LIBV3 1
15315 if test $ol_cv_msvc = yes ; then
15319 if test "$ac_cv_header_winsock_h" = yes; then
15320 { echo "$as_me:$LINENO: checking for winsock" >&5
15321 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15322 if test "${ol_cv_winsock+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 for curlib in none ws2_32 wsock32; do
15328 if test $curlib != none ; then
15329 LIBS="$save_LIBS -l$curlib"
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <winsock.h>
15344 select(0,NULL,NULL,NULL,NULL);
15346 gethostname(NULL,0);
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext &&
15369 $as_test_x conftest$ac_exeext; then
15370 ol_cv_winsock=$curlib
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15381 test "$ol_cv_winsock" != no && break
15386 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15387 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15389 if test $ol_cv_winsock != no ; then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_WINSOCK 1
15395 ac_cv_func_socket=yes
15396 ac_cv_func_select=yes
15397 ac_cv_func_closesocket=yes
15398 ac_cv_func_gethostname=yes
15400 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15401 LIBS="$LIBS -l$ol_cv_winsock"
15404 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_WINSOCK2 1
15415 { echo "$as_me:$LINENO: checking for socket" >&5
15416 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15417 if test "${ac_cv_func_socket+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15428 #define socket innocuous_socket
15430 /* System header to define __stub macros and hopefully few prototypes,
15431 which can conflict with char socket (); below.
15432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433 <limits.h> exists even on freestanding compilers. */
15436 # include <limits.h>
15438 # include <assert.h>
15443 /* Override any GCC internal prototype to avoid an error.
15444 Use char because int might match the return type of a GCC
15445 builtin and then its argument prototype would still apply. */
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined __stub_socket || defined __stub___socket
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext &&
15482 $as_test_x conftest$ac_exeext; then
15483 ac_cv_func_socket=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_func_socket=no
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492 conftest$ac_exeext conftest.$ac_ext
15494 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15495 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15496 if test $ac_cv_func_socket = yes; then
15501 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15502 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15503 if test "${ac_cv_lib_socket_main+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lsocket $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_link") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && {
15538 test -z "$ac_c_werror_flag" ||
15539 test ! -s conftest.err
15540 } && test -s conftest$ac_exeext &&
15541 $as_test_x conftest$ac_exeext; then
15542 ac_cv_lib_socket_main=yes
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_lib_socket_main=no
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15555 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15556 if test $ac_cv_lib_socket_main = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBSOCKET 1
15561 LIBS="-lsocket $LIBS"
15566 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15567 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15568 if test "${ac_cv_lib_net_main+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 ac_check_lib_save_LIBS=$LIBS
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 ac_cv_lib_net_main=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_cv_lib_net_main=no
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15620 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15621 if test $ac_cv_lib_net_main = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBNET 1
15631 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15632 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lnsl_s $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 ac_cv_lib_nsl_s_main=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_cv_lib_nsl_s_main=no
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15685 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15686 if test $ac_cv_lib_nsl_s_main = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBNSL_S 1
15691 LIBS="-lnsl_s $LIBS"
15696 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15697 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_nsl_main+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 ac_check_lib_save_LIBS=$LIBS
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_link") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } && {
15733 test -z "$ac_c_werror_flag" ||
15734 test ! -s conftest.err
15735 } && test -s conftest$ac_exeext &&
15736 $as_test_x conftest$ac_exeext; then
15737 ac_cv_lib_nsl_main=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_lib_nsl_main=no
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746 conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15749 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15750 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15751 if test $ac_cv_lib_nsl_main = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBNSL 1
15761 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15762 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_inet_socket+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-linet $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest$ac_exeext &&
15807 $as_test_x conftest$ac_exeext; then
15808 ac_cv_lib_inet_socket=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_lib_inet_socket=no
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15821 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15822 if test $ac_cv_lib_inet_socket = yes; then
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBINET 1
15827 LIBS="-linet $LIBS"
15832 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15833 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_gen_main+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_link") 2>conftest.er1
15864 grep -v '^ *+' conftest.er1 >conftest.err
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } && {
15869 test -z "$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15871 } && test -s conftest$ac_exeext &&
15872 $as_test_x conftest$ac_exeext; then
15873 ac_cv_lib_gen_main=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_cv_lib_gen_main=no
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882 conftest$ac_exeext conftest.$ac_ext
15883 LIBS=$ac_check_lib_save_LIBS
15885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15886 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15887 if test $ac_cv_lib_gen_main = yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_LIBGEN 1
15900 { echo "$as_me:$LINENO: checking for select" >&5
15901 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15902 if test "${ac_cv_func_select+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 /* Define select to an innocuous variant, in case <limits.h> declares select.
15912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15913 #define select innocuous_select
15915 /* System header to define __stub macros and hopefully few prototypes,
15916 which can conflict with char select (); below.
15917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918 <limits.h> exists even on freestanding compilers. */
15921 # include <limits.h>
15923 # include <assert.h>
15928 /* Override any GCC internal prototype to avoid an error.
15929 Use char because int might match the return type of a GCC
15930 builtin and then its argument prototype would still apply. */
15935 /* The GNU C library defines this for functions which it implements
15936 to always fail with ENOSYS. Some functions are actually named
15937 something starting with __ and the normal name is an alias. */
15938 #if defined __stub_select || defined __stub___select
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (ac_try="$ac_link"
15952 case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_link") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest$ac_exeext &&
15967 $as_test_x conftest$ac_exeext; then
15968 ac_cv_func_select=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_cv_func_select=no
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977 conftest$ac_exeext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15980 echo "${ECHO_T}$ac_cv_func_select" >&6; }
15981 if test $ac_cv_func_select = yes; then
15984 { { echo "$as_me:$LINENO: error: select() required." >&5
15985 echo "$as_me: error: select() required." >&2;}
15986 { (exit 1); exit 1; }; }
15990 if test "${ac_cv_header_winsock_h}" != yes; then
15993 for ac_header in sys/select.h sys/socket.h
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16006 # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <$ac_header>
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest.$ac_objext; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <$ac_header>
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null && {
16071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16074 ac_header_preproc=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_header_preproc=no
16082 rm -f conftest.err conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6; }
16086 # So? What about this header?
16087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16093 ac_header_preproc=yes
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16109 ## --------------------------------------------- ##
16110 ## Report this to <http://www.openldap.org/its/> ##
16111 ## --------------------------------------------- ##
16113 ) | sed "s/^/$as_me: WARNING: /" >&2
16116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 eval "$as_ac_Header=\$ac_header_preproc"
16123 ac_res=`eval echo '${'$as_ac_Header'}'`
16124 { echo "$as_me:$LINENO: result: $ac_res" >&5
16125 echo "${ECHO_T}$ac_res" >&6; }
16128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16137 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16138 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16139 if test "${ac_cv_func_select_args+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16143 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16144 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 #ifdef HAVE_SYS_SELECT_H
16153 # include <sys/select.h>
16155 #ifdef HAVE_SYS_SOCKET_H
16156 # include <sys/socket.h>
16162 extern int select ($ac_arg1,
16163 $ac_arg234, $ac_arg234, $ac_arg234,
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 # Provide a safe default value.
16199 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16202 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16203 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16204 ac_save_IFS=$IFS; IFS=','
16205 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16209 cat >>confdefs.h <<_ACEOF
16210 #define SELECT_TYPE_ARG1 $1
16214 cat >>confdefs.h <<_ACEOF
16215 #define SELECT_TYPE_ARG234 ($2)
16219 cat >>confdefs.h <<_ACEOF
16220 #define SELECT_TYPE_ARG5 ($3)
16229 for ac_func in poll
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16253 # include <limits.h>
16255 # include <assert.h>
16260 /* Override any GCC internal prototype to avoid an error.
16261 Use char because int might match the return type of a GCC
16262 builtin and then its argument prototype would still apply. */
16267 /* The GNU C library defines this for functions which it implements
16268 to always fail with ENOSYS. Some functions are actually named
16269 something starting with __ and the normal name is an alias. */
16270 #if defined __stub_$ac_func || defined __stub___$ac_func
16277 return $ac_func ();
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16300 eval "$as_ac_var=yes"
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 eval "$as_ac_var=no"
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309 conftest$ac_exeext conftest.$ac_ext
16311 ac_res=`eval echo '${'$as_ac_var'}'`
16312 { echo "$as_me:$LINENO: result: $ac_res" >&5
16313 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_var'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322 if test $ac_cv_func_poll = yes; then
16325 for ac_header in poll.h sys/poll.h
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16338 # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16348 #include <$ac_header>
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_compile") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest.$ac_objext; then
16367 ac_header_compiler=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_header_compiler=no
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6; }
16379 # Is the header present?
16380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 #include <$ac_header>
16390 if { (ac_try="$ac_cpp conftest.$ac_ext"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } >/dev/null && {
16403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16406 ac_header_preproc=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_header_preproc=no
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16418 # So? What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425 ac_header_preproc=yes
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441 ## --------------------------------------------- ##
16442 ## Report this to <http://www.openldap.org/its/> ##
16443 ## --------------------------------------------- ##
16445 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 eval "$as_ac_Header=\$ac_header_preproc"
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 for ac_header in sys/epoll.h
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16485 # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 $ac_includes_default
16495 #include <$ac_header>
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest.$ac_objext; then
16514 ac_header_compiler=yes
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_header_compiler=no
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6; }
16526 # Is the header present?
16527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <$ac_header>
16537 if { (ac_try="$ac_cpp conftest.$ac_ext"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } >/dev/null && {
16550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16553 ac_header_preproc=yes
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_preproc=no
16561 rm -f conftest.err conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 echo "${ECHO_T}$ac_header_preproc" >&6; }
16565 # So? What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16588 ## --------------------------------------------- ##
16589 ## Report this to <http://www.openldap.org/its/> ##
16590 ## --------------------------------------------- ##
16592 ) | sed "s/^/$as_me: WARNING: /" >&2
16595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 eval "$as_ac_Header=\$ac_header_preproc"
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16608 cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16616 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16617 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16618 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16619 if test "$cross_compiling" = yes; then
16620 { echo "$as_me:$LINENO: result: no" >&5
16621 echo "${ECHO_T}no" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 int main(int argc, char **argv)
16631 int epfd = epoll_create(256);
16632 exit (epfd == -1 ? 1 : 0);
16635 rm -f conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_link") 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 { echo "$as_me:$LINENO: result: yes" >&5
16656 echo "${ECHO_T}yes" >&6; }
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_EPOLL 1
16663 echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ( exit $ac_status )
16668 { echo "$as_me:$LINENO: result: no" >&5
16669 echo "${ECHO_T}no" >&6; }
16671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16678 for ac_header in sys/devpoll.h
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688 { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16691 # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16701 #include <$ac_header>
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_compile") 2>conftest.er1
16712 grep -v '^ *+' conftest.er1 >conftest.err
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest.$ac_objext; then
16720 ac_header_compiler=yes
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_header_compiler=no
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <$ac_header>
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16751 grep -v '^ *+' conftest.er1 >conftest.err
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } >/dev/null && {
16756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16759 ac_header_preproc=yes
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_header_preproc=no
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16771 # So? What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778 ac_header_preproc=yes
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16798 ) | sed "s/^/$as_me: WARNING: /" >&2
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 eval "$as_ac_Header=\$ac_header_preproc"
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809 { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16822 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16823 -a "${ac_cv_header_poll_h}" = yes ; \
16825 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16826 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16827 if test "$cross_compiling" = yes; then
16828 { echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6; }
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 int main(int argc, char **argv)
16839 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16840 exit (devpollfd == -1 ? 1 : 0);
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 { echo "$as_me:$LINENO: result: yes" >&5
16864 echo "${ECHO_T}yes" >&6; }
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_DEVPOLL 1
16871 echo "$as_me: program exited with status $ac_status" >&5
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ( exit $ac_status )
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16899 #include <sys/types.h>
16902 #include <stdlib.h>
16907 char *c = (char *) *sys_errlist
16912 rm -f conftest.$ac_objext
16913 if { (ac_try="$ac_compile"
16914 case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_compile") 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } && {
16926 test -z "$ac_c_werror_flag" ||
16927 test ! -s conftest.err
16928 } && test -s conftest.$ac_objext; then
16929 ol_cv_dcl_sys_errlist=yes
16930 ol_cv_have_sys_errlist=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ol_cv_dcl_sys_errlist=no
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16941 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16943 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16944 if test $ol_cv_dcl_sys_errlist = no ; then
16946 cat >>confdefs.h <<\_ACEOF
16947 #define DECL_SYS_ERRLIST 1
16951 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16952 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16953 if test "${ol_cv_have_sys_errlist+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16967 char *c = (char *) *sys_errlist
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_link") 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest$ac_exeext &&
16989 $as_test_x conftest$ac_exeext; then
16990 ol_cv_have_sys_errlist=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ol_cv_have_sys_errlist=no
16998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16999 conftest$ac_exeext conftest.$ac_ext
17001 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17002 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17004 if test $ol_cv_have_sys_errlist = yes ; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_SYS_ERRLIST 1
17013 for ac_func in strerror strerror_r
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17029 #define $ac_func innocuous_$ac_func
17031 /* System header to define __stub macros and hopefully few prototypes,
17032 which can conflict with char $ac_func (); below.
17033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034 <limits.h> exists even on freestanding compilers. */
17037 # include <limits.h>
17039 # include <assert.h>
17044 /* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
17051 /* The GNU C library defines this for functions which it implements
17052 to always fail with ENOSYS. Some functions are actually named
17053 something starting with __ and the normal name is an alias. */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17061 return $ac_func ();
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest$ac_exeext &&
17083 $as_test_x conftest$ac_exeext; then
17084 eval "$as_ac_var=yes"
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 eval "$as_ac_var=no"
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093 conftest$ac_exeext conftest.$ac_ext
17095 ac_res=`eval echo '${'$as_ac_var'}'`
17096 { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17106 ol_cv_func_strerror_r=no
17107 if test "${ac_cv_func_strerror_r}" = yes ; then
17108 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17109 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17110 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 #include <string.h>
17122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17123 $EGREP "strerror_r" >/dev/null 2>&1; then
17124 ol_decl_strerror_r=yes
17126 ol_decl_strerror_r=no
17130 if test $ol_decl_strerror_r = yes ; then
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 #include <string.h>
17141 /* from autoconf 2.59 */
17143 char x = *strerror_r (0, buf, sizeof buf);
17144 char *p = strerror_r (0, buf, sizeof buf);
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest.$ac_objext; then
17167 ol_cv_nonposix_strerror_r=yes
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ol_cv_nonposix_strerror_r=no
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177 if test "$cross_compiling" = yes; then
17178 ol_cv_nonposix_strerror=no
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17190 strerror_r( 1, buf, sizeof buf );
17191 exit( buf[0] == 0 );
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ol_cv_nonposix_strerror_r=yes
17217 echo "$as_me: program exited with status $ac_status" >&5
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ( exit $ac_status )
17222 ol_cv_nonposix_strerror=no
17224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17231 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17232 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17233 if test $ol_cv_nonposix_strerror_r = yes ; then
17235 cat >>confdefs.h <<\_ACEOF
17236 #define HAVE_NONPOSIX_STRERROR_R 1
17241 elif test "${ac_cv_func_strerror}" = no ; then
17242 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17243 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17244 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17256 #include <sys/types.h>
17259 #include <stdlib.h>
17264 char *c = (char *) *sys_errlist
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest.$ac_objext; then
17286 ol_cv_dcl_sys_errlist=yes
17287 ol_cv_have_sys_errlist=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ol_cv_dcl_sys_errlist=no
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17298 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17300 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17301 if test $ol_cv_dcl_sys_errlist = no ; then
17303 cat >>confdefs.h <<\_ACEOF
17304 #define DECL_SYS_ERRLIST 1
17308 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17309 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17310 if test "${ol_cv_have_sys_errlist+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17324 char *c = (char *) *sys_errlist
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 ol_cv_have_sys_errlist=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ol_cv_have_sys_errlist=no
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17359 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17361 if test $ol_cv_have_sys_errlist = yes ; then
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_SYS_ERRLIST 1
17373 for ac_header in regex.h
17375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #ifdef HAVE_SYS_TYPES_H
17389 #include <sys/types.h>
17393 #include <$ac_header>
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 eval "$as_ac_Header=yes"
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 eval "$as_ac_Header=no"
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422 ac_res=`eval echo '${'$as_ac_Header'}'`
17423 { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17435 if test "$ac_cv_header_regex_h" != yes ; then
17436 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17437 echo "$as_me: error: POSIX regex.h required." >&2;}
17438 { (exit 1); exit 1; }; }
17440 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17441 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17442 if test "${ac_cv_search_regfree+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ac_func_search_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17453 /* Override any GCC internal prototype to avoid an error.
17454 Use char because int might match the return type of a GCC
17455 builtin and then its argument prototype would still apply. */
17468 for ac_lib in '' regex gnuregex; do
17469 if test -z "$ac_lib"; then
17470 ac_res="none required"
17473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest$ac_exeext &&
17492 $as_test_x conftest$ac_exeext; then
17493 ac_cv_search_regfree=$ac_res
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17503 if test "${ac_cv_search_regfree+set}" = set; then
17507 if test "${ac_cv_search_regfree+set}" = set; then
17510 ac_cv_search_regfree=no
17512 rm conftest.$ac_ext
17513 LIBS=$ac_func_search_save_LIBS
17515 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17516 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17517 ac_res=$ac_cv_search_regfree
17518 if test "$ac_res" != no; then
17519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17522 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17523 echo "$as_me: error: POSIX regex required." >&2;}
17524 { (exit 1); exit 1; }; }
17529 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17530 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17531 if test "${ol_cv_c_posix_regex+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 if test "$cross_compiling" = yes; then
17536 ol_cv_c_posix_regex=cross
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 #include <sys/types.h>
17547 static char *pattern, *string;
17555 if(regcomp(&re, pattern, 0)) {
17559 string = "ALL MATCH";
17561 rc = regexec(&re, string, 0, (void*)0, 0);
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ol_cv_c_posix_regex=yes
17590 echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ( exit $ac_status )
17595 ol_cv_c_posix_regex=no
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17602 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17603 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17605 if test "$ol_cv_c_posix_regex" = no ; then
17606 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17607 echo "$as_me: error: broken POSIX regex!" >&2;}
17608 { (exit 1); exit 1; }; }
17614 for ac_header in sys/uuid.h
17616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624 { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17627 # Is the header compilable?
17628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 $ac_includes_default
17637 #include <$ac_header>
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_compile") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest.$ac_objext; then
17656 ac_header_compiler=yes
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 ac_header_compiler=no
17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17666 echo "${ECHO_T}$ac_header_compiler" >&6; }
17668 # Is the header present?
17669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #include <$ac_header>
17679 if { (ac_try="$ac_cpp conftest.$ac_ext"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } >/dev/null && {
17692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17693 test ! -s conftest.err
17695 ac_header_preproc=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_preproc=no
17703 rm -f conftest.err conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17705 echo "${ECHO_T}$ac_header_preproc" >&6; }
17707 # So? What about this header?
17708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17714 ac_header_preproc=yes
17717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17730 ## --------------------------------------------- ##
17731 ## Report this to <http://www.openldap.org/its/> ##
17732 ## --------------------------------------------- ##
17734 ) | sed "s/^/$as_me: WARNING: /" >&2
17737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 eval "$as_ac_Header=\$ac_header_preproc"
17744 ac_res=`eval echo '${'$as_ac_Header'}'`
17745 { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17758 if test $ac_cv_header_sys_uuid_h = yes ; then
17760 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17761 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17762 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 ac_func_search_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17779 char uuid_to_str ();
17783 return uuid_to_str ();
17788 for ac_lib in '' uuid; do
17789 if test -z "$ac_lib"; then
17790 ac_res="none required"
17793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_link") 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest$ac_exeext &&
17812 $as_test_x conftest$ac_exeext; then
17813 ac_cv_search_uuid_to_str=$ac_res
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17827 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17830 ac_cv_search_uuid_to_str=no
17832 rm conftest.$ac_ext
17833 LIBS=$ac_func_search_save_LIBS
17835 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17836 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17837 ac_res=$ac_cv_search_uuid_to_str
17838 if test "$ac_res" != no; then
17839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17845 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17846 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17847 if test "${ac_cv_search_uuid_create+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 ac_func_search_save_LIBS=$LIBS
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17864 char uuid_create ();
17868 return uuid_create ();
17873 for ac_lib in '' uuid; do
17874 if test -z "$ac_lib"; then
17875 ac_res="none required"
17878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_link") 2>conftest.er1
17889 grep -v '^ *+' conftest.er1 >conftest.err
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext &&
17897 $as_test_x conftest$ac_exeext; then
17898 ac_cv_search_uuid_create=$ac_res
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17908 if test "${ac_cv_search_uuid_create+set}" = set; then
17912 if test "${ac_cv_search_uuid_create+set}" = set; then
17915 ac_cv_search_uuid_create=no
17917 rm conftest.$ac_ext
17918 LIBS=$ac_func_search_save_LIBS
17920 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17921 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17922 ac_res=$ac_cv_search_uuid_create
17923 if test "$ac_res" != no; then
17924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17932 if test $have_uuid = yes ; then
17934 cat >>confdefs.h <<\_ACEOF
17935 #define HAVE_UUID_TO_STR 1
17939 test "$ac_cv_search_uuid_to_str" = "none required" || \
17940 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17944 if test $have_uuid = no ; then
17946 for ac_header in uuid/uuid.h
17948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_res=`eval echo '${'$as_ac_Header'}'`
17956 { echo "$as_me:$LINENO: result: $ac_res" >&5
17957 echo "${ECHO_T}$ac_res" >&6; }
17959 # Is the header compilable?
17960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 $ac_includes_default
17969 #include <$ac_header>
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_compile") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } && {
17985 test -z "$ac_c_werror_flag" ||
17986 test ! -s conftest.err
17987 } && test -s conftest.$ac_objext; then
17988 ac_header_compiler=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_header_compiler=no
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17998 echo "${ECHO_T}$ac_header_compiler" >&6; }
18000 # Is the header present?
18001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 #include <$ac_header>
18011 if { (ac_try="$ac_cpp conftest.$ac_ext"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } >/dev/null && {
18024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18027 ac_header_preproc=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_preproc=no
18035 rm -f conftest.err conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18037 echo "${ECHO_T}$ac_header_preproc" >&6; }
18039 # So? What about this header?
18040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18046 ac_header_preproc=yes
18049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18062 ## --------------------------------------------- ##
18063 ## Report this to <http://www.openldap.org/its/> ##
18064 ## --------------------------------------------- ##
18066 ) | sed "s/^/$as_me: WARNING: /" >&2
18069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 eval "$as_ac_Header=\$ac_header_preproc"
18076 ac_res=`eval echo '${'$as_ac_Header'}'`
18077 { echo "$as_me:$LINENO: result: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18090 if test $ac_cv_header_uuid_uuid_h = yes ; then
18092 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18093 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18094 if test "${ac_cv_search_uuid_generate+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 ac_func_search_save_LIBS=$LIBS
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18111 char uuid_generate ();
18115 return uuid_generate ();
18120 for ac_lib in '' uuid; do
18121 if test -z "$ac_lib"; then
18122 ac_res="none required"
18125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext &&
18144 $as_test_x conftest$ac_exeext; then
18145 ac_cv_search_uuid_generate=$ac_res
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18155 if test "${ac_cv_search_uuid_generate+set}" = set; then
18159 if test "${ac_cv_search_uuid_generate+set}" = set; then
18162 ac_cv_search_uuid_generate=no
18164 rm conftest.$ac_ext
18165 LIBS=$ac_func_search_save_LIBS
18167 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18168 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18169 ac_res=$ac_cv_search_uuid_generate
18170 if test "$ac_res" != no; then
18171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18177 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18178 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18179 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 ac_func_search_save_LIBS=$LIBS
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18196 char uuid_unparse_lower ();
18200 return uuid_unparse_lower ();
18205 for ac_lib in '' uuid; do
18206 if test -z "$ac_lib"; then
18207 ac_res="none required"
18210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && {
18226 test -z "$ac_c_werror_flag" ||
18227 test ! -s conftest.err
18228 } && test -s conftest$ac_exeext &&
18229 $as_test_x conftest$ac_exeext; then
18230 ac_cv_search_uuid_unparse_lower=$ac_res
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18240 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18244 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18247 ac_cv_search_uuid_unparse_lower=no
18249 rm conftest.$ac_ext
18250 LIBS=$ac_func_search_save_LIBS
18252 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18253 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18254 ac_res=$ac_cv_search_uuid_unparse_lower
18255 if test "$ac_res" != no; then
18256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18264 if test $have_uuid = yes ; then
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_UUID_GENERATE 1
18271 test "$ac_cv_search_uuid_generate" = "none required" || \
18272 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18277 if test $have_uuid = no ; then
18278 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18279 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18281 LIBS="$LIBS -lrpcrt4"
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18289 int __stdcall UuidCreate(void *);
18290 int __stdcall UuidToStringA(void *,void **);
18297 UuidToStringA(0,0);
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_link") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest$ac_exeext &&
18320 $as_test_x conftest$ac_exeext; then
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330 conftest$ac_exeext conftest.$ac_ext
18331 if test $need_rpcrt = yes; then
18332 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18335 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18336 echo "${ECHO_T}$need_rpcrt" >&6; }
18339 ol_cv_lib_resolver=no
18340 if test $ol_cv_lib_resolver = no ; then
18341 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18343 if test "${ol_cv_resolver_none+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 LIBS="$ol_RESOLVER_LIB $LIBS"
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18358 #ifdef HAVE_SYS_TYPES_H
18359 # include <sys/types.h>
18361 #include <netinet/in.h>
18362 #ifdef HAVE_ARPA_NAMESER_H
18363 # include <arpa/nameser.h>
18365 #ifdef HAVE_RESOLV_H
18366 # include <resolv.h>
18374 char *request = NULL;
18375 unsigned char reply[64*1024];
18376 unsigned char host[64*1024];
18380 /* Bind 8/9 interface */
18381 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18383 /* Bind 4 interface */
18387 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18391 /* Bind 8/9 interface */
18393 #elif defined(HFIXEDSZ)
18394 /* Bind 4 interface w/ HFIXEDSZ */
18397 /* Bind 4 interface w/o HFIXEDSZ */
18398 p += sizeof(HEADER);
18400 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } && {
18420 test -z "$ac_c_werror_flag" ||
18421 test ! -s conftest.err
18422 } && test -s conftest$ac_exeext &&
18423 $as_test_x conftest$ac_exeext; then
18424 ol_cv_resolver_none=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ol_cv_resolver_none=no
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433 conftest$ac_exeext conftest.$ac_ext
18438 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18439 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18441 if test $ol_cv_resolver_none = yes ; then
18442 ol_cv_lib_resolver=yes
18446 if test $ol_cv_lib_resolver = no ; then
18447 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18448 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18449 if test "${ol_cv_resolver_resolv+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ol_RESOLVER_LIB=-lresolv
18455 LIBS="$ol_RESOLVER_LIB $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18464 #ifdef HAVE_SYS_TYPES_H
18465 # include <sys/types.h>
18467 #include <netinet/in.h>
18468 #ifdef HAVE_ARPA_NAMESER_H
18469 # include <arpa/nameser.h>
18471 #ifdef HAVE_RESOLV_H
18472 # include <resolv.h>
18480 char *request = NULL;
18481 unsigned char reply[64*1024];
18482 unsigned char host[64*1024];
18486 /* Bind 8/9 interface */
18487 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18489 /* Bind 4 interface */
18493 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18497 /* Bind 8/9 interface */
18499 #elif defined(HFIXEDSZ)
18500 /* Bind 4 interface w/ HFIXEDSZ */
18503 /* Bind 4 interface w/o HFIXEDSZ */
18504 p += sizeof(HEADER);
18506 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest$ac_exeext &&
18529 $as_test_x conftest$ac_exeext; then
18530 ol_cv_resolver_resolv=yes
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 ol_cv_resolver_resolv=no
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539 conftest$ac_exeext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18547 if test $ol_cv_resolver_resolv = yes ; then
18548 ol_cv_lib_resolver=-lresolv
18552 if test $ol_cv_lib_resolver = no ; then
18553 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18555 if test "${ol_cv_resolver_bind+set}" = set; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 ol_RESOLVER_LIB=-lbind
18561 LIBS="$ol_RESOLVER_LIB $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18570 #ifdef HAVE_SYS_TYPES_H
18571 # include <sys/types.h>
18573 #include <netinet/in.h>
18574 #ifdef HAVE_ARPA_NAMESER_H
18575 # include <arpa/nameser.h>
18577 #ifdef HAVE_RESOLV_H
18578 # include <resolv.h>
18586 char *request = NULL;
18587 unsigned char reply[64*1024];
18588 unsigned char host[64*1024];
18592 /* Bind 8/9 interface */
18593 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18595 /* Bind 4 interface */
18599 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18603 /* Bind 8/9 interface */
18605 #elif defined(HFIXEDSZ)
18606 /* Bind 4 interface w/ HFIXEDSZ */
18609 /* Bind 4 interface w/o HFIXEDSZ */
18610 p += sizeof(HEADER);
18612 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_link") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest$ac_exeext &&
18635 $as_test_x conftest$ac_exeext; then
18636 ol_cv_resolver_bind=yes
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ol_cv_resolver_bind=no
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645 conftest$ac_exeext conftest.$ac_ext
18650 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18651 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18653 if test $ol_cv_resolver_bind = yes ; then
18654 ol_cv_lib_resolver=-lbind
18661 if test "$ol_cv_lib_resolver" != no ; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_RES_QUERY 1
18668 if test "$ol_enable_dnssrv" != no ; then
18672 if test "$ol_cv_lib_resolver" != yes ; then
18673 LIBS="$ol_cv_lib_resolver $LIBS"
18677 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18678 if test "$ol_link_dnssrv" = no ; then
18679 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18680 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18681 { (exit 1); exit 1; }; }
18684 ol_enable_dnssrv=no
18688 for ac_func in hstrerror
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18704 #define $ac_func innocuous_$ac_func
18706 /* System header to define __stub macros and hopefully few prototypes,
18707 which can conflict with char $ac_func (); below.
18708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709 <limits.h> exists even on freestanding compilers. */
18712 # include <limits.h>
18714 # include <assert.h>
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18726 /* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18736 return $ac_func ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } && {
18755 test -z "$ac_c_werror_flag" ||
18756 test ! -s conftest.err
18757 } && test -s conftest$ac_exeext &&
18758 $as_test_x conftest$ac_exeext; then
18759 eval "$as_ac_var=yes"
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 eval "$as_ac_var=no"
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18770 ac_res=`eval echo '${'$as_ac_var'}'`
18771 { echo "$as_me:$LINENO: result: $ac_res" >&5
18772 echo "${ECHO_T}$ac_res" >&6; }
18773 if test `eval echo '${'$as_ac_var'}'` = yes; then
18774 cat >>confdefs.h <<_ACEOF
18775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18786 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18802 #define $ac_func innocuous_$ac_func
18804 /* System header to define __stub macros and hopefully few prototypes,
18805 which can conflict with char $ac_func (); below.
18806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807 <limits.h> exists even on freestanding compilers. */
18810 # include <limits.h>
18812 # include <assert.h>
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18824 /* The GNU C library defines this for functions which it implements
18825 to always fail with ENOSYS. Some functions are actually named
18826 something starting with __ and the normal name is an alias. */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18834 return $ac_func ();
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext &&
18856 $as_test_x conftest$ac_exeext; then
18857 eval "$as_ac_var=yes"
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 eval "$as_ac_var=no"
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866 conftest$ac_exeext conftest.$ac_ext
18868 ac_res=`eval echo '${'$as_ac_var'}'`
18869 { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18882 if test $ol_enable_ipv6 = yes ; then
18883 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18884 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18885 { (exit 1); exit 1; }; }
18887 elif test $ol_enable_ipv6 != no ; then
18888 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18889 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18890 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 cat >conftest.$ac_ext <<_ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18901 # include <netinet/in.h>
18902 # ifdef INET6_ADDRSTRLEN
18903 __has_inet6_addrstrlen__;
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18909 ol_cv_inet6_addrstrlen=yes
18911 ol_cv_inet6_addrstrlen=no
18916 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18917 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18920 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18921 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18922 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18933 #include <sys/types.h>
18934 #include <sys/socket.h>
18940 struct sockaddr_storage ss;
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_compile") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest.$ac_objext; then
18963 ol_cv_struct_sockaddr_storage=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ol_cv_struct_sockaddr_storage=no
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18974 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18976 if test $ol_cv_inet6_addrstrlen = yes &&
18977 test $ol_cv_struct_sockaddr_storage = yes ; then
18979 elif test $ol_enable_ipv6 = yes &&
18980 test $ol_cv_inet6_addrstrlen = no ; then
18981 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18982 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18983 { (exit 1); exit 1; }; }
18984 elif test $ol_enable_ipv6 = yes &&
18985 test $ol_cv_struct_sockaddr_storage = no ; then
18986 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18987 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18988 { (exit 1); exit 1; }; }
18992 if test $ol_enable_local != no ; then
18994 for ac_header in sys/un.h
18996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ac_res=`eval echo '${'$as_ac_Header'}'`
19004 { echo "$as_me:$LINENO: result: $ac_res" >&5
19005 echo "${ECHO_T}$ac_res" >&6; }
19007 # Is the header compilable?
19008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 $ac_includes_default
19017 #include <$ac_header>
19019 rm -f conftest.$ac_objext
19020 if { (ac_try="$ac_compile"
19021 case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_compile") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && {
19033 test -z "$ac_c_werror_flag" ||
19034 test ! -s conftest.err
19035 } && test -s conftest.$ac_objext; then
19036 ac_header_compiler=yes
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 ac_header_compiler=no
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19046 echo "${ECHO_T}$ac_header_compiler" >&6; }
19048 # Is the header present?
19049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <$ac_header>
19059 if { (ac_try="$ac_cpp conftest.$ac_ext"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } >/dev/null && {
19072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19075 ac_header_preproc=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_header_preproc=no
19083 rm -f conftest.err conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19085 echo "${ECHO_T}$ac_header_preproc" >&6; }
19087 # So? What about this header?
19088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19094 ac_header_preproc=yes
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19110 ## --------------------------------------------- ##
19111 ## Report this to <http://www.openldap.org/its/> ##
19112 ## --------------------------------------------- ##
19114 ) | sed "s/^/$as_me: WARNING: /" >&2
19117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 eval "$as_ac_Header=\$ac_header_preproc"
19124 ac_res=`eval echo '${'$as_ac_Header'}'`
19125 { echo "$as_me:$LINENO: result: $ac_res" >&5
19126 echo "${ECHO_T}$ac_res" >&6; }
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19139 if test $ol_enable_local = auto ; then
19140 ol_enable_local=$ac_cv_header_sys_un_h
19141 elif test $ac_cv_header_sys_un_h = no ; then
19142 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19143 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19144 { (exit 1); exit 1; }; }
19149 if test $ol_with_tls = yes ; then
19154 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19156 for ac_header in openssl/ssl.h
19158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 ac_res=`eval echo '${'$as_ac_Header'}'`
19166 { echo "$as_me:$LINENO: result: $ac_res" >&5
19167 echo "${ECHO_T}$ac_res" >&6; }
19169 # Is the header compilable?
19170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 $ac_includes_default
19179 #include <$ac_header>
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest.$ac_objext; then
19198 ac_header_compiler=yes
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_header_compiler=no
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 echo "${ECHO_T}$ac_header_compiler" >&6; }
19210 # Is the header present?
19211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <$ac_header>
19221 if { (ac_try="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } >/dev/null && {
19234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19237 ac_header_preproc=yes
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_header_preproc=no
19245 rm -f conftest.err conftest.$ac_ext
19246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19247 echo "${ECHO_T}$ac_header_preproc" >&6; }
19249 # So? What about this header?
19250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19256 ac_header_preproc=yes
19259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19272 ## --------------------------------------------- ##
19273 ## Report this to <http://www.openldap.org/its/> ##
19274 ## --------------------------------------------- ##
19276 ) | sed "s/^/$as_me: WARNING: /" >&2
19279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 eval "$as_ac_Header=\$ac_header_preproc"
19286 ac_res=`eval echo '${'$as_ac_Header'}'`
19287 { echo "$as_me:$LINENO: result: $ac_res" >&5
19288 echo "${ECHO_T}$ac_res" >&6; }
19291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19301 if test $ac_cv_header_openssl_ssl_h = yes ; then
19302 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19303 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19304 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lssl -lcrypto $LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19322 char SSL_library_init ();
19326 return SSL_library_init ();
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_link") 2>conftest.er1
19340 grep -v '^ *+' conftest.er1 >conftest.err
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } && {
19345 test -z "$ac_c_werror_flag" ||
19346 test ! -s conftest.err
19347 } && test -s conftest$ac_exeext &&
19348 $as_test_x conftest$ac_exeext; then
19349 ac_cv_lib_ssl_SSL_library_init=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_lib_ssl_SSL_library_init=no
19357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19358 conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19362 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19363 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19371 if test $have_openssl = no ; then
19372 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19373 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19374 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19386 /* Override any GCC internal prototype to avoid an error.
19387 Use char because int might match the return type of a GCC
19388 builtin and then its argument prototype would still apply. */
19392 char ssl3_accept ();
19396 return ssl3_accept ();
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_link") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest$ac_exeext &&
19418 $as_test_x conftest$ac_exeext; then
19419 ac_cv_lib_ssl_ssl3_accept=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_lib_ssl_ssl3_accept=no
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428 conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19432 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19433 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19442 if test $have_openssl = yes ; then
19443 ol_with_tls=openssl
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_OPENSSL 1
19452 if test $need_rsaref = yes; then
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_RSAREF 1
19459 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19461 TLS_LIBS="-lssl -lcrypto"
19464 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19465 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19466 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 #ifdef HAVE_OPENSSL_SSL_H
19478 #include <openssl/ssl.h>
19481 /* Require 0.9.7d+ */
19482 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19483 char *__ssl_compat = "0.9.7d";
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19489 ol_cv_ssl_crl_compat=yes
19491 ol_cv_ssl_crl_compat=no
19496 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19497 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19499 if test $ol_cv_ssl_crl_compat = yes ; then
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_OPENSSL_CRL 1
19510 if test $ol_link_tls = no ; then
19511 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19513 for ac_header in gnutls/gnutls.h
19515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 ac_res=`eval echo '${'$as_ac_Header'}'`
19523 { echo "$as_me:$LINENO: result: $ac_res" >&5
19524 echo "${ECHO_T}$ac_res" >&6; }
19526 # Is the header compilable?
19527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19529 cat >conftest.$ac_ext <<_ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19536 #include <$ac_header>
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest.$ac_objext; then
19555 ac_header_compiler=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_header_compiler=no
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19565 echo "${ECHO_T}$ac_header_compiler" >&6; }
19567 # Is the header present?
19568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <$ac_header>
19578 if { (ac_try="$ac_cpp conftest.$ac_ext"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } >/dev/null && {
19591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19594 ac_header_preproc=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_header_preproc=no
19602 rm -f conftest.err conftest.$ac_ext
19603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19604 echo "${ECHO_T}$ac_header_preproc" >&6; }
19606 # So? What about this header?
19607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19613 ac_header_preproc=yes
19616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19633 ) | sed "s/^/$as_me: WARNING: /" >&2
19636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 eval "$as_ac_Header=\$ac_header_preproc"
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644 { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19679 char gnutls_init ();
19683 return gnutls_init ();
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1 >conftest.err
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 ac_cv_lib_gnutls_gnutls_init=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_lib_gnutls_gnutls_init=no
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19719 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19720 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19727 if test $have_gnutls = yes ; then
19731 TLS_LIBS="-lgnutls"
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_GNUTLS 1
19744 if test $ol_link_tls = yes ; then
19746 cat >>confdefs.h <<\_ACEOF
19751 elif test $ol_with_tls = auto ; then
19752 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19753 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19755 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19756 elif test $ol_with_tls != no ; then
19757 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19758 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19759 { (exit 1); exit 1; }; }
19761 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19762 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19765 if test $ol_enable_lmpasswd != no; then
19766 if test $ol_link_tls != yes ; then
19767 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19768 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19769 { (exit 1); exit 1; }; }
19773 cat >>confdefs.h <<\_ACEOF
19774 #define SLAPD_LMHASH 1
19781 case $ol_with_threads in auto | yes | nt)
19784 { echo "$as_me:$LINENO: checking for _beginthread" >&5
19785 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19786 if test "${ac_cv_func__beginthread+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define _beginthread innocuous__beginthread
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char _beginthread (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19805 # include <limits.h>
19807 # include <assert.h>
19810 #undef _beginthread
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19818 char _beginthread ();
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined __stub__beginthread || defined __stub____beginthread
19829 return _beginthread ();
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext &&
19851 $as_test_x conftest$ac_exeext; then
19852 ac_cv_func__beginthread=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_cv_func__beginthread=no
19860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19861 conftest$ac_exeext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19864 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19867 if test $ac_cv_func__beginthread = yes ; then
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_NT_THREADS 1
19873 ol_cv_nt_threads=yes
19877 if test "$ol_cv_nt_threads" = yes ; then
19879 ol_with_threads=found
19880 ol_with_yielding_select=yes
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE_NT_SERVICE_MANAGER 1
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_NT_EVENT_LOG 1
19894 if test $ol_with_threads = nt ; then
19895 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19896 echo "$as_me: error: could not locate NT Threads" >&2;}
19897 { (exit 1); exit 1; }; }
19902 case $ol_with_threads in auto | yes | posix)
19905 for ac_header in pthread.h
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19918 # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 #include <$ac_header>
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest.$ac_objext; then
19947 ac_header_compiler=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_header_compiler=no
19955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957 echo "${ECHO_T}$ac_header_compiler" >&6; }
19959 # Is the header present?
19960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #include <$ac_header>
19970 if { (ac_try="$ac_cpp conftest.$ac_ext"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } >/dev/null && {
19983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19986 ac_header_preproc=yes
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_header_preproc=no
19994 rm -f conftest.err conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19996 echo "${ECHO_T}$ac_header_preproc" >&6; }
19998 # So? What about this header?
19999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20005 ac_header_preproc=yes
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20021 ## --------------------------------------------- ##
20022 ## Report this to <http://www.openldap.org/its/> ##
20023 ## --------------------------------------------- ##
20025 ) | sed "s/^/$as_me: WARNING: /" >&2
20028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 eval "$as_ac_Header=\$ac_header_preproc"
20035 ac_res=`eval echo '${'$as_ac_Header'}'`
20036 { echo "$as_me:$LINENO: result: $ac_res" >&5
20037 echo "${ECHO_T}$ac_res" >&6; }
20040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20041 cat >>confdefs.h <<_ACEOF
20042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20050 if test $ac_cv_header_pthread_h = yes ; then
20051 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20052 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20053 if test "${ol_cv_pthread_version+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20064 # include <pthread.h>
20070 int i = PTHREAD_CREATE_JOINABLE;
20076 rm -f conftest.$ac_objext
20077 if { (ac_try="$ac_compile"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.$ac_objext; then
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <pthread.h>
20103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104 $EGREP "pthread_detach" >/dev/null 2>&1; then
20105 ol_cv_pthread_version=10
20107 ol_cv_pthread_version=8
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20123 # include <pthread.h>
20124 # ifdef PTHREAD_CREATE_UNDETACHED
20129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20130 $EGREP "draft7" >/dev/null 2>&1; then
20131 ol_cv_pthread_version=7
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 #include <pthread.h>
20143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20144 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20145 ol_cv_pthread_version=6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20155 # include <pthread.h>
20156 #ifdef PTHREAD_MUTEX_INITIALIZER
20161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20162 $EGREP "draft5" >/dev/null 2>&1; then
20163 ol_cv_pthread_version=5
20165 ol_cv_pthread_version=4
20177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20181 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20184 if test $ol_cv_pthread_version != 0 ; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_PTHREADS $ol_cv_pthread_version
20191 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20192 echo "$as_me: error: unknown pthread version" >&2;}
20193 { (exit 1); exit 1; }; }
20196 # consider threads found
20197 ol_with_threads=found
20200 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20201 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20202 if test "${ol_cv_header_linux_threads+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 #include <pthread.h>
20213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20214 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20215 ol_cv_header_linux_threads=yes
20217 ol_cv_header_linux_threads=no
20223 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20224 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20225 if test $ol_cv_header_linux_threads = yes; then
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_LINUX_THREADS 1
20234 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20235 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20236 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 #include <pthread.h>
20246 #ifdef _POSIX_THREAD_IS_GNU_PTH
20251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20252 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20253 ol_cv_header_gnu_pth_pthread_h=yes
20255 ol_cv_header_gnu_pth_pthread_h=no
20261 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20262 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20265 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20267 for ac_header in sched.h
20269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 ac_res=`eval echo '${'$as_ac_Header'}'`
20277 { echo "$as_me:$LINENO: result: $ac_res" >&5
20278 echo "${ECHO_T}$ac_res" >&6; }
20280 # Is the header compilable?
20281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20290 #include <$ac_header>
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_compile") 2>conftest.er1
20301 grep -v '^ *+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest.$ac_objext; then
20309 ac_header_compiler=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_header_compiler=no
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20319 echo "${ECHO_T}$ac_header_compiler" >&6; }
20321 # Is the header present?
20322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20324 cat >conftest.$ac_ext <<_ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20330 #include <$ac_header>
20332 if { (ac_try="$ac_cpp conftest.$ac_ext"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } >/dev/null && {
20345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20346 test ! -s conftest.err
20348 ac_header_preproc=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_header_preproc=no
20356 rm -f conftest.err conftest.$ac_ext
20357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358 echo "${ECHO_T}$ac_header_preproc" >&6; }
20360 # So? What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20367 ac_header_preproc=yes
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20383 ## --------------------------------------------- ##
20384 ## Report this to <http://www.openldap.org/its/> ##
20385 ## --------------------------------------------- ##
20387 ) | sed "s/^/$as_me: WARNING: /" >&2
20390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 eval "$as_ac_Header=\$ac_header_preproc"
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398 { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20403 cat >>confdefs.h <<_ACEOF
20404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20414 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20415 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20416 if test "${ol_cv_pthread_create+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 if test "$cross_compiling" = yes; then
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 /* pthread test headers */
20429 #include <pthread.h>
20430 #if HAVE_PTHREADS < 7
20434 #define NULL (void*)0
20437 static void *task(p)
20440 return (void *) (p == NULL);
20447 /* pthread test function */
20448 #ifndef PTHREAD_CREATE_DETACHED
20449 #define PTHREAD_CREATE_DETACHED 1
20453 int detach = PTHREAD_CREATE_DETACHED;
20455 #if HAVE_PTHREADS > 4
20456 /* Final pthreads */
20457 pthread_attr_t attr;
20459 status = pthread_attr_init(&attr);
20460 if( status ) return status;
20462 #if HAVE_PTHREADS < 7
20463 status = pthread_attr_setdetachstate(&attr, &detach);
20464 if( status < 0 ) status = errno;
20466 status = pthread_attr_setdetachstate(&attr, detach);
20468 if( status ) return status;
20469 status = pthread_create( &t, &attr, task, NULL );
20470 #if HAVE_PTHREADS < 7
20471 if( status < 0 ) status = errno;
20473 if( status ) return status;
20475 /* Draft 4 pthreads */
20476 status = pthread_create( &t, pthread_attr_default, task, NULL );
20477 if( status ) return errno;
20479 /* give thread a chance to complete */
20480 /* it should remain joinable and hence detachable */
20483 status = pthread_detach( &t );
20484 if( status ) return errno;
20487 #ifdef HAVE_LINUX_THREADS
20488 pthread_kill_other_threads_np();
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_link") 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest$ac_exeext &&
20514 $as_test_x conftest$ac_exeext; then
20515 ol_cv_pthread_create=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ol_cv_pthread_create=no
20523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20524 conftest$ac_exeext conftest.$ac_ext
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20533 /* pthread test headers */
20534 #include <pthread.h>
20535 #if HAVE_PTHREADS < 7
20539 #define NULL (void*)0
20542 static void *task(p)
20545 return (void *) (p == NULL);
20549 int main(argc, argv)
20554 /* pthread test function */
20555 #ifndef PTHREAD_CREATE_DETACHED
20556 #define PTHREAD_CREATE_DETACHED 1
20560 int detach = PTHREAD_CREATE_DETACHED;
20562 #if HAVE_PTHREADS > 4
20563 /* Final pthreads */
20564 pthread_attr_t attr;
20566 status = pthread_attr_init(&attr);
20567 if( status ) return status;
20569 #if HAVE_PTHREADS < 7
20570 status = pthread_attr_setdetachstate(&attr, &detach);
20571 if( status < 0 ) status = errno;
20573 status = pthread_attr_setdetachstate(&attr, detach);
20575 if( status ) return status;
20576 status = pthread_create( &t, &attr, task, NULL );
20577 #if HAVE_PTHREADS < 7
20578 if( status < 0 ) status = errno;
20580 if( status ) return status;
20582 /* Draft 4 pthreads */
20583 status = pthread_create( &t, pthread_attr_default, task, NULL );
20584 if( status ) return errno;
20586 /* give thread a chance to complete */
20587 /* it should remain joinable and hence detachable */
20590 status = pthread_detach( &t );
20591 if( status ) return errno;
20594 #ifdef HAVE_LINUX_THREADS
20595 pthread_kill_other_threads_np();
20603 rm -f conftest$ac_exeext
20604 if { (ac_try="$ac_link"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_link") 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ol_cv_pthread_create=yes
20625 echo "$as_me: program exited with status $ac_status" >&5
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ( exit $ac_status )
20630 ol_cv_pthread_create=no
20632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20637 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20638 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20640 if test $ol_cv_pthread_create != no ; then
20641 ol_link_threads=posix
20642 ol_link_pthreads=""
20645 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20646 if test "$ol_link_threads" = no ; then
20648 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20649 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20650 if test "${ol_cv_pthread_kthread+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 LIBS="-kthread $LIBS"
20658 if test "$cross_compiling" = yes; then
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 /* pthread test headers */
20667 #include <pthread.h>
20668 #if HAVE_PTHREADS < 7
20672 #define NULL (void*)0
20675 static void *task(p)
20678 return (void *) (p == NULL);
20685 /* pthread test function */
20686 #ifndef PTHREAD_CREATE_DETACHED
20687 #define PTHREAD_CREATE_DETACHED 1
20691 int detach = PTHREAD_CREATE_DETACHED;
20693 #if HAVE_PTHREADS > 4
20694 /* Final pthreads */
20695 pthread_attr_t attr;
20697 status = pthread_attr_init(&attr);
20698 if( status ) return status;
20700 #if HAVE_PTHREADS < 7
20701 status = pthread_attr_setdetachstate(&attr, &detach);
20702 if( status < 0 ) status = errno;
20704 status = pthread_attr_setdetachstate(&attr, detach);
20706 if( status ) return status;
20707 status = pthread_create( &t, &attr, task, NULL );
20708 #if HAVE_PTHREADS < 7
20709 if( status < 0 ) status = errno;
20711 if( status ) return status;
20713 /* Draft 4 pthreads */
20714 status = pthread_create( &t, pthread_attr_default, task, NULL );
20715 if( status ) return errno;
20717 /* give thread a chance to complete */
20718 /* it should remain joinable and hence detachable */
20721 status = pthread_detach( &t );
20722 if( status ) return errno;
20725 #ifdef HAVE_LINUX_THREADS
20726 pthread_kill_other_threads_np();
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_link") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest$ac_exeext &&
20752 $as_test_x conftest$ac_exeext; then
20753 ol_cv_pthread_kthread=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ol_cv_pthread_kthread=no
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20771 /* pthread test headers */
20772 #include <pthread.h>
20773 #if HAVE_PTHREADS < 7
20777 #define NULL (void*)0
20780 static void *task(p)
20783 return (void *) (p == NULL);
20787 int main(argc, argv)
20792 /* pthread test function */
20793 #ifndef PTHREAD_CREATE_DETACHED
20794 #define PTHREAD_CREATE_DETACHED 1
20798 int detach = PTHREAD_CREATE_DETACHED;
20800 #if HAVE_PTHREADS > 4
20801 /* Final pthreads */
20802 pthread_attr_t attr;
20804 status = pthread_attr_init(&attr);
20805 if( status ) return status;
20807 #if HAVE_PTHREADS < 7
20808 status = pthread_attr_setdetachstate(&attr, &detach);
20809 if( status < 0 ) status = errno;
20811 status = pthread_attr_setdetachstate(&attr, detach);
20813 if( status ) return status;
20814 status = pthread_create( &t, &attr, task, NULL );
20815 #if HAVE_PTHREADS < 7
20816 if( status < 0 ) status = errno;
20818 if( status ) return status;
20820 /* Draft 4 pthreads */
20821 status = pthread_create( &t, pthread_attr_default, task, NULL );
20822 if( status ) return errno;
20824 /* give thread a chance to complete */
20825 /* it should remain joinable and hence detachable */
20828 status = pthread_detach( &t );
20829 if( status ) return errno;
20832 #ifdef HAVE_LINUX_THREADS
20833 pthread_kill_other_threads_np();
20841 rm -f conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_link") 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852 { (case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_try") 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; }; then
20861 ol_cv_pthread_kthread=yes
20863 echo "$as_me: program exited with status $ac_status" >&5
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ( exit $ac_status )
20868 ol_cv_pthread_kthread=no
20870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20879 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20880 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20882 if test $ol_cv_pthread_kthread = yes ; then
20883 ol_link_pthreads="-kthread"
20884 ol_link_threads=posix
20888 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20889 if test "$ol_link_threads" = no ; then
20891 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20892 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20893 if test "${ol_cv_pthread_pthread+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 LIBS="-pthread $LIBS"
20901 if test "$cross_compiling" = yes; then
20902 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20909 /* pthread test headers */
20910 #include <pthread.h>
20911 #if HAVE_PTHREADS < 7
20915 #define NULL (void*)0
20918 static void *task(p)
20921 return (void *) (p == NULL);
20928 /* pthread test function */
20929 #ifndef PTHREAD_CREATE_DETACHED
20930 #define PTHREAD_CREATE_DETACHED 1
20934 int detach = PTHREAD_CREATE_DETACHED;
20936 #if HAVE_PTHREADS > 4
20937 /* Final pthreads */
20938 pthread_attr_t attr;
20940 status = pthread_attr_init(&attr);
20941 if( status ) return status;
20943 #if HAVE_PTHREADS < 7
20944 status = pthread_attr_setdetachstate(&attr, &detach);
20945 if( status < 0 ) status = errno;
20947 status = pthread_attr_setdetachstate(&attr, detach);
20949 if( status ) return status;
20950 status = pthread_create( &t, &attr, task, NULL );
20951 #if HAVE_PTHREADS < 7
20952 if( status < 0 ) status = errno;
20954 if( status ) return status;
20956 /* Draft 4 pthreads */
20957 status = pthread_create( &t, pthread_attr_default, task, NULL );
20958 if( status ) return errno;
20960 /* give thread a chance to complete */
20961 /* it should remain joinable and hence detachable */
20964 status = pthread_detach( &t );
20965 if( status ) return errno;
20968 #ifdef HAVE_LINUX_THREADS
20969 pthread_kill_other_threads_np();
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_link") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1 >conftest.err
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest$ac_exeext &&
20995 $as_test_x conftest$ac_exeext; then
20996 ol_cv_pthread_pthread=yes
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ol_cv_pthread_pthread=no
21004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21005 conftest$ac_exeext conftest.$ac_ext
21007 cat >conftest.$ac_ext <<_ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21014 /* pthread test headers */
21015 #include <pthread.h>
21016 #if HAVE_PTHREADS < 7
21020 #define NULL (void*)0
21023 static void *task(p)
21026 return (void *) (p == NULL);
21030 int main(argc, argv)
21035 /* pthread test function */
21036 #ifndef PTHREAD_CREATE_DETACHED
21037 #define PTHREAD_CREATE_DETACHED 1
21041 int detach = PTHREAD_CREATE_DETACHED;
21043 #if HAVE_PTHREADS > 4
21044 /* Final pthreads */
21045 pthread_attr_t attr;
21047 status = pthread_attr_init(&attr);
21048 if( status ) return status;
21050 #if HAVE_PTHREADS < 7
21051 status = pthread_attr_setdetachstate(&attr, &detach);
21052 if( status < 0 ) status = errno;
21054 status = pthread_attr_setdetachstate(&attr, detach);
21056 if( status ) return status;
21057 status = pthread_create( &t, &attr, task, NULL );
21058 #if HAVE_PTHREADS < 7
21059 if( status < 0 ) status = errno;
21061 if( status ) return status;
21063 /* Draft 4 pthreads */
21064 status = pthread_create( &t, pthread_attr_default, task, NULL );
21065 if( status ) return errno;
21067 /* give thread a chance to complete */
21068 /* it should remain joinable and hence detachable */
21071 status = pthread_detach( &t );
21072 if( status ) return errno;
21075 #ifdef HAVE_LINUX_THREADS
21076 pthread_kill_other_threads_np();
21084 rm -f conftest$ac_exeext
21085 if { (ac_try="$ac_link"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_link") 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21095 { (case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_try") 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21104 ol_cv_pthread_pthread=yes
21106 echo "$as_me: program exited with status $ac_status" >&5
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ( exit $ac_status )
21111 ol_cv_pthread_pthread=no
21113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21123 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21125 if test $ol_cv_pthread_pthread = yes ; then
21126 ol_link_pthreads="-pthread"
21127 ol_link_threads=posix
21131 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21132 if test "$ol_link_threads" = no ; then
21134 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21135 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21136 if test "${ol_cv_pthread_pthreads+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 LIBS="-pthreads $LIBS"
21144 if test "$cross_compiling" = yes; then
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21152 /* pthread test headers */
21153 #include <pthread.h>
21154 #if HAVE_PTHREADS < 7
21158 #define NULL (void*)0
21161 static void *task(p)
21164 return (void *) (p == NULL);
21171 /* pthread test function */
21172 #ifndef PTHREAD_CREATE_DETACHED
21173 #define PTHREAD_CREATE_DETACHED 1
21177 int detach = PTHREAD_CREATE_DETACHED;
21179 #if HAVE_PTHREADS > 4
21180 /* Final pthreads */
21181 pthread_attr_t attr;
21183 status = pthread_attr_init(&attr);
21184 if( status ) return status;
21186 #if HAVE_PTHREADS < 7
21187 status = pthread_attr_setdetachstate(&attr, &detach);
21188 if( status < 0 ) status = errno;
21190 status = pthread_attr_setdetachstate(&attr, detach);
21192 if( status ) return status;
21193 status = pthread_create( &t, &attr, task, NULL );
21194 #if HAVE_PTHREADS < 7
21195 if( status < 0 ) status = errno;
21197 if( status ) return status;
21199 /* Draft 4 pthreads */
21200 status = pthread_create( &t, pthread_attr_default, task, NULL );
21201 if( status ) return errno;
21203 /* give thread a chance to complete */
21204 /* it should remain joinable and hence detachable */
21207 status = pthread_detach( &t );
21208 if( status ) return errno;
21211 #ifdef HAVE_LINUX_THREADS
21212 pthread_kill_other_threads_np();
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_link") 2>conftest.er1
21230 grep -v '^ *+' conftest.er1 >conftest.err
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext &&
21238 $as_test_x conftest$ac_exeext; then
21239 ol_cv_pthread_pthreads=yes
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ol_cv_pthread_pthreads=no
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248 conftest$ac_exeext conftest.$ac_ext
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21257 /* pthread test headers */
21258 #include <pthread.h>
21259 #if HAVE_PTHREADS < 7
21263 #define NULL (void*)0
21266 static void *task(p)
21269 return (void *) (p == NULL);
21273 int main(argc, argv)
21278 /* pthread test function */
21279 #ifndef PTHREAD_CREATE_DETACHED
21280 #define PTHREAD_CREATE_DETACHED 1
21284 int detach = PTHREAD_CREATE_DETACHED;
21286 #if HAVE_PTHREADS > 4
21287 /* Final pthreads */
21288 pthread_attr_t attr;
21290 status = pthread_attr_init(&attr);
21291 if( status ) return status;
21293 #if HAVE_PTHREADS < 7
21294 status = pthread_attr_setdetachstate(&attr, &detach);
21295 if( status < 0 ) status = errno;
21297 status = pthread_attr_setdetachstate(&attr, detach);
21299 if( status ) return status;
21300 status = pthread_create( &t, &attr, task, NULL );
21301 #if HAVE_PTHREADS < 7
21302 if( status < 0 ) status = errno;
21304 if( status ) return status;
21306 /* Draft 4 pthreads */
21307 status = pthread_create( &t, pthread_attr_default, task, NULL );
21308 if( status ) return errno;
21310 /* give thread a chance to complete */
21311 /* it should remain joinable and hence detachable */
21314 status = pthread_detach( &t );
21315 if( status ) return errno;
21318 #ifdef HAVE_LINUX_THREADS
21319 pthread_kill_other_threads_np();
21327 rm -f conftest$ac_exeext
21328 if { (ac_try="$ac_link"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_link") 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338 { (case "(($ac_try" in
21339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340 *) ac_try_echo=$ac_try;;
21342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343 (eval "$ac_try") 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ol_cv_pthread_pthreads=yes
21349 echo "$as_me: program exited with status $ac_status" >&5
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ( exit $ac_status )
21354 ol_cv_pthread_pthreads=no
21356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21365 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21366 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21368 if test $ol_cv_pthread_pthreads = yes ; then
21369 ol_link_pthreads="-pthreads"
21370 ol_link_threads=posix
21374 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21375 if test "$ol_link_threads" = no ; then
21377 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21378 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21379 if test "${ol_cv_pthread_mthreads+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 LIBS="-mthreads $LIBS"
21387 if test "$cross_compiling" = yes; then
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21395 /* pthread test headers */
21396 #include <pthread.h>
21397 #if HAVE_PTHREADS < 7
21401 #define NULL (void*)0
21404 static void *task(p)
21407 return (void *) (p == NULL);
21414 /* pthread test function */
21415 #ifndef PTHREAD_CREATE_DETACHED
21416 #define PTHREAD_CREATE_DETACHED 1
21420 int detach = PTHREAD_CREATE_DETACHED;
21422 #if HAVE_PTHREADS > 4
21423 /* Final pthreads */
21424 pthread_attr_t attr;
21426 status = pthread_attr_init(&attr);
21427 if( status ) return status;
21429 #if HAVE_PTHREADS < 7
21430 status = pthread_attr_setdetachstate(&attr, &detach);
21431 if( status < 0 ) status = errno;
21433 status = pthread_attr_setdetachstate(&attr, detach);
21435 if( status ) return status;
21436 status = pthread_create( &t, &attr, task, NULL );
21437 #if HAVE_PTHREADS < 7
21438 if( status < 0 ) status = errno;
21440 if( status ) return status;
21442 /* Draft 4 pthreads */
21443 status = pthread_create( &t, pthread_attr_default, task, NULL );
21444 if( status ) return errno;
21446 /* give thread a chance to complete */
21447 /* it should remain joinable and hence detachable */
21450 status = pthread_detach( &t );
21451 if( status ) return errno;
21454 #ifdef HAVE_LINUX_THREADS
21455 pthread_kill_other_threads_np();
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_link") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest$ac_exeext &&
21481 $as_test_x conftest$ac_exeext; then
21482 ol_cv_pthread_mthreads=yes
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ol_cv_pthread_mthreads=no
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491 conftest$ac_exeext conftest.$ac_ext
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21500 /* pthread test headers */
21501 #include <pthread.h>
21502 #if HAVE_PTHREADS < 7
21506 #define NULL (void*)0
21509 static void *task(p)
21512 return (void *) (p == NULL);
21516 int main(argc, argv)
21521 /* pthread test function */
21522 #ifndef PTHREAD_CREATE_DETACHED
21523 #define PTHREAD_CREATE_DETACHED 1
21527 int detach = PTHREAD_CREATE_DETACHED;
21529 #if HAVE_PTHREADS > 4
21530 /* Final pthreads */
21531 pthread_attr_t attr;
21533 status = pthread_attr_init(&attr);
21534 if( status ) return status;
21536 #if HAVE_PTHREADS < 7
21537 status = pthread_attr_setdetachstate(&attr, &detach);
21538 if( status < 0 ) status = errno;
21540 status = pthread_attr_setdetachstate(&attr, detach);
21542 if( status ) return status;
21543 status = pthread_create( &t, &attr, task, NULL );
21544 #if HAVE_PTHREADS < 7
21545 if( status < 0 ) status = errno;
21547 if( status ) return status;
21549 /* Draft 4 pthreads */
21550 status = pthread_create( &t, pthread_attr_default, task, NULL );
21551 if( status ) return errno;
21553 /* give thread a chance to complete */
21554 /* it should remain joinable and hence detachable */
21557 status = pthread_detach( &t );
21558 if( status ) return errno;
21561 #ifdef HAVE_LINUX_THREADS
21562 pthread_kill_other_threads_np();
21570 rm -f conftest$ac_exeext
21571 if { (ac_try="$ac_link"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_link") 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21581 { (case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_try") 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
21590 ol_cv_pthread_mthreads=yes
21592 echo "$as_me: program exited with status $ac_status" >&5
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ( exit $ac_status )
21597 ol_cv_pthread_mthreads=no
21599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21609 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21611 if test $ol_cv_pthread_mthreads = yes ; then
21612 ol_link_pthreads="-mthreads"
21613 ol_link_threads=posix
21617 # Pthread try link: -thread (ol_cv_pthread_thread)
21618 if test "$ol_link_threads" = no ; then
21620 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21621 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21622 if test "${ol_cv_pthread_thread+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 LIBS="-thread $LIBS"
21630 if test "$cross_compiling" = yes; then
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21638 /* pthread test headers */
21639 #include <pthread.h>
21640 #if HAVE_PTHREADS < 7
21644 #define NULL (void*)0
21647 static void *task(p)
21650 return (void *) (p == NULL);
21657 /* pthread test function */
21658 #ifndef PTHREAD_CREATE_DETACHED
21659 #define PTHREAD_CREATE_DETACHED 1
21663 int detach = PTHREAD_CREATE_DETACHED;
21665 #if HAVE_PTHREADS > 4
21666 /* Final pthreads */
21667 pthread_attr_t attr;
21669 status = pthread_attr_init(&attr);
21670 if( status ) return status;
21672 #if HAVE_PTHREADS < 7
21673 status = pthread_attr_setdetachstate(&attr, &detach);
21674 if( status < 0 ) status = errno;
21676 status = pthread_attr_setdetachstate(&attr, detach);
21678 if( status ) return status;
21679 status = pthread_create( &t, &attr, task, NULL );
21680 #if HAVE_PTHREADS < 7
21681 if( status < 0 ) status = errno;
21683 if( status ) return status;
21685 /* Draft 4 pthreads */
21686 status = pthread_create( &t, pthread_attr_default, task, NULL );
21687 if( status ) return errno;
21689 /* give thread a chance to complete */
21690 /* it should remain joinable and hence detachable */
21693 status = pthread_detach( &t );
21694 if( status ) return errno;
21697 #ifdef HAVE_LINUX_THREADS
21698 pthread_kill_other_threads_np();
21707 rm -f conftest.$ac_objext conftest$ac_exeext
21708 if { (ac_try="$ac_link"
21709 case "(($ac_try" in
21710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21711 *) ac_try_echo=$ac_try;;
21713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21714 (eval "$ac_link") 2>conftest.er1
21716 grep -v '^ *+' conftest.er1 >conftest.err
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && {
21721 test -z "$ac_c_werror_flag" ||
21722 test ! -s conftest.err
21723 } && test -s conftest$ac_exeext &&
21724 $as_test_x conftest$ac_exeext; then
21725 ol_cv_pthread_thread=yes
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ol_cv_pthread_thread=no
21733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21734 conftest$ac_exeext conftest.$ac_ext
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21743 /* pthread test headers */
21744 #include <pthread.h>
21745 #if HAVE_PTHREADS < 7
21749 #define NULL (void*)0
21752 static void *task(p)
21755 return (void *) (p == NULL);
21759 int main(argc, argv)
21764 /* pthread test function */
21765 #ifndef PTHREAD_CREATE_DETACHED
21766 #define PTHREAD_CREATE_DETACHED 1
21770 int detach = PTHREAD_CREATE_DETACHED;
21772 #if HAVE_PTHREADS > 4
21773 /* Final pthreads */
21774 pthread_attr_t attr;
21776 status = pthread_attr_init(&attr);
21777 if( status ) return status;
21779 #if HAVE_PTHREADS < 7
21780 status = pthread_attr_setdetachstate(&attr, &detach);
21781 if( status < 0 ) status = errno;
21783 status = pthread_attr_setdetachstate(&attr, detach);
21785 if( status ) return status;
21786 status = pthread_create( &t, &attr, task, NULL );
21787 #if HAVE_PTHREADS < 7
21788 if( status < 0 ) status = errno;
21790 if( status ) return status;
21792 /* Draft 4 pthreads */
21793 status = pthread_create( &t, pthread_attr_default, task, NULL );
21794 if( status ) return errno;
21796 /* give thread a chance to complete */
21797 /* it should remain joinable and hence detachable */
21800 status = pthread_detach( &t );
21801 if( status ) return errno;
21804 #ifdef HAVE_LINUX_THREADS
21805 pthread_kill_other_threads_np();
21813 rm -f conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824 { (case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_try") 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ol_cv_pthread_thread=yes
21835 echo "$as_me: program exited with status $ac_status" >&5
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ( exit $ac_status )
21840 ol_cv_pthread_thread=no
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21852 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21854 if test $ol_cv_pthread_thread = yes ; then
21855 ol_link_pthreads="-thread"
21856 ol_link_threads=posix
21861 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21862 if test "$ol_link_threads" = no ; then
21863 # try -lpthread -lmach -lexc -lc_r
21864 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21865 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21866 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21874 if test "$cross_compiling" = yes; then
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21882 /* pthread test headers */
21883 #include <pthread.h>
21884 #if HAVE_PTHREADS < 7
21888 #define NULL (void*)0
21891 static void *task(p)
21894 return (void *) (p == NULL);
21901 /* pthread test function */
21902 #ifndef PTHREAD_CREATE_DETACHED
21903 #define PTHREAD_CREATE_DETACHED 1
21907 int detach = PTHREAD_CREATE_DETACHED;
21909 #if HAVE_PTHREADS > 4
21910 /* Final pthreads */
21911 pthread_attr_t attr;
21913 status = pthread_attr_init(&attr);
21914 if( status ) return status;
21916 #if HAVE_PTHREADS < 7
21917 status = pthread_attr_setdetachstate(&attr, &detach);
21918 if( status < 0 ) status = errno;
21920 status = pthread_attr_setdetachstate(&attr, detach);
21922 if( status ) return status;
21923 status = pthread_create( &t, &attr, task, NULL );
21924 #if HAVE_PTHREADS < 7
21925 if( status < 0 ) status = errno;
21927 if( status ) return status;
21929 /* Draft 4 pthreads */
21930 status = pthread_create( &t, pthread_attr_default, task, NULL );
21931 if( status ) return errno;
21933 /* give thread a chance to complete */
21934 /* it should remain joinable and hence detachable */
21937 status = pthread_detach( &t );
21938 if( status ) return errno;
21941 #ifdef HAVE_LINUX_THREADS
21942 pthread_kill_other_threads_np();
21951 rm -f conftest.$ac_objext conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_link") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest$ac_exeext &&
21968 $as_test_x conftest$ac_exeext; then
21969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21978 conftest$ac_exeext conftest.$ac_ext
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 /* pthread test headers */
21988 #include <pthread.h>
21989 #if HAVE_PTHREADS < 7
21993 #define NULL (void*)0
21996 static void *task(p)
21999 return (void *) (p == NULL);
22003 int main(argc, argv)
22008 /* pthread test function */
22009 #ifndef PTHREAD_CREATE_DETACHED
22010 #define PTHREAD_CREATE_DETACHED 1
22014 int detach = PTHREAD_CREATE_DETACHED;
22016 #if HAVE_PTHREADS > 4
22017 /* Final pthreads */
22018 pthread_attr_t attr;
22020 status = pthread_attr_init(&attr);
22021 if( status ) return status;
22023 #if HAVE_PTHREADS < 7
22024 status = pthread_attr_setdetachstate(&attr, &detach);
22025 if( status < 0 ) status = errno;
22027 status = pthread_attr_setdetachstate(&attr, detach);
22029 if( status ) return status;
22030 status = pthread_create( &t, &attr, task, NULL );
22031 #if HAVE_PTHREADS < 7
22032 if( status < 0 ) status = errno;
22034 if( status ) return status;
22036 /* Draft 4 pthreads */
22037 status = pthread_create( &t, pthread_attr_default, task, NULL );
22038 if( status ) return errno;
22040 /* give thread a chance to complete */
22041 /* it should remain joinable and hence detachable */
22044 status = pthread_detach( &t );
22045 if( status ) return errno;
22048 #ifdef HAVE_LINUX_THREADS
22049 pthread_kill_other_threads_np();
22057 rm -f conftest$ac_exeext
22058 if { (ac_try="$ac_link"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_link") 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22068 { (case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_try") 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22079 echo "$as_me: program exited with status $ac_status" >&5
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ( exit $ac_status )
22084 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22096 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22098 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22099 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22100 ol_link_threads=posix
22104 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22105 if test "$ol_link_threads" = no ; then
22106 # try -lpthread -lmach -lexc
22107 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22108 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22109 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 LIBS="-lpthread -lmach -lexc $LIBS"
22117 if test "$cross_compiling" = yes; then
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22125 /* pthread test headers */
22126 #include <pthread.h>
22127 #if HAVE_PTHREADS < 7
22131 #define NULL (void*)0
22134 static void *task(p)
22137 return (void *) (p == NULL);
22144 /* pthread test function */
22145 #ifndef PTHREAD_CREATE_DETACHED
22146 #define PTHREAD_CREATE_DETACHED 1
22150 int detach = PTHREAD_CREATE_DETACHED;
22152 #if HAVE_PTHREADS > 4
22153 /* Final pthreads */
22154 pthread_attr_t attr;
22156 status = pthread_attr_init(&attr);
22157 if( status ) return status;
22159 #if HAVE_PTHREADS < 7
22160 status = pthread_attr_setdetachstate(&attr, &detach);
22161 if( status < 0 ) status = errno;
22163 status = pthread_attr_setdetachstate(&attr, detach);
22165 if( status ) return status;
22166 status = pthread_create( &t, &attr, task, NULL );
22167 #if HAVE_PTHREADS < 7
22168 if( status < 0 ) status = errno;
22170 if( status ) return status;
22172 /* Draft 4 pthreads */
22173 status = pthread_create( &t, pthread_attr_default, task, NULL );
22174 if( status ) return errno;
22176 /* give thread a chance to complete */
22177 /* it should remain joinable and hence detachable */
22180 status = pthread_detach( &t );
22181 if( status ) return errno;
22184 #ifdef HAVE_LINUX_THREADS
22185 pthread_kill_other_threads_np();
22194 rm -f conftest.$ac_objext conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_link") 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest$ac_exeext &&
22211 $as_test_x conftest$ac_exeext; then
22212 ol_cv_pthread_lpthread_lmach_lexc=yes
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ol_cv_pthread_lpthread_lmach_lexc=no
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221 conftest$ac_exeext conftest.$ac_ext
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22230 /* pthread test headers */
22231 #include <pthread.h>
22232 #if HAVE_PTHREADS < 7
22236 #define NULL (void*)0
22239 static void *task(p)
22242 return (void *) (p == NULL);
22246 int main(argc, argv)
22251 /* pthread test function */
22252 #ifndef PTHREAD_CREATE_DETACHED
22253 #define PTHREAD_CREATE_DETACHED 1
22257 int detach = PTHREAD_CREATE_DETACHED;
22259 #if HAVE_PTHREADS > 4
22260 /* Final pthreads */
22261 pthread_attr_t attr;
22263 status = pthread_attr_init(&attr);
22264 if( status ) return status;
22266 #if HAVE_PTHREADS < 7
22267 status = pthread_attr_setdetachstate(&attr, &detach);
22268 if( status < 0 ) status = errno;
22270 status = pthread_attr_setdetachstate(&attr, detach);
22272 if( status ) return status;
22273 status = pthread_create( &t, &attr, task, NULL );
22274 #if HAVE_PTHREADS < 7
22275 if( status < 0 ) status = errno;
22277 if( status ) return status;
22279 /* Draft 4 pthreads */
22280 status = pthread_create( &t, pthread_attr_default, task, NULL );
22281 if( status ) return errno;
22283 /* give thread a chance to complete */
22284 /* it should remain joinable and hence detachable */
22287 status = pthread_detach( &t );
22288 if( status ) return errno;
22291 #ifdef HAVE_LINUX_THREADS
22292 pthread_kill_other_threads_np();
22300 rm -f conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_link") 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22311 { (case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_try") 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ol_cv_pthread_lpthread_lmach_lexc=yes
22322 echo "$as_me: program exited with status $ac_status" >&5
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ( exit $ac_status )
22327 ol_cv_pthread_lpthread_lmach_lexc=no
22329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22339 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22341 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22342 ol_link_pthreads="-lpthread -lmach -lexc"
22343 ol_link_threads=posix
22348 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22349 if test "$ol_link_threads" = no ; then
22350 # try -lpthread -Wl,-woff,85
22351 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22352 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22353 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22361 if test "$cross_compiling" = yes; then
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 /* pthread test headers */
22370 #include <pthread.h>
22371 #if HAVE_PTHREADS < 7
22375 #define NULL (void*)0
22378 static void *task(p)
22381 return (void *) (p == NULL);
22388 /* pthread test function */
22389 #ifndef PTHREAD_CREATE_DETACHED
22390 #define PTHREAD_CREATE_DETACHED 1
22394 int detach = PTHREAD_CREATE_DETACHED;
22396 #if HAVE_PTHREADS > 4
22397 /* Final pthreads */
22398 pthread_attr_t attr;
22400 status = pthread_attr_init(&attr);
22401 if( status ) return status;
22403 #if HAVE_PTHREADS < 7
22404 status = pthread_attr_setdetachstate(&attr, &detach);
22405 if( status < 0 ) status = errno;
22407 status = pthread_attr_setdetachstate(&attr, detach);
22409 if( status ) return status;
22410 status = pthread_create( &t, &attr, task, NULL );
22411 #if HAVE_PTHREADS < 7
22412 if( status < 0 ) status = errno;
22414 if( status ) return status;
22416 /* Draft 4 pthreads */
22417 status = pthread_create( &t, pthread_attr_default, task, NULL );
22418 if( status ) return errno;
22420 /* give thread a chance to complete */
22421 /* it should remain joinable and hence detachable */
22424 status = pthread_detach( &t );
22425 if( status ) return errno;
22428 #ifdef HAVE_LINUX_THREADS
22429 pthread_kill_other_threads_np();
22438 rm -f conftest.$ac_objext conftest$ac_exeext
22439 if { (ac_try="$ac_link"
22440 case "(($ac_try" in
22441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442 *) ac_try_echo=$ac_try;;
22444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445 (eval "$ac_link") 2>conftest.er1
22447 grep -v '^ *+' conftest.er1 >conftest.err
22449 cat conftest.err >&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest$ac_exeext &&
22455 $as_test_x conftest$ac_exeext; then
22456 ol_cv_pthread_lib_lpthread_woff=yes
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 ol_cv_pthread_lib_lpthread_woff=no
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465 conftest$ac_exeext conftest.$ac_ext
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22474 /* pthread test headers */
22475 #include <pthread.h>
22476 #if HAVE_PTHREADS < 7
22480 #define NULL (void*)0
22483 static void *task(p)
22486 return (void *) (p == NULL);
22490 int main(argc, argv)
22495 /* pthread test function */
22496 #ifndef PTHREAD_CREATE_DETACHED
22497 #define PTHREAD_CREATE_DETACHED 1
22501 int detach = PTHREAD_CREATE_DETACHED;
22503 #if HAVE_PTHREADS > 4
22504 /* Final pthreads */
22505 pthread_attr_t attr;
22507 status = pthread_attr_init(&attr);
22508 if( status ) return status;
22510 #if HAVE_PTHREADS < 7
22511 status = pthread_attr_setdetachstate(&attr, &detach);
22512 if( status < 0 ) status = errno;
22514 status = pthread_attr_setdetachstate(&attr, detach);
22516 if( status ) return status;
22517 status = pthread_create( &t, &attr, task, NULL );
22518 #if HAVE_PTHREADS < 7
22519 if( status < 0 ) status = errno;
22521 if( status ) return status;
22523 /* Draft 4 pthreads */
22524 status = pthread_create( &t, pthread_attr_default, task, NULL );
22525 if( status ) return errno;
22527 /* give thread a chance to complete */
22528 /* it should remain joinable and hence detachable */
22531 status = pthread_detach( &t );
22532 if( status ) return errno;
22535 #ifdef HAVE_LINUX_THREADS
22536 pthread_kill_other_threads_np();
22544 rm -f conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_link") 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ol_cv_pthread_lib_lpthread_woff=yes
22566 echo "$as_me: program exited with status $ac_status" >&5
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ( exit $ac_status )
22571 ol_cv_pthread_lib_lpthread_woff=no
22573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22583 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22585 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22586 ol_link_pthreads="-lpthread -Wl,-woff,85"
22587 ol_link_threads=posix
22592 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22593 if test "$ol_link_threads" = no ; then
22595 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22596 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22597 if test "${ol_cv_pthread_lpthread+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 LIBS="-lpthread $LIBS"
22605 if test "$cross_compiling" = yes; then
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22613 /* pthread test headers */
22614 #include <pthread.h>
22615 #if HAVE_PTHREADS < 7
22619 #define NULL (void*)0
22622 static void *task(p)
22625 return (void *) (p == NULL);
22632 /* pthread test function */
22633 #ifndef PTHREAD_CREATE_DETACHED
22634 #define PTHREAD_CREATE_DETACHED 1
22638 int detach = PTHREAD_CREATE_DETACHED;
22640 #if HAVE_PTHREADS > 4
22641 /* Final pthreads */
22642 pthread_attr_t attr;
22644 status = pthread_attr_init(&attr);
22645 if( status ) return status;
22647 #if HAVE_PTHREADS < 7
22648 status = pthread_attr_setdetachstate(&attr, &detach);
22649 if( status < 0 ) status = errno;
22651 status = pthread_attr_setdetachstate(&attr, detach);
22653 if( status ) return status;
22654 status = pthread_create( &t, &attr, task, NULL );
22655 #if HAVE_PTHREADS < 7
22656 if( status < 0 ) status = errno;
22658 if( status ) return status;
22660 /* Draft 4 pthreads */
22661 status = pthread_create( &t, pthread_attr_default, task, NULL );
22662 if( status ) return errno;
22664 /* give thread a chance to complete */
22665 /* it should remain joinable and hence detachable */
22668 status = pthread_detach( &t );
22669 if( status ) return errno;
22672 #ifdef HAVE_LINUX_THREADS
22673 pthread_kill_other_threads_np();
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_link") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest$ac_exeext &&
22699 $as_test_x conftest$ac_exeext; then
22700 ol_cv_pthread_lpthread=yes
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ol_cv_pthread_lpthread=no
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709 conftest$ac_exeext conftest.$ac_ext
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22718 /* pthread test headers */
22719 #include <pthread.h>
22720 #if HAVE_PTHREADS < 7
22724 #define NULL (void*)0
22727 static void *task(p)
22730 return (void *) (p == NULL);
22734 int main(argc, argv)
22739 /* pthread test function */
22740 #ifndef PTHREAD_CREATE_DETACHED
22741 #define PTHREAD_CREATE_DETACHED 1
22745 int detach = PTHREAD_CREATE_DETACHED;
22747 #if HAVE_PTHREADS > 4
22748 /* Final pthreads */
22749 pthread_attr_t attr;
22751 status = pthread_attr_init(&attr);
22752 if( status ) return status;
22754 #if HAVE_PTHREADS < 7
22755 status = pthread_attr_setdetachstate(&attr, &detach);
22756 if( status < 0 ) status = errno;
22758 status = pthread_attr_setdetachstate(&attr, detach);
22760 if( status ) return status;
22761 status = pthread_create( &t, &attr, task, NULL );
22762 #if HAVE_PTHREADS < 7
22763 if( status < 0 ) status = errno;
22765 if( status ) return status;
22767 /* Draft 4 pthreads */
22768 status = pthread_create( &t, pthread_attr_default, task, NULL );
22769 if( status ) return errno;
22771 /* give thread a chance to complete */
22772 /* it should remain joinable and hence detachable */
22775 status = pthread_detach( &t );
22776 if( status ) return errno;
22779 #ifdef HAVE_LINUX_THREADS
22780 pthread_kill_other_threads_np();
22788 rm -f conftest$ac_exeext
22789 if { (ac_try="$ac_link"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_link") 2>&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22799 { (case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_try") 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ol_cv_pthread_lpthread=yes
22810 echo "$as_me: program exited with status $ac_status" >&5
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22814 ( exit $ac_status )
22815 ol_cv_pthread_lpthread=no
22817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22826 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22827 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22829 if test $ol_cv_pthread_lpthread = yes ; then
22830 ol_link_pthreads="-lpthread"
22831 ol_link_threads=posix
22835 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22836 if test "$ol_link_threads" = no ; then
22838 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22839 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22840 if test "${ol_cv_pthread_lc_r+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 if test "$cross_compiling" = yes; then
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22856 /* pthread test headers */
22857 #include <pthread.h>
22858 #if HAVE_PTHREADS < 7
22862 #define NULL (void*)0
22865 static void *task(p)
22868 return (void *) (p == NULL);
22875 /* pthread test function */
22876 #ifndef PTHREAD_CREATE_DETACHED
22877 #define PTHREAD_CREATE_DETACHED 1
22881 int detach = PTHREAD_CREATE_DETACHED;
22883 #if HAVE_PTHREADS > 4
22884 /* Final pthreads */
22885 pthread_attr_t attr;
22887 status = pthread_attr_init(&attr);
22888 if( status ) return status;
22890 #if HAVE_PTHREADS < 7
22891 status = pthread_attr_setdetachstate(&attr, &detach);
22892 if( status < 0 ) status = errno;
22894 status = pthread_attr_setdetachstate(&attr, detach);
22896 if( status ) return status;
22897 status = pthread_create( &t, &attr, task, NULL );
22898 #if HAVE_PTHREADS < 7
22899 if( status < 0 ) status = errno;
22901 if( status ) return status;
22903 /* Draft 4 pthreads */
22904 status = pthread_create( &t, pthread_attr_default, task, NULL );
22905 if( status ) return errno;
22907 /* give thread a chance to complete */
22908 /* it should remain joinable and hence detachable */
22911 status = pthread_detach( &t );
22912 if( status ) return errno;
22915 #ifdef HAVE_LINUX_THREADS
22916 pthread_kill_other_threads_np();
22925 rm -f conftest.$ac_objext conftest$ac_exeext
22926 if { (ac_try="$ac_link"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_link") 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest$ac_exeext &&
22942 $as_test_x conftest$ac_exeext; then
22943 ol_cv_pthread_lc_r=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ol_cv_pthread_lc_r=no
22951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22952 conftest$ac_exeext conftest.$ac_ext
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22961 /* pthread test headers */
22962 #include <pthread.h>
22963 #if HAVE_PTHREADS < 7
22967 #define NULL (void*)0
22970 static void *task(p)
22973 return (void *) (p == NULL);
22977 int main(argc, argv)
22982 /* pthread test function */
22983 #ifndef PTHREAD_CREATE_DETACHED
22984 #define PTHREAD_CREATE_DETACHED 1
22988 int detach = PTHREAD_CREATE_DETACHED;
22990 #if HAVE_PTHREADS > 4
22991 /* Final pthreads */
22992 pthread_attr_t attr;
22994 status = pthread_attr_init(&attr);
22995 if( status ) return status;
22997 #if HAVE_PTHREADS < 7
22998 status = pthread_attr_setdetachstate(&attr, &detach);
22999 if( status < 0 ) status = errno;
23001 status = pthread_attr_setdetachstate(&attr, detach);
23003 if( status ) return status;
23004 status = pthread_create( &t, &attr, task, NULL );
23005 #if HAVE_PTHREADS < 7
23006 if( status < 0 ) status = errno;
23008 if( status ) return status;
23010 /* Draft 4 pthreads */
23011 status = pthread_create( &t, pthread_attr_default, task, NULL );
23012 if( status ) return errno;
23014 /* give thread a chance to complete */
23015 /* it should remain joinable and hence detachable */
23018 status = pthread_detach( &t );
23019 if( status ) return errno;
23022 #ifdef HAVE_LINUX_THREADS
23023 pthread_kill_other_threads_np();
23031 rm -f conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_link") 2>&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23042 { (case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047 (eval "$ac_try") 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ol_cv_pthread_lc_r=yes
23053 echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ( exit $ac_status )
23058 ol_cv_pthread_lc_r=no
23060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23070 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23072 if test $ol_cv_pthread_lc_r = yes ; then
23073 ol_link_pthreads="-lc_r"
23074 ol_link_threads=posix
23079 # Pthread try link: -threads (ol_cv_pthread_threads)
23080 if test "$ol_link_threads" = no ; then
23082 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23083 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23084 if test "${ol_cv_pthread_threads+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 LIBS="-threads $LIBS"
23092 if test "$cross_compiling" = yes; then
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23100 /* pthread test headers */
23101 #include <pthread.h>
23102 #if HAVE_PTHREADS < 7
23106 #define NULL (void*)0
23109 static void *task(p)
23112 return (void *) (p == NULL);
23119 /* pthread test function */
23120 #ifndef PTHREAD_CREATE_DETACHED
23121 #define PTHREAD_CREATE_DETACHED 1
23125 int detach = PTHREAD_CREATE_DETACHED;
23127 #if HAVE_PTHREADS > 4
23128 /* Final pthreads */
23129 pthread_attr_t attr;
23131 status = pthread_attr_init(&attr);
23132 if( status ) return status;
23134 #if HAVE_PTHREADS < 7
23135 status = pthread_attr_setdetachstate(&attr, &detach);
23136 if( status < 0 ) status = errno;
23138 status = pthread_attr_setdetachstate(&attr, detach);
23140 if( status ) return status;
23141 status = pthread_create( &t, &attr, task, NULL );
23142 #if HAVE_PTHREADS < 7
23143 if( status < 0 ) status = errno;
23145 if( status ) return status;
23147 /* Draft 4 pthreads */
23148 status = pthread_create( &t, pthread_attr_default, task, NULL );
23149 if( status ) return errno;
23151 /* give thread a chance to complete */
23152 /* it should remain joinable and hence detachable */
23155 status = pthread_detach( &t );
23156 if( status ) return errno;
23159 #ifdef HAVE_LINUX_THREADS
23160 pthread_kill_other_threads_np();
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (ac_try="$ac_link"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176 (eval "$ac_link") 2>conftest.er1
23178 grep -v '^ *+' conftest.er1 >conftest.err
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } && {
23183 test -z "$ac_c_werror_flag" ||
23184 test ! -s conftest.err
23185 } && test -s conftest$ac_exeext &&
23186 $as_test_x conftest$ac_exeext; then
23187 ol_cv_pthread_threads=yes
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ol_cv_pthread_threads=no
23195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23196 conftest$ac_exeext conftest.$ac_ext
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23205 /* pthread test headers */
23206 #include <pthread.h>
23207 #if HAVE_PTHREADS < 7
23211 #define NULL (void*)0
23214 static void *task(p)
23217 return (void *) (p == NULL);
23221 int main(argc, argv)
23226 /* pthread test function */
23227 #ifndef PTHREAD_CREATE_DETACHED
23228 #define PTHREAD_CREATE_DETACHED 1
23232 int detach = PTHREAD_CREATE_DETACHED;
23234 #if HAVE_PTHREADS > 4
23235 /* Final pthreads */
23236 pthread_attr_t attr;
23238 status = pthread_attr_init(&attr);
23239 if( status ) return status;
23241 #if HAVE_PTHREADS < 7
23242 status = pthread_attr_setdetachstate(&attr, &detach);
23243 if( status < 0 ) status = errno;
23245 status = pthread_attr_setdetachstate(&attr, detach);
23247 if( status ) return status;
23248 status = pthread_create( &t, &attr, task, NULL );
23249 #if HAVE_PTHREADS < 7
23250 if( status < 0 ) status = errno;
23252 if( status ) return status;
23254 /* Draft 4 pthreads */
23255 status = pthread_create( &t, pthread_attr_default, task, NULL );
23256 if( status ) return errno;
23258 /* give thread a chance to complete */
23259 /* it should remain joinable and hence detachable */
23262 status = pthread_detach( &t );
23263 if( status ) return errno;
23266 #ifdef HAVE_LINUX_THREADS
23267 pthread_kill_other_threads_np();
23275 rm -f conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_link") 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23286 { (case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_try") 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ol_cv_pthread_threads=yes
23297 echo "$as_me: program exited with status $ac_status" >&5
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ( exit $ac_status )
23302 ol_cv_pthread_threads=no
23304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23314 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23316 if test $ol_cv_pthread_threads = yes ; then
23317 ol_link_pthreads="-threads"
23318 ol_link_threads=posix
23323 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23324 if test "$ol_link_threads" = no ; then
23325 # try -lpthreads -lmach -lexc -lc_r
23326 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23327 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23328 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23334 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23336 if test "$cross_compiling" = yes; then
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23344 /* pthread test headers */
23345 #include <pthread.h>
23346 #if HAVE_PTHREADS < 7
23350 #define NULL (void*)0
23353 static void *task(p)
23356 return (void *) (p == NULL);
23363 /* pthread test function */
23364 #ifndef PTHREAD_CREATE_DETACHED
23365 #define PTHREAD_CREATE_DETACHED 1
23369 int detach = PTHREAD_CREATE_DETACHED;
23371 #if HAVE_PTHREADS > 4
23372 /* Final pthreads */
23373 pthread_attr_t attr;
23375 status = pthread_attr_init(&attr);
23376 if( status ) return status;
23378 #if HAVE_PTHREADS < 7
23379 status = pthread_attr_setdetachstate(&attr, &detach);
23380 if( status < 0 ) status = errno;
23382 status = pthread_attr_setdetachstate(&attr, detach);
23384 if( status ) return status;
23385 status = pthread_create( &t, &attr, task, NULL );
23386 #if HAVE_PTHREADS < 7
23387 if( status < 0 ) status = errno;
23389 if( status ) return status;
23391 /* Draft 4 pthreads */
23392 status = pthread_create( &t, pthread_attr_default, task, NULL );
23393 if( status ) return errno;
23395 /* give thread a chance to complete */
23396 /* it should remain joinable and hence detachable */
23399 status = pthread_detach( &t );
23400 if( status ) return errno;
23403 #ifdef HAVE_LINUX_THREADS
23404 pthread_kill_other_threads_np();
23413 rm -f conftest.$ac_objext conftest$ac_exeext
23414 if { (ac_try="$ac_link"
23415 case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_link") 2>conftest.er1
23422 grep -v '^ *+' conftest.er1 >conftest.err
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } && {
23427 test -z "$ac_c_werror_flag" ||
23428 test ! -s conftest.err
23429 } && test -s conftest$ac_exeext &&
23430 $as_test_x conftest$ac_exeext; then
23431 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440 conftest$ac_exeext conftest.$ac_ext
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23449 /* pthread test headers */
23450 #include <pthread.h>
23451 #if HAVE_PTHREADS < 7
23455 #define NULL (void*)0
23458 static void *task(p)
23461 return (void *) (p == NULL);
23465 int main(argc, argv)
23470 /* pthread test function */
23471 #ifndef PTHREAD_CREATE_DETACHED
23472 #define PTHREAD_CREATE_DETACHED 1
23476 int detach = PTHREAD_CREATE_DETACHED;
23478 #if HAVE_PTHREADS > 4
23479 /* Final pthreads */
23480 pthread_attr_t attr;
23482 status = pthread_attr_init(&attr);
23483 if( status ) return status;
23485 #if HAVE_PTHREADS < 7
23486 status = pthread_attr_setdetachstate(&attr, &detach);
23487 if( status < 0 ) status = errno;
23489 status = pthread_attr_setdetachstate(&attr, detach);
23491 if( status ) return status;
23492 status = pthread_create( &t, &attr, task, NULL );
23493 #if HAVE_PTHREADS < 7
23494 if( status < 0 ) status = errno;
23496 if( status ) return status;
23498 /* Draft 4 pthreads */
23499 status = pthread_create( &t, pthread_attr_default, task, NULL );
23500 if( status ) return errno;
23502 /* give thread a chance to complete */
23503 /* it should remain joinable and hence detachable */
23506 status = pthread_detach( &t );
23507 if( status ) return errno;
23510 #ifdef HAVE_LINUX_THREADS
23511 pthread_kill_other_threads_np();
23519 rm -f conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_link") 2>&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530 { (case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_try") 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23541 echo "$as_me: program exited with status $ac_status" >&5
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ( exit $ac_status )
23546 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23557 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23558 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23560 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23561 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23562 ol_link_threads=posix
23566 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23567 if test "$ol_link_threads" = no ; then
23568 # try -lpthreads -lmach -lexc
23569 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23570 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23571 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 LIBS="-lpthreads -lmach -lexc $LIBS"
23579 if test "$cross_compiling" = yes; then
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23587 /* pthread test headers */
23588 #include <pthread.h>
23589 #if HAVE_PTHREADS < 7
23593 #define NULL (void*)0
23596 static void *task(p)
23599 return (void *) (p == NULL);
23606 /* pthread test function */
23607 #ifndef PTHREAD_CREATE_DETACHED
23608 #define PTHREAD_CREATE_DETACHED 1
23612 int detach = PTHREAD_CREATE_DETACHED;
23614 #if HAVE_PTHREADS > 4
23615 /* Final pthreads */
23616 pthread_attr_t attr;
23618 status = pthread_attr_init(&attr);
23619 if( status ) return status;
23621 #if HAVE_PTHREADS < 7
23622 status = pthread_attr_setdetachstate(&attr, &detach);
23623 if( status < 0 ) status = errno;
23625 status = pthread_attr_setdetachstate(&attr, detach);
23627 if( status ) return status;
23628 status = pthread_create( &t, &attr, task, NULL );
23629 #if HAVE_PTHREADS < 7
23630 if( status < 0 ) status = errno;
23632 if( status ) return status;
23634 /* Draft 4 pthreads */
23635 status = pthread_create( &t, pthread_attr_default, task, NULL );
23636 if( status ) return errno;
23638 /* give thread a chance to complete */
23639 /* it should remain joinable and hence detachable */
23642 status = pthread_detach( &t );
23643 if( status ) return errno;
23646 #ifdef HAVE_LINUX_THREADS
23647 pthread_kill_other_threads_np();
23656 rm -f conftest.$ac_objext conftest$ac_exeext
23657 if { (ac_try="$ac_link"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_link") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest$ac_exeext &&
23673 $as_test_x conftest$ac_exeext; then
23674 ol_cv_pthread_lpthreads_lmach_lexc=yes
23676 echo "$as_me: failed program was:" >&5
23677 sed 's/^/| /' conftest.$ac_ext >&5
23679 ol_cv_pthread_lpthreads_lmach_lexc=no
23682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23683 conftest$ac_exeext conftest.$ac_ext
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23692 /* pthread test headers */
23693 #include <pthread.h>
23694 #if HAVE_PTHREADS < 7
23698 #define NULL (void*)0
23701 static void *task(p)
23704 return (void *) (p == NULL);
23708 int main(argc, argv)
23713 /* pthread test function */
23714 #ifndef PTHREAD_CREATE_DETACHED
23715 #define PTHREAD_CREATE_DETACHED 1
23719 int detach = PTHREAD_CREATE_DETACHED;
23721 #if HAVE_PTHREADS > 4
23722 /* Final pthreads */
23723 pthread_attr_t attr;
23725 status = pthread_attr_init(&attr);
23726 if( status ) return status;
23728 #if HAVE_PTHREADS < 7
23729 status = pthread_attr_setdetachstate(&attr, &detach);
23730 if( status < 0 ) status = errno;
23732 status = pthread_attr_setdetachstate(&attr, detach);
23734 if( status ) return status;
23735 status = pthread_create( &t, &attr, task, NULL );
23736 #if HAVE_PTHREADS < 7
23737 if( status < 0 ) status = errno;
23739 if( status ) return status;
23741 /* Draft 4 pthreads */
23742 status = pthread_create( &t, pthread_attr_default, task, NULL );
23743 if( status ) return errno;
23745 /* give thread a chance to complete */
23746 /* it should remain joinable and hence detachable */
23749 status = pthread_detach( &t );
23750 if( status ) return errno;
23753 #ifdef HAVE_LINUX_THREADS
23754 pthread_kill_other_threads_np();
23762 rm -f conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_link") 2>&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23773 { (case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_try") 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782 ol_cv_pthread_lpthreads_lmach_lexc=yes
23784 echo "$as_me: program exited with status $ac_status" >&5
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 ( exit $ac_status )
23789 ol_cv_pthread_lpthreads_lmach_lexc=no
23791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23800 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23801 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23803 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23804 ol_link_pthreads="-lpthreads -lmach -lexc"
23805 ol_link_threads=posix
23809 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23810 if test "$ol_link_threads" = no ; then
23811 # try -lpthreads -lexc
23812 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23813 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23814 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 LIBS="-lpthreads -lexc $LIBS"
23822 if test "$cross_compiling" = yes; then
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23830 /* pthread test headers */
23831 #include <pthread.h>
23832 #if HAVE_PTHREADS < 7
23836 #define NULL (void*)0
23839 static void *task(p)
23842 return (void *) (p == NULL);
23849 /* pthread test function */
23850 #ifndef PTHREAD_CREATE_DETACHED
23851 #define PTHREAD_CREATE_DETACHED 1
23855 int detach = PTHREAD_CREATE_DETACHED;
23857 #if HAVE_PTHREADS > 4
23858 /* Final pthreads */
23859 pthread_attr_t attr;
23861 status = pthread_attr_init(&attr);
23862 if( status ) return status;
23864 #if HAVE_PTHREADS < 7
23865 status = pthread_attr_setdetachstate(&attr, &detach);
23866 if( status < 0 ) status = errno;
23868 status = pthread_attr_setdetachstate(&attr, detach);
23870 if( status ) return status;
23871 status = pthread_create( &t, &attr, task, NULL );
23872 #if HAVE_PTHREADS < 7
23873 if( status < 0 ) status = errno;
23875 if( status ) return status;
23877 /* Draft 4 pthreads */
23878 status = pthread_create( &t, pthread_attr_default, task, NULL );
23879 if( status ) return errno;
23881 /* give thread a chance to complete */
23882 /* it should remain joinable and hence detachable */
23885 status = pthread_detach( &t );
23886 if( status ) return errno;
23889 #ifdef HAVE_LINUX_THREADS
23890 pthread_kill_other_threads_np();
23899 rm -f conftest.$ac_objext conftest$ac_exeext
23900 if { (ac_try="$ac_link"
23901 case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_link") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest$ac_exeext &&
23916 $as_test_x conftest$ac_exeext; then
23917 ol_cv_pthread_lpthreads_lexc=yes
23919 echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23922 ol_cv_pthread_lpthreads_lexc=no
23925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23926 conftest$ac_exeext conftest.$ac_ext
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23935 /* pthread test headers */
23936 #include <pthread.h>
23937 #if HAVE_PTHREADS < 7
23941 #define NULL (void*)0
23944 static void *task(p)
23947 return (void *) (p == NULL);
23951 int main(argc, argv)
23956 /* pthread test function */
23957 #ifndef PTHREAD_CREATE_DETACHED
23958 #define PTHREAD_CREATE_DETACHED 1
23962 int detach = PTHREAD_CREATE_DETACHED;
23964 #if HAVE_PTHREADS > 4
23965 /* Final pthreads */
23966 pthread_attr_t attr;
23968 status = pthread_attr_init(&attr);
23969 if( status ) return status;
23971 #if HAVE_PTHREADS < 7
23972 status = pthread_attr_setdetachstate(&attr, &detach);
23973 if( status < 0 ) status = errno;
23975 status = pthread_attr_setdetachstate(&attr, detach);
23977 if( status ) return status;
23978 status = pthread_create( &t, &attr, task, NULL );
23979 #if HAVE_PTHREADS < 7
23980 if( status < 0 ) status = errno;
23982 if( status ) return status;
23984 /* Draft 4 pthreads */
23985 status = pthread_create( &t, pthread_attr_default, task, NULL );
23986 if( status ) return errno;
23988 /* give thread a chance to complete */
23989 /* it should remain joinable and hence detachable */
23992 status = pthread_detach( &t );
23993 if( status ) return errno;
23996 #ifdef HAVE_LINUX_THREADS
23997 pthread_kill_other_threads_np();
24005 rm -f conftest$ac_exeext
24006 if { (ac_try="$ac_link"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012 (eval "$ac_link") 2>&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24016 { (case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_try") 2>&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; }; then
24025 ol_cv_pthread_lpthreads_lexc=yes
24027 echo "$as_me: program exited with status $ac_status" >&5
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24031 ( exit $ac_status )
24032 ol_cv_pthread_lpthreads_lexc=no
24034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24043 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24044 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24046 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24047 ol_link_pthreads="-lpthreads -lexc"
24048 ol_link_threads=posix
24053 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24054 if test "$ol_link_threads" = no ; then
24056 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24057 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24058 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 LIBS="-lpthreads $LIBS"
24066 if test "$cross_compiling" = yes; then
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24074 /* pthread test headers */
24075 #include <pthread.h>
24076 #if HAVE_PTHREADS < 7
24080 #define NULL (void*)0
24083 static void *task(p)
24086 return (void *) (p == NULL);
24093 /* pthread test function */
24094 #ifndef PTHREAD_CREATE_DETACHED
24095 #define PTHREAD_CREATE_DETACHED 1
24099 int detach = PTHREAD_CREATE_DETACHED;
24101 #if HAVE_PTHREADS > 4
24102 /* Final pthreads */
24103 pthread_attr_t attr;
24105 status = pthread_attr_init(&attr);
24106 if( status ) return status;
24108 #if HAVE_PTHREADS < 7
24109 status = pthread_attr_setdetachstate(&attr, &detach);
24110 if( status < 0 ) status = errno;
24112 status = pthread_attr_setdetachstate(&attr, detach);
24114 if( status ) return status;
24115 status = pthread_create( &t, &attr, task, NULL );
24116 #if HAVE_PTHREADS < 7
24117 if( status < 0 ) status = errno;
24119 if( status ) return status;
24121 /* Draft 4 pthreads */
24122 status = pthread_create( &t, pthread_attr_default, task, NULL );
24123 if( status ) return errno;
24125 /* give thread a chance to complete */
24126 /* it should remain joinable and hence detachable */
24129 status = pthread_detach( &t );
24130 if( status ) return errno;
24133 #ifdef HAVE_LINUX_THREADS
24134 pthread_kill_other_threads_np();
24143 rm -f conftest.$ac_objext conftest$ac_exeext
24144 if { (ac_try="$ac_link"
24145 case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24150 (eval "$ac_link") 2>conftest.er1
24152 grep -v '^ *+' conftest.er1 >conftest.err
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } && {
24157 test -z "$ac_c_werror_flag" ||
24158 test ! -s conftest.err
24159 } && test -s conftest$ac_exeext &&
24160 $as_test_x conftest$ac_exeext; then
24161 ol_cv_pthread_lib_lpthreads=yes
24163 echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ol_cv_pthread_lib_lpthreads=no
24169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24170 conftest$ac_exeext conftest.$ac_ext
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24179 /* pthread test headers */
24180 #include <pthread.h>
24181 #if HAVE_PTHREADS < 7
24185 #define NULL (void*)0
24188 static void *task(p)
24191 return (void *) (p == NULL);
24195 int main(argc, argv)
24200 /* pthread test function */
24201 #ifndef PTHREAD_CREATE_DETACHED
24202 #define PTHREAD_CREATE_DETACHED 1
24206 int detach = PTHREAD_CREATE_DETACHED;
24208 #if HAVE_PTHREADS > 4
24209 /* Final pthreads */
24210 pthread_attr_t attr;
24212 status = pthread_attr_init(&attr);
24213 if( status ) return status;
24215 #if HAVE_PTHREADS < 7
24216 status = pthread_attr_setdetachstate(&attr, &detach);
24217 if( status < 0 ) status = errno;
24219 status = pthread_attr_setdetachstate(&attr, detach);
24221 if( status ) return status;
24222 status = pthread_create( &t, &attr, task, NULL );
24223 #if HAVE_PTHREADS < 7
24224 if( status < 0 ) status = errno;
24226 if( status ) return status;
24228 /* Draft 4 pthreads */
24229 status = pthread_create( &t, pthread_attr_default, task, NULL );
24230 if( status ) return errno;
24232 /* give thread a chance to complete */
24233 /* it should remain joinable and hence detachable */
24236 status = pthread_detach( &t );
24237 if( status ) return errno;
24240 #ifdef HAVE_LINUX_THREADS
24241 pthread_kill_other_threads_np();
24249 rm -f conftest$ac_exeext
24250 if { (ac_try="$ac_link"
24251 case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_link") 2>&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24260 { (case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_try") 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 ol_cv_pthread_lib_lpthreads=yes
24271 echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ( exit $ac_status )
24276 ol_cv_pthread_lib_lpthreads=no
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24288 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24290 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24291 ol_link_pthreads="-lpthreads"
24292 ol_link_threads=posix
24297 if test $ol_link_threads != no ; then
24298 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24300 save_CPPFLAGS="$CPPFLAGS"
24302 LIBS="$LTHREAD_LIBS $LIBS"
24307 for ac_func in sched_yield pthread_yield thr_yield
24309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 cat >conftest.$ac_ext <<_ACEOF
24318 cat confdefs.h >>conftest.$ac_ext
24319 cat >>conftest.$ac_ext <<_ACEOF
24320 /* end confdefs.h. */
24321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24323 #define $ac_func innocuous_$ac_func
24325 /* System header to define __stub macros and hopefully few prototypes,
24326 which can conflict with char $ac_func (); below.
24327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24328 <limits.h> exists even on freestanding compilers. */
24331 # include <limits.h>
24333 # include <assert.h>
24338 /* Override any GCC internal prototype to avoid an error.
24339 Use char because int might match the return type of a GCC
24340 builtin and then its argument prototype would still apply. */
24345 /* The GNU C library defines this for functions which it implements
24346 to always fail with ENOSYS. Some functions are actually named
24347 something starting with __ and the normal name is an alias. */
24348 #if defined __stub_$ac_func || defined __stub___$ac_func
24355 return $ac_func ();
24360 rm -f conftest.$ac_objext conftest$ac_exeext
24361 if { (ac_try="$ac_link"
24362 case "(($ac_try" in
24363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364 *) ac_try_echo=$ac_try;;
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367 (eval "$ac_link") 2>conftest.er1
24369 grep -v '^ *+' conftest.er1 >conftest.err
24371 cat conftest.err >&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest$ac_exeext &&
24377 $as_test_x conftest$ac_exeext; then
24378 eval "$as_ac_var=yes"
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 eval "$as_ac_var=no"
24386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24387 conftest$ac_exeext conftest.$ac_ext
24389 ac_res=`eval echo '${'$as_ac_var'}'`
24390 { echo "$as_me:$LINENO: result: $ac_res" >&5
24391 echo "${ECHO_T}$ac_res" >&6; }
24392 if test `eval echo '${'$as_ac_var'}'` = yes; then
24393 cat >>confdefs.h <<_ACEOF
24394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24401 if test $ac_cv_func_sched_yield = no &&
24402 test $ac_cv_func_pthread_yield = no &&
24403 test $ac_cv_func_thr_yield = no ; then
24404 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24405 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24406 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24407 echo $ECHO_N "(cached) $ECHO_C" >&6
24409 ac_check_lib_save_LIBS=$LIBS
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24418 /* Override any GCC internal prototype to avoid an error.
24419 Use char because int might match the return type of a GCC
24420 builtin and then its argument prototype would still apply. */
24424 char sched_yield ();
24428 return sched_yield ();
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_link") 2>conftest.er1
24442 grep -v '^ *+' conftest.er1 >conftest.err
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest$ac_exeext &&
24450 $as_test_x conftest$ac_exeext; then
24451 ac_cv_lib_rt_sched_yield=yes
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_cv_lib_rt_sched_yield=no
24459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24460 conftest$ac_exeext conftest.$ac_ext
24461 LIBS=$ac_check_lib_save_LIBS
24463 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24464 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24465 if test $ac_cv_lib_rt_sched_yield = yes; then
24466 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24468 cat >>confdefs.h <<\_ACEOF
24469 #define HAVE_SCHED_YIELD 1
24472 ac_cv_func_sched_yield=yes
24474 ac_cv_func_sched_yield=no
24478 if test $ac_cv_func_sched_yield = no &&
24479 test $ac_cv_func_pthread_yield = no &&
24480 test "$ac_cv_func_thr_yield" = no ; then
24481 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24482 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24486 for ac_func in pthread_kill
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24492 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24502 #define $ac_func innocuous_$ac_func
24504 /* System header to define __stub macros and hopefully few prototypes,
24505 which can conflict with char $ac_func (); below.
24506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507 <limits.h> exists even on freestanding compilers. */
24510 # include <limits.h>
24512 # include <assert.h>
24517 /* Override any GCC internal prototype to avoid an error.
24518 Use char because int might match the return type of a GCC
24519 builtin and then its argument prototype would still apply. */
24524 /* The GNU C library defines this for functions which it implements
24525 to always fail with ENOSYS. Some functions are actually named
24526 something starting with __ and the normal name is an alias. */
24527 #if defined __stub_$ac_func || defined __stub___$ac_func
24534 return $ac_func ();
24539 rm -f conftest.$ac_objext conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543 *) ac_try_echo=$ac_try;;
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest$ac_exeext &&
24556 $as_test_x conftest$ac_exeext; then
24557 eval "$as_ac_var=yes"
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 eval "$as_ac_var=no"
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566 conftest$ac_exeext conftest.$ac_ext
24568 ac_res=`eval echo '${'$as_ac_var'}'`
24569 { echo "$as_me:$LINENO: result: $ac_res" >&5
24570 echo "${ECHO_T}$ac_res" >&6; }
24571 if test `eval echo '${'$as_ac_var'}'` = yes; then
24572 cat >>confdefs.h <<_ACEOF
24573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24580 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24581 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24582 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 cat >conftest.$ac_ext <<_ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24593 #include <pthread.h>
24594 pthread_rwlock_t rwlock;
24599 pthread_rwlock_destroy(&rwlock);
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_link") 2>conftest.er1
24613 grep -v '^ *+' conftest.er1 >conftest.err
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } && {
24618 test -z "$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 } && test -s conftest$ac_exeext &&
24621 $as_test_x conftest$ac_exeext; then
24622 ol_cv_func_pthread_rwlock_destroy=yes
24624 echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24627 ol_cv_func_pthread_rwlock_destroy=no
24630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24631 conftest$ac_exeext conftest.$ac_ext
24634 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24635 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24636 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24638 cat >>confdefs.h <<\_ACEOF
24639 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24644 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24645 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24646 if test "${ol_cv_func_pthread_detach+set}" = set; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 cat >conftest.$ac_ext <<_ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24657 #include <pthread.h>
24659 #define NULL (void*)0
24665 pthread_detach(NULL);
24670 rm -f conftest.$ac_objext conftest$ac_exeext
24671 if { (ac_try="$ac_link"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_link") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest$ac_exeext &&
24687 $as_test_x conftest$ac_exeext; then
24688 ol_cv_func_pthread_detach=yes
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24693 ol_cv_func_pthread_detach=no
24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24697 conftest$ac_exeext conftest.$ac_ext
24700 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24701 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24703 if test $ol_cv_func_pthread_detach = no ; then
24704 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24705 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24706 { (exit 1); exit 1; }; }
24710 cat >>confdefs.h <<\_ACEOF
24711 #define HAVE_PTHREAD_DETACH 1
24720 pthread_setconcurrency \
24721 pthread_getconcurrency \
24722 thr_setconcurrency \
24723 thr_getconcurrency \
24726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24740 #define $ac_func innocuous_$ac_func
24742 /* System header to define __stub macros and hopefully few prototypes,
24743 which can conflict with char $ac_func (); below.
24744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24745 <limits.h> exists even on freestanding compilers. */
24748 # include <limits.h>
24750 # include <assert.h>
24755 /* Override any GCC internal prototype to avoid an error.
24756 Use char because int might match the return type of a GCC
24757 builtin and then its argument prototype would still apply. */
24762 /* The GNU C library defines this for functions which it implements
24763 to always fail with ENOSYS. Some functions are actually named
24764 something starting with __ and the normal name is an alias. */
24765 #if defined __stub_$ac_func || defined __stub___$ac_func
24772 return $ac_func ();
24777 rm -f conftest.$ac_objext conftest$ac_exeext
24778 if { (ac_try="$ac_link"
24779 case "(($ac_try" in
24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784 (eval "$ac_link") 2>conftest.er1
24786 grep -v '^ *+' conftest.er1 >conftest.err
24788 cat conftest.err >&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } && {
24791 test -z "$ac_c_werror_flag" ||
24792 test ! -s conftest.err
24793 } && test -s conftest$ac_exeext &&
24794 $as_test_x conftest$ac_exeext; then
24795 eval "$as_ac_var=yes"
24797 echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24800 eval "$as_ac_var=no"
24803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24804 conftest$ac_exeext conftest.$ac_ext
24806 ac_res=`eval echo '${'$as_ac_var'}'`
24807 { echo "$as_me:$LINENO: result: $ac_res" >&5
24808 echo "${ECHO_T}$ac_res" >&6; }
24809 if test `eval echo '${'$as_ac_var'}'` = yes; then
24810 cat >>confdefs.h <<_ACEOF
24811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24820 for ac_func in pthread_kill_other_threads_np
24822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24836 #define $ac_func innocuous_$ac_func
24838 /* System header to define __stub macros and hopefully few prototypes,
24839 which can conflict with char $ac_func (); below.
24840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24841 <limits.h> exists even on freestanding compilers. */
24844 # include <limits.h>
24846 # include <assert.h>
24851 /* Override any GCC internal prototype to avoid an error.
24852 Use char because int might match the return type of a GCC
24853 builtin and then its argument prototype would still apply. */
24858 /* The GNU C library defines this for functions which it implements
24859 to always fail with ENOSYS. Some functions are actually named
24860 something starting with __ and the normal name is an alias. */
24861 #if defined __stub_$ac_func || defined __stub___$ac_func
24868 return $ac_func ();
24873 rm -f conftest.$ac_objext conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_link") 2>conftest.er1
24882 grep -v '^ *+' conftest.er1 >conftest.err
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } && {
24887 test -z "$ac_c_werror_flag" ||
24888 test ! -s conftest.err
24889 } && test -s conftest$ac_exeext &&
24890 $as_test_x conftest$ac_exeext; then
24891 eval "$as_ac_var=yes"
24893 echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24896 eval "$as_ac_var=no"
24899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24900 conftest$ac_exeext conftest.$ac_ext
24902 ac_res=`eval echo '${'$as_ac_var'}'`
24903 { echo "$as_me:$LINENO: result: $ac_res" >&5
24904 echo "${ECHO_T}$ac_res" >&6; }
24905 if test `eval echo '${'$as_ac_var'}'` = yes; then
24906 cat >>confdefs.h <<_ACEOF
24907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24913 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24914 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24915 if test "${ol_cv_sys_linux_threads+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24920 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24921 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24926 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24927 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24928 if test "${ol_cv_linux_threads+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 if test $ol_cv_header_linux_threads = yes &&
24933 test $ol_cv_sys_linux_threads = yes; then
24934 ol_cv_linux_threads=yes
24935 elif test $ol_cv_header_linux_threads = no &&
24936 test $ol_cv_sys_linux_threads = no; then
24937 ol_cv_linux_threads=no
24939 ol_cv_linux_threads=error
24943 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24944 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24947 if test $ol_cv_linux_threads = error; then
24948 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24949 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24950 { (exit 1); exit 1; }; };
24953 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24954 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24955 if test "${ol_cv_pthread_create_works+set}" = set; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24959 if test "$cross_compiling" = yes; then
24960 ol_cv_pthread_create_works=yes
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24969 /* pthread test headers */
24970 #include <pthread.h>
24971 #if HAVE_PTHREADS < 7
24975 #define NULL (void*)0
24978 static void *task(p)
24981 return (void *) (p == NULL);
24985 int main(argc, argv)
24990 /* pthread test function */
24991 #ifndef PTHREAD_CREATE_DETACHED
24992 #define PTHREAD_CREATE_DETACHED 1
24996 int detach = PTHREAD_CREATE_DETACHED;
24998 #if HAVE_PTHREADS > 4
24999 /* Final pthreads */
25000 pthread_attr_t attr;
25002 status = pthread_attr_init(&attr);
25003 if( status ) return status;
25005 #if HAVE_PTHREADS < 7
25006 status = pthread_attr_setdetachstate(&attr, &detach);
25007 if( status < 0 ) status = errno;
25009 status = pthread_attr_setdetachstate(&attr, detach);
25011 if( status ) return status;
25012 status = pthread_create( &t, &attr, task, NULL );
25013 #if HAVE_PTHREADS < 7
25014 if( status < 0 ) status = errno;
25016 if( status ) return status;
25018 /* Draft 4 pthreads */
25019 status = pthread_create( &t, pthread_attr_default, task, NULL );
25020 if( status ) return errno;
25022 /* give thread a chance to complete */
25023 /* it should remain joinable and hence detachable */
25026 status = pthread_detach( &t );
25027 if( status ) return errno;
25030 #ifdef HAVE_LINUX_THREADS
25031 pthread_kill_other_threads_np();
25039 rm -f conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_link") 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25050 { (case "(($ac_try" in
25051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052 *) ac_try_echo=$ac_try;;
25054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055 (eval "$ac_try") 2>&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; }; then
25059 ol_cv_pthread_create_works=yes
25061 echo "$as_me: program exited with status $ac_status" >&5
25062 echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25065 ( exit $ac_status )
25066 ol_cv_pthread_create_works=no
25068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25073 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25074 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25076 if test $ol_cv_pthread_create_works = no ; then
25077 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25078 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25079 { (exit 1); exit 1; }; }
25082 ol_replace_broken_yield=no
25084 if test $ol_replace_broken_yield = yes ; then
25086 cat >>confdefs.h <<\_ACEOF
25087 #define REPLACE_BROKEN_YIELD 1
25092 if test $ol_with_yielding_select = auto ; then
25093 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25094 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25095 if test "${ol_cv_pthread_select_yields+set}" = set; then
25096 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 if test "$cross_compiling" = yes; then
25100 ol_cv_pthread_select_yields=cross
25102 cat >conftest.$ac_ext <<_ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25109 #include <sys/types.h>
25110 #include <sys/time.h>
25111 #include <unistd.h>
25112 #include <pthread.h>
25114 #define NULL (void*) 0
25117 static int fildes[2];
25119 static void *task(p)
25131 FD_SET(fildes[0], &rfds);
25133 /* we're not interested in any fds */
25134 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25141 exit(0); /* if we exit here, the select blocked the whole process */
25144 int main(argc, argv)
25150 /* create a pipe to select */
25151 if(pipe(&fildes[0])) {
25156 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25157 (void) pthread_setconcurrency(2);
25159 #ifdef HAVE_THR_SETCONCURRENCY
25160 /* Set Solaris LWP concurrency to 2 */
25161 thr_setconcurrency(2);
25165 #if HAVE_PTHREADS < 6
25166 pthread_create(&t, pthread_attr_default, task, NULL);
25168 pthread_create(&t, NULL, task, NULL);
25171 /* make sure task runs first */
25172 #ifdef HAVE_THR_YIELD
25174 #elif defined( HAVE_SCHED_YIELD )
25176 #elif defined( HAVE_PTHREAD_YIELD )
25183 rm -f conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190 (eval "$ac_link") 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25194 { (case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_try") 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ol_cv_pthread_select_yields=no
25205 echo "$as_me: program exited with status $ac_status" >&5
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25209 ( exit $ac_status )
25210 ol_cv_pthread_select_yields=yes
25212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25218 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25220 if test $ol_cv_pthread_select_yields = cross ; then
25221 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25222 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25223 { (exit 1); exit 1; }; }
25226 if test $ol_cv_pthread_select_yields = yes ; then
25227 ol_with_yielding_select=yes
25231 CPPFLAGS="$save_CPPFLAGS"
25234 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25235 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25236 { (exit 1); exit 1; }; }
25240 if test $ol_with_threads = posix ; then
25241 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25242 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25243 { (exit 1); exit 1; }; }
25248 case $ol_with_threads in auto | yes | mach)
25252 for ac_header in mach/cthreads.h cthreads.h
25254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 ac_res=`eval echo '${'$as_ac_Header'}'`
25262 { echo "$as_me:$LINENO: result: $ac_res" >&5
25263 echo "${ECHO_T}$ac_res" >&6; }
25265 # Is the header compilable?
25266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25268 cat >conftest.$ac_ext <<_ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 $ac_includes_default
25275 #include <$ac_header>
25277 rm -f conftest.$ac_objext
25278 if { (ac_try="$ac_compile"
25279 case "(($ac_try" in
25280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281 *) ac_try_echo=$ac_try;;
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25286 grep -v '^ *+' conftest.er1 >conftest.err
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 ac_header_compiler=yes
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ac_header_compiler=no
25302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25304 echo "${ECHO_T}$ac_header_compiler" >&6; }
25306 # Is the header present?
25307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25309 cat >conftest.$ac_ext <<_ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h. */
25315 #include <$ac_header>
25317 if { (ac_try="$ac_cpp conftest.$ac_ext"
25318 case "(($ac_try" in
25319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25320 *) ac_try_echo=$ac_try;;
25322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25325 grep -v '^ *+' conftest.er1 >conftest.err
25327 cat conftest.err >&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } >/dev/null && {
25330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25331 test ! -s conftest.err
25333 ac_header_preproc=yes
25335 echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25338 ac_header_preproc=no
25341 rm -f conftest.err conftest.$ac_ext
25342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25343 echo "${ECHO_T}$ac_header_preproc" >&6; }
25345 # So? What about this header?
25346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25352 ac_header_preproc=yes
25355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25368 ## --------------------------------------------- ##
25369 ## Report this to <http://www.openldap.org/its/> ##
25370 ## --------------------------------------------- ##
25372 ) | sed "s/^/$as_me: WARNING: /" >&2
25375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 eval "$as_ac_Header=\$ac_header_preproc"
25382 ac_res=`eval echo '${'$as_ac_Header'}'`
25383 { echo "$as_me:$LINENO: result: $ac_res" >&5
25384 echo "${ECHO_T}$ac_res" >&6; }
25387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25388 cat >>confdefs.h <<_ACEOF
25389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25396 if test $ac_cv_header_mach_cthreads_h = yes ; then
25397 ol_with_threads=found
25399 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25400 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25401 if test "${ac_cv_func_cthread_fork+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 cat >conftest.$ac_ext <<_ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25412 #define cthread_fork innocuous_cthread_fork
25414 /* System header to define __stub macros and hopefully few prototypes,
25415 which can conflict with char cthread_fork (); below.
25416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25417 <limits.h> exists even on freestanding compilers. */
25420 # include <limits.h>
25422 # include <assert.h>
25425 #undef cthread_fork
25427 /* Override any GCC internal prototype to avoid an error.
25428 Use char because int might match the return type of a GCC
25429 builtin and then its argument prototype would still apply. */
25433 char cthread_fork ();
25434 /* The GNU C library defines this for functions which it implements
25435 to always fail with ENOSYS. Some functions are actually named
25436 something starting with __ and the normal name is an alias. */
25437 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25444 return cthread_fork ();
25449 rm -f conftest.$ac_objext conftest$ac_exeext
25450 if { (ac_try="$ac_link"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_link") 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest$ac_exeext &&
25466 $as_test_x conftest$ac_exeext; then
25467 ac_cv_func_cthread_fork=yes
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ac_cv_func_cthread_fork=no
25475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25476 conftest$ac_exeext conftest.$ac_ext
25478 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25479 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25480 if test $ac_cv_func_cthread_fork = yes; then
25481 ol_link_threads=yes
25485 if test $ol_link_threads = no ; then
25486 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25487 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25488 if test "${ol_cv_cthread_all_load+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25493 LIBS="-all_load $LIBS"
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 #include <mach/cthreads.h>
25505 cthread_fork((void *)0, (void *)0);
25511 rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515 *) ac_try_echo=$ac_try;;
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518 (eval "$ac_link") 2>conftest.er1
25520 grep -v '^ *+' conftest.er1 >conftest.err
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } && {
25525 test -z "$ac_c_werror_flag" ||
25526 test ! -s conftest.err
25527 } && test -s conftest$ac_exeext &&
25528 $as_test_x conftest$ac_exeext; then
25529 ol_cv_cthread_all_load=yes
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25534 ol_cv_cthread_all_load=no
25537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25538 conftest$ac_exeext conftest.$ac_ext
25542 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25543 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25545 if test $ol_cv_cthread_all_load = yes ; then
25546 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25547 ol_link_threads=mach
25548 ol_with_threads=found
25552 elif test $ac_cv_header_cthreads_h = yes ; then
25554 ol_with_threads=found
25557 LIBS="$LIBS -lthreads"
25558 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25559 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25560 if test "${ac_cv_func_cthread_fork+set}" = set; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25571 #define cthread_fork innocuous_cthread_fork
25573 /* System header to define __stub macros and hopefully few prototypes,
25574 which can conflict with char cthread_fork (); below.
25575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25576 <limits.h> exists even on freestanding compilers. */
25579 # include <limits.h>
25581 # include <assert.h>
25584 #undef cthread_fork
25586 /* Override any GCC internal prototype to avoid an error.
25587 Use char because int might match the return type of a GCC
25588 builtin and then its argument prototype would still apply. */
25592 char cthread_fork ();
25593 /* The GNU C library defines this for functions which it implements
25594 to always fail with ENOSYS. Some functions are actually named
25595 something starting with __ and the normal name is an alias. */
25596 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25603 return cthread_fork ();
25608 rm -f conftest.$ac_objext conftest$ac_exeext
25609 if { (ac_try="$ac_link"
25610 case "(($ac_try" in
25611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612 *) ac_try_echo=$ac_try;;
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615 (eval "$ac_link") 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && {
25622 test -z "$ac_c_werror_flag" ||
25623 test ! -s conftest.err
25624 } && test -s conftest$ac_exeext &&
25625 $as_test_x conftest$ac_exeext; then
25626 ac_cv_func_cthread_fork=yes
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25631 ac_cv_func_cthread_fork=no
25634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25635 conftest$ac_exeext conftest.$ac_ext
25637 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25638 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25639 if test $ac_cv_func_cthread_fork = yes; then
25640 ol_link_threads=yes
25645 if test $ol_link_threads = yes ; then
25646 LTHREAD_LIBS="-lthreads"
25647 ol_link_threads=mach
25648 ol_with_threads=found
25650 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25651 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25652 { (exit 1); exit 1; }; }
25655 elif test $ol_with_threads = mach ; then
25656 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25657 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25658 { (exit 1); exit 1; }; }
25661 if test $ol_link_threads = mach ; then
25663 cat >>confdefs.h <<\_ACEOF
25664 #define HAVE_MACH_CTHREADS 1
25667 elif test $ol_with_threads = found ; then
25668 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25669 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25670 { (exit 1); exit 1; }; }
25675 case $ol_with_threads in auto | yes | pth)
25678 for ac_header in pth.h
25680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25687 ac_res=`eval echo '${'$as_ac_Header'}'`
25688 { echo "$as_me:$LINENO: result: $ac_res" >&5
25689 echo "${ECHO_T}$ac_res" >&6; }
25691 # Is the header compilable?
25692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25694 cat >conftest.$ac_ext <<_ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 $ac_includes_default
25701 #include <$ac_header>
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710 (eval "$ac_compile") 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest.$ac_objext; then
25720 ac_header_compiler=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6; }
25732 # Is the header present?
25733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 #include <$ac_header>
25743 if { (ac_try="$ac_cpp conftest.$ac_ext"
25744 case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25751 grep -v '^ *+' conftest.er1 >conftest.err
25753 cat conftest.err >&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } >/dev/null && {
25756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757 test ! -s conftest.err
25759 ac_header_preproc=yes
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25764 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6; }
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
25781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25794 ## --------------------------------------------- ##
25795 ## Report this to <http://www.openldap.org/its/> ##
25796 ## --------------------------------------------- ##
25798 ) | sed "s/^/$as_me: WARNING: /" >&2
25801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 eval "$as_ac_Header=\$ac_header_preproc"
25808 ac_res=`eval echo '${'$as_ac_Header'}'`
25809 { echo "$as_me:$LINENO: result: $ac_res" >&5
25810 echo "${ECHO_T}$ac_res" >&6; }
25813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25814 cat >>confdefs.h <<_ACEOF
25815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25823 if test $ac_cv_header_pth_h = yes ; then
25824 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25825 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25826 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25827 echo $ECHO_N "(cached) $ECHO_C" >&6
25829 ac_check_lib_save_LIBS=$LIBS
25831 cat >conftest.$ac_ext <<_ACEOF
25834 cat confdefs.h >>conftest.$ac_ext
25835 cat >>conftest.$ac_ext <<_ACEOF
25836 /* end confdefs.h. */
25838 /* Override any GCC internal prototype to avoid an error.
25839 Use char because int might match the return type of a GCC
25840 builtin and then its argument prototype would still apply. */
25844 char pth_version ();
25848 return pth_version ();
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_link") 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && {
25867 test -z "$ac_c_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest$ac_exeext &&
25870 $as_test_x conftest$ac_exeext; then
25871 ac_cv_lib_pth_pth_version=yes
25873 echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25876 ac_cv_lib_pth_pth_version=no
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880 conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25883 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25884 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25885 if test $ac_cv_lib_pth_pth_version = yes; then
25892 if test $have_pth = yes ; then
25894 cat >>confdefs.h <<\_ACEOF
25895 #define HAVE_GNU_PTH 1
25898 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25899 ol_link_threads=pth
25900 ol_with_threads=found
25902 if test $ol_with_yielding_select = auto ; then
25903 ol_with_yielding_select=yes
25910 case $ol_with_threads in auto | yes | lwp)
25914 for ac_header in thread.h synch.h
25916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25923 ac_res=`eval echo '${'$as_ac_Header'}'`
25924 { echo "$as_me:$LINENO: result: $ac_res" >&5
25925 echo "${ECHO_T}$ac_res" >&6; }
25927 # Is the header compilable?
25928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 $ac_includes_default
25937 #include <$ac_header>
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943 *) ac_try_echo=$ac_try;;
25945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25946 (eval "$ac_compile") 2>conftest.er1
25948 grep -v '^ *+' conftest.er1 >conftest.err
25950 cat conftest.err >&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } && {
25953 test -z "$ac_c_werror_flag" ||
25954 test ! -s conftest.err
25955 } && test -s conftest.$ac_objext; then
25956 ac_header_compiler=yes
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 ac_header_compiler=no
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25966 echo "${ECHO_T}$ac_header_compiler" >&6; }
25968 # Is the header present?
25969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25971 cat >conftest.$ac_ext <<_ACEOF
25974 cat confdefs.h >>conftest.$ac_ext
25975 cat >>conftest.$ac_ext <<_ACEOF
25976 /* end confdefs.h. */
25977 #include <$ac_header>
25979 if { (ac_try="$ac_cpp conftest.$ac_ext"
25980 case "(($ac_try" in
25981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25987 grep -v '^ *+' conftest.er1 >conftest.err
25989 cat conftest.err >&5
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } >/dev/null && {
25992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25993 test ! -s conftest.err
25995 ac_header_preproc=yes
25997 echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
26000 ac_header_preproc=no
26003 rm -f conftest.err conftest.$ac_ext
26004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26005 echo "${ECHO_T}$ac_header_preproc" >&6; }
26007 # So? What about this header?
26008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26014 ac_header_preproc=yes
26017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26030 ## --------------------------------------------- ##
26031 ## Report this to <http://www.openldap.org/its/> ##
26032 ## --------------------------------------------- ##
26034 ) | sed "s/^/$as_me: WARNING: /" >&2
26037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26040 echo $ECHO_N "(cached) $ECHO_C" >&6
26042 eval "$as_ac_Header=\$ac_header_preproc"
26044 ac_res=`eval echo '${'$as_ac_Header'}'`
26045 { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26050 cat >>confdefs.h <<_ACEOF
26051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26058 if test $ac_cv_header_thread_h = yes &&
26059 test $ac_cv_header_synch_h = yes ; then
26060 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26061 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26062 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26063 echo $ECHO_N "(cached) $ECHO_C" >&6
26065 ac_check_lib_save_LIBS=$LIBS
26066 LIBS="-lthread $LIBS"
26067 cat >conftest.$ac_ext <<_ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26074 /* Override any GCC internal prototype to avoid an error.
26075 Use char because int might match the return type of a GCC
26076 builtin and then its argument prototype would still apply. */
26080 char thr_create ();
26084 return thr_create ();
26089 rm -f conftest.$ac_objext conftest$ac_exeext
26090 if { (ac_try="$ac_link"
26091 case "(($ac_try" in
26092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093 *) ac_try_echo=$ac_try;;
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096 (eval "$ac_link") 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } && {
26103 test -z "$ac_c_werror_flag" ||
26104 test ! -s conftest.err
26105 } && test -s conftest$ac_exeext &&
26106 $as_test_x conftest$ac_exeext; then
26107 ac_cv_lib_thread_thr_create=yes
26109 echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26112 ac_cv_lib_thread_thr_create=no
26115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26116 conftest$ac_exeext conftest.$ac_ext
26117 LIBS=$ac_check_lib_save_LIBS
26119 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26120 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26121 if test $ac_cv_lib_thread_thr_create = yes; then
26128 if test $have_thr = yes ; then
26130 cat >>confdefs.h <<\_ACEOF
26134 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26135 ol_link_threads=thr
26137 if test $ol_with_yielding_select = auto ; then
26138 ol_with_yielding_select=yes
26144 thr_setconcurrency \
26145 thr_getconcurrency \
26148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26162 #define $ac_func innocuous_$ac_func
26164 /* System header to define __stub macros and hopefully few prototypes,
26165 which can conflict with char $ac_func (); below.
26166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26167 <limits.h> exists even on freestanding compilers. */
26170 # include <limits.h>
26172 # include <assert.h>
26177 /* Override any GCC internal prototype to avoid an error.
26178 Use char because int might match the return type of a GCC
26179 builtin and then its argument prototype would still apply. */
26184 /* The GNU C library defines this for functions which it implements
26185 to always fail with ENOSYS. Some functions are actually named
26186 something starting with __ and the normal name is an alias. */
26187 #if defined __stub_$ac_func || defined __stub___$ac_func
26194 return $ac_func ();
26199 rm -f conftest.$ac_objext conftest$ac_exeext
26200 if { (ac_try="$ac_link"
26201 case "(($ac_try" in
26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_link") 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } && {
26213 test -z "$ac_c_werror_flag" ||
26214 test ! -s conftest.err
26215 } && test -s conftest$ac_exeext &&
26216 $as_test_x conftest$ac_exeext; then
26217 eval "$as_ac_var=yes"
26219 echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.$ac_ext >&5
26222 eval "$as_ac_var=no"
26225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26226 conftest$ac_exeext conftest.$ac_ext
26228 ac_res=`eval echo '${'$as_ac_var'}'`
26229 { echo "$as_me:$LINENO: result: $ac_res" >&5
26230 echo "${ECHO_T}$ac_res" >&6; }
26231 if test `eval echo '${'$as_ac_var'}'` = yes; then
26232 cat >>confdefs.h <<_ACEOF
26233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26243 for ac_header in lwp/lwp.h
26245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26250 echo $ECHO_N "(cached) $ECHO_C" >&6
26252 ac_res=`eval echo '${'$as_ac_Header'}'`
26253 { echo "$as_me:$LINENO: result: $ac_res" >&5
26254 echo "${ECHO_T}$ac_res" >&6; }
26256 # Is the header compilable?
26257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26265 $ac_includes_default
26266 #include <$ac_header>
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 ac_header_compiler=yes
26287 echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26290 ac_header_compiler=no
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26295 echo "${ECHO_T}$ac_header_compiler" >&6; }
26297 # Is the header present?
26298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 #include <$ac_header>
26308 if { (ac_try="$ac_cpp conftest.$ac_ext"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } >/dev/null && {
26321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26322 test ! -s conftest.err
26324 ac_header_preproc=yes
26326 echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26329 ac_header_preproc=no
26332 rm -f conftest.err conftest.$ac_ext
26333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26334 echo "${ECHO_T}$ac_header_preproc" >&6; }
26336 # So? What about this header?
26337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26343 ac_header_preproc=yes
26346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26359 ## --------------------------------------------- ##
26360 ## Report this to <http://www.openldap.org/its/> ##
26361 ## --------------------------------------------- ##
26363 ) | sed "s/^/$as_me: WARNING: /" >&2
26366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26371 eval "$as_ac_Header=\$ac_header_preproc"
26373 ac_res=`eval echo '${'$as_ac_Header'}'`
26374 { echo "$as_me:$LINENO: result: $ac_res" >&5
26375 echo "${ECHO_T}$ac_res" >&6; }
26378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26379 cat >>confdefs.h <<_ACEOF
26380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26387 if test $ac_cv_header_lwp_lwp_h = yes ; then
26388 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26389 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26390 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26393 ac_check_lib_save_LIBS=$LIBS
26395 cat >conftest.$ac_ext <<_ACEOF
26398 cat confdefs.h >>conftest.$ac_ext
26399 cat >>conftest.$ac_ext <<_ACEOF
26400 /* end confdefs.h. */
26402 /* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26408 char lwp_create ();
26412 return lwp_create ();
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (ac_try="$ac_link"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424 (eval "$ac_link") 2>conftest.er1
26426 grep -v '^ *+' conftest.er1 >conftest.err
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } && {
26431 test -z "$ac_c_werror_flag" ||
26432 test ! -s conftest.err
26433 } && test -s conftest$ac_exeext &&
26434 $as_test_x conftest$ac_exeext; then
26435 ac_cv_lib_lwp_lwp_create=yes
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 ac_cv_lib_lwp_lwp_create=no
26443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26444 conftest$ac_exeext conftest.$ac_ext
26445 LIBS=$ac_check_lib_save_LIBS
26447 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26448 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26449 if test $ac_cv_lib_lwp_lwp_create = yes; then
26456 if test $have_lwp = yes ; then
26458 cat >>confdefs.h <<\_ACEOF
26462 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26463 ol_link_threads=lwp
26465 if test $ol_with_yielding_select = auto ; then
26466 ol_with_yielding_select=no
26473 if test $ol_with_yielding_select = yes ; then
26475 cat >>confdefs.h <<\_ACEOF
26476 #define HAVE_YIELDING_SELECT 1
26481 if test $ol_with_threads = manual ; then
26482 ol_link_threads=yes
26484 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26485 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26489 for ac_header in pthread.h sched.h
26491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26498 ac_res=`eval echo '${'$as_ac_Header'}'`
26499 { echo "$as_me:$LINENO: result: $ac_res" >&5
26500 echo "${ECHO_T}$ac_res" >&6; }
26502 # Is the header compilable?
26503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26505 cat >conftest.$ac_ext <<_ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 $ac_includes_default
26512 #include <$ac_header>
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521 (eval "$ac_compile") 2>conftest.er1
26523 grep -v '^ *+' conftest.er1 >conftest.err
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } && {
26528 test -z "$ac_c_werror_flag" ||
26529 test ! -s conftest.err
26530 } && test -s conftest.$ac_objext; then
26531 ac_header_compiler=yes
26533 echo "$as_me: failed program was:" >&5
26534 sed 's/^/| /' conftest.$ac_ext >&5
26536 ac_header_compiler=no
26539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26541 echo "${ECHO_T}$ac_header_compiler" >&6; }
26543 # Is the header present?
26544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26552 #include <$ac_header>
26554 if { (ac_try="$ac_cpp conftest.$ac_ext"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26562 grep -v '^ *+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } >/dev/null && {
26567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26570 ac_header_preproc=yes
26572 echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26575 ac_header_preproc=no
26578 rm -f conftest.err conftest.$ac_ext
26579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26580 echo "${ECHO_T}$ac_header_preproc" >&6; }
26582 # So? What about this header?
26583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26589 ac_header_preproc=yes
26592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26605 ## --------------------------------------------- ##
26606 ## Report this to <http://www.openldap.org/its/> ##
26607 ## --------------------------------------------- ##
26609 ) | sed "s/^/$as_me: WARNING: /" >&2
26612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26615 echo $ECHO_N "(cached) $ECHO_C" >&6
26617 eval "$as_ac_Header=\$ac_header_preproc"
26619 ac_res=`eval echo '${'$as_ac_Header'}'`
26620 { echo "$as_me:$LINENO: result: $ac_res" >&5
26621 echo "${ECHO_T}$ac_res" >&6; }
26624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26625 cat >>confdefs.h <<_ACEOF
26626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26635 for ac_func in sched_yield pthread_yield
26637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26643 cat >conftest.$ac_ext <<_ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26651 #define $ac_func innocuous_$ac_func
26653 /* System header to define __stub macros and hopefully few prototypes,
26654 which can conflict with char $ac_func (); below.
26655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26656 <limits.h> exists even on freestanding compilers. */
26659 # include <limits.h>
26661 # include <assert.h>
26666 /* Override any GCC internal prototype to avoid an error.
26667 Use char because int might match the return type of a GCC
26668 builtin and then its argument prototype would still apply. */
26673 /* The GNU C library defines this for functions which it implements
26674 to always fail with ENOSYS. Some functions are actually named
26675 something starting with __ and the normal name is an alias. */
26676 #if defined __stub_$ac_func || defined __stub___$ac_func
26683 return $ac_func ();
26688 rm -f conftest.$ac_objext conftest$ac_exeext
26689 if { (ac_try="$ac_link"
26690 case "(($ac_try" in
26691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692 *) ac_try_echo=$ac_try;;
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695 (eval "$ac_link") 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } && {
26702 test -z "$ac_c_werror_flag" ||
26703 test ! -s conftest.err
26704 } && test -s conftest$ac_exeext &&
26705 $as_test_x conftest$ac_exeext; then
26706 eval "$as_ac_var=yes"
26708 echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26711 eval "$as_ac_var=no"
26714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26715 conftest$ac_exeext conftest.$ac_ext
26717 ac_res=`eval echo '${'$as_ac_var'}'`
26718 { echo "$as_me:$LINENO: result: $ac_res" >&5
26719 echo "${ECHO_T}$ac_res" >&6; }
26720 if test `eval echo '${'$as_ac_var'}'` = yes; then
26721 cat >>confdefs.h <<_ACEOF
26722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26729 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26730 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26731 if test "${ol_cv_header_linux_threads+set}" = set; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26734 cat >conftest.$ac_ext <<_ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h. */
26740 #include <pthread.h>
26742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26743 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26744 ol_cv_header_linux_threads=yes
26746 ol_cv_header_linux_threads=no
26752 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26753 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26754 if test $ol_cv_header_linux_threads = yes; then
26756 cat >>confdefs.h <<\_ACEOF
26757 #define HAVE_LINUX_THREADS 1
26764 for ac_header in mach/cthreads.h
26766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26773 ac_res=`eval echo '${'$as_ac_Header'}'`
26774 { echo "$as_me:$LINENO: result: $ac_res" >&5
26775 echo "${ECHO_T}$ac_res" >&6; }
26777 # Is the header compilable?
26778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 $ac_includes_default
26787 #include <$ac_header>
26789 rm -f conftest.$ac_objext
26790 if { (ac_try="$ac_compile"
26791 case "(($ac_try" in
26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793 *) ac_try_echo=$ac_try;;
26795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26796 (eval "$ac_compile") 2>conftest.er1
26798 grep -v '^ *+' conftest.er1 >conftest.err
26800 cat conftest.err >&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); } && {
26803 test -z "$ac_c_werror_flag" ||
26804 test ! -s conftest.err
26805 } && test -s conftest.$ac_objext; then
26806 ac_header_compiler=yes
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26811 ac_header_compiler=no
26814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26816 echo "${ECHO_T}$ac_header_compiler" >&6; }
26818 # Is the header present?
26819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 #include <$ac_header>
26829 if { (ac_try="$ac_cpp conftest.$ac_ext"
26830 case "(($ac_try" in
26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832 *) ac_try_echo=$ac_try;;
26834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26837 grep -v '^ *+' conftest.er1 >conftest.err
26839 cat conftest.err >&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } >/dev/null && {
26842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26843 test ! -s conftest.err
26845 ac_header_preproc=yes
26847 echo "$as_me: failed program was:" >&5
26848 sed 's/^/| /' conftest.$ac_ext >&5
26850 ac_header_preproc=no
26853 rm -f conftest.err conftest.$ac_ext
26854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26855 echo "${ECHO_T}$ac_header_preproc" >&6; }
26857 # So? What about this header?
26858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26864 ac_header_preproc=yes
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26880 ## --------------------------------------------- ##
26881 ## Report this to <http://www.openldap.org/its/> ##
26882 ## --------------------------------------------- ##
26884 ) | sed "s/^/$as_me: WARNING: /" >&2
26887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26890 echo $ECHO_N "(cached) $ECHO_C" >&6
26892 eval "$as_ac_Header=\$ac_header_preproc"
26894 ac_res=`eval echo '${'$as_ac_Header'}'`
26895 { echo "$as_me:$LINENO: result: $ac_res" >&5
26896 echo "${ECHO_T}$ac_res" >&6; }
26899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26900 cat >>confdefs.h <<_ACEOF
26901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26909 for ac_header in lwp/lwp.h
26911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 ac_res=`eval echo '${'$as_ac_Header'}'`
26919 { echo "$as_me:$LINENO: result: $ac_res" >&5
26920 echo "${ECHO_T}$ac_res" >&6; }
26922 # Is the header compilable?
26923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26925 cat >conftest.$ac_ext <<_ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26931 $ac_includes_default
26932 #include <$ac_header>
26934 rm -f conftest.$ac_objext
26935 if { (ac_try="$ac_compile"
26936 case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_compile") 2>conftest.er1
26943 grep -v '^ *+' conftest.er1 >conftest.err
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } && {
26948 test -z "$ac_c_werror_flag" ||
26949 test ! -s conftest.err
26950 } && test -s conftest.$ac_objext; then
26951 ac_header_compiler=yes
26953 echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26956 ac_header_compiler=no
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26961 echo "${ECHO_T}$ac_header_compiler" >&6; }
26963 # Is the header present?
26964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 #include <$ac_header>
26974 if { (ac_try="$ac_cpp conftest.$ac_ext"
26975 case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26982 grep -v '^ *+' conftest.er1 >conftest.err
26984 cat conftest.err >&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } >/dev/null && {
26987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26988 test ! -s conftest.err
26990 ac_header_preproc=yes
26992 echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26995 ac_header_preproc=no
26998 rm -f conftest.err conftest.$ac_ext
26999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27000 echo "${ECHO_T}$ac_header_preproc" >&6; }
27002 # So? What about this header?
27003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27009 ac_header_preproc=yes
27012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27025 ## --------------------------------------------- ##
27026 ## Report this to <http://www.openldap.org/its/> ##
27027 ## --------------------------------------------- ##
27029 ) | sed "s/^/$as_me: WARNING: /" >&2
27032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27037 eval "$as_ac_Header=\$ac_header_preproc"
27039 ac_res=`eval echo '${'$as_ac_Header'}'`
27040 { echo "$as_me:$LINENO: result: $ac_res" >&5
27041 echo "${ECHO_T}$ac_res" >&6; }
27044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27045 cat >>confdefs.h <<_ACEOF
27046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27055 for ac_header in thread.h synch.h
27057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27064 ac_res=`eval echo '${'$as_ac_Header'}'`
27065 { echo "$as_me:$LINENO: result: $ac_res" >&5
27066 echo "${ECHO_T}$ac_res" >&6; }
27068 # Is the header compilable?
27069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27071 cat >conftest.$ac_ext <<_ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27077 $ac_includes_default
27078 #include <$ac_header>
27080 rm -f conftest.$ac_objext
27081 if { (ac_try="$ac_compile"
27082 case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_compile") 2>conftest.er1
27089 grep -v '^ *+' conftest.er1 >conftest.err
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest.$ac_objext; then
27097 ac_header_compiler=yes
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27102 ac_header_compiler=no
27105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27107 echo "${ECHO_T}$ac_header_compiler" >&6; }
27109 # Is the header present?
27110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27112 cat >conftest.$ac_ext <<_ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27118 #include <$ac_header>
27120 if { (ac_try="$ac_cpp conftest.$ac_ext"
27121 case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27128 grep -v '^ *+' conftest.er1 >conftest.err
27130 cat conftest.err >&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } >/dev/null && {
27133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27136 ac_header_preproc=yes
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ac_header_preproc=no
27144 rm -f conftest.err conftest.$ac_ext
27145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27146 echo "${ECHO_T}$ac_header_preproc" >&6; }
27148 # So? What about this header?
27149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27155 ac_header_preproc=yes
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27171 ## --------------------------------------------- ##
27172 ## Report this to <http://www.openldap.org/its/> ##
27173 ## --------------------------------------------- ##
27175 ) | sed "s/^/$as_me: WARNING: /" >&2
27178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 eval "$as_ac_Header=\$ac_header_preproc"
27185 ac_res=`eval echo '${'$as_ac_Header'}'`
27186 { echo "$as_me:$LINENO: result: $ac_res" >&5
27187 echo "${ECHO_T}$ac_res" >&6; }
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27201 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27202 cat >>confdefs.h <<\_ACEOF
27203 #define REENTRANT 1
27206 cat >>confdefs.h <<\_ACEOF
27207 #define _REENTRANT 1
27210 cat >>confdefs.h <<\_ACEOF
27211 #define THREAD_SAFE 1
27214 cat >>confdefs.h <<\_ACEOF
27215 #define _THREAD_SAFE 1
27218 cat >>confdefs.h <<\_ACEOF
27219 #define THREADSAFE 1
27222 cat >>confdefs.h <<\_ACEOF
27223 #define _THREADSAFE 1
27226 cat >>confdefs.h <<\_ACEOF
27227 #define _SGI_MP_SOURCE 1
27231 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27232 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27233 if test "${ol_cv_errno_thread_specific+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 cat >conftest.$ac_ext <<_ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h. */
27252 rm -f conftest.$ac_objext conftest$ac_exeext
27253 if { (ac_try="$ac_link"
27254 case "(($ac_try" in
27255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256 *) ac_try_echo=$ac_try;;
27258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259 (eval "$ac_link") 2>conftest.er1
27261 grep -v '^ *+' conftest.er1 >conftest.err
27263 cat conftest.err >&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); } && {
27266 test -z "$ac_c_werror_flag" ||
27267 test ! -s conftest.err
27268 } && test -s conftest$ac_exeext &&
27269 $as_test_x conftest$ac_exeext; then
27270 ol_cv_errno_thread_specific=yes
27272 echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ol_cv_errno_thread_specific=no
27278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27279 conftest$ac_exeext conftest.$ac_ext
27282 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27283 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27285 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27286 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27287 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27306 rm -f conftest.$ac_objext conftest$ac_exeext
27307 if { (ac_try="$ac_link"
27308 case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_link") 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } && {
27320 test -z "$ac_c_werror_flag" ||
27321 test ! -s conftest.err
27322 } && test -s conftest$ac_exeext &&
27323 $as_test_x conftest$ac_exeext; then
27324 ol_cv_h_errno_thread_specific=yes
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27329 ol_cv_h_errno_thread_specific=no
27332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27333 conftest$ac_exeext conftest.$ac_ext
27336 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27337 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27339 if test $ol_cv_errno_thread_specific != yes ||
27340 test $ol_cv_h_errno_thread_specific != yes ; then
27341 LIBS="$LTHREAD_LIBS $LIBS"
27347 if test $ol_link_threads = no ; then
27348 if test $ol_with_threads = yes ; then
27349 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27350 echo "$as_me: error: no suitable thread support" >&2;}
27351 { (exit 1); exit 1; }; }
27354 if test $ol_with_threads = auto ; then
27355 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27356 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27361 cat >>confdefs.h <<\_ACEOF
27362 #define NO_THREADS 1
27371 if test $ol_link_threads != no ; then
27373 cat >>confdefs.h <<\_ACEOF
27374 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27384 gethostbyname_r gethostbyaddr_r \
27387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 cat >conftest.$ac_ext <<_ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27401 #define $ac_func innocuous_$ac_func
27403 /* System header to define __stub macros and hopefully few prototypes,
27404 which can conflict with char $ac_func (); below.
27405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27406 <limits.h> exists even on freestanding compilers. */
27409 # include <limits.h>
27411 # include <assert.h>
27416 /* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27423 /* The GNU C library defines this for functions which it implements
27424 to always fail with ENOSYS. Some functions are actually named
27425 something starting with __ and the normal name is an alias. */
27426 #if defined __stub_$ac_func || defined __stub___$ac_func
27433 return $ac_func ();
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_link") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_c_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest$ac_exeext &&
27455 $as_test_x conftest$ac_exeext; then
27456 eval "$as_ac_var=yes"
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 eval "$as_ac_var=no"
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465 conftest$ac_exeext conftest.$ac_ext
27467 ac_res=`eval echo '${'$as_ac_var'}'`
27468 { echo "$as_me:$LINENO: result: $ac_res" >&5
27469 echo "${ECHO_T}$ac_res" >&6; }
27470 if test `eval echo '${'$as_ac_var'}'` = yes; then
27471 cat >>confdefs.h <<_ACEOF
27472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27479 if test "$ac_cv_func_ctime_r" = no ; then
27480 ol_cv_func_ctime_r_nargs=0
27482 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27483 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27484 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27485 echo $ECHO_N "(cached) $ECHO_C" >&6
27487 cat >conftest.$ac_ext <<_ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h. */
27497 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27502 rm -f conftest.$ac_objext
27503 if { (ac_try="$ac_compile"
27504 case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_compile") 2>conftest.er1
27511 grep -v '^ *+' conftest.er1 >conftest.err
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } && {
27516 test -z "$ac_c_werror_flag" ||
27517 test ! -s conftest.err
27518 } && test -s conftest.$ac_objext; then
27519 ol_cv_func_ctime_r_nargs3=yes
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ol_cv_func_ctime_r_nargs3=no
27527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27529 cat >conftest.$ac_ext <<_ACEOF
27532 cat confdefs.h >>conftest.$ac_ext
27533 cat >>conftest.$ac_ext <<_ACEOF
27534 /* end confdefs.h. */
27539 time_t ti; char *buffer; ctime_r(&ti,buffer);
27544 rm -f conftest.$ac_objext
27545 if { (ac_try="$ac_compile"
27546 case "(($ac_try" in
27547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548 *) ac_try_echo=$ac_try;;
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551 (eval "$ac_compile") 2>conftest.er1
27553 grep -v '^ *+' conftest.er1 >conftest.err
27555 cat conftest.err >&5
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); } && {
27558 test -z "$ac_c_werror_flag" ||
27559 test ! -s conftest.err
27560 } && test -s conftest.$ac_objext; then
27561 ol_cv_func_ctime_r_nargs2=yes
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27566 ol_cv_func_ctime_r_nargs2=no
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27571 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27572 test $ol_cv_func_ctime_r_nargs2 = no ; then
27574 ol_cv_func_ctime_r_nargs=3
27576 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27577 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27579 ol_cv_func_ctime_r_nargs=2
27582 ol_cv_func_ctime_r_nargs=0
27586 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27587 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27589 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27591 cat >>confdefs.h <<_ACEOF
27592 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27599 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27600 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27601 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27602 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 #include <sys/types.h>
27612 #include <sys/socket.h>
27613 #include <netinet/in.h>
27615 #define BUFSIZE (sizeof(struct hostent)+10)
27619 struct hostent hent; char buffer[BUFSIZE];
27620 int bufsize=BUFSIZE;int h_errno;
27621 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27622 buffer, bufsize, &h_errno);
27627 rm -f conftest.$ac_objext
27628 if { (ac_try="$ac_compile"
27629 case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_compile") 2>conftest.er1
27636 grep -v '^ *+' conftest.er1 >conftest.err
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } && {
27641 test -z "$ac_c_werror_flag" ||
27642 test ! -s conftest.err
27643 } && test -s conftest.$ac_objext; then
27644 ol_cv_func_gethostbyname_r_nargs5=yes
27646 echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27649 ol_cv_func_gethostbyname_r_nargs5=no
27652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 cat >conftest.$ac_ext <<_ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27660 #include <sys/types.h>
27661 #include <sys/socket.h>
27662 #include <netinet/in.h>
27664 #define BUFSIZE (sizeof(struct hostent)+10)
27668 struct hostent hent;struct hostent *rhent;
27669 char buffer[BUFSIZE];
27670 int bufsize=BUFSIZE;int h_errno;
27671 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_compile") 2>conftest.er1
27686 grep -v '^ *+' conftest.er1 >conftest.err
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && {
27691 test -z "$ac_c_werror_flag" ||
27692 test ! -s conftest.err
27693 } && test -s conftest.$ac_objext; then
27694 ol_cv_func_gethostbyname_r_nargs6=yes
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27699 ol_cv_func_gethostbyname_r_nargs6=no
27702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27704 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27705 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27707 ol_cv_func_gethostbyname_r_nargs=5
27709 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27710 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27712 ol_cv_func_gethostbyname_r_nargs=6
27715 ol_cv_func_gethostbyname_r_nargs=0
27719 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27720 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27721 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27723 cat >>confdefs.h <<_ACEOF
27724 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27730 ol_cv_func_gethostbyname_r_nargs=0
27733 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27734 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27735 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27736 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27737 echo $ECHO_N "(cached) $ECHO_C" >&6
27739 cat >conftest.$ac_ext <<_ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27745 #include <sys/types.h>
27746 #include <sys/socket.h>
27747 #include <netinet/in.h>
27749 #define BUFSIZE (sizeof(struct hostent)+10)
27753 struct hostent hent; char buffer[BUFSIZE];
27754 struct in_addr add;
27755 size_t alen=sizeof(struct in_addr);
27756 int bufsize=BUFSIZE;int h_errno;
27757 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27758 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_compile") 2>conftest.er1
27772 grep -v '^ *+' conftest.er1 >conftest.err
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } && {
27777 test -z "$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 } && test -s conftest.$ac_objext; then
27780 ol_cv_func_gethostbyaddr_r_nargs7=yes
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ol_cv_func_gethostbyaddr_r_nargs7=no
27788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27796 #include <sys/types.h>
27797 #include <sys/socket.h>
27798 #include <netinet/in.h>
27800 #define BUFSIZE (sizeof(struct hostent)+10)
27804 struct hostent hent;
27805 struct hostent *rhent; char buffer[BUFSIZE];
27806 struct in_addr add;
27807 size_t alen=sizeof(struct in_addr);
27808 int bufsize=BUFSIZE;int h_errno;
27809 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27810 alen, AF_INET, &hent, buffer, bufsize,
27816 rm -f conftest.$ac_objext
27817 if { (ac_try="$ac_compile"
27818 case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_compile") 2>conftest.er1
27825 grep -v '^ *+' conftest.er1 >conftest.err
27827 cat conftest.err >&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); } && {
27830 test -z "$ac_c_werror_flag" ||
27831 test ! -s conftest.err
27832 } && test -s conftest.$ac_objext; then
27833 ol_cv_func_gethostbyaddr_r_nargs8=yes
27835 echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27838 ol_cv_func_gethostbyaddr_r_nargs8=no
27841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27843 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27844 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27846 ol_cv_func_gethostbyaddr_r_nargs=7
27848 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27849 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27851 ol_cv_func_gethostbyaddr_r_nargs=8
27854 ol_cv_func_gethostbyaddr_r_nargs=0
27858 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27859 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27860 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27862 cat >>confdefs.h <<_ACEOF
27863 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27869 ol_cv_func_gethostbyaddr_r_nargs=0
27874 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27875 ol_cv_berkeley_db=no
27877 for ac_header in db.h
27879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 ac_res=`eval echo '${'$as_ac_Header'}'`
27887 { echo "$as_me:$LINENO: result: $ac_res" >&5
27888 echo "${ECHO_T}$ac_res" >&6; }
27890 # Is the header compilable?
27891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27893 cat >conftest.$ac_ext <<_ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27899 $ac_includes_default
27900 #include <$ac_header>
27902 rm -f conftest.$ac_objext
27903 if { (ac_try="$ac_compile"
27904 case "(($ac_try" in
27905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27906 *) ac_try_echo=$ac_try;;
27908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27909 (eval "$ac_compile") 2>conftest.er1
27911 grep -v '^ *+' conftest.er1 >conftest.err
27913 cat conftest.err >&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } && {
27916 test -z "$ac_c_werror_flag" ||
27917 test ! -s conftest.err
27918 } && test -s conftest.$ac_objext; then
27919 ac_header_compiler=yes
27921 echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27924 ac_header_compiler=no
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27929 echo "${ECHO_T}$ac_header_compiler" >&6; }
27931 # Is the header present?
27932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 #include <$ac_header>
27942 if { (ac_try="$ac_cpp conftest.$ac_ext"
27943 case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27950 grep -v '^ *+' conftest.er1 >conftest.err
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } >/dev/null && {
27955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27956 test ! -s conftest.err
27958 ac_header_preproc=yes
27960 echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27963 ac_header_preproc=no
27966 rm -f conftest.err conftest.$ac_ext
27967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27968 echo "${ECHO_T}$ac_header_preproc" >&6; }
27970 # So? What about this header?
27971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27977 ac_header_preproc=yes
27980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27993 ## --------------------------------------------- ##
27994 ## Report this to <http://www.openldap.org/its/> ##
27995 ## --------------------------------------------- ##
27997 ) | sed "s/^/$as_me: WARNING: /" >&2
28000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28003 echo $ECHO_N "(cached) $ECHO_C" >&6
28005 eval "$as_ac_Header=\$ac_header_preproc"
28007 ac_res=`eval echo '${'$as_ac_Header'}'`
28008 { echo "$as_me:$LINENO: result: $ac_res" >&5
28009 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28021 if test $ac_cv_header_db_h = yes; then
28022 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28023 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28024 if test "${ol_cv_bdb_major+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 cat >conftest.$ac_ext <<_ACEOF
28031 #ifndef DB_VERSION_MAJOR
28032 # define DB_VERSION_MAJOR 1
28034 __db_version DB_VERSION_MAJOR
28037 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28038 ol_cv_bdb_major=${3}
28041 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28042 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28043 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28044 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28045 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28046 { (exit 1); exit 1; }; } ;;
28049 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28050 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28051 if test "${ol_cv_bdb_minor+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28055 cat >conftest.$ac_ext <<_ACEOF
28058 #ifndef DB_VERSION_MINOR
28059 # define DB_VERSION_MINOR 0
28061 __db_version DB_VERSION_MINOR
28064 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28065 ol_cv_bdb_minor=${3}
28068 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28069 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28070 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28071 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28072 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28073 { (exit 1); exit 1; }; } ;;
28076 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28077 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28078 if test "${ol_cv_bdb_compat+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28082 cat >conftest.$ac_ext <<_ACEOF
28085 cat confdefs.h >>conftest.$ac_ext
28086 cat >>conftest.$ac_ext <<_ACEOF
28087 /* end confdefs.h. */
28091 /* this check could be improved */
28092 #ifndef DB_VERSION_MAJOR
28093 # define DB_VERSION_MAJOR 1
28095 #ifndef DB_VERSION_MINOR
28096 # define DB_VERSION_MINOR 0
28099 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28101 /* require 4.4 or later */
28102 #if DB_VERSION_MM >= 0x0404
28103 __db_version_compat
28107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28108 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28109 ol_cv_bdb_compat=yes
28111 ol_cv_bdb_compat=no
28116 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28117 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28120 if test $ol_cv_bdb_compat != yes ; then
28121 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28122 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28123 { (exit 1); exit 1; }; }
28128 if test $ol_cv_bdb_major = 4 ; then
28129 if test $ol_cv_lib_db = no ; then
28130 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28132 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28136 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28147 #ifdef HAVE_DB_185_H
28148 # include <db_185.h>
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28158 #define NULL ((void*)0)
28165 #if DB_VERSION_MAJOR > 2
28166 db_env_create( NULL, 0 );
28167 #elif DB_VERSION_MAJOR > 1
28168 db_appexit( NULL );
28170 (void) dbopen( NULL, 0, 0, 0, NULL);
28177 rm -f conftest.$ac_objext conftest$ac_exeext
28178 if { (ac_try="$ac_link"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_link") 2>conftest.er1
28186 grep -v '^ *+' conftest.er1 >conftest.err
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } && {
28191 test -z "$ac_c_werror_flag" ||
28192 test ! -s conftest.err
28193 } && test -s conftest$ac_exeext &&
28194 $as_test_x conftest$ac_exeext; then
28195 ol_cv_db_db_4_dot_m=yes
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28200 ol_cv_db_db_4_dot_m=no
28203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28204 conftest$ac_exeext conftest.$ac_ext
28209 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28210 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28212 if test $ol_cv_db_db_4_dot_m = yes ; then
28213 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28217 if test $ol_cv_lib_db = no ; then
28218 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28219 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28220 if test "${ol_cv_db_db4m+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28224 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28228 cat >conftest.$ac_ext <<_ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h. */
28235 #ifdef HAVE_DB_185_H
28236 # include <db_185.h>
28241 #ifndef DB_VERSION_MAJOR
28242 # define DB_VERSION_MAJOR 1
28246 #define NULL ((void*)0)
28253 #if DB_VERSION_MAJOR > 2
28254 db_env_create( NULL, 0 );
28255 #elif DB_VERSION_MAJOR > 1
28256 db_appexit( NULL );
28258 (void) dbopen( NULL, 0, 0, 0, NULL);
28265 rm -f conftest.$ac_objext conftest$ac_exeext
28266 if { (ac_try="$ac_link"
28267 case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_link") 2>conftest.er1
28274 grep -v '^ *+' conftest.er1 >conftest.err
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } && {
28279 test -z "$ac_c_werror_flag" ||
28280 test ! -s conftest.err
28281 } && test -s conftest$ac_exeext &&
28282 $as_test_x conftest$ac_exeext; then
28285 echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28292 conftest$ac_exeext conftest.$ac_ext
28297 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28298 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28300 if test $ol_cv_db_db4m = yes ; then
28301 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28305 if test $ol_cv_lib_db = no ; then
28306 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28307 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28308 if test "${ol_cv_db_db_4m+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28314 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28316 cat >conftest.$ac_ext <<_ACEOF
28319 cat confdefs.h >>conftest.$ac_ext
28320 cat >>conftest.$ac_ext <<_ACEOF
28321 /* end confdefs.h. */
28323 #ifdef HAVE_DB_185_H
28324 # include <db_185.h>
28329 #ifndef DB_VERSION_MAJOR
28330 # define DB_VERSION_MAJOR 1
28334 #define NULL ((void*)0)
28341 #if DB_VERSION_MAJOR > 2
28342 db_env_create( NULL, 0 );
28343 #elif DB_VERSION_MAJOR > 1
28344 db_appexit( NULL );
28346 (void) dbopen( NULL, 0, 0, 0, NULL);
28353 rm -f conftest.$ac_objext conftest$ac_exeext
28354 if { (ac_try="$ac_link"
28355 case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_link") 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } && {
28367 test -z "$ac_c_werror_flag" ||
28368 test ! -s conftest.err
28369 } && test -s conftest$ac_exeext &&
28370 $as_test_x conftest$ac_exeext; then
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28380 conftest$ac_exeext conftest.$ac_ext
28385 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28386 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28388 if test $ol_cv_db_db_4m = yes ; then
28389 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28393 if test $ol_cv_lib_db = no ; then
28394 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28395 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28396 if test "${ol_cv_db_db_4_m+set}" = set; then
28397 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28402 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h. */
28411 #ifdef HAVE_DB_185_H
28412 # include <db_185.h>
28417 #ifndef DB_VERSION_MAJOR
28418 # define DB_VERSION_MAJOR 1
28422 #define NULL ((void*)0)
28429 #if DB_VERSION_MAJOR > 2
28430 db_env_create( NULL, 0 );
28431 #elif DB_VERSION_MAJOR > 1
28432 db_appexit( NULL );
28434 (void) dbopen( NULL, 0, 0, 0, NULL);
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448 (eval "$ac_link") 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } && {
28455 test -z "$ac_c_werror_flag" ||
28456 test ! -s conftest.err
28457 } && test -s conftest$ac_exeext &&
28458 $as_test_x conftest$ac_exeext; then
28459 ol_cv_db_db_4_m=yes
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28468 conftest$ac_exeext conftest.$ac_ext
28473 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28474 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28476 if test $ol_cv_db_db_4_m = yes ; then
28477 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28481 if test $ol_cv_lib_db = no ; then
28482 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28483 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28484 if test "${ol_cv_db_db_4+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28492 cat >conftest.$ac_ext <<_ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h. */
28499 #ifdef HAVE_DB_185_H
28500 # include <db_185.h>
28505 #ifndef DB_VERSION_MAJOR
28506 # define DB_VERSION_MAJOR 1
28510 #define NULL ((void*)0)
28517 #if DB_VERSION_MAJOR > 2
28518 db_env_create( NULL, 0 );
28519 #elif DB_VERSION_MAJOR > 1
28520 db_appexit( NULL );
28522 (void) dbopen( NULL, 0, 0, 0, NULL);
28529 rm -f conftest.$ac_objext conftest$ac_exeext
28530 if { (ac_try="$ac_link"
28531 case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_link") 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && {
28543 test -z "$ac_c_werror_flag" ||
28544 test ! -s conftest.err
28545 } && test -s conftest$ac_exeext &&
28546 $as_test_x conftest$ac_exeext; then
28549 echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28556 conftest$ac_exeext conftest.$ac_ext
28561 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28562 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28564 if test $ol_cv_db_db_4 = yes ; then
28565 ol_cv_lib_db=-ldb-4
28569 if test $ol_cv_lib_db = no ; then
28570 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28571 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28572 if test "${ol_cv_db_db4+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28580 cat >conftest.$ac_ext <<_ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28587 #ifdef HAVE_DB_185_H
28588 # include <db_185.h>
28593 #ifndef DB_VERSION_MAJOR
28594 # define DB_VERSION_MAJOR 1
28598 #define NULL ((void*)0)
28605 #if DB_VERSION_MAJOR > 2
28606 db_env_create( NULL, 0 );
28607 #elif DB_VERSION_MAJOR > 1
28608 db_appexit( NULL );
28610 (void) dbopen( NULL, 0, 0, 0, NULL);
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (ac_try="$ac_link"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_link") 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } && {
28631 test -z "$ac_c_werror_flag" ||
28632 test ! -s conftest.err
28633 } && test -s conftest$ac_exeext &&
28634 $as_test_x conftest$ac_exeext; then
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28644 conftest$ac_exeext conftest.$ac_ext
28649 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28650 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28652 if test $ol_cv_db_db4 = yes ; then
28657 if test $ol_cv_lib_db = no ; then
28658 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28659 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28660 if test "${ol_cv_db_db+set}" = set; then
28661 echo $ECHO_N "(cached) $ECHO_C" >&6
28666 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28668 cat >conftest.$ac_ext <<_ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h. */
28675 #ifdef HAVE_DB_185_H
28676 # include <db_185.h>
28681 #ifndef DB_VERSION_MAJOR
28682 # define DB_VERSION_MAJOR 1
28686 #define NULL ((void*)0)
28693 #if DB_VERSION_MAJOR > 2
28694 db_env_create( NULL, 0 );
28695 #elif DB_VERSION_MAJOR > 1
28696 db_appexit( NULL );
28698 (void) dbopen( NULL, 0, 0, 0, NULL);
28705 rm -f conftest.$ac_objext conftest$ac_exeext
28706 if { (ac_try="$ac_link"
28707 case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_link") 2>conftest.er1
28714 grep -v '^ *+' conftest.er1 >conftest.err
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && {
28719 test -z "$ac_c_werror_flag" ||
28720 test ! -s conftest.err
28721 } && test -s conftest$ac_exeext &&
28722 $as_test_x conftest$ac_exeext; then
28725 echo "$as_me: failed program was:" >&5
28726 sed 's/^/| /' conftest.$ac_ext >&5
28731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28732 conftest$ac_exeext conftest.$ac_ext
28737 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28738 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28740 if test $ol_cv_db_db = yes ; then
28746 if test $ol_cv_lib_db = no ; then
28747 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28748 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28749 if test "${ol_cv_db_none+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28757 cat >conftest.$ac_ext <<_ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h. */
28764 #ifdef HAVE_DB_185_H
28765 # include <db_185.h>
28770 #ifndef DB_VERSION_MAJOR
28771 # define DB_VERSION_MAJOR 1
28775 #define NULL ((void*)0)
28782 #if DB_VERSION_MAJOR > 2
28783 db_env_create( NULL, 0 );
28784 #elif DB_VERSION_MAJOR > 1
28785 db_appexit( NULL );
28787 (void) dbopen( NULL, 0, 0, 0, NULL);
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (ac_try="$ac_link"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_link") 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } && {
28808 test -z "$ac_c_werror_flag" ||
28809 test ! -s conftest.err
28810 } && test -s conftest$ac_exeext &&
28811 $as_test_x conftest$ac_exeext; then
28814 echo "$as_me: failed program was:" >&5
28815 sed 's/^/| /' conftest.$ac_ext >&5
28820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28821 conftest$ac_exeext conftest.$ac_ext
28826 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28827 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28829 if test $ol_cv_db_none = yes ; then
28835 if test "$ol_cv_lib_db" != no ; then
28836 ol_cv_berkeley_db=yes
28837 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28838 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28839 if test "${ol_cv_berkeley_db_version+set}" = set; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28844 LIBS="$LTHREAD_LIBS $LIBS"
28845 if test $ol_cv_lib_db != yes ; then
28846 LIBS="$ol_cv_lib_db $LIBS"
28849 if test "$cross_compiling" = yes; then
28850 ol_cv_berkeley_db_version=cross
28852 cat >conftest.$ac_ext <<_ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28859 #ifdef HAVE_DB_185_H
28864 #ifndef DB_VERSION_MAJOR
28865 # define DB_VERSION_MAJOR 1
28868 #define NULL ((void *)0)
28872 #if DB_VERSION_MAJOR > 1
28874 int major, minor, patch;
28876 version = db_version( &major, &minor, &patch );
28878 if( major != DB_VERSION_MAJOR ||
28879 minor != DB_VERSION_MINOR ||
28880 patch != DB_VERSION_PATCH )
28882 printf("Berkeley DB version mismatch\n"
28883 "\theader: %s\n\tlibrary: %s\n",
28884 DB_VERSION_STRING, version);
28892 rm -f conftest$ac_exeext
28893 if { (ac_try="$ac_link"
28894 case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_link") 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28903 { (case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_try") 2>&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 ol_cv_berkeley_db_version=yes
28914 echo "$as_me: program exited with status $ac_status" >&5
28915 echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28918 ( exit $ac_status )
28919 ol_cv_berkeley_db_version=no
28921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28929 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28930 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28932 if test $ol_cv_berkeley_db_version = no ; then
28933 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28934 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28935 { (exit 1); exit 1; }; }
28938 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28939 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28940 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28945 LIBS="$LTHREAD_LIBS $LIBS"
28946 if test $ol_cv_lib_db != yes ; then
28947 LIBS="$ol_cv_lib_db $LIBS"
28950 if test "$cross_compiling" = yes; then
28951 ol_cv_berkeley_db_thread=cross
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28960 #ifdef HAVE_DB_185_H
28966 #define NULL ((void *)0)
28971 u_int32_t flags = DB_CREATE |
28977 #if DB_VERSION_MAJOR > 2
28978 DB_ENV *env = NULL;
28980 rc = db_env_create( &env, 0 );
28982 flags |= DB_INIT_MPOOL;
28983 #ifdef DB_MPOOL_PRIVATE
28984 flags |= DB_MPOOL_PRIVATE;
28988 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28992 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
28993 rc = (env->open)( env, NULL, flags, 0 );
28995 rc = (env->open)( env, NULL, NULL, flags, 0 );
28999 rc = env->close( env, 0 );
29003 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29009 memset( &env, '\0', sizeof(env) );
29011 rc = db_appinit( NULL, NULL, &env, flags );
29014 db_appexit( &env );
29017 unlink("__db_mpool.share");
29018 unlink("__db_lock.share");
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_link") 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035 { (case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_try") 2>&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; }; then
29044 ol_cv_berkeley_db_thread=yes
29046 echo "$as_me: program exited with status $ac_status" >&5
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29050 ( exit $ac_status )
29051 ol_cv_berkeley_db_thread=no
29053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29061 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29062 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29064 if test $ol_cv_berkeley_db_thread != no ; then
29066 cat >>confdefs.h <<\_ACEOF
29067 #define HAVE_BERKELEY_DB_THREAD 1
29076 if test $ol_cv_berkeley_db = no ; then
29077 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29078 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29079 { (exit 1); exit 1; }; }
29083 cat >>confdefs.h <<\_ACEOF
29084 #define HAVE_BERKELEY_DB 1
29088 if test $ol_cv_lib_db != yes ; then
29089 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29092 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29098 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29099 BUILD_LIBS_DYNAMIC=shared
29101 cat >>confdefs.h <<\_ACEOF
29102 #define LDAP_LIBS_DYNAMIC 1
29107 BUILD_LIBS_DYNAMIC=static
29111 if test $ol_enable_wrappers != no ; then
29113 for ac_header in tcpd.h
29115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 ac_res=`eval echo '${'$as_ac_Header'}'`
29123 { echo "$as_me:$LINENO: result: $ac_res" >&5
29124 echo "${ECHO_T}$ac_res" >&6; }
29126 # Is the header compilable?
29127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29135 $ac_includes_default
29136 #include <$ac_header>
29138 rm -f conftest.$ac_objext
29139 if { (ac_try="$ac_compile"
29140 case "(($ac_try" in
29141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142 *) ac_try_echo=$ac_try;;
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145 (eval "$ac_compile") 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } && {
29152 test -z "$ac_c_werror_flag" ||
29153 test ! -s conftest.err
29154 } && test -s conftest.$ac_objext; then
29155 ac_header_compiler=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <$ac_header>
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null && {
29191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29192 test ! -s conftest.err
29194 ac_header_preproc=yes
29196 echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29199 ac_header_preproc=no
29202 rm -f conftest.err conftest.$ac_ext
29203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29204 echo "${ECHO_T}$ac_header_preproc" >&6; }
29206 # So? What about this header?
29207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29213 ac_header_preproc=yes
29216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29229 ## --------------------------------------------- ##
29230 ## Report this to <http://www.openldap.org/its/> ##
29231 ## --------------------------------------------- ##
29233 ) | sed "s/^/$as_me: WARNING: /" >&2
29236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29241 eval "$as_ac_Header=\$ac_header_preproc"
29243 ac_res=`eval echo '${'$as_ac_Header'}'`
29244 { echo "$as_me:$LINENO: result: $ac_res" >&5
29245 echo "${ECHO_T}$ac_res" >&6; }
29248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29249 cat >>confdefs.h <<_ACEOF
29250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29253 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29254 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29256 LIBS="$LIBS -lwrap"
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29265 int allow_severity = 0;
29266 int deny_severity = 0;
29268 struct request_info *req;
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_link") 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } && {
29294 test -z "$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29296 } && test -s conftest$ac_exeext &&
29297 $as_test_x conftest$ac_exeext; then
29298 { echo "$as_me:$LINENO: result: -lwrap" >&5
29299 echo "${ECHO_T}-lwrap" >&6; }
29303 echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29308 cat >conftest.$ac_ext <<_ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h. */
29316 int allow_severity = 0;
29317 int deny_severity = 0;
29319 struct request_info *req;
29331 rm -f conftest.$ac_objext conftest$ac_exeext
29332 if { (ac_try="$ac_link"
29333 case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_link") 2>conftest.er1
29340 grep -v '^ *+' conftest.er1 >conftest.err
29342 cat conftest.err >&5
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); } && {
29345 test -z "$ac_c_werror_flag" ||
29346 test ! -s conftest.err
29347 } && test -s conftest$ac_exeext &&
29348 $as_test_x conftest$ac_exeext; then
29349 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29350 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29352 LIBS="$save_LIBS -lnsl"
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29358 { echo "$as_me:$LINENO: result: no" >&5
29359 echo "${ECHO_T}no" >&6; }
29364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29365 conftest$ac_exeext conftest.$ac_ext
29368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29369 conftest$ac_exeext conftest.$ac_ext
29377 if test $have_wrappers = yes ; then
29379 cat >>confdefs.h <<\_ACEOF
29380 #define HAVE_TCPD 1
29384 elif test $ol_enable_wrappers = yes ; then
29385 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29386 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29387 { (exit 1); exit 1; }; }
29389 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29390 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29395 if test $ol_enable_syslog != no ; then
29396 { echo "$as_me:$LINENO: checking for openlog" >&5
29397 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29398 if test "${ac_cv_func_openlog+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29409 #define openlog innocuous_openlog
29411 /* System header to define __stub macros and hopefully few prototypes,
29412 which can conflict with char openlog (); below.
29413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29414 <limits.h> exists even on freestanding compilers. */
29417 # include <limits.h>
29419 # include <assert.h>
29424 /* Override any GCC internal prototype to avoid an error.
29425 Use char because int might match the return type of a GCC
29426 builtin and then its argument prototype would still apply. */
29431 /* The GNU C library defines this for functions which it implements
29432 to always fail with ENOSYS. Some functions are actually named
29433 something starting with __ and the normal name is an alias. */
29434 #if defined __stub_openlog || defined __stub___openlog
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (ac_try="$ac_link"
29448 case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_link") 2>conftest.er1
29455 grep -v '^ *+' conftest.er1 >conftest.err
29457 cat conftest.err >&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } && {
29460 test -z "$ac_c_werror_flag" ||
29461 test ! -s conftest.err
29462 } && test -s conftest$ac_exeext &&
29463 $as_test_x conftest$ac_exeext; then
29464 ac_cv_func_openlog=yes
29466 echo "$as_me: failed program was:" >&5
29467 sed 's/^/| /' conftest.$ac_ext >&5
29469 ac_cv_func_openlog=no
29472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29473 conftest$ac_exeext conftest.$ac_ext
29475 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29476 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29478 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29479 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29480 echo "$as_me: error: could not find syslog" >&2;}
29481 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29483 ol_enable_syslog=$ac_cv_func_openlog
29487 if test $ol_enable_sql != no ; then
29490 for ac_header in sql.h sqlext.h
29492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_res=`eval echo '${'$as_ac_Header'}'`
29500 { echo "$as_me:$LINENO: result: $ac_res" >&5
29501 echo "${ECHO_T}$ac_res" >&6; }
29503 # Is the header compilable?
29504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 $ac_includes_default
29513 #include <$ac_header>
29515 rm -f conftest.$ac_objext
29516 if { (ac_try="$ac_compile"
29517 case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_compile") 2>conftest.er1
29524 grep -v '^ *+' conftest.er1 >conftest.err
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } && {
29529 test -z "$ac_c_werror_flag" ||
29530 test ! -s conftest.err
29531 } && test -s conftest.$ac_objext; then
29532 ac_header_compiler=yes
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ac_header_compiler=no
29540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29542 echo "${ECHO_T}$ac_header_compiler" >&6; }
29544 # Is the header present?
29545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29553 #include <$ac_header>
29555 if { (ac_try="$ac_cpp conftest.$ac_ext"
29556 case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29563 grep -v '^ *+' conftest.er1 >conftest.err
29565 cat conftest.err >&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); } >/dev/null && {
29568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29569 test ! -s conftest.err
29571 ac_header_preproc=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_header_preproc=no
29579 rm -f conftest.err conftest.$ac_ext
29580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29581 echo "${ECHO_T}$ac_header_preproc" >&6; }
29583 # So? What about this header?
29584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29590 ac_header_preproc=yes
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29606 ## --------------------------------------------- ##
29607 ## Report this to <http://www.openldap.org/its/> ##
29608 ## --------------------------------------------- ##
29610 ) | sed "s/^/$as_me: WARNING: /" >&2
29613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 eval "$as_ac_Header=\$ac_header_preproc"
29620 ac_res=`eval echo '${'$as_ac_Header'}'`
29621 { echo "$as_me:$LINENO: result: $ac_res" >&5
29622 echo "${ECHO_T}$ac_res" >&6; }
29625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29626 cat >>confdefs.h <<_ACEOF
29627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29632 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29633 echo "$as_me: error: could not locate SQL headers" >&2;}
29634 { (exit 1); exit 1; }; }
29642 LIBS="$LTHREAD_LIBS"
29644 if test $ol_with_odbc = auto ; then
29645 ol_with_odbc="iodbc unixodbc odbc32"
29648 for odbc in $ol_with_odbc ; do
29649 if test $ol_link_sql = no ; then
29652 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29653 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29657 ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-liodbc $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h. */
29666 /* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29672 char SQLDriverConnect ();
29676 return SQLDriverConnect ();
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>conftest.er1
29690 grep -v '^ *+' conftest.er1 >conftest.err
29692 cat conftest.err >&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } && {
29695 test -z "$ac_c_werror_flag" ||
29696 test ! -s conftest.err
29697 } && test -s conftest$ac_exeext &&
29698 $as_test_x conftest$ac_exeext; then
29699 ac_cv_lib_iodbc_SQLDriverConnect=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_lib_iodbc_SQLDriverConnect=no
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708 conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29712 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29713 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29719 if test $have_iodbc = yes ; then
29720 ol_link_sql="-liodbc"
29725 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29726 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29727 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29730 ac_check_lib_save_LIBS=$LIBS
29731 LIBS="-lodbc $LIBS"
29732 cat >conftest.$ac_ext <<_ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h. */
29739 /* Override any GCC internal prototype to avoid an error.
29740 Use char because int might match the return type of a GCC
29741 builtin and then its argument prototype would still apply. */
29745 char SQLDriverConnect ();
29749 return SQLDriverConnect ();
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (ac_try="$ac_link"
29756 case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_link") 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } && {
29768 test -z "$ac_c_werror_flag" ||
29769 test ! -s conftest.err
29770 } && test -s conftest$ac_exeext &&
29771 $as_test_x conftest$ac_exeext; then
29772 ac_cv_lib_odbc_SQLDriverConnect=yes
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29777 ac_cv_lib_odbc_SQLDriverConnect=no
29780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29781 conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29784 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29785 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29786 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29792 if test $have_odbc = yes ; then
29793 ol_link_sql="-lodbc"
29798 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29799 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29800 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29801 echo $ECHO_N "(cached) $ECHO_C" >&6
29803 ac_check_lib_save_LIBS=$LIBS
29804 LIBS="-lodbc32 $LIBS"
29805 cat >conftest.$ac_ext <<_ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29812 /* Override any GCC internal prototype to avoid an error.
29813 Use char because int might match the return type of a GCC
29814 builtin and then its argument prototype would still apply. */
29818 char SQLDriverConnect ();
29822 return SQLDriverConnect ();
29827 rm -f conftest.$ac_objext conftest$ac_exeext
29828 if { (ac_try="$ac_link"
29829 case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_link") 2>conftest.er1
29836 grep -v '^ *+' conftest.er1 >conftest.err
29838 cat conftest.err >&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } && {
29841 test -z "$ac_c_werror_flag" ||
29842 test ! -s conftest.err
29843 } && test -s conftest$ac_exeext &&
29844 $as_test_x conftest$ac_exeext; then
29845 ac_cv_lib_odbc32_SQLDriverConnect=yes
29847 echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29850 ac_cv_lib_odbc32_SQLDriverConnect=no
29853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29854 conftest$ac_exeext conftest.$ac_ext
29855 LIBS=$ac_check_lib_save_LIBS
29857 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29858 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29859 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29865 if test $have_odbc32 = yes ; then
29866 ol_link_sql="-lodbc32"
29871 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29872 echo "$as_me: error: unknown ODBC library" >&2;}
29873 { (exit 1); exit 1; }; }
29881 if test $ol_link_sql != no ; then
29882 SLAPD_SQL_LIBS="$ol_link_sql"
29884 elif test $ol_enable_sql != auto ; then
29885 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29886 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29887 { (exit 1); exit 1; }; }
29892 if test $ol_enable_ndb != no ; then
29893 # Extract the first word of "mysql_config", so it can be a program name with args.
29894 set dummy mysql_config; ac_word=$2
29895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29897 if test "${ac_cv_prog_MYSQL+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 if test -n "$MYSQL"; then
29901 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904 for as_dir in $PATH
29907 test -z "$as_dir" && as_dir=.
29908 for ac_exec_ext in '' $ac_executable_extensions; do
29909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29910 ac_cv_prog_MYSQL="yes"
29911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29920 MYSQL=$ac_cv_prog_MYSQL
29921 if test -n "$MYSQL"; then
29922 { echo "$as_me:$LINENO: result: $MYSQL" >&5
29923 echo "${ECHO_T}$MYSQL" >&6; }
29925 { echo "$as_me:$LINENO: result: no" >&5
29926 echo "${ECHO_T}no" >&6; }
29930 if test "$MYSQL" != yes ; then
29931 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29932 echo "$as_me: error: could not locate mysql_config" >&2;}
29933 { (exit 1); exit 1; }; }
29936 SQL_INC=`mysql_config --include`
29937 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29939 save_CPPFLAGS="$CPPFLAGS"
29940 CPPFLAGS="$SLAPD_NDB_INCS"
29941 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29942 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29943 cat >conftest.$ac_ext <<_ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h. */
29949 #include <NdbApi.hpp>
29951 if { (ac_try="$ac_cpp conftest.$ac_ext"
29952 case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29959 grep -v '^ *+' conftest.er1 >conftest.err
29961 cat conftest.err >&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); } >/dev/null && {
29964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29965 test ! -s conftest.err
29967 { echo "$as_me:$LINENO: result: yes" >&5
29968 echo "${ECHO_T}yes" >&6; }
29970 echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29973 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
29974 echo "$as_me: error: could not locate NdbApi headers" >&2;}
29975 { (exit 1); exit 1; }; }
29979 rm -f conftest.err conftest.$ac_ext
29980 CPPFLAGS="$save_CPPFLAGS"
29982 SQL_LIB=`mysql_config --libs_r`
29983 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
29985 save_LDFLAGS="$LDFLAGS"
29988 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
29989 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
29990 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29993 ac_check_lib_save_LIBS=$LIBS
29994 LIBS="-lndbclient -lstdc++ $LIBS"
29995 cat >conftest.$ac_ext <<_ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30002 /* Override any GCC internal prototype to avoid an error.
30003 Use char because int might match the return type of a GCC
30004 builtin and then its argument prototype would still apply. */
30012 return ndb_init ();
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_link") 2>conftest.er1
30026 grep -v '^ *+' conftest.er1 >conftest.err
30028 cat conftest.err >&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } && {
30031 test -z "$ac_c_werror_flag" ||
30032 test ! -s conftest.err
30033 } && test -s conftest$ac_exeext &&
30034 $as_test_x conftest$ac_exeext; then
30035 ac_cv_lib_ndbclient_ndb_init=yes
30037 echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30040 ac_cv_lib_ndbclient_ndb_init=no
30043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30044 conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30047 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30048 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30049 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30053 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30054 echo "$as_me: error: could not locate ndbclient library" >&2;}
30055 { (exit 1); exit 1; }; }
30060 LDFLAGS="$save_LDFLAGS"
30062 if test "$ol_enable_ndb" = yes ; then
30063 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30069 for ac_header in unicode/utypes.h
30071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30078 ac_res=`eval echo '${'$as_ac_Header'}'`
30079 { echo "$as_me:$LINENO: result: $ac_res" >&5
30080 echo "${ECHO_T}$ac_res" >&6; }
30082 # Is the header compilable?
30083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30085 cat >conftest.$ac_ext <<_ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h. */
30091 $ac_includes_default
30092 #include <$ac_header>
30094 rm -f conftest.$ac_objext
30095 if { (ac_try="$ac_compile"
30096 case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_compile") 2>conftest.er1
30103 grep -v '^ *+' conftest.er1 >conftest.err
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } && {
30108 test -z "$ac_c_werror_flag" ||
30109 test ! -s conftest.err
30110 } && test -s conftest.$ac_objext; then
30111 ac_header_compiler=yes
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30116 ac_header_compiler=no
30119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30121 echo "${ECHO_T}$ac_header_compiler" >&6; }
30123 # Is the header present?
30124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30126 cat >conftest.$ac_ext <<_ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h. */
30132 #include <$ac_header>
30134 if { (ac_try="$ac_cpp conftest.$ac_ext"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30142 grep -v '^ *+' conftest.er1 >conftest.err
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } >/dev/null && {
30147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30150 ac_header_preproc=yes
30152 echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30155 ac_header_preproc=no
30158 rm -f conftest.err conftest.$ac_ext
30159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30160 echo "${ECHO_T}$ac_header_preproc" >&6; }
30162 # So? What about this header?
30163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30169 ac_header_preproc=yes
30172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30185 ## --------------------------------------------- ##
30186 ## Report this to <http://www.openldap.org/its/> ##
30187 ## --------------------------------------------- ##
30189 ) | sed "s/^/$as_me: WARNING: /" >&2
30192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
30197 eval "$as_ac_Header=\$ac_header_preproc"
30199 ac_res=`eval echo '${'$as_ac_Header'}'`
30200 { echo "$as_me:$LINENO: result: $ac_res" >&5
30201 echo "${ECHO_T}$ac_res" >&6; }
30204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30205 cat >>confdefs.h <<_ACEOF
30206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30213 if test $ac_cv_header_unicode_utypes_h = yes ; then
30214 OL_ICULIBS="-licuuc -licudata"
30216 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30217 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30218 if test "${ol_cv_lib_icu+set}" = set; then
30219 echo $ECHO_N "(cached) $ECHO_C" >&6
30223 LIBS="$OL_ICULIBS $LIBS"
30224 cat >conftest.$ac_ext <<_ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30231 #include <unicode/utypes.h>
30237 (void) u_errorName(0);
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_link") 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } && {
30257 test -z "$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30259 } && test -s conftest$ac_exeext &&
30260 $as_test_x conftest$ac_exeext; then
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270 conftest$ac_exeext conftest.$ac_ext
30274 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30275 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30277 if test $ol_cv_lib_icu != no ; then
30278 ol_icu="$OL_ICULIBS"
30280 cat >>confdefs.h <<\_ACEOF
30287 if test "$ol_icu" = no ; then
30288 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30289 echo "$as_me: WARNING: ICU not available" >&2;}
30296 if test $ol_with_cyrus_sasl != no ; then
30299 for ac_header in sasl/sasl.h sasl.h
30301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30308 ac_res=`eval echo '${'$as_ac_Header'}'`
30309 { echo "$as_me:$LINENO: result: $ac_res" >&5
30310 echo "${ECHO_T}$ac_res" >&6; }
30312 # Is the header compilable?
30313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30315 cat >conftest.$ac_ext <<_ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h. */
30321 $ac_includes_default
30322 #include <$ac_header>
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_compile") 2>conftest.er1
30333 grep -v '^ *+' conftest.er1 >conftest.err
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } && {
30338 test -z "$ac_c_werror_flag" ||
30339 test ! -s conftest.err
30340 } && test -s conftest.$ac_objext; then
30341 ac_header_compiler=yes
30343 echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30346 ac_header_compiler=no
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30351 echo "${ECHO_T}$ac_header_compiler" >&6; }
30353 # Is the header present?
30354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30356 cat >conftest.$ac_ext <<_ACEOF
30359 cat confdefs.h >>conftest.$ac_ext
30360 cat >>conftest.$ac_ext <<_ACEOF
30361 /* end confdefs.h. */
30362 #include <$ac_header>
30364 if { (ac_try="$ac_cpp conftest.$ac_ext"
30365 case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30372 grep -v '^ *+' conftest.er1 >conftest.err
30374 cat conftest.err >&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } >/dev/null && {
30377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30378 test ! -s conftest.err
30380 ac_header_preproc=yes
30382 echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30385 ac_header_preproc=no
30388 rm -f conftest.err conftest.$ac_ext
30389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30390 echo "${ECHO_T}$ac_header_preproc" >&6; }
30392 # So? What about this header?
30393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30399 ac_header_preproc=yes
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30415 ## --------------------------------------------- ##
30416 ## Report this to <http://www.openldap.org/its/> ##
30417 ## --------------------------------------------- ##
30419 ) | sed "s/^/$as_me: WARNING: /" >&2
30422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30427 eval "$as_ac_Header=\$ac_header_preproc"
30429 ac_res=`eval echo '${'$as_ac_Header'}'`
30430 { echo "$as_me:$LINENO: result: $ac_res" >&5
30431 echo "${ECHO_T}$ac_res" >&6; }
30434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30435 cat >>confdefs.h <<_ACEOF
30436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30444 if test $ac_cv_header_sasl_sasl_h = yes ||
30445 test $ac_cv_header_sasl_h = yes; then
30446 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30447 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30448 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30451 ac_check_lib_save_LIBS=$LIBS
30452 LIBS="-lsasl2 $LIBS"
30453 cat >conftest.$ac_ext <<_ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30460 /* Override any GCC internal prototype to avoid an error.
30461 Use char because int might match the return type of a GCC
30462 builtin and then its argument prototype would still apply. */
30466 char sasl_client_init ();
30470 return sasl_client_init ();
30475 rm -f conftest.$ac_objext conftest$ac_exeext
30476 if { (ac_try="$ac_link"
30477 case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482 (eval "$ac_link") 2>conftest.er1
30484 grep -v '^ *+' conftest.er1 >conftest.err
30486 cat conftest.err >&5
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); } && {
30489 test -z "$ac_c_werror_flag" ||
30490 test ! -s conftest.err
30491 } && test -s conftest$ac_exeext &&
30492 $as_test_x conftest$ac_exeext; then
30493 ac_cv_lib_sasl2_sasl_client_init=yes
30495 echo "$as_me: failed program was:" >&5
30496 sed 's/^/| /' conftest.$ac_ext >&5
30498 ac_cv_lib_sasl2_sasl_client_init=no
30501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30502 conftest$ac_exeext conftest.$ac_ext
30503 LIBS=$ac_check_lib_save_LIBS
30505 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30506 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30507 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30508 ol_link_sasl="-lsasl2"
30510 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30511 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30512 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30515 ac_check_lib_save_LIBS=$LIBS
30516 LIBS="-lsasl $LIBS"
30517 cat >conftest.$ac_ext <<_ACEOF
30520 cat confdefs.h >>conftest.$ac_ext
30521 cat >>conftest.$ac_ext <<_ACEOF
30522 /* end confdefs.h. */
30524 /* Override any GCC internal prototype to avoid an error.
30525 Use char because int might match the return type of a GCC
30526 builtin and then its argument prototype would still apply. */
30530 char sasl_client_init ();
30534 return sasl_client_init ();
30539 rm -f conftest.$ac_objext conftest$ac_exeext
30540 if { (ac_try="$ac_link"
30541 case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_link") 2>conftest.er1
30548 grep -v '^ *+' conftest.er1 >conftest.err
30550 cat conftest.err >&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } && {
30553 test -z "$ac_c_werror_flag" ||
30554 test ! -s conftest.err
30555 } && test -s conftest$ac_exeext &&
30556 $as_test_x conftest$ac_exeext; then
30557 ac_cv_lib_sasl_sasl_client_init=yes
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_cv_lib_sasl_sasl_client_init=no
30565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30566 conftest$ac_exeext conftest.$ac_ext
30567 LIBS=$ac_check_lib_save_LIBS
30569 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30570 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30571 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30572 ol_link_sasl="-lsasl"
30579 if test $ol_link_sasl = no ; then
30580 if test $ol_with_cyrus_sasl != auto ; then
30581 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30582 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30583 { (exit 1); exit 1; }; }
30585 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30586 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30588 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30589 if test $ol_link_tls = no ; then
30590 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30591 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30595 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30596 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30597 if test "${ol_cv_sasl_compat+set}" = set; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30601 cat >conftest.$ac_ext <<_ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h. */
30608 #ifdef HAVE_SASL_SASL_H
30609 #include <sasl/sasl.h>
30614 /* Require 2.1.15+ */
30615 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30616 char *__sasl_compat = "2.2+ or better okay (we guess)";
30617 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30618 && SASL_VERSION_STEP >=15
30619 char *__sasl_compat = "2.1.15+ or better okay";
30623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30624 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30625 ol_cv_sasl_compat=yes
30627 ol_cv_sasl_compat=no
30632 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30633 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30635 if test $ol_cv_sasl_compat = no ; then
30637 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30638 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30639 { (exit 1); exit 1; }; }
30643 cat >>confdefs.h <<\_ACEOF
30644 #define HAVE_CYRUS_SASL 1
30647 SASL_LIBS="$ol_link_sasl"
30648 if test $ol_enable_spasswd != no ; then
30649 ol_link_spasswd=yes
30652 ac_save_LIBS="$LIBS"
30653 LIBS="$LIBS $ol_link_sasl"
30654 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30655 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30656 if test "${ac_cv_func_sasl_version+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30659 cat >conftest.$ac_ext <<_ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h. */
30665 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30667 #define sasl_version innocuous_sasl_version
30669 /* System header to define __stub macros and hopefully few prototypes,
30670 which can conflict with char sasl_version (); below.
30671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30672 <limits.h> exists even on freestanding compilers. */
30675 # include <limits.h>
30677 # include <assert.h>
30680 #undef sasl_version
30682 /* Override any GCC internal prototype to avoid an error.
30683 Use char because int might match the return type of a GCC
30684 builtin and then its argument prototype would still apply. */
30688 char sasl_version ();
30689 /* The GNU C library defines this for functions which it implements
30690 to always fail with ENOSYS. Some functions are actually named
30691 something starting with __ and the normal name is an alias. */
30692 #if defined __stub_sasl_version || defined __stub___sasl_version
30699 return sasl_version ();
30704 rm -f conftest.$ac_objext conftest$ac_exeext
30705 if { (ac_try="$ac_link"
30706 case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_link") 2>conftest.er1
30713 grep -v '^ *+' conftest.er1 >conftest.err
30715 cat conftest.err >&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); } && {
30718 test -z "$ac_c_werror_flag" ||
30719 test ! -s conftest.err
30720 } && test -s conftest$ac_exeext &&
30721 $as_test_x conftest$ac_exeext; then
30722 ac_cv_func_sasl_version=yes
30724 echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30727 ac_cv_func_sasl_version=no
30730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30731 conftest$ac_exeext conftest.$ac_ext
30733 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30734 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30735 if test $ac_cv_func_sasl_version = yes; then
30737 cat >>confdefs.h <<\_ACEOF
30738 #define HAVE_SASL_VERSION 1
30743 LIBS="$ac_save_LIBS"
30749 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30750 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30751 if test $ol_link_tls = no ; then
30752 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30753 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30757 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30759 if test -r /dev/urandom ; then
30760 dev="/dev/urandom";
30761 elif test -r /idev/urandom ; then
30762 dev="/idev/urandom";
30763 elif test -r /dev/srandom ; then
30764 dev="/dev/srandom";
30765 elif test -r /dev/random ; then
30767 elif test -r /idev/random ; then
30768 dev="/idev/random";
30771 if test $dev != no ; then
30773 cat >>confdefs.h <<_ACEOF
30774 #define URANDOM_DEVICE "$dev"
30781 if test $ol_with_fetch != no ; then
30783 LIBS="-lfetch -lcom_err $LIBS"
30784 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30785 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30786 if test "${ol_cv_lib_fetch+set}" = set; then
30787 echo $ECHO_N "(cached) $ECHO_C" >&6
30790 cat >conftest.$ac_ext <<_ACEOF
30793 cat confdefs.h >>conftest.$ac_ext
30794 cat >>conftest.$ac_ext <<_ACEOF
30795 /* end confdefs.h. */
30797 #ifdef HAVE_SYS_PARAM_H
30798 #include <sys/param.h>
30805 struct url *u = fetchParseURL("file:///");
30810 rm -f conftest.$ac_objext conftest$ac_exeext
30811 if { (ac_try="$ac_link"
30812 case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_link") 2>conftest.er1
30819 grep -v '^ *+' conftest.er1 >conftest.err
30821 cat conftest.err >&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } && {
30824 test -z "$ac_c_werror_flag" ||
30825 test ! -s conftest.err
30826 } && test -s conftest$ac_exeext &&
30827 $as_test_x conftest$ac_exeext; then
30828 ol_cv_lib_fetch=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30837 conftest$ac_exeext conftest.$ac_ext
30839 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30840 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30842 if test $ol_cv_lib_fetch != no ; then
30843 ol_link_fetch="-lfetch -lcom_err"
30845 cat >>confdefs.h <<\_ACEOF
30846 #define HAVE_FETCH 1
30852 if test $ol_cv_lib_fetch != no ; then
30853 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30854 ol_link_fetch=freebsd
30856 elif test $ol_with_fetch != auto ; then
30857 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30858 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30859 { (exit 1); exit 1; }; }
30863 if test $ol_enable_crypt != no ; then
30865 LIBS="$TLS_LIBS $LIBS"
30867 { echo "$as_me:$LINENO: checking for crypt" >&5
30868 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30869 if test "${ac_cv_func_crypt+set}" = set; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30880 #define crypt innocuous_crypt
30882 /* System header to define __stub macros and hopefully few prototypes,
30883 which can conflict with char crypt (); below.
30884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885 <limits.h> exists even on freestanding compilers. */
30888 # include <limits.h>
30890 # include <assert.h>
30895 /* Override any GCC internal prototype to avoid an error.
30896 Use char because int might match the return type of a GCC
30897 builtin and then its argument prototype would still apply. */
30902 /* The GNU C library defines this for functions which it implements
30903 to always fail with ENOSYS. Some functions are actually named
30904 something starting with __ and the normal name is an alias. */
30905 #if defined __stub_crypt || defined __stub___crypt
30917 rm -f conftest.$ac_objext conftest$ac_exeext
30918 if { (ac_try="$ac_link"
30919 case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_link") 2>conftest.er1
30926 grep -v '^ *+' conftest.er1 >conftest.err
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } && {
30931 test -z "$ac_c_werror_flag" ||
30932 test ! -s conftest.err
30933 } && test -s conftest$ac_exeext &&
30934 $as_test_x conftest$ac_exeext; then
30935 ac_cv_func_crypt=yes
30937 echo "$as_me: failed program was:" >&5
30938 sed 's/^/| /' conftest.$ac_ext >&5
30940 ac_cv_func_crypt=no
30943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30944 conftest$ac_exeext conftest.$ac_ext
30946 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30947 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30948 if test $ac_cv_func_crypt = yes; then
30953 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30954 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30955 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30958 ac_check_lib_save_LIBS=$LIBS
30959 LIBS="-lcrypt $LIBS"
30960 cat >conftest.$ac_ext <<_ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h. */
30967 /* Override any GCC internal prototype to avoid an error.
30968 Use char because int might match the return type of a GCC
30969 builtin and then its argument prototype would still apply. */
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (ac_try="$ac_link"
30984 case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_link") 2>conftest.er1
30991 grep -v '^ *+' conftest.er1 >conftest.err
30993 cat conftest.err >&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } && {
30996 test -z "$ac_c_werror_flag" ||
30997 test ! -s conftest.err
30998 } && test -s conftest$ac_exeext &&
30999 $as_test_x conftest$ac_exeext; then
31000 ac_cv_lib_crypt_crypt=yes
31002 echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31005 ac_cv_lib_crypt_crypt=no
31008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31009 conftest$ac_exeext conftest.$ac_ext
31010 LIBS=$ac_check_lib_save_LIBS
31012 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31013 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31014 if test $ac_cv_lib_crypt_crypt = yes; then
31015 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31026 if test $have_crypt = yes ; then
31028 cat >>confdefs.h <<\_ACEOF
31029 #define HAVE_CRYPT 1
31033 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31034 echo "$as_me: WARNING: could not find crypt" >&2;}
31035 if test $ol_enable_crypt = yes ; then
31036 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31037 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31038 { (exit 1); exit 1; }; }
31041 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31042 echo "$as_me: WARNING: disabling crypt support" >&2;}
31047 if test $ol_enable_proctitle != no ; then
31048 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31049 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31050 if test "${ac_cv_func_setproctitle+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 cat >conftest.$ac_ext <<_ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h. */
31059 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31061 #define setproctitle innocuous_setproctitle
31063 /* System header to define __stub macros and hopefully few prototypes,
31064 which can conflict with char setproctitle (); below.
31065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31066 <limits.h> exists even on freestanding compilers. */
31069 # include <limits.h>
31071 # include <assert.h>
31074 #undef setproctitle
31076 /* Override any GCC internal prototype to avoid an error.
31077 Use char because int might match the return type of a GCC
31078 builtin and then its argument prototype would still apply. */
31082 char setproctitle ();
31083 /* The GNU C library defines this for functions which it implements
31084 to always fail with ENOSYS. Some functions are actually named
31085 something starting with __ and the normal name is an alias. */
31086 #if defined __stub_setproctitle || defined __stub___setproctitle
31093 return setproctitle ();
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (ac_try="$ac_link"
31100 case "(($ac_try" in
31101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31102 *) ac_try_echo=$ac_try;;
31104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31105 (eval "$ac_link") 2>conftest.er1
31107 grep -v '^ *+' conftest.er1 >conftest.err
31109 cat conftest.err >&5
31110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111 (exit $ac_status); } && {
31112 test -z "$ac_c_werror_flag" ||
31113 test ! -s conftest.err
31114 } && test -s conftest$ac_exeext &&
31115 $as_test_x conftest$ac_exeext; then
31116 ac_cv_func_setproctitle=yes
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31121 ac_cv_func_setproctitle=no
31124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31125 conftest$ac_exeext conftest.$ac_ext
31127 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31128 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31129 if test $ac_cv_func_setproctitle = yes; then
31130 have_setproctitle=yes
31133 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31134 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31135 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31136 echo $ECHO_N "(cached) $ECHO_C" >&6
31138 ac_check_lib_save_LIBS=$LIBS
31139 LIBS="-lutil $LIBS"
31140 cat >conftest.$ac_ext <<_ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h. */
31147 /* Override any GCC internal prototype to avoid an error.
31148 Use char because int might match the return type of a GCC
31149 builtin and then its argument prototype would still apply. */
31153 char setproctitle ();
31157 return setproctitle ();
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_link") 2>conftest.er1
31171 grep -v '^ *+' conftest.er1 >conftest.err
31173 cat conftest.err >&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } && {
31176 test -z "$ac_c_werror_flag" ||
31177 test ! -s conftest.err
31178 } && test -s conftest$ac_exeext &&
31179 $as_test_x conftest$ac_exeext; then
31180 ac_cv_lib_util_setproctitle=yes
31182 echo "$as_me: failed program was:" >&5
31183 sed 's/^/| /' conftest.$ac_ext >&5
31185 ac_cv_lib_util_setproctitle=no
31188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31189 conftest$ac_exeext conftest.$ac_ext
31190 LIBS=$ac_check_lib_save_LIBS
31192 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31193 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31194 if test $ac_cv_lib_util_setproctitle = yes; then
31195 have_setproctitle=yes
31196 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31198 have_setproctitle=no
31199 case " $LIBOBJS " in
31200 *" setproctitle.$ac_objext "* ) ;;
31201 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31205 LIBSRCS="$LIBSRCS setproctitle.c"
31211 if test $have_setproctitle = yes ; then
31213 cat >>confdefs.h <<\_ACEOF
31214 #define HAVE_SETPROCTITLE 1
31220 if test $ol_enable_slp != no ; then
31222 for ac_header in slp.h
31224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 ac_res=`eval echo '${'$as_ac_Header'}'`
31232 { echo "$as_me:$LINENO: result: $ac_res" >&5
31233 echo "${ECHO_T}$ac_res" >&6; }
31235 # Is the header compilable?
31236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31238 cat >conftest.$ac_ext <<_ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h. */
31244 $ac_includes_default
31245 #include <$ac_header>
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_compile") 2>conftest.er1
31256 grep -v '^ *+' conftest.er1 >conftest.err
31258 cat conftest.err >&5
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } && {
31261 test -z "$ac_c_werror_flag" ||
31262 test ! -s conftest.err
31263 } && test -s conftest.$ac_objext; then
31264 ac_header_compiler=yes
31266 echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31269 ac_header_compiler=no
31272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31274 echo "${ECHO_T}$ac_header_compiler" >&6; }
31276 # Is the header present?
31277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <$ac_header>
31287 if { (ac_try="$ac_cpp conftest.$ac_ext"
31288 case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31295 grep -v '^ *+' conftest.er1 >conftest.err
31297 cat conftest.err >&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); } >/dev/null && {
31300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31301 test ! -s conftest.err
31303 ac_header_preproc=yes
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308 ac_header_preproc=no
31311 rm -f conftest.err conftest.$ac_ext
31312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31313 echo "${ECHO_T}$ac_header_preproc" >&6; }
31315 # So? What about this header?
31316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31322 ac_header_preproc=yes
31325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31338 ## --------------------------------------------- ##
31339 ## Report this to <http://www.openldap.org/its/> ##
31340 ## --------------------------------------------- ##
31342 ) | sed "s/^/$as_me: WARNING: /" >&2
31345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 eval "$as_ac_Header=\$ac_header_preproc"
31352 ac_res=`eval echo '${'$as_ac_Header'}'`
31353 { echo "$as_me:$LINENO: result: $ac_res" >&5
31354 echo "${ECHO_T}$ac_res" >&6; }
31357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31358 cat >>confdefs.h <<_ACEOF
31359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31367 if test $ac_cv_header_slp_h = yes ; then
31368 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31369 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31370 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31371 echo $ECHO_N "(cached) $ECHO_C" >&6
31373 ac_check_lib_save_LIBS=$LIBS
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31382 /* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (ac_try="$ac_link"
31399 case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_link") 2>conftest.er1
31406 grep -v '^ *+' conftest.er1 >conftest.err
31408 cat conftest.err >&5
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); } && {
31411 test -z "$ac_c_werror_flag" ||
31412 test ! -s conftest.err
31413 } && test -s conftest$ac_exeext &&
31414 $as_test_x conftest$ac_exeext; then
31415 ac_cv_lib_slp_SLPOpen=yes
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_cv_lib_slp_SLPOpen=no
31423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31424 conftest$ac_exeext conftest.$ac_ext
31425 LIBS=$ac_check_lib_save_LIBS
31427 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31428 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31429 if test $ac_cv_lib_slp_SLPOpen = yes; then
31435 if test $have_slp = yes ; then
31437 cat >>confdefs.h <<\_ACEOF
31441 SLAPD_SLP_LIBS=-lslp
31444 elif test $ol_enable_slp = yes ; then
31445 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31446 echo "$as_me: error: SLP not found" >&2;}
31447 { (exit 1); exit 1; }; }
31452 { echo "$as_me:$LINENO: checking for mode_t" >&5
31453 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31454 if test "${ac_cv_type_mode_t+set}" = set; then
31455 echo $ECHO_N "(cached) $ECHO_C" >&6
31457 cat >conftest.$ac_ext <<_ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h. */
31463 $ac_includes_default
31464 typedef mode_t ac__type_new_;
31468 if ((ac__type_new_ *) 0)
31470 if (sizeof (ac__type_new_))
31476 rm -f conftest.$ac_objext
31477 if { (ac_try="$ac_compile"
31478 case "(($ac_try" in
31479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_compile") 2>conftest.er1
31485 grep -v '^ *+' conftest.er1 >conftest.err
31487 cat conftest.err >&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } && {
31490 test -z "$ac_c_werror_flag" ||
31491 test ! -s conftest.err
31492 } && test -s conftest.$ac_objext; then
31493 ac_cv_type_mode_t=yes
31495 echo "$as_me: failed program was:" >&5
31496 sed 's/^/| /' conftest.$ac_ext >&5
31498 ac_cv_type_mode_t=no
31501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31503 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31504 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31505 if test $ac_cv_type_mode_t = yes; then
31509 cat >>confdefs.h <<_ACEOF
31515 { echo "$as_me:$LINENO: checking for off_t" >&5
31516 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31517 if test "${ac_cv_type_off_t+set}" = set; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31520 cat >conftest.$ac_ext <<_ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 $ac_includes_default
31527 typedef off_t ac__type_new_;
31531 if ((ac__type_new_ *) 0)
31533 if (sizeof (ac__type_new_))
31539 rm -f conftest.$ac_objext
31540 if { (ac_try="$ac_compile"
31541 case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_compile") 2>conftest.er1
31548 grep -v '^ *+' conftest.er1 >conftest.err
31550 cat conftest.err >&5
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } && {
31553 test -z "$ac_c_werror_flag" ||
31554 test ! -s conftest.err
31555 } && test -s conftest.$ac_objext; then
31556 ac_cv_type_off_t=yes
31558 echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31561 ac_cv_type_off_t=no
31564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31566 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31567 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31568 if test $ac_cv_type_off_t = yes; then
31572 cat >>confdefs.h <<_ACEOF
31578 { echo "$as_me:$LINENO: checking for pid_t" >&5
31579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31580 if test "${ac_cv_type_pid_t+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31583 cat >conftest.$ac_ext <<_ACEOF
31586 cat confdefs.h >>conftest.$ac_ext
31587 cat >>conftest.$ac_ext <<_ACEOF
31588 /* end confdefs.h. */
31589 $ac_includes_default
31590 typedef pid_t ac__type_new_;
31594 if ((ac__type_new_ *) 0)
31596 if (sizeof (ac__type_new_))
31602 rm -f conftest.$ac_objext
31603 if { (ac_try="$ac_compile"
31604 case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_compile") 2>conftest.er1
31611 grep -v '^ *+' conftest.er1 >conftest.err
31613 cat conftest.err >&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } && {
31616 test -z "$ac_c_werror_flag" ||
31617 test ! -s conftest.err
31618 } && test -s conftest.$ac_objext; then
31619 ac_cv_type_pid_t=yes
31621 echo "$as_me: failed program was:" >&5
31622 sed 's/^/| /' conftest.$ac_ext >&5
31624 ac_cv_type_pid_t=no
31627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31629 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31631 if test $ac_cv_type_pid_t = yes; then
31635 cat >>confdefs.h <<_ACEOF
31641 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31642 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31643 if test "${ac_cv_type_ssize_t+set}" = set; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31646 cat >conftest.$ac_ext <<_ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h. */
31652 $ac_includes_default
31653 typedef ssize_t ac__type_new_;
31657 if ((ac__type_new_ *) 0)
31659 if (sizeof (ac__type_new_))
31665 rm -f conftest.$ac_objext
31666 if { (ac_try="$ac_compile"
31667 case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_compile") 2>conftest.er1
31674 grep -v '^ *+' conftest.er1 >conftest.err
31676 cat conftest.err >&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); } && {
31679 test -z "$ac_c_werror_flag" ||
31680 test ! -s conftest.err
31681 } && test -s conftest.$ac_objext; then
31682 ac_cv_type_ssize_t=yes
31684 echo "$as_me: failed program was:" >&5
31685 sed 's/^/| /' conftest.$ac_ext >&5
31687 ac_cv_type_ssize_t=no
31690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31692 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31693 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31694 if test $ac_cv_type_ssize_t = yes; then
31698 cat >>confdefs.h <<_ACEOF
31699 #define ssize_t signed int
31704 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31705 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31706 if test "${ac_cv_type_caddr_t+set}" = set; then
31707 echo $ECHO_N "(cached) $ECHO_C" >&6
31709 cat >conftest.$ac_ext <<_ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h. */
31715 $ac_includes_default
31716 typedef caddr_t ac__type_new_;
31720 if ((ac__type_new_ *) 0)
31722 if (sizeof (ac__type_new_))
31728 rm -f conftest.$ac_objext
31729 if { (ac_try="$ac_compile"
31730 case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_compile") 2>conftest.er1
31737 grep -v '^ *+' conftest.er1 >conftest.err
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } && {
31742 test -z "$ac_c_werror_flag" ||
31743 test ! -s conftest.err
31744 } && test -s conftest.$ac_objext; then
31745 ac_cv_type_caddr_t=yes
31747 echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31750 ac_cv_type_caddr_t=no
31753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31755 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31756 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31757 if test $ac_cv_type_caddr_t = yes; then
31761 cat >>confdefs.h <<_ACEOF
31762 #define caddr_t char *
31767 { echo "$as_me:$LINENO: checking for size_t" >&5
31768 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31769 if test "${ac_cv_type_size_t+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31772 cat >conftest.$ac_ext <<_ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h. */
31778 $ac_includes_default
31779 typedef size_t ac__type_new_;
31783 if ((ac__type_new_ *) 0)
31785 if (sizeof (ac__type_new_))
31791 rm -f conftest.$ac_objext
31792 if { (ac_try="$ac_compile"
31793 case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_compile") 2>conftest.er1
31800 grep -v '^ *+' conftest.er1 >conftest.err
31802 cat conftest.err >&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } && {
31805 test -z "$ac_c_werror_flag" ||
31806 test ! -s conftest.err
31807 } && test -s conftest.$ac_objext; then
31808 ac_cv_type_size_t=yes
31810 echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31813 ac_cv_type_size_t=no
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31818 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31819 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31820 if test $ac_cv_type_size_t = yes; then
31824 cat >>confdefs.h <<_ACEOF
31825 #define size_t unsigned
31831 { echo "$as_me:$LINENO: checking for long long" >&5
31832 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31833 if test "${ac_cv_type_long_long+set}" = set; then
31834 echo $ECHO_N "(cached) $ECHO_C" >&6
31836 cat >conftest.$ac_ext <<_ACEOF
31839 cat confdefs.h >>conftest.$ac_ext
31840 cat >>conftest.$ac_ext <<_ACEOF
31841 /* end confdefs.h. */
31842 $ac_includes_default
31843 typedef long long ac__type_new_;
31847 if ((ac__type_new_ *) 0)
31849 if (sizeof (ac__type_new_))
31855 rm -f conftest.$ac_objext
31856 if { (ac_try="$ac_compile"
31857 case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_compile") 2>conftest.er1
31864 grep -v '^ *+' conftest.er1 >conftest.err
31866 cat conftest.err >&5
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); } && {
31869 test -z "$ac_c_werror_flag" ||
31870 test ! -s conftest.err
31871 } && test -s conftest.$ac_objext; then
31872 ac_cv_type_long_long=yes
31874 echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31877 ac_cv_type_long_long=no
31880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31882 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31883 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31884 if test $ac_cv_type_long_long = yes; then
31886 cat >>confdefs.h <<_ACEOF
31887 #define HAVE_LONG_LONG 1
31893 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31894 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31895 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31896 echo $ECHO_N "(cached) $ECHO_C" >&6
31898 cat >conftest.$ac_ext <<_ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 $ac_includes_default
31905 typedef ptrdiff_t ac__type_new_;
31909 if ((ac__type_new_ *) 0)
31911 if (sizeof (ac__type_new_))
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_compile") 2>conftest.er1
31926 grep -v '^ *+' conftest.er1 >conftest.err
31928 cat conftest.err >&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } && {
31931 test -z "$ac_c_werror_flag" ||
31932 test ! -s conftest.err
31933 } && test -s conftest.$ac_objext; then
31934 ac_cv_type_ptrdiff_t=yes
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ac_cv_type_ptrdiff_t=no
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31944 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31945 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31946 if test $ac_cv_type_ptrdiff_t = yes; then
31948 cat >>confdefs.h <<_ACEOF
31949 #define HAVE_PTRDIFF_T 1
31957 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31958 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31959 if test "${ac_cv_type_socklen_t+set}" = set; then
31960 echo $ECHO_N "(cached) $ECHO_C" >&6
31962 cat >conftest.$ac_ext <<_ACEOF
31965 cat confdefs.h >>conftest.$ac_ext
31966 cat >>conftest.$ac_ext <<_ACEOF
31967 /* end confdefs.h. */
31968 $ac_includes_default
31969 #ifdef HAVE_SYS_SOCKET_H
31970 #include <sys/socket.h>
31973 typedef socklen_t ac__type_new_;
31977 if ((ac__type_new_ *) 0)
31979 if (sizeof (ac__type_new_))
31985 rm -f conftest.$ac_objext
31986 if { (ac_try="$ac_compile"
31987 case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_compile") 2>conftest.er1
31994 grep -v '^ *+' conftest.er1 >conftest.err
31996 cat conftest.err >&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } && {
31999 test -z "$ac_c_werror_flag" ||
32000 test ! -s conftest.err
32001 } && test -s conftest.$ac_objext; then
32002 ac_cv_type_socklen_t=yes
32004 echo "$as_me: failed program was:" >&5
32005 sed 's/^/| /' conftest.$ac_ext >&5
32007 ac_cv_type_socklen_t=no
32010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32012 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32013 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32016 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32017 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32018 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32022 set socklen_t int unsigned "unsigned long" long size_t
32023 test "$ac_cv_type_socklen_t" = yes || shift
32024 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32025 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32026 cat >conftest.$ac_ext <<_ACEOF
32029 cat confdefs.h >>conftest.$ac_ext
32030 cat >>conftest.$ac_ext <<_ACEOF
32031 /* end confdefs.h. */
32032 $ac_includes_default
32033 #ifdef HAVE_SYS_SOCKET_H
32034 #include <sys/socket.h>
32036 extern int accept(int s, $addrtype *ap, $lentype *lp);
32042 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32048 rm -f conftest.$ac_objext
32049 if { (ac_try="$ac_compile"
32050 case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_compile") 2>conftest.er1
32057 grep -v '^ *+' conftest.er1 >conftest.err
32059 cat conftest.err >&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); } && {
32062 test -z "$ac_c_werror_flag" ||
32063 test ! -s conftest.err
32064 } && test -s conftest.$ac_objext; then
32065 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32067 echo "$as_me: failed program was:" >&5
32068 sed 's/^/| /' conftest.$ac_ext >&5
32073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32077 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32078 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32080 cat >>confdefs.h <<_ACEOF
32081 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32085 if test "$ac_cv_type_socklen_t" != yes; then
32087 cat >>confdefs.h <<_ACEOF
32088 #define socklen_t $ol_cv_type_ber_socklen_t
32094 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32095 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32096 if test "${ac_cv_type_signal+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 cat >conftest.$ac_ext <<_ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 #include <sys/types.h>
32106 #include <signal.h>
32111 return *(signal (0, 0)) (0) == 1;
32116 rm -f conftest.$ac_objext
32117 if { (ac_try="$ac_compile"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_compile") 2>conftest.er1
32125 grep -v '^ *+' conftest.er1 >conftest.err
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } && {
32130 test -z "$ac_c_werror_flag" ||
32131 test ! -s conftest.err
32132 } && test -s conftest.$ac_objext; then
32133 ac_cv_type_signal=int
32135 echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32138 ac_cv_type_signal=void
32141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32143 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32144 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32146 cat >>confdefs.h <<_ACEOF
32147 #define RETSIGTYPE $ac_cv_type_signal
32152 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32153 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32154 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32155 echo $ECHO_N "(cached) $ECHO_C" >&6
32157 cat >conftest.$ac_ext <<_ACEOF
32160 cat confdefs.h >>conftest.$ac_ext
32161 cat >>conftest.$ac_ext <<_ACEOF
32162 /* end confdefs.h. */
32163 $ac_includes_default
32164 #include <signal.h>
32167 typedef sig_atomic_t ac__type_new_;
32171 if ((ac__type_new_ *) 0)
32173 if (sizeof (ac__type_new_))
32179 rm -f conftest.$ac_objext
32180 if { (ac_try="$ac_compile"
32181 case "(($ac_try" in
32182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32183 *) ac_try_echo=$ac_try;;
32185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32186 (eval "$ac_compile") 2>conftest.er1
32188 grep -v '^ *+' conftest.er1 >conftest.err
32190 cat conftest.err >&5
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); } && {
32193 test -z "$ac_c_werror_flag" ||
32194 test ! -s conftest.err
32195 } && test -s conftest.$ac_objext; then
32196 ac_cv_type_sig_atomic_t=yes
32198 echo "$as_me: failed program was:" >&5
32199 sed 's/^/| /' conftest.$ac_ext >&5
32201 ac_cv_type_sig_atomic_t=no
32204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32207 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32208 if test $ac_cv_type_sig_atomic_t = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213 #define sig_atomic_t int
32219 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32220 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32221 if test "${ac_cv_type_uid_t+set}" = set; then
32222 echo $ECHO_N "(cached) $ECHO_C" >&6
32224 cat >conftest.$ac_ext <<_ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h. */
32230 #include <sys/types.h>
32233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32234 $EGREP "uid_t" >/dev/null 2>&1; then
32235 ac_cv_type_uid_t=yes
32237 ac_cv_type_uid_t=no
32242 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32243 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32244 if test $ac_cv_type_uid_t = no; then
32246 cat >>confdefs.h <<\_ACEOF
32251 cat >>confdefs.h <<\_ACEOF
32258 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32259 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32260 if test "${ac_cv_header_time+set}" = set; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32263 cat >conftest.$ac_ext <<_ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h. */
32269 #include <sys/types.h>
32270 #include <sys/time.h>
32276 if ((struct tm *) 0)
32282 rm -f conftest.$ac_objext
32283 if { (ac_try="$ac_compile"
32284 case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_compile") 2>conftest.er1
32291 grep -v '^ *+' conftest.er1 >conftest.err
32293 cat conftest.err >&5
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); } && {
32296 test -z "$ac_c_werror_flag" ||
32297 test ! -s conftest.err
32298 } && test -s conftest.$ac_objext; then
32299 ac_cv_header_time=yes
32301 echo "$as_me: failed program was:" >&5
32302 sed 's/^/| /' conftest.$ac_ext >&5
32304 ac_cv_header_time=no
32307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32310 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32311 if test $ac_cv_header_time = yes; then
32313 cat >>confdefs.h <<\_ACEOF
32314 #define TIME_WITH_SYS_TIME 1
32319 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32320 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32321 if test "${ac_cv_struct_tm+set}" = set; then
32322 echo $ECHO_N "(cached) $ECHO_C" >&6
32324 cat >conftest.$ac_ext <<_ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h. */
32330 #include <sys/types.h>
32337 int *p = &tm.tm_sec;
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
32352 grep -v '^ *+' conftest.er1 >conftest.err
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } && {
32357 test -z "$ac_c_werror_flag" ||
32358 test ! -s conftest.err
32359 } && test -s conftest.$ac_objext; then
32360 ac_cv_struct_tm=time.h
32362 echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32365 ac_cv_struct_tm=sys/time.h
32368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32370 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32371 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32372 if test $ac_cv_struct_tm = sys/time.h; then
32374 cat >>confdefs.h <<\_ACEOF
32375 #define TM_IN_SYS_TIME 1
32380 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32381 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32382 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32383 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32391 $ac_includes_default
32395 static struct stat ac_aggr;
32396 if (ac_aggr.st_blksize)
32402 rm -f conftest.$ac_objext
32403 if { (ac_try="$ac_compile"
32404 case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_compile") 2>conftest.er1
32411 grep -v '^ *+' conftest.er1 >conftest.err
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } && {
32416 test -z "$ac_c_werror_flag" ||
32417 test ! -s conftest.err
32418 } && test -s conftest.$ac_objext; then
32419 ac_cv_member_struct_stat_st_blksize=yes
32421 echo "$as_me: failed program was:" >&5
32422 sed 's/^/| /' conftest.$ac_ext >&5
32424 cat >conftest.$ac_ext <<_ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h. */
32430 $ac_includes_default
32434 static struct stat ac_aggr;
32435 if (sizeof ac_aggr.st_blksize)
32441 rm -f conftest.$ac_objext
32442 if { (ac_try="$ac_compile"
32443 case "(($ac_try" in
32444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_compile") 2>conftest.er1
32450 grep -v '^ *+' conftest.er1 >conftest.err
32452 cat conftest.err >&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } && {
32455 test -z "$ac_c_werror_flag" ||
32456 test ! -s conftest.err
32457 } && test -s conftest.$ac_objext; then
32458 ac_cv_member_struct_stat_st_blksize=yes
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32463 ac_cv_member_struct_stat_st_blksize=no
32466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32471 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32472 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32473 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32475 cat >>confdefs.h <<_ACEOF
32476 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32482 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32483 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32484 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32493 $ac_includes_default
32499 static struct passwd ac_aggr;
32500 if (ac_aggr.pw_gecos)
32506 rm -f conftest.$ac_objext
32507 if { (ac_try="$ac_compile"
32508 case "(($ac_try" in
32509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510 *) ac_try_echo=$ac_try;;
32512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513 (eval "$ac_compile") 2>conftest.er1
32515 grep -v '^ *+' conftest.er1 >conftest.err
32517 cat conftest.err >&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); } && {
32520 test -z "$ac_c_werror_flag" ||
32521 test ! -s conftest.err
32522 } && test -s conftest.$ac_objext; then
32523 ac_cv_member_struct_passwd_pw_gecos=yes
32525 echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32528 cat >conftest.$ac_ext <<_ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h. */
32534 $ac_includes_default
32540 static struct passwd ac_aggr;
32541 if (sizeof ac_aggr.pw_gecos)
32547 rm -f conftest.$ac_objext
32548 if { (ac_try="$ac_compile"
32549 case "(($ac_try" in
32550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32551 *) ac_try_echo=$ac_try;;
32553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32554 (eval "$ac_compile") 2>conftest.er1
32556 grep -v '^ *+' conftest.er1 >conftest.err
32558 cat conftest.err >&5
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); } && {
32561 test -z "$ac_c_werror_flag" ||
32562 test ! -s conftest.err
32563 } && test -s conftest.$ac_objext; then
32564 ac_cv_member_struct_passwd_pw_gecos=yes
32566 echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32569 ac_cv_member_struct_passwd_pw_gecos=no
32572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32577 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32578 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32579 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32581 cat >>confdefs.h <<_ACEOF
32582 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32588 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32589 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32590 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32591 echo $ECHO_N "(cached) $ECHO_C" >&6
32593 cat >conftest.$ac_ext <<_ACEOF
32596 cat confdefs.h >>conftest.$ac_ext
32597 cat >>conftest.$ac_ext <<_ACEOF
32598 /* end confdefs.h. */
32599 $ac_includes_default
32605 static struct passwd ac_aggr;
32606 if (ac_aggr.pw_passwd)
32612 rm -f conftest.$ac_objext
32613 if { (ac_try="$ac_compile"
32614 case "(($ac_try" in
32615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616 *) ac_try_echo=$ac_try;;
32618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619 (eval "$ac_compile") 2>conftest.er1
32621 grep -v '^ *+' conftest.er1 >conftest.err
32623 cat conftest.err >&5
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); } && {
32626 test -z "$ac_c_werror_flag" ||
32627 test ! -s conftest.err
32628 } && test -s conftest.$ac_objext; then
32629 ac_cv_member_struct_passwd_pw_passwd=yes
32631 echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 $ac_includes_default
32646 static struct passwd ac_aggr;
32647 if (sizeof ac_aggr.pw_passwd)
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
32662 grep -v '^ *+' conftest.er1 >conftest.err
32664 cat conftest.err >&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } && {
32667 test -z "$ac_c_werror_flag" ||
32668 test ! -s conftest.err
32669 } && test -s conftest.$ac_objext; then
32670 ac_cv_member_struct_passwd_pw_passwd=yes
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32675 ac_cv_member_struct_passwd_pw_passwd=no
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32684 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32685 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32687 cat >>confdefs.h <<_ACEOF
32688 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32695 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32696 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32697 if test "${ol_cv_c_upper_lower+set}" = set; then
32698 echo $ECHO_N "(cached) $ECHO_C" >&6
32701 if test "$cross_compiling" = yes; then
32702 ol_cv_c_upper_lower=safe
32704 cat >conftest.$ac_ext <<_ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h. */
32714 if ('C' == toupper('C'))
32720 rm -f conftest$ac_exeext
32721 if { (ac_try="$ac_link"
32722 case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_link") 2>&5
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ol_cv_c_upper_lower=no
32742 echo "$as_me: program exited with status $ac_status" >&5
32743 echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32746 ( exit $ac_status )
32747 ol_cv_c_upper_lower=yes
32749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32754 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32755 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32756 if test $ol_cv_c_upper_lower != no ; then
32758 cat >>confdefs.h <<\_ACEOF
32759 #define C_UPPER_LOWER 1
32764 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32765 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32766 if test "${ac_cv_c_const+set}" = set; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32779 /* FIXME: Include the comments suggested by Paul. */
32780 #ifndef __cplusplus
32781 /* Ultrix mips cc rejects this. */
32782 typedef int charset[2];
32784 /* SunOS 4.1.1 cc rejects this. */
32785 char const *const *pcpcc;
32787 /* NEC SVR4.0.2 mips cc rejects this. */
32788 struct point {int x, y;};
32789 static struct point const zero = {0,0};
32790 /* AIX XL C 1.02.0.0 rejects this.
32791 It does not let you subtract one const X* pointer from another in
32792 an arm of an if-expression whose if-part is not a constant
32794 const char *g = "string";
32795 pcpcc = &g + (g ? g-g : 0);
32796 /* HPUX 7.0 cc rejects these. */
32798 ppc = (char**) pcpcc;
32799 pcpcc = (char const *const *) ppc;
32800 { /* SCO 3.2v4 cc rejects this. */
32802 char const *s = 0 ? (char *) 0 : (char const *) 0;
32807 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32808 int x[] = {25, 17};
32809 const int *foo = &x[0];
32812 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32813 typedef const int *iptr;
32817 { /* AIX XL C 1.02.0.0 rejects this saying
32818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32819 struct s { int j; const int *ap[3]; };
32820 struct s *b; b->j = 5;
32822 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32823 const int foo = 10;
32824 if (!foo) return 0;
32826 return !cs[0] && !zero.x;
32833 rm -f conftest.$ac_objext
32834 if { (ac_try="$ac_compile"
32835 case "(($ac_try" in
32836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837 *) ac_try_echo=$ac_try;;
32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840 (eval "$ac_compile") 2>conftest.er1
32842 grep -v '^ *+' conftest.er1 >conftest.err
32844 cat conftest.err >&5
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); } && {
32847 test -z "$ac_c_werror_flag" ||
32848 test ! -s conftest.err
32849 } && test -s conftest.$ac_objext; then
32852 echo "$as_me: failed program was:" >&5
32853 sed 's/^/| /' conftest.$ac_ext >&5
32858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32860 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32861 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32862 if test $ac_cv_c_const = no; then
32864 cat >>confdefs.h <<\_ACEOF
32870 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32871 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32872 if test "${ol_cv_c_volatile+set}" = set; then
32873 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 cat >conftest.$ac_ext <<_ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h. */
32885 volatile int a; int * volatile b = x ? &y : &z;
32886 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32892 rm -f conftest.$ac_objext
32893 if { (ac_try="$ac_compile"
32894 case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_compile") 2>conftest.er1
32901 grep -v '^ *+' conftest.er1 >conftest.err
32903 cat conftest.err >&5
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); } && {
32906 test -z "$ac_c_werror_flag" ||
32907 test ! -s conftest.err
32908 } && test -s conftest.$ac_objext; then
32909 ol_cv_c_volatile=yes
32911 echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32914 ol_cv_c_volatile=no
32917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32919 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32920 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32921 if test $ol_cv_c_volatile = yes; then
32925 cat >>confdefs.h <<\_ACEOF
32932 if test $cross_compiling = yes ; then
32933 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32934 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32936 cat >>confdefs.h <<\_ACEOF
32937 #define CROSS_COMPILING 1
32941 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32942 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32943 if test "${ac_cv_c_bigendian+set}" = set; then
32944 echo $ECHO_N "(cached) $ECHO_C" >&6
32946 # See if sys/param.h defines the BYTE_ORDER macro.
32947 cat >conftest.$ac_ext <<_ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h. */
32953 #include <sys/types.h>
32954 #include <sys/param.h>
32959 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32960 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32961 bogus endian macros
32968 rm -f conftest.$ac_objext
32969 if { (ac_try="$ac_compile"
32970 case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_compile") 2>conftest.er1
32977 grep -v '^ *+' conftest.er1 >conftest.err
32979 cat conftest.err >&5
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); } && {
32982 test -z "$ac_c_werror_flag" ||
32983 test ! -s conftest.err
32984 } && test -s conftest.$ac_objext; then
32985 # It does; now see whether it defined to BIG_ENDIAN or not.
32986 cat >conftest.$ac_ext <<_ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h. */
32992 #include <sys/types.h>
32993 #include <sys/param.h>
32998 #if BYTE_ORDER != BIG_ENDIAN
33006 rm -f conftest.$ac_objext
33007 if { (ac_try="$ac_compile"
33008 case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_compile") 2>conftest.er1
33015 grep -v '^ *+' conftest.er1 >conftest.err
33017 cat conftest.err >&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); } && {
33020 test -z "$ac_c_werror_flag" ||
33021 test ! -s conftest.err
33022 } && test -s conftest.$ac_objext; then
33023 ac_cv_c_bigendian=yes
33025 echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33028 ac_cv_c_bigendian=no
33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33033 echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33036 # It does not; compile a test program.
33037 if test "$cross_compiling" = yes; then
33038 # try to guess the endianness by grepping values into an object file
33039 ac_cv_c_bigendian=unknown
33040 cat >conftest.$ac_ext <<_ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h. */
33046 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33047 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33048 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33049 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33050 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33051 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33055 _ascii (); _ebcdic ();
33060 rm -f conftest.$ac_objext
33061 if { (ac_try="$ac_compile"
33062 case "(($ac_try" in
33063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064 *) ac_try_echo=$ac_try;;
33066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067 (eval "$ac_compile") 2>conftest.er1
33069 grep -v '^ *+' conftest.er1 >conftest.err
33071 cat conftest.err >&5
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); } && {
33074 test -z "$ac_c_werror_flag" ||
33075 test ! -s conftest.err
33076 } && test -s conftest.$ac_objext; then
33077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33078 ac_cv_c_bigendian=yes
33080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33081 if test "$ac_cv_c_bigendian" = unknown; then
33082 ac_cv_c_bigendian=no
33084 # finding both strings is unlikely to happen, but who knows?
33085 ac_cv_c_bigendian=unknown
33089 echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 $ac_includes_default
33108 /* Are we little or big endian? From Harbison&Steele. */
33112 char c[sizeof (long int)];
33115 return u.c[sizeof (long int) - 1] == 1;
33121 rm -f conftest$ac_exeext
33122 if { (ac_try="$ac_link"
33123 case "(($ac_try" in
33124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125 *) ac_try_echo=$ac_try;;
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128 (eval "$ac_link") 2>&5
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33132 { (case "(($ac_try" in
33133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134 *) ac_try_echo=$ac_try;;
33136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137 (eval "$ac_try") 2>&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; }; then
33141 ac_cv_c_bigendian=no
33143 echo "$as_me: program exited with status $ac_status" >&5
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33147 ( exit $ac_status )
33148 ac_cv_c_bigendian=yes
33150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33158 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33159 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33160 case $ac_cv_c_bigendian in
33163 cat >>confdefs.h <<\_ACEOF
33164 #define WORDS_BIGENDIAN 1
33170 { { echo "$as_me:$LINENO: error: unknown endianness
33171 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33172 echo "$as_me: error: unknown endianness
33173 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33174 { (exit 1); exit 1; }; } ;;
33179 { echo "$as_me:$LINENO: checking for short" >&5
33180 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33181 if test "${ac_cv_type_short+set}" = set; then
33182 echo $ECHO_N "(cached) $ECHO_C" >&6
33184 cat >conftest.$ac_ext <<_ACEOF
33187 cat confdefs.h >>conftest.$ac_ext
33188 cat >>conftest.$ac_ext <<_ACEOF
33189 /* end confdefs.h. */
33190 $ac_includes_default
33191 typedef short ac__type_new_;
33195 if ((ac__type_new_ *) 0)
33197 if (sizeof (ac__type_new_))
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_compile") 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } && {
33217 test -z "$ac_c_werror_flag" ||
33218 test ! -s conftest.err
33219 } && test -s conftest.$ac_objext; then
33220 ac_cv_type_short=yes
33222 echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33225 ac_cv_type_short=no
33228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33231 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33233 # The cast to long int works around a bug in the HP C Compiler
33234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33236 # This bug is HP SR number 8606223364.
33237 { echo "$as_me:$LINENO: checking size of short" >&5
33238 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33239 if test "${ac_cv_sizeof_short+set}" = set; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 if test "$cross_compiling" = yes; then
33243 # Depending upon the size, compute the lo and hi bounds.
33244 cat >conftest.$ac_ext <<_ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h. */
33250 $ac_includes_default
33251 typedef short ac__type_sizeof_;
33255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33262 rm -f conftest.$ac_objext
33263 if { (ac_try="$ac_compile"
33264 case "(($ac_try" in
33265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266 *) ac_try_echo=$ac_try;;
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269 (eval "$ac_compile") 2>conftest.er1
33271 grep -v '^ *+' conftest.er1 >conftest.err
33273 cat conftest.err >&5
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); } && {
33276 test -z "$ac_c_werror_flag" ||
33277 test ! -s conftest.err
33278 } && test -s conftest.$ac_objext; then
33281 cat >conftest.$ac_ext <<_ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h. */
33287 $ac_includes_default
33288 typedef short ac__type_sizeof_;
33292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_compile") 2>conftest.er1
33308 grep -v '^ *+' conftest.er1 >conftest.err
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } && {
33313 test -z "$ac_c_werror_flag" ||
33314 test ! -s conftest.err
33315 } && test -s conftest.$ac_objext; then
33316 ac_hi=$ac_mid; break
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33321 ac_lo=`expr $ac_mid + 1`
33322 if test $ac_lo -le $ac_mid; then
33326 ac_mid=`expr 2 '*' $ac_mid + 1`
33329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33335 cat >conftest.$ac_ext <<_ACEOF
33338 cat confdefs.h >>conftest.$ac_ext
33339 cat >>conftest.$ac_ext <<_ACEOF
33340 /* end confdefs.h. */
33341 $ac_includes_default
33342 typedef short ac__type_sizeof_;
33346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357 *) ac_try_echo=$ac_try;;
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33362 grep -v '^ *+' conftest.er1 >conftest.err
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } && {
33367 test -z "$ac_c_werror_flag" ||
33368 test ! -s conftest.err
33369 } && test -s conftest.$ac_objext; then
33372 cat >conftest.$ac_ext <<_ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h. */
33378 $ac_includes_default
33379 typedef short ac__type_sizeof_;
33383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33390 rm -f conftest.$ac_objext
33391 if { (ac_try="$ac_compile"
33392 case "(($ac_try" in
33393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394 *) ac_try_echo=$ac_try;;
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397 (eval "$ac_compile") 2>conftest.er1
33399 grep -v '^ *+' conftest.er1 >conftest.err
33401 cat conftest.err >&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); } && {
33404 test -z "$ac_c_werror_flag" ||
33405 test ! -s conftest.err
33406 } && test -s conftest.$ac_objext; then
33407 ac_lo=$ac_mid; break
33409 echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33412 ac_hi=`expr '(' $ac_mid ')' - 1`
33413 if test $ac_mid -le $ac_hi; then
33417 ac_mid=`expr 2 '*' $ac_mid`
33420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33423 echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 # Binary search between lo and hi bounds.
33434 while test "x$ac_lo" != "x$ac_hi"; do
33435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33436 cat >conftest.$ac_ext <<_ACEOF
33439 cat confdefs.h >>conftest.$ac_ext
33440 cat >>conftest.$ac_ext <<_ACEOF
33441 /* end confdefs.h. */
33442 $ac_includes_default
33443 typedef short ac__type_sizeof_;
33447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33454 rm -f conftest.$ac_objext
33455 if { (ac_try="$ac_compile"
33456 case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_compile") 2>conftest.er1
33463 grep -v '^ *+' conftest.er1 >conftest.err
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } && {
33468 test -z "$ac_c_werror_flag" ||
33469 test ! -s conftest.err
33470 } && test -s conftest.$ac_objext; then
33473 echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.$ac_ext >&5
33476 ac_lo=`expr '(' $ac_mid ')' + 1`
33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33482 ?*) ac_cv_sizeof_short=$ac_lo;;
33483 '') if test "$ac_cv_type_short" = yes; then
33484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33485 See \`config.log' for more details." >&5
33486 echo "$as_me: error: cannot compute sizeof (short)
33487 See \`config.log' for more details." >&2;}
33488 { (exit 77); exit 77; }; }
33490 ac_cv_sizeof_short=0
33494 cat >conftest.$ac_ext <<_ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h. */
33500 $ac_includes_default
33501 typedef short ac__type_sizeof_;
33502 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33503 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33505 #include <stdlib.h>
33510 FILE *f = fopen ("conftest.val", "w");
33513 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33515 long int i = longval ();
33516 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33518 fprintf (f, "%ld\n", i);
33522 unsigned long int i = ulongval ();
33523 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33525 fprintf (f, "%lu\n", i);
33527 return ferror (f) || fclose (f) != 0;
33533 rm -f conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_link") 2>&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33544 { (case "(($ac_try" in
33545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546 *) ac_try_echo=$ac_try;;
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549 (eval "$ac_try") 2>&5
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); }; }; then
33553 ac_cv_sizeof_short=`cat conftest.val`
33555 echo "$as_me: program exited with status $ac_status" >&5
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 ( exit $ac_status )
33560 if test "$ac_cv_type_short" = yes; then
33561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33562 See \`config.log' for more details." >&5
33563 echo "$as_me: error: cannot compute sizeof (short)
33564 See \`config.log' for more details." >&2;}
33565 { (exit 77); exit 77; }; }
33567 ac_cv_sizeof_short=0
33570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33574 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33575 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33579 cat >>confdefs.h <<_ACEOF
33580 #define SIZEOF_SHORT $ac_cv_sizeof_short
33584 { echo "$as_me:$LINENO: checking for int" >&5
33585 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33586 if test "${ac_cv_type_int+set}" = set; then
33587 echo $ECHO_N "(cached) $ECHO_C" >&6
33589 cat >conftest.$ac_ext <<_ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h. */
33595 $ac_includes_default
33596 typedef int ac__type_new_;
33600 if ((ac__type_new_ *) 0)
33602 if (sizeof (ac__type_new_))
33608 rm -f conftest.$ac_objext
33609 if { (ac_try="$ac_compile"
33610 case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_compile") 2>conftest.er1
33617 grep -v '^ *+' conftest.er1 >conftest.err
33619 cat conftest.err >&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); } && {
33622 test -z "$ac_c_werror_flag" ||
33623 test ! -s conftest.err
33624 } && test -s conftest.$ac_objext; then
33627 echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33635 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33636 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33638 # The cast to long int works around a bug in the HP C Compiler
33639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33641 # This bug is HP SR number 8606223364.
33642 { echo "$as_me:$LINENO: checking size of int" >&5
33643 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33644 if test "${ac_cv_sizeof_int+set}" = set; then
33645 echo $ECHO_N "(cached) $ECHO_C" >&6
33647 if test "$cross_compiling" = yes; then
33648 # Depending upon the size, compute the lo and hi bounds.
33649 cat >conftest.$ac_ext <<_ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h. */
33655 $ac_includes_default
33656 typedef int ac__type_sizeof_;
33660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33667 rm -f conftest.$ac_objext
33668 if { (ac_try="$ac_compile"
33669 case "(($ac_try" in
33670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671 *) ac_try_echo=$ac_try;;
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674 (eval "$ac_compile") 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } && {
33681 test -z "$ac_c_werror_flag" ||
33682 test ! -s conftest.err
33683 } && test -s conftest.$ac_objext; then
33686 cat >conftest.$ac_ext <<_ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h. */
33692 $ac_includes_default
33693 typedef int ac__type_sizeof_;
33697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33704 rm -f conftest.$ac_objext
33705 if { (ac_try="$ac_compile"
33706 case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_compile") 2>conftest.er1
33713 grep -v '^ *+' conftest.er1 >conftest.err
33715 cat conftest.err >&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); } && {
33718 test -z "$ac_c_werror_flag" ||
33719 test ! -s conftest.err
33720 } && test -s conftest.$ac_objext; then
33721 ac_hi=$ac_mid; break
33723 echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33726 ac_lo=`expr $ac_mid + 1`
33727 if test $ac_lo -le $ac_mid; then
33731 ac_mid=`expr 2 '*' $ac_mid + 1`
33734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33737 echo "$as_me: failed program was:" >&5
33738 sed 's/^/| /' conftest.$ac_ext >&5
33740 cat >conftest.$ac_ext <<_ACEOF
33743 cat confdefs.h >>conftest.$ac_ext
33744 cat >>conftest.$ac_ext <<_ACEOF
33745 /* end confdefs.h. */
33746 $ac_includes_default
33747 typedef int ac__type_sizeof_;
33751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_compile") 2>conftest.er1
33767 grep -v '^ *+' conftest.er1 >conftest.err
33769 cat conftest.err >&5
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } && {
33772 test -z "$ac_c_werror_flag" ||
33773 test ! -s conftest.err
33774 } && test -s conftest.$ac_objext; then
33777 cat >conftest.$ac_ext <<_ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h. */
33783 $ac_includes_default
33784 typedef int ac__type_sizeof_;
33788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_compile") 2>conftest.er1
33804 grep -v '^ *+' conftest.er1 >conftest.err
33806 cat conftest.err >&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } && {
33809 test -z "$ac_c_werror_flag" ||
33810 test ! -s conftest.err
33811 } && test -s conftest.$ac_objext; then
33812 ac_lo=$ac_mid; break
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33817 ac_hi=`expr '(' $ac_mid ')' - 1`
33818 if test $ac_mid -le $ac_hi; then
33822 ac_mid=`expr 2 '*' $ac_mid`
33825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33828 echo "$as_me: failed program was:" >&5
33829 sed 's/^/| /' conftest.$ac_ext >&5
33834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33838 # Binary search between lo and hi bounds.
33839 while test "x$ac_lo" != "x$ac_hi"; do
33840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33841 cat >conftest.$ac_ext <<_ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33847 $ac_includes_default
33848 typedef int ac__type_sizeof_;
33852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33859 rm -f conftest.$ac_objext
33860 if { (ac_try="$ac_compile"
33861 case "(($ac_try" in
33862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863 *) ac_try_echo=$ac_try;;
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866 (eval "$ac_compile") 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } && {
33873 test -z "$ac_c_werror_flag" ||
33874 test ! -s conftest.err
33875 } && test -s conftest.$ac_objext; then
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33881 ac_lo=`expr '(' $ac_mid ')' + 1`
33884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33887 ?*) ac_cv_sizeof_int=$ac_lo;;
33888 '') if test "$ac_cv_type_int" = yes; then
33889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33890 See \`config.log' for more details." >&5
33891 echo "$as_me: error: cannot compute sizeof (int)
33892 See \`config.log' for more details." >&2;}
33893 { (exit 77); exit 77; }; }
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33905 $ac_includes_default
33906 typedef int ac__type_sizeof_;
33907 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33908 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33910 #include <stdlib.h>
33915 FILE *f = fopen ("conftest.val", "w");
33918 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33920 long int i = longval ();
33921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33923 fprintf (f, "%ld\n", i);
33927 unsigned long int i = ulongval ();
33928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33930 fprintf (f, "%lu\n", i);
33932 return ferror (f) || fclose (f) != 0;
33938 rm -f conftest$ac_exeext
33939 if { (ac_try="$ac_link"
33940 case "(($ac_try" in
33941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942 *) ac_try_echo=$ac_try;;
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945 (eval "$ac_link") 2>&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33949 { (case "(($ac_try" in
33950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951 *) ac_try_echo=$ac_try;;
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954 (eval "$ac_try") 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33958 ac_cv_sizeof_int=`cat conftest.val`
33960 echo "$as_me: program exited with status $ac_status" >&5
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33964 ( exit $ac_status )
33965 if test "$ac_cv_type_int" = yes; then
33966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33967 See \`config.log' for more details." >&5
33968 echo "$as_me: error: cannot compute sizeof (int)
33969 See \`config.log' for more details." >&2;}
33970 { (exit 77); exit 77; }; }
33975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33979 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
33980 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
33984 cat >>confdefs.h <<_ACEOF
33985 #define SIZEOF_INT $ac_cv_sizeof_int
33989 { echo "$as_me:$LINENO: checking for long" >&5
33990 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
33991 if test "${ac_cv_type_long+set}" = set; then
33992 echo $ECHO_N "(cached) $ECHO_C" >&6
33994 cat >conftest.$ac_ext <<_ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h. */
34000 $ac_includes_default
34001 typedef long ac__type_new_;
34005 if ((ac__type_new_ *) 0)
34007 if (sizeof (ac__type_new_))
34013 rm -f conftest.$ac_objext
34014 if { (ac_try="$ac_compile"
34015 case "(($ac_try" in
34016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017 *) ac_try_echo=$ac_try;;
34019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020 (eval "$ac_compile") 2>conftest.er1
34022 grep -v '^ *+' conftest.er1 >conftest.err
34024 cat conftest.err >&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } && {
34027 test -z "$ac_c_werror_flag" ||
34028 test ! -s conftest.err
34029 } && test -s conftest.$ac_objext; then
34030 ac_cv_type_long=yes
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34040 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34041 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34043 # The cast to long int works around a bug in the HP C Compiler
34044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34046 # This bug is HP SR number 8606223364.
34047 { echo "$as_me:$LINENO: checking size of long" >&5
34048 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34049 if test "${ac_cv_sizeof_long+set}" = set; then
34050 echo $ECHO_N "(cached) $ECHO_C" >&6
34052 if test "$cross_compiling" = yes; then
34053 # Depending upon the size, compute the lo and hi bounds.
34054 cat >conftest.$ac_ext <<_ACEOF
34057 cat confdefs.h >>conftest.$ac_ext
34058 cat >>conftest.$ac_ext <<_ACEOF
34059 /* end confdefs.h. */
34060 $ac_includes_default
34061 typedef long ac__type_sizeof_;
34065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_compile") 2>conftest.er1
34081 grep -v '^ *+' conftest.er1 >conftest.err
34083 cat conftest.err >&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } && {
34086 test -z "$ac_c_werror_flag" ||
34087 test ! -s conftest.err
34088 } && test -s conftest.$ac_objext; then
34091 cat >conftest.$ac_ext <<_ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h. */
34097 $ac_includes_default
34098 typedef long ac__type_sizeof_;
34102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116 (eval "$ac_compile") 2>conftest.er1
34118 grep -v '^ *+' conftest.er1 >conftest.err
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } && {
34123 test -z "$ac_c_werror_flag" ||
34124 test ! -s conftest.err
34125 } && test -s conftest.$ac_objext; then
34126 ac_hi=$ac_mid; break
34128 echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34131 ac_lo=`expr $ac_mid + 1`
34132 if test $ac_lo -le $ac_mid; then
34136 ac_mid=`expr 2 '*' $ac_mid + 1`
34139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34142 echo "$as_me: failed program was:" >&5
34143 sed 's/^/| /' conftest.$ac_ext >&5
34145 cat >conftest.$ac_ext <<_ACEOF
34148 cat confdefs.h >>conftest.$ac_ext
34149 cat >>conftest.$ac_ext <<_ACEOF
34150 /* end confdefs.h. */
34151 $ac_includes_default
34152 typedef long ac__type_sizeof_;
34156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
34172 grep -v '^ *+' conftest.er1 >conftest.err
34174 cat conftest.err >&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); } && {
34177 test -z "$ac_c_werror_flag" ||
34178 test ! -s conftest.err
34179 } && test -s conftest.$ac_objext; then
34182 cat >conftest.$ac_ext <<_ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34188 $ac_includes_default
34189 typedef long ac__type_sizeof_;
34193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34200 rm -f conftest.$ac_objext
34201 if { (ac_try="$ac_compile"
34202 case "(($ac_try" in
34203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34204 *) ac_try_echo=$ac_try;;
34206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34207 (eval "$ac_compile") 2>conftest.er1
34209 grep -v '^ *+' conftest.er1 >conftest.err
34211 cat conftest.err >&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); } && {
34214 test -z "$ac_c_werror_flag" ||
34215 test ! -s conftest.err
34216 } && test -s conftest.$ac_objext; then
34217 ac_lo=$ac_mid; break
34219 echo "$as_me: failed program was:" >&5
34220 sed 's/^/| /' conftest.$ac_ext >&5
34222 ac_hi=`expr '(' $ac_mid ')' - 1`
34223 if test $ac_mid -le $ac_hi; then
34227 ac_mid=`expr 2 '*' $ac_mid`
34230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34233 echo "$as_me: failed program was:" >&5
34234 sed 's/^/| /' conftest.$ac_ext >&5
34239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 # Binary search between lo and hi bounds.
34244 while test "x$ac_lo" != "x$ac_hi"; do
34245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34246 cat >conftest.$ac_ext <<_ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h. */
34252 $ac_includes_default
34253 typedef long ac__type_sizeof_;
34257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34264 rm -f conftest.$ac_objext
34265 if { (ac_try="$ac_compile"
34266 case "(($ac_try" in
34267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34268 *) ac_try_echo=$ac_try;;
34270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34271 (eval "$ac_compile") 2>conftest.er1
34273 grep -v '^ *+' conftest.er1 >conftest.err
34275 cat conftest.err >&5
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); } && {
34278 test -z "$ac_c_werror_flag" ||
34279 test ! -s conftest.err
34280 } && test -s conftest.$ac_objext; then
34283 echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34286 ac_lo=`expr '(' $ac_mid ')' + 1`
34289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34292 ?*) ac_cv_sizeof_long=$ac_lo;;
34293 '') if test "$ac_cv_type_long" = yes; then
34294 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34295 See \`config.log' for more details." >&5
34296 echo "$as_me: error: cannot compute sizeof (long)
34297 See \`config.log' for more details." >&2;}
34298 { (exit 77); exit 77; }; }
34300 ac_cv_sizeof_long=0
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 $ac_includes_default
34311 typedef long ac__type_sizeof_;
34312 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34313 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34315 #include <stdlib.h>
34320 FILE *f = fopen ("conftest.val", "w");
34323 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34325 long int i = longval ();
34326 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34328 fprintf (f, "%ld\n", i);
34332 unsigned long int i = ulongval ();
34333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34335 fprintf (f, "%lu\n", i);
34337 return ferror (f) || fclose (f) != 0;
34343 rm -f conftest$ac_exeext
34344 if { (ac_try="$ac_link"
34345 case "(($ac_try" in
34346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347 *) ac_try_echo=$ac_try;;
34349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34350 (eval "$ac_link") 2>&5
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34354 { (case "(($ac_try" in
34355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34356 *) ac_try_echo=$ac_try;;
34358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34359 (eval "$ac_try") 2>&5
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); }; }; then
34363 ac_cv_sizeof_long=`cat conftest.val`
34365 echo "$as_me: program exited with status $ac_status" >&5
34366 echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34369 ( exit $ac_status )
34370 if test "$ac_cv_type_long" = yes; then
34371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34372 See \`config.log' for more details." >&5
34373 echo "$as_me: error: cannot compute sizeof (long)
34374 See \`config.log' for more details." >&2;}
34375 { (exit 77); exit 77; }; }
34377 ac_cv_sizeof_long=0
34380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34384 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34385 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34389 cat >>confdefs.h <<_ACEOF
34390 #define SIZEOF_LONG $ac_cv_sizeof_long
34394 { echo "$as_me:$LINENO: checking for long long" >&5
34395 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34396 if test "${ac_cv_type_long_long+set}" = set; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34399 cat >conftest.$ac_ext <<_ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h. */
34405 $ac_includes_default
34406 typedef long long ac__type_new_;
34410 if ((ac__type_new_ *) 0)
34412 if (sizeof (ac__type_new_))
34418 rm -f conftest.$ac_objext
34419 if { (ac_try="$ac_compile"
34420 case "(($ac_try" in
34421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34422 *) ac_try_echo=$ac_try;;
34424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34425 (eval "$ac_compile") 2>conftest.er1
34427 grep -v '^ *+' conftest.er1 >conftest.err
34429 cat conftest.err >&5
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); } && {
34432 test -z "$ac_c_werror_flag" ||
34433 test ! -s conftest.err
34434 } && test -s conftest.$ac_objext; then
34435 ac_cv_type_long_long=yes
34437 echo "$as_me: failed program was:" >&5
34438 sed 's/^/| /' conftest.$ac_ext >&5
34440 ac_cv_type_long_long=no
34443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34445 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34446 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34448 # The cast to long int works around a bug in the HP C Compiler
34449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34451 # This bug is HP SR number 8606223364.
34452 { echo "$as_me:$LINENO: checking size of long long" >&5
34453 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34454 if test "${ac_cv_sizeof_long_long+set}" = set; then
34455 echo $ECHO_N "(cached) $ECHO_C" >&6
34457 if test "$cross_compiling" = yes; then
34458 # Depending upon the size, compute the lo and hi bounds.
34459 cat >conftest.$ac_ext <<_ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h. */
34465 $ac_includes_default
34466 typedef long long ac__type_sizeof_;
34470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34477 rm -f conftest.$ac_objext
34478 if { (ac_try="$ac_compile"
34479 case "(($ac_try" in
34480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481 *) ac_try_echo=$ac_try;;
34483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484 (eval "$ac_compile") 2>conftest.er1
34486 grep -v '^ *+' conftest.er1 >conftest.err
34488 cat conftest.err >&5
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); } && {
34491 test -z "$ac_c_werror_flag" ||
34492 test ! -s conftest.err
34493 } && test -s conftest.$ac_objext; then
34496 cat >conftest.$ac_ext <<_ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h. */
34502 $ac_includes_default
34503 typedef long long ac__type_sizeof_;
34507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34514 rm -f conftest.$ac_objext
34515 if { (ac_try="$ac_compile"
34516 case "(($ac_try" in
34517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34518 *) ac_try_echo=$ac_try;;
34520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34521 (eval "$ac_compile") 2>conftest.er1
34523 grep -v '^ *+' conftest.er1 >conftest.err
34525 cat conftest.err >&5
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); } && {
34528 test -z "$ac_c_werror_flag" ||
34529 test ! -s conftest.err
34530 } && test -s conftest.$ac_objext; then
34531 ac_hi=$ac_mid; break
34533 echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34536 ac_lo=`expr $ac_mid + 1`
34537 if test $ac_lo -le $ac_mid; then
34541 ac_mid=`expr 2 '*' $ac_mid + 1`
34544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34547 echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34550 cat >conftest.$ac_ext <<_ACEOF
34553 cat confdefs.h >>conftest.$ac_ext
34554 cat >>conftest.$ac_ext <<_ACEOF
34555 /* end confdefs.h. */
34556 $ac_includes_default
34557 typedef long long ac__type_sizeof_;
34561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34568 rm -f conftest.$ac_objext
34569 if { (ac_try="$ac_compile"
34570 case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575 (eval "$ac_compile") 2>conftest.er1
34577 grep -v '^ *+' conftest.er1 >conftest.err
34579 cat conftest.err >&5
34580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 (exit $ac_status); } && {
34582 test -z "$ac_c_werror_flag" ||
34583 test ! -s conftest.err
34584 } && test -s conftest.$ac_objext; then
34587 cat >conftest.$ac_ext <<_ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h. */
34593 $ac_includes_default
34594 typedef long long ac__type_sizeof_;
34598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34605 rm -f conftest.$ac_objext
34606 if { (ac_try="$ac_compile"
34607 case "(($ac_try" in
34608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34609 *) ac_try_echo=$ac_try;;
34611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34612 (eval "$ac_compile") 2>conftest.er1
34614 grep -v '^ *+' conftest.er1 >conftest.err
34616 cat conftest.err >&5
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); } && {
34619 test -z "$ac_c_werror_flag" ||
34620 test ! -s conftest.err
34621 } && test -s conftest.$ac_objext; then
34622 ac_lo=$ac_mid; break
34624 echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34627 ac_hi=`expr '(' $ac_mid ')' - 1`
34628 if test $ac_mid -le $ac_hi; then
34632 ac_mid=`expr 2 '*' $ac_mid`
34635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34638 echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34648 # Binary search between lo and hi bounds.
34649 while test "x$ac_lo" != "x$ac_hi"; do
34650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34651 cat >conftest.$ac_ext <<_ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h. */
34657 $ac_includes_default
34658 typedef long long ac__type_sizeof_;
34662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34669 rm -f conftest.$ac_objext
34670 if { (ac_try="$ac_compile"
34671 case "(($ac_try" in
34672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673 *) ac_try_echo=$ac_try;;
34675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34676 (eval "$ac_compile") 2>conftest.er1
34678 grep -v '^ *+' conftest.er1 >conftest.err
34680 cat conftest.err >&5
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); } && {
34683 test -z "$ac_c_werror_flag" ||
34684 test ! -s conftest.err
34685 } && test -s conftest.$ac_objext; then
34688 echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34691 ac_lo=`expr '(' $ac_mid ')' + 1`
34694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34697 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34698 '') if test "$ac_cv_type_long_long" = yes; then
34699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34700 See \`config.log' for more details." >&5
34701 echo "$as_me: error: cannot compute sizeof (long long)
34702 See \`config.log' for more details." >&2;}
34703 { (exit 77); exit 77; }; }
34705 ac_cv_sizeof_long_long=0
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34715 $ac_includes_default
34716 typedef long long ac__type_sizeof_;
34717 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34718 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34720 #include <stdlib.h>
34725 FILE *f = fopen ("conftest.val", "w");
34728 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34730 long int i = longval ();
34731 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34733 fprintf (f, "%ld\n", i);
34737 unsigned long int i = ulongval ();
34738 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34740 fprintf (f, "%lu\n", i);
34742 return ferror (f) || fclose (f) != 0;
34748 rm -f conftest$ac_exeext
34749 if { (ac_try="$ac_link"
34750 case "(($ac_try" in
34751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752 *) ac_try_echo=$ac_try;;
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755 (eval "$ac_link") 2>&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34759 { (case "(($ac_try" in
34760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761 *) ac_try_echo=$ac_try;;
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764 (eval "$ac_try") 2>&5
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); }; }; then
34768 ac_cv_sizeof_long_long=`cat conftest.val`
34770 echo "$as_me: program exited with status $ac_status" >&5
34771 echo "$as_me: failed program was:" >&5
34772 sed 's/^/| /' conftest.$ac_ext >&5
34774 ( exit $ac_status )
34775 if test "$ac_cv_type_long_long" = yes; then
34776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34777 See \`config.log' for more details." >&5
34778 echo "$as_me: error: cannot compute sizeof (long long)
34779 See \`config.log' for more details." >&2;}
34780 { (exit 77); exit 77; }; }
34782 ac_cv_sizeof_long_long=0
34785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34789 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34790 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34794 cat >>confdefs.h <<_ACEOF
34795 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34799 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34800 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34801 if test "${ac_cv_type_wchar_t+set}" = set; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34804 cat >conftest.$ac_ext <<_ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h. */
34810 $ac_includes_default
34811 typedef wchar_t ac__type_new_;
34815 if ((ac__type_new_ *) 0)
34817 if (sizeof (ac__type_new_))
34823 rm -f conftest.$ac_objext
34824 if { (ac_try="$ac_compile"
34825 case "(($ac_try" in
34826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34827 *) ac_try_echo=$ac_try;;
34829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34830 (eval "$ac_compile") 2>conftest.er1
34832 grep -v '^ *+' conftest.er1 >conftest.err
34834 cat conftest.err >&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); } && {
34837 test -z "$ac_c_werror_flag" ||
34838 test ! -s conftest.err
34839 } && test -s conftest.$ac_objext; then
34840 ac_cv_type_wchar_t=yes
34842 echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34845 ac_cv_type_wchar_t=no
34848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34850 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34851 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34853 # The cast to long int works around a bug in the HP C Compiler
34854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34856 # This bug is HP SR number 8606223364.
34857 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34858 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34859 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34860 echo $ECHO_N "(cached) $ECHO_C" >&6
34862 if test "$cross_compiling" = yes; then
34863 # Depending upon the size, compute the lo and hi bounds.
34864 cat >conftest.$ac_ext <<_ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h. */
34870 $ac_includes_default
34871 typedef wchar_t ac__type_sizeof_;
34875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34882 rm -f conftest.$ac_objext
34883 if { (ac_try="$ac_compile"
34884 case "(($ac_try" in
34885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886 *) ac_try_echo=$ac_try;;
34888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889 (eval "$ac_compile") 2>conftest.er1
34891 grep -v '^ *+' conftest.er1 >conftest.err
34893 cat conftest.err >&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); } && {
34896 test -z "$ac_c_werror_flag" ||
34897 test ! -s conftest.err
34898 } && test -s conftest.$ac_objext; then
34901 cat >conftest.$ac_ext <<_ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h. */
34907 $ac_includes_default
34908 typedef wchar_t ac__type_sizeof_;
34912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34919 rm -f conftest.$ac_objext
34920 if { (ac_try="$ac_compile"
34921 case "(($ac_try" in
34922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34923 *) ac_try_echo=$ac_try;;
34925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34926 (eval "$ac_compile") 2>conftest.er1
34928 grep -v '^ *+' conftest.er1 >conftest.err
34930 cat conftest.err >&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } && {
34933 test -z "$ac_c_werror_flag" ||
34934 test ! -s conftest.err
34935 } && test -s conftest.$ac_objext; then
34936 ac_hi=$ac_mid; break
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34941 ac_lo=`expr $ac_mid + 1`
34942 if test $ac_lo -le $ac_mid; then
34946 ac_mid=`expr 2 '*' $ac_mid + 1`
34949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34952 echo "$as_me: failed program was:" >&5
34953 sed 's/^/| /' conftest.$ac_ext >&5
34955 cat >conftest.$ac_ext <<_ACEOF
34958 cat confdefs.h >>conftest.$ac_ext
34959 cat >>conftest.$ac_ext <<_ACEOF
34960 /* end confdefs.h. */
34961 $ac_includes_default
34962 typedef wchar_t ac__type_sizeof_;
34966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34973 rm -f conftest.$ac_objext
34974 if { (ac_try="$ac_compile"
34975 case "(($ac_try" in
34976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977 *) ac_try_echo=$ac_try;;
34979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34980 (eval "$ac_compile") 2>conftest.er1
34982 grep -v '^ *+' conftest.er1 >conftest.err
34984 cat conftest.err >&5
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); } && {
34987 test -z "$ac_c_werror_flag" ||
34988 test ! -s conftest.err
34989 } && test -s conftest.$ac_objext; then
34992 cat >conftest.$ac_ext <<_ACEOF
34995 cat confdefs.h >>conftest.$ac_ext
34996 cat >>conftest.$ac_ext <<_ACEOF
34997 /* end confdefs.h. */
34998 $ac_includes_default
34999 typedef wchar_t ac__type_sizeof_;
35003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35010 rm -f conftest.$ac_objext
35011 if { (ac_try="$ac_compile"
35012 case "(($ac_try" in
35013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35014 *) ac_try_echo=$ac_try;;
35016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35017 (eval "$ac_compile") 2>conftest.er1
35019 grep -v '^ *+' conftest.er1 >conftest.err
35021 cat conftest.err >&5
35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023 (exit $ac_status); } && {
35024 test -z "$ac_c_werror_flag" ||
35025 test ! -s conftest.err
35026 } && test -s conftest.$ac_objext; then
35027 ac_lo=$ac_mid; break
35029 echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35032 ac_hi=`expr '(' $ac_mid ')' - 1`
35033 if test $ac_mid -le $ac_hi; then
35037 ac_mid=`expr 2 '*' $ac_mid`
35040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35043 echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35053 # Binary search between lo and hi bounds.
35054 while test "x$ac_lo" != "x$ac_hi"; do
35055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35056 cat >conftest.$ac_ext <<_ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h. */
35062 $ac_includes_default
35063 typedef wchar_t ac__type_sizeof_;
35067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35074 rm -f conftest.$ac_objext
35075 if { (ac_try="$ac_compile"
35076 case "(($ac_try" in
35077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078 *) ac_try_echo=$ac_try;;
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081 (eval "$ac_compile") 2>conftest.er1
35083 grep -v '^ *+' conftest.er1 >conftest.err
35085 cat conftest.err >&5
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } && {
35088 test -z "$ac_c_werror_flag" ||
35089 test ! -s conftest.err
35090 } && test -s conftest.$ac_objext; then
35093 echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35096 ac_lo=`expr '(' $ac_mid ')' + 1`
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35102 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35103 '') if test "$ac_cv_type_wchar_t" = yes; then
35104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35105 See \`config.log' for more details." >&5
35106 echo "$as_me: error: cannot compute sizeof (wchar_t)
35107 See \`config.log' for more details." >&2;}
35108 { (exit 77); exit 77; }; }
35110 ac_cv_sizeof_wchar_t=0
35114 cat >conftest.$ac_ext <<_ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h. */
35120 $ac_includes_default
35121 typedef wchar_t ac__type_sizeof_;
35122 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35123 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35125 #include <stdlib.h>
35130 FILE *f = fopen ("conftest.val", "w");
35133 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35135 long int i = longval ();
35136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35138 fprintf (f, "%ld\n", i);
35142 unsigned long int i = ulongval ();
35143 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35145 fprintf (f, "%lu\n", i);
35147 return ferror (f) || fclose (f) != 0;
35153 rm -f conftest$ac_exeext
35154 if { (ac_try="$ac_link"
35155 case "(($ac_try" in
35156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157 *) ac_try_echo=$ac_try;;
35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160 (eval "$ac_link") 2>&5
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35164 { (case "(($ac_try" in
35165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35166 *) ac_try_echo=$ac_try;;
35168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35169 (eval "$ac_try") 2>&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; }; then
35173 ac_cv_sizeof_wchar_t=`cat conftest.val`
35175 echo "$as_me: program exited with status $ac_status" >&5
35176 echo "$as_me: failed program was:" >&5
35177 sed 's/^/| /' conftest.$ac_ext >&5
35179 ( exit $ac_status )
35180 if test "$ac_cv_type_wchar_t" = yes; then
35181 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35182 See \`config.log' for more details." >&5
35183 echo "$as_me: error: cannot compute sizeof (wchar_t)
35184 See \`config.log' for more details." >&2;}
35185 { (exit 77); exit 77; }; }
35187 ac_cv_sizeof_wchar_t=0
35190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35194 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35195 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35199 cat >>confdefs.h <<_ACEOF
35200 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35205 if test "$ac_cv_sizeof_int" -lt 4 ; then
35206 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35207 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35210 cat >>confdefs.h <<\_ACEOF
35211 #define LBER_INT_T long
35216 cat >>confdefs.h <<\_ACEOF
35217 #define LBER_INT_T int
35223 cat >>confdefs.h <<\_ACEOF
35224 #define LBER_LEN_T long
35228 cat >>confdefs.h <<\_ACEOF
35229 #define LBER_SOCKET_T int
35233 cat >>confdefs.h <<\_ACEOF
35234 #define LBER_TAG_T long
35238 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35239 if test $ac_cv_sizeof_long_long -gt 4 ; then
35240 ol_with_mp=longlong
35242 cat >>confdefs.h <<\_ACEOF
35243 #define USE_MP_LONG_LONG 1
35246 elif test $ol_with_mp = longlong ; then
35247 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35248 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35249 { (exit 1); exit 1; }; }
35252 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35253 if test $ac_cv_sizeof_long -gt 4 ; then
35256 cat >>confdefs.h <<\_ACEOF
35257 #define USE_MP_LONG 1
35260 elif test $ol_with_mp = long ; then
35261 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35262 echo "$as_me: error: long unusable for multiple precision" >&2;}
35263 { (exit 1); exit 1; }; }
35266 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35268 for ac_header in openssl/bn.h
35270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35275 echo $ECHO_N "(cached) $ECHO_C" >&6
35277 ac_res=`eval echo '${'$as_ac_Header'}'`
35278 { echo "$as_me:$LINENO: result: $ac_res" >&5
35279 echo "${ECHO_T}$ac_res" >&6; }
35281 # Is the header compilable?
35282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35284 cat >conftest.$ac_ext <<_ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h. */
35290 $ac_includes_default
35291 #include <$ac_header>
35293 rm -f conftest.$ac_objext
35294 if { (ac_try="$ac_compile"
35295 case "(($ac_try" in
35296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35297 *) ac_try_echo=$ac_try;;
35299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35300 (eval "$ac_compile") 2>conftest.er1
35302 grep -v '^ *+' conftest.er1 >conftest.err
35304 cat conftest.err >&5
35305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35306 (exit $ac_status); } && {
35307 test -z "$ac_c_werror_flag" ||
35308 test ! -s conftest.err
35309 } && test -s conftest.$ac_objext; then
35310 ac_header_compiler=yes
35312 echo "$as_me: failed program was:" >&5
35313 sed 's/^/| /' conftest.$ac_ext >&5
35315 ac_header_compiler=no
35318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35320 echo "${ECHO_T}$ac_header_compiler" >&6; }
35322 # Is the header present?
35323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35325 cat >conftest.$ac_ext <<_ACEOF
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h. */
35331 #include <$ac_header>
35333 if { (ac_try="$ac_cpp conftest.$ac_ext"
35334 case "(($ac_try" in
35335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336 *) ac_try_echo=$ac_try;;
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35341 grep -v '^ *+' conftest.er1 >conftest.err
35343 cat conftest.err >&5
35344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345 (exit $ac_status); } >/dev/null && {
35346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35347 test ! -s conftest.err
35349 ac_header_preproc=yes
35351 echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35354 ac_header_preproc=no
35357 rm -f conftest.err conftest.$ac_ext
35358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35359 echo "${ECHO_T}$ac_header_preproc" >&6; }
35361 # So? What about this header?
35362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35368 ac_header_preproc=yes
35371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35384 ## --------------------------------------------- ##
35385 ## Report this to <http://www.openldap.org/its/> ##
35386 ## --------------------------------------------- ##
35388 ) | sed "s/^/$as_me: WARNING: /" >&2
35391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35394 echo $ECHO_N "(cached) $ECHO_C" >&6
35396 eval "$as_ac_Header=\$ac_header_preproc"
35398 ac_res=`eval echo '${'$as_ac_Header'}'`
35399 { echo "$as_me:$LINENO: result: $ac_res" >&5
35400 echo "${ECHO_T}$ac_res" >&6; }
35403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35404 cat >>confdefs.h <<_ACEOF
35405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35413 for ac_header in openssl/crypto.h
35415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35420 echo $ECHO_N "(cached) $ECHO_C" >&6
35422 ac_res=`eval echo '${'$as_ac_Header'}'`
35423 { echo "$as_me:$LINENO: result: $ac_res" >&5
35424 echo "${ECHO_T}$ac_res" >&6; }
35426 # Is the header compilable?
35427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 $ac_includes_default
35436 #include <$ac_header>
35438 rm -f conftest.$ac_objext
35439 if { (ac_try="$ac_compile"
35440 case "(($ac_try" in
35441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442 *) ac_try_echo=$ac_try;;
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445 (eval "$ac_compile") 2>conftest.er1
35447 grep -v '^ *+' conftest.er1 >conftest.err
35449 cat conftest.err >&5
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); } && {
35452 test -z "$ac_c_werror_flag" ||
35453 test ! -s conftest.err
35454 } && test -s conftest.$ac_objext; then
35455 ac_header_compiler=yes
35457 echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35460 ac_header_compiler=no
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35465 echo "${ECHO_T}$ac_header_compiler" >&6; }
35467 # Is the header present?
35468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35470 cat >conftest.$ac_ext <<_ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h. */
35476 #include <$ac_header>
35478 if { (ac_try="$ac_cpp conftest.$ac_ext"
35479 case "(($ac_try" in
35480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35481 *) ac_try_echo=$ac_try;;
35483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35486 grep -v '^ *+' conftest.er1 >conftest.err
35488 cat conftest.err >&5
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); } >/dev/null && {
35491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35492 test ! -s conftest.err
35494 ac_header_preproc=yes
35496 echo "$as_me: failed program was:" >&5
35497 sed 's/^/| /' conftest.$ac_ext >&5
35499 ac_header_preproc=no
35502 rm -f conftest.err conftest.$ac_ext
35503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35504 echo "${ECHO_T}$ac_header_preproc" >&6; }
35506 # So? What about this header?
35507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35513 ac_header_preproc=yes
35516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35529 ## --------------------------------------------- ##
35530 ## Report this to <http://www.openldap.org/its/> ##
35531 ## --------------------------------------------- ##
35533 ) | sed "s/^/$as_me: WARNING: /" >&2
35536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35539 echo $ECHO_N "(cached) $ECHO_C" >&6
35541 eval "$as_ac_Header=\$ac_header_preproc"
35543 ac_res=`eval echo '${'$as_ac_Header'}'`
35544 { echo "$as_me:$LINENO: result: $ac_res" >&5
35545 echo "${ECHO_T}$ac_res" >&6; }
35548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35549 cat >>confdefs.h <<_ACEOF
35550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35557 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35558 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35559 test "$ol_with_tls" = "found" ; then
35562 cat >>confdefs.h <<\_ACEOF
35563 #define USE_MP_BIGNUM 1
35566 elif test $ol_with_mp = bignum ; then
35567 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35568 echo "$as_me: error: bignum not available" >&2;}
35569 { (exit 1); exit 1; }; }
35572 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35574 for ac_header in gmp.h
35576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35581 echo $ECHO_N "(cached) $ECHO_C" >&6
35583 ac_res=`eval echo '${'$as_ac_Header'}'`
35584 { echo "$as_me:$LINENO: result: $ac_res" >&5
35585 echo "${ECHO_T}$ac_res" >&6; }
35587 # Is the header compilable?
35588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35590 cat >conftest.$ac_ext <<_ACEOF
35593 cat confdefs.h >>conftest.$ac_ext
35594 cat >>conftest.$ac_ext <<_ACEOF
35595 /* end confdefs.h. */
35596 $ac_includes_default
35597 #include <$ac_header>
35599 rm -f conftest.$ac_objext
35600 if { (ac_try="$ac_compile"
35601 case "(($ac_try" in
35602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35603 *) ac_try_echo=$ac_try;;
35605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35606 (eval "$ac_compile") 2>conftest.er1
35608 grep -v '^ *+' conftest.er1 >conftest.err
35610 cat conftest.err >&5
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); } && {
35613 test -z "$ac_c_werror_flag" ||
35614 test ! -s conftest.err
35615 } && test -s conftest.$ac_objext; then
35616 ac_header_compiler=yes
35618 echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35621 ac_header_compiler=no
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35626 echo "${ECHO_T}$ac_header_compiler" >&6; }
35628 # Is the header present?
35629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35631 cat >conftest.$ac_ext <<_ACEOF
35634 cat confdefs.h >>conftest.$ac_ext
35635 cat >>conftest.$ac_ext <<_ACEOF
35636 /* end confdefs.h. */
35637 #include <$ac_header>
35639 if { (ac_try="$ac_cpp conftest.$ac_ext"
35640 case "(($ac_try" in
35641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35642 *) ac_try_echo=$ac_try;;
35644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35647 grep -v '^ *+' conftest.er1 >conftest.err
35649 cat conftest.err >&5
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } >/dev/null && {
35652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35653 test ! -s conftest.err
35655 ac_header_preproc=yes
35657 echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 ac_header_preproc=no
35663 rm -f conftest.err conftest.$ac_ext
35664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35665 echo "${ECHO_T}$ac_header_preproc" >&6; }
35667 # So? What about this header?
35668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35674 ac_header_preproc=yes
35677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35690 ## --------------------------------------------- ##
35691 ## Report this to <http://www.openldap.org/its/> ##
35692 ## --------------------------------------------- ##
35694 ) | sed "s/^/$as_me: WARNING: /" >&2
35697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35700 echo $ECHO_N "(cached) $ECHO_C" >&6
35702 eval "$as_ac_Header=\$ac_header_preproc"
35704 ac_res=`eval echo '${'$as_ac_Header'}'`
35705 { echo "$as_me:$LINENO: result: $ac_res" >&5
35706 echo "${ECHO_T}$ac_res" >&6; }
35709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35710 cat >>confdefs.h <<_ACEOF
35711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35719 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35720 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35721 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35722 echo $ECHO_N "(cached) $ECHO_C" >&6
35724 ac_check_lib_save_LIBS=$LIBS
35726 cat >conftest.$ac_ext <<_ACEOF
35729 cat confdefs.h >>conftest.$ac_ext
35730 cat >>conftest.$ac_ext <<_ACEOF
35731 /* end confdefs.h. */
35733 /* Override any GCC internal prototype to avoid an error.
35734 Use char because int might match the return type of a GCC
35735 builtin and then its argument prototype would still apply. */
35739 char __gmpz_add_ui ();
35743 return __gmpz_add_ui ();
35748 rm -f conftest.$ac_objext conftest$ac_exeext
35749 if { (ac_try="$ac_link"
35750 case "(($ac_try" in
35751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752 *) ac_try_echo=$ac_try;;
35754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35755 (eval "$ac_link") 2>conftest.er1
35757 grep -v '^ *+' conftest.er1 >conftest.err
35759 cat conftest.err >&5
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } && {
35762 test -z "$ac_c_werror_flag" ||
35763 test ! -s conftest.err
35764 } && test -s conftest$ac_exeext &&
35765 $as_test_x conftest$ac_exeext; then
35766 ac_cv_lib_gmp___gmpz_add_ui=yes
35768 echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35771 ac_cv_lib_gmp___gmpz_add_ui=no
35774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35775 conftest$ac_exeext conftest.$ac_ext
35776 LIBS=$ac_check_lib_save_LIBS
35778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35779 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35780 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35781 cat >>confdefs.h <<_ACEOF
35782 #define HAVE_LIBGMP 1
35789 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35791 cat >>confdefs.h <<\_ACEOF
35792 #define USE_MP_GMP 1
35796 elif test $ol_with_mp = gmp ; then
35797 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35798 echo "$as_me: error: gmp not available" >&2;}
35799 { (exit 1); exit 1; }; }
35802 if test $ol_with_mp = auto ; then
35806 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35807 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35808 if test "${ac_cv_func_memcmp_working+set}" = set; then
35809 echo $ECHO_N "(cached) $ECHO_C" >&6
35811 if test "$cross_compiling" = yes; then
35812 ac_cv_func_memcmp_working=no
35814 cat >conftest.$ac_ext <<_ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h. */
35820 $ac_includes_default
35825 /* Some versions of memcmp are not 8-bit clean. */
35826 char c0 = '\100', c1 = '\200', c2 = '\201';
35827 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35830 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35831 or more and with at least one buffer not starting on a 4-byte boundary.
35832 William Lewis provided this test program. */
35837 for (i = 0; i < 4; i++)
35841 strcpy (a, "--------01111111");
35842 strcpy (b, "--------10000000");
35843 if (memcmp (a, b, 16) >= 0)
35853 rm -f conftest$ac_exeext
35854 if { (ac_try="$ac_link"
35855 case "(($ac_try" in
35856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857 *) ac_try_echo=$ac_try;;
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860 (eval "$ac_link") 2>&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35864 { (case "(($ac_try" in
35865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866 *) ac_try_echo=$ac_try;;
35868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869 (eval "$ac_try") 2>&5
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; }; then
35873 ac_cv_func_memcmp_working=yes
35875 echo "$as_me: program exited with status $ac_status" >&5
35876 echo "$as_me: failed program was:" >&5
35877 sed 's/^/| /' conftest.$ac_ext >&5
35879 ( exit $ac_status )
35880 ac_cv_func_memcmp_working=no
35882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35887 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35888 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35889 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35890 *" memcmp.$ac_objext "* ) ;;
35891 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35897 if test $ac_cv_func_memcmp_working = no ; then
35899 cat >>confdefs.h <<\_ACEOF
35900 #define NEED_MEMCMP_REPLACEMENT 1
35906 for ac_func in strftime
35908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35912 echo $ECHO_N "(cached) $ECHO_C" >&6
35914 cat >conftest.$ac_ext <<_ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h. */
35920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35922 #define $ac_func innocuous_$ac_func
35924 /* System header to define __stub macros and hopefully few prototypes,
35925 which can conflict with char $ac_func (); below.
35926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35927 <limits.h> exists even on freestanding compilers. */
35930 # include <limits.h>
35932 # include <assert.h>
35937 /* Override any GCC internal prototype to avoid an error.
35938 Use char because int might match the return type of a GCC
35939 builtin and then its argument prototype would still apply. */
35944 /* The GNU C library defines this for functions which it implements
35945 to always fail with ENOSYS. Some functions are actually named
35946 something starting with __ and the normal name is an alias. */
35947 #if defined __stub_$ac_func || defined __stub___$ac_func
35954 return $ac_func ();
35959 rm -f conftest.$ac_objext conftest$ac_exeext
35960 if { (ac_try="$ac_link"
35961 case "(($ac_try" in
35962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35963 *) ac_try_echo=$ac_try;;
35965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35966 (eval "$ac_link") 2>conftest.er1
35968 grep -v '^ *+' conftest.er1 >conftest.err
35970 cat conftest.err >&5
35971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); } && {
35973 test -z "$ac_c_werror_flag" ||
35974 test ! -s conftest.err
35975 } && test -s conftest$ac_exeext &&
35976 $as_test_x conftest$ac_exeext; then
35977 eval "$as_ac_var=yes"
35979 echo "$as_me: failed program was:" >&5
35980 sed 's/^/| /' conftest.$ac_ext >&5
35982 eval "$as_ac_var=no"
35985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35986 conftest$ac_exeext conftest.$ac_ext
35988 ac_res=`eval echo '${'$as_ac_var'}'`
35989 { echo "$as_me:$LINENO: result: $ac_res" >&5
35990 echo "${ECHO_T}$ac_res" >&6; }
35991 if test `eval echo '${'$as_ac_var'}'` = yes; then
35992 cat >>confdefs.h <<_ACEOF
35993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35997 # strftime is in -lintl on SCO UNIX.
35998 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35999 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36000 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36001 echo $ECHO_N "(cached) $ECHO_C" >&6
36003 ac_check_lib_save_LIBS=$LIBS
36004 LIBS="-lintl $LIBS"
36005 cat >conftest.$ac_ext <<_ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h. */
36012 /* Override any GCC internal prototype to avoid an error.
36013 Use char because int might match the return type of a GCC
36014 builtin and then its argument prototype would still apply. */
36022 return strftime ();
36027 rm -f conftest.$ac_objext conftest$ac_exeext
36028 if { (ac_try="$ac_link"
36029 case "(($ac_try" in
36030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36031 *) ac_try_echo=$ac_try;;
36033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36034 (eval "$ac_link") 2>conftest.er1
36036 grep -v '^ *+' conftest.er1 >conftest.err
36038 cat conftest.err >&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } && {
36041 test -z "$ac_c_werror_flag" ||
36042 test ! -s conftest.err
36043 } && test -s conftest$ac_exeext &&
36044 $as_test_x conftest$ac_exeext; then
36045 ac_cv_lib_intl_strftime=yes
36047 echo "$as_me: failed program was:" >&5
36048 sed 's/^/| /' conftest.$ac_ext >&5
36050 ac_cv_lib_intl_strftime=no
36053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36054 conftest$ac_exeext conftest.$ac_ext
36055 LIBS=$ac_check_lib_save_LIBS
36057 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36059 if test $ac_cv_lib_intl_strftime = yes; then
36060 cat >>confdefs.h <<\_ACEOF
36061 #define HAVE_STRFTIME 1
36064 LIBS="-lintl $LIBS"
36071 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36072 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36073 if test "${ol_cv_func_inet_aton+set}" = set; then
36074 echo $ECHO_N "(cached) $ECHO_C" >&6
36076 cat >conftest.$ac_ext <<_ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h. */
36083 #ifdef HAVE_SYS_TYPES_H
36084 # include <sys/types.h>
36086 #ifdef HAVE_SYS_SOCKET_H
36087 # include <sys/socket.h>
36088 # ifdef HAVE_SYS_SELECT_H
36089 # include <sys/select.h>
36091 # include <netinet/in.h>
36092 # ifdef HAVE_ARPA_INET_H
36093 # include <arpa/inet.h>
36101 int rc = inet_aton( "255.255.255.255", &in );
36106 rm -f conftest.$ac_objext conftest$ac_exeext
36107 if { (ac_try="$ac_link"
36108 case "(($ac_try" in
36109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36110 *) ac_try_echo=$ac_try;;
36112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36113 (eval "$ac_link") 2>conftest.er1
36115 grep -v '^ *+' conftest.er1 >conftest.err
36117 cat conftest.err >&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } && {
36120 test -z "$ac_c_werror_flag" ||
36121 test ! -s conftest.err
36122 } && test -s conftest$ac_exeext &&
36123 $as_test_x conftest$ac_exeext; then
36124 ol_cv_func_inet_aton=yes
36126 echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.$ac_ext >&5
36129 ol_cv_func_inet_aton=no
36132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36133 conftest$ac_exeext conftest.$ac_ext
36135 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36136 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36137 if test $ol_cv_func_inet_aton != no; then
36139 cat >>confdefs.h <<\_ACEOF
36140 #define HAVE_INET_ATON 1
36146 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36147 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36148 if test "${ac_cv_func__spawnlp+set}" = set; then
36149 echo $ECHO_N "(cached) $ECHO_C" >&6
36151 cat >conftest.$ac_ext <<_ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h. */
36157 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36159 #define _spawnlp innocuous__spawnlp
36161 /* System header to define __stub macros and hopefully few prototypes,
36162 which can conflict with char _spawnlp (); below.
36163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36164 <limits.h> exists even on freestanding compilers. */
36167 # include <limits.h>
36169 # include <assert.h>
36174 /* Override any GCC internal prototype to avoid an error.
36175 Use char because int might match the return type of a GCC
36176 builtin and then its argument prototype would still apply. */
36181 /* The GNU C library defines this for functions which it implements
36182 to always fail with ENOSYS. Some functions are actually named
36183 something starting with __ and the normal name is an alias. */
36184 #if defined __stub__spawnlp || defined __stub____spawnlp
36191 return _spawnlp ();
36196 rm -f conftest.$ac_objext conftest$ac_exeext
36197 if { (ac_try="$ac_link"
36198 case "(($ac_try" in
36199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36200 *) ac_try_echo=$ac_try;;
36202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36203 (eval "$ac_link") 2>conftest.er1
36205 grep -v '^ *+' conftest.er1 >conftest.err
36207 cat conftest.err >&5
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); } && {
36210 test -z "$ac_c_werror_flag" ||
36211 test ! -s conftest.err
36212 } && test -s conftest$ac_exeext &&
36213 $as_test_x conftest$ac_exeext; then
36214 ac_cv_func__spawnlp=yes
36216 echo "$as_me: failed program was:" >&5
36217 sed 's/^/| /' conftest.$ac_ext >&5
36219 ac_cv_func__spawnlp=no
36222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36223 conftest$ac_exeext conftest.$ac_ext
36225 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36226 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36227 if test $ac_cv_func__spawnlp = yes; then
36229 cat >>confdefs.h <<\_ACEOF
36230 #define HAVE_SPAWNLP 1
36236 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36237 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36238 if test "${ac_cv_func__snprintf+set}" = set; then
36239 echo $ECHO_N "(cached) $ECHO_C" >&6
36241 cat >conftest.$ac_ext <<_ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h. */
36247 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36249 #define _snprintf innocuous__snprintf
36251 /* System header to define __stub macros and hopefully few prototypes,
36252 which can conflict with char _snprintf (); below.
36253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36254 <limits.h> exists even on freestanding compilers. */
36257 # include <limits.h>
36259 # include <assert.h>
36264 /* Override any GCC internal prototype to avoid an error.
36265 Use char because int might match the return type of a GCC
36266 builtin and then its argument prototype would still apply. */
36271 /* The GNU C library defines this for functions which it implements
36272 to always fail with ENOSYS. Some functions are actually named
36273 something starting with __ and the normal name is an alias. */
36274 #if defined __stub__snprintf || defined __stub____snprintf
36281 return _snprintf ();
36286 rm -f conftest.$ac_objext conftest$ac_exeext
36287 if { (ac_try="$ac_link"
36288 case "(($ac_try" in
36289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36290 *) ac_try_echo=$ac_try;;
36292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36293 (eval "$ac_link") 2>conftest.er1
36295 grep -v '^ *+' conftest.er1 >conftest.err
36297 cat conftest.err >&5
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); } && {
36300 test -z "$ac_c_werror_flag" ||
36301 test ! -s conftest.err
36302 } && test -s conftest$ac_exeext &&
36303 $as_test_x conftest$ac_exeext; then
36304 ac_cv_func__snprintf=yes
36306 echo "$as_me: failed program was:" >&5
36307 sed 's/^/| /' conftest.$ac_ext >&5
36309 ac_cv_func__snprintf=no
36312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36313 conftest$ac_exeext conftest.$ac_ext
36315 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36316 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36317 if test $ac_cv_func__snprintf = yes; then
36318 ac_cv_func_snprintf=yes
36320 cat >>confdefs.h <<\_ACEOF
36321 #define snprintf _snprintf
36330 for ac_func in vsnprintf _vsnprintf
36332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36336 echo $ECHO_N "(cached) $ECHO_C" >&6
36338 cat >conftest.$ac_ext <<_ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h. */
36344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36346 #define $ac_func innocuous_$ac_func
36348 /* System header to define __stub macros and hopefully few prototypes,
36349 which can conflict with char $ac_func (); below.
36350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36351 <limits.h> exists even on freestanding compilers. */
36354 # include <limits.h>
36356 # include <assert.h>
36361 /* Override any GCC internal prototype to avoid an error.
36362 Use char because int might match the return type of a GCC
36363 builtin and then its argument prototype would still apply. */
36368 /* The GNU C library defines this for functions which it implements
36369 to always fail with ENOSYS. Some functions are actually named
36370 something starting with __ and the normal name is an alias. */
36371 #if defined __stub_$ac_func || defined __stub___$ac_func
36378 return $ac_func ();
36383 rm -f conftest.$ac_objext conftest$ac_exeext
36384 if { (ac_try="$ac_link"
36385 case "(($ac_try" in
36386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36387 *) ac_try_echo=$ac_try;;
36389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36390 (eval "$ac_link") 2>conftest.er1
36392 grep -v '^ *+' conftest.er1 >conftest.err
36394 cat conftest.err >&5
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); } && {
36397 test -z "$ac_c_werror_flag" ||
36398 test ! -s conftest.err
36399 } && test -s conftest$ac_exeext &&
36400 $as_test_x conftest$ac_exeext; then
36401 eval "$as_ac_var=yes"
36403 echo "$as_me: failed program was:" >&5
36404 sed 's/^/| /' conftest.$ac_ext >&5
36406 eval "$as_ac_var=no"
36409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36410 conftest$ac_exeext conftest.$ac_ext
36412 ac_res=`eval echo '${'$as_ac_var'}'`
36413 { echo "$as_me:$LINENO: result: $ac_res" >&5
36414 echo "${ECHO_T}$ac_res" >&6; }
36415 if test `eval echo '${'$as_ac_var'}'` = yes; then
36416 cat >>confdefs.h <<_ACEOF
36417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36424 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36425 ac_cv_func_vsnprintf=yes
36427 cat >>confdefs.h <<\_ACEOF
36428 #define vsnprintf _vsnprintf
36434 for ac_func in vprintf
36436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36440 echo $ECHO_N "(cached) $ECHO_C" >&6
36442 cat >conftest.$ac_ext <<_ACEOF
36445 cat confdefs.h >>conftest.$ac_ext
36446 cat >>conftest.$ac_ext <<_ACEOF
36447 /* end confdefs.h. */
36448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36450 #define $ac_func innocuous_$ac_func
36452 /* System header to define __stub macros and hopefully few prototypes,
36453 which can conflict with char $ac_func (); below.
36454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36455 <limits.h> exists even on freestanding compilers. */
36458 # include <limits.h>
36460 # include <assert.h>
36465 /* Override any GCC internal prototype to avoid an error.
36466 Use char because int might match the return type of a GCC
36467 builtin and then its argument prototype would still apply. */
36472 /* The GNU C library defines this for functions which it implements
36473 to always fail with ENOSYS. Some functions are actually named
36474 something starting with __ and the normal name is an alias. */
36475 #if defined __stub_$ac_func || defined __stub___$ac_func
36482 return $ac_func ();
36487 rm -f conftest.$ac_objext conftest$ac_exeext
36488 if { (ac_try="$ac_link"
36489 case "(($ac_try" in
36490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491 *) ac_try_echo=$ac_try;;
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494 (eval "$ac_link") 2>conftest.er1
36496 grep -v '^ *+' conftest.er1 >conftest.err
36498 cat conftest.err >&5
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); } && {
36501 test -z "$ac_c_werror_flag" ||
36502 test ! -s conftest.err
36503 } && test -s conftest$ac_exeext &&
36504 $as_test_x conftest$ac_exeext; then
36505 eval "$as_ac_var=yes"
36507 echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36510 eval "$as_ac_var=no"
36513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36514 conftest$ac_exeext conftest.$ac_ext
36516 ac_res=`eval echo '${'$as_ac_var'}'`
36517 { echo "$as_me:$LINENO: result: $ac_res" >&5
36518 echo "${ECHO_T}$ac_res" >&6; }
36519 if test `eval echo '${'$as_ac_var'}'` = yes; then
36520 cat >>confdefs.h <<_ACEOF
36521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36524 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36525 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36526 if test "${ac_cv_func__doprnt+set}" = set; then
36527 echo $ECHO_N "(cached) $ECHO_C" >&6
36529 cat >conftest.$ac_ext <<_ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h. */
36535 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36537 #define _doprnt innocuous__doprnt
36539 /* System header to define __stub macros and hopefully few prototypes,
36540 which can conflict with char _doprnt (); below.
36541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36542 <limits.h> exists even on freestanding compilers. */
36545 # include <limits.h>
36547 # include <assert.h>
36552 /* Override any GCC internal prototype to avoid an error.
36553 Use char because int might match the return type of a GCC
36554 builtin and then its argument prototype would still apply. */
36559 /* The GNU C library defines this for functions which it implements
36560 to always fail with ENOSYS. Some functions are actually named
36561 something starting with __ and the normal name is an alias. */
36562 #if defined __stub__doprnt || defined __stub____doprnt
36574 rm -f conftest.$ac_objext conftest$ac_exeext
36575 if { (ac_try="$ac_link"
36576 case "(($ac_try" in
36577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36578 *) ac_try_echo=$ac_try;;
36580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36581 (eval "$ac_link") 2>conftest.er1
36583 grep -v '^ *+' conftest.er1 >conftest.err
36585 cat conftest.err >&5
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); } && {
36588 test -z "$ac_c_werror_flag" ||
36589 test ! -s conftest.err
36590 } && test -s conftest$ac_exeext &&
36591 $as_test_x conftest$ac_exeext; then
36592 ac_cv_func__doprnt=yes
36594 echo "$as_me: failed program was:" >&5
36595 sed 's/^/| /' conftest.$ac_ext >&5
36597 ac_cv_func__doprnt=no
36600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36601 conftest$ac_exeext conftest.$ac_ext
36603 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36604 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36605 if test $ac_cv_func__doprnt = yes; then
36607 cat >>confdefs.h <<\_ACEOF
36608 #define HAVE_DOPRNT 1
36618 if test $ac_cv_func_vprintf = yes ; then
36621 for ac_func in snprintf vsnprintf
36623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36627 echo $ECHO_N "(cached) $ECHO_C" >&6
36629 cat >conftest.$ac_ext <<_ACEOF
36632 cat confdefs.h >>conftest.$ac_ext
36633 cat >>conftest.$ac_ext <<_ACEOF
36634 /* end confdefs.h. */
36635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36637 #define $ac_func innocuous_$ac_func
36639 /* System header to define __stub macros and hopefully few prototypes,
36640 which can conflict with char $ac_func (); below.
36641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36642 <limits.h> exists even on freestanding compilers. */
36645 # include <limits.h>
36647 # include <assert.h>
36652 /* Override any GCC internal prototype to avoid an error.
36653 Use char because int might match the return type of a GCC
36654 builtin and then its argument prototype would still apply. */
36659 /* The GNU C library defines this for functions which it implements
36660 to always fail with ENOSYS. Some functions are actually named
36661 something starting with __ and the normal name is an alias. */
36662 #if defined __stub_$ac_func || defined __stub___$ac_func
36669 return $ac_func ();
36674 rm -f conftest.$ac_objext conftest$ac_exeext
36675 if { (ac_try="$ac_link"
36676 case "(($ac_try" in
36677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678 *) ac_try_echo=$ac_try;;
36680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36681 (eval "$ac_link") 2>conftest.er1
36683 grep -v '^ *+' conftest.er1 >conftest.err
36685 cat conftest.err >&5
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); } && {
36688 test -z "$ac_c_werror_flag" ||
36689 test ! -s conftest.err
36690 } && test -s conftest$ac_exeext &&
36691 $as_test_x conftest$ac_exeext; then
36692 eval "$as_ac_var=yes"
36694 echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36697 eval "$as_ac_var=no"
36700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36701 conftest$ac_exeext conftest.$ac_ext
36703 ac_res=`eval echo '${'$as_ac_var'}'`
36704 { echo "$as_me:$LINENO: result: $ac_res" >&5
36705 echo "${ECHO_T}$ac_res" >&6; }
36706 if test `eval echo '${'$as_ac_var'}'` = yes; then
36707 cat >>confdefs.h <<_ACEOF
36708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36835 echo $ECHO_N "(cached) $ECHO_C" >&6
36837 cat >conftest.$ac_ext <<_ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h. */
36843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36845 #define $ac_func innocuous_$ac_func
36847 /* System header to define __stub macros and hopefully few prototypes,
36848 which can conflict with char $ac_func (); below.
36849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36850 <limits.h> exists even on freestanding compilers. */
36853 # include <limits.h>
36855 # include <assert.h>
36860 /* Override any GCC internal prototype to avoid an error.
36861 Use char because int might match the return type of a GCC
36862 builtin and then its argument prototype would still apply. */
36867 /* The GNU C library defines this for functions which it implements
36868 to always fail with ENOSYS. Some functions are actually named
36869 something starting with __ and the normal name is an alias. */
36870 #if defined __stub_$ac_func || defined __stub___$ac_func
36877 return $ac_func ();
36882 rm -f conftest.$ac_objext conftest$ac_exeext
36883 if { (ac_try="$ac_link"
36884 case "(($ac_try" in
36885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886 *) ac_try_echo=$ac_try;;
36888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36889 (eval "$ac_link") 2>conftest.er1
36891 grep -v '^ *+' conftest.er1 >conftest.err
36893 cat conftest.err >&5
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); } && {
36896 test -z "$ac_c_werror_flag" ||
36897 test ! -s conftest.err
36898 } && test -s conftest$ac_exeext &&
36899 $as_test_x conftest$ac_exeext; then
36900 eval "$as_ac_var=yes"
36902 echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36905 eval "$as_ac_var=no"
36908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36909 conftest$ac_exeext conftest.$ac_ext
36911 ac_res=`eval echo '${'$as_ac_var'}'`
36912 { echo "$as_me:$LINENO: result: $ac_res" >&5
36913 echo "${ECHO_T}$ac_res" >&6; }
36914 if test `eval echo '${'$as_ac_var'}'` = yes; then
36915 cat >>confdefs.h <<_ACEOF
36916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36925 for ac_func in getopt getpeereid
36927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36931 echo $ECHO_N "(cached) $ECHO_C" >&6
36933 cat >conftest.$ac_ext <<_ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h. */
36939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36941 #define $ac_func innocuous_$ac_func
36943 /* System header to define __stub macros and hopefully few prototypes,
36944 which can conflict with char $ac_func (); below.
36945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36946 <limits.h> exists even on freestanding compilers. */
36949 # include <limits.h>
36951 # include <assert.h>
36956 /* Override any GCC internal prototype to avoid an error.
36957 Use char because int might match the return type of a GCC
36958 builtin and then its argument prototype would still apply. */
36963 /* The GNU C library defines this for functions which it implements
36964 to always fail with ENOSYS. Some functions are actually named
36965 something starting with __ and the normal name is an alias. */
36966 #if defined __stub_$ac_func || defined __stub___$ac_func
36973 return $ac_func ();
36978 rm -f conftest.$ac_objext conftest$ac_exeext
36979 if { (ac_try="$ac_link"
36980 case "(($ac_try" in
36981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36982 *) ac_try_echo=$ac_try;;
36984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36985 (eval "$ac_link") 2>conftest.er1
36987 grep -v '^ *+' conftest.er1 >conftest.err
36989 cat conftest.err >&5
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); } && {
36992 test -z "$ac_c_werror_flag" ||
36993 test ! -s conftest.err
36994 } && test -s conftest$ac_exeext &&
36995 $as_test_x conftest$ac_exeext; then
36996 eval "$as_ac_var=yes"
36998 echo "$as_me: failed program was:" >&5
36999 sed 's/^/| /' conftest.$ac_ext >&5
37001 eval "$as_ac_var=no"
37004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37005 conftest$ac_exeext conftest.$ac_ext
37007 ac_res=`eval echo '${'$as_ac_var'}'`
37008 { echo "$as_me:$LINENO: result: $ac_res" >&5
37009 echo "${ECHO_T}$ac_res" >&6; }
37010 if test `eval echo '${'$as_ac_var'}'` = yes; then
37011 cat >>confdefs.h <<_ACEOF
37012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37016 case " $LIBOBJS " in
37017 *" $ac_func.$ac_objext "* ) ;;
37018 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37027 if test "$ac_cv_func_getopt" != yes; then
37028 LIBSRCS="$LIBSRCS getopt.c"
37031 if test "$ac_cv_func_getpeereid" != yes; then
37033 for ac_func in getpeerucred
37035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37039 echo $ECHO_N "(cached) $ECHO_C" >&6
37041 cat >conftest.$ac_ext <<_ACEOF
37044 cat confdefs.h >>conftest.$ac_ext
37045 cat >>conftest.$ac_ext <<_ACEOF
37046 /* end confdefs.h. */
37047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37049 #define $ac_func innocuous_$ac_func
37051 /* System header to define __stub macros and hopefully few prototypes,
37052 which can conflict with char $ac_func (); below.
37053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37054 <limits.h> exists even on freestanding compilers. */
37057 # include <limits.h>
37059 # include <assert.h>
37064 /* Override any GCC internal prototype to avoid an error.
37065 Use char because int might match the return type of a GCC
37066 builtin and then its argument prototype would still apply. */
37071 /* The GNU C library defines this for functions which it implements
37072 to always fail with ENOSYS. Some functions are actually named
37073 something starting with __ and the normal name is an alias. */
37074 #if defined __stub_$ac_func || defined __stub___$ac_func
37081 return $ac_func ();
37086 rm -f conftest.$ac_objext conftest$ac_exeext
37087 if { (ac_try="$ac_link"
37088 case "(($ac_try" in
37089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090 *) ac_try_echo=$ac_try;;
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093 (eval "$ac_link") 2>conftest.er1
37095 grep -v '^ *+' conftest.er1 >conftest.err
37097 cat conftest.err >&5
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } && {
37100 test -z "$ac_c_werror_flag" ||
37101 test ! -s conftest.err
37102 } && test -s conftest$ac_exeext &&
37103 $as_test_x conftest$ac_exeext; then
37104 eval "$as_ac_var=yes"
37106 echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37109 eval "$as_ac_var=no"
37112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37113 conftest$ac_exeext conftest.$ac_ext
37115 ac_res=`eval echo '${'$as_ac_var'}'`
37116 { echo "$as_me:$LINENO: result: $ac_res" >&5
37117 echo "${ECHO_T}$ac_res" >&6; }
37118 if test `eval echo '${'$as_ac_var'}'` = yes; then
37119 cat >>confdefs.h <<_ACEOF
37120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37126 if test "$ac_cv_func_getpeerucred" != yes ; then
37127 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37128 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37129 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37130 echo $ECHO_N "(cached) $ECHO_C" >&6
37132 cat >conftest.$ac_ext <<_ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37138 $ac_includes_default
37139 #ifdef HAVE_SYS_SOCKET_H
37140 #include <sys/socket.h>
37146 static struct msghdr ac_aggr;
37147 if (ac_aggr.msg_accrightslen)
37153 rm -f conftest.$ac_objext
37154 if { (ac_try="$ac_compile"
37155 case "(($ac_try" in
37156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37157 *) ac_try_echo=$ac_try;;
37159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37160 (eval "$ac_compile") 2>conftest.er1
37162 grep -v '^ *+' conftest.er1 >conftest.err
37164 cat conftest.err >&5
37165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166 (exit $ac_status); } && {
37167 test -z "$ac_c_werror_flag" ||
37168 test ! -s conftest.err
37169 } && test -s conftest.$ac_objext; then
37170 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37172 echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37175 cat >conftest.$ac_ext <<_ACEOF
37178 cat confdefs.h >>conftest.$ac_ext
37179 cat >>conftest.$ac_ext <<_ACEOF
37180 /* end confdefs.h. */
37181 $ac_includes_default
37182 #ifdef HAVE_SYS_SOCKET_H
37183 #include <sys/socket.h>
37189 static struct msghdr ac_aggr;
37190 if (sizeof ac_aggr.msg_accrightslen)
37196 rm -f conftest.$ac_objext
37197 if { (ac_try="$ac_compile"
37198 case "(($ac_try" in
37199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37200 *) ac_try_echo=$ac_try;;
37202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37203 (eval "$ac_compile") 2>conftest.er1
37205 grep -v '^ *+' conftest.er1 >conftest.err
37207 cat conftest.err >&5
37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209 (exit $ac_status); } && {
37210 test -z "$ac_c_werror_flag" ||
37211 test ! -s conftest.err
37212 } && test -s conftest.$ac_objext; then
37213 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37215 echo "$as_me: failed program was:" >&5
37216 sed 's/^/| /' conftest.$ac_ext >&5
37218 ac_cv_member_struct_msghdr_msg_accrightslen=no
37221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37226 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37227 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37228 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37230 cat >>confdefs.h <<_ACEOF
37231 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37237 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37238 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37239 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37240 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37241 echo $ECHO_N "(cached) $ECHO_C" >&6
37243 cat >conftest.$ac_ext <<_ACEOF
37246 cat confdefs.h >>conftest.$ac_ext
37247 cat >>conftest.$ac_ext <<_ACEOF
37248 /* end confdefs.h. */
37249 $ac_includes_default
37250 #ifdef HAVE_SYS_SOCKET_H
37251 #include <sys/socket.h>
37257 static struct msghdr ac_aggr;
37258 if (ac_aggr.msg_control)
37264 rm -f conftest.$ac_objext
37265 if { (ac_try="$ac_compile"
37266 case "(($ac_try" in
37267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268 *) ac_try_echo=$ac_try;;
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271 (eval "$ac_compile") 2>conftest.er1
37273 grep -v '^ *+' conftest.er1 >conftest.err
37275 cat conftest.err >&5
37276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277 (exit $ac_status); } && {
37278 test -z "$ac_c_werror_flag" ||
37279 test ! -s conftest.err
37280 } && test -s conftest.$ac_objext; then
37281 ac_cv_member_struct_msghdr_msg_control=yes
37283 echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37286 cat >conftest.$ac_ext <<_ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h. */
37292 $ac_includes_default
37293 #ifdef HAVE_SYS_SOCKET_H
37294 #include <sys/socket.h>
37300 static struct msghdr ac_aggr;
37301 if (sizeof ac_aggr.msg_control)
37307 rm -f conftest.$ac_objext
37308 if { (ac_try="$ac_compile"
37309 case "(($ac_try" in
37310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311 *) ac_try_echo=$ac_try;;
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314 (eval "$ac_compile") 2>conftest.er1
37316 grep -v '^ *+' conftest.er1 >conftest.err
37318 cat conftest.err >&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } && {
37321 test -z "$ac_c_werror_flag" ||
37322 test ! -s conftest.err
37323 } && test -s conftest.$ac_objext; then
37324 ac_cv_member_struct_msghdr_msg_control=yes
37326 echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37329 ac_cv_member_struct_msghdr_msg_control=no
37332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37338 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37339 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37341 cat >>confdefs.h <<_ACEOF
37342 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37349 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37350 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37351 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37352 echo $ECHO_N "(cached) $ECHO_C" >&6
37354 cat >conftest.$ac_ext <<_ACEOF
37357 cat confdefs.h >>conftest.$ac_ext
37358 cat >>conftest.$ac_ext <<_ACEOF
37359 /* end confdefs.h. */
37360 $ac_includes_default
37364 static struct stat ac_aggr;
37365 if (ac_aggr.st_fstype)
37371 rm -f conftest.$ac_objext
37372 if { (ac_try="$ac_compile"
37373 case "(($ac_try" in
37374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37375 *) ac_try_echo=$ac_try;;
37377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37378 (eval "$ac_compile") 2>conftest.er1
37380 grep -v '^ *+' conftest.er1 >conftest.err
37382 cat conftest.err >&5
37383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384 (exit $ac_status); } && {
37385 test -z "$ac_c_werror_flag" ||
37386 test ! -s conftest.err
37387 } && test -s conftest.$ac_objext; then
37388 ac_cv_member_struct_stat_st_fstype=yes
37390 echo "$as_me: failed program was:" >&5
37391 sed 's/^/| /' conftest.$ac_ext >&5
37393 cat >conftest.$ac_ext <<_ACEOF
37396 cat confdefs.h >>conftest.$ac_ext
37397 cat >>conftest.$ac_ext <<_ACEOF
37398 /* end confdefs.h. */
37399 $ac_includes_default
37403 static struct stat ac_aggr;
37404 if (sizeof ac_aggr.st_fstype)
37410 rm -f conftest.$ac_objext
37411 if { (ac_try="$ac_compile"
37412 case "(($ac_try" in
37413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414 *) ac_try_echo=$ac_try;;
37416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37417 (eval "$ac_compile") 2>conftest.er1
37419 grep -v '^ *+' conftest.er1 >conftest.err
37421 cat conftest.err >&5
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); } && {
37424 test -z "$ac_c_werror_flag" ||
37425 test ! -s conftest.err
37426 } && test -s conftest.$ac_objext; then
37427 ac_cv_member_struct_stat_st_fstype=yes
37429 echo "$as_me: failed program was:" >&5
37430 sed 's/^/| /' conftest.$ac_ext >&5
37432 ac_cv_member_struct_stat_st_fstype=no
37435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37440 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37441 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37442 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37444 cat >>confdefs.h <<_ACEOF
37445 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37450 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37451 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37452 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37453 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 cat >conftest.$ac_ext <<_ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h. */
37461 $ac_includes_default
37465 static struct stat ac_aggr;
37466 if (ac_aggr.st_vfstype)
37472 rm -f conftest.$ac_objext
37473 if { (ac_try="$ac_compile"
37474 case "(($ac_try" in
37475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37476 *) ac_try_echo=$ac_try;;
37478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37479 (eval "$ac_compile") 2>conftest.er1
37481 grep -v '^ *+' conftest.er1 >conftest.err
37483 cat conftest.err >&5
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); } && {
37486 test -z "$ac_c_werror_flag" ||
37487 test ! -s conftest.err
37488 } && test -s conftest.$ac_objext; then
37489 ac_cv_member_struct_stat_st_vfstype=yes
37491 echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37494 cat >conftest.$ac_ext <<_ACEOF
37497 cat confdefs.h >>conftest.$ac_ext
37498 cat >>conftest.$ac_ext <<_ACEOF
37499 /* end confdefs.h. */
37500 $ac_includes_default
37504 static struct stat ac_aggr;
37505 if (sizeof ac_aggr.st_vfstype)
37511 rm -f conftest.$ac_objext
37512 if { (ac_try="$ac_compile"
37513 case "(($ac_try" in
37514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37515 *) ac_try_echo=$ac_try;;
37517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37518 (eval "$ac_compile") 2>conftest.er1
37520 grep -v '^ *+' conftest.er1 >conftest.err
37522 cat conftest.err >&5
37523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 (exit $ac_status); } && {
37525 test -z "$ac_c_werror_flag" ||
37526 test ! -s conftest.err
37527 } && test -s conftest.$ac_objext; then
37528 ac_cv_member_struct_stat_st_vfstype=yes
37530 echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37533 ac_cv_member_struct_stat_st_vfstype=no
37536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37541 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37542 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37543 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37545 cat >>confdefs.h <<_ACEOF
37546 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37552 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37553 cat >conftest.$ac_ext <<_ACEOF
37554 struct stat st; char *ptr=st.st_fstype;
37556 rm -f conftest.$ac_objext
37557 if { (ac_try="$ac_compile"
37558 case "(($ac_try" in
37559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37560 *) ac_try_echo=$ac_try;;
37562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37563 (eval "$ac_compile") 2>conftest.er1
37565 grep -v '^ *+' conftest.er1 >conftest.err
37567 cat conftest.err >&5
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); } && {
37570 test -z "$ac_c_werror_flag" ||
37571 test ! -s conftest.err
37572 } && test -s conftest.$ac_objext; then
37574 cat >>confdefs.h <<\_ACEOF
37575 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37579 echo "$as_me: failed program was:" >&5
37580 sed 's/^/| /' conftest.$ac_ext >&5
37583 cat >>confdefs.h <<\_ACEOF
37584 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37592 LIBSRCS="$LIBSRCS getpeereid.c"
37595 if test "$ac_cv_func_snprintf" != yes ||
37596 test "$ac_cv_func_vsnprintf" != yes; then
37597 if test "$ac_cv_func_snprintf" != yes; then
37599 cat >>confdefs.h <<\_ACEOF
37600 #define snprintf ber_pvt_snprintf
37604 if test "$ac_cv_func_vsnprintf" != yes; then
37606 cat >>confdefs.h <<\_ACEOF
37607 #define vsnprintf ber_pvt_vsnprintf
37614 if test "$ol_enable_slapi" != no ; then
37616 for ac_header in ltdl.h
37618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37623 echo $ECHO_N "(cached) $ECHO_C" >&6
37625 ac_res=`eval echo '${'$as_ac_Header'}'`
37626 { echo "$as_me:$LINENO: result: $ac_res" >&5
37627 echo "${ECHO_T}$ac_res" >&6; }
37629 # Is the header compilable?
37630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37632 cat >conftest.$ac_ext <<_ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h. */
37638 $ac_includes_default
37639 #include <$ac_header>
37641 rm -f conftest.$ac_objext
37642 if { (ac_try="$ac_compile"
37643 case "(($ac_try" in
37644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645 *) ac_try_echo=$ac_try;;
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648 (eval "$ac_compile") 2>conftest.er1
37650 grep -v '^ *+' conftest.er1 >conftest.err
37652 cat conftest.err >&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); } && {
37655 test -z "$ac_c_werror_flag" ||
37656 test ! -s conftest.err
37657 } && test -s conftest.$ac_objext; then
37658 ac_header_compiler=yes
37660 echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37663 ac_header_compiler=no
37666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37668 echo "${ECHO_T}$ac_header_compiler" >&6; }
37670 # Is the header present?
37671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37673 cat >conftest.$ac_ext <<_ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h. */
37679 #include <$ac_header>
37681 if { (ac_try="$ac_cpp conftest.$ac_ext"
37682 case "(($ac_try" in
37683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684 *) ac_try_echo=$ac_try;;
37686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37689 grep -v '^ *+' conftest.er1 >conftest.err
37691 cat conftest.err >&5
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); } >/dev/null && {
37694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37695 test ! -s conftest.err
37697 ac_header_preproc=yes
37699 echo "$as_me: failed program was:" >&5
37700 sed 's/^/| /' conftest.$ac_ext >&5
37702 ac_header_preproc=no
37705 rm -f conftest.err conftest.$ac_ext
37706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37707 echo "${ECHO_T}$ac_header_preproc" >&6; }
37709 # So? What about this header?
37710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37716 ac_header_preproc=yes
37719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37732 ## --------------------------------------------- ##
37733 ## Report this to <http://www.openldap.org/its/> ##
37734 ## --------------------------------------------- ##
37736 ) | sed "s/^/$as_me: WARNING: /" >&2
37739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37742 echo $ECHO_N "(cached) $ECHO_C" >&6
37744 eval "$as_ac_Header=\$ac_header_preproc"
37746 ac_res=`eval echo '${'$as_ac_Header'}'`
37747 { echo "$as_me:$LINENO: result: $ac_res" >&5
37748 echo "${ECHO_T}$ac_res" >&6; }
37751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37752 cat >>confdefs.h <<_ACEOF
37753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37761 if test $ac_cv_header_ltdl_h != yes ; then
37762 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37763 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37764 { (exit 1); exit 1; }; }
37766 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37767 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
37768 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37769 echo $ECHO_N "(cached) $ECHO_C" >&6
37771 ac_check_lib_save_LIBS=$LIBS
37772 LIBS="-lltdl $LIBS"
37773 cat >conftest.$ac_ext <<_ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h. */
37780 /* Override any GCC internal prototype to avoid an error.
37781 Use char because int might match the return type of a GCC
37782 builtin and then its argument prototype would still apply. */
37790 return lt_dlinit ();
37795 rm -f conftest.$ac_objext conftest$ac_exeext
37796 if { (ac_try="$ac_link"
37797 case "(($ac_try" in
37798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37799 *) ac_try_echo=$ac_try;;
37801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37802 (eval "$ac_link") 2>conftest.er1
37804 grep -v '^ *+' conftest.er1 >conftest.err
37806 cat conftest.err >&5
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); } && {
37809 test -z "$ac_c_werror_flag" ||
37810 test ! -s conftest.err
37811 } && test -s conftest$ac_exeext &&
37812 $as_test_x conftest$ac_exeext; then
37813 ac_cv_lib_ltdl_lt_dlinit=yes
37815 echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37818 ac_cv_lib_ltdl_lt_dlinit=no
37821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37822 conftest$ac_exeext conftest.$ac_ext
37823 LIBS=$ac_check_lib_save_LIBS
37825 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37826 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
37827 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37830 LIBSLAPI=libslapi.a
37831 LIBSLAPITOOLS=../libslapi.a
37833 cat >>confdefs.h <<\_ACEOF
37834 #define HAVE_LIBLTDL 1
37839 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37840 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37841 { (exit 1); exit 1; }; }
37846 cat >>confdefs.h <<\_ACEOF
37847 #define LDAP_SLAPI 1
37852 if test "$ol_enable_debug" != no ; then
37853 if test "$ol_enable_debug" = traditional; then
37855 cat >>confdefs.h <<\_ACEOF
37856 #define OLD_DEBUG 1
37861 cat >>confdefs.h <<\_ACEOF
37862 #define LDAP_DEBUG 1
37866 if test "$ol_enable_syslog" = yes ; then
37868 cat >>confdefs.h <<\_ACEOF
37869 #define LDAP_SYSLOG 1
37873 if test "$ol_enable_proctitle" != no ; then
37875 cat >>confdefs.h <<\_ACEOF
37876 #define LDAP_PROCTITLE 1
37880 if test "$ol_enable_referrals" != no ; then
37882 cat >>confdefs.h <<\_ACEOF
37883 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37887 if test "$ol_enable_local" != no; then
37889 cat >>confdefs.h <<\_ACEOF
37890 #define LDAP_PF_LOCAL 1
37894 if test "$ol_link_ipv6" != no; then
37896 cat >>confdefs.h <<\_ACEOF
37897 #define LDAP_PF_INET6 1
37901 if test "$ol_enable_cleartext" != no ; then
37903 cat >>confdefs.h <<\_ACEOF
37904 #define SLAPD_CLEARTEXT 1
37908 if test "$ol_enable_crypt" != no ; then
37910 cat >>confdefs.h <<\_ACEOF
37911 #define SLAPD_CRYPT 1
37915 if test "$ol_link_spasswd" != no ; then
37917 cat >>confdefs.h <<\_ACEOF
37918 #define SLAPD_SPASSWD 1
37922 if test "$ol_enable_rlookups" != no ; then
37924 cat >>confdefs.h <<\_ACEOF
37925 #define SLAPD_RLOOKUPS 1
37929 if test "$ol_enable_aci" != no ; then
37930 if test $ol_enable_dynacl = no ; then
37931 ol_enable_dynacl=yes
37932 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37933 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37935 if test "$ol_enable_aci" = mod ; then
37936 MFLAG=SLAPD_MOD_DYNAMIC
37937 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37938 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37939 { (exit 1); exit 1; }; }
37941 MFLAG=SLAPD_MOD_STATIC
37943 WITH_ACI_ENABLED=$ol_enable_aci
37945 cat >>confdefs.h <<_ACEOF
37946 #define SLAPD_ACI_ENABLED $MFLAG
37950 WITH_ACI_ENABLED=no
37952 if test "$ol_enable_dynacl" != no ; then
37954 cat >>confdefs.h <<\_ACEOF
37955 #define SLAP_DYNACL 1
37960 if test "$ol_link_modules" != no ; then
37962 cat >>confdefs.h <<\_ACEOF
37963 #define SLAPD_MODULES 1
37967 SLAPD_MODULES_LDFLAGS="-dlopen self"
37971 cat >>confdefs.h <<\_ACEOF
37972 #define SLAPD_MOD_STATIC 1
37976 cat >>confdefs.h <<\_ACEOF
37977 #define SLAPD_MOD_DYNAMIC 2
37981 if test "$ol_enable_monitor" != no ; then
37983 BUILD_MONITOR=$ol_enable_monitor
37984 if test "$ol_enable_monitor" = mod ; then
37985 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37986 MFLAG=SLAPD_MOD_DYNAMIC
37988 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37989 MFLAG=SLAPD_MOD_STATIC
37992 cat >>confdefs.h <<_ACEOF
37993 #define SLAPD_MONITOR $MFLAG
37998 if test "$ol_enable_bdb" != no ; then
38000 BUILD_BDB=$ol_enable_bdb
38001 if test "$ol_enable_bdb" = mod ; then
38002 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38003 MFLAG=SLAPD_MOD_DYNAMIC
38005 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38006 MFLAG=SLAPD_MOD_STATIC
38009 cat >>confdefs.h <<_ACEOF
38010 #define SLAPD_BDB $MFLAG
38015 if test "$ol_enable_dnssrv" != no ; then
38017 BUILD_DNSSRV=$ol_enable_dnssrv
38018 if test "$ol_enable_dnssrv" = mod ; then
38019 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38020 MFLAG=SLAPD_MOD_DYNAMIC
38022 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38023 MFLAG=SLAPD_MOD_STATIC
38026 cat >>confdefs.h <<_ACEOF
38027 #define SLAPD_DNSSRV $MFLAG
38032 if test "$ol_enable_hdb" != no ; then
38034 BUILD_HDB=$ol_enable_hdb
38035 if test "$ol_enable_hdb" = mod ; then
38036 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38037 MFLAG=SLAPD_MOD_DYNAMIC
38039 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38040 MFLAG=SLAPD_MOD_STATIC
38043 cat >>confdefs.h <<_ACEOF
38044 #define SLAPD_HDB $MFLAG
38049 if test "$ol_enable_ldap" != no ; then
38051 BUILD_LDAP=$ol_enable_ldap
38052 if test "$ol_enable_ldap" = mod ; then
38053 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38054 MFLAG=SLAPD_MOD_DYNAMIC
38056 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38057 MFLAG=SLAPD_MOD_STATIC
38060 cat >>confdefs.h <<_ACEOF
38061 #define SLAPD_LDAP $MFLAG
38066 if test "$ol_enable_meta" != no ; then
38068 BUILD_META=$ol_enable_meta
38070 if test "$ol_enable_meta" = mod ; then
38071 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38072 MFLAG=SLAPD_MOD_DYNAMIC
38074 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38075 MFLAG=SLAPD_MOD_STATIC
38078 cat >>confdefs.h <<_ACEOF
38079 #define SLAPD_META $MFLAG
38084 if test "$ol_enable_ndb" != no ; then
38086 BUILD_NDB=$ol_enable_ndb
38087 if test "$ol_enable_ndb" = mod ; then
38088 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38089 MFLAG=SLAPD_MOD_DYNAMIC
38091 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38092 MFLAG=SLAPD_MOD_STATIC
38095 cat >>confdefs.h <<_ACEOF
38096 #define SLAPD_NDB $MFLAG
38101 if test "$ol_enable_null" != no ; then
38103 BUILD_NULL=$ol_enable_null
38104 if test "$ol_enable_null" = mod ; then
38105 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38106 MFLAG=SLAPD_MOD_DYNAMIC
38108 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38109 MFLAG=SLAPD_MOD_STATIC
38112 cat >>confdefs.h <<_ACEOF
38113 #define SLAPD_NULL $MFLAG
38118 if test "$ol_enable_passwd" != no ; then
38120 BUILD_PASSWD=$ol_enable_passwd
38121 if test "$ol_enable_passwd" = mod ; then
38122 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38123 MFLAG=SLAPD_MOD_DYNAMIC
38125 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38126 MFLAG=SLAPD_MOD_STATIC
38129 cat >>confdefs.h <<_ACEOF
38130 #define SLAPD_PASSWD $MFLAG
38135 if test "$ol_link_perl" != no ; then
38137 BUILD_PERL=$ol_enable_perl
38138 if test "$ol_enable_perl" = mod ; then
38139 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38140 MFLAG=SLAPD_MOD_DYNAMIC
38142 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38143 MFLAG=SLAPD_MOD_STATIC
38146 cat >>confdefs.h <<_ACEOF
38147 #define SLAPD_PERL $MFLAG
38152 if test "$ol_enable_relay" != no ; then
38154 BUILD_RELAY=$ol_enable_relay
38155 if test "$ol_enable_relay" = mod ; then
38156 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38157 MFLAG=SLAPD_MOD_DYNAMIC
38159 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38160 MFLAG=SLAPD_MOD_STATIC
38163 cat >>confdefs.h <<_ACEOF
38164 #define SLAPD_RELAY $MFLAG
38169 if test "$ol_enable_shell" != no ; then
38170 if test "$ol_link_threads" != no ; then
38171 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38172 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38175 BUILD_SHELL=$ol_enable_shell
38176 if test "$ol_enable_shell" = mod ; then
38177 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38178 MFLAG=SLAPD_MOD_DYNAMIC
38180 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38181 MFLAG=SLAPD_MOD_STATIC
38184 cat >>confdefs.h <<_ACEOF
38185 #define SLAPD_SHELL $MFLAG
38190 if test "$ol_enable_sock" != no ; then
38192 BUILD_SOCK=$ol_enable_sock
38193 if test "$ol_enable_sock" = mod ; then
38194 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38195 MFLAG=SLAPD_MOD_DYNAMIC
38197 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38198 MFLAG=SLAPD_MOD_STATIC
38201 cat >>confdefs.h <<_ACEOF
38202 #define SLAPD_SOCK $MFLAG
38207 if test "$ol_link_sql" != no ; then
38209 BUILD_SQL=$ol_enable_sql
38210 if test "$ol_enable_sql" = mod; then
38211 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38212 MFLAG=SLAPD_MOD_DYNAMIC
38214 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38215 MFLAG=SLAPD_MOD_STATIC
38218 cat >>confdefs.h <<_ACEOF
38219 #define SLAPD_SQL $MFLAG
38224 if test "$ol_enable_accesslog" != no ; then
38225 BUILD_ACCESSLOG=$ol_enable_accesslog
38226 if test "$ol_enable_accesslog" = mod ; then
38227 MFLAG=SLAPD_MOD_DYNAMIC
38228 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38230 MFLAG=SLAPD_MOD_STATIC
38231 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38234 cat >>confdefs.h <<_ACEOF
38235 #define SLAPD_OVER_ACCESSLOG $MFLAG
38240 if test "$ol_enable_auditlog" != no ; then
38241 BUILD_AUDITLOG=$ol_enable_auditlog
38242 if test "$ol_enable_auditlog" = mod ; then
38243 MFLAG=SLAPD_MOD_DYNAMIC
38244 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38246 MFLAG=SLAPD_MOD_STATIC
38247 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38250 cat >>confdefs.h <<_ACEOF
38251 #define SLAPD_OVER_AUDITLOG $MFLAG
38256 if test "$ol_enable_collect" != no ; then
38257 BUILD_COLLECT=$ol_enable_collect
38258 if test "$ol_enable_collect" = mod ; then
38259 MFLAG=SLAPD_MOD_DYNAMIC
38260 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38262 MFLAG=SLAPD_MOD_STATIC
38263 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38266 cat >>confdefs.h <<_ACEOF
38267 #define SLAPD_OVER_COLLECT $MFLAG
38272 if test "$ol_enable_constraint" != no ; then
38273 BUILD_CONSTRAINT=$ol_enable_constraint
38274 if test "$ol_enable_constraint" = mod ; then
38275 MFLAG=SLAPD_MOD_DYNAMIC
38276 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38278 MFLAG=SLAPD_MOD_STATIC
38279 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38282 cat >>confdefs.h <<_ACEOF
38283 #define SLAPD_OVER_CONSTRAINT $MFLAG
38288 if test "$ol_enable_dds" != no ; then
38289 BUILD_DDS=$ol_enable_dds
38290 if test "$ol_enable_dds" = mod ; then
38291 MFLAG=SLAPD_MOD_DYNAMIC
38292 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38294 MFLAG=SLAPD_MOD_STATIC
38295 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38298 cat >>confdefs.h <<_ACEOF
38299 #define SLAPD_OVER_DDS $MFLAG
38304 if test "$ol_enable_deref" != no ; then
38305 BUILD_DDS=$ol_enable_deref
38306 if test "$ol_enable_deref" = mod ; then
38307 MFLAG=SLAPD_MOD_DYNAMIC
38308 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38310 MFLAG=SLAPD_MOD_STATIC
38311 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38314 cat >>confdefs.h <<_ACEOF
38315 #define SLAPD_OVER_DEREF $MFLAG
38320 if test "$ol_enable_dyngroup" != no ; then
38321 BUILD_DYNGROUP=$ol_enable_dyngroup
38322 if test "$ol_enable_dyngroup" = mod ; then
38323 MFLAG=SLAPD_MOD_DYNAMIC
38324 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38326 MFLAG=SLAPD_MOD_STATIC
38327 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_OVER_DYNGROUP $MFLAG
38336 if test "$ol_enable_dynlist" != no ; then
38337 BUILD_DYNLIST=$ol_enable_dynlist
38338 if test "$ol_enable_dynlist" = mod ; then
38339 MFLAG=SLAPD_MOD_DYNAMIC
38340 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38342 MFLAG=SLAPD_MOD_STATIC
38343 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38346 cat >>confdefs.h <<_ACEOF
38347 #define SLAPD_OVER_DYNLIST $MFLAG
38352 if test "$ol_enable_memberof" != no ; then
38353 BUILD_MEMBEROF=$ol_enable_memberof
38354 if test "$ol_enable_memberof" = mod ; then
38355 MFLAG=SLAPD_MOD_DYNAMIC
38356 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38358 MFLAG=SLAPD_MOD_STATIC
38359 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38362 cat >>confdefs.h <<_ACEOF
38363 #define SLAPD_OVER_MEMBEROF $MFLAG
38368 if test "$ol_enable_ppolicy" != no ; then
38369 BUILD_PPOLICY=$ol_enable_ppolicy
38370 if test "$ol_enable_ppolicy" = mod ; then
38371 MFLAG=SLAPD_MOD_DYNAMIC
38372 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38374 MFLAG=SLAPD_MOD_STATIC
38375 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38378 cat >>confdefs.h <<_ACEOF
38379 #define SLAPD_OVER_PPOLICY $MFLAG
38384 if test "$ol_enable_proxycache" != no ; then
38385 BUILD_PROXYCACHE=$ol_enable_proxycache
38386 if test "$ol_enable_proxycache" = mod ; then
38387 MFLAG=SLAPD_MOD_DYNAMIC
38388 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38390 MFLAG=SLAPD_MOD_STATIC
38391 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38394 cat >>confdefs.h <<_ACEOF
38395 #define SLAPD_OVER_PROXYCACHE $MFLAG
38400 if test "$ol_enable_refint" != no ; then
38401 BUILD_REFINT=$ol_enable_refint
38402 if test "$ol_enable_refint" = mod ; then
38403 MFLAG=SLAPD_MOD_DYNAMIC
38404 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38406 MFLAG=SLAPD_MOD_STATIC
38407 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38410 cat >>confdefs.h <<_ACEOF
38411 #define SLAPD_OVER_REFINT $MFLAG
38416 if test "$ol_enable_retcode" != no ; then
38417 BUILD_RETCODE=$ol_enable_retcode
38418 if test "$ol_enable_retcode" = mod ; then
38419 MFLAG=SLAPD_MOD_DYNAMIC
38420 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38422 MFLAG=SLAPD_MOD_STATIC
38423 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38426 cat >>confdefs.h <<_ACEOF
38427 #define SLAPD_OVER_RETCODE $MFLAG
38432 if test "$ol_enable_rwm" != no ; then
38434 BUILD_RWM=$ol_enable_rwm
38435 if test "$ol_enable_rwm" = mod ; then
38436 MFLAG=SLAPD_MOD_DYNAMIC
38437 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38439 MFLAG=SLAPD_MOD_STATIC
38440 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38443 cat >>confdefs.h <<_ACEOF
38444 #define SLAPD_OVER_RWM $MFLAG
38449 if test "$ol_enable_seqmod" != no ; then
38450 BUILD_SEQMOD=$ol_enable_seqmod
38451 if test "$ol_enable_seqmod" = mod ; then
38452 MFLAG=SLAPD_MOD_DYNAMIC
38453 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38455 MFLAG=SLAPD_MOD_STATIC
38456 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38459 cat >>confdefs.h <<_ACEOF
38460 #define SLAPD_OVER_SEQMOD $MFLAG
38465 if test "$ol_enable_syncprov" != no ; then
38466 BUILD_SYNCPROV=$ol_enable_syncprov
38467 if test "$ol_enable_syncprov" = mod ; then
38468 MFLAG=SLAPD_MOD_DYNAMIC
38469 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38471 MFLAG=SLAPD_MOD_STATIC
38472 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38475 cat >>confdefs.h <<_ACEOF
38476 #define SLAPD_OVER_SYNCPROV $MFLAG
38481 if test "$ol_enable_translucent" != no ; then
38482 BUILD_TRANSLUCENT=$ol_enable_translucent
38483 if test "$ol_enable_translucent" = mod ; then
38484 MFLAG=SLAPD_MOD_DYNAMIC
38485 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38487 MFLAG=SLAPD_MOD_STATIC
38488 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38491 cat >>confdefs.h <<_ACEOF
38492 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38497 if test "$ol_enable_unique" != no ; then
38498 BUILD_UNIQUE=$ol_enable_unique
38499 if test "$ol_enable_unique" = mod ; then
38500 MFLAG=SLAPD_MOD_DYNAMIC
38501 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38503 MFLAG=SLAPD_MOD_STATIC
38504 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38507 cat >>confdefs.h <<_ACEOF
38508 #define SLAPD_OVER_UNIQUE $MFLAG
38513 if test "$ol_enable_valsort" != no ; then
38514 BUILD_VALSORT=$ol_enable_valsort
38515 if test "$ol_enable_valsort" = mod ; then
38516 MFLAG=SLAPD_MOD_DYNAMIC
38517 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38519 MFLAG=SLAPD_MOD_STATIC
38520 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38523 cat >>confdefs.h <<_ACEOF
38524 #define SLAPD_OVER_VALSORT $MFLAG
38529 if test "$ol_enable_rewrite" != no ; then
38531 cat >>confdefs.h <<\_ACEOF
38532 #define ENABLE_REWRITE 1
38538 if test "$ol_enable_slapi" != no ; then
38540 cat >>confdefs.h <<\_ACEOF
38541 #define ENABLE_SLAPI 1
38545 SLAPD_SLAPI_DEPEND=libslapi.a
38550 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38552 SLAPD_MODULES_LDFLAGS=
38645 # Check whether --with-xxinstall was given.
38646 if test "${with_xxinstall+set}" = set; then
38647 withval=$with_xxinstall;
38652 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"
38655 ac_config_commands="$ac_config_commands default"
38659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38660 # Let make expand exec_prefix.
38661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38663 DEFS=-DHAVE_CONFIG_H
38667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38668 # 1. Remove the extension, and $U if already installed.
38669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38670 ac_i=`echo "$ac_i" | sed "$ac_script"`
38671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38672 # will be set to the directory where LIBOBJS objects are built.
38673 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38674 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38676 LIBOBJS=$ac_libobjs
38678 LTLIBOBJS=$ac_ltlibobjs
38681 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38682 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38683 Usually this means the macro was only invoked conditionally." >&5
38684 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38685 Usually this means the macro was only invoked conditionally." >&2;}
38686 { (exit 1); exit 1; }; }
38688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38689 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38690 Usually this means the macro was only invoked conditionally." >&5
38691 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38692 Usually this means the macro was only invoked conditionally." >&2;}
38693 { (exit 1); exit 1; }; }
38695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38696 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38697 Usually this means the macro was only invoked conditionally." >&5
38698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38699 Usually this means the macro was only invoked conditionally." >&2;}
38700 { (exit 1); exit 1; }; }
38703 : ${CONFIG_STATUS=./config.status}
38704 ac_clean_files_save=$ac_clean_files
38705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38706 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38707 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38708 cat >$CONFIG_STATUS <<_ACEOF
38710 # Generated by $as_me.
38711 # Run this file to recreate the current configuration.
38712 # Compiler output produced by configure, useful for debugging
38713 # configure, is in config.log if it exists.
38716 ac_cs_recheck=false
38718 SHELL=\${CONFIG_SHELL-$SHELL}
38721 cat >>$CONFIG_STATUS <<\_ACEOF
38722 ## --------------------- ##
38723 ## M4sh Initialization. ##
38724 ## --------------------- ##
38726 # Be more Bourne compatible
38727 DUALCASE=1; export DUALCASE # for MKS sh
38728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38731 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38732 # is contrary to our usage. Disable this feature.
38733 alias -g '${1+"$@"}'='"$@"'
38734 setopt NO_GLOB_SUBST
38736 case `(set -o) 2>/dev/null` in
38737 *posix*) set -o posix ;;
38746 # Avoid depending upon Character Ranges.
38747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38750 as_cr_digits='0123456789'
38751 as_cr_alnum=$as_cr_Letters$as_cr_digits
38753 # The user is always right.
38754 if test "${PATH_SEPARATOR+set}" != set; then
38755 echo "#! /bin/sh" >conf$$.sh
38756 echo "exit 0" >>conf$$.sh
38758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38766 # Support unset when possible.
38767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38775 # We need space, tab and new line, in precisely that order. Quoting is
38776 # there to prevent editors from complaining about space-tab.
38777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38778 # splitting by setting IFS to empty value.)
38783 # Find who we are. Look in the path if we contain no directory separator.
38785 *[\\/]* ) as_myself=$0 ;;
38786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38787 for as_dir in $PATH
38790 test -z "$as_dir" && as_dir=.
38791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38797 # We did not find ourselves, most probably we were run as `sh COMMAND'
38798 # in which case we are not to be found in the path.
38799 if test "x$as_myself" = x; then
38802 if test ! -f "$as_myself"; then
38803 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38804 { (exit 1); exit 1; }
38807 # Work around bugs in pre-3.0 UWIN ksh.
38808 for as_var in ENV MAIL MAILPATH
38809 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38817 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38818 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38819 LC_TELEPHONE LC_TIME
38821 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38822 eval $as_var=C; export $as_var
38824 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38828 # Required to use basename.
38829 if expr a : '\(a\)' >/dev/null 2>&1 &&
38830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38837 as_basename=basename
38843 # Name of the executable.
38844 as_me=`$as_basename -- "$0" ||
38845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38846 X"$0" : 'X\(//\)$' \| \
38847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38849 sed '/^.*\/\([^/][^/]*\)\/*$/{
38868 as_lineno_1=$LINENO
38869 as_lineno_2=$LINENO
38870 test "x$as_lineno_1" != "x$as_lineno_2" &&
38871 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38873 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38874 # uniformly replaced by the line number. The first 'sed' inserts a
38875 # line-number line after each line using $LINENO; the second 'sed'
38876 # does the real work. The second script uses 'N' to pair each
38877 # line-number line with the line containing $LINENO, and appends
38878 # trailing '-' during substitution so that $LINENO is not a special
38879 # case at line end.
38880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38881 # scripts with optimization help from Paolo Bonzini. Blame Lee
38882 # E. McMahon (1931-1989) for sed's syntax. :-)
38894 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38897 ' >$as_me.lineno &&
38898 chmod +x "$as_me.lineno" ||
38899 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38900 { (exit 1); exit 1; }; }
38902 # Don't try to exec as it changes $[0], causing all sort of problems
38903 # (the dirname of $[0] is not the place where we might find the
38904 # original and so on. Autoconf is especially sensitive to this).
38905 . "./$as_me.lineno"
38906 # Exit status is that of the last command.
38911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38917 ECHO_C= ECHO_N= ECHO_T=
38918 case `echo -n x` in
38920 case `echo 'x\c'` in
38921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38928 if expr a : '\(a\)' >/dev/null 2>&1 &&
38929 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38935 rm -f conf$$ conf$$.exe conf$$.file
38936 if test -d conf$$.dir; then
38937 rm -f conf$$.dir/conf$$.file
38943 if ln -s conf$$.file conf$$ 2>/dev/null; then
38945 # ... but there are two gotchas:
38946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38948 # In both cases, we have to default to `cp -p'.
38949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38951 elif ln conf$$.file conf$$ 2>/dev/null; then
38956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38957 rmdir conf$$.dir 2>/dev/null
38959 if mkdir -p . 2>/dev/null; then
38962 test -d ./-p && rmdir ./-p
38966 if test -x / >/dev/null 2>&1; then
38967 as_test_x='test -x'
38969 if ls -dL / >/dev/null 2>&1; then
38976 if test -d "$1"; then
38982 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38983 ???[sx]*):;;*)false;;esac;fi
38987 as_executable_p=$as_test_x
38989 # Sed expression to map a string onto a valid CPP name.
38990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38992 # Sed expression to map a string onto a valid variable name.
38993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38998 # Save the log message, to keep $[0] and so on meaningful, and to
38999 # report actual input values of CONFIG_FILES etc. instead of their
39000 # values after options handling.
39002 This file was extended by $as_me, which was
39003 generated by GNU Autoconf 2.61. Invocation command line was
39005 CONFIG_FILES = $CONFIG_FILES
39006 CONFIG_HEADERS = $CONFIG_HEADERS
39007 CONFIG_LINKS = $CONFIG_LINKS
39008 CONFIG_COMMANDS = $CONFIG_COMMANDS
39011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39016 cat >>$CONFIG_STATUS <<_ACEOF
39017 # Files that config.status was made for.
39018 config_files="$ac_config_files"
39019 config_headers="$ac_config_headers"
39020 config_commands="$ac_config_commands"
39024 cat >>$CONFIG_STATUS <<\_ACEOF
39026 \`$as_me' instantiates files from templates according to the
39027 current configuration.
39029 Usage: $0 [OPTIONS] [FILE]...
39031 -h, --help print this help, then exit
39032 -V, --version print version number and configuration settings, then exit
39033 -q, --quiet do not print progress messages
39034 -d, --debug don't remove temporary files
39035 --recheck update $as_me by reconfiguring in the same conditions
39036 --file=FILE[:TEMPLATE]
39037 instantiate the configuration file FILE
39038 --header=FILE[:TEMPLATE]
39039 instantiate the configuration header FILE
39041 Configuration files:
39044 Configuration headers:
39047 Configuration commands:
39050 Report bugs to <bug-autoconf@gnu.org>."
39053 cat >>$CONFIG_STATUS <<_ACEOF
39056 configured by $0, generated by GNU Autoconf 2.61,
39057 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39059 Copyright (C) 2006 Free Software Foundation, Inc.
39060 This config.status script is free software; the Free Software Foundation
39061 gives unlimited permission to copy, distribute and modify it."
39068 cat >>$CONFIG_STATUS <<\_ACEOF
39069 # If no file are specified by the user, then we need to provide default
39070 # value. By we need to know if files were specified by the user.
39076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39088 # Handling of the options.
39089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39091 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39092 echo "$ac_cs_version"; exit ;;
39093 --debug | --debu | --deb | --de | --d | -d )
39095 --file | --fil | --fi | --f )
39097 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39098 ac_need_defaults=false;;
39099 --header | --heade | --head | --hea )
39101 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39102 ac_need_defaults=false;;
39104 # Conflict between --help and --header
39105 { echo "$as_me: error: ambiguous option: $1
39106 Try \`$0 --help' for more information." >&2
39107 { (exit 1); exit 1; }; };;
39108 --help | --hel | -h )
39109 echo "$ac_cs_usage"; exit ;;
39110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39111 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39114 # This is an error.
39115 -*) { echo "$as_me: error: unrecognized option: $1
39116 Try \`$0 --help' for more information." >&2
39117 { (exit 1); exit 1; }; } ;;
39119 *) ac_config_targets="$ac_config_targets $1"
39120 ac_need_defaults=false ;;
39126 ac_configure_extra_args=
39128 if $ac_cs_silent; then
39130 ac_configure_extra_args="$ac_configure_extra_args --silent"
39134 cat >>$CONFIG_STATUS <<_ACEOF
39135 if \$ac_cs_recheck; then
39136 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39137 CONFIG_SHELL=$SHELL
39138 export CONFIG_SHELL
39139 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39143 cat >>$CONFIG_STATUS <<\_ACEOF
39147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39148 ## Running $as_me. ##
39154 cat >>$CONFIG_STATUS <<_ACEOF
39158 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39160 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39161 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39166 cat >>$CONFIG_STATUS <<\_ACEOF
39168 # Handling of arguments.
39169 for ac_config_target in $ac_config_targets
39171 case $ac_config_target in
39172 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39173 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39174 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39175 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39176 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39177 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39178 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39179 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39180 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39181 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39182 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39183 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39184 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39185 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39186 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39187 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39188 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39189 "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" ;;
39190 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39191 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39192 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39193 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39194 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39195 "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" ;;
39196 "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" ;;
39197 "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" ;;
39198 "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" ;;
39199 "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" ;;
39200 "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" ;;
39201 "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" ;;
39202 "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" ;;
39203 "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" ;;
39204 "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" ;;
39205 "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" ;;
39206 "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" ;;
39207 "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" ;;
39208 "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" ;;
39209 "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" ;;
39210 "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" ;;
39211 "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" ;;
39212 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39213 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39214 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39215 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39216 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39218 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39220 { (exit 1); exit 1; }; };;
39225 # If the user did not use the arguments to specify the items to instantiate,
39226 # then the envvar interface is used. Set only those that are not.
39227 # We use the long form for the default assignment because of an extremely
39228 # bizarre bug on SunOS 4.1.3.
39229 if $ac_need_defaults; then
39230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39235 # Have a temporary directory for convenience. Make it in the build tree
39236 # simply because there is no reason against having it here, and in addition,
39237 # creating and moving files from /tmp can sometimes cause problems.
39238 # Hook for its removal unless debugging.
39239 # Note that there is a small window in which the directory will not be cleaned:
39240 # after its creation but before its name has been assigned to `$tmp'.
39244 trap 'exit_status=$?
39245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39247 trap '{ (exit 1); exit 1; }' 1 2 13 15
39249 # Create a (secure) tmp directory for tmp files.
39252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39253 test -n "$tmp" && test -d "$tmp"
39256 tmp=./conf$$-$RANDOM
39257 (umask 077 && mkdir "$tmp")
39260 echo "$me: cannot create a temporary directory in ." >&2
39261 { (exit 1); exit 1; }
39265 # Set up the sed scripts for CONFIG_FILES section.
39268 # No need to generate the scripts if there are no CONFIG_FILES.
39269 # This happens for instance when ./config.status config.h
39270 if test -n "$CONFIG_FILES"; then
39277 for ac_last_try in false false false false false :; do
39278 cat >conf$$subs.sed <<_ACEOF
39279 SHELL!$SHELL$ac_delim
39280 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39281 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39282 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39283 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39284 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39285 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39286 exec_prefix!$exec_prefix$ac_delim
39287 prefix!$prefix$ac_delim
39288 program_transform_name!$program_transform_name$ac_delim
39289 bindir!$bindir$ac_delim
39290 sbindir!$sbindir$ac_delim
39291 libexecdir!$libexecdir$ac_delim
39292 datarootdir!$datarootdir$ac_delim
39293 datadir!$datadir$ac_delim
39294 sysconfdir!$sysconfdir$ac_delim
39295 sharedstatedir!$sharedstatedir$ac_delim
39296 localstatedir!$localstatedir$ac_delim
39297 includedir!$includedir$ac_delim
39298 oldincludedir!$oldincludedir$ac_delim
39299 docdir!$docdir$ac_delim
39300 infodir!$infodir$ac_delim
39301 htmldir!$htmldir$ac_delim
39302 dvidir!$dvidir$ac_delim
39303 pdfdir!$pdfdir$ac_delim
39304 psdir!$psdir$ac_delim
39305 libdir!$libdir$ac_delim
39306 localedir!$localedir$ac_delim
39307 mandir!$mandir$ac_delim
39308 DEFS!$DEFS$ac_delim
39309 ECHO_C!$ECHO_C$ac_delim
39310 ECHO_N!$ECHO_N$ac_delim
39311 ECHO_T!$ECHO_T$ac_delim
39312 LIBS!$LIBS$ac_delim
39313 build_alias!$build_alias$ac_delim
39314 host_alias!$host_alias$ac_delim
39315 target_alias!$target_alias$ac_delim
39316 build!$build$ac_delim
39317 build_cpu!$build_cpu$ac_delim
39318 build_vendor!$build_vendor$ac_delim
39319 build_os!$build_os$ac_delim
39320 host!$host$ac_delim
39321 host_cpu!$host_cpu$ac_delim
39322 host_vendor!$host_vendor$ac_delim
39323 host_os!$host_os$ac_delim
39324 target!$target$ac_delim
39325 target_cpu!$target_cpu$ac_delim
39326 target_vendor!$target_vendor$ac_delim
39327 target_os!$target_os$ac_delim
39328 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39329 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39330 INSTALL_DATA!$INSTALL_DATA$ac_delim
39331 CYGPATH_W!$CYGPATH_W$ac_delim
39332 PACKAGE!$PACKAGE$ac_delim
39333 VERSION!$VERSION$ac_delim
39334 ACLOCAL!$ACLOCAL$ac_delim
39335 AUTOCONF!$AUTOCONF$ac_delim
39336 AUTOMAKE!$AUTOMAKE$ac_delim
39337 AUTOHEADER!$AUTOHEADER$ac_delim
39338 MAKEINFO!$MAKEINFO$ac_delim
39339 install_sh!$install_sh$ac_delim
39340 STRIP!$STRIP$ac_delim
39341 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39342 mkdir_p!$mkdir_p$ac_delim
39344 SET_MAKE!$SET_MAKE$ac_delim
39345 am__leading_dot!$am__leading_dot$ac_delim
39346 AMTAR!$AMTAR$ac_delim
39347 am__tar!$am__tar$ac_delim
39348 am__untar!$am__untar$ac_delim
39349 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39350 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39351 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39352 top_builddir!$top_builddir$ac_delim
39353 ldap_subdir!$ldap_subdir$ac_delim
39356 CFLAGS!$CFLAGS$ac_delim
39357 LDFLAGS!$LDFLAGS$ac_delim
39358 CPPFLAGS!$CPPFLAGS$ac_delim
39359 ac_ct_CC!$ac_ct_CC$ac_delim
39360 EXEEXT!$EXEEXT$ac_delim
39361 OBJEXT!$OBJEXT$ac_delim
39362 DEPDIR!$DEPDIR$ac_delim
39363 am__include!$am__include$ac_delim
39364 am__quote!$am__quote$ac_delim
39365 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39366 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39367 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39368 CCDEPMODE!$CCDEPMODE$ac_delim
39369 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39370 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39371 GREP!$GREP$ac_delim
39372 EGREP!$EGREP$ac_delim
39373 LN_S!$LN_S$ac_delim
39374 ECHO!$ECHO$ac_delim
39375 RANLIB!$RANLIB$ac_delim
39378 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39380 elif $ac_last_try; then
39381 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39382 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39383 { (exit 1); exit 1; }; }
39385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39389 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39390 if test -n "$ac_eof"; then
39391 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39392 ac_eof=`expr $ac_eof + 1`
39395 cat >>$CONFIG_STATUS <<_ACEOF
39396 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39400 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39401 s/^/s,@/; s/!/@,|#_!!_#|/
39404 s/'"$ac_delim"'$/,g/; t
39406 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39407 ' >>$CONFIG_STATUS <conf$$subs.sed
39408 rm -f conf$$subs.sed
39409 cat >>$CONFIG_STATUS <<_ACEOF
39415 for ac_last_try in false false false false false :; do
39416 cat >conf$$subs.sed <<_ACEOF
39417 DLLTOOL!$DLLTOOL$ac_delim
39419 OBJDUMP!$OBJDUMP$ac_delim
39421 LIBTOOL!$LIBTOOL$ac_delim
39422 PERLBIN!$PERLBIN$ac_delim
39423 OL_MKDEP!$OL_MKDEP$ac_delim
39424 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39425 LTSTATIC!$LTSTATIC$ac_delim
39426 MYSQL!$MYSQL$ac_delim
39427 LIBOBJS!$LIBOBJS$ac_delim
39428 LIBSRCS!$LIBSRCS$ac_delim
39429 PLAT!$PLAT$ac_delim
39430 WITH_SASL!$WITH_SASL$ac_delim
39431 WITH_TLS!$WITH_TLS$ac_delim
39432 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39433 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39434 BUILD_THREAD!$BUILD_THREAD$ac_delim
39435 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39436 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39437 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39438 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39439 BUILD_BDB!$BUILD_BDB$ac_delim
39440 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39441 BUILD_HDB!$BUILD_HDB$ac_delim
39442 BUILD_LDAP!$BUILD_LDAP$ac_delim
39443 BUILD_META!$BUILD_META$ac_delim
39444 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39445 BUILD_NDB!$BUILD_NDB$ac_delim
39446 BUILD_NULL!$BUILD_NULL$ac_delim
39447 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39448 BUILD_RELAY!$BUILD_RELAY$ac_delim
39449 BUILD_PERL!$BUILD_PERL$ac_delim
39450 BUILD_SHELL!$BUILD_SHELL$ac_delim
39451 BUILD_SOCK!$BUILD_SOCK$ac_delim
39452 BUILD_SQL!$BUILD_SQL$ac_delim
39453 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39454 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39455 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39456 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39457 BUILD_DDS!$BUILD_DDS$ac_delim
39458 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39459 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39460 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39461 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39462 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39463 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39464 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39465 BUILD_REFINT!$BUILD_REFINT$ac_delim
39466 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39467 BUILD_RWM!$BUILD_RWM$ac_delim
39468 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39469 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39470 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39471 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39472 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39473 LDAP_LIBS!$LDAP_LIBS$ac_delim
39474 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39475 BDB_LIBS!$BDB_LIBS$ac_delim
39476 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39477 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39478 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39479 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39480 WRAP_LIBS!$WRAP_LIBS$ac_delim
39481 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39482 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39483 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39484 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39485 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39486 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39487 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39488 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39489 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39490 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39491 KRB4_LIBS!$KRB4_LIBS$ac_delim
39492 KRB5_LIBS!$KRB5_LIBS$ac_delim
39493 SASL_LIBS!$SASL_LIBS$ac_delim
39494 TLS_LIBS!$TLS_LIBS$ac_delim
39495 MODULES_LIBS!$MODULES_LIBS$ac_delim
39496 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39497 LIBSLAPI!$LIBSLAPI$ac_delim
39498 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39499 AUTH_LIBS!$AUTH_LIBS$ac_delim
39500 ICU_LIBS!$ICU_LIBS$ac_delim
39501 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39502 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39503 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39504 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39505 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39506 LTLIBOBJS!$LTLIBOBJS$ac_delim
39509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
39511 elif $ac_last_try; then
39512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39514 { (exit 1); exit 1; }; }
39516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39521 if test -n "$ac_eof"; then
39522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39523 ac_eof=`expr $ac_eof + 1`
39526 cat >>$CONFIG_STATUS <<_ACEOF
39527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39532 s/^/s,@/; s/!/@,|#_!!_#|/
39535 s/'"$ac_delim"'$/,g/; t
39537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39538 ' >>$CONFIG_STATUS <conf$$subs.sed
39539 rm -f conf$$subs.sed
39540 cat >>$CONFIG_STATUS <<_ACEOF
39547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39549 # trailing colons and then remove the whole line if VPATH becomes empty
39550 # (actually we leave an empty line to preserve line numbers).
39551 if test "x$srcdir" = x.; then
39552 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39553 s/:*\$(srcdir):*/:/
39554 s/:*\${srcdir}:*/:/
39556 s/^\([^=]*=[ ]*\):*/\1/
39562 cat >>$CONFIG_STATUS <<\_ACEOF
39563 fi # test -n "$CONFIG_FILES"
39566 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39569 :[FHLC]) ac_mode=$ac_tag; continue;;
39571 case $ac_mode$ac_tag in
39573 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39574 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39575 { (exit 1); exit 1; }; };;
39576 :[FH]-) ac_tag=-:-;;
39577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39594 -) ac_f="$tmp/stdin";;
39595 *) # Look for the file first in the build tree, then in the source tree
39596 # (if the path is not absolute). The absolute path cannot be DOS-style,
39597 # because $ac_f cannot contain `:'.
39601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39603 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39604 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39605 { (exit 1); exit 1; }; };;
39607 ac_file_inputs="$ac_file_inputs $ac_f"
39610 # Let's still pretend it is `configure' which instantiates (i.e., don't
39611 # use $as_me), people would be surprised to read:
39612 # /* config.h. Generated by config.status. */
39613 configure_input="Generated from "`IFS=:
39614 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39615 if test x"$ac_file" != x-; then
39616 configure_input="$ac_file. $configure_input"
39617 { echo "$as_me:$LINENO: creating $ac_file" >&5
39618 echo "$as_me: creating $ac_file" >&6;}
39622 *:-:* | *:-) cat >"$tmp/stdin";;
39627 ac_dir=`$as_dirname -- "$ac_file" ||
39628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39629 X"$ac_file" : 'X\(//\)[^/]' \| \
39630 X"$ac_file" : 'X\(//\)$' \| \
39631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39637 /^X\(\/\/\)[^/].*/{
39652 -*) as_dir=./$as_dir;;
39654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39658 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39659 *) as_qdir=$as_dir;;
39661 as_dirs="'$as_qdir' $as_dirs"
39662 as_dir=`$as_dirname -- "$as_dir" ||
39663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39664 X"$as_dir" : 'X\(//\)[^/]' \| \
39665 X"$as_dir" : 'X\(//\)$' \| \
39666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39672 /^X\(\/\/\)[^/].*/{
39685 test -d "$as_dir" && break
39687 test -z "$as_dirs" || eval "mkdir $as_dirs"
39688 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39690 { (exit 1); exit 1; }; }; }
39694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39697 # A ".." for each directory in $ac_dir_suffix.
39698 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39699 case $ac_top_builddir_sub in
39700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39704 ac_abs_top_builddir=$ac_pwd
39705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39706 # for backward compatibility:
39707 ac_top_builddir=$ac_top_build_prefix
39710 .) # We are building in place.
39712 ac_top_srcdir=$ac_top_builddir_sub
39713 ac_abs_top_srcdir=$ac_pwd ;;
39714 [\\/]* | ?:[\\/]* ) # Absolute name.
39715 ac_srcdir=$srcdir$ac_dir_suffix;
39716 ac_top_srcdir=$srcdir
39717 ac_abs_top_srcdir=$srcdir ;;
39718 *) # Relative name.
39719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39720 ac_top_srcdir=$ac_top_build_prefix$srcdir
39721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39738 cat >>$CONFIG_STATUS <<\_ACEOF
39739 # If the template does not know about datarootdir, expand it.
39740 # FIXME: This hack should be removed a few years after 2.60.
39741 ac_datarootdir_hack=; ac_datarootdir_seen=
39743 case `sed -n '/datarootdir/ {
39752 ' $ac_file_inputs` in
39753 *datarootdir*) ac_datarootdir_seen=yes;;
39754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39755 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39756 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39758 cat >>$CONFIG_STATUS <<_ACEOF
39759 ac_datarootdir_hack='
39760 s&@datadir@&$datadir&g
39761 s&@docdir@&$docdir&g
39762 s&@infodir@&$infodir&g
39763 s&@localedir@&$localedir&g
39764 s&@mandir@&$mandir&g
39765 s&\\\${datarootdir}&$datarootdir&g' ;;
39769 # Neutralize VPATH when `$srcdir' = `.'.
39770 # Shell code in configure.ac might set extrasub.
39771 # FIXME: do we really want to maintain this feature?
39772 cat >>$CONFIG_STATUS <<_ACEOF
39776 cat >>$CONFIG_STATUS <<\_ACEOF
39778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39779 s&@configure_input@&$configure_input&;t t
39780 s&@top_builddir@&$ac_top_builddir_sub&;t t
39781 s&@srcdir@&$ac_srcdir&;t t
39782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39783 s&@top_srcdir@&$ac_top_srcdir&;t t
39784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39785 s&@builddir@&$ac_builddir&;t t
39786 s&@abs_builddir@&$ac_abs_builddir&;t t
39787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39788 s&@INSTALL@&$ac_INSTALL&;t t
39789 $ac_datarootdir_hack
39790 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39793 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39795 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39796 which seems to be undefined. Please make sure it is defined." >&5
39797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39798 which seems to be undefined. Please make sure it is defined." >&2;}
39802 -) cat "$tmp/out"; rm -f "$tmp/out";;
39803 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39812 # Transform confdefs.h into a sed script `conftest.defines', that
39813 # substitutes the proper values into config.h.in to produce config.h.
39814 rm -f conftest.defines conftest.tail
39815 # First, append a space to every undef/define line, to ease matching.
39816 echo 's/$/ /' >conftest.defines
39817 # Then, protect against being on the right side of a sed subst, or in
39818 # an unquoted here document, in config.status. If some macros were
39819 # called several times there might be several #defines for the same
39820 # symbol, which is useless. But do not sort them, since the last
39821 # AC_DEFINE must be honored.
39822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39825 # PARAMS is the parameter list in the macro definition--in most cases, it's
39826 # just an empty string.
39827 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39828 ac_dB='\\)[ (].*,\\1define\\2'
39836 s/^[ ]*#[ ]*define[ ][ ]*//
39841 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39842 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39843 ' >>conftest.defines
39845 # Remove the space that was appended to ease matching.
39846 # Then replace #undef with comments. This is necessary, for
39847 # example, in the case of _POSIX_SOURCE, which is predefined and required
39848 # on some systems where configure will not decide to define it.
39849 # (The regexp can be short, since the line contains either #define or #undef.)
39851 s,^[ #]*u.*,/* & */,' >>conftest.defines
39853 # Break up conftest.defines:
39854 ac_max_sed_lines=50
39856 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39857 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39858 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39860 ac_in='$ac_file_inputs'
39861 ac_out='"$tmp/out1"'
39862 ac_nxt='"$tmp/out2"'
39866 # Write a here document:
39867 cat >>$CONFIG_STATUS <<_ACEOF
39868 # First, check the format of the line:
39869 cat >"\$tmp/defines.sed" <<\\CEOF
39870 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39871 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39875 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39877 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39878 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39879 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39880 grep . conftest.tail >/dev/null || break
39881 rm -f conftest.defines
39882 mv conftest.tail conftest.defines
39884 rm -f conftest.defines conftest.tail
39886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39887 cat >>$CONFIG_STATUS <<\_ACEOF
39888 if test x"$ac_file" != x-; then
39889 echo "/* $configure_input */" >"$tmp/config.h"
39890 cat "$ac_result" >>"$tmp/config.h"
39891 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39892 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39893 echo "$as_me: $ac_file is unchanged" >&6;}
39896 mv "$tmp/config.h" $ac_file
39899 echo "/* $configure_input */"
39903 # Compute $ac_file's index in $config_headers.
39905 for _am_header in $config_headers :; do
39906 case $_am_header in
39907 $ac_file | $ac_file:* )
39910 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39913 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39914 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39915 X$ac_file : 'X\(//\)[^/]' \| \
39916 X$ac_file : 'X\(//\)$' \| \
39917 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39923 /^X\(\/\/\)[^/].*/{
39935 s/.*/./; q'`/stamp-h$_am_stamp_count
39938 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39939 echo "$as_me: executing $ac_file commands" >&6;}
39944 case $ac_file$ac_mode in
39945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39946 # Strip MF so we end up with the name of the file.
39947 mf=`echo "$mf" | sed -e 's/:.*$//'`
39948 # Check whether this is an Automake generated Makefile or not.
39949 # We used to match only the files named `Makefile.in', but
39950 # some people rename them; so instead we look at the file content.
39951 # Grep'ing the first line is not enough: some people post-process
39952 # each Makefile.in and add a new line on top of each file to say so.
39953 # So let's grep whole file.
39954 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39955 dirpart=`$as_dirname -- "$mf" ||
39956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39957 X"$mf" : 'X\(//\)[^/]' \| \
39958 X"$mf" : 'X\(//\)$' \| \
39959 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39965 /^X\(\/\/\)[^/].*/{
39981 # Extract the definition of DEPDIR, am__include, and am__quote
39982 # from the Makefile without running `make'.
39983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39984 test -z "$DEPDIR" && continue
39985 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39986 test -z "am__include" && continue
39987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39988 # When using ansi2knr, U may be empty or an underscore; expand it
39989 U=`sed -n 's/^U = //p' < "$mf"`
39990 # Find all dependency output files, they are included files with
39991 # $(DEPDIR) in their names. We invoke sed twice because it is the
39992 # simplest approach to changing $(DEPDIR) to its actual value in the
39994 for file in `sed -n "
39995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39997 # Make sure the directory exists.
39998 test -f "$dirpart/$file" && continue
39999 fdir=`$as_dirname -- "$file" ||
40000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40001 X"$file" : 'X\(//\)[^/]' \| \
40002 X"$file" : 'X\(//\)$' \| \
40003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40009 /^X\(\/\/\)[^/].*/{
40022 { as_dir=$dirpart/$fdir
40024 -*) as_dir=./$as_dir;;
40026 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40030 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40031 *) as_qdir=$as_dir;;
40033 as_dirs="'$as_qdir' $as_dirs"
40034 as_dir=`$as_dirname -- "$as_dir" ||
40035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40036 X"$as_dir" : 'X\(//\)[^/]' \| \
40037 X"$as_dir" : 'X\(//\)$' \| \
40038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40044 /^X\(\/\/\)[^/].*/{
40057 test -d "$as_dir" && break
40059 test -z "$as_dirs" || eval "mkdir $as_dirs"
40060 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40061 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40062 { (exit 1); exit 1; }; }; }
40063 # echo "creating $dirpart/$file"
40064 echo '# dummy' > "$dirpart/$file"
40071 BACKENDSC="servers/slapd/backends.c"
40072 echo "Making $BACKENDSC"
40074 cat > $BACKENDSC << ENDX
40075 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40077 * Copyright 1998-2009 The OpenLDAP Foundation.
40078 * All rights reserved.
40080 * Redistribution and use in source and binary forms, with or without
40081 * modification, are permitted only as authorized by the OpenLDAP
40084 * A copy of this license is available in the file LICENSE in the
40085 * top-level directory of the distribution or, alternatively, at
40086 * <http://www.OpenLDAP.org/license.html>.
40088 /* This file is automatically generated by configure; please do not edit. */
40090 #include "portable.h"
40094 if test "${STATIC_BACKENDS}"; then
40095 for b in config ${STATIC_BACKENDS}; do
40096 bb=`echo "${b}" | sed -e 's/back-//'`
40097 cat >> $BACKENDSC << ENDX
40098 extern BI_init ${bb}_back_initialize;
40102 cat >> $BACKENDSC << ENDX
40104 BackendInfo slap_binfo[] = {
40107 for b in config ${STATIC_BACKENDS}; do
40108 bb=`echo "${b}" | sed -e 's/back-//'`
40109 echo " Add ${bb} ..."
40110 cat >> $BACKENDSC << ENDX
40111 { "${bb}", ${bb}_back_initialize },
40115 cat >> $BACKENDSC << ENDX
40119 /* end of generated file */
40122 OVERLAYSC="servers/slapd/overlays/statover.c"
40123 echo "Making $OVERLAYSC"
40125 cat > $OVERLAYSC << ENDX
40126 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40128 * Copyright 1998-2009 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_OVERLAYS}"; then
40146 for o in ${STATIC_OVERLAYS}; do
40147 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40148 cat >> $OVERLAYSC << ENDX
40149 extern OV_init ${oo}_initialize;
40154 cat >> $OVERLAYSC << ENDX
40156 OverlayInit slap_oinfo[] = {
40159 if test "${STATIC_OVERLAYS}"; then
40160 for o in ${STATIC_OVERLAYS}; do
40161 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40162 echo " Add ${oo} ..."
40163 cat >> $OVERLAYSC << ENDX
40164 { "${oo}", ${oo}_initialize },
40169 cat >> $OVERLAYSC << ENDX
40173 /* end of generated file */
40176 if test "${ol_cv_mkdep}" = no; then
40177 echo '(Do not "make depend"; we do not know how to build dependencies)'
40179 echo 'Please run "make depend" to build dependencies'
40187 { (exit 0); exit 0; }
40189 chmod +x $CONFIG_STATUS
40190 ac_clean_files=$ac_clean_files_save
40193 # configure is writing to config.log, and then calls config.status.
40194 # config.status does its own redirection, appending to config.log.
40195 # Unfortunately, on DOS this fails, as config.log is still kept open
40196 # by configure, so config.status won't be able to write to it; its
40197 # output is simply discarded. So we exec the FD to /dev/null,
40198 # effectively closing config.log, so it can be properly (re)opened and
40199 # appended to by config.status. When coming back to configure, we
40200 # need to make the FD available again.
40201 if test "$no_create" != yes; then
40203 ac_config_status_args=
40204 test "$silent" = yes &&
40205 ac_config_status_args="$ac_config_status_args --quiet"
40207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40210 # would make configure fail if this is the last instruction.
40211 $ac_cs_success || { (exit 1); exit 1; }