2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.707 2010/10/12 08:26:31 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
835 INSTALL_STRIP_PROGRAM
845 OPENLDAP_RELEASE_DATE
936 SLAPD_MODULES_CPPFLAGS
937 SLAPD_MODULES_LDFLAGS
939 SLAPD_STATIC_BACKENDS
940 SLAPD_DYNAMIC_BACKENDS
941 SLAPD_STATIC_OVERLAYS
942 SLAPD_DYNAMIC_OVERLAYS
963 ac_precious_vars='build_alias
974 # Initialize some variables set by options.
976 ac_init_version=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
986 program_transform_name=s,x,x,
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE}'
1011 infodir='${datarootdir}/info'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1032 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 # Accept the important Cygnus configure options, so we can diagnose typos.
1038 case $ac_dashdash$ac_option in
1042 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045 bindir=$ac_optarg ;;
1047 -build | --build | --buil | --bui | --bu)
1048 ac_prev=build_alias ;;
1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050 build_alias=$ac_optarg ;;
1052 -cache-file | --cache-file | --cache-fil | --cache-fi \
1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054 ac_prev=cache_file ;;
1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057 cache_file=$ac_optarg ;;
1059 --config-cache | -C)
1060 cache_file=config.cache ;;
1062 -datadir | --datadir | --datadi | --datad)
1064 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065 datadir=$ac_optarg ;;
1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068 | --dataroo | --dataro | --datar)
1069 ac_prev=datarootdir ;;
1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072 datarootdir=$ac_optarg ;;
1074 -disable-* | --disable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081 eval enable_$ac_feature=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1100 eval enable_$ac_feature=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1264 -site=* | --site=* | --sit=*)
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1291 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297 eval with_$ac_package=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 { echo "$as_me: error: invalid package name: $ac_package" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1306 eval with_$ac_package=no ;;
1309 # Obsolete; use --with-x.
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 { echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1357 # Be sure to have absolute directory names.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 { echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$0" : 'X\(//\)[^/]' \| \
1413 X"$0" : 'X\(//\)$' \| \
1414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures this package to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1543 if test -n "$ac_init_help"; then
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --enable-debug enable debugging no|yes|traditional [yes]
1551 --enable-dynamic enable linking built binaries with dynamic libs [no]
1552 --enable-syslog enable syslog support [auto]
1553 --enable-proctitle enable proctitle support [yes]
1554 --enable-ipv6 enable IPv6 support [auto]
1555 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1557 SLAPD (Standalone LDAP Daemon) Options:
1558 --enable-slapd enable building slapd [yes]
1559 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1560 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1561 --enable-cleartext enable cleartext passwords [yes]
1562 --enable-crypt enable crypt(3) passwords [no]
1563 --enable-lmpasswd enable LAN Manager passwords [no]
1564 --enable-spasswd enable (Cyrus) SASL password verification [no]
1565 --enable-modules enable dynamic module support [no]
1566 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1567 --enable-rlookups enable reverse lookups of client hostnames [no]
1568 --enable-slapi enable SLAPI support (experimental) [no]
1569 --enable-slp enable SLPv2 support [no]
1570 --enable-wrappers enable tcp wrapper support [no]
1572 SLAPD Backend Options:
1573 --enable-backends enable all available backends no|yes|mod
1574 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1575 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1576 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1577 --enable-ldap enable ldap backend no|yes|mod [no]
1578 --enable-meta enable metadirectory backend no|yes|mod [no]
1579 --enable-monitor enable monitor backend no|yes|mod [yes]
1580 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1581 --enable-null enable null backend no|yes|mod [no]
1582 --enable-passwd enable passwd backend no|yes|mod [no]
1583 --enable-perl enable perl backend no|yes|mod [no]
1584 --enable-relay enable relay backend no|yes|mod [yes]
1585 --enable-shell enable shell backend no|yes|mod [no]
1586 --enable-sock enable sock backend no|yes|mod [no]
1587 --enable-sql enable sql backend no|yes|mod [no]
1589 SLAPD Overlay Options:
1590 --enable-overlays enable all available overlays no|yes|mod
1591 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1592 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1593 --enable-collect Collect overlay no|yes|mod [no]
1594 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1595 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1596 --enable-deref Dereference overlay no|yes|mod [no]
1597 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1598 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1599 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1600 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1601 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1602 --enable-refint Referential Integrity overlay no|yes|mod [no]
1603 --enable-retcode Return Code testing overlay no|yes|mod [no]
1604 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1605 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1606 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1607 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1608 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1609 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1610 --enable-valsort Value Sorting overlay no|yes|mod [no]
1612 Library Generation & Linking Options
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-dependency-tracking speeds up one-time build
1618 --enable-dependency-tracking do not reject slow dependency extractors
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1622 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1623 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1624 --with-subdir=DIR change default subdirectory used for installs
1625 --with-cyrus-sasl with Cyrus SASL support [auto]
1626 --with-fetch with fetch(3) URL support [auto]
1627 --with-threads with threads [auto]
1628 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1629 --with-yielding-select with implicitly yielding select [auto]
1630 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1631 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1632 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1633 --with-pic try to use only PIC/non-PIC objects [default=use
1635 --with-tags[=TAGS] include additional configurations [automatic]
1637 See INSTALL file for further details.
1639 Some influential environment variables:
1640 CC C compiler command
1641 CFLAGS C compiler flags
1642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1643 nonstandard directory <lib dir>
1644 LIBS libraries to pass to the linker, e.g. -l<library>
1645 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1646 you have headers in a nonstandard directory <include dir>
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1656 if test "$ac_init_help" = "recursive"; then
1657 # If there are subdirs, report their specific --help.
1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659 test -d "$ac_dir" || continue
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1679 .) # We are building in place.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1703 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1713 generated by GNU Autoconf 2.61
1715 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1720 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1721 Restrictions apply, see COPYRIGHT and LICENSE files.
1725 cat >config.log <<_ACEOF
1726 This file contains any messages produced by compilers while
1727 running configure, to aid debugging if configure makes a mistake.
1729 It was created by $as_me, which was
1730 generated by GNU Autoconf 2.61. Invocation command line was
1742 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1748 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1751 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1752 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1753 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1754 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1755 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1756 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1757 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 echo "PATH: $as_dir"
1782 # Keep a trace of the command line.
1783 # Strip out --no-create and --no-recursion so they do not pile up.
1784 # Strip out --silent because we don't want to record it for future runs.
1785 # Also quote any args containing shell meta-characters.
1786 # Make two passes to allow for proper duplicate-argument suppression.
1790 ac_must_keep_next=false
1796 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1798 | -silent | --silent | --silen | --sile | --sil)
1801 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1804 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1806 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1807 if test $ac_must_keep_next = true; then
1808 ac_must_keep_next=false # Got value, back to normal.
1811 *=* | --config-cache | -C | -disable-* | --disable-* \
1812 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1813 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1814 | -with-* | --with-* | -without-* | --without-* | --x)
1815 case "$ac_configure_args0 " in
1816 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1819 -* ) ac_must_keep_next=true ;;
1822 ac_configure_args="$ac_configure_args '$ac_arg'"
1827 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1828 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1830 # When interrupted or exit'd, cleanup temporary files, and complete
1831 # config.log. We remove comments because anyway the quotes in there
1832 # would cause problems or look ugly.
1833 # WARNING: Use '\'' to represent an apostrophe within the trap.
1834 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1835 trap 'exit_status=$?
1836 # Save into config.log some information that might help in debugging.
1841 ## ---------------- ##
1842 ## Cache variables. ##
1843 ## ---------------- ##
1846 # The following way of writing the cache mishandles newlines in values,
1848 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1849 eval ac_val=\$$ac_var
1853 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1854 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1857 _ | IFS | as_nl) ;; #(
1858 *) $as_unset $ac_var ;;
1863 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1864 *${as_nl}ac_space=\ *)
1866 "s/'\''/'\''\\\\'\'''\''/g;
1867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878 ## ----------------- ##
1879 ## Output variables. ##
1880 ## ----------------- ##
1883 for ac_var in $ac_subst_vars
1885 eval ac_val=\$$ac_var
1887 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 echo "$ac_var='\''$ac_val'\''"
1893 if test -n "$ac_subst_files"; then
1895 ## ------------------- ##
1896 ## File substitutions. ##
1897 ## ------------------- ##
1900 for ac_var in $ac_subst_files
1902 eval ac_val=\$$ac_var
1904 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 echo "$ac_var='\''$ac_val'\''"
1911 if test -s confdefs.h; then
1921 test "$ac_signal" != 0 &&
1922 echo "$as_me: caught signal $ac_signal"
1923 echo "$as_me: exit $exit_status"
1925 rm -f core *.core core.conftest.* &&
1926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929 for ac_signal in 1 2 13 15; do
1930 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1934 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1935 rm -f -r conftest* confdefs.h
1937 # Predefined preprocessor variables.
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_NAME "$PACKAGE_NAME"
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964 # Let the site file select an alternate cache file if it wants to.
1965 # Prefer explicitly selected file to automatically selected ones.
1966 if test -n "$CONFIG_SITE"; then
1967 set x "$CONFIG_SITE"
1968 elif test "x$prefix" != xNONE; then
1969 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1971 set x "$ac_default_prefix/share/config.site" \
1972 "$ac_default_prefix/etc/config.site"
1977 if test -r "$ac_site_file"; then
1978 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979 echo "$as_me: loading site script $ac_site_file" >&6;}
1980 sed 's/^/| /' "$ac_site_file" >&5
1986 # Check that the precious variables saved in the cache have kept the same
1988 ac_cache_corrupted=false
1989 for ac_var in $ac_precious_vars; do
1990 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991 eval ac_new_set=\$ac_env_${ac_var}_set
1992 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993 eval ac_new_val=\$ac_env_${ac_var}_value
1994 case $ac_old_set,$ac_new_set in
1996 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
2000 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2005 if test "x$ac_old_val" != "x$ac_new_val"; then
2006 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2009 echo "$as_me: former value: $ac_old_val" >&2;}
2010 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2011 echo "$as_me: current value: $ac_new_val" >&2;}
2012 ac_cache_corrupted=:
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2018 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 *) ac_arg=$ac_var=$ac_new_val ;;
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2027 if $ac_cache_corrupted; then
2028 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2032 { (exit 1); exit 1; }; }
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085 for ac_dir in build "$srcdir"/build; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2103 { (exit 1); exit 1; }; }
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115 eval `$ac_aux_dir/version.sh`
2116 if test -z "$OL_STRING"; then
2117 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2118 echo "$as_me: error: could not determine version" >&2;}
2119 { (exit 1); exit 1; }; }
2122 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2123 ac_cv_shtool="$ac_aux_dir/shtool"
2125 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2126 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2127 { (exit 1); exit 1; }; }
2130 SHTOOL="$ac_cv_shtool"
2134 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2135 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2139 if test -d $ac_aux_dir/CVS; then
2140 OPENLDAP_CVS="(from CVS sources) "
2143 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2145 # Make sure we can run config.sub.
2146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2147 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2148 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2149 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: checking build system type" >&5
2152 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_build+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 ac_build_alias=$build_alias
2157 test "x$ac_build_alias" = x &&
2158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2159 test "x$ac_build_alias" = x &&
2160 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2161 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2162 { (exit 1); exit 1; }; }
2163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2164 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2166 { (exit 1); exit 1; }; }
2169 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2170 echo "${ECHO_T}$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2174 echo "$as_me: error: invalid value of canonical build" >&2;}
2175 { (exit 1); exit 1; }; };;
2178 ac_save_IFS=$IFS; IFS='-'
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2191 { echo "$as_me:$LINENO: checking host system type" >&5
2192 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2193 if test "${ac_cv_host+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test "x$host_alias" = x; then
2197 ac_cv_host=$ac_cv_build
2199 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2200 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2201 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2202 { (exit 1); exit 1; }; }
2206 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2207 echo "${ECHO_T}$ac_cv_host" >&6; }
2210 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2211 echo "$as_me: error: invalid value of canonical host" >&2;}
2212 { (exit 1); exit 1; }; };;
2215 ac_save_IFS=$IFS; IFS='-'
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2225 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2228 { echo "$as_me:$LINENO: checking target system type" >&5
2229 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2230 if test "${ac_cv_target+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test "x$target_alias" = x; then
2234 ac_cv_target=$ac_cv_host
2236 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2237 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2238 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2239 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2244 echo "${ECHO_T}$ac_cv_target" >&6; }
2245 case $ac_cv_target in
2247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2248 echo "$as_me: error: invalid value of canonical target" >&2;}
2249 { (exit 1); exit 1; }; };;
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268 test "$program_prefix$program_suffix$program_transform_name" = \
2270 program_prefix=${target_alias}-
2272 am__api_version='1.10'
2274 # Find a good install program. We prefer a C program (faster),
2275 # so one script is as good as another. But avoid the broken or
2276 # incompatible versions:
2277 # SysV /etc/install, /usr/sbin/install
2278 # SunOS /usr/etc/install
2279 # IRIX /sbin/install
2281 # AmigaOS /C/install, which installs bootblocks on floppy discs
2282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2285 # OS/2's system install, which has a completely different semantic
2286 # ./install, which can be erroneously created by make from ./install.sh.
2287 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2289 if test -z "$INSTALL"; then
2290 if test "${ac_cv_path_install+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 # Account for people who put trailing slashes in PATH elements.
2300 ./ | .// | /cC/* | \
2301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2305 # OSF1 and SCO ODT 3.0 have their own names for install.
2306 # Don't use installbsd from OSF since it installs stuff as root
2308 for ac_prog in ginstall scoinst install; do
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311 if test $ac_prog = install &&
2312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # AIX install. It has an incompatible calling convention.
2315 elif test $ac_prog = install &&
2316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # program-specific install script used by HP pwplus--don't use.
2320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2333 if test "${ac_cv_path_install+set}" = set; then
2334 INSTALL=$ac_cv_path_install
2336 # As a last resort, use the slow shell script. Don't cache a
2337 # value for INSTALL within a source directory, because that will
2338 # break other packages using the cache if that directory is
2339 # removed, or if the value is a relative name.
2340 INSTALL=$ac_install_sh
2343 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2344 echo "${ECHO_T}$INSTALL" >&6; }
2346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2347 # It thinks the first close brace ends the variable substitution.
2348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2354 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2355 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2358 echo timestamp > conftest.file
2359 # Do `set' in a subshell so we don't clobber the current shell's
2360 # arguments. Must try -L first in case configure is actually a
2361 # symlink; some systems play weird games with the mod time of symlinks
2362 # (eg FreeBSD returns the mod time of the symlink's containing
2365 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2366 if test "$*" = "X"; then
2368 set X `ls -t $srcdir/configure conftest.file`
2371 if test "$*" != "X $srcdir/configure conftest.file" \
2372 && test "$*" != "X conftest.file $srcdir/configure"; then
2374 # If neither matched, then we have a broken ls. This can happen
2375 # if, for instance, CONFIG_SHELL is bash and it inherits a
2376 # broken ls alias from the environment. This has actually
2377 # happened. Such a system could not be considered "sane".
2378 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" >&5
2380 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2381 alias in your environment" >&2;}
2382 { (exit 1); exit 1; }; }
2385 test "$2" = conftest.file
2391 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2392 Check your system clock" >&5
2393 echo "$as_me: error: newly created file is older than distributed files!
2394 Check your system clock" >&2;}
2395 { (exit 1); exit 1; }; }
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2399 test "$program_prefix" != NONE &&
2400 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2401 # Use a double $ so make ignores it.
2402 test "$program_suffix" != NONE &&
2403 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2404 # Double any \ or $. echo might interpret backslashes.
2405 # By default was `s,x,x', remove it if useless.
2406 cat <<\_ACEOF >conftest.sed
2407 s/[\\$]/&&/g;s/;s,x,x,$//
2409 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2412 # expand $ac_aux_dir to an absolute path
2413 am_aux_dir=`cd $ac_aux_dir && pwd`
2415 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2416 # Use eval to expand $SHELL
2417 if eval "$MISSING --run true"; then
2418 am_missing_run="$MISSING --run "
2421 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2422 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2425 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2426 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2427 if test -z "$MKDIR_P"; then
2428 if test "${ac_cv_path_mkdir+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2435 test -z "$as_dir" && as_dir=.
2436 for ac_prog in mkdir gmkdir; do
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2440 'mkdir (GNU coreutils) '* | \
2441 'mkdir (coreutils) '* | \
2442 'mkdir (fileutils) '4.1*)
2443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2453 if test "${ac_cv_path_mkdir+set}" = set; then
2454 MKDIR_P="$ac_cv_path_mkdir -p"
2456 # As a last resort, use the slow shell script. Don't cache a
2457 # value for MKDIR_P within a source directory, because that will
2458 # break other packages using the cache if that directory is
2459 # removed, or if the value is a relative name.
2460 test -d ./--version && rmdir ./--version
2461 MKDIR_P="$ac_install_sh -d"
2464 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2465 echo "${ECHO_T}$MKDIR_P" >&6; }
2469 [\\/$]* | ?:[\\/]*) ;;
2470 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2473 for ac_prog in gawk mawk nawk awk
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_AWK+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$AWK"; then
2483 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_AWK="$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 if test -n "$AWK"; then
2504 { echo "$as_me:$LINENO: result: $AWK" >&5
2505 echo "${ECHO_T}$AWK" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2512 test -n "$AWK" && break
2515 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2517 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2518 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.make <<\_ACEOF
2524 @echo '@@@%%%=$(MAKE)=@@@%%%'
2526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2527 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2529 eval ac_cv_prog_make_${ac_make}_set=yes;;
2531 eval ac_cv_prog_make_${ac_make}_set=no;;
2535 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2536 { echo "$as_me:$LINENO: result: yes" >&5
2537 echo "${ECHO_T}yes" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 SET_MAKE="MAKE=${MAKE-make}"
2545 rm -rf .tst 2>/dev/null
2546 mkdir .tst 2>/dev/null
2547 if test -d .tst; then
2552 rmdir .tst 2>/dev/null
2554 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2555 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2556 # is not polluted with repeated "-I."
2557 am__isrc=' -I$(srcdir)'
2558 # test to see if srcdir already configured
2559 if test -f $srcdir/config.status; then
2560 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2561 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2562 { (exit 1); exit 1; }; }
2566 # test whether we have cygpath
2567 if test -z "$CYGPATH_W"; then
2568 if (cygpath --version) >/dev/null 2>/dev/null; then
2569 CYGPATH_W='cygpath -w'
2576 # Define the identity of the package.
2581 # Some tools Automake needs.
2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2599 # Installed binaries are usually stripped using `strip' when the user
2600 # run `make install-strip'. However `strip' might not be the right
2601 # tool to use in cross-compilation environments, therefore Automake
2602 # will honor the `STRIP' environment variable to overrule this program.
2603 if test "$cross_compiling" != no; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}strip; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_STRIP+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$STRIP"; then
2613 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 STRIP=$ac_cv_prog_STRIP
2633 if test -n "$STRIP"; then
2634 { echo "$as_me:$LINENO: result: $STRIP" >&5
2635 echo "${ECHO_T}$STRIP" >&6; }
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2643 if test -z "$ac_cv_prog_STRIP"; then
2645 # Extract the first word of "strip", so it can be a program name with args.
2646 set dummy strip; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 if test -n "$ac_ct_STRIP"; then
2653 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_ac_ct_STRIP="strip"
2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2673 if test -n "$ac_ct_STRIP"; then
2674 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2675 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2677 { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2681 if test "x$ac_ct_STRIP" = x; then
2684 case $cross_compiling:$ac_tool_warned in
2686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&5
2689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet. If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2692 ac_tool_warned=yes ;;
2697 STRIP="$ac_cv_prog_STRIP"
2701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2703 # We need awk for the "check" target. The system "awk" is bad on
2705 # Always define AMTAR for backward compatibility.
2707 AMTAR=${AMTAR-"${am_missing_run}tar"}
2709 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2715 cat >>confdefs.h <<_ACEOF
2716 #define OPENLDAP_PACKAGE "$PACKAGE"
2720 cat >>confdefs.h <<_ACEOF
2721 #define OPENLDAP_VERSION "$VERSION"
2726 cat >>confdefs.h <<_ACEOF
2727 #define LDAP_VENDOR_VERSION $OL_API_INC
2731 cat >>confdefs.h <<_ACEOF
2732 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2736 cat >>confdefs.h <<_ACEOF
2737 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2741 cat >>confdefs.h <<_ACEOF
2742 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2746 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2748 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2750 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2758 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2760 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2762 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2765 { echo "$as_me:$LINENO: checking configure arguments" >&5
2766 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2771 ldap_subdir="/openldap"
2774 # Check whether --with-subdir was given.
2775 if test "${with_subdir+set}" = set; then
2776 withval=$with_subdir; case "$withval" in
2782 ldap_subdir="$withval"
2785 ldap_subdir="/$withval"
2792 # OpenLDAP --enable-debug
2794 # Check whether --enable-debug was given.
2795 if test "${enable_debug+set}" = set; then
2796 enableval=$enable_debug;
2798 for ol_val in no yes traditional ; do
2799 if test "$enableval" = "$ol_val" ; then
2803 if test "$ol_arg" = "invalid" ; then
2804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2805 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2806 { (exit 1); exit 1; }; }
2808 ol_enable_debug="$ol_arg"
2814 # end --enable-debug
2815 # OpenLDAP --enable-dynamic
2817 # Check whether --enable-dynamic was given.
2818 if test "${enable_dynamic+set}" = set; then
2819 enableval=$enable_dynamic;
2821 for ol_val in auto yes no ; do
2822 if test "$enableval" = "$ol_val" ; then
2826 if test "$ol_arg" = "invalid" ; then
2827 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2828 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2829 { (exit 1); exit 1; }; }
2831 ol_enable_dynamic="$ol_arg"
2834 ol_enable_dynamic=no
2837 # end --enable-dynamic
2838 # OpenLDAP --enable-syslog
2840 # Check whether --enable-syslog was given.
2841 if test "${enable_syslog+set}" = set; then
2842 enableval=$enable_syslog;
2844 for ol_val in auto yes no ; do
2845 if test "$enableval" = "$ol_val" ; then
2849 if test "$ol_arg" = "invalid" ; then
2850 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2851 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2852 { (exit 1); exit 1; }; }
2854 ol_enable_syslog="$ol_arg"
2857 ol_enable_syslog=auto
2860 # end --enable-syslog
2861 # OpenLDAP --enable-proctitle
2863 # Check whether --enable-proctitle was given.
2864 if test "${enable_proctitle+set}" = set; then
2865 enableval=$enable_proctitle;
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-proctitle" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2875 { (exit 1); exit 1; }; }
2877 ol_enable_proctitle="$ol_arg"
2880 ol_enable_proctitle=yes
2883 # end --enable-proctitle
2884 ol_enable_referrals=${ol_enable_referrals-no}
2885 # OpenLDAP --enable-ipv6
2887 # Check whether --enable-ipv6 was given.
2888 if test "${enable_ipv6+set}" = set; then
2889 enableval=$enable_ipv6;
2891 for ol_val in auto yes no ; do
2892 if test "$enableval" = "$ol_val" ; then
2896 if test "$ol_arg" = "invalid" ; then
2897 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2898 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2899 { (exit 1); exit 1; }; }
2901 ol_enable_ipv6="$ol_arg"
2908 # OpenLDAP --enable-local
2910 # Check whether --enable-local was given.
2911 if test "${enable_local+set}" = set; then
2912 enableval=$enable_local;
2914 for ol_val in auto yes no ; do
2915 if test "$enableval" = "$ol_val" ; then
2919 if test "$ol_arg" = "invalid" ; then
2920 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2921 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2922 { (exit 1); exit 1; }; }
2924 ol_enable_local="$ol_arg"
2927 ol_enable_local=auto
2930 # end --enable-local
2932 # OpenLDAP --with-cyrus_sasl
2934 # Check whether --with-cyrus_sasl was given.
2935 if test "${with_cyrus_sasl+set}" = set; then
2936 withval=$with_cyrus_sasl;
2938 for ol_val in auto yes no ; do
2939 if test "$withval" = "$ol_val" ; then
2943 if test "$ol_arg" = "invalid" ; then
2944 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2945 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2946 { (exit 1); exit 1; }; }
2948 ol_with_cyrus_sasl="$ol_arg"
2951 ol_with_cyrus_sasl="auto"
2953 # end --with-cyrus_sasl
2955 # OpenLDAP --with-fetch
2957 # Check whether --with-fetch was given.
2958 if test "${with_fetch+set}" = set; then
2959 withval=$with_fetch;
2961 for ol_val in auto yes no ; do
2962 if test "$withval" = "$ol_val" ; then
2966 if test "$ol_arg" = "invalid" ; then
2967 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2968 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2969 { (exit 1); exit 1; }; }
2971 ol_with_fetch="$ol_arg"
2974 ol_with_fetch="auto"
2978 # OpenLDAP --with-threads
2980 # Check whether --with-threads was given.
2981 if test "${with_threads+set}" = set; then
2982 withval=$with_threads;
2984 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2985 if test "$withval" = "$ol_val" ; then
2989 if test "$ol_arg" = "invalid" ; then
2990 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2991 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2992 { (exit 1); exit 1; }; }
2994 ol_with_threads="$ol_arg"
2997 ol_with_threads="auto"
2999 # end --with-threads
3001 # OpenLDAP --with-tls
3003 # Check whether --with-tls was given.
3004 if test "${with_tls+set}" = set; then
3007 for ol_val in auto openssl gnutls moznss yes no ; do
3008 if test "$withval" = "$ol_val" ; then
3012 if test "$ol_arg" = "invalid" ; then
3013 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3014 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3015 { (exit 1); exit 1; }; }
3017 ol_with_tls="$ol_arg"
3024 # OpenLDAP --with-yielding_select
3026 # Check whether --with-yielding_select was given.
3027 if test "${with_yielding_select+set}" = set; then
3028 withval=$with_yielding_select;
3030 for ol_val in auto yes no manual ; do
3031 if test "$withval" = "$ol_val" ; then
3035 if test "$ol_arg" = "invalid" ; then
3036 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3037 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3038 { (exit 1); exit 1; }; }
3040 ol_with_yielding_select="$ol_arg"
3043 ol_with_yielding_select="auto"
3045 # end --with-yielding_select
3047 # OpenLDAP --with-mp
3049 # Check whether --with-mp was given.
3050 if test "${with_mp+set}" = set; then
3053 for ol_val in auto longlong long bignum gmp yes no ; do
3054 if test "$withval" = "$ol_val" ; then
3058 if test "$ol_arg" = "invalid" ; then
3059 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3060 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3061 { (exit 1); exit 1; }; }
3063 ol_with_mp="$ol_arg"
3070 # OpenLDAP --with-odbc
3072 # Check whether --with-odbc was given.
3073 if test "${with_odbc+set}" = set; then
3076 for ol_val in auto iodbc unixodbc odbc32 ; do
3077 if test "$withval" = "$ol_val" ; then
3081 if test "$ol_arg" = "invalid" ; then
3082 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3083 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3084 { (exit 1); exit 1; }; }
3086 ol_with_odbc="$ol_arg"
3095 # Check whether --enable-xxslapdoptions was given.
3096 if test "${enable_xxslapdoptions+set}" = set; then
3097 enableval=$enable_xxslapdoptions;
3100 # OpenLDAP --enable-slapd
3102 # Check whether --enable-slapd was given.
3103 if test "${enable_slapd+set}" = set; then
3104 enableval=$enable_slapd;
3106 for ol_val in auto yes no ; do
3107 if test "$enableval" = "$ol_val" ; then
3111 if test "$ol_arg" = "invalid" ; then
3112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3114 { (exit 1); exit 1; }; }
3116 ol_enable_slapd="$ol_arg"
3122 # end --enable-slapd
3123 # OpenLDAP --enable-dynacl
3125 # Check whether --enable-dynacl was given.
3126 if test "${enable_dynacl+set}" = set; then
3127 enableval=$enable_dynacl;
3129 for ol_val in auto yes no ; do
3130 if test "$enableval" = "$ol_val" ; then
3134 if test "$ol_arg" = "invalid" ; then
3135 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3137 { (exit 1); exit 1; }; }
3139 ol_enable_dynacl="$ol_arg"
3145 # end --enable-dynacl
3146 # OpenLDAP --enable-aci
3148 # Check whether --enable-aci was given.
3149 if test "${enable_aci+set}" = set; then
3150 enableval=$enable_aci;
3152 for ol_val in no yes mod ; do
3153 if test "$enableval" = "$ol_val" ; then
3157 if test "$ol_arg" = "invalid" ; then
3158 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3160 { (exit 1); exit 1; }; }
3162 ol_enable_aci="$ol_arg"
3169 # OpenLDAP --enable-cleartext
3171 # Check whether --enable-cleartext was given.
3172 if test "${enable_cleartext+set}" = set; then
3173 enableval=$enable_cleartext;
3175 for ol_val in auto yes no ; do
3176 if test "$enableval" = "$ol_val" ; then
3180 if test "$ol_arg" = "invalid" ; then
3181 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3182 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3183 { (exit 1); exit 1; }; }
3185 ol_enable_cleartext="$ol_arg"
3188 ol_enable_cleartext=yes
3191 # end --enable-cleartext
3192 # OpenLDAP --enable-crypt
3194 # Check whether --enable-crypt was given.
3195 if test "${enable_crypt+set}" = set; then
3196 enableval=$enable_crypt;
3198 for ol_val in auto yes no ; do
3199 if test "$enableval" = "$ol_val" ; then
3203 if test "$ol_arg" = "invalid" ; then
3204 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3206 { (exit 1); exit 1; }; }
3208 ol_enable_crypt="$ol_arg"
3214 # end --enable-crypt
3215 # OpenLDAP --enable-lmpasswd
3217 # Check whether --enable-lmpasswd was given.
3218 if test "${enable_lmpasswd+set}" = set; then
3219 enableval=$enable_lmpasswd;
3221 for ol_val in auto yes no ; do
3222 if test "$enableval" = "$ol_val" ; then
3226 if test "$ol_arg" = "invalid" ; then
3227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3229 { (exit 1); exit 1; }; }
3231 ol_enable_lmpasswd="$ol_arg"
3234 ol_enable_lmpasswd=no
3237 # end --enable-lmpasswd
3238 # OpenLDAP --enable-spasswd
3240 # Check whether --enable-spasswd was given.
3241 if test "${enable_spasswd+set}" = set; then
3242 enableval=$enable_spasswd;
3244 for ol_val in auto yes no ; do
3245 if test "$enableval" = "$ol_val" ; then
3249 if test "$ol_arg" = "invalid" ; then
3250 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3251 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3252 { (exit 1); exit 1; }; }
3254 ol_enable_spasswd="$ol_arg"
3257 ol_enable_spasswd=no
3260 # end --enable-spasswd
3261 # OpenLDAP --enable-modules
3263 # Check whether --enable-modules was given.
3264 if test "${enable_modules+set}" = set; then
3265 enableval=$enable_modules;
3267 for ol_val in auto yes no ; do
3268 if test "$enableval" = "$ol_val" ; then
3272 if test "$ol_arg" = "invalid" ; then
3273 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3275 { (exit 1); exit 1; }; }
3277 ol_enable_modules="$ol_arg"
3280 ol_enable_modules=no
3283 # end --enable-modules
3284 # OpenLDAP --enable-rewrite
3286 # Check whether --enable-rewrite was given.
3287 if test "${enable_rewrite+set}" = set; then
3288 enableval=$enable_rewrite;
3290 for ol_val in auto yes no ; do
3291 if test "$enableval" = "$ol_val" ; then
3295 if test "$ol_arg" = "invalid" ; then
3296 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3298 { (exit 1); exit 1; }; }
3300 ol_enable_rewrite="$ol_arg"
3303 ol_enable_rewrite=auto
3306 # end --enable-rewrite
3307 # OpenLDAP --enable-rlookups
3309 # Check whether --enable-rlookups was given.
3310 if test "${enable_rlookups+set}" = set; then
3311 enableval=$enable_rlookups;
3313 for ol_val in auto yes no ; do
3314 if test "$enableval" = "$ol_val" ; then
3318 if test "$ol_arg" = "invalid" ; then
3319 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3321 { (exit 1); exit 1; }; }
3323 ol_enable_rlookups="$ol_arg"
3326 ol_enable_rlookups=no
3329 # end --enable-rlookups
3330 # OpenLDAP --enable-slapi
3332 # Check whether --enable-slapi was given.
3333 if test "${enable_slapi+set}" = set; then
3334 enableval=$enable_slapi;
3336 for ol_val in auto yes no ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_slapi="$ol_arg"
3352 # end --enable-slapi
3353 # OpenLDAP --enable-slp
3355 # Check whether --enable-slp was given.
3356 if test "${enable_slp+set}" = set; then
3357 enableval=$enable_slp;
3359 for ol_val in auto yes no ; do
3360 if test "$enableval" = "$ol_val" ; then
3364 if test "$ol_arg" = "invalid" ; then
3365 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3366 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3367 { (exit 1); exit 1; }; }
3369 ol_enable_slp="$ol_arg"
3376 # OpenLDAP --enable-wrappers
3378 # Check whether --enable-wrappers was given.
3379 if test "${enable_wrappers+set}" = set; then
3380 enableval=$enable_wrappers;
3382 for ol_val in auto yes no ; do
3383 if test "$enableval" = "$ol_val" ; then
3387 if test "$ol_arg" = "invalid" ; then
3388 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3389 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3390 { (exit 1); exit 1; }; }
3392 ol_enable_wrappers="$ol_arg"
3395 ol_enable_wrappers=no
3398 # end --enable-wrappers
3415 # Check whether --enable-xxslapbackends was given.
3416 if test "${enable_xxslapbackends+set}" = set; then
3417 enableval=$enable_xxslapbackends;
3421 # OpenLDAP --enable-backends
3423 # Check whether --enable-backends was given.
3424 if test "${enable_backends+set}" = set; then
3425 enableval=$enable_backends;
3427 for ol_val in no yes mod ; do
3428 if test "$enableval" = "$ol_val" ; then
3432 if test "$ol_arg" = "invalid" ; then
3433 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3435 { (exit 1); exit 1; }; }
3437 ol_enable_backends="$ol_arg"
3441 # end --enable-backends
3442 # OpenLDAP --enable-bdb
3444 # Check whether --enable-bdb was given.
3445 if test "${enable_bdb+set}" = set; then
3446 enableval=$enable_bdb;
3448 for ol_val in no yes mod ; do
3449 if test "$enableval" = "$ol_val" ; then
3453 if test "$ol_arg" = "invalid" ; then
3454 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3455 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3456 { (exit 1); exit 1; }; }
3458 ol_enable_bdb="$ol_arg"
3461 ol_enable_bdb=${ol_enable_backends:-no}
3465 # OpenLDAP --enable-dnssrv
3467 # Check whether --enable-dnssrv was given.
3468 if test "${enable_dnssrv+set}" = set; then
3469 enableval=$enable_dnssrv;
3471 for ol_val in no yes mod ; do
3472 if test "$enableval" = "$ol_val" ; then
3476 if test "$ol_arg" = "invalid" ; then
3477 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3478 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3479 { (exit 1); exit 1; }; }
3481 ol_enable_dnssrv="$ol_arg"
3484 ol_enable_dnssrv=${ol_enable_backends:-no}
3487 # end --enable-dnssrv
3488 # OpenLDAP --enable-hdb
3490 # Check whether --enable-hdb was given.
3491 if test "${enable_hdb+set}" = set; then
3492 enableval=$enable_hdb;
3494 for ol_val in no yes mod ; do
3495 if test "$enableval" = "$ol_val" ; then
3499 if test "$ol_arg" = "invalid" ; then
3500 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3501 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3502 { (exit 1); exit 1; }; }
3504 ol_enable_hdb="$ol_arg"
3507 ol_enable_hdb=${ol_enable_backends:-yes}
3511 # OpenLDAP --enable-ldap
3513 # Check whether --enable-ldap was given.
3514 if test "${enable_ldap+set}" = set; then
3515 enableval=$enable_ldap;
3517 for ol_val in no yes mod ; do
3518 if test "$enableval" = "$ol_val" ; then
3522 if test "$ol_arg" = "invalid" ; then
3523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3525 { (exit 1); exit 1; }; }
3527 ol_enable_ldap="$ol_arg"
3530 ol_enable_ldap=${ol_enable_backends:-no}
3534 # OpenLDAP --enable-meta
3536 # Check whether --enable-meta was given.
3537 if test "${enable_meta+set}" = set; then
3538 enableval=$enable_meta;
3540 for ol_val in no yes mod ; do
3541 if test "$enableval" = "$ol_val" ; then
3545 if test "$ol_arg" = "invalid" ; then
3546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3547 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3548 { (exit 1); exit 1; }; }
3550 ol_enable_meta="$ol_arg"
3553 ol_enable_meta=${ol_enable_backends:-no}
3557 # OpenLDAP --enable-monitor
3559 # Check whether --enable-monitor was given.
3560 if test "${enable_monitor+set}" = set; then
3561 enableval=$enable_monitor;
3563 for ol_val in no yes mod ; do
3564 if test "$enableval" = "$ol_val" ; then
3568 if test "$ol_arg" = "invalid" ; then
3569 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3570 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3571 { (exit 1); exit 1; }; }
3573 ol_enable_monitor="$ol_arg"
3576 ol_enable_monitor=${ol_enable_backends:-yes}
3579 # end --enable-monitor
3580 # OpenLDAP --enable-ndb
3582 # Check whether --enable-ndb was given.
3583 if test "${enable_ndb+set}" = set; then
3584 enableval=$enable_ndb;
3586 for ol_val in no yes mod ; do
3587 if test "$enableval" = "$ol_val" ; then
3591 if test "$ol_arg" = "invalid" ; then
3592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3593 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3594 { (exit 1); exit 1; }; }
3596 ol_enable_ndb="$ol_arg"
3599 ol_enable_ndb=${ol_enable_backends:-no}
3603 # OpenLDAP --enable-null
3605 # Check whether --enable-null was given.
3606 if test "${enable_null+set}" = set; then
3607 enableval=$enable_null;
3609 for ol_val in no yes mod ; do
3610 if test "$enableval" = "$ol_val" ; then
3614 if test "$ol_arg" = "invalid" ; then
3615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3617 { (exit 1); exit 1; }; }
3619 ol_enable_null="$ol_arg"
3622 ol_enable_null=${ol_enable_backends:-no}
3626 # OpenLDAP --enable-passwd
3628 # Check whether --enable-passwd was given.
3629 if test "${enable_passwd+set}" = set; then
3630 enableval=$enable_passwd;
3632 for ol_val in no yes mod ; do
3633 if test "$enableval" = "$ol_val" ; then
3637 if test "$ol_arg" = "invalid" ; then
3638 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3639 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3640 { (exit 1); exit 1; }; }
3642 ol_enable_passwd="$ol_arg"
3645 ol_enable_passwd=${ol_enable_backends:-no}
3648 # end --enable-passwd
3649 # OpenLDAP --enable-perl
3651 # Check whether --enable-perl was given.
3652 if test "${enable_perl+set}" = set; then
3653 enableval=$enable_perl;
3655 for ol_val in no yes mod ; do
3656 if test "$enableval" = "$ol_val" ; then
3660 if test "$ol_arg" = "invalid" ; then
3661 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3662 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3663 { (exit 1); exit 1; }; }
3665 ol_enable_perl="$ol_arg"
3668 ol_enable_perl=${ol_enable_backends:-no}
3672 # OpenLDAP --enable-relay
3674 # Check whether --enable-relay was given.
3675 if test "${enable_relay+set}" = set; then
3676 enableval=$enable_relay;
3678 for ol_val in no yes mod ; do
3679 if test "$enableval" = "$ol_val" ; then
3683 if test "$ol_arg" = "invalid" ; then
3684 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3685 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3686 { (exit 1); exit 1; }; }
3688 ol_enable_relay="$ol_arg"
3691 ol_enable_relay=${ol_enable_backends:-yes}
3694 # end --enable-relay
3695 # OpenLDAP --enable-shell
3697 # Check whether --enable-shell was given.
3698 if test "${enable_shell+set}" = set; then
3699 enableval=$enable_shell;
3701 for ol_val in no yes mod ; do
3702 if test "$enableval" = "$ol_val" ; then
3706 if test "$ol_arg" = "invalid" ; then
3707 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3708 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3709 { (exit 1); exit 1; }; }
3711 ol_enable_shell="$ol_arg"
3714 ol_enable_shell=${ol_enable_backends:-no}
3717 # end --enable-shell
3718 # OpenLDAP --enable-sock
3720 # Check whether --enable-sock was given.
3721 if test "${enable_sock+set}" = set; then
3722 enableval=$enable_sock;
3724 for ol_val in no yes mod ; do
3725 if test "$enableval" = "$ol_val" ; then
3729 if test "$ol_arg" = "invalid" ; then
3730 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3731 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3732 { (exit 1); exit 1; }; }
3734 ol_enable_sock="$ol_arg"
3737 ol_enable_sock=${ol_enable_backends:-no}
3741 # OpenLDAP --enable-sql
3743 # Check whether --enable-sql was given.
3744 if test "${enable_sql+set}" = set; then
3745 enableval=$enable_sql;
3747 for ol_val in no yes mod ; do
3748 if test "$enableval" = "$ol_val" ; then
3752 if test "$ol_arg" = "invalid" ; then
3753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3754 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3755 { (exit 1); exit 1; }; }
3757 ol_enable_sql="$ol_arg"
3760 ol_enable_sql=${ol_enable_backends:-no}
3765 Overlays="accesslog \
3786 # Check whether --enable-xxslapoverlays was given.
3787 if test "${enable_xxslapoverlays+set}" = set; then
3788 enableval=$enable_xxslapoverlays;
3792 # OpenLDAP --enable-overlays
3794 # Check whether --enable-overlays was given.
3795 if test "${enable_overlays+set}" = set; then
3796 enableval=$enable_overlays;
3798 for ol_val in no yes mod ; do
3799 if test "$enableval" = "$ol_val" ; then
3803 if test "$ol_arg" = "invalid" ; then
3804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3806 { (exit 1); exit 1; }; }
3808 ol_enable_overlays="$ol_arg"
3812 # end --enable-overlays
3813 # OpenLDAP --enable-accesslog
3815 # Check whether --enable-accesslog was given.
3816 if test "${enable_accesslog+set}" = set; then
3817 enableval=$enable_accesslog;
3819 for ol_val in no yes mod ; do
3820 if test "$enableval" = "$ol_val" ; then
3824 if test "$ol_arg" = "invalid" ; then
3825 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3826 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3827 { (exit 1); exit 1; }; }
3829 ol_enable_accesslog="$ol_arg"
3832 ol_enable_accesslog=${ol_enable_overlays:-no}
3835 # end --enable-accesslog
3837 # OpenLDAP --enable-auditlog
3839 # Check whether --enable-auditlog was given.
3840 if test "${enable_auditlog+set}" = set; then
3841 enableval=$enable_auditlog;
3843 for ol_val in no yes mod ; do
3844 if test "$enableval" = "$ol_val" ; then
3848 if test "$ol_arg" = "invalid" ; then
3849 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3850 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3851 { (exit 1); exit 1; }; }
3853 ol_enable_auditlog="$ol_arg"
3856 ol_enable_auditlog=${ol_enable_overlays:-no}
3859 # end --enable-auditlog
3861 # OpenLDAP --enable-collect
3863 # Check whether --enable-collect was given.
3864 if test "${enable_collect+set}" = set; then
3865 enableval=$enable_collect;
3867 for ol_val in no yes mod ; do
3868 if test "$enableval" = "$ol_val" ; then
3872 if test "$ol_arg" = "invalid" ; then
3873 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3874 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3875 { (exit 1); exit 1; }; }
3877 ol_enable_collect="$ol_arg"
3880 ol_enable_collect=${ol_enable_overlays:-no}
3883 # end --enable-collect
3885 # OpenLDAP --enable-constraint
3887 # Check whether --enable-constraint was given.
3888 if test "${enable_constraint+set}" = set; then
3889 enableval=$enable_constraint;
3891 for ol_val in no yes mod ; do
3892 if test "$enableval" = "$ol_val" ; then
3896 if test "$ol_arg" = "invalid" ; then
3897 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3898 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3899 { (exit 1); exit 1; }; }
3901 ol_enable_constraint="$ol_arg"
3904 ol_enable_constraint=${ol_enable_overlays:-no}
3907 # end --enable-constraint
3909 # OpenLDAP --enable-dds
3911 # Check whether --enable-dds was given.
3912 if test "${enable_dds+set}" = set; then
3913 enableval=$enable_dds;
3915 for ol_val in no yes mod ; do
3916 if test "$enableval" = "$ol_val" ; then
3920 if test "$ol_arg" = "invalid" ; then
3921 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3922 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3923 { (exit 1); exit 1; }; }
3925 ol_enable_dds="$ol_arg"
3928 ol_enable_dds=${ol_enable_overlays:-no}
3933 # OpenLDAP --enable-deref
3935 # Check whether --enable-deref was given.
3936 if test "${enable_deref+set}" = set; then
3937 enableval=$enable_deref;
3939 for ol_val in no yes mod ; do
3940 if test "$enableval" = "$ol_val" ; then
3944 if test "$ol_arg" = "invalid" ; then
3945 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3946 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3947 { (exit 1); exit 1; }; }
3949 ol_enable_deref="$ol_arg"
3952 ol_enable_deref=${ol_enable_overlays:-no}
3955 # end --enable-deref
3957 # OpenLDAP --enable-dyngroup
3959 # Check whether --enable-dyngroup was given.
3960 if test "${enable_dyngroup+set}" = set; then
3961 enableval=$enable_dyngroup;
3963 for ol_val in no yes mod ; do
3964 if test "$enableval" = "$ol_val" ; then
3968 if test "$ol_arg" = "invalid" ; then
3969 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3970 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3971 { (exit 1); exit 1; }; }
3973 ol_enable_dyngroup="$ol_arg"
3976 ol_enable_dyngroup=${ol_enable_overlays:-no}
3979 # end --enable-dyngroup
3981 # OpenLDAP --enable-dynlist
3983 # Check whether --enable-dynlist was given.
3984 if test "${enable_dynlist+set}" = set; then
3985 enableval=$enable_dynlist;
3987 for ol_val in no yes mod ; do
3988 if test "$enableval" = "$ol_val" ; then
3992 if test "$ol_arg" = "invalid" ; then
3993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3994 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3995 { (exit 1); exit 1; }; }
3997 ol_enable_dynlist="$ol_arg"
4000 ol_enable_dynlist=${ol_enable_overlays:-no}
4003 # end --enable-dynlist
4005 # OpenLDAP --enable-memberof
4007 # Check whether --enable-memberof was given.
4008 if test "${enable_memberof+set}" = set; then
4009 enableval=$enable_memberof;
4011 for ol_val in no yes mod ; do
4012 if test "$enableval" = "$ol_val" ; then
4016 if test "$ol_arg" = "invalid" ; then
4017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4018 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4019 { (exit 1); exit 1; }; }
4021 ol_enable_memberof="$ol_arg"
4024 ol_enable_memberof=${ol_enable_overlays:-no}
4027 # end --enable-memberof
4029 # OpenLDAP --enable-ppolicy
4031 # Check whether --enable-ppolicy was given.
4032 if test "${enable_ppolicy+set}" = set; then
4033 enableval=$enable_ppolicy;
4035 for ol_val in no yes mod ; do
4036 if test "$enableval" = "$ol_val" ; then
4040 if test "$ol_arg" = "invalid" ; then
4041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4042 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4043 { (exit 1); exit 1; }; }
4045 ol_enable_ppolicy="$ol_arg"
4048 ol_enable_ppolicy=${ol_enable_overlays:-no}
4051 # end --enable-ppolicy
4053 # OpenLDAP --enable-proxycache
4055 # Check whether --enable-proxycache was given.
4056 if test "${enable_proxycache+set}" = set; then
4057 enableval=$enable_proxycache;
4059 for ol_val in no yes mod ; do
4060 if test "$enableval" = "$ol_val" ; then
4064 if test "$ol_arg" = "invalid" ; then
4065 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4066 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4067 { (exit 1); exit 1; }; }
4069 ol_enable_proxycache="$ol_arg"
4072 ol_enable_proxycache=${ol_enable_overlays:-no}
4075 # end --enable-proxycache
4077 # OpenLDAP --enable-refint
4079 # Check whether --enable-refint was given.
4080 if test "${enable_refint+set}" = set; then
4081 enableval=$enable_refint;
4083 for ol_val in no yes mod ; do
4084 if test "$enableval" = "$ol_val" ; then
4088 if test "$ol_arg" = "invalid" ; then
4089 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4090 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4091 { (exit 1); exit 1; }; }
4093 ol_enable_refint="$ol_arg"
4096 ol_enable_refint=${ol_enable_overlays:-no}
4099 # end --enable-refint
4101 # OpenLDAP --enable-retcode
4103 # Check whether --enable-retcode was given.
4104 if test "${enable_retcode+set}" = set; then
4105 enableval=$enable_retcode;
4107 for ol_val in no yes mod ; do
4108 if test "$enableval" = "$ol_val" ; then
4112 if test "$ol_arg" = "invalid" ; then
4113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4114 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4115 { (exit 1); exit 1; }; }
4117 ol_enable_retcode="$ol_arg"
4120 ol_enable_retcode=${ol_enable_overlays:-no}
4123 # end --enable-retcode
4125 # OpenLDAP --enable-rwm
4127 # Check whether --enable-rwm was given.
4128 if test "${enable_rwm+set}" = set; then
4129 enableval=$enable_rwm;
4131 for ol_val in no yes mod ; do
4132 if test "$enableval" = "$ol_val" ; then
4136 if test "$ol_arg" = "invalid" ; then
4137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4138 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4139 { (exit 1); exit 1; }; }
4141 ol_enable_rwm="$ol_arg"
4144 ol_enable_rwm=${ol_enable_overlays:-no}
4149 # OpenLDAP --enable-seqmod
4151 # Check whether --enable-seqmod was given.
4152 if test "${enable_seqmod+set}" = set; then
4153 enableval=$enable_seqmod;
4155 for ol_val in no yes mod ; do
4156 if test "$enableval" = "$ol_val" ; then
4160 if test "$ol_arg" = "invalid" ; then
4161 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4162 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4163 { (exit 1); exit 1; }; }
4165 ol_enable_seqmod="$ol_arg"
4168 ol_enable_seqmod=${ol_enable_overlays:-no}
4171 # end --enable-seqmod
4173 # OpenLDAP --enable-sssvlv
4175 # Check whether --enable-sssvlv was given.
4176 if test "${enable_sssvlv+set}" = set; then
4177 enableval=$enable_sssvlv;
4179 for ol_val in no yes mod ; do
4180 if test "$enableval" = "$ol_val" ; then
4184 if test "$ol_arg" = "invalid" ; then
4185 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4187 { (exit 1); exit 1; }; }
4189 ol_enable_sssvlv="$ol_arg"
4192 ol_enable_sssvlv=${ol_enable_overlays:-no}
4195 # end --enable-sssvlv
4197 # OpenLDAP --enable-syncprov
4199 # Check whether --enable-syncprov was given.
4200 if test "${enable_syncprov+set}" = set; then
4201 enableval=$enable_syncprov;
4203 for ol_val in no yes mod ; do
4204 if test "$enableval" = "$ol_val" ; then
4208 if test "$ol_arg" = "invalid" ; then
4209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4211 { (exit 1); exit 1; }; }
4213 ol_enable_syncprov="$ol_arg"
4216 ol_enable_syncprov=${ol_enable_overlays:-yes}
4219 # end --enable-syncprov
4221 # OpenLDAP --enable-translucent
4223 # Check whether --enable-translucent was given.
4224 if test "${enable_translucent+set}" = set; then
4225 enableval=$enable_translucent;
4227 for ol_val in no yes mod ; do
4228 if test "$enableval" = "$ol_val" ; then
4232 if test "$ol_arg" = "invalid" ; then
4233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4235 { (exit 1); exit 1; }; }
4237 ol_enable_translucent="$ol_arg"
4240 ol_enable_translucent=${ol_enable_overlays:-no}
4243 # end --enable-translucent
4245 # OpenLDAP --enable-unique
4247 # Check whether --enable-unique was given.
4248 if test "${enable_unique+set}" = set; then
4249 enableval=$enable_unique;
4251 for ol_val in no yes mod ; do
4252 if test "$enableval" = "$ol_val" ; then
4256 if test "$ol_arg" = "invalid" ; then
4257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4259 { (exit 1); exit 1; }; }
4261 ol_enable_unique="$ol_arg"
4264 ol_enable_unique=${ol_enable_overlays:-no}
4267 # end --enable-unique
4269 # OpenLDAP --enable-valsort
4271 # Check whether --enable-valsort was given.
4272 if test "${enable_valsort+set}" = set; then
4273 enableval=$enable_valsort;
4275 for ol_val in no yes mod ; do
4276 if test "$enableval" = "$ol_val" ; then
4280 if test "$ol_arg" = "invalid" ; then
4281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4282 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4283 { (exit 1); exit 1; }; }
4285 ol_enable_valsort="$ol_arg"
4288 ol_enable_valsort=${ol_enable_overlays:-no}
4291 # end --enable-valsort
4294 # Check whether --enable-xxliboptions was given.
4295 if test "${enable_xxliboptions+set}" = set; then
4296 enableval=$enable_xxliboptions;
4299 # Check whether --enable-static was given.
4300 if test "${enable_static+set}" = set; then
4301 enableval=$enable_static; p=${PACKAGE-default}
4303 yes) enable_static=yes ;;
4304 no) enable_static=no ;;
4307 # Look at the argument we got. We use all the common list separators.
4308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309 for pkg in $enableval; do
4311 if test "X$pkg" = "X$p"; then
4323 # Check whether --enable-shared was given.
4324 if test "${enable_shared+set}" = set; then
4325 enableval=$enable_shared; p=${PACKAGE-default}
4327 yes) enable_shared=yes ;;
4328 no) enable_shared=no ;;
4331 # Look at the argument we got. We use all the common list separators.
4332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4333 for pkg in $enableval; do
4335 if test "X$pkg" = "X$p"; then
4350 if test $ol_enable_slapd = no ; then
4351 if test $ol_enable_slapi = yes ; then
4352 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4355 case "$ol_enable_backends" in yes | mod)
4356 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4359 for i in $Backends; do
4360 eval "ol_tmp=\$ol_enable_$i"
4361 if test $ol_tmp != no ; then
4362 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4364 eval "ol_enable_$i=no"
4367 if test $ol_enable_modules = yes ; then
4368 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4371 if test $ol_enable_wrappers = yes ; then
4372 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4373 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4375 if test $ol_enable_rlookups = yes ; then
4376 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4379 if test $ol_enable_dynacl = yes ; then
4380 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4381 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4383 if test $ol_enable_aci != no ; then
4384 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4385 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4387 if test $ol_enable_rewrite = yes ; then
4388 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4389 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4391 case "$ol_enable_overlays" in yes | mod)
4392 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4393 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4395 for i in $Overlays; do
4396 eval "ol_tmp=\$ol_enable_$i"
4397 if test $ol_tmp != no ; then
4398 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4399 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4400 eval "ol_enable_$i=no"
4404 # force settings to no
4409 ol_enable_modules=no
4410 ol_enable_rlookups=no
4413 ol_enable_wrappers=no
4415 ol_enable_rewrite=no
4417 elif test $ol_enable_modules != yes &&
4418 test $ol_enable_bdb = no &&
4419 test $ol_enable_dnssrv = no &&
4420 test $ol_enable_hdb = no &&
4421 test $ol_enable_ldap = no &&
4422 test $ol_enable_meta = no &&
4423 test $ol_enable_monitor = no &&
4424 test $ol_enable_ndb = no &&
4425 test $ol_enable_null = no &&
4426 test $ol_enable_passwd = no &&
4427 test $ol_enable_perl = no &&
4428 test $ol_enable_relay = no &&
4429 test $ol_enable_shell = no &&
4430 test $ol_enable_sock = no &&
4431 test $ol_enable_sql = no ; then
4433 if test $ol_enable_slapd = yes ; then
4434 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4435 echo "$as_me: error: slapd requires a backend" >&2;}
4436 { (exit 1); exit 1; }; }
4438 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4439 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4444 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4445 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4446 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4447 { (exit 1); exit 1; }; }
4450 if test $ol_enable_lmpasswd = yes ; then
4451 if test $ol_with_tls = no ; then
4452 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4453 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4454 { (exit 1); exit 1; }; }
4458 if test $ol_enable_spasswd = yes ; then
4459 if test $ol_with_cyrus_sasl = no ; then
4460 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4461 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4462 { (exit 1); exit 1; }; }
4464 ol_with_cyrus_sasl=yes
4467 { echo "$as_me:$LINENO: result: done" >&5
4468 echo "${ECHO_T}done" >&6; }
4519 BUILD_TRANSLUCENT=no
4523 SLAPD_STATIC_OVERLAYS=
4524 SLAPD_DYNAMIC_OVERLAYS=
4526 SLAPD_MODULES_LDFLAGS=
4527 SLAPD_MODULES_CPPFLAGS=
4529 SLAPD_STATIC_BACKENDS=back-ldif
4530 SLAPD_DYNAMIC_BACKENDS=
4556 cat >>confdefs.h <<\_ACEOF
4557 #define HAVE_MKVERSION 1
4565 *-*-aix*) if test -z "$CC" ; then
4566 case "$ol_with_threads" in
4567 auto | yes | posix) ol_aix_threads=yes ;;
4573 if test $ol_aix_threads = yes ; then
4574 if test -z "${CC}" ; then
4575 for ac_prog in cc_r xlc_r cc
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_CC="$ac_prog"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 if test -n "$CC"; then
4606 { echo "$as_me:$LINENO: result: $CC" >&5
4607 echo "${ECHO_T}$CC" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 test -n "$CC" && break
4618 if test "$CC" = cc ; then
4619 if test $ol_with_threads != auto ; then
4620 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4621 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4622 { (exit 1); exit 1; }; }
4624 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4625 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4631 case ${CC} in cc_r | xlc_r)
4632 ol_with_threads=posix
4633 ol_cv_pthread_create=yes
4638 if test -z "${CC}"; then
4639 for ac_prog in cc gcc
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy $ac_prog; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_CC+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$CC"; then
4649 ac_cv_prog_CC="$CC" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_CC="$ac_prog"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 if test -n "$CC"; then
4670 { echo "$as_me:$LINENO: result: $CC" >&5
4671 echo "${ECHO_T}$CC" >&6; }
4673 { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4678 test -n "$CC" && break
4680 test -n "$CC" || CC="missing"
4683 if test "${CC}" = "missing" ; then
4684 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4685 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4686 { (exit 1); exit 1; }; }
4690 if test -z "${AR}"; then
4691 for ac_prog in ar gar
4693 # Extract the first word of "$ac_prog", so it can be a program name with args.
4694 set dummy $ac_prog; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_AR+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$AR"; then
4701 ac_cv_prog_AR="$AR" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_AR="$ac_prog"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 if test -n "$AR"; then
4722 { echo "$as_me:$LINENO: result: $AR" >&5
4723 echo "${ECHO_T}$AR" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 test -n "$AR" && break
4732 test -n "$AR" || AR="missing"
4735 if test "${AR}" = "missing" ; then
4736 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4737 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4738 { (exit 1); exit 1; }; }
4746 # Check whether --enable-fast-install was given.
4747 if test "${enable_fast_install+set}" = set; then
4748 enableval=$enable_fast_install; p=${PACKAGE-default}
4750 yes) enable_fast_install=yes ;;
4751 no) enable_fast_install=no ;;
4753 enable_fast_install=no
4754 # Look at the argument we got. We use all the common list separators.
4755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4756 for pkg in $enableval; do
4758 if test "X$pkg" = "X$p"; then
4759 enable_fast_install=yes
4766 enable_fast_install=yes
4770 DEPDIR="${am__leading_dot}deps"
4772 ac_config_commands="$ac_config_commands depfiles"
4775 am_make=${MAKE-make}
4776 cat > confinc << 'END'
4781 # If we don't find an include directive, just comment out the code.
4782 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4783 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4787 # First try GNU make style include.
4788 echo "include confinc" > confmf
4789 # We grep out `Entering directory' and `Leaving directory'
4790 # messages which can occur if `w' ends up in MAKEFLAGS.
4791 # In particular we don't look at `^make:' because GNU make might
4792 # be invoked under some other name (usually "gmake"), in which
4793 # case it prints its new name instead of `make'.
4794 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4799 # Now try BSD make style include.
4800 if test "$am__include" = "#"; then
4801 echo '.include "confinc"' > confmf
4802 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4803 am__include=.include
4810 { echo "$as_me:$LINENO: result: $_am_result" >&5
4811 echo "${ECHO_T}$_am_result" >&6; }
4812 rm -f confinc confmf
4814 # Check whether --enable-dependency-tracking was given.
4815 if test "${enable_dependency_tracking+set}" = set; then
4816 enableval=$enable_dependency_tracking;
4819 if test "x$enable_dependency_tracking" != xno; then
4820 am_depcomp="$ac_aux_dir/depcomp"
4823 if test "x$enable_dependency_tracking" != xno; then
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_CC+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test -n "$CC"; then
4846 ac_cv_prog_CC="$CC" # Let the user override the test.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 if test -n "$CC"; then
4867 { echo "$as_me:$LINENO: result: $CC" >&5
4868 echo "${ECHO_T}$CC" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4876 if test -z "$ac_cv_prog_CC"; then
4878 # Extract the first word of "gcc", so it can be a program name with args.
4879 set dummy gcc; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$ac_ct_CC"; then
4886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_ac_ct_CC="gcc"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4906 if test -n "$ac_ct_CC"; then
4907 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4908 echo "${ECHO_T}$ac_ct_CC" >&6; }
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4914 if test "x$ac_ct_CC" = x; then
4917 case $cross_compiling:$ac_tool_warned in
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet. If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet. If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4933 if test -z "$CC"; then
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}cc; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_CC+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test -n "$CC"; then
4943 ac_cv_prog_CC="$CC" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_CC="${ac_tool_prefix}cc"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 if test -n "$CC"; then
4964 { echo "$as_me:$LINENO: result: $CC" >&5
4965 echo "${ECHO_T}$CC" >&6; }
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4974 if test -z "$CC"; then
4975 # Extract the first word of "cc", so it can be a program name with args.
4976 set dummy cc; ac_word=$2
4977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_CC+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test -n "$CC"; then
4983 ac_cv_prog_CC="$CC" # Let the user override the test.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4994 ac_prog_rejected=yes
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 if test $ac_prog_rejected = yes; then
5006 # We found a bogon in the path, so make sure we never use it.
5007 set dummy $ac_cv_prog_CC
5009 if test $# != 0; then
5010 # We chose a different compiler from the bogus one.
5011 # However, it has the same basename, so the bogon will be chosen
5012 # first if we set CC to just the basename; use the full file name.
5014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5020 if test -n "$CC"; then
5021 { echo "$as_me:$LINENO: result: $CC" >&5
5022 echo "${ECHO_T}$CC" >&6; }
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 if test -z "$CC"; then
5031 if test -n "$ac_tool_prefix"; then
5032 for ac_prog in cl.exe
5034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 if test -n "$CC"; then
5042 ac_cv_prog_CC="$CC" # Let the user override the test.
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 if test -n "$CC"; then
5063 { echo "$as_me:$LINENO: result: $CC" >&5
5064 echo "${ECHO_T}$CC" >&6; }
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5071 test -n "$CC" && break
5074 if test -z "$CC"; then
5076 for ac_prog in cl.exe
5078 # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 if test -n "$ac_ct_CC"; then
5086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_CC="$ac_prog"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5106 if test -n "$ac_ct_CC"; then
5107 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5108 echo "${ECHO_T}$ac_ct_CC" >&6; }
5110 { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5115 test -n "$ac_ct_CC" && break
5118 if test "x$ac_ct_CC" = x; then
5121 case $cross_compiling:$ac_tool_warned in
5123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5124 whose name does not start with the host triplet. If you think this
5125 configuration is useful to you, please write to autoconf@gnu.org." >&5
5126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5127 whose name does not start with the host triplet. If you think this
5128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5129 ac_tool_warned=yes ;;
5138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error: no acceptable C compiler found in \$PATH
5141 See \`config.log' for more details." >&2;}
5142 { (exit 1); exit 1; }; }
5144 # Provide some information about the compiler.
5145 echo "$as_me:$LINENO: checking for C compiler version" >&5
5146 ac_compiler=`set X $ac_compile; echo $2`
5147 { (ac_try="$ac_compiler --version >&5"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compiler --version >&5") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5157 { (ac_try="$ac_compiler -v >&5"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_compiler -v >&5") 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5167 { (ac_try="$ac_compiler -V >&5"
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_compiler -V >&5") 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 ac_clean_files_save=$ac_clean_files
5194 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5195 # Try to create an executable without -o first, disregard a.out.
5196 # It will help us diagnose broken compilers, and finding out an intuition
5198 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5199 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5200 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5202 # List of possible output files, starting from the most likely.
5203 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5204 # only as a last resort. b.out is created by i960 compilers.
5205 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5207 # The IRIX 6 linker writes into existing files which may not be
5208 # executable, retaining their permissions. Remove them first so a
5209 # subsequent execution test works.
5211 for ac_file in $ac_files
5214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5215 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5220 if { (ac_try="$ac_link_default"
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_link_default") 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; then
5230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5232 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5233 # so that the user can short-circuit this test for compilers unknown to
5235 for ac_file in $ac_files ''
5237 test -f "$ac_file" || continue
5239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5242 # We found the default executable, but exeext='' is most
5246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5250 # We set ac_cv_exeext here because the later test for it is not
5251 # safe: cross compilers may not add the suffix if given an `-o'
5252 # argument, so we may need to know it at that point already.
5253 # Even if this section looks crufty: it has the advantage of
5260 test "$ac_cv_exeext" = no && ac_cv_exeext=
5266 { echo "$as_me:$LINENO: result: $ac_file" >&5
5267 echo "${ECHO_T}$ac_file" >&6; }
5268 if test -z "$ac_file"; then
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C compiler cannot create executables
5275 See \`config.log' for more details." >&2;}
5276 { (exit 77); exit 77; }; }
5279 ac_exeext=$ac_cv_exeext
5281 # Check that the compiler produces executables we can run. If not, either
5282 # the compiler is broken, or we cross compile.
5283 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5286 # If not cross compiling, check that we can run a simple program.
5287 if test "$cross_compiling" != yes; then
5288 if { ac_try='./$ac_file'
5289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5300 if test "$cross_compiling" = maybe; then
5303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5304 If you meant to cross compile, use \`--host'.
5305 See \`config.log' for more details." >&5
5306 echo "$as_me: error: cannot run C compiled programs.
5307 If you meant to cross compile, use \`--host'.
5308 See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5313 { echo "$as_me:$LINENO: result: yes" >&5
5314 echo "${ECHO_T}yes" >&6; }
5316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5317 ac_clean_files=$ac_clean_files_save
5318 # Check that the compiler produces executables we can run. If not, either
5319 # the compiler is broken, or we cross compile.
5320 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5322 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5323 echo "${ECHO_T}$cross_compiling" >&6; }
5325 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5327 if { (ac_try="$ac_link"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_link") 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; then
5337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5339 # work properly (i.e., refer to `conftest.exe'), while it won't with
5341 for ac_file in conftest.exe conftest conftest.*; do
5342 test -f "$ac_file" || continue
5344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5351 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5352 See \`config.log' for more details." >&5
5353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5354 See \`config.log' for more details." >&2;}
5355 { (exit 1); exit 1; }; }
5358 rm -f conftest$ac_cv_exeext
5359 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5360 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5362 rm -f conftest.$ac_ext
5363 EXEEXT=$ac_cv_exeext
5365 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5367 if test "${ac_cv_objext+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5385 rm -f conftest.o conftest.obj
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; then
5396 for ac_file in conftest.o conftest.obj conftest.*; do
5397 test -f "$ac_file" || continue;
5399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5411 See \`config.log' for more details." >&2;}
5412 { (exit 1); exit 1; }; }
5415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5417 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5418 echo "${ECHO_T}$ac_cv_objext" >&6; }
5419 OBJEXT=$ac_cv_objext
5421 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5475 GCC=`test $ac_compiler_gnu = yes && echo yes`
5476 ac_test_CFLAGS=${CFLAGS+set}
5477 ac_save_CFLAGS=$CFLAGS
5478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_cc_g+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 ac_save_c_werror_flag=$ac_c_werror_flag
5484 ac_c_werror_flag=yes
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5540 rm -f conftest.$ac_objext
5541 if { (ac_try="$ac_compile"
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_compile") 2>conftest.er1
5549 grep -v '^ *+' conftest.er1 >conftest.err
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && {
5554 test -z "$ac_c_werror_flag" ||
5555 test ! -s conftest.err
5556 } && test -s conftest.$ac_objext; then
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_c_werror_flag=$ac_save_c_werror_flag
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 ac_c_werror_flag=$ac_save_c_werror_flag
5613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5615 if test "$ac_test_CFLAGS" = set; then
5616 CFLAGS=$ac_save_CFLAGS
5617 elif test $ac_cv_prog_cc_g = yes; then
5618 if test "$GCC" = yes; then
5624 if test "$GCC" = yes; then
5630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_cc_c89+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_cv_prog_cc_c89=no
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5645 #include <sys/types.h>
5646 #include <sys/stat.h>
5647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5648 struct buf { int x; };
5649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5650 static char *e (p, i)
5656 static char *f (char * (*g) (char **, int), char **p, ...)
5661 s = g (p, va_arg (v,int));
5666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5667 function prototypes and stuff, but not '\xHH' hex character constants.
5668 These don't provoke an error unfortunately, instead are silently treated
5669 as 'x'. The following induces an error, until -std is added to get
5670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5671 array size at least. It's necessary to write '\x00'==0 to get something
5672 that's true only with -std. */
5673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5676 inside strings and character constants. */
5678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5680 int test (int i, double x);
5681 struct s1 {int (*f) (int a);};
5682 struct s2 {int (*f) (double a);};
5683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5697 CC="$ac_save_CC $ac_arg"
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5707 grep -v '^ *+' conftest.er1 >conftest.err
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.$ac_objext; then
5715 ac_cv_prog_cc_c89=$ac_arg
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5723 rm -f core conftest.err conftest.$ac_objext
5724 test "x$ac_cv_prog_cc_c89" != "xno" && break
5726 rm -f conftest.$ac_ext
5731 case "x$ac_cv_prog_cc_c89" in
5733 { echo "$as_me:$LINENO: result: none needed" >&5
5734 echo "${ECHO_T}none needed" >&6; } ;;
5736 { echo "$as_me:$LINENO: result: unsupported" >&5
5737 echo "${ECHO_T}unsupported" >&6; } ;;
5739 CC="$CC $ac_cv_prog_cc_c89"
5740 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5741 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751 depcc="$CC" am_compiler_list=
5753 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5755 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5759 # We make a subdir and do the tests there. Otherwise we can end up
5760 # making bogus files that we don't know about and never remove. For
5761 # instance it was reported that on HP-UX the gcc test will end up
5762 # making a dummy file named `D' -- because `-MD' means `put the output
5765 # Copy depcomp to subdir because otherwise we won't find it if we're
5766 # using a relative directory.
5767 cp "$am_depcomp" conftest.dir
5769 # We will build objects and dependencies in a subdirectory because
5770 # it helps to detect inapplicable dependency modes. For instance
5771 # both Tru64's cc and ICC support -MD to output dependencies as a
5772 # side effect of compilation, but ICC will put the dependencies in
5773 # the current directory while Tru64 will put them in the object
5777 am_cv_CC_dependencies_compiler_type=none
5778 if test "$am_compiler_list" = ""; then
5779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5781 for depmode in $am_compiler_list; do
5782 # Setup a source with many dependencies, because some compilers
5783 # like to wrap large dependency lists on column 80 (with \), and
5784 # we should not choose a depcomp mode which is confused by this.
5786 # We need to recreate these files for each test, as the compiler may
5787 # overwrite some of them when testing with obscure command lines.
5788 # This happens at least with the AIX C compiler.
5790 for i in 1 2 3 4 5 6; do
5791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5793 # Solaris 8's {/usr,}/bin/sh.
5794 touch sub/conftst$i.h
5796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5800 # after this tag, mechanisms are not by side-effect, so they'll
5801 # only be used when explicitly requested
5802 if test "x$enable_dependency_tracking" = xyes; then
5810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5811 # mode. It turns out that the SunPro C++ compiler does not properly
5812 # handle `-M -o', and we need to detect this.
5813 if depmode=$depmode \
5814 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5816 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5817 >/dev/null 2>conftest.err &&
5818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5820 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5822 # icc doesn't choke on unknown options, it will just issue warnings
5823 # or remarks (even with -Werror). So we grep stderr for any message
5824 # that says an option was ignored or not supported.
5825 # When given -MP, icc 7.0 and 7.1 complain thusly:
5826 # icc: Command line warning: ignoring option '-M'; no argument required
5827 # The diagnosis changed in icc 8.0:
5828 # icc: Command line remark: option '-MP' not supported
5829 if (grep 'ignoring option' conftest.err ||
5830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5831 am_cv_CC_dependencies_compiler_type=$depmode
5840 am_cv_CC_dependencies_compiler_type=none
5844 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5845 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5849 test "x$enable_dependency_tracking" != xno \
5850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5852 am__fastdepCC_FALSE='#'
5854 am__fastdepCC_TRUE='#'
5855 am__fastdepCC_FALSE=
5859 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5860 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5861 if test "${lt_cv_path_SED+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 # Loop through the user's path and test for sed and gsed.
5865 # Then use that list of sed's as ones to test for truncation.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for lt_ac_prog in sed gsed; do
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5874 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5882 # along with /bin/sed that truncates output.
5883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5884 test ! -f $lt_ac_sed && continue
5885 cat /dev/null > conftest.in
5887 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5888 # Check for GNU sed and select it if it is found.
5889 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5890 lt_cv_path_SED=$lt_ac_sed
5894 cat conftest.in conftest.in >conftest.tmp
5895 mv conftest.tmp conftest.in
5896 cp conftest.in conftest.nl
5898 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5899 cmp -s conftest.out conftest.nl || break
5900 # 10000 chars as input seems more than enough
5901 test $lt_ac_count -gt 10 && break
5902 lt_ac_count=`expr $lt_ac_count + 1`
5903 if test $lt_ac_count -gt $lt_ac_max; then
5904 lt_ac_max=$lt_ac_count
5905 lt_cv_path_SED=$lt_ac_sed
5913 { echo "$as_me:$LINENO: result: $SED" >&5
5914 echo "${ECHO_T}$SED" >&6; }
5916 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5917 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 # Extract the first word of "grep ggrep" to use in msg output
5922 if test -z "$GREP"; then
5923 set dummy grep ggrep; ac_prog_name=$2
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 ac_path_GREP_found=false
5928 # Loop through the user's path and test for each of PROGNAME-LIST
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5933 test -z "$as_dir" && as_dir=.
5934 for ac_prog in grep ggrep; do
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5938 # Check for GNU ac_path_GREP and select it if it is found.
5939 # Check for GNU $ac_path_GREP
5940 case `"$ac_path_GREP" --version 2>&1` in
5942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5945 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5948 cat "conftest.in" "conftest.in" >"conftest.tmp"
5949 mv "conftest.tmp" "conftest.in"
5950 cp "conftest.in" "conftest.nl"
5951 echo 'GREP' >> "conftest.nl"
5952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5954 ac_count=`expr $ac_count + 1`
5955 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5956 # Best one so far, save it but keep looking for a better one
5957 ac_cv_path_GREP="$ac_path_GREP"
5958 ac_path_GREP_max=$ac_count
5960 # 10*(2^10) chars as input seems more than enough
5961 test $ac_count -gt 10 && break
5963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5967 $ac_path_GREP_found && break 3
5977 GREP="$ac_cv_path_GREP"
5978 if test -z "$GREP"; then
5979 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5980 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5981 { (exit 1); exit 1; }; }
5985 ac_cv_path_GREP=$GREP
5990 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5991 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5992 GREP="$ac_cv_path_GREP"
5995 { echo "$as_me:$LINENO: checking for egrep" >&5
5996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_EGREP+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6001 then ac_cv_path_EGREP="$GREP -E"
6003 # Extract the first word of "egrep" to use in msg output
6004 if test -z "$EGREP"; then
6005 set dummy egrep; ac_prog_name=$2
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_path_EGREP_found=false
6010 # Loop through the user's path and test for each of PROGNAME-LIST
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6015 test -z "$as_dir" && as_dir=.
6016 for ac_prog in egrep; do
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6019 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6020 # Check for GNU ac_path_EGREP and select it if it is found.
6021 # Check for GNU $ac_path_EGREP
6022 case `"$ac_path_EGREP" --version 2>&1` in
6024 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6027 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6030 cat "conftest.in" "conftest.in" >"conftest.tmp"
6031 mv "conftest.tmp" "conftest.in"
6032 cp "conftest.in" "conftest.nl"
6033 echo 'EGREP' >> "conftest.nl"
6034 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6036 ac_count=`expr $ac_count + 1`
6037 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6038 # Best one so far, save it but keep looking for a better one
6039 ac_cv_path_EGREP="$ac_path_EGREP"
6040 ac_path_EGREP_max=$ac_count
6042 # 10*(2^10) chars as input seems more than enough
6043 test $ac_count -gt 10 && break
6045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6049 $ac_path_EGREP_found && break 3
6059 EGREP="$ac_cv_path_EGREP"
6060 if test -z "$EGREP"; then
6061 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6063 { (exit 1); exit 1; }; }
6067 ac_cv_path_EGREP=$EGREP
6073 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6074 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6075 EGREP="$ac_cv_path_EGREP"
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6087 if test "$GCC" = yes; then
6088 # Check if gcc -print-prog-name=ld gives a path.
6089 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6090 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6093 # gcc leaves a trailing carriage return which upsets mingw
6094 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6096 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6099 # Accept absolute paths.
6101 re_direlt='/[^/][^/]*/\.\./'
6102 # Canonicalize the pathname of ld
6103 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6104 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6105 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6107 test -z "$LD" && LD="$ac_prog"
6110 # If it fails, then pretend we aren't using GCC.
6114 # If it is relative, then search for the first ld in PATH.
6118 elif test "$with_gnu_ld" = yes; then
6119 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6120 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6122 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6123 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6125 if test "${lt_cv_path_LD+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 if test -z "$LD"; then
6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130 for ac_dir in $PATH; do
6132 test -z "$ac_dir" && ac_dir=.
6133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6134 lt_cv_path_LD="$ac_dir/$ac_prog"
6135 # Check to see if the program is GNU ld. I'd rather use --version,
6136 # but apparently some variants of GNU ld only accept -v.
6137 # Break only if it was the GNU/non-GNU ld that we prefer.
6138 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6139 *GNU* | *'with BFD'*)
6140 test "$with_gnu_ld" != no && break
6143 test "$with_gnu_ld" != yes && break
6150 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6155 if test -n "$LD"; then
6156 { echo "$as_me:$LINENO: result: $LD" >&5
6157 echo "${ECHO_T}$LD" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6164 { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173 lt_cv_prog_gnu_ld=yes
6176 lt_cv_prog_gnu_ld=no
6180 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6182 with_gnu_ld=$lt_cv_prog_gnu_ld
6185 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6187 if test "${lt_cv_ld_reload_flag+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 lt_cv_ld_reload_flag='-r'
6192 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6194 reload_flag=$lt_cv_ld_reload_flag
6195 case $reload_flag in
6197 *) reload_flag=" $reload_flag" ;;
6199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6202 if test "$GCC" = yes; then
6203 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6210 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6211 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6212 if test "${lt_cv_path_NM+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 if test -n "$NM"; then
6216 # Let the user override the test.
6219 lt_nm_to_check="${ac_tool_prefix}nm"
6220 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6221 lt_nm_to_check="$lt_nm_to_check nm"
6223 for lt_tmp_nm in $lt_nm_to_check; do
6224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6225 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6227 test -z "$ac_dir" && ac_dir=.
6228 tmp_nm="$ac_dir/$lt_tmp_nm"
6229 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6230 # Check to see if the nm accepts a BSD-compat flag.
6231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6232 # nm: unknown option "B" ignored
6233 # Tru64's nm complains that /dev/null is an invalid object file
6234 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6235 */dev/null* | *'Invalid file or object type'*)
6236 lt_cv_path_NM="$tmp_nm -B"
6240 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6242 lt_cv_path_NM="$tmp_nm -p"
6246 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6247 continue # so that we can try to find one that supports BSD flags
6256 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6259 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6260 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6263 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6264 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6266 if test "$LN_S" = "ln -s"; then
6267 { echo "$as_me:$LINENO: result: yes" >&5
6268 echo "${ECHO_T}yes" >&6; }
6270 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6271 echo "${ECHO_T}no, using $LN_S" >&6; }
6274 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6275 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6276 if test "${lt_cv_deplibs_check_method+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 lt_cv_file_magic_cmd='$MAGIC_CMD'
6280 lt_cv_file_magic_test_file=
6281 lt_cv_deplibs_check_method='unknown'
6282 # Need to set the preceding variable on all platforms that support
6283 # interlibrary dependencies.
6284 # 'none' -- dependencies not supported.
6285 # `unknown' -- same as none, but documents that we really don't know.
6286 # 'pass_all' -- all dependencies passed with no checks.
6287 # 'test_compile' -- check by making test program.
6288 # 'file_magic [[regex]]' -- check by looking for files in library path
6289 # which responds to the $file_magic_cmd with a given extended regex.
6290 # If you have `file' or equivalent on your system and you're not sure
6291 # whether `pass_all' will *always* work, you probably want this one.
6295 lt_cv_deplibs_check_method=pass_all
6299 lt_cv_deplibs_check_method=pass_all
6303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6304 lt_cv_file_magic_cmd='/usr/bin/file -L'
6305 lt_cv_file_magic_test_file=/shlib/libc.so
6309 # func_win32_libid is a shell function defined in ltmain.sh
6310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311 lt_cv_file_magic_cmd='func_win32_libid'
6315 # Base MSYS/MinGW do not provide the 'file' command needed by
6316 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6317 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6318 lt_cv_file_magic_cmd='$OBJDUMP -f'
6321 darwin* | rhapsody*)
6322 lt_cv_deplibs_check_method=pass_all
6325 freebsd* | kfreebsd*-gnu | dragonfly*)
6326 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6329 # Not sure whether the presence of OpenBSD here was a mistake.
6330 # Let's accept both of them until this is cleared up.
6331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332 lt_cv_file_magic_cmd=/usr/bin/file
6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6337 lt_cv_deplibs_check_method=pass_all
6342 lt_cv_deplibs_check_method=pass_all
6345 hpux10.20* | hpux11*)
6346 lt_cv_file_magic_cmd=/usr/bin/file
6349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6353 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]'
6354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6358 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6368 irix5* | irix6* | nonstopux*)
6370 *-32|*"-32 ") libmagic=32-bit;;
6371 *-n32|*"-n32 ") libmagic=N32;;
6372 *-64|*"-64 ") libmagic=64-bit;;
6373 *) libmagic=never-match;;
6375 lt_cv_deplibs_check_method=pass_all
6378 # This must be Linux ELF.
6380 lt_cv_deplibs_check_method=pass_all
6384 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6393 lt_cv_file_magic_cmd=/usr/bin/file
6394 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6398 lt_cv_deplibs_check_method=unknown
6402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 osf3* | osf4* | osf5*)
6410 lt_cv_deplibs_check_method=pass_all
6414 lt_cv_deplibs_check_method=pass_all
6418 case $host_vendor in
6420 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]'
6421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6424 lt_cv_deplibs_check_method=pass_all
6427 lt_cv_file_magic_cmd='/bin/file'
6428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6431 lt_cv_file_magic_cmd='/bin/file'
6432 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6433 lt_cv_file_magic_test_file=/lib/libc.so
6436 lt_cv_deplibs_check_method=pass_all
6439 lt_cv_deplibs_check_method=pass_all
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6450 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6451 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6452 file_magic_cmd=$lt_cv_file_magic_cmd
6453 deplibs_check_method=$lt_cv_deplibs_check_method
6454 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6459 # If no C compiler was specified, use CC.
6462 # If no C compiler flags were specified, use CFLAGS.
6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6465 # Allow CC to be a program name with arguments.
6469 # Check whether --enable-libtool-lock was given.
6470 if test "${enable_libtool_lock+set}" = set; then
6471 enableval=$enable_libtool_lock;
6474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6476 # Some flags need to be propagated to the compiler or linker for good
6480 # Find out which ABI we are using.
6481 echo 'int i;' > conftest.$ac_ext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; then
6487 case `/usr/bin/file conftest.$ac_objext` in
6499 # Find out which ABI we are using.
6500 echo '#line 6500 "configure"' > conftest.$ac_ext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; then
6506 if test "$lt_cv_prog_gnu_ld" = yes; then
6507 case `/usr/bin/file conftest.$ac_objext` in
6509 LD="${LD-ld} -melf32bsmip"
6512 LD="${LD-ld} -melf32bmipn32"
6515 LD="${LD-ld} -melf64bmip"
6519 case `/usr/bin/file conftest.$ac_objext` in
6535 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6536 # Find out which ABI we are using.
6537 echo 'int i;' > conftest.$ac_ext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; then
6543 case `/usr/bin/file conftest.o` in
6547 LD="${LD-ld} -m elf_i386"
6549 ppc64-*linux*|powerpc64-*linux*)
6550 LD="${LD-ld} -m elf32ppclinux"
6553 LD="${LD-ld} -m elf_s390"
6556 LD="${LD-ld} -m elf32_sparc"
6563 LD="${LD-ld} -m elf_x86_64"
6565 ppc*-*linux*|powerpc*-*linux*)
6566 LD="${LD-ld} -m elf64ppc"
6569 LD="${LD-ld} -m elf64_s390"
6572 LD="${LD-ld} -m elf64_sparc"
6582 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583 SAVE_CFLAGS="$CFLAGS"
6584 CFLAGS="$CFLAGS -belf"
6585 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6586 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6587 if test "${lt_cv_cc_needs_belf+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_link") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest$ac_exeext &&
6628 $as_test_x conftest$ac_exeext; then
6629 lt_cv_cc_needs_belf=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 lt_cv_cc_needs_belf=no
6637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6638 conftest$ac_exeext conftest.$ac_ext
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6647 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6650 CFLAGS="$SAVE_CFLAGS"
6654 # Find out which ABI we are using.
6655 echo 'int i;' > conftest.$ac_ext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; then
6661 case `/usr/bin/file conftest.o` in
6663 case $lt_cv_prog_gnu_ld in
6664 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6665 *) LD="${LD-ld} -64" ;;
6673 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 if test -n "$DLLTOOL"; then
6683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 DLLTOOL=$ac_cv_prog_DLLTOOL
6703 if test -n "$DLLTOOL"; then
6704 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6705 echo "${ECHO_T}$DLLTOOL" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6713 if test -z "$ac_cv_prog_DLLTOOL"; then
6714 ac_ct_DLLTOOL=$DLLTOOL
6715 # Extract the first word of "dlltool", so it can be a program name with args.
6716 set dummy dlltool; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 if test -n "$ac_ct_DLLTOOL"; then
6723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6743 if test -n "$ac_ct_DLLTOOL"; then
6744 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6745 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6751 if test "x$ac_ct_DLLTOOL" = x; then
6754 case $cross_compiling:$ac_tool_warned in
6756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757 whose name does not start with the host triplet. If you think this
6758 configuration is useful to you, please write to autoconf@gnu.org." >&5
6759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762 ac_tool_warned=yes ;;
6764 DLLTOOL=$ac_ct_DLLTOOL
6767 DLLTOOL="$ac_cv_prog_DLLTOOL"
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}as; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_AS+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 if test -n "$AS"; then
6779 ac_cv_prog_AS="$AS" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_AS="${ac_tool_prefix}as"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 if test -n "$AS"; then
6800 { echo "$as_me:$LINENO: result: $AS" >&5
6801 echo "${ECHO_T}$AS" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6809 if test -z "$ac_cv_prog_AS"; then
6811 # Extract the first word of "as", so it can be a program name with args.
6812 set dummy as; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 if test -n "$ac_ct_AS"; then
6819 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_ac_ct_AS="as"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6839 if test -n "$ac_ct_AS"; then
6840 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6841 echo "${ECHO_T}$ac_ct_AS" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6847 if test "x$ac_ct_AS" = x; then
6850 case $cross_compiling:$ac_tool_warned in
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet. If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6866 if test -n "$ac_tool_prefix"; then
6867 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 if test -n "$OBJDUMP"; then
6875 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 OBJDUMP=$ac_cv_prog_OBJDUMP
6895 if test -n "$OBJDUMP"; then
6896 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6897 echo "${ECHO_T}$OBJDUMP" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6905 if test -z "$ac_cv_prog_OBJDUMP"; then
6906 ac_ct_OBJDUMP=$OBJDUMP
6907 # Extract the first word of "objdump", so it can be a program name with args.
6908 set dummy objdump; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 if test -n "$ac_ct_OBJDUMP"; then
6915 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6935 if test -n "$ac_ct_OBJDUMP"; then
6936 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6937 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6939 { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6943 if test "x$ac_ct_OBJDUMP" = x; then
6946 case $cross_compiling:$ac_tool_warned in
6948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6949 whose name does not start with the host triplet. If you think this
6950 configuration is useful to you, please write to autoconf@gnu.org." >&5
6951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet. If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6954 ac_tool_warned=yes ;;
6956 OBJDUMP=$ac_ct_OBJDUMP
6959 OBJDUMP="$ac_cv_prog_OBJDUMP"
6966 need_locks="$enable_libtool_lock"
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6976 # On Suns, sometimes $CPP names a directory.
6977 if test -n "$CPP" && test -d "$CPP"; then
6980 if test -z "$CPP"; then
6981 if test "${ac_cv_prog_CPP+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 # Double quotes because CPP needs to be expanded
6985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6988 for ac_c_preproc_warn_flag in '' yes
6990 # Use a header file that comes with gcc, so configuring glibc
6991 # with a fresh cross-compiler works.
6992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 # <limits.h> exists even on freestanding compilers.
6994 # On the NeXT, cc -E runs the code through the compiler's parser,
6995 # not just through cpp. "Syntax error" is here to catch this case.
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7003 # include <limits.h>
7005 # include <assert.h>
7009 if { (ac_try="$ac_cpp conftest.$ac_ext"
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } >/dev/null && {
7022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 # Broken: fails on valid input.
7034 rm -f conftest.err conftest.$ac_ext
7036 # OK, works on sane cases. Now check whether nonexistent headers
7037 # can be detected and how.
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <ac_nonexistent.h>
7046 if { (ac_try="$ac_cpp conftest.$ac_ext"
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054 grep -v '^ *+' conftest.er1 >conftest.err
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } >/dev/null && {
7059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7062 # Broken: success on invalid input.
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 # Passes both tests.
7073 rm -f conftest.err conftest.$ac_ext
7076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077 rm -f conftest.err conftest.$ac_ext
7078 if $ac_preproc_ok; then
7090 { echo "$as_me:$LINENO: result: $CPP" >&5
7091 echo "${ECHO_T}$CPP" >&6; }
7093 for ac_c_preproc_warn_flag in '' yes
7095 # Use a header file that comes with gcc, so configuring glibc
7096 # with a fresh cross-compiler works.
7097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 # <limits.h> exists even on freestanding compilers.
7099 # On the NeXT, cc -E runs the code through the compiler's parser,
7100 # not just through cpp. "Syntax error" is here to catch this case.
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7108 # include <limits.h>
7110 # include <assert.h>
7114 if { (ac_try="$ac_cpp conftest.$ac_ext"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } >/dev/null && {
7127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 # Broken: fails on valid input.
7139 rm -f conftest.err conftest.$ac_ext
7141 # OK, works on sane cases. Now check whether nonexistent headers
7142 # can be detected and how.
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 #include <ac_nonexistent.h>
7151 if { (ac_try="$ac_cpp conftest.$ac_ext"
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7159 grep -v '^ *+' conftest.er1 >conftest.err
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } >/dev/null && {
7164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7167 # Broken: success on invalid input.
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 # Passes both tests.
7178 rm -f conftest.err conftest.$ac_ext
7181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182 rm -f conftest.err conftest.$ac_ext
7183 if $ac_preproc_ok; then
7186 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7187 See \`config.log' for more details." >&5
7188 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7189 See \`config.log' for more details." >&2;}
7190 { (exit 1); exit 1; }; }
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7202 if test "${ac_cv_header_stdc+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_cv_header_stdc=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_header_stdc=no
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 if test $ac_cv_header_stdc = yes; then
7252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263 $EGREP "memchr" >/dev/null 2>&1; then
7266 ac_cv_header_stdc=no
7272 if test $ac_cv_header_stdc = yes; then
7273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 $EGREP "free" >/dev/null 2>&1; then
7287 ac_cv_header_stdc=no
7293 if test $ac_cv_header_stdc = yes; then
7294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7295 if test "$cross_compiling" = yes; then
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7306 #if ((' ' & 0x0FF) == 0x020)
7307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7310 # define ISLOWER(c) \
7311 (('a' <= (c) && (c) <= 'i') \
7312 || ('j' <= (c) && (c) <= 'r') \
7313 || ('s' <= (c) && (c) <= 'z'))
7314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7322 for (i = 0; i < 256; i++)
7323 if (XOR (islower (i), ISLOWER (i))
7324 || toupper (i) != TOUPPER (i))
7329 rm -f conftest$ac_exeext
7330 if { (ac_try="$ac_link"
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_link") 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7340 { (case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_try") 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7351 echo "$as_me: program exited with status $ac_status" >&5
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7356 ac_cv_header_stdc=no
7358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7364 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7366 if test $ac_cv_header_stdc = yes; then
7368 cat >>confdefs.h <<\_ACEOF
7369 #define STDC_HEADERS 1
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385 inttypes.h stdint.h unistd.h
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7401 #include <$ac_header>
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
7420 eval "$as_ac_Header=yes"
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 eval "$as_ac_Header=no"
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 ac_res=`eval echo '${'$as_ac_Header'}'`
7431 { echo "$as_me:$LINENO: result: $ac_res" >&5
7432 echo "${ECHO_T}$ac_res" >&6; }
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434 cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7444 for ac_header in dlfcn.h
7446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454 { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7457 # Is the header compilable?
7458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7460 cat >conftest.$ac_ext <<_ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 $ac_includes_default
7467 #include <$ac_header>
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
7486 ac_header_compiler=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7491 ac_header_compiler=no
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6; }
7498 # Is the header present?
7499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <$ac_header>
7509 if { (ac_try="$ac_cpp conftest.$ac_ext"
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } >/dev/null && {
7522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7525 ac_header_preproc=yes
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_header_preproc=no
7533 rm -f conftest.err conftest.$ac_ext
7534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6; }
7537 # So? What about this header?
7538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7544 ac_header_preproc=yes
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7560 ## --------------------------------------------- ##
7561 ## Report this to <http://www.openldap.org/its/> ##
7562 ## --------------------------------------------- ##
7564 ) | sed "s/^/$as_me: WARNING: /" >&2
7567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 eval "$as_ac_Header=\$ac_header_preproc"
7574 ac_res=`eval echo '${'$as_ac_Header'}'`
7575 { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7589 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7591 # find the maximum length of command line arguments
7592 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7593 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 # On DJGPP, this test can blow up pretty badly due to problems in libc
7603 # (any single argument exceeding 2000 bytes causes a buffer overrun
7604 # during glob expansion). Even if it were fixed, the result of this
7605 # check would be larger than it should be.
7606 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7610 # Under GNU Hurd, this test is not required because there is
7611 # no limit to the length of command line arguments.
7612 # Libtool will interpret -1 as no limit whatsoever
7613 lt_cv_sys_max_cmd_len=-1;
7617 # On Win9x/ME, this test blows up -- it succeeds, but takes
7618 # about 5 minutes as the teststring grows exponentially.
7619 # Worse, since 9x/ME are not pre-emptively multitasking,
7620 # you end up with a "frozen" computer, even though with patience
7621 # the test eventually succeeds (with a max line length of 256k).
7622 # Instead, let's just punt: use the minimum linelength reported by
7623 # all of the supported platforms: 8192 (on NT/2K/XP).
7624 lt_cv_sys_max_cmd_len=8192;
7628 # On AmigaOS with pdksh, this test takes hours, literally.
7629 # So we just punt and use a minimum line length of 8192.
7630 lt_cv_sys_max_cmd_len=8192;
7633 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7634 # This has been around since 386BSD, at least. Likely further.
7635 if test -x /sbin/sysctl; then
7636 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7637 elif test -x /usr/sbin/sysctl; then
7638 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7640 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7642 # And add a safety zone
7643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7648 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7649 lt_cv_sys_max_cmd_len=196608
7653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7655 # nice to cause kernel panics so lets avoid the loop below.
7656 # First set a reasonable default.
7657 lt_cv_sys_max_cmd_len=16384
7659 if test -x /sbin/sysconfig; then
7660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7661 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7666 lt_cv_sys_max_cmd_len=102400
7668 sysv5* | sco5v6* | sysv4.2uw2*)
7669 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7670 if test -n "$kargmax"; then
7671 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7673 lt_cv_sys_max_cmd_len=32768
7677 # If test is not a shell built-in, we'll probably end up computing a
7678 # maximum length that is only half of the actual maximum length, but
7680 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7681 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7682 = "XX$teststring") >/dev/null 2>&1 &&
7683 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7684 lt_cv_sys_max_cmd_len=$new_result &&
7685 test $i != 17 # 1/2 MB should be enough
7688 teststring=$teststring$teststring
7691 # Add a significant safety factor because C++ compilers can tack on massive
7692 # amounts of additional arguments before passing them to the linker.
7693 # It appears as though 1/2 is a usable value.
7694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7702 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7704 { echo "$as_me:$LINENO: result: none" >&5
7705 echo "${ECHO_T}none" >&6; }
7711 # Check for command to grab the raw symbol name followed by C symbol from nm.
7712 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7713 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 # These are sane defaults that work on at least a few old systems.
7719 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7721 # Character class describing NM global symbol codes.
7722 symcode='[BCDEGRST]'
7724 # Regexp to match symbols that can be accessed directly from C.
7725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7727 # Transform an extracted symbol line into a proper C declaration
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7730 # Transform an extracted symbol line into symbol name and symbol address
7731 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'"
7733 # Define system-specific variables.
7738 cygwin* | mingw* | pw32*)
7739 symcode='[ABCDGISTW]'
7741 hpux*) # Its linker distinguishes data from code symbols
7742 if test "$host_cpu" = ia64; then
7743 symcode='[ABCDEGRST]'
7745 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746 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'"
7749 if test "$host_cpu" = ia64; then
7750 symcode='[ABCDGIRSTW]'
7751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7752 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'"
7756 symcode='[BCDEGRST]'
7759 symcode='[BCDEGQRST]'
7770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7778 # Handle CRLF in mingw tool chain
7782 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7786 # If we're using GNU nm, then use its standard symbol codes.
7787 case `$NM -V 2>&1` in
7788 *GNU* | *'with BFD'*)
7789 symcode='[ABCDGIRSTW]' ;;
7792 # Try without a prefix undercore, then with it.
7793 for ac_symprfx in "" "_"; do
7795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7796 symxfrm="\\1 $ac_symprfx\\2 \\2"
7798 # Write the raw and C identifiers.
7799 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7801 # Check to see that the pipe works correctly.
7805 cat > conftest.$ac_ext <<EOF
7810 void nm_test_func(){}
7814 int main(){nm_test_var='a';nm_test_func();return(0);}
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; then
7822 # Now try to grab the symbols.
7824 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7825 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && test -s "$nlist"; then
7829 # Try sorting and uniquifying the output.
7830 if sort "$nlist" | uniq > "$nlist"T; then
7831 mv -f "$nlist"T "$nlist"
7836 # Make sure that we snagged all the symbols we need.
7837 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7838 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7839 cat <<EOF > conftest.$ac_ext
7845 # Now generate the symbol file.
7846 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7848 cat <<EOF >> conftest.$ac_ext
7849 #if defined (__STDC__) && __STDC__
7850 # define lt_ptr_t void *
7852 # define lt_ptr_t char *
7856 /* The mapping between symbol names and symbols. */
7861 lt_preloaded_symbols[] =
7864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7865 cat <<\EOF >> conftest.$ac_ext
7873 # Now try linking the two files.
7874 mv conftest.$ac_objext conftstm.$ac_objext
7875 lt_save_LIBS="$LIBS"
7876 lt_save_CFLAGS="$CFLAGS"
7877 LIBS="conftstm.$ac_objext"
7878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7886 LIBS="$lt_save_LIBS"
7887 CFLAGS="$lt_save_CFLAGS"
7889 echo "cannot find nm_test_func in $nlist" >&5
7892 echo "cannot find nm_test_var in $nlist" >&5
7895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7898 echo "$progname: failed program was:" >&5
7899 cat conftest.$ac_ext >&5
7901 rm -f conftest* conftst*
7903 # Do not use the global_symbol_pipe unless it works.
7904 if test "$pipe_works" = yes; then
7907 lt_cv_sys_global_symbol_pipe=
7913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7914 lt_cv_sys_global_symbol_to_cdecl=
7916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7917 { echo "$as_me:$LINENO: result: failed" >&5
7918 echo "${ECHO_T}failed" >&6; }
7920 { echo "$as_me:$LINENO: result: ok" >&5
7921 echo "${ECHO_T}ok" >&6; }
7924 { echo "$as_me:$LINENO: checking for objdir" >&5
7925 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7926 if test "${lt_cv_objdir+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 rm -f .libs 2>/dev/null
7930 mkdir .libs 2>/dev/null
7931 if test -d .libs; then
7934 # MS-DOS does not allow filenames that begin with a dot.
7937 rmdir .libs 2>/dev/null
7939 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7940 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7941 objdir=$lt_cv_objdir
7949 # AIX sometimes has problems with the GCC collect2 program. For some
7950 # reason, if we set the COLLECT_NAMES environment variable, the problems
7951 # vanish in a puff of smoke.
7952 if test "X${COLLECT_NAMES+set}" != Xset; then
7954 export COLLECT_NAMES
7959 # Sed substitution that helps us do robust quoting. It backslashifies
7960 # metacharacters that are still active within double-quoted strings.
7961 Xsed='sed -e 1s/^X//'
7962 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7964 # Same as above, but do not quote variable references.
7965 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7967 # Sed substitution to delay expansion of an escaped shell variable in a
7968 # double_quote_subst'ed string.
7969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7971 # Sed substitution to avoid accidental globbing in evaled expressions
7972 no_glob_subst='s/\*/\\\*/g'
7978 default_ofile=libtool
7979 can_build_shared=yes
7981 # All known linkers require a `.a' archive for static linking (except MSVC,
7982 # which needs '.lib').
7984 ltmain="$ac_aux_dir/ltmain.sh"
7985 ofile="$default_ofile"
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}ar; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_prog_AR+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 if test -n "$AR"; then
7997 ac_cv_prog_AR="$AR" # Let the user override the test.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_AR="${ac_tool_prefix}ar"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 if test -n "$AR"; then
8018 { echo "$as_me:$LINENO: result: $AR" >&5
8019 echo "${ECHO_T}$AR" >&6; }
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8027 if test -z "$ac_cv_prog_AR"; then
8029 # Extract the first word of "ar", so it can be a program name with args.
8030 set dummy ar; ac_word=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 if test -n "$ac_ct_AR"; then
8037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_ac_ct_AR="ar"
8047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8057 if test -n "$ac_ct_AR"; then
8058 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8059 echo "${ECHO_T}$ac_ct_AR" >&6; }
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8065 if test "x$ac_ct_AR" = x; then
8068 case $cross_compiling:$ac_tool_warned in
8070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8071 whose name does not start with the host triplet. If you think this
8072 configuration is useful to you, please write to autoconf@gnu.org." >&5
8073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8074 whose name does not start with the host triplet. If you think this
8075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8076 ac_tool_warned=yes ;;
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089 if test "${ac_cv_prog_RANLIB+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 if test -n "$RANLIB"; then
8093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 RANLIB=$ac_cv_prog_RANLIB
8113 if test -n "$RANLIB"; then
8114 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8115 echo "${ECHO_T}$RANLIB" >&6; }
8117 { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8123 if test -z "$ac_cv_prog_RANLIB"; then
8124 ac_ct_RANLIB=$RANLIB
8125 # Extract the first word of "ranlib", so it can be a program name with args.
8126 set dummy ranlib; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 if test -n "$ac_ct_RANLIB"; then
8133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142 ac_cv_prog_ac_ct_RANLIB="ranlib"
8143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8153 if test -n "$ac_ct_RANLIB"; then
8154 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8155 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8157 { echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6; }
8161 if test "x$ac_ct_RANLIB" = x; then
8164 case $cross_compiling:$ac_tool_warned in
8166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8167 whose name does not start with the host triplet. If you think this
8168 configuration is useful to you, please write to autoconf@gnu.org." >&5
8169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8170 whose name does not start with the host triplet. If you think this
8171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8172 ac_tool_warned=yes ;;
8174 RANLIB=$ac_ct_RANLIB
8177 RANLIB="$ac_cv_prog_RANLIB"
8180 if test -n "$ac_tool_prefix"; then
8181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8182 set dummy ${ac_tool_prefix}strip; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_prog_STRIP+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 if test -n "$STRIP"; then
8189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 STRIP=$ac_cv_prog_STRIP
8209 if test -n "$STRIP"; then
8210 { echo "$as_me:$LINENO: result: $STRIP" >&5
8211 echo "${ECHO_T}$STRIP" >&6; }
8213 { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8219 if test -z "$ac_cv_prog_STRIP"; then
8221 # Extract the first word of "strip", so it can be a program name with args.
8222 set dummy strip; ac_word=$2
8223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 if test -n "$ac_ct_STRIP"; then
8229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_prog_ac_ct_STRIP="strip"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8249 if test -n "$ac_ct_STRIP"; then
8250 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8253 { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8257 if test "x$ac_ct_STRIP" = x; then
8260 case $cross_compiling:$ac_tool_warned in
8262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8263 whose name does not start with the host triplet. If you think this
8264 configuration is useful to you, please write to autoconf@gnu.org." >&5
8265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8266 whose name does not start with the host triplet. If you think this
8267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8268 ac_tool_warned=yes ;;
8273 STRIP="$ac_cv_prog_STRIP"
8278 old_CFLAGS="$CFLAGS"
8280 # Set sane defaults for various variables
8281 test -z "$AR" && AR=ar
8282 test -z "$AR_FLAGS" && AR_FLAGS=cru
8283 test -z "$AS" && AS=as
8284 test -z "$CC" && CC=cc
8285 test -z "$LTCC" && LTCC=$CC
8286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287 test -z "$DLLTOOL" && DLLTOOL=dlltool
8288 test -z "$LD" && LD=ld
8289 test -z "$LN_S" && LN_S="ln -s"
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 test -z "$NM" && NM=nm
8292 test -z "$SED" && SED=sed
8293 test -z "$OBJDUMP" && OBJDUMP=objdump
8294 test -z "$RANLIB" && RANLIB=:
8295 test -z "$STRIP" && STRIP=:
8296 test -z "$ac_objext" && ac_objext=o
8298 # Determine commands to create old-style static archives.
8299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8300 old_postinstall_cmds='chmod 644 $oldlib'
8301 old_postuninstall_cmds=
8303 if test -n "$RANLIB"; then
8306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8312 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8315 for cc_temp in $compiler""; do
8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8326 # Only perform the check for file, if the check method requires it
8327 case $deplibs_check_method in
8329 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8330 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8331 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340 lt_save_MAGIC_CMD="$MAGIC_CMD"
8341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343 for ac_dir in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/${ac_tool_prefix}file; then
8347 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8348 if test -n "$file_magic_test_file"; then
8349 case $deplibs_check_method in
8351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354 $EGREP "$file_magic_regex" > /dev/null; then
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such. This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem. Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8376 MAGIC_CMD="$lt_save_MAGIC_CMD"
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8390 if test -z "$lt_cv_path_MAGIC_CMD"; then
8391 if test -n "$ac_tool_prefix"; then
8392 { echo "$as_me:$LINENO: checking for file" >&5
8393 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8402 lt_save_MAGIC_CMD="$MAGIC_CMD"
8403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8405 for ac_dir in $ac_dummy; do
8407 test -z "$ac_dir" && ac_dir=.
8408 if test -f $ac_dir/file; then
8409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8410 if test -n "$file_magic_test_file"; then
8411 case $deplibs_check_method in
8413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8416 $EGREP "$file_magic_regex" > /dev/null; then
8421 *** Warning: the command libtool uses to detect shared libraries,
8422 *** $file_magic_cmd, produces output that libtool cannot recognize.
8423 *** The result is that libtool may fail to recognize shared libraries
8424 *** as such. This will affect the creation of libtool libraries that
8425 *** depend on shared libraries, but programs linked with such libtool
8426 *** libraries will work regardless of this problem. Nevertheless, you
8427 *** may want to report the problem to your system manager and/or to
8428 *** bug-libtool@gnu.org
8438 MAGIC_CMD="$lt_save_MAGIC_CMD"
8443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444 if test -n "$MAGIC_CMD"; then
8445 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8446 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8448 { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8462 enable_win32_dll=yes
8464 # Check whether --enable-libtool-lock was given.
8465 if test "${enable_libtool_lock+set}" = set; then
8466 enableval=$enable_libtool_lock;
8469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8472 # Check whether --with-pic was given.
8473 if test "${with_pic+set}" = set; then
8474 withval=$with_pic; pic_mode="$withval"
8479 test -z "$pic_mode" && pic_mode=default
8481 # Use C for the default configuration in the libtool script
8485 ac_cpp='$CPP $CPPFLAGS'
8486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491 # Source file extension for C test sources.
8494 # Object file extension for compiled C test sources.
8498 # Code to be used in simple compile tests
8499 lt_simple_compile_test_code="int some_variable = 0;\n"
8501 # Code to be used in simple link tests
8502 lt_simple_link_test_code='int main(){return(0);}\n'
8505 # If no C compiler was specified, use CC.
8508 # If no C compiler flags were specified, use CFLAGS.
8509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8511 # Allow CC to be a program name with arguments.
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8522 ac_outfile=conftest.$ac_objext
8523 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8530 lt_prog_compiler_no_builtin_flag=
8532 if test "$GCC" = yes; then
8533 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8536 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8537 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 lt_cv_prog_compiler_rtti_exceptions=no
8542 ac_outfile=conftest.$ac_objext
8543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8544 lt_compiler_flag="-fno-rtti -fno-exceptions"
8545 # Insert the option either (1) after the last *FLAGS variable, or
8546 # (2) before a word containing "conftest.", or (3) at the end.
8547 # Note that $ac_compile itself does not contain backslashes and begins
8548 # with a dollar sign (not a hyphen), so the echo should work correctly.
8549 # The option is referenced via a variable to avoid confusing sed.
8550 lt_compile=`echo "$ac_compile" | $SED \
8551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553 -e 's:$: $lt_compiler_flag:'`
8554 (eval echo "\"\$as_me:8554: $lt_compile\"" >&5)
8555 (eval "$lt_compile" 2>conftest.err)
8557 cat conftest.err >&5
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 if (exit $ac_status) && test -s "$ac_outfile"; then
8560 # The compiler can only warn and ignore the option if not recognized
8561 # So say no if there are warnings other than the usual output.
8562 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8565 lt_cv_prog_compiler_rtti_exceptions=yes
8571 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8582 lt_prog_compiler_wl=
8583 lt_prog_compiler_pic=
8584 lt_prog_compiler_static=
8586 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8589 if test "$GCC" = yes; then
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_static='-static'
8595 # All AIX code is PIC.
8596 if test "$host_cpu" = ia64; then
8597 # AIX 5 now supports IA64 processor
8598 lt_prog_compiler_static='-Bstatic'
8603 # FIXME: we need at least 68020 code to build shared libraries, but
8604 # adding the `-m68020' flag to GCC prevents building anything better,
8606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610 # PIC is the default for these OSes.
8613 mingw* | pw32* | os2*)
8614 # This hack is so that the source file can tell whether it is being
8615 # built for inclusion in a dll (and should export symbols for example).
8616 lt_prog_compiler_pic='-DDLL_EXPORT'
8619 darwin* | rhapsody*)
8620 # PIC is the default on this platform
8621 # Common symbols not allowed in MH_DYLIB files
8622 lt_prog_compiler_pic='-fno-common'
8626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8627 # Instead, we relocate shared libraries at runtime.
8631 # Just because we use GCC doesn't mean we suddenly get shared libraries
8632 # on systems that don't support them.
8633 lt_prog_compiler_can_build_shared=no
8638 if test -d /usr/nec; then
8639 lt_prog_compiler_pic=-Kconform_pic
8644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8651 lt_prog_compiler_pic='-fPIC'
8657 lt_prog_compiler_pic='-fPIC'
8661 # PORTME Check for flag to pass linker flags through the system compiler.
8664 lt_prog_compiler_wl='-Wl,'
8665 if test "$host_cpu" = ia64; then
8666 # AIX 5 now supports IA64 processor
8667 lt_prog_compiler_static='-Bstatic'
8669 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8673 # PIC is the default on this platform
8674 # Common symbols not allowed in MH_DYLIB files
8675 case $cc_basename in
8677 lt_prog_compiler_pic='-qnocommon'
8678 lt_prog_compiler_wl='-Wl,'
8683 mingw* | pw32* | os2*)
8684 # This hack is so that the source file can tell whether it is being
8685 # built for inclusion in a dll (and should export symbols for example).
8686 lt_prog_compiler_pic='-DDLL_EXPORT'
8689 hpux9* | hpux10* | hpux11*)
8690 lt_prog_compiler_wl='-Wl,'
8691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8698 lt_prog_compiler_pic='+Z'
8701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8702 lt_prog_compiler_static='${wl}-a ${wl}archive'
8705 irix5* | irix6* | nonstopux*)
8706 lt_prog_compiler_wl='-Wl,'
8707 # PIC (with -KPIC) is the default.
8708 lt_prog_compiler_static='-non_shared'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-Bstatic'
8717 case $cc_basename in
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-static'
8723 pgcc* | pgf77* | pgf90* | pgf95*)
8724 # Portland Group compilers (*not* the Pentium gcc compiler,
8725 # which looks to be a dead project)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='-fpic'
8728 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl='-Wl,'
8732 # All Alpha code is PIC.
8733 lt_prog_compiler_static='-non_shared'
8738 osf3* | osf4* | osf5*)
8739 lt_prog_compiler_wl='-Wl,'
8740 # All OSF/1 code is PIC.
8741 lt_prog_compiler_static='-non_shared'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8747 case $cc_basename in
8749 lt_prog_compiler_wl='-Qoption ld ';;
8751 lt_prog_compiler_wl='-Wl,';;
8756 lt_prog_compiler_wl='-Qoption ld '
8757 lt_prog_compiler_pic='-PIC'
8758 lt_prog_compiler_static='-Bstatic'
8761 sysv4 | sysv4.2uw2* | sysv4.3*)
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_pic='-KPIC'
8764 lt_prog_compiler_static='-Bstatic'
8768 if test -d /usr/nec ;then
8769 lt_prog_compiler_pic='-Kconform_pic'
8770 lt_prog_compiler_static='-Bstatic'
8774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-Bstatic'
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_can_build_shared=no
8786 lt_prog_compiler_pic='-pic'
8787 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_can_build_shared=no
8796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8797 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8800 # Check to make sure the PIC flag actually works.
8802 if test -n "$lt_prog_compiler_pic"; then
8804 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8805 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8806 if test "${lt_prog_compiler_pic_works+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 lt_prog_compiler_pic_works=no
8810 ac_outfile=conftest.$ac_objext
8811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8812 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8813 # Insert the option either (1) after the last *FLAGS variable, or
8814 # (2) before a word containing "conftest.", or (3) at the end.
8815 # Note that $ac_compile itself does not contain backslashes and begins
8816 # with a dollar sign (not a hyphen), so the echo should work correctly.
8817 # The option is referenced via a variable to avoid confusing sed.
8818 lt_compile=`echo "$ac_compile" | $SED \
8819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821 -e 's:$: $lt_compiler_flag:'`
8822 (eval echo "\"\$as_me:8822: $lt_compile\"" >&5)
8823 (eval "$lt_compile" 2>conftest.err)
8825 cat conftest.err >&5
8826 echo "$as_me:8826: \$? = $ac_status" >&5
8827 if (exit $ac_status) && test -s "$ac_outfile"; then
8828 # The compiler can only warn and ignore the option if not recognized
8829 # So say no if there are warnings other than the usual output.
8830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8833 lt_prog_compiler_pic_works=yes
8839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8840 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8842 if test x"$lt_prog_compiler_pic_works" = xyes; then
8843 case $lt_prog_compiler_pic in
8845 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8848 lt_prog_compiler_pic=
8849 lt_prog_compiler_can_build_shared=no
8854 # For platforms which do not support PIC, -DPIC is meaningless:
8856 lt_prog_compiler_pic=
8859 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8864 # Check to make sure the static flag actually works.
8866 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8867 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8868 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8869 if test "${lt_prog_compiler_static_works+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 lt_prog_compiler_static_works=no
8873 save_LDFLAGS="$LDFLAGS"
8874 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8875 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8877 # The linker can only warn and ignore the option if not recognized
8878 # So say no if there are warnings
8879 if test -s conftest.err; then
8880 # Append any errors to the config.log.
8881 cat conftest.err 1>&5
8882 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884 if diff conftest.exp conftest.er2 >/dev/null; then
8885 lt_prog_compiler_static_works=yes
8888 lt_prog_compiler_static_works=yes
8892 LDFLAGS="$save_LDFLAGS"
8895 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8896 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8898 if test x"$lt_prog_compiler_static_works" = xyes; then
8901 lt_prog_compiler_static=
8905 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8906 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8907 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 lt_cv_prog_compiler_c_o=no
8911 $rm -r conftest 2>/dev/null
8915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8917 lt_compiler_flag="-o out/conftest2.$ac_objext"
8918 # Insert the option either (1) after the last *FLAGS variable, or
8919 # (2) before a word containing "conftest.", or (3) at the end.
8920 # Note that $ac_compile itself does not contain backslashes and begins
8921 # with a dollar sign (not a hyphen), so the echo should work correctly.
8922 lt_compile=`echo "$ac_compile" | $SED \
8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925 -e 's:$: $lt_compiler_flag:'`
8926 (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
8927 (eval "$lt_compile" 2>out/conftest.err)
8929 cat out/conftest.err >&5
8930 echo "$as_me:8930: \$? = $ac_status" >&5
8931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933 # The compiler can only warn and ignore the option if not recognized
8934 # So say no if there are warnings
8935 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_c_o=yes
8943 # SGI C++ compiler will create directory out/ii_files/ for
8944 # template instantiation
8945 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8946 $rm out/* && rmdir out
8952 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8953 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8956 hard_links="nottested"
8957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8958 # do not overwrite the value of need_locks provided by the user
8959 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8965 ln conftest.a conftest.b 2>&5 || hard_links=no
8966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967 { echo "$as_me:$LINENO: result: $hard_links" >&5
8968 echo "${ECHO_T}$hard_links" >&6; }
8969 if test "$hard_links" = no; then
8970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8978 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8982 allow_undefined_flag=
8983 enable_shared_with_static_runtimes=no
8985 archive_expsym_cmds=
8986 old_archive_From_new_cmds=
8987 old_archive_from_expsyms_cmds=
8988 export_dynamic_flag_spec=
8989 whole_archive_flag_spec=
8990 thread_safe_flag_spec=
8991 hardcode_libdir_flag_spec=
8992 hardcode_libdir_flag_spec_ld=
8993 hardcode_libdir_separator=
8996 hardcode_shlibpath_var=unsupported
8997 link_all_deplibs=unknown
8998 hardcode_automatic=no
9001 always_export_symbols=no
9002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9003 # include_expsyms should be a list of space-separated symbols to be *always*
9004 # included in the symbol list
9006 # exclude_expsyms can be an extended regexp of symbols to exclude
9007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009 # as well as any symbol that contains `d'.
9010 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012 # platforms (ab)use it in PIC code, but their linkers get confused if
9013 # the symbol is explicitly referenced. Since portable code cannot
9014 # rely on this symbol name, it's probably fine to never include it in
9015 # preloaded symbol tables.
9016 extract_expsyms_cmds=
9017 # Just being paranoid about ensuring that cc_basename is set.
9018 for cc_temp in $compiler""; do
9020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9026 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9029 cygwin* | mingw* | pw32*)
9030 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9031 # When not using gcc, we currently assume that we are using
9032 # Microsoft Visual C++.
9033 if test "$GCC" != yes; then
9038 # we just hope/assume this is gcc and not c89 (= MSVC++)
9047 if test "$with_gnu_ld" = yes; then
9048 # If archive_cmds runs LD, not CC, wlarc should be empty
9051 # Set some defaults for GNU ld with shared library support. These
9052 # are reset later if shared libraries are not supported. Putting them
9053 # here allows them to be overridden if necessary.
9054 runpath_var=LD_RUN_PATH
9055 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9056 export_dynamic_flag_spec='${wl}--export-dynamic'
9057 # ancient GNU ld didn't support --whole-archive et. al.
9058 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061 whole_archive_flag_spec=
9063 supports_anon_versioning=no
9064 case `$LD -v 2>/dev/null` in
9065 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068 *\ 2.11.*) ;; # other 2.11 versions
9069 *) supports_anon_versioning=yes ;;
9072 # See if GNU ld supports shared libraries.
9074 aix3* | aix4* | aix5*)
9075 # On AIX/PPC, the GNU linker is very broken
9076 if test "$host_cpu" != ia64; then
9080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support. If you
9083 *** really care for shared libraries, you may want to modify your PATH
9084 *** so that a non-GNU linker is found, and then restart.
9091 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)'
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_minus_L=yes
9095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9096 # that the semantics of dynamic libraries on AmigaOS, at least up
9097 # to version 4, is to share data among multiple programs linked
9098 # with the same dynamic library. Since this doesn't match the
9099 # behavior of shared libraries on other platforms, we can't use
9105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106 allow_undefined_flag=unsupported
9107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9108 # support --undefined. This deserves some investigation. FIXME
9109 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 cygwin* | mingw* | pw32*)
9116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9117 # as there is no search path for DLLs.
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 allow_undefined_flag=unsupported
9120 always_export_symbols=no
9121 enable_shared_with_static_runtimes=yes
9122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126 # If the export-symbols file already is a .def file (1st line
9127 # is EXPORTS), use it as is; otherwise, prepend...
9128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129 cp $export_symbols $output_objdir/$soname.def;
9131 echo EXPORTS > $output_objdir/$soname.def;
9132 cat $export_symbols >> $output_objdir/$soname.def;
9134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 hardcode_shlibpath_var=no
9143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9144 export_dynamic_flag_spec='${wl}-E'
9145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9146 # Instead, shared libraries are loaded at an image base (0x10000000 by
9147 # default) and relocated if they conflict, which is a slow very memory
9148 # consuming and fragmenting process. To avoid this, we pick a random,
9149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9152 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9158 case $cc_basename,$host_cpu in
9159 pgcc*) # Portland Group C compiler
9160 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'
9161 tmp_addflag=' $pic_flag'
9163 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9164 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'
9165 tmp_addflag=' $pic_flag -Mnomain' ;;
9166 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9167 tmp_addflag=' -i_dynamic' ;;
9168 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9169 tmp_addflag=' -i_dynamic -nofor_main' ;;
9170 ifc* | ifort*) # Intel Fortran compiler
9171 tmp_addflag=' -nofor_main' ;;
9173 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175 if test $supports_anon_versioning = yes; then
9176 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178 $echo "local: *; };" >> $output_objdir/$libname.ver~
9179 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9202 *** create shared libraries on Solaris systems. Therefore, libtool
9203 *** is disabling shared libraries support. We urge you to upgrade GNU
9204 *** binutils to release 2.9.1 or newer. Another option is to modify
9205 *** your PATH or compiler configuration so that the native linker is
9206 *** used, and then restart.
9209 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9218 case `$LD -v 2>&1` in
9219 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9224 *** reliably create shared libraries on SCO systems. Therefore, libtool
9225 *** is disabling shared libraries support. We urge you to upgrade GNU
9226 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9234 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9245 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_shlibpath_var=no
9252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9261 if test "$ld_shlibs" = no; then
9263 hardcode_libdir_flag_spec=
9264 export_dynamic_flag_spec=
9265 whole_archive_flag_spec=
9268 # PORTME fill in a description of your system's linker (not GNU ld)
9271 allow_undefined_flag=unsupported
9272 always_export_symbols=yes
9273 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'
9274 # Note: this linker hardcodes the directories in LIBPATH if there
9275 # are no directories specified by -L.
9276 hardcode_minus_L=yes
9277 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9278 # Neither direct hardcoding nor static linking is supported with a
9280 hardcode_direct=unsupported
9285 if test "$host_cpu" = ia64; then
9286 # On IA64, the linker does run time linking by default, so we don't
9287 # have to do anything special.
9288 aix_use_runtimelinking=no
9289 exp_sym_flag='-Bexport'
9292 # If we're using GNU nm, then we don't want the "-C" option.
9293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9294 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9295 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'
9297 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'
9299 aix_use_runtimelinking=no
9301 # Test if we are trying to use run time linking or normal
9302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9303 # need to do runtime linking.
9304 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9305 for ld_flag in $LDFLAGS; do
9306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9307 aix_use_runtimelinking=yes
9314 exp_sym_flag='-bexport'
9315 no_entry_flag='-bnoentry'
9318 # When large executables or shared objects are built, AIX ld can
9319 # have problems creating the table of contents. If linking a library
9320 # or program results in "error TOC overflow" add -mminimal-toc to
9321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9326 hardcode_libdir_separator=':'
9327 link_all_deplibs=yes
9329 if test "$GCC" = yes; then
9330 case $host_os in aix4.[012]|aix4.[012].*)
9331 # We only want to do this on AIX 4.2 and lower, the check
9332 # below for broken collect2 doesn't work under 4.3+
9333 collect2name=`${CC} -print-prog-name=collect2`
9334 if test -f "$collect2name" && \
9335 strings "$collect2name" | grep resolve_lib_name >/dev/null
9337 # We have reworked collect2
9340 # We have old collect2
9341 hardcode_direct=unsupported
9342 # It fails to find uninstalled libraries when the uninstalled
9343 # path is not listed in the libpath. Setting hardcode_minus_L
9344 # to unsupported forces relinking
9345 hardcode_minus_L=yes
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_libdir_separator=
9351 shared_flag='-shared'
9352 if test "$aix_use_runtimelinking" = yes; then
9353 shared_flag="$shared_flag "'${wl}-G'
9357 if test "$host_cpu" = ia64; then
9358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9359 # chokes on -Wl,-G. The following line is correct:
9362 if test "$aix_use_runtimelinking" = yes; then
9363 shared_flag='${wl}-G'
9365 shared_flag='${wl}-bM:SRE'
9370 # It seems that -bexpall does not export symbols beginning with
9371 # underscore (_), so it is better to generate a list of symbols to export.
9372 always_export_symbols=yes
9373 if test "$aix_use_runtimelinking" = yes; then
9374 # Warning - without using the other runtime loading flags (-brtl),
9375 # -berok will link without error, but may produce a broken library.
9376 allow_undefined_flag='-berok'
9377 # Determine the default libpath from the value encoded in an empty executable.
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_link") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest$ac_exeext &&
9410 $as_test_x conftest$ac_exeext; then
9412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9414 # Check for a 64-bit object if we didn't find anything.
9415 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; }
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425 conftest$ac_exeext conftest.$ac_ext
9426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9429 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9431 if test "$host_cpu" = ia64; then
9432 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9433 allow_undefined_flag="-z nodefs"
9434 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9436 # Determine the default libpath from the value encoded in an empty executable.
9437 cat >conftest.$ac_ext <<_ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_link") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest$ac_exeext &&
9469 $as_test_x conftest$ac_exeext; then
9471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9473 # Check for a 64-bit object if we didn't find anything.
9474 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; }
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484 conftest$ac_exeext conftest.$ac_ext
9485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9488 # Warning - without using the other run time loading flags,
9489 # -berok will link without error, but may produce a broken library.
9490 no_undefined_flag=' ${wl}-bernotok'
9491 allow_undefined_flag=' ${wl}-berok'
9492 # Exported symbols can be pulled into shared objects from archives
9493 whole_archive_flag_spec='$convenience'
9494 archive_cmds_need_lc=yes
9495 # This is similar to how AIX traditionally builds its shared libraries.
9496 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9502 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)'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 # see comment about different semantics on the GNU ld section
9510 export_dynamic_flag_spec=-rdynamic
9513 cygwin* | mingw* | pw32*)
9514 # When not using gcc, we currently assume that we are using
9515 # Microsoft Visual C++.
9516 # hardcode_libdir_flag_spec is actually meaningless, as there is
9517 # no search path for DLLs.
9518 hardcode_libdir_flag_spec=' '
9519 allow_undefined_flag=unsupported
9520 # Tell ltmain to make .lib files, not .a files.
9522 # Tell ltmain to make .dll files, not .so files.
9524 # FIXME: Setting linknames here is a bad hack.
9525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9526 # The linker will automatically build a .lib file if we build a DLL.
9527 old_archive_From_new_cmds='true'
9528 # FIXME: Should let the user specify the lib program.
9529 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9530 fix_srcfile_path='`cygpath -w "$srcfile"`'
9531 enable_shared_with_static_runtimes=yes
9534 darwin* | rhapsody*)
9536 rhapsody* | darwin1.[012])
9537 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9541 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9543 case ${MACOSX_DEPLOYMENT_TARGET} in
9545 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9548 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9554 archive_cmds_need_lc=no
9556 hardcode_automatic=yes
9557 hardcode_shlibpath_var=unsupported
9558 whole_archive_flag_spec=''
9559 link_all_deplibs=yes
9560 if test "$GCC" = yes ; then
9561 output_verbose_link_cmd='echo'
9562 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9565 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}'
9566 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}'
9568 case $cc_basename in
9570 output_verbose_link_cmd='echo'
9571 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9572 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9574 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}'
9575 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}'
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_shlibpath_var=no
9594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9595 # support. Future versions do this automatically, but an explicit c++rt0.o
9596 # does not break anything, and helps significantly (at the cost of a little
9599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9600 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_shlibpath_var=no
9605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_minus_L=yes
9610 hardcode_shlibpath_var=no
9613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9614 freebsd* | kfreebsd*-gnu | dragonfly*)
9615 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9616 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9622 if test "$GCC" = yes; then
9623 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'
9625 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'
9627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9628 hardcode_libdir_separator=:
9631 # hardcode_minus_L: Not really in the search PATH,
9632 # but as the default location of the library.
9633 hardcode_minus_L=yes
9634 export_dynamic_flag_spec='${wl}-E'
9638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9643 if test "$with_gnu_ld" = no; then
9644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9645 hardcode_libdir_separator=:
9648 export_dynamic_flag_spec='${wl}-E'
9650 # hardcode_minus_L: Not really in the search PATH,
9651 # but as the default location of the library.
9652 hardcode_minus_L=yes
9657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682 if test "$with_gnu_ld" = no; then
9683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684 hardcode_libdir_separator=:
9688 hardcode_libdir_flag_spec_ld='+b $libdir'
9690 hardcode_shlibpath_var=no
9694 export_dynamic_flag_spec='${wl}-E'
9696 # hardcode_minus_L: Not really in the search PATH,
9697 # but as the default location of the library.
9698 hardcode_minus_L=yes
9704 irix5* | irix6* | nonstopux*)
9705 if test "$GCC" = yes; then
9706 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'
9708 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'
9709 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712 hardcode_libdir_separator=:
9713 link_all_deplibs=yes
9717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9722 hardcode_libdir_flag_spec='-R$libdir'
9724 hardcode_shlibpath_var=no
9728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9731 hardcode_libdir_separator=:
9732 hardcode_shlibpath_var=no
9737 hardcode_shlibpath_var=no
9738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9742 export_dynamic_flag_spec='${wl}-E'
9745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-R$libdir'
9750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9758 hardcode_libdir_flag_spec='-L$libdir'
9759 hardcode_minus_L=yes
9760 allow_undefined_flag=unsupported
9761 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'
9762 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9766 if test "$GCC" = yes; then
9767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9768 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'
9770 allow_undefined_flag=' -expect_unresolved \*'
9771 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'
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 hardcode_libdir_separator=:
9777 osf4* | osf5*) # as osf3* with the addition of -msym flag
9778 if test "$GCC" = yes; then
9779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9780 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'
9781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9783 allow_undefined_flag=' -expect_unresolved \*'
9784 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'
9785 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9786 $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'
9788 # Both c and cxx compiler support -rpath directly
9789 hardcode_libdir_flag_spec='-rpath $libdir'
9791 hardcode_libdir_separator=:
9795 no_undefined_flag=' -z text'
9796 if test "$GCC" = yes; then
9798 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9800 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9803 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9807 hardcode_libdir_flag_spec='-R$libdir'
9808 hardcode_shlibpath_var=no
9810 solaris2.[0-5] | solaris2.[0-5].*) ;;
9812 # The compiler driver will combine linker options so we
9813 # cannot just pass the convience library names through
9814 # without $wl, iff we do not link with $LD.
9815 # Luckily, gcc supports the same syntax we need for Sun Studio.
9816 # Supported since Solaris 2.6 (maybe 2.5.1?)
9819 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9821 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' ;;
9824 link_all_deplibs=yes
9828 if test "x$host_vendor" = xsequent; then
9829 # Use $CC to link under sequent, because it throws in some extra .o
9830 # files that make .init and .fini sections work.
9831 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_minus_L=yes
9838 hardcode_shlibpath_var=no
9842 case $host_vendor in
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes # is this really true???
9848 ## LD is ld it makes a PLAMLIB
9849 ## CC just makes a GrossModule.
9850 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9851 reload_cmds='$CC -r -o $output$reload_objs'
9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9859 runpath_var='LD_RUN_PATH'
9860 hardcode_shlibpath_var=no
9864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_shlibpath_var=no
9866 export_dynamic_flag_spec='-Bexport'
9870 if test -d /usr/nec; then
9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_shlibpath_var=no
9873 runpath_var=LD_RUN_PATH
9874 hardcode_runpath_var=yes
9879 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9880 no_undefined_flag='${wl}-z,text'
9881 archive_cmds_need_lc=no
9882 hardcode_shlibpath_var=no
9883 runpath_var='LD_RUN_PATH'
9885 if test "$GCC" = yes; then
9886 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 sysv5* | sco3.2v5* | sco5v6*)
9895 # Note: We can NOT use -z defs as we might desire, because we do not
9896 # link with -lc, and that would cause any symbols used from libc to
9897 # always be unresolved, which means just about no library would
9898 # ever link correctly. If we're not using GNU ld we use -z text
9899 # though, which does catch some bad symbols but isn't as heavy-handed
9901 no_undefined_flag='${wl}-z,text'
9902 allow_undefined_flag='${wl}-z,nodefs'
9903 archive_cmds_need_lc=no
9904 hardcode_shlibpath_var=no
9905 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9906 hardcode_libdir_separator=':'
9907 link_all_deplibs=yes
9908 export_dynamic_flag_spec='${wl}-Bexport'
9909 runpath_var='LD_RUN_PATH'
9911 if test "$GCC" = yes; then
9912 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_libdir_flag_spec='-L$libdir'
9923 hardcode_shlibpath_var=no
9932 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9933 echo "${ECHO_T}$ld_shlibs" >&6; }
9934 test "$ld_shlibs" = no && can_build_shared=no
9937 # Do we need to explicitly link libc?
9939 case "x$archive_cmds_need_lc" in
9941 # Assume -lc should be added
9942 archive_cmds_need_lc=yes
9944 if test "$enable_shared" = yes && test "$GCC" = yes; then
9945 case $archive_cmds in
9947 # FIXME: we may have to deal with multi-command sequences.
9950 # Test whether the compiler implicitly links with -lc since on some
9951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9952 # to ld, don't add -lc before -lgcc.
9953 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } 2>conftest.err; then
9965 libobjs=conftest.$ac_objext
9967 wl=$lt_prog_compiler_wl
9968 pic_flag=$lt_prog_compiler_pic
9974 lt_save_allow_undefined_flag=$allow_undefined_flag
9975 allow_undefined_flag=
9976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9977 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }
9982 archive_cmds_need_lc=no
9984 archive_cmds_need_lc=yes
9986 allow_undefined_flag=$lt_save_allow_undefined_flag
9988 cat conftest.err 1>&5
9991 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9992 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9999 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10001 library_names_spec=
10002 libname_spec='lib$name'
10006 postuninstall_cmds=
10010 shlibpath_overrides_runpath=unknown
10012 dynamic_linker="$host_os ld.so"
10013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10014 if test "$GCC" = yes; then
10015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10016 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10017 # if the path contains ";" then we assume it to be the separator
10018 # otherwise default to the standard path separator (i.e. ":") - it is
10019 # assumed that no part of a normal pathname contains ";" but that should
10020 # okay in the real world where ";" in dirpaths is itself problematic.
10021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10028 need_lib_prefix=unknown
10029 hardcode_into_libs=no
10031 # when you set need_version to no, make sure it does not cause -set_version
10032 # flags to be left without arguments
10033 need_version=unknown
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10039 shlibpath_var=LIBPATH
10041 # AIX 3 has no versioning support, so we append a major version to the name.
10042 soname_spec='${libname}${release}${shared_ext}$major'
10049 hardcode_into_libs=yes
10050 if test "$host_cpu" = ia64; then
10051 # AIX 5 supports IA64
10052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10053 shlibpath_var=LD_LIBRARY_PATH
10055 # With GCC up to 2.95.x, collect2 would create an import file
10056 # for dependence libraries. The import file would start with
10057 # the line `#! .'. This would cause the generated library to
10058 # depend on `.', always an invalid library. This was fixed in
10059 # development snapshots of GCC prior to 3.0.
10061 aix4 | aix4.[01] | aix4.[01].*)
10062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10067 can_build_shared=no
10071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10072 # soname into executable. Probably we can add versioning support to
10073 # collect2, so additional links can be useful in future.
10074 if test "$aix_use_runtimelinking" = yes; then
10075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10076 # instead of lib<name>.a to let people know that these are not
10077 # typical AIX shared libraries.
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 # We preserve .a as extension for shared libraries through AIX4.2
10081 # and later when we are not doing run time linking.
10082 library_names_spec='${libname}${release}.a $libname.a'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LIBPATH
10090 library_names_spec='$libname.ixlibrary $libname.a'
10091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10092 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'
10096 library_names_spec='${libname}${shared_ext}'
10097 dynamic_linker="$host_os ld.so"
10098 shlibpath_var=LIBRARY_PATH
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10110 # the default ld.so.conf also contains /usr/contrib/lib and
10111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10112 # libtool to hard-code these into programs
10115 cygwin* | mingw* | pw32*)
10116 version_type=windows
10121 case $GCC,$host_os in
10122 yes,cygwin* | yes,mingw* | yes,pw32*)
10123 library_names_spec='$libname.dll.a'
10124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125 postinstall_cmds='base_file=`basename \${file}`~
10126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10127 dldir=$destdir/`dirname \$dlpath`~
10128 test -d \$dldir || mkdir -p \$dldir~
10129 $install_prog $dir/$dlname \$dldir/$dlname~
10130 chmod a+x \$dldir/$dlname'
10131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10132 dlpath=$dir/\$dldll~
10134 shlibpath_overrides_runpath=yes
10138 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10139 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10140 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10143 # MinGW DLLs use traditional 'lib' prefix
10144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10146 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10147 # It is most probably a Windows format PATH printed by
10148 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10149 # path with ; separators, and with drive letters. We can handle the
10150 # drive letters (cygwin fileutils understands them), so leave them,
10151 # especially as we might pass files found there to a mingw objdump,
10152 # which wouldn't understand a cygwinified path. Ahh.
10153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10159 # pw32 DLLs use 'pw' prefix rather than 'lib'
10160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10169 dynamic_linker='Win32 ld.exe'
10170 # FIXME: first we should search . and the directory the executable is in
10174 darwin* | rhapsody*)
10175 dynamic_linker="$host_os dyld"
10176 version_type=darwin
10179 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10180 soname_spec='${libname}${release}${major}$shared_ext'
10181 shlibpath_overrides_runpath=yes
10182 shlibpath_var=DYLD_LIBRARY_PATH
10183 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10184 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10185 if test "$GCC" = yes; then
10186 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"`
10188 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=no
10214 hardcode_into_libs=yes
10215 dynamic_linker='GNU ld.so'
10218 freebsd* | dragonfly*)
10219 # DragonFly does not have aout. When/if they implement a new
10220 # versioning mechanism, adjust this.
10221 if test -x /usr/bin/objformat; then
10222 objformat=`/usr/bin/objformat`
10225 freebsd[123]*) objformat=aout ;;
10226 *) objformat=elf ;;
10229 version_type=freebsd-$objformat
10230 case $version_type in
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10241 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10246 freebsd3.[01]* | freebsdelf3.[01]*)
10247 shlibpath_overrides_runpath=yes
10248 hardcode_into_libs=yes
10250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10255 freebsd*) # from 4.6 on
10256 shlibpath_overrides_runpath=yes
10257 hardcode_into_libs=yes
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 hardcode_into_libs=yes
10272 hpux9* | hpux10* | hpux11*)
10273 # Give a soname corresponding to the major version so that dld.sl refuses to
10274 # link against other versions.
10281 hardcode_into_libs=yes
10282 dynamic_linker="$host_os dld.so"
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 if test "X$HPUX_IA64_MODE" = X32; then
10288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10296 hardcode_into_libs=yes
10297 dynamic_linker="$host_os dld.sl"
10298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10307 dynamic_linker="$host_os dld.sl"
10308 shlibpath_var=SHLIB_PATH
10309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10315 postinstall_cmds='chmod 555 $lib'
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10330 irix5* | irix6* | nonstopux*)
10332 nonstopux*) version_type=nonstopux ;;
10334 if test "$lt_cv_prog_gnu_ld" = yes; then
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10345 irix5* | nonstopux*)
10346 libsuff= shlibsuff=
10349 case $LD in # libtool.m4 will add one of these switches to LD
10350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10351 libsuff= shlibsuff= libmagic=32-bit;;
10352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10353 libsuff=32 shlibsuff=N32 libmagic=N32;;
10354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10356 *) libsuff= shlibsuff= libmagic=never-match;;
10360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10361 shlibpath_overrides_runpath=no
10362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10364 hardcode_into_libs=yes
10367 # No shared lib support for Linux oldld, aout, or coff.
10368 linux*oldld* | linux*aout* | linux*coff*)
10372 # This must be Linux ELF.
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 # This implies no fast_install, which is unacceptable.
10383 # Some rework will be needed to allow for fast_install
10384 # before this can be enabled.
10385 hardcode_into_libs=yes
10387 # Append ld.so.conf contents to the search path
10388 if test -f /etc/ld.so.conf; then
10389 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' ' '`
10390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10393 # We used to test for /lib/ld.so.1 and disable shared libraries on
10394 # powerpc, because MkLinux only supported shared libraries with the
10395 # GNU dynamic linker. Since this was broken with cross compilers,
10396 # most powerpc-linux boxes support dynamic linking these days and
10397 # people can always --disable-shared, the test was removed, and we
10398 # assume the GNU/Linux dynamic linker is in use.
10399 dynamic_linker='GNU/Linux ld.so'
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=no
10410 hardcode_into_libs=yes
10411 dynamic_linker='GNU ld.so'
10418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10421 dynamic_linker='NetBSD (a.out) ld.so'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 dynamic_linker='NetBSD ld.elf_so'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=yes
10429 hardcode_into_libs=yes
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=yes
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=yes
10451 sys_lib_dlsearch_path_spec="/usr/lib"
10453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10455 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10456 *) need_version=no ;;
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10463 openbsd2.[89] | openbsd2.[89].*)
10464 shlibpath_overrides_runpath=no
10467 shlibpath_overrides_runpath=yes
10471 shlibpath_overrides_runpath=yes
10476 libname_spec='$name'
10479 library_names_spec='$libname${shared_ext} $libname.a'
10480 dynamic_linker='OS/2 ld.exe'
10481 shlibpath_var=LIBPATH
10484 osf3* | osf4* | osf5*)
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=yes
10503 hardcode_into_libs=yes
10504 # ldd complains unless libraries are executable
10505 postinstall_cmds='chmod +x $lib'
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10514 if test "$with_gnu_ld" = yes; then
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 case $host_vendor in
10527 shlibpath_overrides_runpath=no
10529 export_dynamic_flag_spec='${wl}-Blargedynsym'
10530 runpath_var=LD_RUN_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10545 if test -d /usr/nec ;then
10547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10548 soname_spec='$libname${shared_ext}.$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10554 version_type=freebsd-elf
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 hardcode_into_libs=yes
10561 if test "$with_gnu_ld" = yes; then
10562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10563 shlibpath_overrides_runpath=no
10565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10566 shlibpath_overrides_runpath=yes
10569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10573 sys_lib_dlsearch_path_spec='/usr/lib'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 shlibpath_var=LD_LIBRARY_PATH
10587 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10588 echo "${ECHO_T}$dynamic_linker" >&6; }
10589 test "$dynamic_linker" = no && can_build_shared=no
10591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10592 if test "$GCC" = yes; then
10593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10596 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10599 if test -n "$hardcode_libdir_flag_spec" || \
10600 test -n "$runpath_var" || \
10601 test "X$hardcode_automatic" = "Xyes" ; then
10603 # We can hardcode non-existant directories.
10604 if test "$hardcode_direct" != no &&
10605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606 # have to relink, otherwise we might link with an installed library
10607 # when we should be linking with a yet-to-be-installed one
10608 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609 test "$hardcode_minus_L" != no; then
10610 # Linking always hardcodes the temporary library directory.
10611 hardcode_action=relink
10613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614 hardcode_action=immediate
10617 # We cannot hardcode anything, or else we can only hardcode existing
10619 hardcode_action=unsupported
10621 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10622 echo "${ECHO_T}$hardcode_action" >&6; }
10624 if test "$hardcode_action" = relink; then
10625 # Fast installation is not supported
10626 enable_fast_install=no
10627 elif test "$shlibpath_overrides_runpath" = yes ||
10628 test "$enable_shared" = no; then
10629 # Fast installation is not necessary
10630 enable_fast_install=needless
10635 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10636 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10637 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10638 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10643 # FIXME - insert some real tests, host_os isn't really good enough
10646 if test -n "$STRIP" ; then
10647 striplib="$STRIP -x"
10648 { echo "$as_me:$LINENO: result: yes" >&5
10649 echo "${ECHO_T}yes" >&6; }
10651 { echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6; }
10656 { echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6; }
10662 if test "x$enable_dlopen" != xyes; then
10663 enable_dlopen=unknown
10664 enable_dlopen_self=unknown
10665 enable_dlopen_self_static=unknown
10672 lt_cv_dlopen="load_add_on"
10674 lt_cv_dlopen_self=yes
10678 lt_cv_dlopen="LoadLibrary"
10683 lt_cv_dlopen="dlopen"
10688 # if libdl is installed we need to link against it
10689 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 ac_check_lib_save_LIBS=$LIBS
10696 cat >conftest.$ac_ext <<_ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10703 /* Override any GCC internal prototype to avoid an error.
10704 Use char because int might match the return type of a GCC
10705 builtin and then its argument prototype would still apply. */
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_link") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext &&
10735 $as_test_x conftest$ac_exeext; then
10736 ac_cv_lib_dl_dlopen=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_lib_dl_dlopen=no
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10750 if test $ac_cv_lib_dl_dlopen = yes; then
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754 lt_cv_dlopen="dyld"
10756 lt_cv_dlopen_self=yes
10763 { echo "$as_me:$LINENO: checking for shl_load" >&5
10764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10765 if test "${ac_cv_func_shl_load+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10776 #define shl_load innocuous_shl_load
10778 /* System header to define __stub macros and hopefully few prototypes,
10779 which can conflict with char shl_load (); below.
10780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10781 <limits.h> exists even on freestanding compilers. */
10784 # include <limits.h>
10786 # include <assert.h>
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10798 /* The GNU C library defines this for functions which it implements
10799 to always fail with ENOSYS. Some functions are actually named
10800 something starting with __ and the normal name is an alias. */
10801 #if defined __stub_shl_load || defined __stub___shl_load
10808 return shl_load ();
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_link") 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && {
10827 test -z "$ac_c_werror_flag" ||
10828 test ! -s conftest.err
10829 } && test -s conftest$ac_exeext &&
10830 $as_test_x conftest$ac_exeext; then
10831 ac_cv_func_shl_load=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_func_shl_load=no
10839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840 conftest$ac_exeext conftest.$ac_ext
10842 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10844 if test $ac_cv_func_shl_load = yes; then
10845 lt_cv_dlopen="shl_load"
10847 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 ac_check_lib_save_LIBS=$LIBS
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10871 return shl_load ();
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } && {
10890 test -z "$ac_c_werror_flag" ||
10891 test ! -s conftest.err
10892 } && test -s conftest$ac_exeext &&
10893 $as_test_x conftest$ac_exeext; then
10894 ac_cv_lib_dld_shl_load=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_cv_lib_dld_shl_load=no
10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10908 if test $ac_cv_lib_dld_shl_load = yes; then
10909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10911 { echo "$as_me:$LINENO: checking for dlopen" >&5
10912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10913 if test "${ac_cv_func_dlopen+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10924 #define dlopen innocuous_dlopen
10926 /* System header to define __stub macros and hopefully few prototypes,
10927 which can conflict with char dlopen (); below.
10928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929 <limits.h> exists even on freestanding compilers. */
10932 # include <limits.h>
10934 # include <assert.h>
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined __stub_dlopen || defined __stub___dlopen
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_func_dlopen=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_func_dlopen=no
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988 conftest$ac_exeext conftest.$ac_ext
10990 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10992 if test $ac_cv_func_dlopen = yes; then
10993 lt_cv_dlopen="dlopen"
10995 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 ac_check_lib_save_LIBS=$LIBS
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_link") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest$ac_exeext &&
11041 $as_test_x conftest$ac_exeext; then
11042 ac_cv_lib_dl_dlopen=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_cv_lib_dl_dlopen=no
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051 conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11056 if test $ac_cv_lib_dl_dlopen = yes; then
11057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lsvld $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext &&
11105 $as_test_x conftest$ac_exeext; then
11106 ac_cv_lib_svld_dlopen=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_cv_lib_svld_dlopen=no
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11119 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11120 if test $ac_cv_lib_svld_dlopen = yes; then
11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11123 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 ac_check_lib_save_LIBS=$LIBS
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11147 return dld_link ();
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_link") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest$ac_exeext &&
11169 $as_test_x conftest$ac_exeext; then
11170 ac_cv_lib_dld_dld_link=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_cv_lib_dld_dld_link=no
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11184 if test $ac_cv_lib_dld_dld_link = yes; then
11185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11206 if test "x$lt_cv_dlopen" != xno; then
11212 case $lt_cv_dlopen in
11214 save_CPPFLAGS="$CPPFLAGS"
11215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11217 save_LDFLAGS="$LDFLAGS"
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11221 LIBS="$lt_cv_dlopen_libs $LIBS"
11223 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11224 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11225 if test "${lt_cv_dlopen_self+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 if test "$cross_compiling" = yes; then :
11229 lt_cv_dlopen_self=cross
11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232 lt_status=$lt_dlunknown
11233 cat > conftest.$ac_ext <<EOF
11234 #line 11234 "configure"
11235 #include "confdefs.h"
11244 # define LT_DLGLOBAL RTLD_GLOBAL
11247 # define LT_DLGLOBAL DL_GLOBAL
11249 # define LT_DLGLOBAL 0
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254 find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11260 # define LT_DLLAZY_OR_NOW DL_LAZY
11263 # define LT_DLLAZY_OR_NOW RTLD_NOW
11266 # define LT_DLLAZY_OR_NOW DL_NOW
11268 # define LT_DLLAZY_OR_NOW 0
11276 extern "C" void exit (int);
11279 void fnord() { int i=42;}
11282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283 int status = $lt_dlunknown;
11287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11289 /* dlclose (self); */
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11302 (./conftest; exit; ) >&5 2>/dev/null
11304 case x$lt_status in
11305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11310 # compilation failed
11311 lt_cv_dlopen_self=no
11318 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11319 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11321 if test "x$lt_cv_dlopen_self" = xyes; then
11322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11324 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11325 if test "${lt_cv_dlopen_self_static+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 if test "$cross_compiling" = yes; then :
11329 lt_cv_dlopen_self_static=cross
11331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332 lt_status=$lt_dlunknown
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11334 "configure"
11335 #include "confdefs.h"
11344 # define LT_DLGLOBAL RTLD_GLOBAL
11347 # define LT_DLGLOBAL DL_GLOBAL
11349 # define LT_DLGLOBAL 0
11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354 find out it does not work in some platform. */
11355 #ifndef LT_DLLAZY_OR_NOW
11357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11360 # define LT_DLLAZY_OR_NOW DL_LAZY
11363 # define LT_DLLAZY_OR_NOW RTLD_NOW
11366 # define LT_DLLAZY_OR_NOW DL_NOW
11368 # define LT_DLLAZY_OR_NOW 0
11376 extern "C" void exit (int);
11379 void fnord() { int i=42;}
11382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11383 int status = $lt_dlunknown;
11387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389 /* dlclose (self); */
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11402 (./conftest; exit; ) >&5 2>/dev/null
11404 case x$lt_status in
11405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11410 # compilation failed
11411 lt_cv_dlopen_self_static=no
11418 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11419 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11422 CPPFLAGS="$save_CPPFLAGS"
11423 LDFLAGS="$save_LDFLAGS"
11428 case $lt_cv_dlopen_self in
11429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430 *) enable_dlopen_self=unknown ;;
11433 case $lt_cv_dlopen_self_static in
11434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435 *) enable_dlopen_self_static=unknown ;;
11440 # Report which library types will actually be built
11441 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11443 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11444 echo "${ECHO_T}$can_build_shared" >&6; }
11446 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11448 test "$can_build_shared" = "no" && enable_shared=no
11450 # On AIX, shared libraries and static libraries use the same namespace, and
11451 # are all built from PIC.
11454 test "$enable_shared" = yes && enable_static=no
11455 if test -n "$RANLIB"; then
11456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11457 postinstall_cmds='$RANLIB $lib'
11462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11463 test "$enable_shared" = yes && enable_static=no
11467 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11468 echo "${ECHO_T}$enable_shared" >&6; }
11470 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11472 # Make sure either enable_shared or enable_static is yes.
11473 test "$enable_shared" = yes || enable_static=yes
11474 { echo "$as_me:$LINENO: result: $enable_static" >&5
11475 echo "${ECHO_T}$enable_static" >&6; }
11477 # The else clause should only fire when bootstrapping the
11478 # libtool distribution, otherwise you forgot to ship ltmain.sh
11479 # with your package, and you will get complaints that there are
11480 # no rules to generate ltmain.sh.
11481 if test -f "$ltmain"; then
11482 # See if we are running on zsh, and set the options which allow our commands through
11483 # without removal of \ escapes.
11484 if test -n "${ZSH_VERSION+set}" ; then
11485 setopt NO_GLOB_SUBST
11487 # Now quote all the things that may contain metacharacters while being
11488 # careful not to overquote the AC_SUBSTed values. We take copies of the
11489 # variables and quote the copies for generation of the libtool script.
11490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11494 deplibs_check_method reload_flag reload_cmds need_locks \
11495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11496 lt_cv_sys_global_symbol_to_c_name_address \
11497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11498 old_postinstall_cmds old_postuninstall_cmds \
11502 lt_prog_compiler_wl \
11503 lt_prog_compiler_pic \
11504 lt_prog_compiler_static \
11505 lt_prog_compiler_no_builtin_flag \
11506 export_dynamic_flag_spec \
11507 thread_safe_flag_spec \
11508 whole_archive_flag_spec \
11509 enable_shared_with_static_runtimes \
11511 old_archive_from_new_cmds \
11516 compiler_lib_search_path \
11518 archive_expsym_cmds \
11520 postuninstall_cmds \
11521 old_archive_from_expsyms_cmds \
11522 allow_undefined_flag \
11523 no_undefined_flag \
11524 export_symbols_cmds \
11525 hardcode_libdir_flag_spec \
11526 hardcode_libdir_flag_spec_ld \
11527 hardcode_libdir_separator \
11528 hardcode_automatic \
11530 module_expsym_cmds \
11531 lt_cv_prog_compiler_c_o \
11533 include_expsyms; do
11536 old_archive_cmds | \
11537 old_archive_from_new_cmds | \
11539 archive_expsym_cmds | \
11541 module_expsym_cmds | \
11542 old_archive_from_expsyms_cmds | \
11543 export_symbols_cmds | \
11544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11545 postinstall_cmds | postuninstall_cmds | \
11546 old_postinstall_cmds | old_postuninstall_cmds | \
11547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11548 # Double-quote double-evaled strings.
11549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11558 *'\$0 --fallback-echo"')
11559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11563 cfgfile="${ofile}T"
11564 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11566 { echo "$as_me:$LINENO: creating $ofile" >&5
11567 echo "$as_me: creating $ofile" >&6;}
11569 cat <<__EOF__ >> "$cfgfile"
11572 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11573 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11574 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11576 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11577 # Free Software Foundation, Inc.
11579 # This file is part of GNU Libtool:
11580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11582 # This program is free software; you can redistribute it and/or modify
11583 # it under the terms of the GNU General Public License as published by
11584 # the Free Software Foundation; either version 2 of the License, or
11585 # (at your option) any later version.
11587 # This program is distributed in the hope that it will be useful, but
11588 # WITHOUT ANY WARRANTY; without even the implied warranty of
11589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11590 # General Public License for more details.
11592 # You should have received a copy of the GNU General Public License
11593 # along with this program; if not, write to the Free Software
11594 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11596 # As a special exception to the GNU General Public License, if you
11597 # distribute this file as part of a program that contains a
11598 # configuration script generated by Autoconf, you may include it under
11599 # the same distribution terms that you use for the rest of that program.
11601 # A sed program that does not truncate output.
11604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11605 Xsed="$SED -e 1s/^X//"
11607 # The HP-UX ksh and POSIX shell print the target directory to stdout
11608 # if CDPATH is set.
11609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11611 # The names of the tagged configurations supported by this script.
11614 # ### BEGIN LIBTOOL CONFIG
11616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11618 # Shell to use when invoking shell scripts.
11621 # Whether or not to build shared libraries.
11622 build_libtool_libs=$enable_shared
11624 # Whether or not to build static libraries.
11625 build_old_libs=$enable_static
11627 # Whether or not to add -lc for building shared libraries.
11628 build_libtool_need_lc=$archive_cmds_need_lc
11630 # Whether or not to disallow shared libs when runtime libs are static
11631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11633 # Whether or not to optimize for fast installation.
11634 fast_install=$enable_fast_install
11637 host_alias=$host_alias
11641 # The build system.
11642 build_alias=$build_alias
11646 # An echo program that does not interpret backslashes.
11651 AR_FLAGS=$lt_AR_FLAGS
11656 # LTCC compiler flags.
11657 LTCFLAGS=$lt_LTCFLAGS
11659 # A language-specific compiler.
11662 # Is the compiler the GNU C compiler?
11668 # The linker used to build libraries.
11671 # Whether we need hard or soft links.
11674 # A BSD-compatible nm program.
11677 # A symbol stripping program
11680 # Used to examine libraries when file_magic_cmd begins "file"
11681 MAGIC_CMD=$MAGIC_CMD
11683 # Used on cygwin: DLL creation program.
11686 # Used on cygwin: object dumper.
11689 # Used on cygwin: assembler.
11692 # The name of the directory that contains temporary libtool files.
11695 # How to create reloadable object files.
11696 reload_flag=$lt_reload_flag
11697 reload_cmds=$lt_reload_cmds
11699 # How to pass a linker flag through the compiler.
11700 wl=$lt_lt_prog_compiler_wl
11702 # Object file suffix (normally "o").
11703 objext="$ac_objext"
11705 # Old archive suffix (normally "a").
11708 # Shared library suffix (normally ".so").
11709 shrext_cmds='$shrext_cmds'
11711 # Executable file suffix (normally "").
11714 # Additional compiler flags for building library objects.
11715 pic_flag=$lt_lt_prog_compiler_pic
11718 # What is the maximum length of a command?
11719 max_cmd_len=$lt_cv_sys_max_cmd_len
11721 # Does compiler simultaneously support -c and -o options?
11722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11724 # Must we lock files when doing compilation?
11725 need_locks=$lt_need_locks
11727 # Do we need the lib prefix for modules?
11728 need_lib_prefix=$need_lib_prefix
11730 # Do we need a version for libraries?
11731 need_version=$need_version
11733 # Whether dlopen is supported.
11734 dlopen_support=$enable_dlopen
11736 # Whether dlopen of programs is supported.
11737 dlopen_self=$enable_dlopen_self
11739 # Whether dlopen of statically linked programs is supported.
11740 dlopen_self_static=$enable_dlopen_self_static
11742 # Compiler flag to prevent dynamic linking.
11743 link_static_flag=$lt_lt_prog_compiler_static
11745 # Compiler flag to turn off builtin functions.
11746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11748 # Compiler flag to allow reflexive dlopens.
11749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11751 # Compiler flag to generate shared objects directly from archives.
11752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11754 # Compiler flag to generate thread-safe objects.
11755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11757 # Library versioning type.
11758 version_type=$version_type
11760 # Format of library name prefix.
11761 libname_spec=$lt_libname_spec
11763 # List of archive names. First name is the real one, the rest are links.
11764 # The last name is the one that the linker finds with -lNAME.
11765 library_names_spec=$lt_library_names_spec
11767 # The coded name of the library, if different from the real name.
11768 soname_spec=$lt_soname_spec
11770 # Commands used to build and install an old-style archive.
11772 old_archive_cmds=$lt_old_archive_cmds
11773 old_postinstall_cmds=$lt_old_postinstall_cmds
11774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11776 # Create an old-style archive from a shared archive.
11777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11779 # Create a temporary old-style archive to link instead of a shared archive.
11780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11782 # Commands used to build and install a shared archive.
11783 archive_cmds=$lt_archive_cmds
11784 archive_expsym_cmds=$lt_archive_expsym_cmds
11785 postinstall_cmds=$lt_postinstall_cmds
11786 postuninstall_cmds=$lt_postuninstall_cmds
11788 # Commands used to build a loadable module (assumed same as above if empty)
11789 module_cmds=$lt_module_cmds
11790 module_expsym_cmds=$lt_module_expsym_cmds
11792 # Commands to strip libraries.
11793 old_striplib=$lt_old_striplib
11794 striplib=$lt_striplib
11796 # Dependencies to place before the objects being linked to create a
11798 predep_objects=$lt_predep_objects
11800 # Dependencies to place after the objects being linked to create a
11802 postdep_objects=$lt_postdep_objects
11804 # Dependencies to place before the objects being linked to create a
11806 predeps=$lt_predeps
11808 # Dependencies to place after the objects being linked to create a
11810 postdeps=$lt_postdeps
11812 # The library search path used internally by the compiler when linking
11813 # a shared library.
11814 compiler_lib_search_path=$lt_compiler_lib_search_path
11816 # Method to check whether dependent libraries are shared objects.
11817 deplibs_check_method=$lt_deplibs_check_method
11819 # Command to use when deplibs_check_method == file_magic.
11820 file_magic_cmd=$lt_file_magic_cmd
11822 # Flag that allows shared libraries with undefined symbols to be built.
11823 allow_undefined_flag=$lt_allow_undefined_flag
11825 # Flag that forces no undefined symbols.
11826 no_undefined_flag=$lt_no_undefined_flag
11828 # Commands used to finish a libtool library installation in a directory.
11829 finish_cmds=$lt_finish_cmds
11831 # Same as above, but a single script fragment to be evaled but not shown.
11832 finish_eval=$lt_finish_eval
11834 # Take the output of nm and produce a listing of raw symbols and C names.
11835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11837 # Transform the output of nm in a proper C declaration
11838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11840 # Transform the output of nm in a C name address pair
11841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11843 # This is the shared library runtime path variable.
11844 runpath_var=$runpath_var
11846 # This is the shared library path variable.
11847 shlibpath_var=$shlibpath_var
11849 # Is shlibpath searched before the hard-coded library search path?
11850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11852 # How to hardcode a shared library path into an executable.
11853 hardcode_action=$hardcode_action
11855 # Whether we should hardcode library paths into libraries.
11856 hardcode_into_libs=$hardcode_into_libs
11858 # Flag to hardcode \$libdir into a binary during linking.
11859 # This must work even if \$libdir does not exist.
11860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11862 # If ld is used when linking, flag to hardcode \$libdir into
11863 # a binary during linking. This must work even if \$libdir does
11865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11867 # Whether we need a single -rpath flag with a separated argument.
11868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11871 # resulting binary.
11872 hardcode_direct=$hardcode_direct
11874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11875 # resulting binary.
11876 hardcode_minus_L=$hardcode_minus_L
11878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11879 # the resulting binary.
11880 hardcode_shlibpath_var=$hardcode_shlibpath_var
11882 # Set to yes if building a shared library automatically hardcodes DIR into the library
11883 # and all subsequent libraries and executables linked against it.
11884 hardcode_automatic=$hardcode_automatic
11886 # Variables whose values should be saved in libtool wrapper scripts and
11887 # restored at relink time.
11888 variables_saved_for_relink="$variables_saved_for_relink"
11890 # Whether libtool must link a program against all its dependency libraries.
11891 link_all_deplibs=$link_all_deplibs
11893 # Compile-time system search path for libraries
11894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11896 # Run-time system search path for libraries
11897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11899 # Fix the shell variable \$srcfile for the compiler.
11900 fix_srcfile_path="$fix_srcfile_path"
11902 # Set to yes if exported symbols are required.
11903 always_export_symbols=$always_export_symbols
11905 # The commands to list exported symbols.
11906 export_symbols_cmds=$lt_export_symbols_cmds
11908 # The commands to extract the exported symbol list from a shared archive.
11909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11911 # Symbols that should not be listed in the preloaded symbols.
11912 exclude_expsyms=$lt_exclude_expsyms
11914 # Symbols that must always be exported.
11915 include_expsyms=$lt_include_expsyms
11917 # ### END LIBTOOL CONFIG
11924 cat <<\EOF >> "$cfgfile"
11926 # AIX sometimes has problems with the GCC collect2 program. For some
11927 # reason, if we set the COLLECT_NAMES environment variable, the problems
11928 # vanish in a puff of smoke.
11929 if test "X${COLLECT_NAMES+set}" != Xset; then
11931 export COLLECT_NAMES
11937 # We use sed instead of cat because bash on DJGPP gets confused if
11938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11939 # text mode, it properly converts lines to CR/LF. This bash problem
11940 # is reportedly fixed, but why not run on old versions too?
11941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11943 mv -f "$cfgfile" "$ofile" || \
11944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11948 # If there is no Makefile yet, we rely on a make rule to execute
11949 # `config.status --recheck' to rerun these tests and create the
11950 # libtool script then.
11951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11952 if test -f "$ltmain_in"; then
11953 test -f Makefile && make "$ltmain"
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967 # Check whether --with-tags was given.
11968 if test "${with_tags+set}" = set; then
11969 withval=$with_tags; tagnames="$withval"
11973 if test -f "$ltmain" && test -n "$tagnames"; then
11974 if test ! -f "${ofile}"; then
11975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11979 if test -z "$LTCC"; then
11980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11981 if test -z "$LTCC"; then
11982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11989 if test -z "$LTCFLAGS"; then
11990 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11993 # Extract list of available tagged configurations in $ofile.
11994 # Note that this assumes the entire list is on one line.
11995 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998 for tagname in $tagnames; do
12000 # Check whether tagname contains only valid characters
12001 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12003 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12005 { (exit 1); exit 1; }; }
12009 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12011 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12013 { (exit 1); exit 1; }; }
12016 # Update the list of available tags.
12017 if test -n "$tagname"; then
12018 echo appending configuration tag \"$tagname\" to $ofile
12022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12024 (test "X$CXX" != "Xg++"))) ; then
12032 if test -n "$F77" && test "X$F77" != "Xno"; then
12040 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12050 # Source file extension for RC test sources.
12053 # Object file extension for compiled RC test sources.
12057 # Code to be used in simple compile tests
12058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12060 # Code to be used in simple link tests
12061 lt_simple_link_test_code="$lt_simple_compile_test_code"
12063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12065 # If no C compiler was specified, use CC.
12068 # If no C compiler flags were specified, use CFLAGS.
12069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12071 # Allow CC to be a program name with arguments.
12075 # save warnings/boilerplate of simple test code
12076 ac_outfile=conftest.$ac_objext
12077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12079 _lt_compiler_boilerplate=`cat conftest.err`
12082 ac_outfile=conftest.$ac_objext
12083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12085 _lt_linker_boilerplate=`cat conftest.err`
12089 # Allow CC to be a program name with arguments.
12094 for cc_temp in $compiler""; do
12096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12104 lt_cv_prog_compiler_c_o_RC=yes
12106 # The else clause should only fire when bootstrapping the
12107 # libtool distribution, otherwise you forgot to ship ltmain.sh
12108 # with your package, and you will get complaints that there are
12109 # no rules to generate ltmain.sh.
12110 if test -f "$ltmain"; then
12111 # See if we are running on zsh, and set the options which allow our commands through
12112 # without removal of \ escapes.
12113 if test -n "${ZSH_VERSION+set}" ; then
12114 setopt NO_GLOB_SUBST
12116 # Now quote all the things that may contain metacharacters while being
12117 # careful not to overquote the AC_SUBSTed values. We take copies of the
12118 # variables and quote the copies for generation of the libtool script.
12119 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12123 deplibs_check_method reload_flag reload_cmds need_locks \
12124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12125 lt_cv_sys_global_symbol_to_c_name_address \
12126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12127 old_postinstall_cmds old_postuninstall_cmds \
12131 lt_prog_compiler_wl_RC \
12132 lt_prog_compiler_pic_RC \
12133 lt_prog_compiler_static_RC \
12134 lt_prog_compiler_no_builtin_flag_RC \
12135 export_dynamic_flag_spec_RC \
12136 thread_safe_flag_spec_RC \
12137 whole_archive_flag_spec_RC \
12138 enable_shared_with_static_runtimes_RC \
12139 old_archive_cmds_RC \
12140 old_archive_from_new_cmds_RC \
12141 predep_objects_RC \
12142 postdep_objects_RC \
12145 compiler_lib_search_path_RC \
12147 archive_expsym_cmds_RC \
12148 postinstall_cmds_RC \
12149 postuninstall_cmds_RC \
12150 old_archive_from_expsyms_cmds_RC \
12151 allow_undefined_flag_RC \
12152 no_undefined_flag_RC \
12153 export_symbols_cmds_RC \
12154 hardcode_libdir_flag_spec_RC \
12155 hardcode_libdir_flag_spec_ld_RC \
12156 hardcode_libdir_separator_RC \
12157 hardcode_automatic_RC \
12159 module_expsym_cmds_RC \
12160 lt_cv_prog_compiler_c_o_RC \
12161 exclude_expsyms_RC \
12162 include_expsyms_RC; do
12165 old_archive_cmds_RC | \
12166 old_archive_from_new_cmds_RC | \
12167 archive_cmds_RC | \
12168 archive_expsym_cmds_RC | \
12170 module_expsym_cmds_RC | \
12171 old_archive_from_expsyms_cmds_RC | \
12172 export_symbols_cmds_RC | \
12173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12174 postinstall_cmds | postuninstall_cmds | \
12175 old_postinstall_cmds | old_postuninstall_cmds | \
12176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12177 # Double-quote double-evaled strings.
12178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12187 *'\$0 --fallback-echo"')
12188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12194 cat <<__EOF__ >> "$cfgfile"
12195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12199 # Shell to use when invoking shell scripts.
12202 # Whether or not to build shared libraries.
12203 build_libtool_libs=$enable_shared
12205 # Whether or not to build static libraries.
12206 build_old_libs=$enable_static
12208 # Whether or not to add -lc for building shared libraries.
12209 build_libtool_need_lc=$archive_cmds_need_lc_RC
12211 # Whether or not to disallow shared libs when runtime libs are static
12212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12214 # Whether or not to optimize for fast installation.
12215 fast_install=$enable_fast_install
12218 host_alias=$host_alias
12222 # The build system.
12223 build_alias=$build_alias
12227 # An echo program that does not interpret backslashes.
12232 AR_FLAGS=$lt_AR_FLAGS
12237 # LTCC compiler flags.
12238 LTCFLAGS=$lt_LTCFLAGS
12240 # A language-specific compiler.
12243 # Is the compiler the GNU C compiler?
12249 # The linker used to build libraries.
12252 # Whether we need hard or soft links.
12255 # A BSD-compatible nm program.
12258 # A symbol stripping program
12261 # Used to examine libraries when file_magic_cmd begins "file"
12262 MAGIC_CMD=$MAGIC_CMD
12264 # Used on cygwin: DLL creation program.
12267 # Used on cygwin: object dumper.
12270 # Used on cygwin: assembler.
12273 # The name of the directory that contains temporary libtool files.
12276 # How to create reloadable object files.
12277 reload_flag=$lt_reload_flag
12278 reload_cmds=$lt_reload_cmds
12280 # How to pass a linker flag through the compiler.
12281 wl=$lt_lt_prog_compiler_wl_RC
12283 # Object file suffix (normally "o").
12284 objext="$ac_objext"
12286 # Old archive suffix (normally "a").
12289 # Shared library suffix (normally ".so").
12290 shrext_cmds='$shrext_cmds'
12292 # Executable file suffix (normally "").
12295 # Additional compiler flags for building library objects.
12296 pic_flag=$lt_lt_prog_compiler_pic_RC
12299 # What is the maximum length of a command?
12300 max_cmd_len=$lt_cv_sys_max_cmd_len
12302 # Does compiler simultaneously support -c and -o options?
12303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12305 # Must we lock files when doing compilation?
12306 need_locks=$lt_need_locks
12308 # Do we need the lib prefix for modules?
12309 need_lib_prefix=$need_lib_prefix
12311 # Do we need a version for libraries?
12312 need_version=$need_version
12314 # Whether dlopen is supported.
12315 dlopen_support=$enable_dlopen
12317 # Whether dlopen of programs is supported.
12318 dlopen_self=$enable_dlopen_self
12320 # Whether dlopen of statically linked programs is supported.
12321 dlopen_self_static=$enable_dlopen_self_static
12323 # Compiler flag to prevent dynamic linking.
12324 link_static_flag=$lt_lt_prog_compiler_static_RC
12326 # Compiler flag to turn off builtin functions.
12327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12329 # Compiler flag to allow reflexive dlopens.
12330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12332 # Compiler flag to generate shared objects directly from archives.
12333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12335 # Compiler flag to generate thread-safe objects.
12336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12338 # Library versioning type.
12339 version_type=$version_type
12341 # Format of library name prefix.
12342 libname_spec=$lt_libname_spec
12344 # List of archive names. First name is the real one, the rest are links.
12345 # The last name is the one that the linker finds with -lNAME.
12346 library_names_spec=$lt_library_names_spec
12348 # The coded name of the library, if different from the real name.
12349 soname_spec=$lt_soname_spec
12351 # Commands used to build and install an old-style archive.
12353 old_archive_cmds=$lt_old_archive_cmds_RC
12354 old_postinstall_cmds=$lt_old_postinstall_cmds
12355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12357 # Create an old-style archive from a shared archive.
12358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12360 # Create a temporary old-style archive to link instead of a shared archive.
12361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12363 # Commands used to build and install a shared archive.
12364 archive_cmds=$lt_archive_cmds_RC
12365 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12366 postinstall_cmds=$lt_postinstall_cmds
12367 postuninstall_cmds=$lt_postuninstall_cmds
12369 # Commands used to build a loadable module (assumed same as above if empty)
12370 module_cmds=$lt_module_cmds_RC
12371 module_expsym_cmds=$lt_module_expsym_cmds_RC
12373 # Commands to strip libraries.
12374 old_striplib=$lt_old_striplib
12375 striplib=$lt_striplib
12377 # Dependencies to place before the objects being linked to create a
12379 predep_objects=$lt_predep_objects_RC
12381 # Dependencies to place after the objects being linked to create a
12383 postdep_objects=$lt_postdep_objects_RC
12385 # Dependencies to place before the objects being linked to create a
12387 predeps=$lt_predeps_RC
12389 # Dependencies to place after the objects being linked to create a
12391 postdeps=$lt_postdeps_RC
12393 # The library search path used internally by the compiler when linking
12394 # a shared library.
12395 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12397 # Method to check whether dependent libraries are shared objects.
12398 deplibs_check_method=$lt_deplibs_check_method
12400 # Command to use when deplibs_check_method == file_magic.
12401 file_magic_cmd=$lt_file_magic_cmd
12403 # Flag that allows shared libraries with undefined symbols to be built.
12404 allow_undefined_flag=$lt_allow_undefined_flag_RC
12406 # Flag that forces no undefined symbols.
12407 no_undefined_flag=$lt_no_undefined_flag_RC
12409 # Commands used to finish a libtool library installation in a directory.
12410 finish_cmds=$lt_finish_cmds
12412 # Same as above, but a single script fragment to be evaled but not shown.
12413 finish_eval=$lt_finish_eval
12415 # Take the output of nm and produce a listing of raw symbols and C names.
12416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12418 # Transform the output of nm in a proper C declaration
12419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12421 # Transform the output of nm in a C name address pair
12422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12424 # This is the shared library runtime path variable.
12425 runpath_var=$runpath_var
12427 # This is the shared library path variable.
12428 shlibpath_var=$shlibpath_var
12430 # Is shlibpath searched before the hard-coded library search path?
12431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12433 # How to hardcode a shared library path into an executable.
12434 hardcode_action=$hardcode_action_RC
12436 # Whether we should hardcode library paths into libraries.
12437 hardcode_into_libs=$hardcode_into_libs
12439 # Flag to hardcode \$libdir into a binary during linking.
12440 # This must work even if \$libdir does not exist.
12441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12443 # If ld is used when linking, flag to hardcode \$libdir into
12444 # a binary during linking. This must work even if \$libdir does
12446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12448 # Whether we need a single -rpath flag with a separated argument.
12449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12452 # resulting binary.
12453 hardcode_direct=$hardcode_direct_RC
12455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12456 # resulting binary.
12457 hardcode_minus_L=$hardcode_minus_L_RC
12459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12460 # the resulting binary.
12461 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12463 # Set to yes if building a shared library automatically hardcodes DIR into the library
12464 # and all subsequent libraries and executables linked against it.
12465 hardcode_automatic=$hardcode_automatic_RC
12467 # Variables whose values should be saved in libtool wrapper scripts and
12468 # restored at relink time.
12469 variables_saved_for_relink="$variables_saved_for_relink"
12471 # Whether libtool must link a program against all its dependency libraries.
12472 link_all_deplibs=$link_all_deplibs_RC
12474 # Compile-time system search path for libraries
12475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12477 # Run-time system search path for libraries
12478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12480 # Fix the shell variable \$srcfile for the compiler.
12481 fix_srcfile_path="$fix_srcfile_path_RC"
12483 # Set to yes if exported symbols are required.
12484 always_export_symbols=$always_export_symbols_RC
12486 # The commands to list exported symbols.
12487 export_symbols_cmds=$lt_export_symbols_cmds_RC
12489 # The commands to extract the exported symbol list from a shared archive.
12490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12492 # Symbols that should not be listed in the preloaded symbols.
12493 exclude_expsyms=$lt_exclude_expsyms_RC
12495 # Symbols that must always be exported.
12496 include_expsyms=$lt_include_expsyms_RC
12498 # ### END LIBTOOL TAG CONFIG: $tagname
12504 # If there is no Makefile yet, we rely on a make rule to execute
12505 # `config.status --recheck' to rerun these tests and create the
12506 # libtool script then.
12507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12508 if test -f "$ltmain_in"; then
12509 test -f Makefile && make "$ltmain"
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12526 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12527 { (exit 1); exit 1; }; }
12531 # Append the new tag name to the list of available tags.
12532 if test -n "$tagname" ; then
12533 available_tags="$available_tags $tagname"
12539 # Now substitute the updated list of available tags.
12540 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12541 mv "${ofile}T" "$ofile"
12545 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12546 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12547 { (exit 1); exit 1; }; }
12553 # This can be used to rebuild libtool when needed
12554 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12556 # Always use our own libtool.
12557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12559 # Prevent multiple expansion
12571 if test $ol_enable_perl != no ; then
12572 # Extract the first word of "perl", so it can be a program name with args.
12573 set dummy perl; ac_word=$2
12574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12576 if test "${ac_cv_path_PERLBIN+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12599 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12603 PERLBIN=$ac_cv_path_PERLBIN
12604 if test -n "$PERLBIN"; then
12605 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12606 echo "${ECHO_T}$PERLBIN" >&6; }
12608 { echo "$as_me:$LINENO: result: no" >&5
12609 echo "${ECHO_T}no" >&6; }
12614 if test "no$PERLBIN" = "no" ; then
12615 if test $ol_enable_perl = yes ; then
12616 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12617 echo "$as_me: error: could not locate perl" >&2;}
12618 { (exit 1); exit 1; }; }
12622 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12623 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12625 if test x"$ol_enable_perl" = "xyes" ; then
12626 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12628 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12641 # On Suns, sometimes $CPP names a directory.
12642 if test -n "$CPP" && test -d "$CPP"; then
12645 if test -z "$CPP"; then
12646 if test "${ac_cv_prog_CPP+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 # Double quotes because CPP needs to be expanded
12650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12652 ac_preproc_ok=false
12653 for ac_c_preproc_warn_flag in '' yes
12655 # Use a header file that comes with gcc, so configuring glibc
12656 # with a fresh cross-compiler works.
12657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658 # <limits.h> exists even on freestanding compilers.
12659 # On the NeXT, cc -E runs the code through the compiler's parser,
12660 # not just through cpp. "Syntax error" is here to catch this case.
12661 cat >conftest.$ac_ext <<_ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12668 # include <limits.h>
12670 # include <assert.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
12695 # Broken: fails on valid input.
12699 rm -f conftest.err conftest.$ac_ext
12701 # OK, works on sane cases. Now check whether nonexistent headers
12702 # can be detected and how.
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <ac_nonexistent.h>
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } >/dev/null && {
12724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12727 # Broken: success on invalid input.
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 # Passes both tests.
12738 rm -f conftest.err conftest.$ac_ext
12741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12742 rm -f conftest.err conftest.$ac_ext
12743 if $ac_preproc_ok; then
12748 ac_cv_prog_CPP=$CPP
12751 CPP=$ac_cv_prog_CPP
12753 ac_cv_prog_CPP=$CPP
12755 { echo "$as_me:$LINENO: result: $CPP" >&5
12756 echo "${ECHO_T}$CPP" >&6; }
12757 ac_preproc_ok=false
12758 for ac_c_preproc_warn_flag in '' yes
12760 # Use a header file that comes with gcc, so configuring glibc
12761 # with a fresh cross-compiler works.
12762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763 # <limits.h> exists even on freestanding compilers.
12764 # On the NeXT, cc -E runs the code through the compiler's parser,
12765 # not just through cpp. "Syntax error" is here to catch this case.
12766 cat >conftest.$ac_ext <<_ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12773 # include <limits.h>
12775 # include <assert.h>
12779 if { (ac_try="$ac_cpp conftest.$ac_ext"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } >/dev/null && {
12792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 # Broken: fails on valid input.
12804 rm -f conftest.err conftest.$ac_ext
12806 # OK, works on sane cases. Now check whether nonexistent headers
12807 # can be detected and how.
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <ac_nonexistent.h>
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } >/dev/null && {
12829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12832 # Broken: success on invalid input.
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 # Passes both tests.
12843 rm -f conftest.err conftest.$ac_ext
12846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12847 rm -f conftest.err conftest.$ac_ext
12848 if $ac_preproc_ok; then
12851 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12852 See \`config.log' for more details." >&5
12853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12854 See \`config.log' for more details." >&2;}
12855 { (exit 1); exit 1; }; }
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12865 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12866 if test "${ol_cv_msvc+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12877 #include <__FOO__/generate_error.h>
12881 if { (ac_try="$ac_cpp conftest.$ac_ext"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } >/dev/null && {
12894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12895 test ! -s conftest.err
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12905 rm -f conftest.err conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12908 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12911 *mingw32* ) ac_cv_mingw32=yes ;;
12912 *cygwin* ) ac_cv_cygwin=yes ;;
12913 *interix* ) ac_cv_interix=yes ;;
12919 cat >>confdefs.h <<_ACEOF
12920 #define EXEEXT "${EXEEXT}"
12924 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12925 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12926 if test "${ac_cv_lib_be_be_app+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lbe -lroot -lnet $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest$ac_exeext &&
12970 $as_test_x conftest$ac_exeext; then
12971 ac_cv_lib_be_be_app=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_cv_lib_be_be_app=no
12979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12980 conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12983 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12984 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12985 if test $ac_cv_lib_be_be_app = yes; then
12986 LIBS="$LIBS -lbe -lroot -lnet"
12993 ac_cpp='$CPP $CPPFLAGS'
12994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 if test -n "$ac_tool_prefix"; then
12998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_prog_CC+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 if test -n "$CC"; then
13006 ac_cv_prog_CC="$CC" # Let the user override the test.
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 if test -n "$CC"; then
13027 { echo "$as_me:$LINENO: result: $CC" >&5
13028 echo "${ECHO_T}$CC" >&6; }
13030 { echo "$as_me:$LINENO: result: no" >&5
13031 echo "${ECHO_T}no" >&6; }
13036 if test -z "$ac_cv_prog_CC"; then
13038 # Extract the first word of "gcc", so it can be a program name with args.
13039 set dummy gcc; ac_word=$2
13040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 if test -n "$ac_ct_CC"; then
13046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055 ac_cv_prog_ac_ct_CC="gcc"
13056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13066 if test -n "$ac_ct_CC"; then
13067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13068 echo "${ECHO_T}$ac_ct_CC" >&6; }
13070 { echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6; }
13074 if test "x$ac_ct_CC" = x; then
13077 case $cross_compiling:$ac_tool_warned in
13079 { echo "$as_me:$LINENO: 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." >&5
13082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13083 whose name does not start with the host triplet. If you think this
13084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13085 ac_tool_warned=yes ;;
13090 CC="$ac_cv_prog_CC"
13093 if test -z "$CC"; then
13094 if test -n "$ac_tool_prefix"; then
13095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13096 set dummy ${ac_tool_prefix}cc; ac_word=$2
13097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13099 if test "${ac_cv_prog_CC+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 if test -n "$CC"; then
13103 ac_cv_prog_CC="$CC" # Let the user override the test.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_CC="${ac_tool_prefix}cc"
13113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 if test -n "$CC"; then
13124 { echo "$as_me:$LINENO: result: $CC" >&5
13125 echo "${ECHO_T}$CC" >&6; }
13127 { echo "$as_me:$LINENO: result: no" >&5
13128 echo "${ECHO_T}no" >&6; }
13134 if test -z "$CC"; then
13135 # Extract the first word of "cc", so it can be a program name with args.
13136 set dummy cc; ac_word=$2
13137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13139 if test "${ac_cv_prog_CC+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 if test -n "$CC"; then
13143 ac_cv_prog_CC="$CC" # Let the user override the test.
13145 ac_prog_rejected=no
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13154 ac_prog_rejected=yes
13158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 if test $ac_prog_rejected = yes; then
13166 # We found a bogon in the path, so make sure we never use it.
13167 set dummy $ac_cv_prog_CC
13169 if test $# != 0; then
13170 # We chose a different compiler from the bogus one.
13171 # However, it has the same basename, so the bogon will be chosen
13172 # first if we set CC to just the basename; use the full file name.
13174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13180 if test -n "$CC"; then
13181 { echo "$as_me:$LINENO: result: $CC" >&5
13182 echo "${ECHO_T}$CC" >&6; }
13184 { echo "$as_me:$LINENO: result: no" >&5
13185 echo "${ECHO_T}no" >&6; }
13190 if test -z "$CC"; then
13191 if test -n "$ac_tool_prefix"; then
13192 for ac_prog in cl.exe
13194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_prog_CC+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 if test -n "$CC"; then
13202 ac_cv_prog_CC="$CC" # Let the user override the test.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 if test -n "$CC"; then
13223 { echo "$as_me:$LINENO: result: $CC" >&5
13224 echo "${ECHO_T}$CC" >&6; }
13226 { echo "$as_me:$LINENO: result: no" >&5
13227 echo "${ECHO_T}no" >&6; }
13231 test -n "$CC" && break
13234 if test -z "$CC"; then
13236 for ac_prog in cl.exe
13238 # Extract the first word of "$ac_prog", so it can be a program name with args.
13239 set dummy $ac_prog; ac_word=$2
13240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 if test -n "$ac_ct_CC"; then
13246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255 ac_cv_prog_ac_ct_CC="$ac_prog"
13256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13266 if test -n "$ac_ct_CC"; then
13267 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13268 echo "${ECHO_T}$ac_ct_CC" >&6; }
13270 { echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6; }
13275 test -n "$ac_ct_CC" && break
13278 if test "x$ac_ct_CC" = x; then
13281 case $cross_compiling:$ac_tool_warned in
13283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13284 whose name does not start with the host triplet. If you think this
13285 configuration is useful to you, please write to autoconf@gnu.org." >&5
13286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13287 whose name does not start with the host triplet. If you think this
13288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13289 ac_tool_warned=yes ;;
13298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: no acceptable C compiler found in \$PATH
13301 See \`config.log' for more details." >&2;}
13302 { (exit 1); exit 1; }; }
13304 # Provide some information about the compiler.
13305 echo "$as_me:$LINENO: checking for C compiler version" >&5
13306 ac_compiler=`set X $ac_compile; echo $2`
13307 { (ac_try="$ac_compiler --version >&5"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compiler --version >&5") 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }
13317 { (ac_try="$ac_compiler -v >&5"
13318 case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_compiler -v >&5") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }
13327 { (ac_try="$ac_compiler -V >&5"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compiler -V >&5") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }
13338 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13378 ac_compiler_gnu=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13390 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13392 GCC=`test $ac_compiler_gnu = yes && echo yes`
13393 ac_test_CFLAGS=${CFLAGS+set}
13394 ac_save_CFLAGS=$CFLAGS
13395 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13397 if test "${ac_cv_prog_cc_g+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 ac_save_c_werror_flag=$ac_c_werror_flag
13401 ac_c_werror_flag=yes
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_compile") 2>conftest.er1
13428 grep -v '^ *+' conftest.er1 >conftest.err
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } && {
13433 test -z "$ac_c_werror_flag" ||
13434 test ! -s conftest.err
13435 } && test -s conftest.$ac_objext; then
13436 ac_cv_prog_cc_g=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } && {
13471 test -z "$ac_c_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest.$ac_objext; then
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_c_werror_flag=$ac_save_c_werror_flag
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13496 rm -f conftest.$ac_objext
13497 if { (ac_try="$ac_compile"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_compile") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && {
13510 test -z "$ac_c_werror_flag" ||
13511 test ! -s conftest.err
13512 } && test -s conftest.$ac_objext; then
13513 ac_cv_prog_cc_g=yes
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 ac_c_werror_flag=$ac_save_c_werror_flag
13530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13532 if test "$ac_test_CFLAGS" = set; then
13533 CFLAGS=$ac_save_CFLAGS
13534 elif test $ac_cv_prog_cc_g = yes; then
13535 if test "$GCC" = yes; then
13541 if test "$GCC" = yes; then
13547 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13548 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13549 if test "${ac_cv_prog_cc_c89+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_cv_prog_cc_c89=no
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <stdarg.h>
13562 #include <sys/types.h>
13563 #include <sys/stat.h>
13564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13565 struct buf { int x; };
13566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13567 static char *e (p, i)
13573 static char *f (char * (*g) (char **, int), char **p, ...)
13578 s = g (p, va_arg (v,int));
13583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13584 function prototypes and stuff, but not '\xHH' hex character constants.
13585 These don't provoke an error unfortunately, instead are silently treated
13586 as 'x'. The following induces an error, until -std is added to get
13587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13588 array size at least. It's necessary to write '\x00'==0 to get something
13589 that's true only with -std. */
13590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13593 inside strings and character constants. */
13595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13597 int test (int i, double x);
13598 struct s1 {int (*f) (int a);};
13599 struct s2 {int (*f) (double a);};
13600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13614 CC="$ac_save_CC $ac_arg"
13615 rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_compile") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest.$ac_objext; then
13632 ac_cv_prog_cc_c89=$ac_arg
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13640 rm -f core conftest.err conftest.$ac_objext
13641 test "x$ac_cv_prog_cc_c89" != "xno" && break
13643 rm -f conftest.$ac_ext
13648 case "x$ac_cv_prog_cc_c89" in
13650 { echo "$as_me:$LINENO: result: none needed" >&5
13651 echo "${ECHO_T}none needed" >&6; } ;;
13653 { echo "$as_me:$LINENO: result: unsupported" >&5
13654 echo "${ECHO_T}unsupported" >&6; } ;;
13656 CC="$CC $ac_cv_prog_cc_c89"
13657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13658 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13668 depcc="$CC" am_compiler_list=
13670 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13671 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13672 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13676 # We make a subdir and do the tests there. Otherwise we can end up
13677 # making bogus files that we don't know about and never remove. For
13678 # instance it was reported that on HP-UX the gcc test will end up
13679 # making a dummy file named `D' -- because `-MD' means `put the output
13682 # Copy depcomp to subdir because otherwise we won't find it if we're
13683 # using a relative directory.
13684 cp "$am_depcomp" conftest.dir
13686 # We will build objects and dependencies in a subdirectory because
13687 # it helps to detect inapplicable dependency modes. For instance
13688 # both Tru64's cc and ICC support -MD to output dependencies as a
13689 # side effect of compilation, but ICC will put the dependencies in
13690 # the current directory while Tru64 will put them in the object
13694 am_cv_CC_dependencies_compiler_type=none
13695 if test "$am_compiler_list" = ""; then
13696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13698 for depmode in $am_compiler_list; do
13699 # Setup a source with many dependencies, because some compilers
13700 # like to wrap large dependency lists on column 80 (with \), and
13701 # we should not choose a depcomp mode which is confused by this.
13703 # We need to recreate these files for each test, as the compiler may
13704 # overwrite some of them when testing with obscure command lines.
13705 # This happens at least with the AIX C compiler.
13707 for i in 1 2 3 4 5 6; do
13708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13709 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13710 # Solaris 8's {/usr,}/bin/sh.
13711 touch sub/conftst$i.h
13713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13717 # after this tag, mechanisms are not by side-effect, so they'll
13718 # only be used when explicitly requested
13719 if test "x$enable_dependency_tracking" = xyes; then
13727 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13728 # mode. It turns out that the SunPro C++ compiler does not properly
13729 # handle `-M -o', and we need to detect this.
13730 if depmode=$depmode \
13731 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13733 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13734 >/dev/null 2>conftest.err &&
13735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13737 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13739 # icc doesn't choke on unknown options, it will just issue warnings
13740 # or remarks (even with -Werror). So we grep stderr for any message
13741 # that says an option was ignored or not supported.
13742 # When given -MP, icc 7.0 and 7.1 complain thusly:
13743 # icc: Command line warning: ignoring option '-M'; no argument required
13744 # The diagnosis changed in icc 8.0:
13745 # icc: Command line remark: option '-MP' not supported
13746 if (grep 'ignoring option' conftest.err ||
13747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13748 am_cv_CC_dependencies_compiler_type=$depmode
13755 rm -rf conftest.dir
13757 am_cv_CC_dependencies_compiler_type=none
13761 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13762 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13766 test "x$enable_dependency_tracking" != xno \
13767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13768 am__fastdepCC_TRUE=
13769 am__fastdepCC_FALSE='#'
13771 am__fastdepCC_TRUE='#'
13772 am__fastdepCC_FALSE=
13776 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13777 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13778 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13779 { (exit 1); exit 1; }; }
13782 # test for make depend flag
13785 if test -z "${MKDEP}"; then
13786 OL_MKDEP="${CC-cc}"
13787 if test -z "${MKDEP_FLAGS}"; then
13788 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13789 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13790 if test "${ol_cv_mkdep+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 for flag in "-M" "-xM"; do
13796 cat > conftest.c <<EOF
13799 if { ac_try='$OL_MKDEP $flag conftest.c'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } \
13805 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13807 if test ! -f conftest."${ac_object}" ; then
13809 OL_MKDEP_FLAGS="$flag"
13817 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13818 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13819 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13822 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13826 OL_MKDEP="${MKDEP}"
13827 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13832 if test "${ol_cv_mkdep}" = no ; then
13833 # this will soon become an error
13834 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13835 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13838 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13839 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13840 if test "${ac_cv_lib_s_afopen+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 ac_check_lib_save_LIBS=$LIBS
13845 cat >conftest.$ac_ext <<_ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13852 /* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_link") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest$ac_exeext &&
13884 $as_test_x conftest$ac_exeext; then
13885 ac_cv_lib_s_afopen=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_lib_s_afopen=no
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894 conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13897 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13899 if test $ac_cv_lib_s_afopen = yes; then
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_AIX_SECURITY 1
13913 ac_cv_func_getopt=no
13915 cat >>confdefs.h <<\_ACEOF
13916 #define BOTH_STRINGS_H 1
13923 WITH_MODULES_ENABLED=no
13924 if test $ol_enable_modules != no ; then
13926 for ac_header in ltdl.h
13928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 ac_res=`eval echo '${'$as_ac_Header'}'`
13936 { echo "$as_me:$LINENO: result: $ac_res" >&5
13937 echo "${ECHO_T}$ac_res" >&6; }
13939 # Is the header compilable?
13940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 $ac_includes_default
13949 #include <$ac_header>
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_compile") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest.$ac_objext; then
13968 ac_header_compiler=yes
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_header_compiler=no
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978 echo "${ECHO_T}$ac_header_compiler" >&6; }
13980 # Is the header present?
13981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 #include <$ac_header>
13991 if { (ac_try="$ac_cpp conftest.$ac_ext"
13992 case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13999 grep -v '^ *+' conftest.er1 >conftest.err
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } >/dev/null && {
14004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14005 test ! -s conftest.err
14007 ac_header_preproc=yes
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14012 ac_header_preproc=no
14015 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6; }
14019 # So? What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14026 ac_header_preproc=yes
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14042 ## --------------------------------------------- ##
14043 ## Report this to <http://www.openldap.org/its/> ##
14044 ## --------------------------------------------- ##
14046 ) | sed "s/^/$as_me: WARNING: /" >&2
14049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 eval "$as_ac_Header=\$ac_header_preproc"
14056 ac_res=`eval echo '${'$as_ac_Header'}'`
14057 { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14062 cat >>confdefs.h <<_ACEOF
14063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14071 if test $ac_cv_header_ltdl_h = no ; then
14072 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14073 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14074 { (exit 1); exit 1; }; }
14077 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14078 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14079 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lltdl $LIBS"
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14091 /* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
14101 return lt_dlinit ();
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_link") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest$ac_exeext &&
14123 $as_test_x conftest$ac_exeext; then
14124 ac_cv_lib_ltdl_lt_dlinit=yes
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14129 ac_cv_lib_ltdl_lt_dlinit=no
14132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14136 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14137 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14138 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14140 MODULES_LIBS=-lltdl
14142 cat >>confdefs.h <<\_ACEOF
14143 #define HAVE_LIBLTDL 1
14150 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14151 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14152 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14153 { (exit 1); exit 1; }; }
14155 ol_link_modules=yes
14156 WITH_MODULES_ENABLED=yes
14159 for i in $Backends; do
14160 eval "ol_tmp=\$ol_enable_$i"
14161 if test $ol_tmp = mod ; then
14162 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14163 echo "$as_me: WARNING: building static $i backend" >&2;}
14164 eval "ol_enable_$i=yes"
14167 for i in $Overlays; do
14168 eval "ol_tmp=\$ol_enable_$i"
14169 if test $ol_tmp = mod ; then
14170 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14171 echo "$as_me: WARNING: building static $i overlay" >&2;}
14172 eval "ol_enable_$i=yes"
14178 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14179 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14180 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 cat >conftest.$ac_ext <<_ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14192 #include <__ASCII__/generate_error.h>
14196 if { (ac_try="$ac_cpp conftest.$ac_ext"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } >/dev/null && {
14209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14212 ol_cv_cpp_ebcdic=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ol_cv_cpp_ebcdic=no
14220 rm -f conftest.err conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14223 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14224 if test $ol_cv_cpp_ebcdic = yes ; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_EBCDIC 1
14232 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14234 if test "${ol_cv_header_stdc+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 #include <stdlib.h>
14244 #include <stdarg.h>
14245 #include <string.h>
14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } >/dev/null && {
14261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14264 ol_cv_header_stdc=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ol_cv_header_stdc=no
14272 rm -f conftest.err conftest.$ac_ext
14274 if test $ol_cv_header_stdc = yes; then
14275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 #include <string.h>
14285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14286 $EGREP "memchr" >/dev/null 2>&1; then
14289 ol_cv_header_stdc=no
14295 if test $ol_cv_header_stdc = yes; then
14296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <stdlib.h>
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307 $EGREP "free" >/dev/null 2>&1; then
14310 ol_cv_header_stdc=no
14316 if test $ol_cv_header_stdc = yes; then
14317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14318 if test "$cross_compiling" = yes; then
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14328 #ifndef HAVE_EBCDIC
14329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14332 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14333 || ('j' <= (c) && (c) <= 'r') \
14334 || ('s' <= (c) && (c) <= 'z'))
14335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14338 int main () { int i; for (i = 0; i < 256; i++)
14339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14343 rm -f conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_link") 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14365 echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ( exit $ac_status )
14370 ol_cv_header_stdc=no
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14379 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14380 if test $ol_cv_header_stdc = yes; then
14381 cat >>confdefs.h <<\_ACEOF
14382 #define STDC_HEADERS 1
14386 ac_cv_header_stdc=disable
14389 if test $ol_cv_header_stdc != yes; then
14390 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14391 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14399 ac_header_dirent=no
14400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14401 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/types.h>
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest.$ac_objext; then
14442 eval "$as_ac_Header=yes"
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 eval "$as_ac_Header=no"
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 ac_res=`eval echo '${'$as_ac_Header'}'`
14453 { echo "$as_me:$LINENO: result: $ac_res" >&5
14454 echo "${ECHO_T}$ac_res" >&6; }
14455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14456 cat >>confdefs.h <<_ACEOF
14457 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14460 ac_header_dirent=$ac_hdr; break
14464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14465 if test $ac_header_dirent = dirent.h; then
14466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14468 if test "${ac_cv_search_opendir+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 ac_func_search_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14479 /* Override any GCC internal prototype to avoid an error.
14480 Use char because int might match the return type of a GCC
14481 builtin and then its argument prototype would still apply. */
14494 for ac_lib in '' dir; do
14495 if test -z "$ac_lib"; then
14496 ac_res="none required"
14499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_link") 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext &&
14518 $as_test_x conftest$ac_exeext; then
14519 ac_cv_search_opendir=$ac_res
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529 if test "${ac_cv_search_opendir+set}" = set; then
14533 if test "${ac_cv_search_opendir+set}" = set; then
14536 ac_cv_search_opendir=no
14538 rm conftest.$ac_ext
14539 LIBS=$ac_func_search_save_LIBS
14541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14543 ac_res=$ac_cv_search_opendir
14544 if test "$ac_res" != no; then
14545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14552 if test "${ac_cv_search_opendir+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 ac_func_search_save_LIBS=$LIBS
14556 cat >conftest.$ac_ext <<_ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14578 for ac_lib in '' x; do
14579 if test -z "$ac_lib"; then
14580 ac_res="none required"
14583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest$ac_exeext &&
14602 $as_test_x conftest$ac_exeext; then
14603 ac_cv_search_opendir=$ac_res
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14613 if test "${ac_cv_search_opendir+set}" = set; then
14617 if test "${ac_cv_search_opendir+set}" = set; then
14620 ac_cv_search_opendir=no
14622 rm conftest.$ac_ext
14623 LIBS=$ac_func_search_save_LIBS
14625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14627 ac_res=$ac_cv_search_opendir
14628 if test "$ac_res" != no; then
14629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14635 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14636 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14637 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <sys/types.h>
14647 #include <sys/wait.h>
14648 #ifndef WEXITSTATUS
14649 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14652 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14660 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_compile") 2>conftest.er1
14674 grep -v '^ *+' conftest.er1 >conftest.err
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && {
14679 test -z "$ac_c_werror_flag" ||
14680 test ! -s conftest.err
14681 } && test -s conftest.$ac_objext; then
14682 ac_cv_header_sys_wait_h=yes
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ac_cv_header_sys_wait_h=no
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14693 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14694 if test $ac_cv_header_sys_wait_h = yes; then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_SYS_WAIT_H 1
14702 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14703 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14704 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <sys/types.h>
14714 #include <termios.h>
14720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14721 $EGREP "yes" >/dev/null 2>&1; then
14722 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14724 ac_cv_sys_tiocgwinsz_in_termios_h=no
14729 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14730 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14732 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14733 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14734 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14735 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <sys/types.h>
14745 #include <sys/ioctl.h>
14751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14752 $EGREP "yes" >/dev/null 2>&1; then
14753 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14755 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14760 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14761 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14763 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define GWINSZ_IN_SYS_IOCTL 1
14870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_res=`eval echo '${'$as_ac_Header'}'`
14878 { echo "$as_me:$LINENO: result: $ac_res" >&5
14879 echo "${ECHO_T}$ac_res" >&6; }
14881 # Is the header compilable?
14882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890 $ac_includes_default
14891 #include <$ac_header>
14893 rm -f conftest.$ac_objext
14894 if { (ac_try="$ac_compile"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_compile") 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest.$ac_objext; then
14910 ac_header_compiler=yes
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ac_header_compiler=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920 echo "${ECHO_T}$ac_header_compiler" >&6; }
14922 # Is the header present?
14923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <$ac_header>
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14941 grep -v '^ *+' conftest.er1 >conftest.err
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } >/dev/null && {
14946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14947 test ! -s conftest.err
14949 ac_header_preproc=yes
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_header_preproc=no
14957 rm -f conftest.err conftest.$ac_ext
14958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14959 echo "${ECHO_T}$ac_header_preproc" >&6; }
14961 # So? What about this header?
14962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14968 ac_header_preproc=yes
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984 ## --------------------------------------------- ##
14985 ## Report this to <http://www.openldap.org/its/> ##
14986 ## --------------------------------------------- ##
14988 ) | sed "s/^/$as_me: WARNING: /" >&2
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 eval "$as_ac_Header=\$ac_header_preproc"
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999 { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15013 if test "$ac_cv_mingw32" = yes \
15014 -o "$ac_cv_interix" = yes \
15015 -o "$ol_cv_msvc" = yes
15019 for ac_header in winsock.h winsock2.h
15021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 ac_res=`eval echo '${'$as_ac_Header'}'`
15029 { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15032 # Is the header compilable?
15033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 $ac_includes_default
15042 #include <$ac_header>
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_compile") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest.$ac_objext; then
15061 ac_header_compiler=yes
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_header_compiler=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6; }
15073 # Is the header present?
15074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <$ac_header>
15084 if { (ac_try="$ac_cpp conftest.$ac_ext"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev/null && {
15097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15100 ac_header_preproc=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_preproc=no
15108 rm -f conftest.err conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110 echo "${ECHO_T}$ac_header_preproc" >&6; }
15112 # So? What about this header?
15113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15119 ac_header_preproc=yes
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15135 ## --------------------------------------------- ##
15136 ## Report this to <http://www.openldap.org/its/> ##
15137 ## --------------------------------------------- ##
15139 ) | sed "s/^/$as_me: WARNING: /" >&2
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 eval "$as_ac_Header=\$ac_header_preproc"
15149 ac_res=`eval echo '${'$as_ac_Header'}'`
15150 { echo "$as_me:$LINENO: result: $ac_res" >&5
15151 echo "${ECHO_T}$ac_res" >&6; }
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166 for ac_header in resolv.h
15168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 $ac_includes_default
15181 #include <netinet/in.h>
15184 #include <$ac_header>
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest.$ac_objext; then
15203 eval "$as_ac_Header=yes"
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 eval "$as_ac_Header=no"
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 ac_res=`eval echo '${'$as_ac_Header'}'`
15214 { echo "$as_me:$LINENO: result: $ac_res" >&5
15215 echo "${ECHO_T}$ac_res" >&6; }
15216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15217 cat >>confdefs.h <<_ACEOF
15218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15227 for ac_header in netinet/tcp.h
15229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 $ac_includes_default
15242 #include <netinet/in.h>
15245 #include <$ac_header>
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest.$ac_objext; then
15264 eval "$as_ac_Header=yes"
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 eval "$as_ac_Header=no"
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15288 for ac_header in sys/ucred.h
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 $ac_includes_default
15303 #ifdef HAVE_SYS_PARAM_H
15304 #include <sys/param.h>
15308 #include <$ac_header>
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.$ac_objext; then
15327 eval "$as_ac_Header=yes"
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 eval "$as_ac_Header=no"
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 ac_res=`eval echo '${'$as_ac_Header'}'`
15338 { echo "$as_me:$LINENO: result: $ac_res" >&5
15339 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353 for ac_func in sigaction sigset
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15369 #define $ac_func innocuous_$ac_func
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char $ac_func (); below.
15373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374 <limits.h> exists even on freestanding compilers. */
15377 # include <limits.h>
15379 # include <assert.h>
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15391 /* The GNU C library defines this for functions which it implements
15392 to always fail with ENOSYS. Some functions are actually named
15393 something starting with __ and the normal name is an alias. */
15394 #if defined __stub_$ac_func || defined __stub___$ac_func
15401 return $ac_func ();
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_link") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest$ac_exeext &&
15423 $as_test_x conftest$ac_exeext; then
15424 eval "$as_ac_var=yes"
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 eval "$as_ac_var=no"
15432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15433 conftest$ac_exeext conftest.$ac_ext
15435 ac_res=`eval echo '${'$as_ac_var'}'`
15436 { echo "$as_me:$LINENO: result: $ac_res" >&5
15437 echo "${ECHO_T}$ac_res" >&6; }
15438 if test `eval echo '${'$as_ac_var'}'` = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15447 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15449 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15450 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15451 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 ac_check_lib_save_LIBS=$LIBS
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15463 /* Override any GCC internal prototype to avoid an error.
15464 Use char because int might match the return type of a GCC
15465 builtin and then its argument prototype would still apply. */
15478 rm -f conftest.$ac_objext conftest$ac_exeext
15479 if { (ac_try="$ac_link"
15480 case "(($ac_try" in
15481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482 *) ac_try_echo=$ac_try;;
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485 (eval "$ac_link") 2>conftest.er1
15487 grep -v '^ *+' conftest.er1 >conftest.err
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } && {
15492 test -z "$ac_c_werror_flag" ||
15493 test ! -s conftest.err
15494 } && test -s conftest$ac_exeext &&
15495 $as_test_x conftest$ac_exeext; then
15496 ac_cv_lib_V3_sigset=yes
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ac_cv_lib_V3_sigset=no
15504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15505 conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15508 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15509 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15510 if test $ac_cv_lib_V3_sigset = yes; then
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_LIBV3 1
15521 if test $ol_cv_msvc = yes ; then
15525 if test "$ac_cv_header_winsock_h" = yes; then
15526 { echo "$as_me:$LINENO: checking for winsock" >&5
15527 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15528 if test "${ol_cv_winsock+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 for curlib in none ws2_32 wsock32; do
15534 if test $curlib != none ; then
15535 LIBS="$save_LIBS -l$curlib"
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 #include <winsock.h>
15550 select(0,NULL,NULL,NULL,NULL);
15552 gethostname(NULL,0);
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 ol_cv_winsock=$curlib
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15587 test "$ol_cv_winsock" != no && break
15592 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15593 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15595 if test $ol_cv_winsock != no ; then
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_WINSOCK 1
15601 ac_cv_func_socket=yes
15602 ac_cv_func_select=yes
15603 ac_cv_func_closesocket=yes
15604 ac_cv_func_gethostname=yes
15606 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15607 LIBS="$LIBS -l$ol_cv_winsock"
15610 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_WINSOCK2 1
15621 { echo "$as_me:$LINENO: checking for socket" >&5
15622 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15623 if test "${ac_cv_func_socket+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15634 #define socket innocuous_socket
15636 /* System header to define __stub macros and hopefully few prototypes,
15637 which can conflict with char socket (); below.
15638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639 <limits.h> exists even on freestanding compilers. */
15642 # include <limits.h>
15644 # include <assert.h>
15649 /* Override any GCC internal prototype to avoid an error.
15650 Use char because int might match the return type of a GCC
15651 builtin and then its argument prototype would still apply. */
15656 /* The GNU C library defines this for functions which it implements
15657 to always fail with ENOSYS. Some functions are actually named
15658 something starting with __ and the normal name is an alias. */
15659 #if defined __stub_socket || defined __stub___socket
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_link") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest$ac_exeext &&
15688 $as_test_x conftest$ac_exeext; then
15689 ac_cv_func_socket=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_func_socket=no
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15700 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15701 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15702 if test $ac_cv_func_socket = yes; then
15707 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15708 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15709 if test "${ac_cv_lib_socket_main+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lsocket $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 ac_cv_lib_socket_main=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_socket_main=no
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15761 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15762 if test $ac_cv_lib_socket_main = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBSOCKET 1
15767 LIBS="-lsocket $LIBS"
15772 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15773 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15774 if test "${ac_cv_lib_net_main+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_check_lib_save_LIBS=$LIBS
15779 cat >conftest.$ac_ext <<_ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (ac_try="$ac_link"
15797 case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_link") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest$ac_exeext &&
15812 $as_test_x conftest$ac_exeext; then
15813 ac_cv_lib_net_main=yes
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_cv_lib_net_main=no
15821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15822 conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15825 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15826 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15827 if test $ac_cv_lib_net_main = yes; then
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_LIBNET 1
15837 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15838 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15839 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-lnsl_s $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest$ac_exeext &&
15877 $as_test_x conftest$ac_exeext; then
15878 ac_cv_lib_nsl_s_main=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_cv_lib_nsl_s_main=no
15886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15887 conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15890 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15891 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15892 if test $ac_cv_lib_nsl_s_main = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define HAVE_LIBNSL_S 1
15897 LIBS="-lnsl_s $LIBS"
15902 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15903 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15904 if test "${ac_cv_lib_nsl_main+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 ac_check_lib_save_LIBS=$LIBS
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (ac_try="$ac_link"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_link") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest$ac_exeext &&
15942 $as_test_x conftest$ac_exeext; then
15943 ac_cv_lib_nsl_main=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_cv_lib_nsl_main=no
15951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15952 conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15955 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15956 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15957 if test $ac_cv_lib_nsl_main = yes; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_LIBNSL 1
15967 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15968 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_inet_socket+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-linet $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext &&
16013 $as_test_x conftest$ac_exeext; then
16014 ac_cv_lib_inet_socket=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_cv_lib_inet_socket=no
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16026 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16027 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16028 if test $ac_cv_lib_inet_socket = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define HAVE_LIBINET 1
16033 LIBS="-linet $LIBS"
16038 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16039 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16040 if test "${ac_cv_lib_gen_main+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 ac_check_lib_save_LIBS=$LIBS
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_link") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } && {
16075 test -z "$ac_c_werror_flag" ||
16076 test ! -s conftest.err
16077 } && test -s conftest$ac_exeext &&
16078 $as_test_x conftest$ac_exeext; then
16079 ac_cv_lib_gen_main=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_lib_gen_main=no
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088 conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16093 if test $ac_cv_lib_gen_main = yes; then
16094 cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LIBGEN 1
16106 { echo "$as_me:$LINENO: checking for select" >&5
16107 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16108 if test "${ac_cv_func_select+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 /* Define select to an innocuous variant, in case <limits.h> declares select.
16118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16119 #define select innocuous_select
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char select (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16127 # include <limits.h>
16129 # include <assert.h>
16134 /* Override any GCC internal prototype to avoid an error.
16135 Use char because int might match the return type of a GCC
16136 builtin and then its argument prototype would still apply. */
16141 /* The GNU C library defines this for functions which it implements
16142 to always fail with ENOSYS. Some functions are actually named
16143 something starting with __ and the normal name is an alias. */
16144 #if defined __stub_select || defined __stub___select
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16165 grep -v '^ *+' conftest.er1 >conftest.err
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest$ac_exeext &&
16173 $as_test_x conftest$ac_exeext; then
16174 ac_cv_func_select=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_func_select=no
16182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16183 conftest$ac_exeext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16186 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16187 if test $ac_cv_func_select = yes; then
16190 { { echo "$as_me:$LINENO: error: select() required." >&5
16191 echo "$as_me: error: select() required." >&2;}
16192 { (exit 1); exit 1; }; }
16196 if test "${ac_cv_header_winsock_h}" != yes; then
16199 for ac_header in sys/select.h sys/socket.h
16201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209 { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16212 # Is the header compilable?
16213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16215 cat >conftest.$ac_ext <<_ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16221 $ac_includes_default
16222 #include <$ac_header>
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_compile") 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } && {
16238 test -z "$ac_c_werror_flag" ||
16239 test ! -s conftest.err
16240 } && test -s conftest.$ac_objext; then
16241 ac_header_compiler=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_header_compiler=no
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262 #include <$ac_header>
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null && {
16277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16280 ac_header_preproc=yes
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 ac_header_preproc=no
16288 rm -f conftest.err conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 echo "${ECHO_T}$ac_header_preproc" >&6; }
16292 # So? What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299 ac_header_preproc=yes
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16315 ## --------------------------------------------- ##
16316 ## Report this to <http://www.openldap.org/its/> ##
16317 ## --------------------------------------------- ##
16319 ) | sed "s/^/$as_me: WARNING: /" >&2
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 eval "$as_ac_Header=\$ac_header_preproc"
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335 cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16344 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16345 if test "${ac_cv_func_select_args+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16349 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16350 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16351 cat >conftest.$ac_ext <<_ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16358 #ifdef HAVE_SYS_SELECT_H
16359 # include <sys/select.h>
16361 #ifdef HAVE_SYS_SOCKET_H
16362 # include <sys/socket.h>
16368 extern int select ($ac_arg1,
16369 $ac_arg234, $ac_arg234, $ac_arg234,
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 # Provide a safe default value.
16405 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16408 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16409 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16410 ac_save_IFS=$IFS; IFS=','
16411 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16415 cat >>confdefs.h <<_ACEOF
16416 #define SELECT_TYPE_ARG1 $1
16420 cat >>confdefs.h <<_ACEOF
16421 #define SELECT_TYPE_ARG234 ($2)
16425 cat >>confdefs.h <<_ACEOF
16426 #define SELECT_TYPE_ARG5 ($3)
16435 for ac_func in poll
16437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 cat >conftest.$ac_ext <<_ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16451 #define $ac_func innocuous_$ac_func
16453 /* System header to define __stub macros and hopefully few prototypes,
16454 which can conflict with char $ac_func (); below.
16455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456 <limits.h> exists even on freestanding compilers. */
16459 # include <limits.h>
16461 # include <assert.h>
16466 /* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply. */
16473 /* The GNU C library defines this for functions which it implements
16474 to always fail with ENOSYS. Some functions are actually named
16475 something starting with __ and the normal name is an alias. */
16476 #if defined __stub_$ac_func || defined __stub___$ac_func
16483 return $ac_func ();
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_link") 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest$ac_exeext &&
16505 $as_test_x conftest$ac_exeext; then
16506 eval "$as_ac_var=yes"
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 eval "$as_ac_var=no"
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515 conftest$ac_exeext conftest.$ac_ext
16517 ac_res=`eval echo '${'$as_ac_var'}'`
16518 { echo "$as_me:$LINENO: result: $ac_res" >&5
16519 echo "${ECHO_T}$ac_res" >&6; }
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16528 if test $ac_cv_func_poll = yes; then
16531 for ac_header in poll.h sys/poll.h
16533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 ac_res=`eval echo '${'$as_ac_Header'}'`
16541 { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16544 # Is the header compilable?
16545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 $ac_includes_default
16554 #include <$ac_header>
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_compile") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest.$ac_objext; then
16573 ac_header_compiler=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_header_compiler=no
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16583 echo "${ECHO_T}$ac_header_compiler" >&6; }
16585 # Is the header present?
16586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 #include <$ac_header>
16596 if { (ac_try="$ac_cpp conftest.$ac_ext"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16604 grep -v '^ *+' conftest.er1 >conftest.err
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } >/dev/null && {
16609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16612 ac_header_preproc=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_header_preproc=no
16620 rm -f conftest.err conftest.$ac_ext
16621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16622 echo "${ECHO_T}$ac_header_preproc" >&6; }
16624 # So? What about this header?
16625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16631 ac_header_preproc=yes
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16647 ## --------------------------------------------- ##
16648 ## Report this to <http://www.openldap.org/its/> ##
16649 ## --------------------------------------------- ##
16651 ) | sed "s/^/$as_me: WARNING: /" >&2
16654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 eval "$as_ac_Header=\$ac_header_preproc"
16661 ac_res=`eval echo '${'$as_ac_Header'}'`
16662 { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16667 cat >>confdefs.h <<_ACEOF
16668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16678 for ac_header in sys/epoll.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_epoll_h}" = yes; then
16823 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16824 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16825 if test "$cross_compiling" = yes; then
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16829 cat >conftest.$ac_ext <<_ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16835 int main(int argc, char **argv)
16837 int epfd = epoll_create(256);
16838 exit (epfd == -1 ? 1 : 0);
16841 rm -f conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_link") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 { echo "$as_me:$LINENO: result: yes" >&5
16862 echo "${ECHO_T}yes" >&6; }
16864 cat >>confdefs.h <<\_ACEOF
16865 #define HAVE_EPOLL 1
16869 echo "$as_me: program exited with status $ac_status" >&5
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ( exit $ac_status )
16874 { echo "$as_me:$LINENO: result: no" >&5
16875 echo "${ECHO_T}no" >&6; }
16877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16884 for ac_header in sys/devpoll.h
16886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_res=`eval echo '${'$as_ac_Header'}'`
16894 { echo "$as_me:$LINENO: result: $ac_res" >&5
16895 echo "${ECHO_T}$ac_res" >&6; }
16897 # Is the header compilable?
16898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 #include <$ac_header>
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_compile") 2>conftest.er1
16918 grep -v '^ *+' conftest.er1 >conftest.err
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } && {
16923 test -z "$ac_c_werror_flag" ||
16924 test ! -s conftest.err
16925 } && test -s conftest.$ac_objext; then
16926 ac_header_compiler=yes
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ac_header_compiler=no
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16936 echo "${ECHO_T}$ac_header_compiler" >&6; }
16938 # Is the header present?
16939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 #include <$ac_header>
16949 if { (ac_try="$ac_cpp conftest.$ac_ext"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } >/dev/null && {
16962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16965 ac_header_preproc=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_header_preproc=no
16973 rm -f conftest.err conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16975 echo "${ECHO_T}$ac_header_preproc" >&6; }
16977 # So? What about this header?
16978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16984 ac_header_preproc=yes
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17000 ## --------------------------------------------- ##
17001 ## Report this to <http://www.openldap.org/its/> ##
17002 ## --------------------------------------------- ##
17004 ) | sed "s/^/$as_me: WARNING: /" >&2
17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 eval "$as_ac_Header=\$ac_header_preproc"
17014 ac_res=`eval echo '${'$as_ac_Header'}'`
17015 { echo "$as_me:$LINENO: result: $ac_res" >&5
17016 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17029 -a "${ac_cv_header_poll_h}" = yes ; \
17031 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17032 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17033 if test "$cross_compiling" = yes; then
17034 { echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6; }
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 int main(int argc, char **argv)
17045 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17046 exit (devpollfd == -1 ? 1 : 0);
17049 rm -f conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 { echo "$as_me:$LINENO: result: yes" >&5
17070 echo "${ECHO_T}yes" >&6; }
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_DEVPOLL 1
17077 echo "$as_me: program exited with status $ac_status" >&5
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 ( exit $ac_status )
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17091 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17092 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17093 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17105 #include <sys/types.h>
17108 #include <stdlib.h>
17113 char *c = (char *) *sys_errlist
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_compile") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest.$ac_objext; then
17135 ol_cv_dcl_sys_errlist=yes
17136 ol_cv_have_sys_errlist=yes
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ol_cv_dcl_sys_errlist=no
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17147 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17149 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17150 if test $ol_cv_dcl_sys_errlist = no ; then
17152 cat >>confdefs.h <<\_ACEOF
17153 #define DECL_SYS_ERRLIST 1
17157 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17158 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17159 if test "${ol_cv_have_sys_errlist+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17173 char *c = (char *) *sys_errlist
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest$ac_exeext &&
17195 $as_test_x conftest$ac_exeext; then
17196 ol_cv_have_sys_errlist=yes
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 ol_cv_have_sys_errlist=no
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17207 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17208 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17210 if test $ol_cv_have_sys_errlist = yes ; then
17212 cat >>confdefs.h <<\_ACEOF
17213 #define HAVE_SYS_ERRLIST 1
17219 for ac_func in strerror strerror_r
17221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17235 #define $ac_func innocuous_$ac_func
17237 /* System header to define __stub macros and hopefully few prototypes,
17238 which can conflict with char $ac_func (); below.
17239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240 <limits.h> exists even on freestanding compilers. */
17243 # include <limits.h>
17245 # include <assert.h>
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17257 /* The GNU C library defines this for functions which it implements
17258 to always fail with ENOSYS. Some functions are actually named
17259 something starting with __ and the normal name is an alias. */
17260 #if defined __stub_$ac_func || defined __stub___$ac_func
17267 return $ac_func ();
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_link") 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } && {
17286 test -z "$ac_c_werror_flag" ||
17287 test ! -s conftest.err
17288 } && test -s conftest$ac_exeext &&
17289 $as_test_x conftest$ac_exeext; then
17290 eval "$as_ac_var=yes"
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 eval "$as_ac_var=no"
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299 conftest$ac_exeext conftest.$ac_ext
17301 ac_res=`eval echo '${'$as_ac_var'}'`
17302 { echo "$as_me:$LINENO: result: $ac_res" >&5
17303 echo "${ECHO_T}$ac_res" >&6; }
17304 if test `eval echo '${'$as_ac_var'}'` = yes; then
17305 cat >>confdefs.h <<_ACEOF
17306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17312 ol_cv_func_strerror_r=no
17313 if test "${ac_cv_func_strerror_r}" = yes ; then
17314 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17315 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17316 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 #include <string.h>
17328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17329 $EGREP "strerror_r" >/dev/null 2>&1; then
17330 ol_decl_strerror_r=yes
17332 ol_decl_strerror_r=no
17336 if test $ol_decl_strerror_r = yes ; then
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 #include <string.h>
17347 /* from autoconf 2.59 */
17349 char x = *strerror_r (0, buf, sizeof buf);
17350 char *p = strerror_r (0, buf, sizeof buf);
17356 rm -f conftest.$ac_objext
17357 if { (ac_try="$ac_compile"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_compile") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest.$ac_objext; then
17373 ol_cv_nonposix_strerror_r=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ol_cv_nonposix_strerror_r=no
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17383 if test "$cross_compiling" = yes; then
17384 ol_cv_nonposix_strerror=no
17386 cat >conftest.$ac_ext <<_ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17396 strerror_r( 1, buf, sizeof buf );
17397 exit( buf[0] == 0 );
17401 rm -f conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17412 { (case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_try") 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ol_cv_nonposix_strerror_r=yes
17423 echo "$as_me: program exited with status $ac_status" >&5
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ( exit $ac_status )
17428 ol_cv_nonposix_strerror=no
17430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17437 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17438 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17439 if test $ol_cv_nonposix_strerror_r = yes ; then
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_NONPOSIX_STRERROR_R 1
17447 elif test "${ac_cv_func_strerror}" = no ; then
17448 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17449 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17450 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17462 #include <sys/types.h>
17465 #include <stdlib.h>
17470 char *c = (char *) *sys_errlist
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17492 ol_cv_dcl_sys_errlist=yes
17493 ol_cv_have_sys_errlist=yes
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ol_cv_dcl_sys_errlist=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17504 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17506 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17507 if test $ol_cv_dcl_sys_errlist = no ; then
17509 cat >>confdefs.h <<\_ACEOF
17510 #define DECL_SYS_ERRLIST 1
17514 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17515 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17516 if test "${ol_cv_have_sys_errlist+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17530 char *c = (char *) *sys_errlist
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_link") 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext &&
17552 $as_test_x conftest$ac_exeext; then
17553 ol_cv_have_sys_errlist=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ol_cv_have_sys_errlist=no
17561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17562 conftest$ac_exeext conftest.$ac_ext
17564 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17565 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17567 if test $ol_cv_have_sys_errlist = yes ; then
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_SYS_ERRLIST 1
17579 for ac_header in regex.h
17581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $ac_includes_default
17594 #ifdef HAVE_SYS_TYPES_H
17595 #include <sys/types.h>
17599 #include <$ac_header>
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_compile") 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } && {
17615 test -z "$ac_c_werror_flag" ||
17616 test ! -s conftest.err
17617 } && test -s conftest.$ac_objext; then
17618 eval "$as_ac_Header=yes"
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 eval "$as_ac_Header=no"
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 ac_res=`eval echo '${'$as_ac_Header'}'`
17629 { echo "$as_me:$LINENO: result: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17641 if test "$ac_cv_header_regex_h" != yes ; then
17642 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17643 echo "$as_me: error: POSIX regex.h required." >&2;}
17644 { (exit 1); exit 1; }; }
17646 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17647 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17648 if test "${ac_cv_search_regfree+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 ac_func_search_save_LIBS=$LIBS
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17674 for ac_lib in '' regex gnuregex; do
17675 if test -z "$ac_lib"; then
17676 ac_res="none required"
17679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17681 rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (ac_try="$ac_link"
17683 case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_link") 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } && {
17695 test -z "$ac_c_werror_flag" ||
17696 test ! -s conftest.err
17697 } && test -s conftest$ac_exeext &&
17698 $as_test_x conftest$ac_exeext; then
17699 ac_cv_search_regfree=$ac_res
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17709 if test "${ac_cv_search_regfree+set}" = set; then
17713 if test "${ac_cv_search_regfree+set}" = set; then
17716 ac_cv_search_regfree=no
17718 rm conftest.$ac_ext
17719 LIBS=$ac_func_search_save_LIBS
17721 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17722 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17723 ac_res=$ac_cv_search_regfree
17724 if test "$ac_res" != no; then
17725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17728 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17729 echo "$as_me: error: POSIX regex required." >&2;}
17730 { (exit 1); exit 1; }; }
17735 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17736 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17737 if test "${ol_cv_c_posix_regex+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 if test "$cross_compiling" = yes; then
17742 ol_cv_c_posix_regex=cross
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 #include <sys/types.h>
17753 static char *pattern, *string;
17761 if(regcomp(&re, pattern, 0)) {
17765 string = "ALL MATCH";
17767 rc = regexec(&re, string, 0, (void*)0, 0);
17774 rm -f conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_link") 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ol_cv_c_posix_regex=yes
17796 echo "$as_me: program exited with status $ac_status" >&5
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ( exit $ac_status )
17801 ol_cv_c_posix_regex=no
17803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17809 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17811 if test "$ol_cv_c_posix_regex" = no ; then
17812 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17813 echo "$as_me: error: broken POSIX regex!" >&2;}
17814 { (exit 1); exit 1; }; }
17820 for ac_header in sys/uuid.h
17822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 ac_res=`eval echo '${'$as_ac_Header'}'`
17830 { echo "$as_me:$LINENO: result: $ac_res" >&5
17831 echo "${ECHO_T}$ac_res" >&6; }
17833 # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <$ac_header>
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_compile") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest.$ac_objext; then
17862 ac_header_compiler=yes
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 ac_header_compiler=no
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17872 echo "${ECHO_T}$ac_header_compiler" >&6; }
17874 # Is the header present?
17875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 #include <$ac_header>
17885 if { (ac_try="$ac_cpp conftest.$ac_ext"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } >/dev/null && {
17898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17901 ac_header_preproc=yes
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ac_header_preproc=no
17909 rm -f conftest.err conftest.$ac_ext
17910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17911 echo "${ECHO_T}$ac_header_preproc" >&6; }
17913 # So? What about this header?
17914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17920 ac_header_preproc=yes
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17936 ## --------------------------------------------- ##
17937 ## Report this to <http://www.openldap.org/its/> ##
17938 ## --------------------------------------------- ##
17940 ) | sed "s/^/$as_me: WARNING: /" >&2
17943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 eval "$as_ac_Header=\$ac_header_preproc"
17950 ac_res=`eval echo '${'$as_ac_Header'}'`
17951 { echo "$as_me:$LINENO: result: $ac_res" >&5
17952 echo "${ECHO_T}$ac_res" >&6; }
17955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17956 cat >>confdefs.h <<_ACEOF
17957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17964 if test $ac_cv_header_sys_uuid_h = yes ; then
17966 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 ac_func_search_save_LIBS=$LIBS
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17985 char uuid_to_str ();
17989 return uuid_to_str ();
17994 for ac_lib in '' uuid; do
17995 if test -z "$ac_lib"; then
17996 ac_res="none required"
17999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest$ac_exeext &&
18018 $as_test_x conftest$ac_exeext; then
18019 ac_cv_search_uuid_to_str=$ac_res
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18029 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18033 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18036 ac_cv_search_uuid_to_str=no
18038 rm conftest.$ac_ext
18039 LIBS=$ac_func_search_save_LIBS
18041 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18042 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18043 ac_res=$ac_cv_search_uuid_to_str
18044 if test "$ac_res" != no; then
18045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18051 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18052 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18053 if test "${ac_cv_search_uuid_create+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 ac_func_search_save_LIBS=$LIBS
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18070 char uuid_create ();
18074 return uuid_create ();
18079 for ac_lib in '' uuid; do
18080 if test -z "$ac_lib"; then
18081 ac_res="none required"
18084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest$ac_exeext &&
18103 $as_test_x conftest$ac_exeext; then
18104 ac_cv_search_uuid_create=$ac_res
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18114 if test "${ac_cv_search_uuid_create+set}" = set; then
18118 if test "${ac_cv_search_uuid_create+set}" = set; then
18121 ac_cv_search_uuid_create=no
18123 rm conftest.$ac_ext
18124 LIBS=$ac_func_search_save_LIBS
18126 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18127 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18128 ac_res=$ac_cv_search_uuid_create
18129 if test "$ac_res" != no; then
18130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18138 if test $have_uuid = yes ; then
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_UUID_TO_STR 1
18145 test "$ac_cv_search_uuid_to_str" = "none required" || \
18146 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18150 if test $have_uuid = no ; then
18152 for ac_header in uuid/uuid.h
18154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 ac_res=`eval echo '${'$as_ac_Header'}'`
18162 { echo "$as_me:$LINENO: result: $ac_res" >&5
18163 echo "${ECHO_T}$ac_res" >&6; }
18165 # Is the header compilable?
18166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 $ac_includes_default
18175 #include <$ac_header>
18177 rm -f conftest.$ac_objext
18178 if { (ac_try="$ac_compile"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_compile") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest.$ac_objext; then
18194 ac_header_compiler=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_header_compiler=no
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18204 echo "${ECHO_T}$ac_header_compiler" >&6; }
18206 # Is the header present?
18207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 #include <$ac_header>
18217 if { (ac_try="$ac_cpp conftest.$ac_ext"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } >/dev/null && {
18230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18231 test ! -s conftest.err
18233 ac_header_preproc=yes
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 ac_header_preproc=no
18241 rm -f conftest.err conftest.$ac_ext
18242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18243 echo "${ECHO_T}$ac_header_preproc" >&6; }
18245 # So? What about this header?
18246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18252 ac_header_preproc=yes
18255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18268 ## --------------------------------------------- ##
18269 ## Report this to <http://www.openldap.org/its/> ##
18270 ## --------------------------------------------- ##
18272 ) | sed "s/^/$as_me: WARNING: /" >&2
18275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 eval "$as_ac_Header=\$ac_header_preproc"
18282 ac_res=`eval echo '${'$as_ac_Header'}'`
18283 { echo "$as_me:$LINENO: result: $ac_res" >&5
18284 echo "${ECHO_T}$ac_res" >&6; }
18287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18288 cat >>confdefs.h <<_ACEOF
18289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18296 if test $ac_cv_header_uuid_uuid_h = yes ; then
18298 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18299 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18300 if test "${ac_cv_search_uuid_generate+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 ac_func_search_save_LIBS=$LIBS
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18317 char uuid_generate ();
18321 return uuid_generate ();
18326 for ac_lib in '' uuid; do
18327 if test -z "$ac_lib"; then
18328 ac_res="none required"
18331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 ac_cv_search_uuid_generate=$ac_res
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18361 if test "${ac_cv_search_uuid_generate+set}" = set; then
18365 if test "${ac_cv_search_uuid_generate+set}" = set; then
18368 ac_cv_search_uuid_generate=no
18370 rm conftest.$ac_ext
18371 LIBS=$ac_func_search_save_LIBS
18373 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18374 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18375 ac_res=$ac_cv_search_uuid_generate
18376 if test "$ac_res" != no; then
18377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18383 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18384 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18385 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 ac_func_search_save_LIBS=$LIBS
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18396 /* Override any GCC internal prototype to avoid an error.
18397 Use char because int might match the return type of a GCC
18398 builtin and then its argument prototype would still apply. */
18402 char uuid_unparse_lower ();
18406 return uuid_unparse_lower ();
18411 for ac_lib in '' uuid; do
18412 if test -z "$ac_lib"; then
18413 ac_res="none required"
18416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18436 ac_cv_search_uuid_unparse_lower=$ac_res
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18450 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18453 ac_cv_search_uuid_unparse_lower=no
18455 rm conftest.$ac_ext
18456 LIBS=$ac_func_search_save_LIBS
18458 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18459 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18460 ac_res=$ac_cv_search_uuid_unparse_lower
18461 if test "$ac_res" != no; then
18462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18470 if test $have_uuid = yes ; then
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_UUID_GENERATE 1
18477 test "$ac_cv_search_uuid_generate" = "none required" || \
18478 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18483 if test $have_uuid = no ; then
18484 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18485 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18487 LIBS="$LIBS -lrpcrt4"
18488 cat >conftest.$ac_ext <<_ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18495 int __stdcall UuidCreate(void *);
18496 int __stdcall UuidToStringA(void *,void **);
18503 UuidToStringA(0,0);
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18537 if test $need_rpcrt = yes; then
18538 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18541 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18542 echo "${ECHO_T}$need_rpcrt" >&6; }
18545 ol_cv_lib_resolver=no
18546 if test $ol_cv_lib_resolver = no ; then
18547 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18548 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18549 if test "${ol_cv_resolver_none+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 LIBS="$ol_RESOLVER_LIB $LIBS"
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18564 #ifdef HAVE_SYS_TYPES_H
18565 # include <sys/types.h>
18567 #include <netinet/in.h>
18568 #ifdef HAVE_ARPA_NAMESER_H
18569 # include <arpa/nameser.h>
18571 #ifdef HAVE_RESOLV_H
18572 # include <resolv.h>
18580 char *request = NULL;
18581 unsigned char reply[64*1024];
18582 unsigned char host[64*1024];
18586 /* Bind 8/9 interface */
18587 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18589 /* Bind 4 interface */
18593 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18597 /* Bind 8/9 interface */
18599 #elif defined(HFIXEDSZ)
18600 /* Bind 4 interface w/ HFIXEDSZ */
18603 /* Bind 4 interface w/o HFIXEDSZ */
18604 p += sizeof(HEADER);
18606 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18630 ol_cv_resolver_none=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ol_cv_resolver_none=no
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18644 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18645 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18647 if test $ol_cv_resolver_none = yes ; then
18648 ol_cv_lib_resolver=yes
18652 if test $ol_cv_lib_resolver = no ; then
18653 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18654 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18655 if test "${ol_cv_resolver_resolv+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ol_RESOLVER_LIB=-lresolv
18661 LIBS="$ol_RESOLVER_LIB $LIBS"
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18670 #ifdef HAVE_SYS_TYPES_H
18671 # include <sys/types.h>
18673 #include <netinet/in.h>
18674 #ifdef HAVE_ARPA_NAMESER_H
18675 # include <arpa/nameser.h>
18677 #ifdef HAVE_RESOLV_H
18678 # include <resolv.h>
18686 char *request = NULL;
18687 unsigned char reply[64*1024];
18688 unsigned char host[64*1024];
18692 /* Bind 8/9 interface */
18693 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18695 /* Bind 4 interface */
18699 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18703 /* Bind 8/9 interface */
18705 #elif defined(HFIXEDSZ)
18706 /* Bind 4 interface w/ HFIXEDSZ */
18709 /* Bind 4 interface w/o HFIXEDSZ */
18710 p += sizeof(HEADER);
18712 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest$ac_exeext &&
18735 $as_test_x conftest$ac_exeext; then
18736 ol_cv_resolver_resolv=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ol_cv_resolver_resolv=no
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745 conftest$ac_exeext conftest.$ac_ext
18750 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18751 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18753 if test $ol_cv_resolver_resolv = yes ; then
18754 ol_cv_lib_resolver=-lresolv
18758 if test $ol_cv_lib_resolver = no ; then
18759 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18760 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18761 if test "${ol_cv_resolver_bind+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 ol_RESOLVER_LIB=-lbind
18767 LIBS="$ol_RESOLVER_LIB $LIBS"
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 #ifdef HAVE_SYS_TYPES_H
18777 # include <sys/types.h>
18779 #include <netinet/in.h>
18780 #ifdef HAVE_ARPA_NAMESER_H
18781 # include <arpa/nameser.h>
18783 #ifdef HAVE_RESOLV_H
18784 # include <resolv.h>
18792 char *request = NULL;
18793 unsigned char reply[64*1024];
18794 unsigned char host[64*1024];
18798 /* Bind 8/9 interface */
18799 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18801 /* Bind 4 interface */
18805 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18809 /* Bind 8/9 interface */
18811 #elif defined(HFIXEDSZ)
18812 /* Bind 4 interface w/ HFIXEDSZ */
18815 /* Bind 4 interface w/o HFIXEDSZ */
18816 p += sizeof(HEADER);
18818 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18824 rm -f conftest.$ac_objext conftest$ac_exeext
18825 if { (ac_try="$ac_link"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_link") 2>conftest.er1
18833 grep -v '^ *+' conftest.er1 >conftest.err
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } && {
18838 test -z "$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18840 } && test -s conftest$ac_exeext &&
18841 $as_test_x conftest$ac_exeext; then
18842 ol_cv_resolver_bind=yes
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 ol_cv_resolver_bind=no
18850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18851 conftest$ac_exeext conftest.$ac_ext
18856 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18857 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18859 if test $ol_cv_resolver_bind = yes ; then
18860 ol_cv_lib_resolver=-lbind
18867 if test "$ol_cv_lib_resolver" != no ; then
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_RES_QUERY 1
18874 if test "$ol_enable_dnssrv" != no ; then
18878 if test "$ol_cv_lib_resolver" != yes ; then
18879 LIBS="$ol_cv_lib_resolver $LIBS"
18883 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18884 if test "$ol_link_dnssrv" = no ; then
18885 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18886 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18887 { (exit 1); exit 1; }; }
18890 ol_enable_dnssrv=no
18894 for ac_func in hstrerror
18896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18910 #define $ac_func innocuous_$ac_func
18912 /* System header to define __stub macros and hopefully few prototypes,
18913 which can conflict with char $ac_func (); below.
18914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915 <limits.h> exists even on freestanding compilers. */
18918 # include <limits.h>
18920 # include <assert.h>
18925 /* Override any GCC internal prototype to avoid an error.
18926 Use char because int might match the return type of a GCC
18927 builtin and then its argument prototype would still apply. */
18932 /* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935 #if defined __stub_$ac_func || defined __stub___$ac_func
18942 return $ac_func ();
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest$ac_exeext &&
18964 $as_test_x conftest$ac_exeext; then
18965 eval "$as_ac_var=yes"
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 eval "$as_ac_var=no"
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974 conftest$ac_exeext conftest.$ac_ext
18976 ac_res=`eval echo '${'$as_ac_var'}'`
18977 { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979 if test `eval echo '${'$as_ac_var'}'` = yes; then
18980 cat >>confdefs.h <<_ACEOF
18981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18992 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19008 #define $ac_func innocuous_$ac_func
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func (); below.
19012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013 <limits.h> exists even on freestanding compilers. */
19016 # include <limits.h>
19018 # include <assert.h>
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19030 /* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033 #if defined __stub_$ac_func || defined __stub___$ac_func
19040 return $ac_func ();
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest$ac_exeext &&
19062 $as_test_x conftest$ac_exeext; then
19063 eval "$as_ac_var=yes"
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 eval "$as_ac_var=no"
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19074 ac_res=`eval echo '${'$as_ac_var'}'`
19075 { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 if test `eval echo '${'$as_ac_var'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19087 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19088 if test $ol_enable_ipv6 = yes ; then
19089 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19090 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19091 { (exit 1); exit 1; }; }
19093 elif test $ol_enable_ipv6 != no ; then
19094 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19095 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19096 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 cat >conftest.$ac_ext <<_ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19107 # include <netinet/in.h>
19108 # ifdef INET6_ADDRSTRLEN
19109 __has_inet6_addrstrlen__;
19113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19114 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19115 ol_cv_inet6_addrstrlen=yes
19117 ol_cv_inet6_addrstrlen=no
19122 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19123 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19126 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19127 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19128 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19139 #include <sys/types.h>
19140 #include <sys/socket.h>
19146 struct sockaddr_storage ss;
19152 rm -f conftest.$ac_objext
19153 if { (ac_try="$ac_compile"
19154 case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
19169 ol_cv_struct_sockaddr_storage=yes
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ol_cv_struct_sockaddr_storage=no
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19180 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19182 if test $ol_cv_inet6_addrstrlen = yes &&
19183 test $ol_cv_struct_sockaddr_storage = yes ; then
19185 elif test $ol_enable_ipv6 = yes &&
19186 test $ol_cv_inet6_addrstrlen = no ; then
19187 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19188 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19189 { (exit 1); exit 1; }; }
19190 elif test $ol_enable_ipv6 = yes &&
19191 test $ol_cv_struct_sockaddr_storage = no ; then
19192 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19193 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19194 { (exit 1); exit 1; }; }
19198 if test $ol_enable_local != no ; then
19200 for ac_header in sys/un.h
19202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 ac_res=`eval echo '${'$as_ac_Header'}'`
19210 { echo "$as_me:$LINENO: result: $ac_res" >&5
19211 echo "${ECHO_T}$ac_res" >&6; }
19213 # Is the header compilable?
19214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19223 #include <$ac_header>
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 ac_header_compiler=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 echo "${ECHO_T}$ac_header_compiler" >&6; }
19254 # Is the header present?
19255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <$ac_header>
19265 if { (ac_try="$ac_cpp conftest.$ac_ext"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } >/dev/null && {
19278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19281 ac_header_preproc=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_header_preproc=no
19289 rm -f conftest.err conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6; }
19293 # So? What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300 ac_header_preproc=yes
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19316 ## --------------------------------------------- ##
19317 ## Report this to <http://www.openldap.org/its/> ##
19318 ## --------------------------------------------- ##
19320 ) | sed "s/^/$as_me: WARNING: /" >&2
19323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 eval "$as_ac_Header=\$ac_header_preproc"
19330 ac_res=`eval echo '${'$as_ac_Header'}'`
19331 { echo "$as_me:$LINENO: result: $ac_res" >&5
19332 echo "${ECHO_T}$ac_res" >&6; }
19335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19336 cat >>confdefs.h <<_ACEOF
19337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19345 if test $ol_enable_local = auto ; then
19346 ol_enable_local=$ac_cv_header_sys_un_h
19347 elif test $ac_cv_header_sys_un_h = no ; then
19348 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19349 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19350 { (exit 1); exit 1; }; }
19355 if test $ol_with_tls = yes ; then
19360 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19362 for ac_header in openssl/ssl.h
19364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 ac_res=`eval echo '${'$as_ac_Header'}'`
19372 { echo "$as_me:$LINENO: result: $ac_res" >&5
19373 echo "${ECHO_T}$ac_res" >&6; }
19375 # Is the header compilable?
19376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 $ac_includes_default
19385 #include <$ac_header>
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_compile") 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && {
19401 test -z "$ac_c_werror_flag" ||
19402 test ! -s conftest.err
19403 } && test -s conftest.$ac_objext; then
19404 ac_header_compiler=yes
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_header_compiler=no
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19414 echo "${ECHO_T}$ac_header_compiler" >&6; }
19416 # Is the header present?
19417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 #include <$ac_header>
19427 if { (ac_try="$ac_cpp conftest.$ac_ext"
19428 case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } >/dev/null && {
19440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19441 test ! -s conftest.err
19443 ac_header_preproc=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_header_preproc=no
19451 rm -f conftest.err conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19453 echo "${ECHO_T}$ac_header_preproc" >&6; }
19455 # So? What about this header?
19456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19462 ac_header_preproc=yes
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19478 ## --------------------------------------------- ##
19479 ## Report this to <http://www.openldap.org/its/> ##
19480 ## --------------------------------------------- ##
19482 ) | sed "s/^/$as_me: WARNING: /" >&2
19485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 eval "$as_ac_Header=\$ac_header_preproc"
19492 ac_res=`eval echo '${'$as_ac_Header'}'`
19493 { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19507 if test $ac_cv_header_openssl_ssl_h = yes ; then
19508 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19509 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lssl -lcrypto $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19528 char SSL_library_init ();
19532 return SSL_library_init ();
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && {
19551 test -z "$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 } && test -s conftest$ac_exeext &&
19554 $as_test_x conftest$ac_exeext; then
19555 ac_cv_lib_ssl_SSL_library_init=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_lib_ssl_SSL_library_init=no
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19567 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19568 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19569 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19577 if test $have_openssl = no ; then
19578 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19579 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19580 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 /* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19598 char ssl3_accept ();
19602 return ssl3_accept ();
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_link") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext &&
19624 $as_test_x conftest$ac_exeext; then
19625 ac_cv_lib_ssl_ssl3_accept=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_ssl_ssl3_accept=no
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19638 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19639 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19648 if test $have_openssl = yes ; then
19649 ol_with_tls=openssl
19653 cat >>confdefs.h <<\_ACEOF
19654 #define HAVE_OPENSSL 1
19658 if test $need_rsaref = yes; then
19660 cat >>confdefs.h <<\_ACEOF
19661 #define HAVE_RSAREF 1
19665 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19667 TLS_LIBS="-lssl -lcrypto"
19670 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19671 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19672 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19683 #ifdef HAVE_OPENSSL_SSL_H
19684 #include <openssl/ssl.h>
19687 /* Require 0.9.7d+ */
19688 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19689 char *__ssl_compat = "0.9.7d";
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19695 ol_cv_ssl_crl_compat=yes
19697 ol_cv_ssl_crl_compat=no
19702 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19703 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19705 if test $ol_cv_ssl_crl_compat = yes ; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_OPENSSL_CRL 1
19716 if test $ol_link_tls = no ; then
19717 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19719 for ac_header in gnutls/gnutls.h
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 ac_res=`eval echo '${'$as_ac_Header'}'`
19729 { echo "$as_me:$LINENO: result: $ac_res" >&5
19730 echo "${ECHO_T}$ac_res" >&6; }
19732 # Is the header compilable?
19733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 $ac_includes_default
19742 #include <$ac_header>
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19761 ac_header_compiler=yes
19763 echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 ac_header_compiler=no
19769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19771 echo "${ECHO_T}$ac_header_compiler" >&6; }
19773 # Is the header present?
19774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 #include <$ac_header>
19784 if { (ac_try="$ac_cpp conftest.$ac_ext"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } >/dev/null && {
19797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19800 ac_header_preproc=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_header_preproc=no
19808 rm -f conftest.err conftest.$ac_ext
19809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19810 echo "${ECHO_T}$ac_header_preproc" >&6; }
19812 # So? What about this header?
19813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19819 ac_header_preproc=yes
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19835 ## --------------------------------------------- ##
19836 ## Report this to <http://www.openldap.org/its/> ##
19837 ## --------------------------------------------- ##
19839 ) | sed "s/^/$as_me: WARNING: /" >&2
19842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 eval "$as_ac_Header=\$ac_header_preproc"
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850 { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19864 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19865 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19866 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19867 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-lgnutls $LIBS"
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19879 /* Override any GCC internal prototype to avoid an error.
19880 Use char because int might match the return type of a GCC
19881 builtin and then its argument prototype would still apply. */
19885 char gnutls_init ();
19889 return gnutls_init ();
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_link") 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest$ac_exeext &&
19911 $as_test_x conftest$ac_exeext; then
19912 ac_cv_lib_gnutls_gnutls_init=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_lib_gnutls_gnutls_init=no
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921 conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19925 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19926 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19933 if test $have_gnutls = yes ; then
19937 TLS_LIBS="-lgnutls"
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_GNUTLS 1
19949 if test $ol_link_tls = no ; then
19950 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19953 for ac_header in nssutil.h
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963 { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19966 # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <$ac_header>
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 echo "${ECHO_T}$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <$ac_header>
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } >/dev/null && {
20031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20034 ac_header_preproc=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_header_preproc=no
20042 rm -f conftest.err conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 echo "${ECHO_T}$ac_header_preproc" >&6; }
20046 # So? What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053 ac_header_preproc=yes
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069 ## --------------------------------------------- ##
20070 ## Report this to <http://www.openldap.org/its/> ##
20071 ## --------------------------------------------- ##
20073 ) | sed "s/^/$as_me: WARNING: /" >&2
20076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 eval "$as_ac_Header=\$ac_header_preproc"
20083 ac_res=`eval echo '${'$as_ac_Header'}'`
20084 { echo "$as_me:$LINENO: result: $ac_res" >&5
20085 echo "${ECHO_T}$ac_res" >&6; }
20088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20089 cat >>confdefs.h <<_ACEOF
20090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20097 if test "$ac_cv_header_nssutil_h" = yes ; then
20098 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
20099 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lnss3 $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20118 char NSS_Initialize ();
20122 return NSS_Initialize ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest$ac_exeext &&
20144 $as_test_x conftest$ac_exeext; then
20145 ac_cv_lib_nss3_NSS_Initialize=yes
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_lib_nss3_NSS_Initialize=no
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20157 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20158 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20159 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
20167 if test "$have_moznss" = yes ; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_MOZNSS 1
20175 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20177 { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20178 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20179 { (exit 1); exit 1; }; }
20185 if test $ol_link_tls = yes ; then
20187 cat >>confdefs.h <<\_ACEOF
20192 elif test $ol_with_tls = auto ; then
20193 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20194 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20196 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20197 elif test $ol_with_tls != no ; then
20198 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20199 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20200 { (exit 1); exit 1; }; }
20202 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20203 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20206 if test $ol_enable_lmpasswd != no; then
20207 if test $ol_link_tls != yes ; then
20208 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20209 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20210 { (exit 1); exit 1; }; }
20214 cat >>confdefs.h <<\_ACEOF
20215 #define SLAPD_LMHASH 1
20222 case $ol_with_threads in auto | yes | nt)
20225 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20226 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20227 if test "${ac_cv_func__beginthread+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 cat >conftest.$ac_ext <<_ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20238 #define _beginthread innocuous__beginthread
20240 /* System header to define __stub macros and hopefully few prototypes,
20241 which can conflict with char _beginthread (); below.
20242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20243 <limits.h> exists even on freestanding compilers. */
20246 # include <limits.h>
20248 # include <assert.h>
20251 #undef _beginthread
20253 /* Override any GCC internal prototype to avoid an error.
20254 Use char because int might match the return type of a GCC
20255 builtin and then its argument prototype would still apply. */
20259 char _beginthread ();
20260 /* The GNU C library defines this for functions which it implements
20261 to always fail with ENOSYS. Some functions are actually named
20262 something starting with __ and the normal name is an alias. */
20263 #if defined __stub__beginthread || defined __stub____beginthread
20270 return _beginthread ();
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_link") 2>conftest.er1
20284 grep -v '^ *+' conftest.er1 >conftest.err
20286 cat conftest.err >&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } && {
20289 test -z "$ac_c_werror_flag" ||
20290 test ! -s conftest.err
20291 } && test -s conftest$ac_exeext &&
20292 $as_test_x conftest$ac_exeext; then
20293 ac_cv_func__beginthread=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_func__beginthread=no
20301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20302 conftest$ac_exeext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20305 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20308 if test $ac_cv_func__beginthread = yes ; then
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_NT_THREADS 1
20314 ol_cv_nt_threads=yes
20318 if test "$ol_cv_nt_threads" = yes ; then
20320 ol_with_threads=found
20321 ol_with_yielding_select=yes
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_NT_SERVICE_MANAGER 1
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_NT_EVENT_LOG 1
20335 if test $ol_with_threads = nt ; then
20336 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20337 echo "$as_me: error: could not locate NT Threads" >&2;}
20338 { (exit 1); exit 1; }; }
20343 case $ol_with_threads in auto | yes | posix)
20346 for ac_header in pthread.h
20348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 ac_res=`eval echo '${'$as_ac_Header'}'`
20356 { echo "$as_me:$LINENO: result: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20359 # Is the header compilable?
20360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 $ac_includes_default
20369 #include <$ac_header>
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_compile") 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && {
20385 test -z "$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20387 } && test -s conftest.$ac_objext; then
20388 ac_header_compiler=yes
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ac_header_compiler=no
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20398 echo "${ECHO_T}$ac_header_compiler" >&6; }
20400 # Is the header present?
20401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 #include <$ac_header>
20411 if { (ac_try="$ac_cpp conftest.$ac_ext"
20412 case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20419 grep -v '^ *+' conftest.er1 >conftest.err
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } >/dev/null && {
20424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20425 test ! -s conftest.err
20427 ac_header_preproc=yes
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_header_preproc=no
20435 rm -f conftest.err conftest.$ac_ext
20436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6; }
20439 # So? What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446 ac_header_preproc=yes
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20462 ## --------------------------------------------- ##
20463 ## Report this to <http://www.openldap.org/its/> ##
20464 ## --------------------------------------------- ##
20466 ) | sed "s/^/$as_me: WARNING: /" >&2
20469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 eval "$as_ac_Header=\$ac_header_preproc"
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477 { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20491 if test $ac_cv_header_pthread_h = yes ; then
20492 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20493 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20494 if test "${ol_cv_pthread_version+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20505 # include <pthread.h>
20511 int i = PTHREAD_CREATE_JOINABLE;
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_compile") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest.$ac_objext; then
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <pthread.h>
20544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20545 $EGREP "pthread_detach" >/dev/null 2>&1; then
20546 ol_cv_pthread_version=10
20548 ol_cv_pthread_version=8
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 # include <pthread.h>
20565 # ifdef PTHREAD_CREATE_UNDETACHED
20570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20571 $EGREP "draft7" >/dev/null 2>&1; then
20572 ol_cv_pthread_version=7
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <pthread.h>
20584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20585 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20586 ol_cv_pthread_version=6
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20596 # include <pthread.h>
20597 #ifdef PTHREAD_MUTEX_INITIALIZER
20602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20603 $EGREP "draft5" >/dev/null 2>&1; then
20604 ol_cv_pthread_version=5
20606 ol_cv_pthread_version=4
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20622 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20625 if test $ol_cv_pthread_version != 0 ; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_PTHREADS $ol_cv_pthread_version
20632 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20633 echo "$as_me: error: unknown pthread version" >&2;}
20634 { (exit 1); exit 1; }; }
20637 # consider threads found
20638 ol_with_threads=found
20641 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20642 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20643 if test "${ol_cv_header_linux_threads+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <pthread.h>
20654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20655 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20656 ol_cv_header_linux_threads=yes
20658 ol_cv_header_linux_threads=no
20664 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20665 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20666 if test $ol_cv_header_linux_threads = yes; then
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_LINUX_THREADS 1
20675 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20676 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20677 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686 #include <pthread.h>
20687 #ifdef _POSIX_THREAD_IS_GNU_PTH
20692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20694 ol_cv_header_gnu_pth_pthread_h=yes
20696 ol_cv_header_gnu_pth_pthread_h=no
20702 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20703 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20706 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20708 for ac_header in sched.h
20710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718 { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20721 # Is the header compilable?
20722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 $ac_includes_default
20731 #include <$ac_header>
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_compile") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && {
20747 test -z "$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20749 } && test -s conftest.$ac_objext; then
20750 ac_header_compiler=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_compiler=no
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6; }
20762 # Is the header present?
20763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <$ac_header>
20773 if { (ac_try="$ac_cpp conftest.$ac_ext"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev/null && {
20786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20789 ac_header_preproc=yes
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ac_header_preproc=no
20797 rm -f conftest.err conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20799 echo "${ECHO_T}$ac_header_preproc" >&6; }
20801 # So? What about this header?
20802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20808 ac_header_preproc=yes
20811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20824 ## --------------------------------------------- ##
20825 ## Report this to <http://www.openldap.org/its/> ##
20826 ## --------------------------------------------- ##
20828 ) | sed "s/^/$as_me: WARNING: /" >&2
20831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 eval "$as_ac_Header=\$ac_header_preproc"
20838 ac_res=`eval echo '${'$as_ac_Header'}'`
20839 { echo "$as_me:$LINENO: result: $ac_res" >&5
20840 echo "${ECHO_T}$ac_res" >&6; }
20843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20844 cat >>confdefs.h <<_ACEOF
20845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20855 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20856 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20857 if test "${ol_cv_pthread_create+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 if test "$cross_compiling" = yes; then
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* pthread test headers */
20870 #include <pthread.h>
20871 #if HAVE_PTHREADS < 7
20875 #define NULL (void*)0
20878 static void *task(p)
20881 return (void *) (p == NULL);
20888 /* pthread test function */
20889 #ifndef PTHREAD_CREATE_DETACHED
20890 #define PTHREAD_CREATE_DETACHED 1
20894 int detach = PTHREAD_CREATE_DETACHED;
20896 #if HAVE_PTHREADS > 4
20897 /* Final pthreads */
20898 pthread_attr_t attr;
20900 status = pthread_attr_init(&attr);
20901 if( status ) return status;
20903 #if HAVE_PTHREADS < 7
20904 status = pthread_attr_setdetachstate(&attr, &detach);
20905 if( status < 0 ) status = errno;
20907 status = pthread_attr_setdetachstate(&attr, detach);
20909 if( status ) return status;
20910 status = pthread_create( &t, &attr, task, NULL );
20911 #if HAVE_PTHREADS < 7
20912 if( status < 0 ) status = errno;
20914 if( status ) return status;
20916 /* Draft 4 pthreads */
20917 status = pthread_create( &t, pthread_attr_default, task, NULL );
20918 if( status ) return errno;
20920 /* give thread a chance to complete */
20921 /* it should remain joinable and hence detachable */
20924 status = pthread_detach( &t );
20925 if( status ) return errno;
20928 #ifdef HAVE_LINUX_THREADS
20929 pthread_kill_other_threads_np();
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext &&
20955 $as_test_x conftest$ac_exeext; then
20956 ol_cv_pthread_create=yes
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ol_cv_pthread_create=no
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965 conftest$ac_exeext conftest.$ac_ext
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20974 /* pthread test headers */
20975 #include <pthread.h>
20976 #if HAVE_PTHREADS < 7
20980 #define NULL (void*)0
20983 static void *task(p)
20986 return (void *) (p == NULL);
20990 int main(argc, argv)
20995 /* pthread test function */
20996 #ifndef PTHREAD_CREATE_DETACHED
20997 #define PTHREAD_CREATE_DETACHED 1
21001 int detach = PTHREAD_CREATE_DETACHED;
21003 #if HAVE_PTHREADS > 4
21004 /* Final pthreads */
21005 pthread_attr_t attr;
21007 status = pthread_attr_init(&attr);
21008 if( status ) return status;
21010 #if HAVE_PTHREADS < 7
21011 status = pthread_attr_setdetachstate(&attr, &detach);
21012 if( status < 0 ) status = errno;
21014 status = pthread_attr_setdetachstate(&attr, detach);
21016 if( status ) return status;
21017 status = pthread_create( &t, &attr, task, NULL );
21018 #if HAVE_PTHREADS < 7
21019 if( status < 0 ) status = errno;
21021 if( status ) return status;
21023 /* Draft 4 pthreads */
21024 status = pthread_create( &t, pthread_attr_default, task, NULL );
21025 if( status ) return errno;
21027 /* give thread a chance to complete */
21028 /* it should remain joinable and hence detachable */
21031 status = pthread_detach( &t );
21032 if( status ) return errno;
21035 #ifdef HAVE_LINUX_THREADS
21036 pthread_kill_other_threads_np();
21044 rm -f conftest$ac_exeext
21045 if { (ac_try="$ac_link"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_link") 2>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ol_cv_pthread_create=yes
21066 echo "$as_me: program exited with status $ac_status" >&5
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ( exit $ac_status )
21071 ol_cv_pthread_create=no
21073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21079 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21081 if test $ol_cv_pthread_create != no ; then
21082 ol_link_threads=posix
21083 ol_link_pthreads=""
21086 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21087 if test "$ol_link_threads" = no ; then
21089 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21090 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21091 if test "${ol_cv_pthread_kthread+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 LIBS="-kthread $LIBS"
21099 if test "$cross_compiling" = yes; then
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21107 /* pthread test headers */
21108 #include <pthread.h>
21109 #if HAVE_PTHREADS < 7
21113 #define NULL (void*)0
21116 static void *task(p)
21119 return (void *) (p == NULL);
21126 /* pthread test function */
21127 #ifndef PTHREAD_CREATE_DETACHED
21128 #define PTHREAD_CREATE_DETACHED 1
21132 int detach = PTHREAD_CREATE_DETACHED;
21134 #if HAVE_PTHREADS > 4
21135 /* Final pthreads */
21136 pthread_attr_t attr;
21138 status = pthread_attr_init(&attr);
21139 if( status ) return status;
21141 #if HAVE_PTHREADS < 7
21142 status = pthread_attr_setdetachstate(&attr, &detach);
21143 if( status < 0 ) status = errno;
21145 status = pthread_attr_setdetachstate(&attr, detach);
21147 if( status ) return status;
21148 status = pthread_create( &t, &attr, task, NULL );
21149 #if HAVE_PTHREADS < 7
21150 if( status < 0 ) status = errno;
21152 if( status ) return status;
21154 /* Draft 4 pthreads */
21155 status = pthread_create( &t, pthread_attr_default, task, NULL );
21156 if( status ) return errno;
21158 /* give thread a chance to complete */
21159 /* it should remain joinable and hence detachable */
21162 status = pthread_detach( &t );
21163 if( status ) return errno;
21166 #ifdef HAVE_LINUX_THREADS
21167 pthread_kill_other_threads_np();
21176 rm -f conftest.$ac_objext conftest$ac_exeext
21177 if { (ac_try="$ac_link"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_link") 2>conftest.er1
21185 grep -v '^ *+' conftest.er1 >conftest.err
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } && {
21190 test -z "$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 } && test -s conftest$ac_exeext &&
21193 $as_test_x conftest$ac_exeext; then
21194 ol_cv_pthread_kthread=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 ol_cv_pthread_kthread=no
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203 conftest$ac_exeext conftest.$ac_ext
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21212 /* pthread test headers */
21213 #include <pthread.h>
21214 #if HAVE_PTHREADS < 7
21218 #define NULL (void*)0
21221 static void *task(p)
21224 return (void *) (p == NULL);
21228 int main(argc, argv)
21233 /* pthread test function */
21234 #ifndef PTHREAD_CREATE_DETACHED
21235 #define PTHREAD_CREATE_DETACHED 1
21239 int detach = PTHREAD_CREATE_DETACHED;
21241 #if HAVE_PTHREADS > 4
21242 /* Final pthreads */
21243 pthread_attr_t attr;
21245 status = pthread_attr_init(&attr);
21246 if( status ) return status;
21248 #if HAVE_PTHREADS < 7
21249 status = pthread_attr_setdetachstate(&attr, &detach);
21250 if( status < 0 ) status = errno;
21252 status = pthread_attr_setdetachstate(&attr, detach);
21254 if( status ) return status;
21255 status = pthread_create( &t, &attr, task, NULL );
21256 #if HAVE_PTHREADS < 7
21257 if( status < 0 ) status = errno;
21259 if( status ) return status;
21261 /* Draft 4 pthreads */
21262 status = pthread_create( &t, pthread_attr_default, task, NULL );
21263 if( status ) return errno;
21265 /* give thread a chance to complete */
21266 /* it should remain joinable and hence detachable */
21269 status = pthread_detach( &t );
21270 if( status ) return errno;
21273 #ifdef HAVE_LINUX_THREADS
21274 pthread_kill_other_threads_np();
21282 rm -f conftest$ac_exeext
21283 if { (ac_try="$ac_link"
21284 case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_link") 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293 { (case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_try") 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ol_cv_pthread_kthread=yes
21304 echo "$as_me: program exited with status $ac_status" >&5
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ( exit $ac_status )
21309 ol_cv_pthread_kthread=no
21311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21321 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21323 if test $ol_cv_pthread_kthread = yes ; then
21324 ol_link_pthreads="-kthread"
21325 ol_link_threads=posix
21329 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21330 if test "$ol_link_threads" = no ; then
21332 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21333 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21334 if test "${ol_cv_pthread_pthread+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 LIBS="-pthread $LIBS"
21342 if test "$cross_compiling" = yes; then
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21350 /* pthread test headers */
21351 #include <pthread.h>
21352 #if HAVE_PTHREADS < 7
21356 #define NULL (void*)0
21359 static void *task(p)
21362 return (void *) (p == NULL);
21369 /* pthread test function */
21370 #ifndef PTHREAD_CREATE_DETACHED
21371 #define PTHREAD_CREATE_DETACHED 1
21375 int detach = PTHREAD_CREATE_DETACHED;
21377 #if HAVE_PTHREADS > 4
21378 /* Final pthreads */
21379 pthread_attr_t attr;
21381 status = pthread_attr_init(&attr);
21382 if( status ) return status;
21384 #if HAVE_PTHREADS < 7
21385 status = pthread_attr_setdetachstate(&attr, &detach);
21386 if( status < 0 ) status = errno;
21388 status = pthread_attr_setdetachstate(&attr, detach);
21390 if( status ) return status;
21391 status = pthread_create( &t, &attr, task, NULL );
21392 #if HAVE_PTHREADS < 7
21393 if( status < 0 ) status = errno;
21395 if( status ) return status;
21397 /* Draft 4 pthreads */
21398 status = pthread_create( &t, pthread_attr_default, task, NULL );
21399 if( status ) return errno;
21401 /* give thread a chance to complete */
21402 /* it should remain joinable and hence detachable */
21405 status = pthread_detach( &t );
21406 if( status ) return errno;
21409 #ifdef HAVE_LINUX_THREADS
21410 pthread_kill_other_threads_np();
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_link") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest$ac_exeext &&
21436 $as_test_x conftest$ac_exeext; then
21437 ol_cv_pthread_pthread=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ol_cv_pthread_pthread=no
21445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446 conftest$ac_exeext conftest.$ac_ext
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 /* pthread test headers */
21456 #include <pthread.h>
21457 #if HAVE_PTHREADS < 7
21461 #define NULL (void*)0
21464 static void *task(p)
21467 return (void *) (p == NULL);
21471 int main(argc, argv)
21476 /* pthread test function */
21477 #ifndef PTHREAD_CREATE_DETACHED
21478 #define PTHREAD_CREATE_DETACHED 1
21482 int detach = PTHREAD_CREATE_DETACHED;
21484 #if HAVE_PTHREADS > 4
21485 /* Final pthreads */
21486 pthread_attr_t attr;
21488 status = pthread_attr_init(&attr);
21489 if( status ) return status;
21491 #if HAVE_PTHREADS < 7
21492 status = pthread_attr_setdetachstate(&attr, &detach);
21493 if( status < 0 ) status = errno;
21495 status = pthread_attr_setdetachstate(&attr, detach);
21497 if( status ) return status;
21498 status = pthread_create( &t, &attr, task, NULL );
21499 #if HAVE_PTHREADS < 7
21500 if( status < 0 ) status = errno;
21502 if( status ) return status;
21504 /* Draft 4 pthreads */
21505 status = pthread_create( &t, pthread_attr_default, task, NULL );
21506 if( status ) return errno;
21508 /* give thread a chance to complete */
21509 /* it should remain joinable and hence detachable */
21512 status = pthread_detach( &t );
21513 if( status ) return errno;
21516 #ifdef HAVE_LINUX_THREADS
21517 pthread_kill_other_threads_np();
21525 rm -f conftest$ac_exeext
21526 if { (ac_try="$ac_link"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_link") 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536 { (case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_try") 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ol_cv_pthread_pthread=yes
21547 echo "$as_me: program exited with status $ac_status" >&5
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ( exit $ac_status )
21552 ol_cv_pthread_pthread=no
21554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21563 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21564 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21566 if test $ol_cv_pthread_pthread = yes ; then
21567 ol_link_pthreads="-pthread"
21568 ol_link_threads=posix
21572 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21573 if test "$ol_link_threads" = no ; then
21575 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21576 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21577 if test "${ol_cv_pthread_pthreads+set}" = set; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 LIBS="-pthreads $LIBS"
21585 if test "$cross_compiling" = yes; then
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21593 /* pthread test headers */
21594 #include <pthread.h>
21595 #if HAVE_PTHREADS < 7
21599 #define NULL (void*)0
21602 static void *task(p)
21605 return (void *) (p == NULL);
21612 /* pthread test function */
21613 #ifndef PTHREAD_CREATE_DETACHED
21614 #define PTHREAD_CREATE_DETACHED 1
21618 int detach = PTHREAD_CREATE_DETACHED;
21620 #if HAVE_PTHREADS > 4
21621 /* Final pthreads */
21622 pthread_attr_t attr;
21624 status = pthread_attr_init(&attr);
21625 if( status ) return status;
21627 #if HAVE_PTHREADS < 7
21628 status = pthread_attr_setdetachstate(&attr, &detach);
21629 if( status < 0 ) status = errno;
21631 status = pthread_attr_setdetachstate(&attr, detach);
21633 if( status ) return status;
21634 status = pthread_create( &t, &attr, task, NULL );
21635 #if HAVE_PTHREADS < 7
21636 if( status < 0 ) status = errno;
21638 if( status ) return status;
21640 /* Draft 4 pthreads */
21641 status = pthread_create( &t, pthread_attr_default, task, NULL );
21642 if( status ) return errno;
21644 /* give thread a chance to complete */
21645 /* it should remain joinable and hence detachable */
21648 status = pthread_detach( &t );
21649 if( status ) return errno;
21652 #ifdef HAVE_LINUX_THREADS
21653 pthread_kill_other_threads_np();
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_link") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest$ac_exeext &&
21679 $as_test_x conftest$ac_exeext; then
21680 ol_cv_pthread_pthreads=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ol_cv_pthread_pthreads=no
21688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21689 conftest$ac_exeext conftest.$ac_ext
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21698 /* pthread test headers */
21699 #include <pthread.h>
21700 #if HAVE_PTHREADS < 7
21704 #define NULL (void*)0
21707 static void *task(p)
21710 return (void *) (p == NULL);
21714 int main(argc, argv)
21719 /* pthread test function */
21720 #ifndef PTHREAD_CREATE_DETACHED
21721 #define PTHREAD_CREATE_DETACHED 1
21725 int detach = PTHREAD_CREATE_DETACHED;
21727 #if HAVE_PTHREADS > 4
21728 /* Final pthreads */
21729 pthread_attr_t attr;
21731 status = pthread_attr_init(&attr);
21732 if( status ) return status;
21734 #if HAVE_PTHREADS < 7
21735 status = pthread_attr_setdetachstate(&attr, &detach);
21736 if( status < 0 ) status = errno;
21738 status = pthread_attr_setdetachstate(&attr, detach);
21740 if( status ) return status;
21741 status = pthread_create( &t, &attr, task, NULL );
21742 #if HAVE_PTHREADS < 7
21743 if( status < 0 ) status = errno;
21745 if( status ) return status;
21747 /* Draft 4 pthreads */
21748 status = pthread_create( &t, pthread_attr_default, task, NULL );
21749 if( status ) return errno;
21751 /* give thread a chance to complete */
21752 /* it should remain joinable and hence detachable */
21755 status = pthread_detach( &t );
21756 if( status ) return errno;
21759 #ifdef HAVE_LINUX_THREADS
21760 pthread_kill_other_threads_np();
21768 rm -f conftest$ac_exeext
21769 if { (ac_try="$ac_link"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_link") 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21779 { (case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_try") 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ol_cv_pthread_pthreads=yes
21790 echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ( exit $ac_status )
21795 ol_cv_pthread_pthreads=no
21797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21807 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21809 if test $ol_cv_pthread_pthreads = yes ; then
21810 ol_link_pthreads="-pthreads"
21811 ol_link_threads=posix
21815 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21816 if test "$ol_link_threads" = no ; then
21818 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21819 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21820 if test "${ol_cv_pthread_mthreads+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 LIBS="-mthreads $LIBS"
21828 if test "$cross_compiling" = yes; then
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 /* pthread test headers */
21837 #include <pthread.h>
21838 #if HAVE_PTHREADS < 7
21842 #define NULL (void*)0
21845 static void *task(p)
21848 return (void *) (p == NULL);
21855 /* pthread test function */
21856 #ifndef PTHREAD_CREATE_DETACHED
21857 #define PTHREAD_CREATE_DETACHED 1
21861 int detach = PTHREAD_CREATE_DETACHED;
21863 #if HAVE_PTHREADS > 4
21864 /* Final pthreads */
21865 pthread_attr_t attr;
21867 status = pthread_attr_init(&attr);
21868 if( status ) return status;
21870 #if HAVE_PTHREADS < 7
21871 status = pthread_attr_setdetachstate(&attr, &detach);
21872 if( status < 0 ) status = errno;
21874 status = pthread_attr_setdetachstate(&attr, detach);
21876 if( status ) return status;
21877 status = pthread_create( &t, &attr, task, NULL );
21878 #if HAVE_PTHREADS < 7
21879 if( status < 0 ) status = errno;
21881 if( status ) return status;
21883 /* Draft 4 pthreads */
21884 status = pthread_create( &t, pthread_attr_default, task, NULL );
21885 if( status ) return errno;
21887 /* give thread a chance to complete */
21888 /* it should remain joinable and hence detachable */
21891 status = pthread_detach( &t );
21892 if( status ) return errno;
21895 #ifdef HAVE_LINUX_THREADS
21896 pthread_kill_other_threads_np();
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_link") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest$ac_exeext &&
21922 $as_test_x conftest$ac_exeext; then
21923 ol_cv_pthread_mthreads=yes
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21928 ol_cv_pthread_mthreads=no
21931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21932 conftest$ac_exeext conftest.$ac_ext
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21941 /* pthread test headers */
21942 #include <pthread.h>
21943 #if HAVE_PTHREADS < 7
21947 #define NULL (void*)0
21950 static void *task(p)
21953 return (void *) (p == NULL);
21957 int main(argc, argv)
21962 /* pthread test function */
21963 #ifndef PTHREAD_CREATE_DETACHED
21964 #define PTHREAD_CREATE_DETACHED 1
21968 int detach = PTHREAD_CREATE_DETACHED;
21970 #if HAVE_PTHREADS > 4
21971 /* Final pthreads */
21972 pthread_attr_t attr;
21974 status = pthread_attr_init(&attr);
21975 if( status ) return status;
21977 #if HAVE_PTHREADS < 7
21978 status = pthread_attr_setdetachstate(&attr, &detach);
21979 if( status < 0 ) status = errno;
21981 status = pthread_attr_setdetachstate(&attr, detach);
21983 if( status ) return status;
21984 status = pthread_create( &t, &attr, task, NULL );
21985 #if HAVE_PTHREADS < 7
21986 if( status < 0 ) status = errno;
21988 if( status ) return status;
21990 /* Draft 4 pthreads */
21991 status = pthread_create( &t, pthread_attr_default, task, NULL );
21992 if( status ) return errno;
21994 /* give thread a chance to complete */
21995 /* it should remain joinable and hence detachable */
21998 status = pthread_detach( &t );
21999 if( status ) return errno;
22002 #ifdef HAVE_LINUX_THREADS
22003 pthread_kill_other_threads_np();
22011 rm -f conftest$ac_exeext
22012 if { (ac_try="$ac_link"
22013 case "(($ac_try" in
22014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_link") 2>&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22022 { (case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_try") 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 ol_cv_pthread_mthreads=yes
22033 echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 ( exit $ac_status )
22038 ol_cv_pthread_mthreads=no
22040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22049 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22050 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22052 if test $ol_cv_pthread_mthreads = yes ; then
22053 ol_link_pthreads="-mthreads"
22054 ol_link_threads=posix
22058 # Pthread try link: -thread (ol_cv_pthread_thread)
22059 if test "$ol_link_threads" = no ; then
22061 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22062 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22063 if test "${ol_cv_pthread_thread+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 LIBS="-thread $LIBS"
22071 if test "$cross_compiling" = yes; then
22072 cat >conftest.$ac_ext <<_ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22079 /* pthread test headers */
22080 #include <pthread.h>
22081 #if HAVE_PTHREADS < 7
22085 #define NULL (void*)0
22088 static void *task(p)
22091 return (void *) (p == NULL);
22098 /* pthread test function */
22099 #ifndef PTHREAD_CREATE_DETACHED
22100 #define PTHREAD_CREATE_DETACHED 1
22104 int detach = PTHREAD_CREATE_DETACHED;
22106 #if HAVE_PTHREADS > 4
22107 /* Final pthreads */
22108 pthread_attr_t attr;
22110 status = pthread_attr_init(&attr);
22111 if( status ) return status;
22113 #if HAVE_PTHREADS < 7
22114 status = pthread_attr_setdetachstate(&attr, &detach);
22115 if( status < 0 ) status = errno;
22117 status = pthread_attr_setdetachstate(&attr, detach);
22119 if( status ) return status;
22120 status = pthread_create( &t, &attr, task, NULL );
22121 #if HAVE_PTHREADS < 7
22122 if( status < 0 ) status = errno;
22124 if( status ) return status;
22126 /* Draft 4 pthreads */
22127 status = pthread_create( &t, pthread_attr_default, task, NULL );
22128 if( status ) return errno;
22130 /* give thread a chance to complete */
22131 /* it should remain joinable and hence detachable */
22134 status = pthread_detach( &t );
22135 if( status ) return errno;
22138 #ifdef HAVE_LINUX_THREADS
22139 pthread_kill_other_threads_np();
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_link") 2>conftest.er1
22157 grep -v '^ *+' conftest.er1 >conftest.err
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } && {
22162 test -z "$ac_c_werror_flag" ||
22163 test ! -s conftest.err
22164 } && test -s conftest$ac_exeext &&
22165 $as_test_x conftest$ac_exeext; then
22166 ol_cv_pthread_thread=yes
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ol_cv_pthread_thread=no
22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175 conftest$ac_exeext conftest.$ac_ext
22177 cat >conftest.$ac_ext <<_ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h. */
22184 /* pthread test headers */
22185 #include <pthread.h>
22186 #if HAVE_PTHREADS < 7
22190 #define NULL (void*)0
22193 static void *task(p)
22196 return (void *) (p == NULL);
22200 int main(argc, argv)
22205 /* pthread test function */
22206 #ifndef PTHREAD_CREATE_DETACHED
22207 #define PTHREAD_CREATE_DETACHED 1
22211 int detach = PTHREAD_CREATE_DETACHED;
22213 #if HAVE_PTHREADS > 4
22214 /* Final pthreads */
22215 pthread_attr_t attr;
22217 status = pthread_attr_init(&attr);
22218 if( status ) return status;
22220 #if HAVE_PTHREADS < 7
22221 status = pthread_attr_setdetachstate(&attr, &detach);
22222 if( status < 0 ) status = errno;
22224 status = pthread_attr_setdetachstate(&attr, detach);
22226 if( status ) return status;
22227 status = pthread_create( &t, &attr, task, NULL );
22228 #if HAVE_PTHREADS < 7
22229 if( status < 0 ) status = errno;
22231 if( status ) return status;
22233 /* Draft 4 pthreads */
22234 status = pthread_create( &t, pthread_attr_default, task, NULL );
22235 if( status ) return errno;
22237 /* give thread a chance to complete */
22238 /* it should remain joinable and hence detachable */
22241 status = pthread_detach( &t );
22242 if( status ) return errno;
22245 #ifdef HAVE_LINUX_THREADS
22246 pthread_kill_other_threads_np();
22254 rm -f conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_link") 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265 { (case "(($ac_try" in
22266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22267 *) ac_try_echo=$ac_try;;
22269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22270 (eval "$ac_try") 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 ol_cv_pthread_thread=yes
22276 echo "$as_me: program exited with status $ac_status" >&5
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ( exit $ac_status )
22281 ol_cv_pthread_thread=no
22283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22292 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22293 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22295 if test $ol_cv_pthread_thread = yes ; then
22296 ol_link_pthreads="-thread"
22297 ol_link_threads=posix
22302 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22303 if test "$ol_link_threads" = no ; then
22304 # try -lpthread -lmach -lexc -lc_r
22305 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22306 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22307 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22315 if test "$cross_compiling" = yes; then
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22323 /* pthread test headers */
22324 #include <pthread.h>
22325 #if HAVE_PTHREADS < 7
22329 #define NULL (void*)0
22332 static void *task(p)
22335 return (void *) (p == NULL);
22342 /* pthread test function */
22343 #ifndef PTHREAD_CREATE_DETACHED
22344 #define PTHREAD_CREATE_DETACHED 1
22348 int detach = PTHREAD_CREATE_DETACHED;
22350 #if HAVE_PTHREADS > 4
22351 /* Final pthreads */
22352 pthread_attr_t attr;
22354 status = pthread_attr_init(&attr);
22355 if( status ) return status;
22357 #if HAVE_PTHREADS < 7
22358 status = pthread_attr_setdetachstate(&attr, &detach);
22359 if( status < 0 ) status = errno;
22361 status = pthread_attr_setdetachstate(&attr, detach);
22363 if( status ) return status;
22364 status = pthread_create( &t, &attr, task, NULL );
22365 #if HAVE_PTHREADS < 7
22366 if( status < 0 ) status = errno;
22368 if( status ) return status;
22370 /* Draft 4 pthreads */
22371 status = pthread_create( &t, pthread_attr_default, task, NULL );
22372 if( status ) return errno;
22374 /* give thread a chance to complete */
22375 /* it should remain joinable and hence detachable */
22378 status = pthread_detach( &t );
22379 if( status ) return errno;
22382 #ifdef HAVE_LINUX_THREADS
22383 pthread_kill_other_threads_np();
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_link") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest$ac_exeext &&
22409 $as_test_x conftest$ac_exeext; then
22410 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22419 conftest$ac_exeext conftest.$ac_ext
22421 cat >conftest.$ac_ext <<_ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22428 /* pthread test headers */
22429 #include <pthread.h>
22430 #if HAVE_PTHREADS < 7
22434 #define NULL (void*)0
22437 static void *task(p)
22440 return (void *) (p == NULL);
22444 int main(argc, argv)
22449 /* pthread test function */
22450 #ifndef PTHREAD_CREATE_DETACHED
22451 #define PTHREAD_CREATE_DETACHED 1
22455 int detach = PTHREAD_CREATE_DETACHED;
22457 #if HAVE_PTHREADS > 4
22458 /* Final pthreads */
22459 pthread_attr_t attr;
22461 status = pthread_attr_init(&attr);
22462 if( status ) return status;
22464 #if HAVE_PTHREADS < 7
22465 status = pthread_attr_setdetachstate(&attr, &detach);
22466 if( status < 0 ) status = errno;
22468 status = pthread_attr_setdetachstate(&attr, detach);
22470 if( status ) return status;
22471 status = pthread_create( &t, &attr, task, NULL );
22472 #if HAVE_PTHREADS < 7
22473 if( status < 0 ) status = errno;
22475 if( status ) return status;
22477 /* Draft 4 pthreads */
22478 status = pthread_create( &t, pthread_attr_default, task, NULL );
22479 if( status ) return errno;
22481 /* give thread a chance to complete */
22482 /* it should remain joinable and hence detachable */
22485 status = pthread_detach( &t );
22486 if( status ) return errno;
22489 #ifdef HAVE_LINUX_THREADS
22490 pthread_kill_other_threads_np();
22498 rm -f conftest$ac_exeext
22499 if { (ac_try="$ac_link"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_link") 2>&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22509 { (case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_try") 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22520 echo "$as_me: program exited with status $ac_status" >&5
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ( exit $ac_status )
22525 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22536 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22537 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22539 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22540 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22541 ol_link_threads=posix
22545 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22546 if test "$ol_link_threads" = no ; then
22547 # try -lpthread -lmach -lexc
22548 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22549 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22550 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 LIBS="-lpthread -lmach -lexc $LIBS"
22558 if test "$cross_compiling" = yes; then
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22566 /* pthread test headers */
22567 #include <pthread.h>
22568 #if HAVE_PTHREADS < 7
22572 #define NULL (void*)0
22575 static void *task(p)
22578 return (void *) (p == NULL);
22585 /* pthread test function */
22586 #ifndef PTHREAD_CREATE_DETACHED
22587 #define PTHREAD_CREATE_DETACHED 1
22591 int detach = PTHREAD_CREATE_DETACHED;
22593 #if HAVE_PTHREADS > 4
22594 /* Final pthreads */
22595 pthread_attr_t attr;
22597 status = pthread_attr_init(&attr);
22598 if( status ) return status;
22600 #if HAVE_PTHREADS < 7
22601 status = pthread_attr_setdetachstate(&attr, &detach);
22602 if( status < 0 ) status = errno;
22604 status = pthread_attr_setdetachstate(&attr, detach);
22606 if( status ) return status;
22607 status = pthread_create( &t, &attr, task, NULL );
22608 #if HAVE_PTHREADS < 7
22609 if( status < 0 ) status = errno;
22611 if( status ) return status;
22613 /* Draft 4 pthreads */
22614 status = pthread_create( &t, pthread_attr_default, task, NULL );
22615 if( status ) return errno;
22617 /* give thread a chance to complete */
22618 /* it should remain joinable and hence detachable */
22621 status = pthread_detach( &t );
22622 if( status ) return errno;
22625 #ifdef HAVE_LINUX_THREADS
22626 pthread_kill_other_threads_np();
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_link") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest$ac_exeext &&
22652 $as_test_x conftest$ac_exeext; then
22653 ol_cv_pthread_lpthread_lmach_lexc=yes
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22658 ol_cv_pthread_lpthread_lmach_lexc=no
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662 conftest$ac_exeext conftest.$ac_ext
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22671 /* pthread test headers */
22672 #include <pthread.h>
22673 #if HAVE_PTHREADS < 7
22677 #define NULL (void*)0
22680 static void *task(p)
22683 return (void *) (p == NULL);
22687 int main(argc, argv)
22692 /* pthread test function */
22693 #ifndef PTHREAD_CREATE_DETACHED
22694 #define PTHREAD_CREATE_DETACHED 1
22698 int detach = PTHREAD_CREATE_DETACHED;
22700 #if HAVE_PTHREADS > 4
22701 /* Final pthreads */
22702 pthread_attr_t attr;
22704 status = pthread_attr_init(&attr);
22705 if( status ) return status;
22707 #if HAVE_PTHREADS < 7
22708 status = pthread_attr_setdetachstate(&attr, &detach);
22709 if( status < 0 ) status = errno;
22711 status = pthread_attr_setdetachstate(&attr, detach);
22713 if( status ) return status;
22714 status = pthread_create( &t, &attr, task, NULL );
22715 #if HAVE_PTHREADS < 7
22716 if( status < 0 ) status = errno;
22718 if( status ) return status;
22720 /* Draft 4 pthreads */
22721 status = pthread_create( &t, pthread_attr_default, task, NULL );
22722 if( status ) return errno;
22724 /* give thread a chance to complete */
22725 /* it should remain joinable and hence detachable */
22728 status = pthread_detach( &t );
22729 if( status ) return errno;
22732 #ifdef HAVE_LINUX_THREADS
22733 pthread_kill_other_threads_np();
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752 { (case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 ol_cv_pthread_lpthread_lmach_lexc=yes
22763 echo "$as_me: program exited with status $ac_status" >&5
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ( exit $ac_status )
22768 ol_cv_pthread_lpthread_lmach_lexc=no
22770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22779 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22780 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22782 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22783 ol_link_pthreads="-lpthread -lmach -lexc"
22784 ol_link_threads=posix
22789 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22790 if test "$ol_link_threads" = no ; then
22791 # try -lpthread -Wl,-woff,85
22792 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22793 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22794 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22802 if test "$cross_compiling" = yes; then
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22810 /* pthread test headers */
22811 #include <pthread.h>
22812 #if HAVE_PTHREADS < 7
22816 #define NULL (void*)0
22819 static void *task(p)
22822 return (void *) (p == NULL);
22829 /* pthread test function */
22830 #ifndef PTHREAD_CREATE_DETACHED
22831 #define PTHREAD_CREATE_DETACHED 1
22835 int detach = PTHREAD_CREATE_DETACHED;
22837 #if HAVE_PTHREADS > 4
22838 /* Final pthreads */
22839 pthread_attr_t attr;
22841 status = pthread_attr_init(&attr);
22842 if( status ) return status;
22844 #if HAVE_PTHREADS < 7
22845 status = pthread_attr_setdetachstate(&attr, &detach);
22846 if( status < 0 ) status = errno;
22848 status = pthread_attr_setdetachstate(&attr, detach);
22850 if( status ) return status;
22851 status = pthread_create( &t, &attr, task, NULL );
22852 #if HAVE_PTHREADS < 7
22853 if( status < 0 ) status = errno;
22855 if( status ) return status;
22857 /* Draft 4 pthreads */
22858 status = pthread_create( &t, pthread_attr_default, task, NULL );
22859 if( status ) return errno;
22861 /* give thread a chance to complete */
22862 /* it should remain joinable and hence detachable */
22865 status = pthread_detach( &t );
22866 if( status ) return errno;
22869 #ifdef HAVE_LINUX_THREADS
22870 pthread_kill_other_threads_np();
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_link") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest$ac_exeext &&
22896 $as_test_x conftest$ac_exeext; then
22897 ol_cv_pthread_lib_lpthread_woff=yes
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ol_cv_pthread_lib_lpthread_woff=no
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906 conftest$ac_exeext conftest.$ac_ext
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22915 /* pthread test headers */
22916 #include <pthread.h>
22917 #if HAVE_PTHREADS < 7
22921 #define NULL (void*)0
22924 static void *task(p)
22927 return (void *) (p == NULL);
22931 int main(argc, argv)
22936 /* pthread test function */
22937 #ifndef PTHREAD_CREATE_DETACHED
22938 #define PTHREAD_CREATE_DETACHED 1
22942 int detach = PTHREAD_CREATE_DETACHED;
22944 #if HAVE_PTHREADS > 4
22945 /* Final pthreads */
22946 pthread_attr_t attr;
22948 status = pthread_attr_init(&attr);
22949 if( status ) return status;
22951 #if HAVE_PTHREADS < 7
22952 status = pthread_attr_setdetachstate(&attr, &detach);
22953 if( status < 0 ) status = errno;
22955 status = pthread_attr_setdetachstate(&attr, detach);
22957 if( status ) return status;
22958 status = pthread_create( &t, &attr, task, NULL );
22959 #if HAVE_PTHREADS < 7
22960 if( status < 0 ) status = errno;
22962 if( status ) return status;
22964 /* Draft 4 pthreads */
22965 status = pthread_create( &t, pthread_attr_default, task, NULL );
22966 if( status ) return errno;
22968 /* give thread a chance to complete */
22969 /* it should remain joinable and hence detachable */
22972 status = pthread_detach( &t );
22973 if( status ) return errno;
22976 #ifdef HAVE_LINUX_THREADS
22977 pthread_kill_other_threads_np();
22985 rm -f conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_link") 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22996 { (case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_try") 2>&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
23005 ol_cv_pthread_lib_lpthread_woff=yes
23007 echo "$as_me: program exited with status $ac_status" >&5
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ( exit $ac_status )
23012 ol_cv_pthread_lib_lpthread_woff=no
23014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23023 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23024 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23026 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23027 ol_link_pthreads="-lpthread -Wl,-woff,85"
23028 ol_link_threads=posix
23033 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23034 if test "$ol_link_threads" = no ; then
23036 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23037 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23038 if test "${ol_cv_pthread_lpthread+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 LIBS="-lpthread $LIBS"
23046 if test "$cross_compiling" = yes; then
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23054 /* pthread test headers */
23055 #include <pthread.h>
23056 #if HAVE_PTHREADS < 7
23060 #define NULL (void*)0
23063 static void *task(p)
23066 return (void *) (p == NULL);
23073 /* pthread test function */
23074 #ifndef PTHREAD_CREATE_DETACHED
23075 #define PTHREAD_CREATE_DETACHED 1
23079 int detach = PTHREAD_CREATE_DETACHED;
23081 #if HAVE_PTHREADS > 4
23082 /* Final pthreads */
23083 pthread_attr_t attr;
23085 status = pthread_attr_init(&attr);
23086 if( status ) return status;
23088 #if HAVE_PTHREADS < 7
23089 status = pthread_attr_setdetachstate(&attr, &detach);
23090 if( status < 0 ) status = errno;
23092 status = pthread_attr_setdetachstate(&attr, detach);
23094 if( status ) return status;
23095 status = pthread_create( &t, &attr, task, NULL );
23096 #if HAVE_PTHREADS < 7
23097 if( status < 0 ) status = errno;
23099 if( status ) return status;
23101 /* Draft 4 pthreads */
23102 status = pthread_create( &t, pthread_attr_default, task, NULL );
23103 if( status ) return errno;
23105 /* give thread a chance to complete */
23106 /* it should remain joinable and hence detachable */
23109 status = pthread_detach( &t );
23110 if( status ) return errno;
23113 #ifdef HAVE_LINUX_THREADS
23114 pthread_kill_other_threads_np();
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_link") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest$ac_exeext &&
23140 $as_test_x conftest$ac_exeext; then
23141 ol_cv_pthread_lpthread=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ol_cv_pthread_lpthread=no
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150 conftest$ac_exeext conftest.$ac_ext
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23159 /* pthread test headers */
23160 #include <pthread.h>
23161 #if HAVE_PTHREADS < 7
23165 #define NULL (void*)0
23168 static void *task(p)
23171 return (void *) (p == NULL);
23175 int main(argc, argv)
23180 /* pthread test function */
23181 #ifndef PTHREAD_CREATE_DETACHED
23182 #define PTHREAD_CREATE_DETACHED 1
23186 int detach = PTHREAD_CREATE_DETACHED;
23188 #if HAVE_PTHREADS > 4
23189 /* Final pthreads */
23190 pthread_attr_t attr;
23192 status = pthread_attr_init(&attr);
23193 if( status ) return status;
23195 #if HAVE_PTHREADS < 7
23196 status = pthread_attr_setdetachstate(&attr, &detach);
23197 if( status < 0 ) status = errno;
23199 status = pthread_attr_setdetachstate(&attr, detach);
23201 if( status ) return status;
23202 status = pthread_create( &t, &attr, task, NULL );
23203 #if HAVE_PTHREADS < 7
23204 if( status < 0 ) status = errno;
23206 if( status ) return status;
23208 /* Draft 4 pthreads */
23209 status = pthread_create( &t, pthread_attr_default, task, NULL );
23210 if( status ) return errno;
23212 /* give thread a chance to complete */
23213 /* it should remain joinable and hence detachable */
23216 status = pthread_detach( &t );
23217 if( status ) return errno;
23220 #ifdef HAVE_LINUX_THREADS
23221 pthread_kill_other_threads_np();
23229 rm -f conftest$ac_exeext
23230 if { (ac_try="$ac_link"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_link") 2>&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23240 { (case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_try") 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }; then
23249 ol_cv_pthread_lpthread=yes
23251 echo "$as_me: program exited with status $ac_status" >&5
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23255 ( exit $ac_status )
23256 ol_cv_pthread_lpthread=no
23258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23267 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23268 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23270 if test $ol_cv_pthread_lpthread = yes ; then
23271 ol_link_pthreads="-lpthread"
23272 ol_link_threads=posix
23276 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23277 if test "$ol_link_threads" = no ; then
23279 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23280 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23281 if test "${ol_cv_pthread_lc_r+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 if test "$cross_compiling" = yes; then
23290 cat >conftest.$ac_ext <<_ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23297 /* pthread test headers */
23298 #include <pthread.h>
23299 #if HAVE_PTHREADS < 7
23303 #define NULL (void*)0
23306 static void *task(p)
23309 return (void *) (p == NULL);
23316 /* pthread test function */
23317 #ifndef PTHREAD_CREATE_DETACHED
23318 #define PTHREAD_CREATE_DETACHED 1
23322 int detach = PTHREAD_CREATE_DETACHED;
23324 #if HAVE_PTHREADS > 4
23325 /* Final pthreads */
23326 pthread_attr_t attr;
23328 status = pthread_attr_init(&attr);
23329 if( status ) return status;
23331 #if HAVE_PTHREADS < 7
23332 status = pthread_attr_setdetachstate(&attr, &detach);
23333 if( status < 0 ) status = errno;
23335 status = pthread_attr_setdetachstate(&attr, detach);
23337 if( status ) return status;
23338 status = pthread_create( &t, &attr, task, NULL );
23339 #if HAVE_PTHREADS < 7
23340 if( status < 0 ) status = errno;
23342 if( status ) return status;
23344 /* Draft 4 pthreads */
23345 status = pthread_create( &t, pthread_attr_default, task, NULL );
23346 if( status ) return errno;
23348 /* give thread a chance to complete */
23349 /* it should remain joinable and hence detachable */
23352 status = pthread_detach( &t );
23353 if( status ) return errno;
23356 #ifdef HAVE_LINUX_THREADS
23357 pthread_kill_other_threads_np();
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_link") 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest$ac_exeext &&
23383 $as_test_x conftest$ac_exeext; then
23384 ol_cv_pthread_lc_r=yes
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ol_cv_pthread_lc_r=no
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23402 /* pthread test headers */
23403 #include <pthread.h>
23404 #if HAVE_PTHREADS < 7
23408 #define NULL (void*)0
23411 static void *task(p)
23414 return (void *) (p == NULL);
23418 int main(argc, argv)
23423 /* pthread test function */
23424 #ifndef PTHREAD_CREATE_DETACHED
23425 #define PTHREAD_CREATE_DETACHED 1
23429 int detach = PTHREAD_CREATE_DETACHED;
23431 #if HAVE_PTHREADS > 4
23432 /* Final pthreads */
23433 pthread_attr_t attr;
23435 status = pthread_attr_init(&attr);
23436 if( status ) return status;
23438 #if HAVE_PTHREADS < 7
23439 status = pthread_attr_setdetachstate(&attr, &detach);
23440 if( status < 0 ) status = errno;
23442 status = pthread_attr_setdetachstate(&attr, detach);
23444 if( status ) return status;
23445 status = pthread_create( &t, &attr, task, NULL );
23446 #if HAVE_PTHREADS < 7
23447 if( status < 0 ) status = errno;
23449 if( status ) return status;
23451 /* Draft 4 pthreads */
23452 status = pthread_create( &t, pthread_attr_default, task, NULL );
23453 if( status ) return errno;
23455 /* give thread a chance to complete */
23456 /* it should remain joinable and hence detachable */
23459 status = pthread_detach( &t );
23460 if( status ) return errno;
23463 #ifdef HAVE_LINUX_THREADS
23464 pthread_kill_other_threads_np();
23472 rm -f conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_link") 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483 { (case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_try") 2>&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 ol_cv_pthread_lc_r=yes
23494 echo "$as_me: program exited with status $ac_status" >&5
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ( exit $ac_status )
23499 ol_cv_pthread_lc_r=no
23501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23510 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23511 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23513 if test $ol_cv_pthread_lc_r = yes ; then
23514 ol_link_pthreads="-lc_r"
23515 ol_link_threads=posix
23520 # Pthread try link: -threads (ol_cv_pthread_threads)
23521 if test "$ol_link_threads" = no ; then
23523 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23524 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23525 if test "${ol_cv_pthread_threads+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 LIBS="-threads $LIBS"
23533 if test "$cross_compiling" = yes; then
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23541 /* pthread test headers */
23542 #include <pthread.h>
23543 #if HAVE_PTHREADS < 7
23547 #define NULL (void*)0
23550 static void *task(p)
23553 return (void *) (p == NULL);
23560 /* pthread test function */
23561 #ifndef PTHREAD_CREATE_DETACHED
23562 #define PTHREAD_CREATE_DETACHED 1
23566 int detach = PTHREAD_CREATE_DETACHED;
23568 #if HAVE_PTHREADS > 4
23569 /* Final pthreads */
23570 pthread_attr_t attr;
23572 status = pthread_attr_init(&attr);
23573 if( status ) return status;
23575 #if HAVE_PTHREADS < 7
23576 status = pthread_attr_setdetachstate(&attr, &detach);
23577 if( status < 0 ) status = errno;
23579 status = pthread_attr_setdetachstate(&attr, detach);
23581 if( status ) return status;
23582 status = pthread_create( &t, &attr, task, NULL );
23583 #if HAVE_PTHREADS < 7
23584 if( status < 0 ) status = errno;
23586 if( status ) return status;
23588 /* Draft 4 pthreads */
23589 status = pthread_create( &t, pthread_attr_default, task, NULL );
23590 if( status ) return errno;
23592 /* give thread a chance to complete */
23593 /* it should remain joinable and hence detachable */
23596 status = pthread_detach( &t );
23597 if( status ) return errno;
23600 #ifdef HAVE_LINUX_THREADS
23601 pthread_kill_other_threads_np();
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (ac_try="$ac_link"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617 (eval "$ac_link") 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest$ac_exeext &&
23627 $as_test_x conftest$ac_exeext; then
23628 ol_cv_pthread_threads=yes
23630 echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23633 ol_cv_pthread_threads=no
23636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23637 conftest$ac_exeext conftest.$ac_ext
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23646 /* pthread test headers */
23647 #include <pthread.h>
23648 #if HAVE_PTHREADS < 7
23652 #define NULL (void*)0
23655 static void *task(p)
23658 return (void *) (p == NULL);
23662 int main(argc, argv)
23667 /* pthread test function */
23668 #ifndef PTHREAD_CREATE_DETACHED
23669 #define PTHREAD_CREATE_DETACHED 1
23673 int detach = PTHREAD_CREATE_DETACHED;
23675 #if HAVE_PTHREADS > 4
23676 /* Final pthreads */
23677 pthread_attr_t attr;
23679 status = pthread_attr_init(&attr);
23680 if( status ) return status;
23682 #if HAVE_PTHREADS < 7
23683 status = pthread_attr_setdetachstate(&attr, &detach);
23684 if( status < 0 ) status = errno;
23686 status = pthread_attr_setdetachstate(&attr, detach);
23688 if( status ) return status;
23689 status = pthread_create( &t, &attr, task, NULL );
23690 #if HAVE_PTHREADS < 7
23691 if( status < 0 ) status = errno;
23693 if( status ) return status;
23695 /* Draft 4 pthreads */
23696 status = pthread_create( &t, pthread_attr_default, task, NULL );
23697 if( status ) return errno;
23699 /* give thread a chance to complete */
23700 /* it should remain joinable and hence detachable */
23703 status = pthread_detach( &t );
23704 if( status ) return errno;
23707 #ifdef HAVE_LINUX_THREADS
23708 pthread_kill_other_threads_np();
23716 rm -f conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_link") 2>&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23727 { (case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_try") 2>&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; }; then
23736 ol_cv_pthread_threads=yes
23738 echo "$as_me: program exited with status $ac_status" >&5
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23742 ( exit $ac_status )
23743 ol_cv_pthread_threads=no
23745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23754 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23755 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23757 if test $ol_cv_pthread_threads = yes ; then
23758 ol_link_pthreads="-threads"
23759 ol_link_threads=posix
23764 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23765 if test "$ol_link_threads" = no ; then
23766 # try -lpthreads -lmach -lexc -lc_r
23767 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23768 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23769 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23777 if test "$cross_compiling" = yes; then
23778 cat >conftest.$ac_ext <<_ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23785 /* pthread test headers */
23786 #include <pthread.h>
23787 #if HAVE_PTHREADS < 7
23791 #define NULL (void*)0
23794 static void *task(p)
23797 return (void *) (p == NULL);
23804 /* pthread test function */
23805 #ifndef PTHREAD_CREATE_DETACHED
23806 #define PTHREAD_CREATE_DETACHED 1
23810 int detach = PTHREAD_CREATE_DETACHED;
23812 #if HAVE_PTHREADS > 4
23813 /* Final pthreads */
23814 pthread_attr_t attr;
23816 status = pthread_attr_init(&attr);
23817 if( status ) return status;
23819 #if HAVE_PTHREADS < 7
23820 status = pthread_attr_setdetachstate(&attr, &detach);
23821 if( status < 0 ) status = errno;
23823 status = pthread_attr_setdetachstate(&attr, detach);
23825 if( status ) return status;
23826 status = pthread_create( &t, &attr, task, NULL );
23827 #if HAVE_PTHREADS < 7
23828 if( status < 0 ) status = errno;
23830 if( status ) return status;
23832 /* Draft 4 pthreads */
23833 status = pthread_create( &t, pthread_attr_default, task, NULL );
23834 if( status ) return errno;
23836 /* give thread a chance to complete */
23837 /* it should remain joinable and hence detachable */
23840 status = pthread_detach( &t );
23841 if( status ) return errno;
23844 #ifdef HAVE_LINUX_THREADS
23845 pthread_kill_other_threads_np();
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (ac_try="$ac_link"
23856 case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_link") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && {
23868 test -z "$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23870 } && test -s conftest$ac_exeext &&
23871 $as_test_x conftest$ac_exeext; then
23872 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23881 conftest$ac_exeext conftest.$ac_ext
23883 cat >conftest.$ac_ext <<_ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23890 /* pthread test headers */
23891 #include <pthread.h>
23892 #if HAVE_PTHREADS < 7
23896 #define NULL (void*)0
23899 static void *task(p)
23902 return (void *) (p == NULL);
23906 int main(argc, argv)
23911 /* pthread test function */
23912 #ifndef PTHREAD_CREATE_DETACHED
23913 #define PTHREAD_CREATE_DETACHED 1
23917 int detach = PTHREAD_CREATE_DETACHED;
23919 #if HAVE_PTHREADS > 4
23920 /* Final pthreads */
23921 pthread_attr_t attr;
23923 status = pthread_attr_init(&attr);
23924 if( status ) return status;
23926 #if HAVE_PTHREADS < 7
23927 status = pthread_attr_setdetachstate(&attr, &detach);
23928 if( status < 0 ) status = errno;
23930 status = pthread_attr_setdetachstate(&attr, detach);
23932 if( status ) return status;
23933 status = pthread_create( &t, &attr, task, NULL );
23934 #if HAVE_PTHREADS < 7
23935 if( status < 0 ) status = errno;
23937 if( status ) return status;
23939 /* Draft 4 pthreads */
23940 status = pthread_create( &t, pthread_attr_default, task, NULL );
23941 if( status ) return errno;
23943 /* give thread a chance to complete */
23944 /* it should remain joinable and hence detachable */
23947 status = pthread_detach( &t );
23948 if( status ) return errno;
23951 #ifdef HAVE_LINUX_THREADS
23952 pthread_kill_other_threads_np();
23960 rm -f conftest$ac_exeext
23961 if { (ac_try="$ac_link"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_link") 2>&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23971 { (case "(($ac_try" in
23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973 *) ac_try_echo=$ac_try;;
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976 (eval "$ac_try") 2>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; }; then
23980 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23982 echo "$as_me: program exited with status $ac_status" >&5
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ( exit $ac_status )
23987 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23998 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23999 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24001 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24002 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24003 ol_link_threads=posix
24007 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24008 if test "$ol_link_threads" = no ; then
24009 # try -lpthreads -lmach -lexc
24010 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24011 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24012 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24013 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 LIBS="-lpthreads -lmach -lexc $LIBS"
24020 if test "$cross_compiling" = yes; then
24021 cat >conftest.$ac_ext <<_ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24028 /* pthread test headers */
24029 #include <pthread.h>
24030 #if HAVE_PTHREADS < 7
24034 #define NULL (void*)0
24037 static void *task(p)
24040 return (void *) (p == NULL);
24047 /* pthread test function */
24048 #ifndef PTHREAD_CREATE_DETACHED
24049 #define PTHREAD_CREATE_DETACHED 1
24053 int detach = PTHREAD_CREATE_DETACHED;
24055 #if HAVE_PTHREADS > 4
24056 /* Final pthreads */
24057 pthread_attr_t attr;
24059 status = pthread_attr_init(&attr);
24060 if( status ) return status;
24062 #if HAVE_PTHREADS < 7
24063 status = pthread_attr_setdetachstate(&attr, &detach);
24064 if( status < 0 ) status = errno;
24066 status = pthread_attr_setdetachstate(&attr, detach);
24068 if( status ) return status;
24069 status = pthread_create( &t, &attr, task, NULL );
24070 #if HAVE_PTHREADS < 7
24071 if( status < 0 ) status = errno;
24073 if( status ) return status;
24075 /* Draft 4 pthreads */
24076 status = pthread_create( &t, pthread_attr_default, task, NULL );
24077 if( status ) return errno;
24079 /* give thread a chance to complete */
24080 /* it should remain joinable and hence detachable */
24083 status = pthread_detach( &t );
24084 if( status ) return errno;
24087 #ifdef HAVE_LINUX_THREADS
24088 pthread_kill_other_threads_np();
24097 rm -f conftest.$ac_objext conftest$ac_exeext
24098 if { (ac_try="$ac_link"
24099 case "(($ac_try" in
24100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101 *) ac_try_echo=$ac_try;;
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104 (eval "$ac_link") 2>conftest.er1
24106 grep -v '^ *+' conftest.er1 >conftest.err
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } && {
24111 test -z "$ac_c_werror_flag" ||
24112 test ! -s conftest.err
24113 } && test -s conftest$ac_exeext &&
24114 $as_test_x conftest$ac_exeext; then
24115 ol_cv_pthread_lpthreads_lmach_lexc=yes
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ol_cv_pthread_lpthreads_lmach_lexc=no
24123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24124 conftest$ac_exeext conftest.$ac_ext
24126 cat >conftest.$ac_ext <<_ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24133 /* pthread test headers */
24134 #include <pthread.h>
24135 #if HAVE_PTHREADS < 7
24139 #define NULL (void*)0
24142 static void *task(p)
24145 return (void *) (p == NULL);
24149 int main(argc, argv)
24154 /* pthread test function */
24155 #ifndef PTHREAD_CREATE_DETACHED
24156 #define PTHREAD_CREATE_DETACHED 1
24160 int detach = PTHREAD_CREATE_DETACHED;
24162 #if HAVE_PTHREADS > 4
24163 /* Final pthreads */
24164 pthread_attr_t attr;
24166 status = pthread_attr_init(&attr);
24167 if( status ) return status;
24169 #if HAVE_PTHREADS < 7
24170 status = pthread_attr_setdetachstate(&attr, &detach);
24171 if( status < 0 ) status = errno;
24173 status = pthread_attr_setdetachstate(&attr, detach);
24175 if( status ) return status;
24176 status = pthread_create( &t, &attr, task, NULL );
24177 #if HAVE_PTHREADS < 7
24178 if( status < 0 ) status = errno;
24180 if( status ) return status;
24182 /* Draft 4 pthreads */
24183 status = pthread_create( &t, pthread_attr_default, task, NULL );
24184 if( status ) return errno;
24186 /* give thread a chance to complete */
24187 /* it should remain joinable and hence detachable */
24190 status = pthread_detach( &t );
24191 if( status ) return errno;
24194 #ifdef HAVE_LINUX_THREADS
24195 pthread_kill_other_threads_np();
24203 rm -f conftest$ac_exeext
24204 if { (ac_try="$ac_link"
24205 case "(($ac_try" in
24206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207 *) ac_try_echo=$ac_try;;
24209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24210 (eval "$ac_link") 2>&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24214 { (case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_try") 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; }; then
24223 ol_cv_pthread_lpthreads_lmach_lexc=yes
24225 echo "$as_me: program exited with status $ac_status" >&5
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24229 ( exit $ac_status )
24230 ol_cv_pthread_lpthreads_lmach_lexc=no
24232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24241 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24242 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24244 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24245 ol_link_pthreads="-lpthreads -lmach -lexc"
24246 ol_link_threads=posix
24250 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24251 if test "$ol_link_threads" = no ; then
24252 # try -lpthreads -lexc
24253 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24254 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24255 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24261 LIBS="-lpthreads -lexc $LIBS"
24263 if test "$cross_compiling" = yes; then
24264 cat >conftest.$ac_ext <<_ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24271 /* pthread test headers */
24272 #include <pthread.h>
24273 #if HAVE_PTHREADS < 7
24277 #define NULL (void*)0
24280 static void *task(p)
24283 return (void *) (p == NULL);
24290 /* pthread test function */
24291 #ifndef PTHREAD_CREATE_DETACHED
24292 #define PTHREAD_CREATE_DETACHED 1
24296 int detach = PTHREAD_CREATE_DETACHED;
24298 #if HAVE_PTHREADS > 4
24299 /* Final pthreads */
24300 pthread_attr_t attr;
24302 status = pthread_attr_init(&attr);
24303 if( status ) return status;
24305 #if HAVE_PTHREADS < 7
24306 status = pthread_attr_setdetachstate(&attr, &detach);
24307 if( status < 0 ) status = errno;
24309 status = pthread_attr_setdetachstate(&attr, detach);
24311 if( status ) return status;
24312 status = pthread_create( &t, &attr, task, NULL );
24313 #if HAVE_PTHREADS < 7
24314 if( status < 0 ) status = errno;
24316 if( status ) return status;
24318 /* Draft 4 pthreads */
24319 status = pthread_create( &t, pthread_attr_default, task, NULL );
24320 if( status ) return errno;
24322 /* give thread a chance to complete */
24323 /* it should remain joinable and hence detachable */
24326 status = pthread_detach( &t );
24327 if( status ) return errno;
24330 #ifdef HAVE_LINUX_THREADS
24331 pthread_kill_other_threads_np();
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_link") 2>conftest.er1
24349 grep -v '^ *+' conftest.er1 >conftest.err
24351 cat conftest.err >&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } && {
24354 test -z "$ac_c_werror_flag" ||
24355 test ! -s conftest.err
24356 } && test -s conftest$ac_exeext &&
24357 $as_test_x conftest$ac_exeext; then
24358 ol_cv_pthread_lpthreads_lexc=yes
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 ol_cv_pthread_lpthreads_lexc=no
24366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 conftest$ac_exeext conftest.$ac_ext
24369 cat >conftest.$ac_ext <<_ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24376 /* pthread test headers */
24377 #include <pthread.h>
24378 #if HAVE_PTHREADS < 7
24382 #define NULL (void*)0
24385 static void *task(p)
24388 return (void *) (p == NULL);
24392 int main(argc, argv)
24397 /* pthread test function */
24398 #ifndef PTHREAD_CREATE_DETACHED
24399 #define PTHREAD_CREATE_DETACHED 1
24403 int detach = PTHREAD_CREATE_DETACHED;
24405 #if HAVE_PTHREADS > 4
24406 /* Final pthreads */
24407 pthread_attr_t attr;
24409 status = pthread_attr_init(&attr);
24410 if( status ) return status;
24412 #if HAVE_PTHREADS < 7
24413 status = pthread_attr_setdetachstate(&attr, &detach);
24414 if( status < 0 ) status = errno;
24416 status = pthread_attr_setdetachstate(&attr, detach);
24418 if( status ) return status;
24419 status = pthread_create( &t, &attr, task, NULL );
24420 #if HAVE_PTHREADS < 7
24421 if( status < 0 ) status = errno;
24423 if( status ) return status;
24425 /* Draft 4 pthreads */
24426 status = pthread_create( &t, pthread_attr_default, task, NULL );
24427 if( status ) return errno;
24429 /* give thread a chance to complete */
24430 /* it should remain joinable and hence detachable */
24433 status = pthread_detach( &t );
24434 if( status ) return errno;
24437 #ifdef HAVE_LINUX_THREADS
24438 pthread_kill_other_threads_np();
24446 rm -f conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453 (eval "$ac_link") 2>&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24457 { (case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_try") 2>&5
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; }; then
24466 ol_cv_pthread_lpthreads_lexc=yes
24468 echo "$as_me: program exited with status $ac_status" >&5
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ( exit $ac_status )
24473 ol_cv_pthread_lpthreads_lexc=no
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24484 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24485 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24487 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24488 ol_link_pthreads="-lpthreads -lexc"
24489 ol_link_threads=posix
24494 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24495 if test "$ol_link_threads" = no ; then
24497 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24498 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24499 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24505 LIBS="-lpthreads $LIBS"
24507 if test "$cross_compiling" = yes; then
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24515 /* pthread test headers */
24516 #include <pthread.h>
24517 #if HAVE_PTHREADS < 7
24521 #define NULL (void*)0
24524 static void *task(p)
24527 return (void *) (p == NULL);
24534 /* pthread test function */
24535 #ifndef PTHREAD_CREATE_DETACHED
24536 #define PTHREAD_CREATE_DETACHED 1
24540 int detach = PTHREAD_CREATE_DETACHED;
24542 #if HAVE_PTHREADS > 4
24543 /* Final pthreads */
24544 pthread_attr_t attr;
24546 status = pthread_attr_init(&attr);
24547 if( status ) return status;
24549 #if HAVE_PTHREADS < 7
24550 status = pthread_attr_setdetachstate(&attr, &detach);
24551 if( status < 0 ) status = errno;
24553 status = pthread_attr_setdetachstate(&attr, detach);
24555 if( status ) return status;
24556 status = pthread_create( &t, &attr, task, NULL );
24557 #if HAVE_PTHREADS < 7
24558 if( status < 0 ) status = errno;
24560 if( status ) return status;
24562 /* Draft 4 pthreads */
24563 status = pthread_create( &t, pthread_attr_default, task, NULL );
24564 if( status ) return errno;
24566 /* give thread a chance to complete */
24567 /* it should remain joinable and hence detachable */
24570 status = pthread_detach( &t );
24571 if( status ) return errno;
24574 #ifdef HAVE_LINUX_THREADS
24575 pthread_kill_other_threads_np();
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_link") 2>conftest.er1
24593 grep -v '^ *+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } && {
24598 test -z "$ac_c_werror_flag" ||
24599 test ! -s conftest.err
24600 } && test -s conftest$ac_exeext &&
24601 $as_test_x conftest$ac_exeext; then
24602 ol_cv_pthread_lib_lpthreads=yes
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 ol_cv_pthread_lib_lpthreads=no
24610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24611 conftest$ac_exeext conftest.$ac_ext
24613 cat >conftest.$ac_ext <<_ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h. */
24620 /* pthread test headers */
24621 #include <pthread.h>
24622 #if HAVE_PTHREADS < 7
24626 #define NULL (void*)0
24629 static void *task(p)
24632 return (void *) (p == NULL);
24636 int main(argc, argv)
24641 /* pthread test function */
24642 #ifndef PTHREAD_CREATE_DETACHED
24643 #define PTHREAD_CREATE_DETACHED 1
24647 int detach = PTHREAD_CREATE_DETACHED;
24649 #if HAVE_PTHREADS > 4
24650 /* Final pthreads */
24651 pthread_attr_t attr;
24653 status = pthread_attr_init(&attr);
24654 if( status ) return status;
24656 #if HAVE_PTHREADS < 7
24657 status = pthread_attr_setdetachstate(&attr, &detach);
24658 if( status < 0 ) status = errno;
24660 status = pthread_attr_setdetachstate(&attr, detach);
24662 if( status ) return status;
24663 status = pthread_create( &t, &attr, task, NULL );
24664 #if HAVE_PTHREADS < 7
24665 if( status < 0 ) status = errno;
24667 if( status ) return status;
24669 /* Draft 4 pthreads */
24670 status = pthread_create( &t, pthread_attr_default, task, NULL );
24671 if( status ) return errno;
24673 /* give thread a chance to complete */
24674 /* it should remain joinable and hence detachable */
24677 status = pthread_detach( &t );
24678 if( status ) return errno;
24681 #ifdef HAVE_LINUX_THREADS
24682 pthread_kill_other_threads_np();
24690 rm -f conftest$ac_exeext
24691 if { (ac_try="$ac_link"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_link") 2>&5
24699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24701 { (case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_try") 2>&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); }; }; then
24710 ol_cv_pthread_lib_lpthreads=yes
24712 echo "$as_me: program exited with status $ac_status" >&5
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24716 ( exit $ac_status )
24717 ol_cv_pthread_lib_lpthreads=no
24719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24728 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24729 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24731 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24732 ol_link_pthreads="-lpthreads"
24733 ol_link_threads=posix
24738 if test $ol_link_threads != no ; then
24739 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24741 save_CPPFLAGS="$CPPFLAGS"
24743 LIBS="$LTHREAD_LIBS $LIBS"
24748 for ac_func in sched_yield pthread_yield thr_yield
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define $ac_func innocuous_$ac_func
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char $ac_func (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24772 # include <limits.h>
24774 # include <assert.h>
24779 /* Override any GCC internal prototype to avoid an error.
24780 Use char because int might match the return type of a GCC
24781 builtin and then its argument prototype would still apply. */
24786 /* The GNU C library defines this for functions which it implements
24787 to always fail with ENOSYS. Some functions are actually named
24788 something starting with __ and the normal name is an alias. */
24789 #if defined __stub_$ac_func || defined __stub___$ac_func
24796 return $ac_func ();
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_link") 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest$ac_exeext &&
24818 $as_test_x conftest$ac_exeext; then
24819 eval "$as_ac_var=yes"
24821 echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 eval "$as_ac_var=no"
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828 conftest$ac_exeext conftest.$ac_ext
24830 ac_res=`eval echo '${'$as_ac_var'}'`
24831 { echo "$as_me:$LINENO: result: $ac_res" >&5
24832 echo "${ECHO_T}$ac_res" >&6; }
24833 if test `eval echo '${'$as_ac_var'}'` = yes; then
24834 cat >>confdefs.h <<_ACEOF
24835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24842 if test $ac_cv_func_sched_yield = no &&
24843 test $ac_cv_func_pthread_yield = no &&
24844 test $ac_cv_func_thr_yield = no ; then
24845 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24846 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24847 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24848 echo $ECHO_N "(cached) $ECHO_C" >&6
24850 ac_check_lib_save_LIBS=$LIBS
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24859 /* Override any GCC internal prototype to avoid an error.
24860 Use char because int might match the return type of a GCC
24861 builtin and then its argument prototype would still apply. */
24865 char sched_yield ();
24869 return sched_yield ();
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (ac_try="$ac_link"
24876 case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_link") 2>conftest.er1
24883 grep -v '^ *+' conftest.er1 >conftest.err
24885 cat conftest.err >&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } && {
24888 test -z "$ac_c_werror_flag" ||
24889 test ! -s conftest.err
24890 } && test -s conftest$ac_exeext &&
24891 $as_test_x conftest$ac_exeext; then
24892 ac_cv_lib_rt_sched_yield=yes
24894 echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24897 ac_cv_lib_rt_sched_yield=no
24900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24901 conftest$ac_exeext conftest.$ac_ext
24902 LIBS=$ac_check_lib_save_LIBS
24904 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24905 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24906 if test $ac_cv_lib_rt_sched_yield = yes; then
24907 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24909 cat >>confdefs.h <<\_ACEOF
24910 #define HAVE_SCHED_YIELD 1
24913 ac_cv_func_sched_yield=yes
24915 ac_cv_func_sched_yield=no
24919 if test $ac_cv_func_sched_yield = no &&
24920 test $ac_cv_func_pthread_yield = no &&
24921 test "$ac_cv_func_thr_yield" = no ; then
24922 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24923 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24927 for ac_func in pthread_kill
24929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24943 #define $ac_func innocuous_$ac_func
24945 /* System header to define __stub macros and hopefully few prototypes,
24946 which can conflict with char $ac_func (); below.
24947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24948 <limits.h> exists even on freestanding compilers. */
24951 # include <limits.h>
24953 # include <assert.h>
24958 /* Override any GCC internal prototype to avoid an error.
24959 Use char because int might match the return type of a GCC
24960 builtin and then its argument prototype would still apply. */
24965 /* The GNU C library defines this for functions which it implements
24966 to always fail with ENOSYS. Some functions are actually named
24967 something starting with __ and the normal name is an alias. */
24968 #if defined __stub_$ac_func || defined __stub___$ac_func
24975 return $ac_func ();
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987 (eval "$ac_link") 2>conftest.er1
24989 grep -v '^ *+' conftest.er1 >conftest.err
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } && {
24994 test -z "$ac_c_werror_flag" ||
24995 test ! -s conftest.err
24996 } && test -s conftest$ac_exeext &&
24997 $as_test_x conftest$ac_exeext; then
24998 eval "$as_ac_var=yes"
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 eval "$as_ac_var=no"
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007 conftest$ac_exeext conftest.$ac_ext
25009 ac_res=`eval echo '${'$as_ac_var'}'`
25010 { echo "$as_me:$LINENO: result: $ac_res" >&5
25011 echo "${ECHO_T}$ac_res" >&6; }
25012 if test `eval echo '${'$as_ac_var'}'` = yes; then
25013 cat >>confdefs.h <<_ACEOF
25014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25021 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25022 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25023 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 #include <pthread.h>
25035 pthread_rwlock_t rwlock;
25040 pthread_rwlock_destroy(&rwlock);
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest$ac_exeext &&
25062 $as_test_x conftest$ac_exeext; then
25063 ol_cv_func_pthread_rwlock_destroy=yes
25065 echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25068 ol_cv_func_pthread_rwlock_destroy=no
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072 conftest$ac_exeext conftest.$ac_ext
25075 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25076 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25077 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25085 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25086 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25087 if test "${ol_cv_func_pthread_detach+set}" = set; then
25088 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25098 #include <pthread.h>
25100 #define NULL (void*)0
25106 pthread_detach(NULL);
25111 rm -f conftest.$ac_objext conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_link") 2>conftest.er1
25120 grep -v '^ *+' conftest.er1 >conftest.err
25122 cat conftest.err >&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && {
25125 test -z "$ac_c_werror_flag" ||
25126 test ! -s conftest.err
25127 } && test -s conftest$ac_exeext &&
25128 $as_test_x conftest$ac_exeext; then
25129 ol_cv_func_pthread_detach=yes
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ol_cv_func_pthread_detach=no
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138 conftest$ac_exeext conftest.$ac_ext
25141 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25142 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25144 if test $ol_cv_func_pthread_detach = no ; then
25145 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25146 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25147 { (exit 1); exit 1; }; }
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_PTHREAD_DETACH 1
25161 pthread_setconcurrency \
25162 pthread_getconcurrency \
25163 thr_setconcurrency \
25164 thr_getconcurrency \
25167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25181 #define $ac_func innocuous_$ac_func
25183 /* System header to define __stub macros and hopefully few prototypes,
25184 which can conflict with char $ac_func (); below.
25185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25186 <limits.h> exists even on freestanding compilers. */
25189 # include <limits.h>
25191 # include <assert.h>
25196 /* Override any GCC internal prototype to avoid an error.
25197 Use char because int might match the return type of a GCC
25198 builtin and then its argument prototype would still apply. */
25203 /* The GNU C library defines this for functions which it implements
25204 to always fail with ENOSYS. Some functions are actually named
25205 something starting with __ and the normal name is an alias. */
25206 #if defined __stub_$ac_func || defined __stub___$ac_func
25213 return $ac_func ();
25218 rm -f conftest.$ac_objext conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222 *) ac_try_echo=$ac_try;;
25224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25225 (eval "$ac_link") 2>conftest.er1
25227 grep -v '^ *+' conftest.er1 >conftest.err
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } && {
25232 test -z "$ac_c_werror_flag" ||
25233 test ! -s conftest.err
25234 } && test -s conftest$ac_exeext &&
25235 $as_test_x conftest$ac_exeext; then
25236 eval "$as_ac_var=yes"
25238 echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25241 eval "$as_ac_var=no"
25244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25245 conftest$ac_exeext conftest.$ac_ext
25247 ac_res=`eval echo '${'$as_ac_var'}'`
25248 { echo "$as_me:$LINENO: result: $ac_res" >&5
25249 echo "${ECHO_T}$ac_res" >&6; }
25250 if test `eval echo '${'$as_ac_var'}'` = yes; then
25251 cat >>confdefs.h <<_ACEOF
25252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25261 for ac_func in pthread_kill_other_threads_np
25263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25269 cat >conftest.$ac_ext <<_ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25277 #define $ac_func innocuous_$ac_func
25279 /* System header to define __stub macros and hopefully few prototypes,
25280 which can conflict with char $ac_func (); below.
25281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282 <limits.h> exists even on freestanding compilers. */
25285 # include <limits.h>
25287 # include <assert.h>
25292 /* Override any GCC internal prototype to avoid an error.
25293 Use char because int might match the return type of a GCC
25294 builtin and then its argument prototype would still apply. */
25299 /* The GNU C library defines this for functions which it implements
25300 to always fail with ENOSYS. Some functions are actually named
25301 something starting with __ and the normal name is an alias. */
25302 #if defined __stub_$ac_func || defined __stub___$ac_func
25309 return $ac_func ();
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_link") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest$ac_exeext &&
25331 $as_test_x conftest$ac_exeext; then
25332 eval "$as_ac_var=yes"
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 eval "$as_ac_var=no"
25340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25341 conftest$ac_exeext conftest.$ac_ext
25343 ac_res=`eval echo '${'$as_ac_var'}'`
25344 { echo "$as_me:$LINENO: result: $ac_res" >&5
25345 echo "${ECHO_T}$ac_res" >&6; }
25346 if test `eval echo '${'$as_ac_var'}'` = yes; then
25347 cat >>confdefs.h <<_ACEOF
25348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25354 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25355 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25356 if test "${ol_cv_sys_linux_threads+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25361 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25362 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25367 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25368 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25369 if test "${ol_cv_linux_threads+set}" = set; then
25370 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 if test $ol_cv_header_linux_threads = yes &&
25374 test $ol_cv_sys_linux_threads = yes; then
25375 ol_cv_linux_threads=yes
25376 elif test $ol_cv_header_linux_threads = no &&
25377 test $ol_cv_sys_linux_threads = no; then
25378 ol_cv_linux_threads=no
25380 ol_cv_linux_threads=error
25384 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25385 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25388 if test $ol_cv_linux_threads = error; then
25389 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25390 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25391 { (exit 1); exit 1; }; };
25394 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25395 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25396 if test "${ol_cv_pthread_create_works+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 if test "$cross_compiling" = yes; then
25401 ol_cv_pthread_create_works=yes
25403 cat >conftest.$ac_ext <<_ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25410 /* pthread test headers */
25411 #include <pthread.h>
25412 #if HAVE_PTHREADS < 7
25416 #define NULL (void*)0
25419 static void *task(p)
25422 return (void *) (p == NULL);
25426 int main(argc, argv)
25431 /* pthread test function */
25432 #ifndef PTHREAD_CREATE_DETACHED
25433 #define PTHREAD_CREATE_DETACHED 1
25437 int detach = PTHREAD_CREATE_DETACHED;
25439 #if HAVE_PTHREADS > 4
25440 /* Final pthreads */
25441 pthread_attr_t attr;
25443 status = pthread_attr_init(&attr);
25444 if( status ) return status;
25446 #if HAVE_PTHREADS < 7
25447 status = pthread_attr_setdetachstate(&attr, &detach);
25448 if( status < 0 ) status = errno;
25450 status = pthread_attr_setdetachstate(&attr, detach);
25452 if( status ) return status;
25453 status = pthread_create( &t, &attr, task, NULL );
25454 #if HAVE_PTHREADS < 7
25455 if( status < 0 ) status = errno;
25457 if( status ) return status;
25459 /* Draft 4 pthreads */
25460 status = pthread_create( &t, pthread_attr_default, task, NULL );
25461 if( status ) return errno;
25463 /* give thread a chance to complete */
25464 /* it should remain joinable and hence detachable */
25467 status = pthread_detach( &t );
25468 if( status ) return errno;
25471 #ifdef HAVE_LINUX_THREADS
25472 pthread_kill_other_threads_np();
25480 rm -f conftest$ac_exeext
25481 if { (ac_try="$ac_link"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_link") 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491 { (case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496 (eval "$ac_try") 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500 ol_cv_pthread_create_works=yes
25502 echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25506 ( exit $ac_status )
25507 ol_cv_pthread_create_works=no
25509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25514 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25515 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25517 if test $ol_cv_pthread_create_works = no ; then
25518 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25519 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25520 { (exit 1); exit 1; }; }
25523 ol_replace_broken_yield=no
25525 if test $ol_replace_broken_yield = yes ; then
25527 cat >>confdefs.h <<\_ACEOF
25528 #define REPLACE_BROKEN_YIELD 1
25533 if test $ol_with_yielding_select = auto ; then
25534 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25535 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25536 if test "${ol_cv_pthread_select_yields+set}" = set; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 if test "$cross_compiling" = yes; then
25541 ol_cv_pthread_select_yields=cross
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25550 #include <sys/types.h>
25551 #include <sys/time.h>
25552 #include <unistd.h>
25553 #include <pthread.h>
25555 #define NULL (void*) 0
25558 static int fildes[2];
25560 static void *task(p)
25572 FD_SET(fildes[0], &rfds);
25574 /* we're not interested in any fds */
25575 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25582 exit(0); /* if we exit here, the select blocked the whole process */
25585 int main(argc, argv)
25591 /* create a pipe to select */
25592 if(pipe(&fildes[0])) {
25597 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25598 (void) pthread_setconcurrency(2);
25600 #ifdef HAVE_THR_SETCONCURRENCY
25601 /* Set Solaris LWP concurrency to 2 */
25602 thr_setconcurrency(2);
25606 #if HAVE_PTHREADS < 6
25607 pthread_create(&t, pthread_attr_default, task, NULL);
25609 pthread_create(&t, NULL, task, NULL);
25612 /* make sure task runs first */
25613 #ifdef HAVE_THR_YIELD
25615 #elif defined( HAVE_SCHED_YIELD )
25617 #elif defined( HAVE_PTHREAD_YIELD )
25624 rm -f conftest$ac_exeext
25625 if { (ac_try="$ac_link"
25626 case "(($ac_try" in
25627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628 *) ac_try_echo=$ac_try;;
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631 (eval "$ac_link") 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25635 { (case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_try") 2>&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
25644 ol_cv_pthread_select_yields=no
25646 echo "$as_me: program exited with status $ac_status" >&5
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ( exit $ac_status )
25651 ol_cv_pthread_select_yields=yes
25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25658 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25659 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25661 if test $ol_cv_pthread_select_yields = cross ; then
25662 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25663 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25664 { (exit 1); exit 1; }; }
25667 if test $ol_cv_pthread_select_yields = yes ; then
25668 ol_with_yielding_select=yes
25672 CPPFLAGS="$save_CPPFLAGS"
25675 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25676 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25677 { (exit 1); exit 1; }; }
25681 if test $ol_with_threads = posix ; then
25682 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25683 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25684 { (exit 1); exit 1; }; }
25689 case $ol_with_threads in auto | yes | mach)
25693 for ac_header in mach/cthreads.h cthreads.h
25695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 ac_res=`eval echo '${'$as_ac_Header'}'`
25703 { echo "$as_me:$LINENO: result: $ac_res" >&5
25704 echo "${ECHO_T}$ac_res" >&6; }
25706 # Is the header compilable?
25707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25709 cat >conftest.$ac_ext <<_ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 $ac_includes_default
25716 #include <$ac_header>
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_compile") 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } && {
25732 test -z "$ac_c_werror_flag" ||
25733 test ! -s conftest.err
25734 } && test -s conftest.$ac_objext; then
25735 ac_header_compiler=yes
25737 echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25740 ac_header_compiler=no
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25745 echo "${ECHO_T}$ac_header_compiler" >&6; }
25747 # Is the header present?
25748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 #include <$ac_header>
25758 if { (ac_try="$ac_cpp conftest.$ac_ext"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25766 grep -v '^ *+' conftest.er1 >conftest.err
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } >/dev/null && {
25771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25774 ac_header_preproc=yes
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_header_preproc=no
25782 rm -f conftest.err conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25784 echo "${ECHO_T}$ac_header_preproc" >&6; }
25786 # So? What about this header?
25787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25793 ac_header_preproc=yes
25796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25809 ## --------------------------------------------- ##
25810 ## Report this to <http://www.openldap.org/its/> ##
25811 ## --------------------------------------------- ##
25813 ) | sed "s/^/$as_me: WARNING: /" >&2
25816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 eval "$as_ac_Header=\$ac_header_preproc"
25823 ac_res=`eval echo '${'$as_ac_Header'}'`
25824 { echo "$as_me:$LINENO: result: $ac_res" >&5
25825 echo "${ECHO_T}$ac_res" >&6; }
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829 cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25837 if test $ac_cv_header_mach_cthreads_h = yes ; then
25838 ol_with_threads=found
25840 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25841 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25842 if test "${ac_cv_func_cthread_fork+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25845 cat >conftest.$ac_ext <<_ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h. */
25851 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25853 #define cthread_fork innocuous_cthread_fork
25855 /* System header to define __stub macros and hopefully few prototypes,
25856 which can conflict with char cthread_fork (); below.
25857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25858 <limits.h> exists even on freestanding compilers. */
25861 # include <limits.h>
25863 # include <assert.h>
25866 #undef cthread_fork
25868 /* Override any GCC internal prototype to avoid an error.
25869 Use char because int might match the return type of a GCC
25870 builtin and then its argument prototype would still apply. */
25874 char cthread_fork ();
25875 /* The GNU C library defines this for functions which it implements
25876 to always fail with ENOSYS. Some functions are actually named
25877 something starting with __ and the normal name is an alias. */
25878 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25885 return cthread_fork ();
25890 rm -f conftest.$ac_objext conftest$ac_exeext
25891 if { (ac_try="$ac_link"
25892 case "(($ac_try" in
25893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894 *) ac_try_echo=$ac_try;;
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897 (eval "$ac_link") 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } && {
25904 test -z "$ac_c_werror_flag" ||
25905 test ! -s conftest.err
25906 } && test -s conftest$ac_exeext &&
25907 $as_test_x conftest$ac_exeext; then
25908 ac_cv_func_cthread_fork=yes
25910 echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25913 ac_cv_func_cthread_fork=no
25916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25917 conftest$ac_exeext conftest.$ac_ext
25919 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25920 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25921 if test $ac_cv_func_cthread_fork = yes; then
25922 ol_link_threads=yes
25926 if test $ol_link_threads = no ; then
25927 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25928 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25929 if test "${ol_cv_cthread_all_load+set}" = set; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25934 LIBS="-all_load $LIBS"
25935 cat >conftest.$ac_ext <<_ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h. */
25941 #include <mach/cthreads.h>
25946 cthread_fork((void *)0, (void *)0);
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959 (eval "$ac_link") 2>conftest.er1
25961 grep -v '^ *+' conftest.er1 >conftest.err
25963 cat conftest.err >&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); } && {
25966 test -z "$ac_c_werror_flag" ||
25967 test ! -s conftest.err
25968 } && test -s conftest$ac_exeext &&
25969 $as_test_x conftest$ac_exeext; then
25970 ol_cv_cthread_all_load=yes
25972 echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 ol_cv_cthread_all_load=no
25978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25979 conftest$ac_exeext conftest.$ac_ext
25983 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25984 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25986 if test $ol_cv_cthread_all_load = yes ; then
25987 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25988 ol_link_threads=mach
25989 ol_with_threads=found
25993 elif test $ac_cv_header_cthreads_h = yes ; then
25995 ol_with_threads=found
25998 LIBS="$LIBS -lthreads"
25999 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26000 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26001 if test "${ac_cv_func_cthread_fork+set}" = set; then
26002 echo $ECHO_N "(cached) $ECHO_C" >&6
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26012 #define cthread_fork innocuous_cthread_fork
26014 /* System header to define __stub macros and hopefully few prototypes,
26015 which can conflict with char cthread_fork (); below.
26016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26017 <limits.h> exists even on freestanding compilers. */
26020 # include <limits.h>
26022 # include <assert.h>
26025 #undef cthread_fork
26027 /* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26033 char cthread_fork ();
26034 /* The GNU C library defines this for functions which it implements
26035 to always fail with ENOSYS. Some functions are actually named
26036 something starting with __ and the normal name is an alias. */
26037 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26044 return cthread_fork ();
26049 rm -f conftest.$ac_objext conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056 (eval "$ac_link") 2>conftest.er1
26058 grep -v '^ *+' conftest.er1 >conftest.err
26060 cat conftest.err >&5
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); } && {
26063 test -z "$ac_c_werror_flag" ||
26064 test ! -s conftest.err
26065 } && test -s conftest$ac_exeext &&
26066 $as_test_x conftest$ac_exeext; then
26067 ac_cv_func_cthread_fork=yes
26069 echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26072 ac_cv_func_cthread_fork=no
26075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26076 conftest$ac_exeext conftest.$ac_ext
26078 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26079 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26080 if test $ac_cv_func_cthread_fork = yes; then
26081 ol_link_threads=yes
26086 if test $ol_link_threads = yes ; then
26087 LTHREAD_LIBS="-lthreads"
26088 ol_link_threads=mach
26089 ol_with_threads=found
26091 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26092 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26093 { (exit 1); exit 1; }; }
26096 elif test $ol_with_threads = mach ; then
26097 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26098 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26099 { (exit 1); exit 1; }; }
26102 if test $ol_link_threads = mach ; then
26104 cat >>confdefs.h <<\_ACEOF
26105 #define HAVE_MACH_CTHREADS 1
26108 elif test $ol_with_threads = found ; then
26109 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26110 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26111 { (exit 1); exit 1; }; }
26116 case $ol_with_threads in auto | yes | pth)
26119 for ac_header in pth.h
26121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26126 echo $ECHO_N "(cached) $ECHO_C" >&6
26128 ac_res=`eval echo '${'$as_ac_Header'}'`
26129 { echo "$as_me:$LINENO: result: $ac_res" >&5
26130 echo "${ECHO_T}$ac_res" >&6; }
26132 # Is the header compilable?
26133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 $ac_includes_default
26142 #include <$ac_header>
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148 *) ac_try_echo=$ac_try;;
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151 (eval "$ac_compile") 2>conftest.er1
26153 grep -v '^ *+' conftest.er1 >conftest.err
26155 cat conftest.err >&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } && {
26158 test -z "$ac_c_werror_flag" ||
26159 test ! -s conftest.err
26160 } && test -s conftest.$ac_objext; then
26161 ac_header_compiler=yes
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26166 ac_header_compiler=no
26169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26171 echo "${ECHO_T}$ac_header_compiler" >&6; }
26173 # Is the header present?
26174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26176 cat >conftest.$ac_ext <<_ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 #include <$ac_header>
26184 if { (ac_try="$ac_cpp conftest.$ac_ext"
26185 case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } >/dev/null && {
26197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26200 ac_header_preproc=yes
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 ac_header_preproc=no
26208 rm -f conftest.err conftest.$ac_ext
26209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26210 echo "${ECHO_T}$ac_header_preproc" >&6; }
26212 # So? What about this header?
26213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26219 ac_header_preproc=yes
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26235 ## --------------------------------------------- ##
26236 ## Report this to <http://www.openldap.org/its/> ##
26237 ## --------------------------------------------- ##
26239 ) | sed "s/^/$as_me: WARNING: /" >&2
26242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26247 eval "$as_ac_Header=\$ac_header_preproc"
26249 ac_res=`eval echo '${'$as_ac_Header'}'`
26250 { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26255 cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26264 if test $ac_cv_header_pth_h = yes ; then
26265 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26266 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26267 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26270 ac_check_lib_save_LIBS=$LIBS
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26279 /* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26285 char pth_version ();
26289 return pth_version ();
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_link") 2>conftest.er1
26303 grep -v '^ *+' conftest.er1 >conftest.err
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest$ac_exeext &&
26311 $as_test_x conftest$ac_exeext; then
26312 ac_cv_lib_pth_pth_version=yes
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_cv_lib_pth_pth_version=no
26320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321 conftest$ac_exeext conftest.$ac_ext
26322 LIBS=$ac_check_lib_save_LIBS
26324 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26325 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26326 if test $ac_cv_lib_pth_pth_version = yes; then
26333 if test $have_pth = yes ; then
26335 cat >>confdefs.h <<\_ACEOF
26336 #define HAVE_GNU_PTH 1
26339 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26340 ol_link_threads=pth
26341 ol_with_threads=found
26343 if test $ol_with_yielding_select = auto ; then
26344 ol_with_yielding_select=yes
26351 case $ol_with_threads in auto | yes | lwp)
26355 for ac_header in thread.h synch.h
26357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 ac_res=`eval echo '${'$as_ac_Header'}'`
26365 { echo "$as_me:$LINENO: result: $ac_res" >&5
26366 echo "${ECHO_T}$ac_res" >&6; }
26368 # Is the header compilable?
26369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26371 cat >conftest.$ac_ext <<_ACEOF
26374 cat confdefs.h >>conftest.$ac_ext
26375 cat >>conftest.$ac_ext <<_ACEOF
26376 /* end confdefs.h. */
26377 $ac_includes_default
26378 #include <$ac_header>
26380 rm -f conftest.$ac_objext
26381 if { (ac_try="$ac_compile"
26382 case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387 (eval "$ac_compile") 2>conftest.er1
26389 grep -v '^ *+' conftest.er1 >conftest.err
26391 cat conftest.err >&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } && {
26394 test -z "$ac_c_werror_flag" ||
26395 test ! -s conftest.err
26396 } && test -s conftest.$ac_objext; then
26397 ac_header_compiler=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_header_compiler=no
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26407 echo "${ECHO_T}$ac_header_compiler" >&6; }
26409 # Is the header present?
26410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26412 cat >conftest.$ac_ext <<_ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h. */
26418 #include <$ac_header>
26420 if { (ac_try="$ac_cpp conftest.$ac_ext"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26428 grep -v '^ *+' conftest.er1 >conftest.err
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } >/dev/null && {
26433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26436 ac_header_preproc=yes
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26441 ac_header_preproc=no
26444 rm -f conftest.err conftest.$ac_ext
26445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6; }
26448 # So? What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455 ac_header_preproc=yes
26458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26471 ## --------------------------------------------- ##
26472 ## Report this to <http://www.openldap.org/its/> ##
26473 ## --------------------------------------------- ##
26475 ) | sed "s/^/$as_me: WARNING: /" >&2
26478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 eval "$as_ac_Header=\$ac_header_preproc"
26485 ac_res=`eval echo '${'$as_ac_Header'}'`
26486 { echo "$as_me:$LINENO: result: $ac_res" >&5
26487 echo "${ECHO_T}$ac_res" >&6; }
26490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26491 cat >>confdefs.h <<_ACEOF
26492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26499 if test $ac_cv_header_thread_h = yes &&
26500 test $ac_cv_header_synch_h = yes ; then
26501 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26502 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26503 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 ac_check_lib_save_LIBS=$LIBS
26507 LIBS="-lthread $LIBS"
26508 cat >conftest.$ac_ext <<_ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h. */
26515 /* Override any GCC internal prototype to avoid an error.
26516 Use char because int might match the return type of a GCC
26517 builtin and then its argument prototype would still apply. */
26521 char thr_create ();
26525 return thr_create ();
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (ac_try="$ac_link"
26532 case "(($ac_try" in
26533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534 *) ac_try_echo=$ac_try;;
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537 (eval "$ac_link") 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } && {
26544 test -z "$ac_c_werror_flag" ||
26545 test ! -s conftest.err
26546 } && test -s conftest$ac_exeext &&
26547 $as_test_x conftest$ac_exeext; then
26548 ac_cv_lib_thread_thr_create=yes
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 ac_cv_lib_thread_thr_create=no
26556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26557 conftest$ac_exeext conftest.$ac_ext
26558 LIBS=$ac_check_lib_save_LIBS
26560 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26561 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26562 if test $ac_cv_lib_thread_thr_create = yes; then
26569 if test $have_thr = yes ; then
26571 cat >>confdefs.h <<\_ACEOF
26575 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26576 ol_link_threads=thr
26578 if test $ol_with_yielding_select = auto ; then
26579 ol_with_yielding_select=yes
26585 thr_setconcurrency \
26586 thr_getconcurrency \
26589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26603 #define $ac_func innocuous_$ac_func
26605 /* System header to define __stub macros and hopefully few prototypes,
26606 which can conflict with char $ac_func (); below.
26607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26608 <limits.h> exists even on freestanding compilers. */
26611 # include <limits.h>
26613 # include <assert.h>
26618 /* Override any GCC internal prototype to avoid an error.
26619 Use char because int might match the return type of a GCC
26620 builtin and then its argument prototype would still apply. */
26625 /* The GNU C library defines this for functions which it implements
26626 to always fail with ENOSYS. Some functions are actually named
26627 something starting with __ and the normal name is an alias. */
26628 #if defined __stub_$ac_func || defined __stub___$ac_func
26635 return $ac_func ();
26640 rm -f conftest.$ac_objext conftest$ac_exeext
26641 if { (ac_try="$ac_link"
26642 case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647 (eval "$ac_link") 2>conftest.er1
26649 grep -v '^ *+' conftest.er1 >conftest.err
26651 cat conftest.err >&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } && {
26654 test -z "$ac_c_werror_flag" ||
26655 test ! -s conftest.err
26656 } && test -s conftest$ac_exeext &&
26657 $as_test_x conftest$ac_exeext; then
26658 eval "$as_ac_var=yes"
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 eval "$as_ac_var=no"
26666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26667 conftest$ac_exeext conftest.$ac_ext
26669 ac_res=`eval echo '${'$as_ac_var'}'`
26670 { echo "$as_me:$LINENO: result: $ac_res" >&5
26671 echo "${ECHO_T}$ac_res" >&6; }
26672 if test `eval echo '${'$as_ac_var'}'` = yes; then
26673 cat >>confdefs.h <<_ACEOF
26674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26685 if test $ol_with_yielding_select = yes ; then
26687 cat >>confdefs.h <<\_ACEOF
26688 #define HAVE_YIELDING_SELECT 1
26693 if test $ol_with_threads = manual ; then
26694 ol_link_threads=yes
26696 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26697 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26701 for ac_header in pthread.h sched.h
26703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708 echo $ECHO_N "(cached) $ECHO_C" >&6
26710 ac_res=`eval echo '${'$as_ac_Header'}'`
26711 { echo "$as_me:$LINENO: result: $ac_res" >&5
26712 echo "${ECHO_T}$ac_res" >&6; }
26714 # Is the header compilable?
26715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 $ac_includes_default
26724 #include <$ac_header>
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730 *) ac_try_echo=$ac_try;;
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733 (eval "$ac_compile") 2>conftest.er1
26735 grep -v '^ *+' conftest.er1 >conftest.err
26737 cat conftest.err >&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); } && {
26740 test -z "$ac_c_werror_flag" ||
26741 test ! -s conftest.err
26742 } && test -s conftest.$ac_objext; then
26743 ac_header_compiler=yes
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ac_header_compiler=no
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26753 echo "${ECHO_T}$ac_header_compiler" >&6; }
26755 # Is the header present?
26756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26758 cat >conftest.$ac_ext <<_ACEOF
26761 cat confdefs.h >>conftest.$ac_ext
26762 cat >>conftest.$ac_ext <<_ACEOF
26763 /* end confdefs.h. */
26764 #include <$ac_header>
26766 if { (ac_try="$ac_cpp conftest.$ac_ext"
26767 case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26774 grep -v '^ *+' conftest.er1 >conftest.err
26776 cat conftest.err >&5
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } >/dev/null && {
26779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26780 test ! -s conftest.err
26782 ac_header_preproc=yes
26784 echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26787 ac_header_preproc=no
26790 rm -f conftest.err conftest.$ac_ext
26791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26792 echo "${ECHO_T}$ac_header_preproc" >&6; }
26794 # So? What about this header?
26795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26801 ac_header_preproc=yes
26804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26817 ## --------------------------------------------- ##
26818 ## Report this to <http://www.openldap.org/its/> ##
26819 ## --------------------------------------------- ##
26821 ) | sed "s/^/$as_me: WARNING: /" >&2
26824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26827 echo $ECHO_N "(cached) $ECHO_C" >&6
26829 eval "$as_ac_Header=\$ac_header_preproc"
26831 ac_res=`eval echo '${'$as_ac_Header'}'`
26832 { echo "$as_me:$LINENO: result: $ac_res" >&5
26833 echo "${ECHO_T}$ac_res" >&6; }
26836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26837 cat >>confdefs.h <<_ACEOF
26838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26847 for ac_func in sched_yield pthread_yield
26849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26853 echo $ECHO_N "(cached) $ECHO_C" >&6
26855 cat >conftest.$ac_ext <<_ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h. */
26861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26863 #define $ac_func innocuous_$ac_func
26865 /* System header to define __stub macros and hopefully few prototypes,
26866 which can conflict with char $ac_func (); below.
26867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26868 <limits.h> exists even on freestanding compilers. */
26871 # include <limits.h>
26873 # include <assert.h>
26878 /* Override any GCC internal prototype to avoid an error.
26879 Use char because int might match the return type of a GCC
26880 builtin and then its argument prototype would still apply. */
26885 /* The GNU C library defines this for functions which it implements
26886 to always fail with ENOSYS. Some functions are actually named
26887 something starting with __ and the normal name is an alias. */
26888 #if defined __stub_$ac_func || defined __stub___$ac_func
26895 return $ac_func ();
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (ac_try="$ac_link"
26902 case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907 (eval "$ac_link") 2>conftest.er1
26909 grep -v '^ *+' conftest.er1 >conftest.err
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } && {
26914 test -z "$ac_c_werror_flag" ||
26915 test ! -s conftest.err
26916 } && test -s conftest$ac_exeext &&
26917 $as_test_x conftest$ac_exeext; then
26918 eval "$as_ac_var=yes"
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 eval "$as_ac_var=no"
26926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26927 conftest$ac_exeext conftest.$ac_ext
26929 ac_res=`eval echo '${'$as_ac_var'}'`
26930 { echo "$as_me:$LINENO: result: $ac_res" >&5
26931 echo "${ECHO_T}$ac_res" >&6; }
26932 if test `eval echo '${'$as_ac_var'}'` = yes; then
26933 cat >>confdefs.h <<_ACEOF
26934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26941 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26942 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26943 if test "${ol_cv_header_linux_threads+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 cat >conftest.$ac_ext <<_ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26952 #include <pthread.h>
26954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26955 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26956 ol_cv_header_linux_threads=yes
26958 ol_cv_header_linux_threads=no
26964 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26965 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26966 if test $ol_cv_header_linux_threads = yes; then
26968 cat >>confdefs.h <<\_ACEOF
26969 #define HAVE_LINUX_THREADS 1
26976 for ac_header in mach/cthreads.h
26978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
26985 ac_res=`eval echo '${'$as_ac_Header'}'`
26986 { echo "$as_me:$LINENO: result: $ac_res" >&5
26987 echo "${ECHO_T}$ac_res" >&6; }
26989 # Is the header compilable?
26990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 $ac_includes_default
26999 #include <$ac_header>
27001 rm -f conftest.$ac_objext
27002 if { (ac_try="$ac_compile"
27003 case "(($ac_try" in
27004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005 *) ac_try_echo=$ac_try;;
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008 (eval "$ac_compile") 2>conftest.er1
27010 grep -v '^ *+' conftest.er1 >conftest.err
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } && {
27015 test -z "$ac_c_werror_flag" ||
27016 test ! -s conftest.err
27017 } && test -s conftest.$ac_objext; then
27018 ac_header_compiler=yes
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27023 ac_header_compiler=no
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27028 echo "${ECHO_T}$ac_header_compiler" >&6; }
27030 # Is the header present?
27031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039 #include <$ac_header>
27041 if { (ac_try="$ac_cpp conftest.$ac_ext"
27042 case "(($ac_try" in
27043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044 *) ac_try_echo=$ac_try;;
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27049 grep -v '^ *+' conftest.er1 >conftest.err
27051 cat conftest.err >&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } >/dev/null && {
27054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27055 test ! -s conftest.err
27057 ac_header_preproc=yes
27059 echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27062 ac_header_preproc=no
27065 rm -f conftest.err conftest.$ac_ext
27066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27067 echo "${ECHO_T}$ac_header_preproc" >&6; }
27069 # So? What about this header?
27070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27076 ac_header_preproc=yes
27079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27092 ## --------------------------------------------- ##
27093 ## Report this to <http://www.openldap.org/its/> ##
27094 ## --------------------------------------------- ##
27096 ) | sed "s/^/$as_me: WARNING: /" >&2
27099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27104 eval "$as_ac_Header=\$ac_header_preproc"
27106 ac_res=`eval echo '${'$as_ac_Header'}'`
27107 { echo "$as_me:$LINENO: result: $ac_res" >&5
27108 echo "${ECHO_T}$ac_res" >&6; }
27111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27112 cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27122 for ac_header in thread.h synch.h
27124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27129 echo $ECHO_N "(cached) $ECHO_C" >&6
27131 ac_res=`eval echo '${'$as_ac_Header'}'`
27132 { echo "$as_me:$LINENO: result: $ac_res" >&5
27133 echo "${ECHO_T}$ac_res" >&6; }
27135 # Is the header compilable?
27136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27138 cat >conftest.$ac_ext <<_ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h. */
27144 $ac_includes_default
27145 #include <$ac_header>
27147 rm -f conftest.$ac_objext
27148 if { (ac_try="$ac_compile"
27149 case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154 (eval "$ac_compile") 2>conftest.er1
27156 grep -v '^ *+' conftest.er1 >conftest.err
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } && {
27161 test -z "$ac_c_werror_flag" ||
27162 test ! -s conftest.err
27163 } && test -s conftest.$ac_objext; then
27164 ac_header_compiler=yes
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27169 ac_header_compiler=no
27172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27174 echo "${ECHO_T}$ac_header_compiler" >&6; }
27176 # Is the header present?
27177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27179 cat >conftest.$ac_ext <<_ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27185 #include <$ac_header>
27187 if { (ac_try="$ac_cpp conftest.$ac_ext"
27188 case "(($ac_try" in
27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190 *) ac_try_echo=$ac_try;;
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27195 grep -v '^ *+' conftest.er1 >conftest.err
27197 cat conftest.err >&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); } >/dev/null && {
27200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27201 test ! -s conftest.err
27203 ac_header_preproc=yes
27205 echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27208 ac_header_preproc=no
27211 rm -f conftest.err conftest.$ac_ext
27212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27213 echo "${ECHO_T}$ac_header_preproc" >&6; }
27215 # So? What about this header?
27216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27222 ac_header_preproc=yes
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27238 ## --------------------------------------------- ##
27239 ## Report this to <http://www.openldap.org/its/> ##
27240 ## --------------------------------------------- ##
27242 ) | sed "s/^/$as_me: WARNING: /" >&2
27245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 eval "$as_ac_Header=\$ac_header_preproc"
27252 ac_res=`eval echo '${'$as_ac_Header'}'`
27253 { echo "$as_me:$LINENO: result: $ac_res" >&5
27254 echo "${ECHO_T}$ac_res" >&6; }
27257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27258 cat >>confdefs.h <<_ACEOF
27259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27268 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27269 cat >>confdefs.h <<\_ACEOF
27270 #define REENTRANT 1
27273 cat >>confdefs.h <<\_ACEOF
27274 #define _REENTRANT 1
27277 cat >>confdefs.h <<\_ACEOF
27278 #define THREAD_SAFE 1
27281 cat >>confdefs.h <<\_ACEOF
27282 #define _THREAD_SAFE 1
27285 cat >>confdefs.h <<\_ACEOF
27286 #define THREADSAFE 1
27289 cat >>confdefs.h <<\_ACEOF
27290 #define _THREADSAFE 1
27293 cat >>confdefs.h <<\_ACEOF
27294 #define _SGI_MP_SOURCE 1
27298 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27299 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27300 if test "${ol_cv_errno_thread_specific+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (ac_try="$ac_link"
27321 case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_link") 2>conftest.er1
27328 grep -v '^ *+' conftest.er1 >conftest.err
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } && {
27333 test -z "$ac_c_werror_flag" ||
27334 test ! -s conftest.err
27335 } && test -s conftest$ac_exeext &&
27336 $as_test_x conftest$ac_exeext; then
27337 ol_cv_errno_thread_specific=yes
27339 echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27342 ol_cv_errno_thread_specific=no
27345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27346 conftest$ac_exeext conftest.$ac_ext
27349 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27350 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27352 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27353 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27354 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
27358 cat >conftest.$ac_ext <<_ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h. */
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (ac_try="$ac_link"
27375 case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_link") 2>conftest.er1
27382 grep -v '^ *+' conftest.er1 >conftest.err
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } && {
27387 test -z "$ac_c_werror_flag" ||
27388 test ! -s conftest.err
27389 } && test -s conftest$ac_exeext &&
27390 $as_test_x conftest$ac_exeext; then
27391 ol_cv_h_errno_thread_specific=yes
27393 echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27396 ol_cv_h_errno_thread_specific=no
27399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27400 conftest$ac_exeext conftest.$ac_ext
27403 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27404 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27406 if test $ol_cv_errno_thread_specific != yes ||
27407 test $ol_cv_h_errno_thread_specific != yes ; then
27408 LIBS="$LTHREAD_LIBS $LIBS"
27414 if test $ol_link_threads = no ; then
27415 if test $ol_with_threads = yes ; then
27416 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27417 echo "$as_me: error: no suitable thread support" >&2;}
27418 { (exit 1); exit 1; }; }
27421 if test $ol_with_threads = auto ; then
27422 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27423 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27428 cat >>confdefs.h <<\_ACEOF
27429 #define NO_THREADS 1
27438 if test $ol_link_threads != no ; then
27440 cat >>confdefs.h <<\_ACEOF
27441 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27453 gmtime_r localtime_r \
27454 gethostbyname_r gethostbyaddr_r \
27457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27461 echo $ECHO_N "(cached) $ECHO_C" >&6
27463 cat >conftest.$ac_ext <<_ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27471 #define $ac_func innocuous_$ac_func
27473 /* System header to define __stub macros and hopefully few prototypes,
27474 which can conflict with char $ac_func (); below.
27475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27476 <limits.h> exists even on freestanding compilers. */
27479 # include <limits.h>
27481 # include <assert.h>
27486 /* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
27493 /* The GNU C library defines this for functions which it implements
27494 to always fail with ENOSYS. Some functions are actually named
27495 something starting with __ and the normal name is an alias. */
27496 #if defined __stub_$ac_func || defined __stub___$ac_func
27503 return $ac_func ();
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512 *) ac_try_echo=$ac_try;;
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515 (eval "$ac_link") 2>conftest.er1
27517 grep -v '^ *+' conftest.er1 >conftest.err
27519 cat conftest.err >&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } && {
27522 test -z "$ac_c_werror_flag" ||
27523 test ! -s conftest.err
27524 } && test -s conftest$ac_exeext &&
27525 $as_test_x conftest$ac_exeext; then
27526 eval "$as_ac_var=yes"
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 eval "$as_ac_var=no"
27534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27535 conftest$ac_exeext conftest.$ac_ext
27537 ac_res=`eval echo '${'$as_ac_var'}'`
27538 { echo "$as_me:$LINENO: result: $ac_res" >&5
27539 echo "${ECHO_T}$ac_res" >&6; }
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541 cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27549 if test "$ac_cv_func_ctime_r" = no ; then
27550 ol_cv_func_ctime_r_nargs=0
27552 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27553 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27554 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27567 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_compile") 2>conftest.er1
27581 grep -v '^ *+' conftest.er1 >conftest.err
27583 cat conftest.err >&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } && {
27586 test -z "$ac_c_werror_flag" ||
27587 test ! -s conftest.err
27588 } && test -s conftest.$ac_objext; then
27589 ol_cv_func_ctime_r_nargs3=yes
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ol_cv_func_ctime_r_nargs3=no
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 cat >conftest.$ac_ext <<_ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h. */
27609 time_t ti; char *buffer; ctime_r(&ti,buffer);
27614 rm -f conftest.$ac_objext
27615 if { (ac_try="$ac_compile"
27616 case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_compile") 2>conftest.er1
27623 grep -v '^ *+' conftest.er1 >conftest.err
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } && {
27628 test -z "$ac_c_werror_flag" ||
27629 test ! -s conftest.err
27630 } && test -s conftest.$ac_objext; then
27631 ol_cv_func_ctime_r_nargs2=yes
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 ol_cv_func_ctime_r_nargs2=no
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27641 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27642 test $ol_cv_func_ctime_r_nargs2 = no ; then
27644 ol_cv_func_ctime_r_nargs=3
27646 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27647 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27649 ol_cv_func_ctime_r_nargs=2
27652 ol_cv_func_ctime_r_nargs=0
27656 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27657 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27659 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27661 cat >>confdefs.h <<_ACEOF
27662 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27669 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27670 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27671 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27672 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 cat >conftest.$ac_ext <<_ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27681 #include <sys/types.h>
27682 #include <sys/socket.h>
27683 #include <netinet/in.h>
27685 #define BUFSIZE (sizeof(struct hostent)+10)
27689 struct hostent hent; char buffer[BUFSIZE];
27690 int bufsize=BUFSIZE;int h_errno;
27691 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27692 buffer, bufsize, &h_errno);
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_compile") 2>conftest.er1
27706 grep -v '^ *+' conftest.er1 >conftest.err
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } && {
27711 test -z "$ac_c_werror_flag" ||
27712 test ! -s conftest.err
27713 } && test -s conftest.$ac_objext; then
27714 ol_cv_func_gethostbyname_r_nargs5=yes
27716 echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27719 ol_cv_func_gethostbyname_r_nargs5=no
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27730 #include <sys/types.h>
27731 #include <sys/socket.h>
27732 #include <netinet/in.h>
27734 #define BUFSIZE (sizeof(struct hostent)+10)
27738 struct hostent hent;struct hostent *rhent;
27739 char buffer[BUFSIZE];
27740 int bufsize=BUFSIZE;int h_errno;
27741 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_compile") 2>conftest.er1
27756 grep -v '^ *+' conftest.er1 >conftest.err
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && {
27761 test -z "$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27763 } && test -s conftest.$ac_objext; then
27764 ol_cv_func_gethostbyname_r_nargs6=yes
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ol_cv_func_gethostbyname_r_nargs6=no
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27774 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27775 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27777 ol_cv_func_gethostbyname_r_nargs=5
27779 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27780 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27782 ol_cv_func_gethostbyname_r_nargs=6
27785 ol_cv_func_gethostbyname_r_nargs=0
27789 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27790 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27791 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27793 cat >>confdefs.h <<_ACEOF
27794 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27800 ol_cv_func_gethostbyname_r_nargs=0
27803 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27804 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27805 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27806 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27807 echo $ECHO_N "(cached) $ECHO_C" >&6
27809 cat >conftest.$ac_ext <<_ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27815 #include <sys/types.h>
27816 #include <sys/socket.h>
27817 #include <netinet/in.h>
27819 #define BUFSIZE (sizeof(struct hostent)+10)
27823 struct hostent hent; char buffer[BUFSIZE];
27824 struct in_addr add;
27825 size_t alen=sizeof(struct in_addr);
27826 int bufsize=BUFSIZE;int h_errno;
27827 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27828 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27833 rm -f conftest.$ac_objext
27834 if { (ac_try="$ac_compile"
27835 case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840 (eval "$ac_compile") 2>conftest.er1
27842 grep -v '^ *+' conftest.er1 >conftest.err
27844 cat conftest.err >&5
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); } && {
27847 test -z "$ac_c_werror_flag" ||
27848 test ! -s conftest.err
27849 } && test -s conftest.$ac_objext; then
27850 ol_cv_func_gethostbyaddr_r_nargs7=yes
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 ol_cv_func_gethostbyaddr_r_nargs7=no
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27860 cat >conftest.$ac_ext <<_ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h. */
27866 #include <sys/types.h>
27867 #include <sys/socket.h>
27868 #include <netinet/in.h>
27870 #define BUFSIZE (sizeof(struct hostent)+10)
27874 struct hostent hent;
27875 struct hostent *rhent; char buffer[BUFSIZE];
27876 struct in_addr add;
27877 size_t alen=sizeof(struct in_addr);
27878 int bufsize=BUFSIZE;int h_errno;
27879 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27880 alen, AF_INET, &hent, buffer, bufsize,
27886 rm -f conftest.$ac_objext
27887 if { (ac_try="$ac_compile"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_compile") 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } && {
27900 test -z "$ac_c_werror_flag" ||
27901 test ! -s conftest.err
27902 } && test -s conftest.$ac_objext; then
27903 ol_cv_func_gethostbyaddr_r_nargs8=yes
27905 echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27908 ol_cv_func_gethostbyaddr_r_nargs8=no
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27914 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27916 ol_cv_func_gethostbyaddr_r_nargs=7
27918 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27919 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27921 ol_cv_func_gethostbyaddr_r_nargs=8
27924 ol_cv_func_gethostbyaddr_r_nargs=0
27928 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27929 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27930 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27932 cat >>confdefs.h <<_ACEOF
27933 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27939 ol_cv_func_gethostbyaddr_r_nargs=0
27944 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27945 ol_cv_berkeley_db=no
27947 for ac_header in db.h
27949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
27956 ac_res=`eval echo '${'$as_ac_Header'}'`
27957 { echo "$as_me:$LINENO: result: $ac_res" >&5
27958 echo "${ECHO_T}$ac_res" >&6; }
27960 # Is the header compilable?
27961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27963 cat >conftest.$ac_ext <<_ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 $ac_includes_default
27970 #include <$ac_header>
27972 rm -f conftest.$ac_objext
27973 if { (ac_try="$ac_compile"
27974 case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_compile") 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } && {
27986 test -z "$ac_c_werror_flag" ||
27987 test ! -s conftest.err
27988 } && test -s conftest.$ac_objext; then
27989 ac_header_compiler=yes
27991 echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27994 ac_header_compiler=no
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27999 echo "${ECHO_T}$ac_header_compiler" >&6; }
28001 # Is the header present?
28002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28004 cat >conftest.$ac_ext <<_ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 #include <$ac_header>
28012 if { (ac_try="$ac_cpp conftest.$ac_ext"
28013 case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28020 grep -v '^ *+' conftest.er1 >conftest.err
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } >/dev/null && {
28025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28026 test ! -s conftest.err
28028 ac_header_preproc=yes
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ac_header_preproc=no
28036 rm -f conftest.err conftest.$ac_ext
28037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28038 echo "${ECHO_T}$ac_header_preproc" >&6; }
28040 # So? What about this header?
28041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28047 ac_header_preproc=yes
28050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28063 ## --------------------------------------------- ##
28064 ## Report this to <http://www.openldap.org/its/> ##
28065 ## --------------------------------------------- ##
28067 ) | sed "s/^/$as_me: WARNING: /" >&2
28070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28073 echo $ECHO_N "(cached) $ECHO_C" >&6
28075 eval "$as_ac_Header=\$ac_header_preproc"
28077 ac_res=`eval echo '${'$as_ac_Header'}'`
28078 { echo "$as_me:$LINENO: result: $ac_res" >&5
28079 echo "${ECHO_T}$ac_res" >&6; }
28082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28083 cat >>confdefs.h <<_ACEOF
28084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28091 if test $ac_cv_header_db_h = yes; then
28092 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28093 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28094 if test "${ol_cv_bdb_major+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 cat >conftest.$ac_ext <<_ACEOF
28101 #ifndef DB_VERSION_MAJOR
28102 # define DB_VERSION_MAJOR 1
28104 __db_version DB_VERSION_MAJOR
28107 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28108 ol_cv_bdb_major=${3}
28111 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28112 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28113 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28114 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28115 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28116 { (exit 1); exit 1; }; } ;;
28119 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28120 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28121 if test "${ol_cv_bdb_minor+set}" = set; then
28122 echo $ECHO_N "(cached) $ECHO_C" >&6
28125 cat >conftest.$ac_ext <<_ACEOF
28128 #ifndef DB_VERSION_MINOR
28129 # define DB_VERSION_MINOR 0
28131 __db_version DB_VERSION_MINOR
28134 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28135 ol_cv_bdb_minor=${3}
28138 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28139 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28140 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28141 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28142 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28143 { (exit 1); exit 1; }; } ;;
28146 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28147 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28148 if test "${ol_cv_bdb_compat+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28152 cat >conftest.$ac_ext <<_ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28161 /* this check could be improved */
28162 #ifndef DB_VERSION_MAJOR
28163 # define DB_VERSION_MAJOR 1
28165 #ifndef DB_VERSION_MINOR
28166 # define DB_VERSION_MINOR 0
28169 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28171 /* require 4.4 or later */
28172 #if DB_VERSION_MM >= 0x0404
28173 __db_version_compat
28177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28178 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28179 ol_cv_bdb_compat=yes
28181 ol_cv_bdb_compat=no
28186 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28187 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28190 if test $ol_cv_bdb_compat != yes ; then
28191 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28192 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28193 { (exit 1); exit 1; }; }
28198 if test $ol_cv_bdb_major = 5 ; then
28199 if test $ol_cv_lib_db = no ; then
28200 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28201 echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28202 if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28203 echo $ECHO_N "(cached) $ECHO_C" >&6
28206 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28208 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28217 #ifdef HAVE_DB_185_H
28218 # include <db_185.h>
28223 #ifndef DB_VERSION_MAJOR
28224 # define DB_VERSION_MAJOR 1
28228 #define NULL ((void*)0)
28235 #if DB_VERSION_MAJOR > 2
28236 db_env_create( NULL, 0 );
28237 #elif DB_VERSION_MAJOR > 1
28238 db_appexit( NULL );
28240 (void) dbopen( NULL, 0, 0, 0, NULL);
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } && {
28261 test -z "$ac_c_werror_flag" ||
28262 test ! -s conftest.err
28263 } && test -s conftest$ac_exeext &&
28264 $as_test_x conftest$ac_exeext; then
28265 ol_cv_db_db_5_dot_m=yes
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ol_cv_db_db_5_dot_m=no
28273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28274 conftest$ac_exeext conftest.$ac_ext
28279 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28280 echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28282 if test $ol_cv_db_db_5_dot_m = yes ; then
28283 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28287 if test $ol_cv_lib_db = no ; then
28288 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28289 echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28290 if test "${ol_cv_db_db5m+set}" = set; then
28291 echo $ECHO_N "(cached) $ECHO_C" >&6
28294 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28298 cat >conftest.$ac_ext <<_ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h. */
28305 #ifdef HAVE_DB_185_H
28306 # include <db_185.h>
28311 #ifndef DB_VERSION_MAJOR
28312 # define DB_VERSION_MAJOR 1
28316 #define NULL ((void*)0)
28323 #if DB_VERSION_MAJOR > 2
28324 db_env_create( NULL, 0 );
28325 #elif DB_VERSION_MAJOR > 1
28326 db_appexit( NULL );
28328 (void) dbopen( NULL, 0, 0, 0, NULL);
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342 (eval "$ac_link") 2>conftest.er1
28344 grep -v '^ *+' conftest.er1 >conftest.err
28346 cat conftest.err >&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } && {
28349 test -z "$ac_c_werror_flag" ||
28350 test ! -s conftest.err
28351 } && test -s conftest$ac_exeext &&
28352 $as_test_x conftest$ac_exeext; then
28355 echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28362 conftest$ac_exeext conftest.$ac_ext
28367 { echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28368 echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28370 if test $ol_cv_db_db5m = yes ; then
28371 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28375 if test $ol_cv_lib_db = no ; then
28376 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28377 echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28378 if test "${ol_cv_db_db_5m+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28382 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28393 #ifdef HAVE_DB_185_H
28394 # include <db_185.h>
28399 #ifndef DB_VERSION_MAJOR
28400 # define DB_VERSION_MAJOR 1
28404 #define NULL ((void*)0)
28411 #if DB_VERSION_MAJOR > 2
28412 db_env_create( NULL, 0 );
28413 #elif DB_VERSION_MAJOR > 1
28414 db_appexit( NULL );
28416 (void) dbopen( NULL, 0, 0, 0, NULL);
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_link") 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } && {
28437 test -z "$ac_c_werror_flag" ||
28438 test ! -s conftest.err
28439 } && test -s conftest$ac_exeext &&
28440 $as_test_x conftest$ac_exeext; then
28443 echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28450 conftest$ac_exeext conftest.$ac_ext
28455 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28456 echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28458 if test $ol_cv_db_db_5m = yes ; then
28459 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28463 if test $ol_cv_lib_db = no ; then
28464 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28465 echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28466 if test "${ol_cv_db_db_5_m+set}" = set; then
28467 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28472 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28481 #ifdef HAVE_DB_185_H
28482 # include <db_185.h>
28487 #ifndef DB_VERSION_MAJOR
28488 # define DB_VERSION_MAJOR 1
28492 #define NULL ((void*)0)
28499 #if DB_VERSION_MAJOR > 2
28500 db_env_create( NULL, 0 );
28501 #elif DB_VERSION_MAJOR > 1
28502 db_appexit( NULL );
28504 (void) dbopen( NULL, 0, 0, 0, NULL);
28511 rm -f conftest.$ac_objext conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>conftest.er1
28520 grep -v '^ *+' conftest.er1 >conftest.err
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } && {
28525 test -z "$ac_c_werror_flag" ||
28526 test ! -s conftest.err
28527 } && test -s conftest$ac_exeext &&
28528 $as_test_x conftest$ac_exeext; then
28529 ol_cv_db_db_5_m=yes
28531 echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28538 conftest$ac_exeext conftest.$ac_ext
28543 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28544 echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28546 if test $ol_cv_db_db_5_m = yes ; then
28547 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28551 if test $ol_cv_lib_db = no ; then
28552 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28553 echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28554 if test "${ol_cv_db_db_5+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 #ifdef HAVE_DB_185_H
28570 # include <db_185.h>
28575 #ifndef DB_VERSION_MAJOR
28576 # define DB_VERSION_MAJOR 1
28580 #define NULL ((void*)0)
28587 #if DB_VERSION_MAJOR > 2
28588 db_env_create( NULL, 0 );
28589 #elif DB_VERSION_MAJOR > 1
28590 db_appexit( NULL );
28592 (void) dbopen( NULL, 0, 0, 0, NULL);
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (ac_try="$ac_link"
28601 case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_link") 2>conftest.er1
28608 grep -v '^ *+' conftest.er1 >conftest.err
28610 cat conftest.err >&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } && {
28613 test -z "$ac_c_werror_flag" ||
28614 test ! -s conftest.err
28615 } && test -s conftest$ac_exeext &&
28616 $as_test_x conftest$ac_exeext; then
28619 echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28626 conftest$ac_exeext conftest.$ac_ext
28631 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28632 echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28634 if test $ol_cv_db_db_5 = yes ; then
28635 ol_cv_lib_db=-ldb-5
28639 if test $ol_cv_lib_db = no ; then
28640 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28641 echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28642 if test "${ol_cv_db_db5+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28650 cat >conftest.$ac_ext <<_ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h. */
28657 #ifdef HAVE_DB_185_H
28658 # include <db_185.h>
28663 #ifndef DB_VERSION_MAJOR
28664 # define DB_VERSION_MAJOR 1
28668 #define NULL ((void*)0)
28675 #if DB_VERSION_MAJOR > 2
28676 db_env_create( NULL, 0 );
28677 #elif DB_VERSION_MAJOR > 1
28678 db_appexit( NULL );
28680 (void) dbopen( NULL, 0, 0, 0, NULL);
28687 rm -f conftest.$ac_objext conftest$ac_exeext
28688 if { (ac_try="$ac_link"
28689 case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_link") 2>conftest.er1
28696 grep -v '^ *+' conftest.er1 >conftest.err
28698 cat conftest.err >&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); } && {
28701 test -z "$ac_c_werror_flag" ||
28702 test ! -s conftest.err
28703 } && test -s conftest$ac_exeext &&
28704 $as_test_x conftest$ac_exeext; then
28707 echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28714 conftest$ac_exeext conftest.$ac_ext
28719 { echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28720 echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28722 if test $ol_cv_db_db5 = yes ; then
28727 elif test $ol_cv_bdb_major = 4 ; then
28728 if test $ol_cv_lib_db = no ; then
28729 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28730 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28731 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28732 echo $ECHO_N "(cached) $ECHO_C" >&6
28735 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28737 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28739 cat >conftest.$ac_ext <<_ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28746 #ifdef HAVE_DB_185_H
28747 # include <db_185.h>
28752 #ifndef DB_VERSION_MAJOR
28753 # define DB_VERSION_MAJOR 1
28757 #define NULL ((void*)0)
28764 #if DB_VERSION_MAJOR > 2
28765 db_env_create( NULL, 0 );
28766 #elif DB_VERSION_MAJOR > 1
28767 db_appexit( NULL );
28769 (void) dbopen( NULL, 0, 0, 0, NULL);
28776 rm -f conftest.$ac_objext conftest$ac_exeext
28777 if { (ac_try="$ac_link"
28778 case "(($ac_try" in
28779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780 *) ac_try_echo=$ac_try;;
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783 (eval "$ac_link") 2>conftest.er1
28785 grep -v '^ *+' conftest.er1 >conftest.err
28787 cat conftest.err >&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } && {
28790 test -z "$ac_c_werror_flag" ||
28791 test ! -s conftest.err
28792 } && test -s conftest$ac_exeext &&
28793 $as_test_x conftest$ac_exeext; then
28794 ol_cv_db_db_4_dot_m=yes
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 ol_cv_db_db_4_dot_m=no
28802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28803 conftest$ac_exeext conftest.$ac_ext
28808 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28809 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28811 if test $ol_cv_db_db_4_dot_m = yes ; then
28812 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28816 if test $ol_cv_lib_db = no ; then
28817 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28818 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28819 if test "${ol_cv_db_db4m+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28823 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28825 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28834 #ifdef HAVE_DB_185_H
28835 # include <db_185.h>
28840 #ifndef DB_VERSION_MAJOR
28841 # define DB_VERSION_MAJOR 1
28845 #define NULL ((void*)0)
28852 #if DB_VERSION_MAJOR > 2
28853 db_env_create( NULL, 0 );
28854 #elif DB_VERSION_MAJOR > 1
28855 db_appexit( NULL );
28857 (void) dbopen( NULL, 0, 0, 0, NULL);
28864 rm -f conftest.$ac_objext conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_link") 2>conftest.er1
28873 grep -v '^ *+' conftest.er1 >conftest.err
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } && {
28878 test -z "$ac_c_werror_flag" ||
28879 test ! -s conftest.err
28880 } && test -s conftest$ac_exeext &&
28881 $as_test_x conftest$ac_exeext; then
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28891 conftest$ac_exeext conftest.$ac_ext
28896 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28897 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28899 if test $ol_cv_db_db4m = yes ; then
28900 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28904 if test $ol_cv_lib_db = no ; then
28905 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28906 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28907 if test "${ol_cv_db_db_4m+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28915 cat >conftest.$ac_ext <<_ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h. */
28922 #ifdef HAVE_DB_185_H
28923 # include <db_185.h>
28928 #ifndef DB_VERSION_MAJOR
28929 # define DB_VERSION_MAJOR 1
28933 #define NULL ((void*)0)
28940 #if DB_VERSION_MAJOR > 2
28941 db_env_create( NULL, 0 );
28942 #elif DB_VERSION_MAJOR > 1
28943 db_appexit( NULL );
28945 (void) dbopen( NULL, 0, 0, 0, NULL);
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_link") 2>conftest.er1
28961 grep -v '^ *+' conftest.er1 >conftest.err
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest$ac_exeext &&
28969 $as_test_x conftest$ac_exeext; then
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979 conftest$ac_exeext conftest.$ac_ext
28984 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28985 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28987 if test $ol_cv_db_db_4m = yes ; then
28988 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28992 if test $ol_cv_lib_db = no ; then
28993 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28995 if test "${ol_cv_db_db_4_m+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28999 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
29001 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29021 #define NULL ((void*)0)
29028 #if DB_VERSION_MAJOR > 2
29029 db_env_create( NULL, 0 );
29030 #elif DB_VERSION_MAJOR > 1
29031 db_appexit( NULL );
29033 (void) dbopen( NULL, 0, 0, 0, NULL);
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (ac_try="$ac_link"
29042 case "(($ac_try" in
29043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044 *) ac_try_echo=$ac_try;;
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047 (eval "$ac_link") 2>conftest.er1
29049 grep -v '^ *+' conftest.er1 >conftest.err
29051 cat conftest.err >&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); } && {
29054 test -z "$ac_c_werror_flag" ||
29055 test ! -s conftest.err
29056 } && test -s conftest$ac_exeext &&
29057 $as_test_x conftest$ac_exeext; then
29058 ol_cv_db_db_4_m=yes
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067 conftest$ac_exeext conftest.$ac_ext
29072 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29073 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29075 if test $ol_cv_db_db_4_m = yes ; then
29076 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29080 if test $ol_cv_lib_db = no ; then
29081 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29082 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29083 if test "${ol_cv_db_db_4+set}" = set; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29091 cat >conftest.$ac_ext <<_ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h. */
29098 #ifdef HAVE_DB_185_H
29099 # include <db_185.h>
29104 #ifndef DB_VERSION_MAJOR
29105 # define DB_VERSION_MAJOR 1
29109 #define NULL ((void*)0)
29116 #if DB_VERSION_MAJOR > 2
29117 db_env_create( NULL, 0 );
29118 #elif DB_VERSION_MAJOR > 1
29119 db_appexit( NULL );
29121 (void) dbopen( NULL, 0, 0, 0, NULL);
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_link") 2>conftest.er1
29137 grep -v '^ *+' conftest.er1 >conftest.err
29139 cat conftest.err >&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } && {
29142 test -z "$ac_c_werror_flag" ||
29143 test ! -s conftest.err
29144 } && test -s conftest$ac_exeext &&
29145 $as_test_x conftest$ac_exeext; then
29148 echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29155 conftest$ac_exeext conftest.$ac_ext
29160 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29161 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29163 if test $ol_cv_db_db_4 = yes ; then
29164 ol_cv_lib_db=-ldb-4
29168 if test $ol_cv_lib_db = no ; then
29169 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29170 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29171 if test "${ol_cv_db_db4+set}" = set; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29177 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29186 #ifdef HAVE_DB_185_H
29187 # include <db_185.h>
29192 #ifndef DB_VERSION_MAJOR
29193 # define DB_VERSION_MAJOR 1
29197 #define NULL ((void*)0)
29204 #if DB_VERSION_MAJOR > 2
29205 db_env_create( NULL, 0 );
29206 #elif DB_VERSION_MAJOR > 1
29207 db_appexit( NULL );
29209 (void) dbopen( NULL, 0, 0, 0, NULL);
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29225 grep -v '^ *+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } && {
29230 test -z "$ac_c_werror_flag" ||
29231 test ! -s conftest.err
29232 } && test -s conftest$ac_exeext &&
29233 $as_test_x conftest$ac_exeext; then
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29243 conftest$ac_exeext conftest.$ac_ext
29248 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29249 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29251 if test $ol_cv_db_db4 = yes ; then
29257 if test $ol_cv_lib_db = no ; then
29258 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29259 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29260 if test "${ol_cv_db_db+set}" = set; then
29261 echo $ECHO_N "(cached) $ECHO_C" >&6
29266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29275 #ifdef HAVE_DB_185_H
29276 # include <db_185.h>
29281 #ifndef DB_VERSION_MAJOR
29282 # define DB_VERSION_MAJOR 1
29286 #define NULL ((void*)0)
29293 #if DB_VERSION_MAJOR > 2
29294 db_env_create( NULL, 0 );
29295 #elif DB_VERSION_MAJOR > 1
29296 db_appexit( NULL );
29298 (void) dbopen( NULL, 0, 0, 0, NULL);
29305 rm -f conftest.$ac_objext conftest$ac_exeext
29306 if { (ac_try="$ac_link"
29307 case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_link") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest$ac_exeext &&
29322 $as_test_x conftest$ac_exeext; then
29325 echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29332 conftest$ac_exeext conftest.$ac_ext
29337 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29338 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29340 if test $ol_cv_db_db = yes ; then
29345 if test $ol_cv_lib_db = no ; then
29346 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29347 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29348 if test "${ol_cv_db_none+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29354 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29356 cat >conftest.$ac_ext <<_ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h. */
29363 #ifdef HAVE_DB_185_H
29364 # include <db_185.h>
29369 #ifndef DB_VERSION_MAJOR
29370 # define DB_VERSION_MAJOR 1
29374 #define NULL ((void*)0)
29381 #if DB_VERSION_MAJOR > 2
29382 db_env_create( NULL, 0 );
29383 #elif DB_VERSION_MAJOR > 1
29384 db_appexit( NULL );
29386 (void) dbopen( NULL, 0, 0, 0, NULL);
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (ac_try="$ac_link"
29395 case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_link") 2>conftest.er1
29402 grep -v '^ *+' conftest.er1 >conftest.err
29404 cat conftest.err >&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } && {
29407 test -z "$ac_c_werror_flag" ||
29408 test ! -s conftest.err
29409 } && test -s conftest$ac_exeext &&
29410 $as_test_x conftest$ac_exeext; then
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29420 conftest$ac_exeext conftest.$ac_ext
29425 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29426 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29428 if test $ol_cv_db_none = yes ; then
29434 if test "$ol_cv_lib_db" != no ; then
29435 ol_cv_berkeley_db=yes
29436 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29437 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29438 if test "${ol_cv_berkeley_db_version+set}" = set; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29443 LIBS="$LTHREAD_LIBS $LIBS"
29444 if test $ol_cv_lib_db != yes ; then
29445 LIBS="$ol_cv_lib_db $LIBS"
29448 if test "$cross_compiling" = yes; then
29449 ol_cv_berkeley_db_version=cross
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29458 #ifdef HAVE_DB_185_H
29463 #ifndef DB_VERSION_MAJOR
29464 # define DB_VERSION_MAJOR 1
29467 #define NULL ((void *)0)
29471 #if DB_VERSION_MAJOR > 1
29473 int major, minor, patch;
29475 version = db_version( &major, &minor, &patch );
29477 if( major != DB_VERSION_MAJOR ||
29478 minor != DB_VERSION_MINOR ||
29479 patch != DB_VERSION_PATCH )
29481 printf("Berkeley DB version mismatch\n"
29482 "\theader: %s\n\tlibrary: %s\n",
29483 DB_VERSION_STRING, version);
29491 rm -f conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_link") 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502 { (case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_try") 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; }; then
29511 ol_cv_berkeley_db_version=yes
29513 echo "$as_me: program exited with status $ac_status" >&5
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29517 ( exit $ac_status )
29518 ol_cv_berkeley_db_version=no
29520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29528 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29529 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29531 if test $ol_cv_berkeley_db_version = no ; then
29532 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29533 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29534 { (exit 1); exit 1; }; }
29537 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29538 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29539 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29544 LIBS="$LTHREAD_LIBS $LIBS"
29545 if test $ol_cv_lib_db != yes ; then
29546 LIBS="$ol_cv_lib_db $LIBS"
29549 if test "$cross_compiling" = yes; then
29550 ol_cv_berkeley_db_thread=cross
29552 cat >conftest.$ac_ext <<_ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h. */
29559 #ifdef HAVE_DB_185_H
29565 #define NULL ((void *)0)
29570 u_int32_t flags = DB_CREATE |
29576 #if DB_VERSION_MAJOR > 2
29577 DB_ENV *env = NULL;
29579 rc = db_env_create( &env, 0 );
29581 flags |= DB_INIT_MPOOL;
29582 #ifdef DB_MPOOL_PRIVATE
29583 flags |= DB_MPOOL_PRIVATE;
29587 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29591 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29592 rc = (env->open)( env, NULL, flags, 0 );
29594 rc = (env->open)( env, NULL, NULL, flags, 0 );
29598 rc = env->close( env, 0 );
29602 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29608 memset( &env, '\0', sizeof(env) );
29610 rc = db_appinit( NULL, NULL, &env, flags );
29613 db_appexit( &env );
29616 unlink("__db_mpool.share");
29617 unlink("__db_lock.share");
29623 rm -f conftest$ac_exeext
29624 if { (ac_try="$ac_link"
29625 case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_link") 2>&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634 { (case "(($ac_try" in
29635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636 *) ac_try_echo=$ac_try;;
29638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29639 (eval "$ac_try") 2>&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); }; }; then
29643 ol_cv_berkeley_db_thread=yes
29645 echo "$as_me: program exited with status $ac_status" >&5
29646 echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29649 ( exit $ac_status )
29650 ol_cv_berkeley_db_thread=no
29652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29660 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29661 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29663 if test $ol_cv_berkeley_db_thread != no ; then
29665 cat >>confdefs.h <<\_ACEOF
29666 #define HAVE_BERKELEY_DB_THREAD 1
29675 if test $ol_cv_berkeley_db = no ; then
29676 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29677 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29678 { (exit 1); exit 1; }; }
29682 cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_BERKELEY_DB 1
29687 if test $ol_cv_lib_db != yes ; then
29688 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29691 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29697 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29698 BUILD_LIBS_DYNAMIC=shared
29700 cat >>confdefs.h <<\_ACEOF
29701 #define LDAP_LIBS_DYNAMIC 1
29706 BUILD_LIBS_DYNAMIC=static
29710 if test $ol_enable_wrappers != no ; then
29712 for ac_header in tcpd.h
29714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 ac_res=`eval echo '${'$as_ac_Header'}'`
29722 { echo "$as_me:$LINENO: result: $ac_res" >&5
29723 echo "${ECHO_T}$ac_res" >&6; }
29725 # Is the header compilable?
29726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29728 cat >conftest.$ac_ext <<_ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h. */
29734 $ac_includes_default
29735 #include <$ac_header>
29737 rm -f conftest.$ac_objext
29738 if { (ac_try="$ac_compile"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_compile") 2>conftest.er1
29746 grep -v '^ *+' conftest.er1 >conftest.err
29748 cat conftest.err >&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && {
29751 test -z "$ac_c_werror_flag" ||
29752 test ! -s conftest.err
29753 } && test -s conftest.$ac_objext; then
29754 ac_header_compiler=yes
29756 echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29759 ac_header_compiler=no
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29764 echo "${ECHO_T}$ac_header_compiler" >&6; }
29766 # Is the header present?
29767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h. */
29775 #include <$ac_header>
29777 if { (ac_try="$ac_cpp conftest.$ac_ext"
29778 case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29785 grep -v '^ *+' conftest.er1 >conftest.err
29787 cat conftest.err >&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } >/dev/null && {
29790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29791 test ! -s conftest.err
29793 ac_header_preproc=yes
29795 echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29798 ac_header_preproc=no
29801 rm -f conftest.err conftest.$ac_ext
29802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29803 echo "${ECHO_T}$ac_header_preproc" >&6; }
29805 # So? What about this header?
29806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29812 ac_header_preproc=yes
29815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29828 ## --------------------------------------------- ##
29829 ## Report this to <http://www.openldap.org/its/> ##
29830 ## --------------------------------------------- ##
29832 ) | sed "s/^/$as_me: WARNING: /" >&2
29835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29838 echo $ECHO_N "(cached) $ECHO_C" >&6
29840 eval "$as_ac_Header=\$ac_header_preproc"
29842 ac_res=`eval echo '${'$as_ac_Header'}'`
29843 { echo "$as_me:$LINENO: result: $ac_res" >&5
29844 echo "${ECHO_T}$ac_res" >&6; }
29847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29848 cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29852 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29853 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29855 LIBS="$LIBS -lwrap"
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29864 int allow_severity = 0;
29865 int deny_severity = 0;
29867 struct request_info *req;
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (ac_try="$ac_link"
29881 case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_link") 2>conftest.er1
29888 grep -v '^ *+' conftest.er1 >conftest.err
29890 cat conftest.err >&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } && {
29893 test -z "$ac_c_werror_flag" ||
29894 test ! -s conftest.err
29895 } && test -s conftest$ac_exeext &&
29896 $as_test_x conftest$ac_exeext; then
29897 { echo "$as_me:$LINENO: result: -lwrap" >&5
29898 echo "${ECHO_T}-lwrap" >&6; }
29902 echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29907 cat >conftest.$ac_ext <<_ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h. */
29915 int allow_severity = 0;
29916 int deny_severity = 0;
29918 struct request_info *req;
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>conftest.er1
29939 grep -v '^ *+' conftest.er1 >conftest.err
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && {
29944 test -z "$ac_c_werror_flag" ||
29945 test ! -s conftest.err
29946 } && test -s conftest$ac_exeext &&
29947 $as_test_x conftest$ac_exeext; then
29948 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29949 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29951 LIBS="$save_LIBS -lnsl"
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29957 { echo "$as_me:$LINENO: result: no" >&5
29958 echo "${ECHO_T}no" >&6; }
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964 conftest$ac_exeext conftest.$ac_ext
29967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29968 conftest$ac_exeext conftest.$ac_ext
29976 if test $have_wrappers = yes ; then
29978 cat >>confdefs.h <<\_ACEOF
29979 #define HAVE_TCPD 1
29983 elif test $ol_enable_wrappers = yes ; then
29984 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29985 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29986 { (exit 1); exit 1; }; }
29988 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29989 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29994 if test $ol_enable_syslog != no ; then
29995 { echo "$as_me:$LINENO: checking for openlog" >&5
29996 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29997 if test "${ac_cv_func_openlog+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30006 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30008 #define openlog innocuous_openlog
30010 /* System header to define __stub macros and hopefully few prototypes,
30011 which can conflict with char openlog (); below.
30012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013 <limits.h> exists even on freestanding compilers. */
30016 # include <limits.h>
30018 # include <assert.h>
30023 /* Override any GCC internal prototype to avoid an error.
30024 Use char because int might match the return type of a GCC
30025 builtin and then its argument prototype would still apply. */
30030 /* The GNU C library defines this for functions which it implements
30031 to always fail with ENOSYS. Some functions are actually named
30032 something starting with __ and the normal name is an alias. */
30033 #if defined __stub_openlog || defined __stub___openlog
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_link") 2>conftest.er1
30054 grep -v '^ *+' conftest.er1 >conftest.err
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } && {
30059 test -z "$ac_c_werror_flag" ||
30060 test ! -s conftest.err
30061 } && test -s conftest$ac_exeext &&
30062 $as_test_x conftest$ac_exeext; then
30063 ac_cv_func_openlog=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ac_cv_func_openlog=no
30071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30072 conftest$ac_exeext conftest.$ac_ext
30074 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30075 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30077 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30078 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30079 echo "$as_me: error: could not find syslog" >&2;}
30080 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30082 ol_enable_syslog=$ac_cv_func_openlog
30086 if test $ol_enable_sql != no ; then
30089 for ac_header in sql.h sqlext.h
30091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30096 echo $ECHO_N "(cached) $ECHO_C" >&6
30098 ac_res=`eval echo '${'$as_ac_Header'}'`
30099 { echo "$as_me:$LINENO: result: $ac_res" >&5
30100 echo "${ECHO_T}$ac_res" >&6; }
30102 # Is the header compilable?
30103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30105 cat >conftest.$ac_ext <<_ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h. */
30111 $ac_includes_default
30112 #include <$ac_header>
30114 rm -f conftest.$ac_objext
30115 if { (ac_try="$ac_compile"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_compile") 2>conftest.er1
30123 grep -v '^ *+' conftest.er1 >conftest.err
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } && {
30128 test -z "$ac_c_werror_flag" ||
30129 test ! -s conftest.err
30130 } && test -s conftest.$ac_objext; then
30131 ac_header_compiler=yes
30133 echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 ac_header_compiler=no
30139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30141 echo "${ECHO_T}$ac_header_compiler" >&6; }
30143 # Is the header present?
30144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30146 cat >conftest.$ac_ext <<_ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h. */
30152 #include <$ac_header>
30154 if { (ac_try="$ac_cpp conftest.$ac_ext"
30155 case "(($ac_try" in
30156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157 *) ac_try_echo=$ac_try;;
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30162 grep -v '^ *+' conftest.er1 >conftest.err
30164 cat conftest.err >&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } >/dev/null && {
30167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30168 test ! -s conftest.err
30170 ac_header_preproc=yes
30172 echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30175 ac_header_preproc=no
30178 rm -f conftest.err conftest.$ac_ext
30179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30180 echo "${ECHO_T}$ac_header_preproc" >&6; }
30182 # So? What about this header?
30183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30189 ac_header_preproc=yes
30192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30205 ## --------------------------------------------- ##
30206 ## Report this to <http://www.openldap.org/its/> ##
30207 ## --------------------------------------------- ##
30209 ) | sed "s/^/$as_me: WARNING: /" >&2
30212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30215 echo $ECHO_N "(cached) $ECHO_C" >&6
30217 eval "$as_ac_Header=\$ac_header_preproc"
30219 ac_res=`eval echo '${'$as_ac_Header'}'`
30220 { echo "$as_me:$LINENO: result: $ac_res" >&5
30221 echo "${ECHO_T}$ac_res" >&6; }
30224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30225 cat >>confdefs.h <<_ACEOF
30226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30231 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30232 echo "$as_me: error: could not locate SQL headers" >&2;}
30233 { (exit 1); exit 1; }; }
30241 LIBS="$LTHREAD_LIBS"
30243 if test $ol_with_odbc = auto ; then
30244 ol_with_odbc="iodbc unixodbc odbc32"
30247 for odbc in $ol_with_odbc ; do
30248 if test $ol_link_sql = no ; then
30251 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30252 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-liodbc $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30265 /* Override any GCC internal prototype to avoid an error.
30266 Use char because int might match the return type of a GCC
30267 builtin and then its argument prototype would still apply. */
30271 char SQLDriverConnect ();
30275 return SQLDriverConnect ();
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_link") 2>conftest.er1
30289 grep -v '^ *+' conftest.er1 >conftest.err
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest$ac_exeext &&
30297 $as_test_x conftest$ac_exeext; then
30298 ac_cv_lib_iodbc_SQLDriverConnect=yes
30300 echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 ac_cv_lib_iodbc_SQLDriverConnect=no
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307 conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30311 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30312 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30318 if test $have_iodbc = yes ; then
30319 ol_link_sql="-liodbc"
30324 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30325 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30326 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30329 ac_check_lib_save_LIBS=$LIBS
30330 LIBS="-lodbc $LIBS"
30331 cat >conftest.$ac_ext <<_ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h. */
30338 /* Override any GCC internal prototype to avoid an error.
30339 Use char because int might match the return type of a GCC
30340 builtin and then its argument prototype would still apply. */
30344 char SQLDriverConnect ();
30348 return SQLDriverConnect ();
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357 *) ac_try_echo=$ac_try;;
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360 (eval "$ac_link") 2>conftest.er1
30362 grep -v '^ *+' conftest.er1 >conftest.err
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } && {
30367 test -z "$ac_c_werror_flag" ||
30368 test ! -s conftest.err
30369 } && test -s conftest$ac_exeext &&
30370 $as_test_x conftest$ac_exeext; then
30371 ac_cv_lib_odbc_SQLDriverConnect=yes
30373 echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30376 ac_cv_lib_odbc_SQLDriverConnect=no
30379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30380 conftest$ac_exeext conftest.$ac_ext
30381 LIBS=$ac_check_lib_save_LIBS
30383 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30384 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30385 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30391 if test $have_odbc = yes ; then
30392 ol_link_sql="-lodbc"
30397 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30398 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30399 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 ac_check_lib_save_LIBS=$LIBS
30403 LIBS="-lodbc32 $LIBS"
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30411 /* Override any GCC internal prototype to avoid an error.
30412 Use char because int might match the return type of a GCC
30413 builtin and then its argument prototype would still apply. */
30417 char SQLDriverConnect ();
30421 return SQLDriverConnect ();
30426 rm -f conftest.$ac_objext conftest$ac_exeext
30427 if { (ac_try="$ac_link"
30428 case "(($ac_try" in
30429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430 *) ac_try_echo=$ac_try;;
30432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433 (eval "$ac_link") 2>conftest.er1
30435 grep -v '^ *+' conftest.er1 >conftest.err
30437 cat conftest.err >&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } && {
30440 test -z "$ac_c_werror_flag" ||
30441 test ! -s conftest.err
30442 } && test -s conftest$ac_exeext &&
30443 $as_test_x conftest$ac_exeext; then
30444 ac_cv_lib_odbc32_SQLDriverConnect=yes
30446 echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30449 ac_cv_lib_odbc32_SQLDriverConnect=no
30452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30453 conftest$ac_exeext conftest.$ac_ext
30454 LIBS=$ac_check_lib_save_LIBS
30456 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30457 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30458 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30464 if test $have_odbc32 = yes ; then
30465 ol_link_sql="-lodbc32"
30470 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30471 echo "$as_me: error: unknown ODBC library" >&2;}
30472 { (exit 1); exit 1; }; }
30480 if test $ol_link_sql != no ; then
30481 SLAPD_SQL_LIBS="$ol_link_sql"
30483 elif test $ol_enable_sql != auto ; then
30484 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30485 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30486 { (exit 1); exit 1; }; }
30491 if test $ol_enable_ndb != no ; then
30492 # Extract the first word of "mysql_config", so it can be a program name with args.
30493 set dummy mysql_config; ac_word=$2
30494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30496 if test "${ac_cv_prog_MYSQL+set}" = set; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30499 if test -n "$MYSQL"; then
30500 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30503 for as_dir in $PATH
30506 test -z "$as_dir" && as_dir=.
30507 for ac_exec_ext in '' $ac_executable_extensions; do
30508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30509 ac_cv_prog_MYSQL="yes"
30510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30519 MYSQL=$ac_cv_prog_MYSQL
30520 if test -n "$MYSQL"; then
30521 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30522 echo "${ECHO_T}$MYSQL" >&6; }
30524 { echo "$as_me:$LINENO: result: no" >&5
30525 echo "${ECHO_T}no" >&6; }
30529 if test "$MYSQL" != yes ; then
30530 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30531 echo "$as_me: error: could not locate mysql_config" >&2;}
30532 { (exit 1); exit 1; }; }
30535 SQL_INC=`mysql_config --include`
30536 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30538 save_CPPFLAGS="$CPPFLAGS"
30539 CPPFLAGS="$SLAPD_NDB_INCS"
30540 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30541 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30542 cat >conftest.$ac_ext <<_ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h. */
30548 #include <NdbApi.hpp>
30550 if { (ac_try="$ac_cpp conftest.$ac_ext"
30551 case "(($ac_try" in
30552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553 *) ac_try_echo=$ac_try;;
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30558 grep -v '^ *+' conftest.er1 >conftest.err
30560 cat conftest.err >&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } >/dev/null && {
30563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30564 test ! -s conftest.err
30566 { echo "$as_me:$LINENO: result: yes" >&5
30567 echo "${ECHO_T}yes" >&6; }
30569 echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30572 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30573 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30574 { (exit 1); exit 1; }; }
30578 rm -f conftest.err conftest.$ac_ext
30579 CPPFLAGS="$save_CPPFLAGS"
30581 SQL_LIB=`mysql_config --libs_r`
30582 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30584 save_LDFLAGS="$LDFLAGS"
30587 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30588 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30589 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30592 ac_check_lib_save_LIBS=$LIBS
30593 LIBS="-lndbclient -lstdc++ $LIBS"
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30601 /* Override any GCC internal prototype to avoid an error.
30602 Use char because int might match the return type of a GCC
30603 builtin and then its argument prototype would still apply. */
30611 return ndb_init ();
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (ac_try="$ac_link"
30618 case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_link") 2>conftest.er1
30625 grep -v '^ *+' conftest.er1 >conftest.err
30627 cat conftest.err >&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } && {
30630 test -z "$ac_c_werror_flag" ||
30631 test ! -s conftest.err
30632 } && test -s conftest$ac_exeext &&
30633 $as_test_x conftest$ac_exeext; then
30634 ac_cv_lib_ndbclient_ndb_init=yes
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30639 ac_cv_lib_ndbclient_ndb_init=no
30642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30643 conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30646 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30647 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30648 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30652 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30653 echo "$as_me: error: could not locate ndbclient library" >&2;}
30654 { (exit 1); exit 1; }; }
30659 LDFLAGS="$save_LDFLAGS"
30661 if test "$ol_enable_ndb" = yes ; then
30662 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30668 for ac_header in unicode/utypes.h
30670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30675 echo $ECHO_N "(cached) $ECHO_C" >&6
30677 ac_res=`eval echo '${'$as_ac_Header'}'`
30678 { echo "$as_me:$LINENO: result: $ac_res" >&5
30679 echo "${ECHO_T}$ac_res" >&6; }
30681 # Is the header compilable?
30682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30684 cat >conftest.$ac_ext <<_ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30690 $ac_includes_default
30691 #include <$ac_header>
30693 rm -f conftest.$ac_objext
30694 if { (ac_try="$ac_compile"
30695 case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_compile") 2>conftest.er1
30702 grep -v '^ *+' conftest.er1 >conftest.err
30704 cat conftest.err >&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } && {
30707 test -z "$ac_c_werror_flag" ||
30708 test ! -s conftest.err
30709 } && test -s conftest.$ac_objext; then
30710 ac_header_compiler=yes
30712 echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30715 ac_header_compiler=no
30718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30720 echo "${ECHO_T}$ac_header_compiler" >&6; }
30722 # Is the header present?
30723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30725 cat >conftest.$ac_ext <<_ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30731 #include <$ac_header>
30733 if { (ac_try="$ac_cpp conftest.$ac_ext"
30734 case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30741 grep -v '^ *+' conftest.er1 >conftest.err
30743 cat conftest.err >&5
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } >/dev/null && {
30746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30747 test ! -s conftest.err
30749 ac_header_preproc=yes
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30754 ac_header_preproc=no
30757 rm -f conftest.err conftest.$ac_ext
30758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30759 echo "${ECHO_T}$ac_header_preproc" >&6; }
30761 # So? What about this header?
30762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30768 ac_header_preproc=yes
30771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30784 ## --------------------------------------------- ##
30785 ## Report this to <http://www.openldap.org/its/> ##
30786 ## --------------------------------------------- ##
30788 ) | sed "s/^/$as_me: WARNING: /" >&2
30791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 eval "$as_ac_Header=\$ac_header_preproc"
30798 ac_res=`eval echo '${'$as_ac_Header'}'`
30799 { echo "$as_me:$LINENO: result: $ac_res" >&5
30800 echo "${ECHO_T}$ac_res" >&6; }
30803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30804 cat >>confdefs.h <<_ACEOF
30805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30812 if test $ac_cv_header_unicode_utypes_h = yes ; then
30813 OL_ICULIBS="-licuuc -licudata"
30815 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30816 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30817 if test "${ol_cv_lib_icu+set}" = set; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30822 LIBS="$OL_ICULIBS $LIBS"
30823 cat >conftest.$ac_ext <<_ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30830 #include <unicode/utypes.h>
30836 (void) u_errorName(0);
30842 rm -f conftest.$ac_objext conftest$ac_exeext
30843 if { (ac_try="$ac_link"
30844 case "(($ac_try" in
30845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846 *) ac_try_echo=$ac_try;;
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849 (eval "$ac_link") 2>conftest.er1
30851 grep -v '^ *+' conftest.er1 >conftest.err
30853 cat conftest.err >&5
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } && {
30856 test -z "$ac_c_werror_flag" ||
30857 test ! -s conftest.err
30858 } && test -s conftest$ac_exeext &&
30859 $as_test_x conftest$ac_exeext; then
30862 echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30869 conftest$ac_exeext conftest.$ac_ext
30873 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30874 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30876 if test $ol_cv_lib_icu != no ; then
30877 ol_icu="$OL_ICULIBS"
30879 cat >>confdefs.h <<\_ACEOF
30886 if test "$ol_icu" = no ; then
30887 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30888 echo "$as_me: WARNING: ICU not available" >&2;}
30895 if test $ol_with_cyrus_sasl != no ; then
30898 for ac_header in sasl/sasl.h sasl.h
30900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30905 echo $ECHO_N "(cached) $ECHO_C" >&6
30907 ac_res=`eval echo '${'$as_ac_Header'}'`
30908 { echo "$as_me:$LINENO: result: $ac_res" >&5
30909 echo "${ECHO_T}$ac_res" >&6; }
30911 # Is the header compilable?
30912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30914 cat >conftest.$ac_ext <<_ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 $ac_includes_default
30921 #include <$ac_header>
30923 rm -f conftest.$ac_objext
30924 if { (ac_try="$ac_compile"
30925 case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_compile") 2>conftest.er1
30932 grep -v '^ *+' conftest.er1 >conftest.err
30934 cat conftest.err >&5
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); } && {
30937 test -z "$ac_c_werror_flag" ||
30938 test ! -s conftest.err
30939 } && test -s conftest.$ac_objext; then
30940 ac_header_compiler=yes
30942 echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30945 ac_header_compiler=no
30948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30950 echo "${ECHO_T}$ac_header_compiler" >&6; }
30952 # Is the header present?
30953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30955 cat >conftest.$ac_ext <<_ACEOF
30958 cat confdefs.h >>conftest.$ac_ext
30959 cat >>conftest.$ac_ext <<_ACEOF
30960 /* end confdefs.h. */
30961 #include <$ac_header>
30963 if { (ac_try="$ac_cpp conftest.$ac_ext"
30964 case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30971 grep -v '^ *+' conftest.er1 >conftest.err
30973 cat conftest.err >&5
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); } >/dev/null && {
30976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30977 test ! -s conftest.err
30979 ac_header_preproc=yes
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 ac_header_preproc=no
30987 rm -f conftest.err conftest.$ac_ext
30988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30989 echo "${ECHO_T}$ac_header_preproc" >&6; }
30991 # So? What about this header?
30992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30998 ac_header_preproc=yes
31001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31014 ## --------------------------------------------- ##
31015 ## Report this to <http://www.openldap.org/its/> ##
31016 ## --------------------------------------------- ##
31018 ) | sed "s/^/$as_me: WARNING: /" >&2
31021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31024 echo $ECHO_N "(cached) $ECHO_C" >&6
31026 eval "$as_ac_Header=\$ac_header_preproc"
31028 ac_res=`eval echo '${'$as_ac_Header'}'`
31029 { echo "$as_me:$LINENO: result: $ac_res" >&5
31030 echo "${ECHO_T}$ac_res" >&6; }
31033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31034 cat >>confdefs.h <<_ACEOF
31035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31043 if test $ac_cv_header_sasl_sasl_h = yes ||
31044 test $ac_cv_header_sasl_h = yes; then
31045 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31046 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
31047 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31048 echo $ECHO_N "(cached) $ECHO_C" >&6
31050 ac_check_lib_save_LIBS=$LIBS
31051 LIBS="-lsasl2 $LIBS"
31052 cat >conftest.$ac_ext <<_ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h. */
31059 /* Override any GCC internal prototype to avoid an error.
31060 Use char because int might match the return type of a GCC
31061 builtin and then its argument prototype would still apply. */
31065 char sasl_client_init ();
31069 return sasl_client_init ();
31074 rm -f conftest.$ac_objext conftest$ac_exeext
31075 if { (ac_try="$ac_link"
31076 case "(($ac_try" in
31077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081 (eval "$ac_link") 2>conftest.er1
31083 grep -v '^ *+' conftest.er1 >conftest.err
31085 cat conftest.err >&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } && {
31088 test -z "$ac_c_werror_flag" ||
31089 test ! -s conftest.err
31090 } && test -s conftest$ac_exeext &&
31091 $as_test_x conftest$ac_exeext; then
31092 ac_cv_lib_sasl2_sasl_client_init=yes
31094 echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31097 ac_cv_lib_sasl2_sasl_client_init=no
31100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31101 conftest$ac_exeext conftest.$ac_ext
31102 LIBS=$ac_check_lib_save_LIBS
31104 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31105 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
31106 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31107 ol_link_sasl="-lsasl2"
31109 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31110 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
31111 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31114 ac_check_lib_save_LIBS=$LIBS
31115 LIBS="-lsasl $LIBS"
31116 cat >conftest.$ac_ext <<_ACEOF
31119 cat confdefs.h >>conftest.$ac_ext
31120 cat >>conftest.$ac_ext <<_ACEOF
31121 /* end confdefs.h. */
31123 /* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
31129 char sasl_client_init ();
31133 return sasl_client_init ();
31138 rm -f conftest.$ac_objext conftest$ac_exeext
31139 if { (ac_try="$ac_link"
31140 case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_link") 2>conftest.er1
31147 grep -v '^ *+' conftest.er1 >conftest.err
31149 cat conftest.err >&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } && {
31152 test -z "$ac_c_werror_flag" ||
31153 test ! -s conftest.err
31154 } && test -s conftest$ac_exeext &&
31155 $as_test_x conftest$ac_exeext; then
31156 ac_cv_lib_sasl_sasl_client_init=yes
31158 echo "$as_me: failed program was:" >&5
31159 sed 's/^/| /' conftest.$ac_ext >&5
31161 ac_cv_lib_sasl_sasl_client_init=no
31164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31165 conftest$ac_exeext conftest.$ac_ext
31166 LIBS=$ac_check_lib_save_LIBS
31168 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31169 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31170 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31171 ol_link_sasl="-lsasl"
31178 if test $ol_link_sasl = no ; then
31179 if test $ol_with_cyrus_sasl != auto ; then
31180 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31181 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31182 { (exit 1); exit 1; }; }
31184 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31185 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31186 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31187 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31188 if test $ol_link_tls = no ; then
31189 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31190 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31194 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31195 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31196 if test "${ol_cv_sasl_compat+set}" = set; then
31197 echo $ECHO_N "(cached) $ECHO_C" >&6
31200 cat >conftest.$ac_ext <<_ACEOF
31203 cat confdefs.h >>conftest.$ac_ext
31204 cat >>conftest.$ac_ext <<_ACEOF
31205 /* end confdefs.h. */
31207 #ifdef HAVE_SASL_SASL_H
31208 #include <sasl/sasl.h>
31213 /* Require 2.1.15+ */
31214 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
31215 char *__sasl_compat = "2.2+ or better okay (we guess)";
31216 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
31217 && SASL_VERSION_STEP >=15
31218 char *__sasl_compat = "2.1.15+ or better okay";
31222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31223 $EGREP "__sasl_compat" >/dev/null 2>&1; then
31224 ol_cv_sasl_compat=yes
31226 ol_cv_sasl_compat=no
31231 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31232 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31234 if test $ol_cv_sasl_compat = no ; then
31236 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31237 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31238 { (exit 1); exit 1; }; }
31242 cat >>confdefs.h <<\_ACEOF
31243 #define HAVE_CYRUS_SASL 1
31246 SASL_LIBS="$ol_link_sasl"
31247 if test $ol_enable_spasswd != no ; then
31248 ol_link_spasswd=yes
31251 ac_save_LIBS="$LIBS"
31252 LIBS="$LIBS $ol_link_sasl"
31253 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31254 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31255 if test "${ac_cv_func_sasl_version+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31258 cat >conftest.$ac_ext <<_ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h. */
31264 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31266 #define sasl_version innocuous_sasl_version
31268 /* System header to define __stub macros and hopefully few prototypes,
31269 which can conflict with char sasl_version (); below.
31270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31271 <limits.h> exists even on freestanding compilers. */
31274 # include <limits.h>
31276 # include <assert.h>
31279 #undef sasl_version
31281 /* Override any GCC internal prototype to avoid an error.
31282 Use char because int might match the return type of a GCC
31283 builtin and then its argument prototype would still apply. */
31287 char sasl_version ();
31288 /* The GNU C library defines this for functions which it implements
31289 to always fail with ENOSYS. Some functions are actually named
31290 something starting with __ and the normal name is an alias. */
31291 #if defined __stub_sasl_version || defined __stub___sasl_version
31298 return sasl_version ();
31303 rm -f conftest.$ac_objext conftest$ac_exeext
31304 if { (ac_try="$ac_link"
31305 case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_link") 2>conftest.er1
31312 grep -v '^ *+' conftest.er1 >conftest.err
31314 cat conftest.err >&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } && {
31317 test -z "$ac_c_werror_flag" ||
31318 test ! -s conftest.err
31319 } && test -s conftest$ac_exeext &&
31320 $as_test_x conftest$ac_exeext; then
31321 ac_cv_func_sasl_version=yes
31323 echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31326 ac_cv_func_sasl_version=no
31329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31330 conftest$ac_exeext conftest.$ac_ext
31332 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31333 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31334 if test $ac_cv_func_sasl_version = yes; then
31336 cat >>confdefs.h <<\_ACEOF
31337 #define HAVE_SASL_VERSION 1
31342 LIBS="$ac_save_LIBS"
31348 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31349 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31350 if test $ol_link_tls = no ; then
31351 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31352 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31356 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31358 if test -r /dev/urandom ; then
31359 dev="/dev/urandom";
31360 elif test -r /idev/urandom ; then
31361 dev="/idev/urandom";
31362 elif test -r /dev/srandom ; then
31363 dev="/dev/srandom";
31364 elif test -r /dev/random ; then
31366 elif test -r /idev/random ; then
31367 dev="/idev/random";
31370 if test $dev != no ; then
31372 cat >>confdefs.h <<_ACEOF
31373 #define URANDOM_DEVICE "$dev"
31380 if test $ol_with_fetch != no ; then
31382 LIBS="-lfetch -lcom_err $LIBS"
31383 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31384 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31385 if test "${ol_cv_lib_fetch+set}" = set; then
31386 echo $ECHO_N "(cached) $ECHO_C" >&6
31389 cat >conftest.$ac_ext <<_ACEOF
31392 cat confdefs.h >>conftest.$ac_ext
31393 cat >>conftest.$ac_ext <<_ACEOF
31394 /* end confdefs.h. */
31396 #ifdef HAVE_SYS_PARAM_H
31397 #include <sys/param.h>
31404 struct url *u = fetchParseURL("file:///");
31409 rm -f conftest.$ac_objext conftest$ac_exeext
31410 if { (ac_try="$ac_link"
31411 case "(($ac_try" in
31412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413 *) ac_try_echo=$ac_try;;
31415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416 (eval "$ac_link") 2>conftest.er1
31418 grep -v '^ *+' conftest.er1 >conftest.err
31420 cat conftest.err >&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } && {
31423 test -z "$ac_c_werror_flag" ||
31424 test ! -s conftest.err
31425 } && test -s conftest$ac_exeext &&
31426 $as_test_x conftest$ac_exeext; then
31427 ol_cv_lib_fetch=yes
31429 echo "$as_me: failed program was:" >&5
31430 sed 's/^/| /' conftest.$ac_ext >&5
31435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31436 conftest$ac_exeext conftest.$ac_ext
31438 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31439 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31441 if test $ol_cv_lib_fetch != no ; then
31442 ol_link_fetch="-lfetch -lcom_err"
31444 cat >>confdefs.h <<\_ACEOF
31445 #define HAVE_FETCH 1
31451 if test $ol_cv_lib_fetch != no ; then
31452 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31453 ol_link_fetch=freebsd
31455 elif test $ol_with_fetch != auto ; then
31456 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31457 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31458 { (exit 1); exit 1; }; }
31462 if test $ol_enable_crypt != no ; then
31464 LIBS="$TLS_LIBS $LIBS"
31466 { echo "$as_me:$LINENO: checking for crypt" >&5
31467 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31468 if test "${ac_cv_func_crypt+set}" = set; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 cat >conftest.$ac_ext <<_ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h. */
31477 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31479 #define crypt innocuous_crypt
31481 /* System header to define __stub macros and hopefully few prototypes,
31482 which can conflict with char crypt (); below.
31483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31484 <limits.h> exists even on freestanding compilers. */
31487 # include <limits.h>
31489 # include <assert.h>
31494 /* Override any GCC internal prototype to avoid an error.
31495 Use char because int might match the return type of a GCC
31496 builtin and then its argument prototype would still apply. */
31501 /* The GNU C library defines this for functions which it implements
31502 to always fail with ENOSYS. Some functions are actually named
31503 something starting with __ and the normal name is an alias. */
31504 #if defined __stub_crypt || defined __stub___crypt
31516 rm -f conftest.$ac_objext conftest$ac_exeext
31517 if { (ac_try="$ac_link"
31518 case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_link") 2>conftest.er1
31525 grep -v '^ *+' conftest.er1 >conftest.err
31527 cat conftest.err >&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); } && {
31530 test -z "$ac_c_werror_flag" ||
31531 test ! -s conftest.err
31532 } && test -s conftest$ac_exeext &&
31533 $as_test_x conftest$ac_exeext; then
31534 ac_cv_func_crypt=yes
31536 echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31539 ac_cv_func_crypt=no
31542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31543 conftest$ac_exeext conftest.$ac_ext
31545 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31546 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31547 if test $ac_cv_func_crypt = yes; then
31552 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31553 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31554 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31557 ac_check_lib_save_LIBS=$LIBS
31558 LIBS="-lcrypt $LIBS"
31559 cat >conftest.$ac_ext <<_ACEOF
31562 cat confdefs.h >>conftest.$ac_ext
31563 cat >>conftest.$ac_ext <<_ACEOF
31564 /* end confdefs.h. */
31566 /* Override any GCC internal prototype to avoid an error.
31567 Use char because int might match the return type of a GCC
31568 builtin and then its argument prototype would still apply. */
31581 rm -f conftest.$ac_objext conftest$ac_exeext
31582 if { (ac_try="$ac_link"
31583 case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_link") 2>conftest.er1
31590 grep -v '^ *+' conftest.er1 >conftest.err
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } && {
31595 test -z "$ac_c_werror_flag" ||
31596 test ! -s conftest.err
31597 } && test -s conftest$ac_exeext &&
31598 $as_test_x conftest$ac_exeext; then
31599 ac_cv_lib_crypt_crypt=yes
31601 echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31604 ac_cv_lib_crypt_crypt=no
31607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31608 conftest$ac_exeext conftest.$ac_ext
31609 LIBS=$ac_check_lib_save_LIBS
31611 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31612 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31613 if test $ac_cv_lib_crypt_crypt = yes; then
31614 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31625 if test $have_crypt = yes ; then
31627 cat >>confdefs.h <<\_ACEOF
31628 #define HAVE_CRYPT 1
31632 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31633 echo "$as_me: WARNING: could not find crypt" >&2;}
31634 if test $ol_enable_crypt = yes ; then
31635 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31636 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31637 { (exit 1); exit 1; }; }
31640 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31641 echo "$as_me: WARNING: disabling crypt support" >&2;}
31646 if test $ol_enable_proctitle != no ; then
31647 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31648 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31649 if test "${ac_cv_func_setproctitle+set}" = set; then
31650 echo $ECHO_N "(cached) $ECHO_C" >&6
31652 cat >conftest.$ac_ext <<_ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31658 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31660 #define setproctitle innocuous_setproctitle
31662 /* System header to define __stub macros and hopefully few prototypes,
31663 which can conflict with char setproctitle (); below.
31664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31665 <limits.h> exists even on freestanding compilers. */
31668 # include <limits.h>
31670 # include <assert.h>
31673 #undef setproctitle
31675 /* Override any GCC internal prototype to avoid an error.
31676 Use char because int might match the return type of a GCC
31677 builtin and then its argument prototype would still apply. */
31681 char setproctitle ();
31682 /* The GNU C library defines this for functions which it implements
31683 to always fail with ENOSYS. Some functions are actually named
31684 something starting with __ and the normal name is an alias. */
31685 #if defined __stub_setproctitle || defined __stub___setproctitle
31692 return setproctitle ();
31697 rm -f conftest.$ac_objext conftest$ac_exeext
31698 if { (ac_try="$ac_link"
31699 case "(($ac_try" in
31700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701 *) ac_try_echo=$ac_try;;
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_link") 2>conftest.er1
31706 grep -v '^ *+' conftest.er1 >conftest.err
31708 cat conftest.err >&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); } && {
31711 test -z "$ac_c_werror_flag" ||
31712 test ! -s conftest.err
31713 } && test -s conftest$ac_exeext &&
31714 $as_test_x conftest$ac_exeext; then
31715 ac_cv_func_setproctitle=yes
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_cv_func_setproctitle=no
31723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31724 conftest$ac_exeext conftest.$ac_ext
31726 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31727 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31728 if test $ac_cv_func_setproctitle = yes; then
31729 have_setproctitle=yes
31732 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31733 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31734 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31737 ac_check_lib_save_LIBS=$LIBS
31738 LIBS="-lutil $LIBS"
31739 cat >conftest.$ac_ext <<_ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31746 /* Override any GCC internal prototype to avoid an error.
31747 Use char because int might match the return type of a GCC
31748 builtin and then its argument prototype would still apply. */
31752 char setproctitle ();
31756 return setproctitle ();
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (ac_try="$ac_link"
31763 case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_link") 2>conftest.er1
31770 grep -v '^ *+' conftest.er1 >conftest.err
31772 cat conftest.err >&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } && {
31775 test -z "$ac_c_werror_flag" ||
31776 test ! -s conftest.err
31777 } && test -s conftest$ac_exeext &&
31778 $as_test_x conftest$ac_exeext; then
31779 ac_cv_lib_util_setproctitle=yes
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31784 ac_cv_lib_util_setproctitle=no
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788 conftest$ac_exeext conftest.$ac_ext
31789 LIBS=$ac_check_lib_save_LIBS
31791 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31792 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31793 if test $ac_cv_lib_util_setproctitle = yes; then
31794 have_setproctitle=yes
31795 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31797 have_setproctitle=no
31798 case " $LIBOBJS " in
31799 *" setproctitle.$ac_objext "* ) ;;
31800 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31804 LIBSRCS="$LIBSRCS setproctitle.c"
31810 if test $have_setproctitle = yes ; then
31812 cat >>confdefs.h <<\_ACEOF
31813 #define HAVE_SETPROCTITLE 1
31819 if test $ol_enable_slp != no ; then
31821 for ac_header in slp.h
31823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31828 echo $ECHO_N "(cached) $ECHO_C" >&6
31830 ac_res=`eval echo '${'$as_ac_Header'}'`
31831 { echo "$as_me:$LINENO: result: $ac_res" >&5
31832 echo "${ECHO_T}$ac_res" >&6; }
31834 # Is the header compilable?
31835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31837 cat >conftest.$ac_ext <<_ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h. */
31843 $ac_includes_default
31844 #include <$ac_header>
31846 rm -f conftest.$ac_objext
31847 if { (ac_try="$ac_compile"
31848 case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_compile") 2>conftest.er1
31855 grep -v '^ *+' conftest.er1 >conftest.err
31857 cat conftest.err >&5
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); } && {
31860 test -z "$ac_c_werror_flag" ||
31861 test ! -s conftest.err
31862 } && test -s conftest.$ac_objext; then
31863 ac_header_compiler=yes
31865 echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31868 ac_header_compiler=no
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31873 echo "${ECHO_T}$ac_header_compiler" >&6; }
31875 # Is the header present?
31876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31878 cat >conftest.$ac_ext <<_ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31884 #include <$ac_header>
31886 if { (ac_try="$ac_cpp conftest.$ac_ext"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } >/dev/null && {
31899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31900 test ! -s conftest.err
31902 ac_header_preproc=yes
31904 echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31907 ac_header_preproc=no
31910 rm -f conftest.err conftest.$ac_ext
31911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31912 echo "${ECHO_T}$ac_header_preproc" >&6; }
31914 # So? What about this header?
31915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31921 ac_header_preproc=yes
31924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31937 ## --------------------------------------------- ##
31938 ## Report this to <http://www.openldap.org/its/> ##
31939 ## --------------------------------------------- ##
31941 ) | sed "s/^/$as_me: WARNING: /" >&2
31944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31947 echo $ECHO_N "(cached) $ECHO_C" >&6
31949 eval "$as_ac_Header=\$ac_header_preproc"
31951 ac_res=`eval echo '${'$as_ac_Header'}'`
31952 { echo "$as_me:$LINENO: result: $ac_res" >&5
31953 echo "${ECHO_T}$ac_res" >&6; }
31956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31957 cat >>confdefs.h <<_ACEOF
31958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31966 if test $ac_cv_header_slp_h = yes ; then
31967 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31968 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31969 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31972 ac_check_lib_save_LIBS=$LIBS
31974 cat >conftest.$ac_ext <<_ACEOF
31977 cat confdefs.h >>conftest.$ac_ext
31978 cat >>conftest.$ac_ext <<_ACEOF
31979 /* end confdefs.h. */
31981 /* Override any GCC internal prototype to avoid an error.
31982 Use char because int might match the return type of a GCC
31983 builtin and then its argument prototype would still apply. */
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (ac_try="$ac_link"
31998 case "(($ac_try" in
31999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000 *) ac_try_echo=$ac_try;;
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003 (eval "$ac_link") 2>conftest.er1
32005 grep -v '^ *+' conftest.er1 >conftest.err
32007 cat conftest.err >&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } && {
32010 test -z "$ac_c_werror_flag" ||
32011 test ! -s conftest.err
32012 } && test -s conftest$ac_exeext &&
32013 $as_test_x conftest$ac_exeext; then
32014 ac_cv_lib_slp_SLPOpen=yes
32016 echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32019 ac_cv_lib_slp_SLPOpen=no
32022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32023 conftest$ac_exeext conftest.$ac_ext
32024 LIBS=$ac_check_lib_save_LIBS
32026 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32027 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
32028 if test $ac_cv_lib_slp_SLPOpen = yes; then
32034 if test $have_slp = yes ; then
32036 cat >>confdefs.h <<\_ACEOF
32040 SLAPD_SLP_LIBS=-lslp
32043 elif test $ol_enable_slp = yes ; then
32044 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32045 echo "$as_me: error: SLP not found" >&2;}
32046 { (exit 1); exit 1; }; }
32051 { echo "$as_me:$LINENO: checking for mode_t" >&5
32052 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
32053 if test "${ac_cv_type_mode_t+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32056 cat >conftest.$ac_ext <<_ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h. */
32062 $ac_includes_default
32063 typedef mode_t ac__type_new_;
32067 if ((ac__type_new_ *) 0)
32069 if (sizeof (ac__type_new_))
32075 rm -f conftest.$ac_objext
32076 if { (ac_try="$ac_compile"
32077 case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_compile") 2>conftest.er1
32084 grep -v '^ *+' conftest.er1 >conftest.err
32086 cat conftest.err >&5
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } && {
32089 test -z "$ac_c_werror_flag" ||
32090 test ! -s conftest.err
32091 } && test -s conftest.$ac_objext; then
32092 ac_cv_type_mode_t=yes
32094 echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32097 ac_cv_type_mode_t=no
32100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32103 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
32104 if test $ac_cv_type_mode_t = yes; then
32108 cat >>confdefs.h <<_ACEOF
32114 { echo "$as_me:$LINENO: checking for off_t" >&5
32115 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32116 if test "${ac_cv_type_off_t+set}" = set; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32119 cat >conftest.$ac_ext <<_ACEOF
32122 cat confdefs.h >>conftest.$ac_ext
32123 cat >>conftest.$ac_ext <<_ACEOF
32124 /* end confdefs.h. */
32125 $ac_includes_default
32126 typedef off_t ac__type_new_;
32130 if ((ac__type_new_ *) 0)
32132 if (sizeof (ac__type_new_))
32138 rm -f conftest.$ac_objext
32139 if { (ac_try="$ac_compile"
32140 case "(($ac_try" in
32141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142 *) ac_try_echo=$ac_try;;
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145 (eval "$ac_compile") 2>conftest.er1
32147 grep -v '^ *+' conftest.er1 >conftest.err
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } && {
32152 test -z "$ac_c_werror_flag" ||
32153 test ! -s conftest.err
32154 } && test -s conftest.$ac_objext; then
32155 ac_cv_type_off_t=yes
32157 echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32160 ac_cv_type_off_t=no
32163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32165 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32166 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32167 if test $ac_cv_type_off_t = yes; then
32171 cat >>confdefs.h <<_ACEOF
32177 { echo "$as_me:$LINENO: checking for pid_t" >&5
32178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32179 if test "${ac_cv_type_pid_t+set}" = set; then
32180 echo $ECHO_N "(cached) $ECHO_C" >&6
32182 cat >conftest.$ac_ext <<_ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32188 $ac_includes_default
32189 typedef pid_t ac__type_new_;
32193 if ((ac__type_new_ *) 0)
32195 if (sizeof (ac__type_new_))
32201 rm -f conftest.$ac_objext
32202 if { (ac_try="$ac_compile"
32203 case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_compile") 2>conftest.er1
32210 grep -v '^ *+' conftest.er1 >conftest.err
32212 cat conftest.err >&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); } && {
32215 test -z "$ac_c_werror_flag" ||
32216 test ! -s conftest.err
32217 } && test -s conftest.$ac_objext; then
32218 ac_cv_type_pid_t=yes
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32223 ac_cv_type_pid_t=no
32226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32230 if test $ac_cv_type_pid_t = yes; then
32234 cat >>confdefs.h <<_ACEOF
32240 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32241 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32242 if test "${ac_cv_type_ssize_t+set}" = set; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32245 cat >conftest.$ac_ext <<_ACEOF
32248 cat confdefs.h >>conftest.$ac_ext
32249 cat >>conftest.$ac_ext <<_ACEOF
32250 /* end confdefs.h. */
32251 $ac_includes_default
32252 typedef ssize_t ac__type_new_;
32256 if ((ac__type_new_ *) 0)
32258 if (sizeof (ac__type_new_))
32264 rm -f conftest.$ac_objext
32265 if { (ac_try="$ac_compile"
32266 case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_compile") 2>conftest.er1
32273 grep -v '^ *+' conftest.er1 >conftest.err
32275 cat conftest.err >&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); } && {
32278 test -z "$ac_c_werror_flag" ||
32279 test ! -s conftest.err
32280 } && test -s conftest.$ac_objext; then
32281 ac_cv_type_ssize_t=yes
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 ac_cv_type_ssize_t=no
32289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32291 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32292 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32293 if test $ac_cv_type_ssize_t = yes; then
32297 cat >>confdefs.h <<_ACEOF
32298 #define ssize_t signed int
32303 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32304 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32305 if test "${ac_cv_type_caddr_t+set}" = set; then
32306 echo $ECHO_N "(cached) $ECHO_C" >&6
32308 cat >conftest.$ac_ext <<_ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h. */
32314 $ac_includes_default
32315 typedef caddr_t ac__type_new_;
32319 if ((ac__type_new_ *) 0)
32321 if (sizeof (ac__type_new_))
32327 rm -f conftest.$ac_objext
32328 if { (ac_try="$ac_compile"
32329 case "(($ac_try" in
32330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331 *) ac_try_echo=$ac_try;;
32333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334 (eval "$ac_compile") 2>conftest.er1
32336 grep -v '^ *+' conftest.er1 >conftest.err
32338 cat conftest.err >&5
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); } && {
32341 test -z "$ac_c_werror_flag" ||
32342 test ! -s conftest.err
32343 } && test -s conftest.$ac_objext; then
32344 ac_cv_type_caddr_t=yes
32346 echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32349 ac_cv_type_caddr_t=no
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32354 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32355 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32356 if test $ac_cv_type_caddr_t = yes; then
32360 cat >>confdefs.h <<_ACEOF
32361 #define caddr_t char *
32366 { echo "$as_me:$LINENO: checking for size_t" >&5
32367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32368 if test "${ac_cv_type_size_t+set}" = set; then
32369 echo $ECHO_N "(cached) $ECHO_C" >&6
32371 cat >conftest.$ac_ext <<_ACEOF
32374 cat confdefs.h >>conftest.$ac_ext
32375 cat >>conftest.$ac_ext <<_ACEOF
32376 /* end confdefs.h. */
32377 $ac_includes_default
32378 typedef size_t ac__type_new_;
32382 if ((ac__type_new_ *) 0)
32384 if (sizeof (ac__type_new_))
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
32399 grep -v '^ *+' conftest.er1 >conftest.err
32401 cat conftest.err >&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } && {
32404 test -z "$ac_c_werror_flag" ||
32405 test ! -s conftest.err
32406 } && test -s conftest.$ac_objext; then
32407 ac_cv_type_size_t=yes
32409 echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.$ac_ext >&5
32412 ac_cv_type_size_t=no
32415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32419 if test $ac_cv_type_size_t = yes; then
32423 cat >>confdefs.h <<_ACEOF
32424 #define size_t unsigned
32430 { echo "$as_me:$LINENO: checking for long long" >&5
32431 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32432 if test "${ac_cv_type_long_long+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32435 cat >conftest.$ac_ext <<_ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h. */
32441 $ac_includes_default
32442 typedef long long ac__type_new_;
32446 if ((ac__type_new_ *) 0)
32448 if (sizeof (ac__type_new_))
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461 (eval "$ac_compile") 2>conftest.er1
32463 grep -v '^ *+' conftest.er1 >conftest.err
32465 cat conftest.err >&5
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } && {
32468 test -z "$ac_c_werror_flag" ||
32469 test ! -s conftest.err
32470 } && test -s conftest.$ac_objext; then
32471 ac_cv_type_long_long=yes
32473 echo "$as_me: failed program was:" >&5
32474 sed 's/^/| /' conftest.$ac_ext >&5
32476 ac_cv_type_long_long=no
32479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32481 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32482 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32483 if test $ac_cv_type_long_long = yes; then
32485 cat >>confdefs.h <<_ACEOF
32486 #define HAVE_LONG_LONG 1
32492 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32493 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32494 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32497 cat >conftest.$ac_ext <<_ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h. */
32503 $ac_includes_default
32504 typedef ptrdiff_t ac__type_new_;
32508 if ((ac__type_new_ *) 0)
32510 if (sizeof (ac__type_new_))
32516 rm -f conftest.$ac_objext
32517 if { (ac_try="$ac_compile"
32518 case "(($ac_try" in
32519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520 *) ac_try_echo=$ac_try;;
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523 (eval "$ac_compile") 2>conftest.er1
32525 grep -v '^ *+' conftest.er1 >conftest.err
32527 cat conftest.err >&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); } && {
32530 test -z "$ac_c_werror_flag" ||
32531 test ! -s conftest.err
32532 } && test -s conftest.$ac_objext; then
32533 ac_cv_type_ptrdiff_t=yes
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32538 ac_cv_type_ptrdiff_t=no
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32543 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32544 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32545 if test $ac_cv_type_ptrdiff_t = yes; then
32547 cat >>confdefs.h <<_ACEOF
32548 #define HAVE_PTRDIFF_T 1
32556 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32557 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32558 if test "${ac_cv_type_socklen_t+set}" = set; then
32559 echo $ECHO_N "(cached) $ECHO_C" >&6
32561 cat >conftest.$ac_ext <<_ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h. */
32567 $ac_includes_default
32568 #ifdef HAVE_SYS_SOCKET_H
32569 #include <sys/socket.h>
32572 typedef socklen_t ac__type_new_;
32576 if ((ac__type_new_ *) 0)
32578 if (sizeof (ac__type_new_))
32584 rm -f conftest.$ac_objext
32585 if { (ac_try="$ac_compile"
32586 case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_compile") 2>conftest.er1
32593 grep -v '^ *+' conftest.er1 >conftest.err
32595 cat conftest.err >&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } && {
32598 test -z "$ac_c_werror_flag" ||
32599 test ! -s conftest.err
32600 } && test -s conftest.$ac_objext; then
32601 ac_cv_type_socklen_t=yes
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32606 ac_cv_type_socklen_t=no
32609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32612 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32615 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32616 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32617 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32621 set socklen_t int unsigned "unsigned long" long size_t
32622 test "$ac_cv_type_socklen_t" = yes || shift
32623 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32624 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32625 cat >conftest.$ac_ext <<_ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h. */
32631 $ac_includes_default
32632 #ifdef HAVE_SYS_SOCKET_H
32633 #include <sys/socket.h>
32635 extern int accept(int s, $addrtype *ap, $lentype *lp);
32641 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32647 rm -f conftest.$ac_objext
32648 if { (ac_try="$ac_compile"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
32656 grep -v '^ *+' conftest.er1 >conftest.err
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && {
32661 test -z "$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32663 } && test -s conftest.$ac_objext; then
32664 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32676 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32677 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32679 cat >>confdefs.h <<_ACEOF
32680 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32684 if test "$ac_cv_type_socklen_t" != yes; then
32686 cat >>confdefs.h <<_ACEOF
32687 #define socklen_t $ol_cv_type_ber_socklen_t
32693 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32694 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32695 if test "${ac_cv_type_signal+set}" = set; then
32696 echo $ECHO_N "(cached) $ECHO_C" >&6
32698 cat >conftest.$ac_ext <<_ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h. */
32704 #include <sys/types.h>
32705 #include <signal.h>
32710 return *(signal (0, 0)) (0) == 1;
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_compile") 2>conftest.er1
32724 grep -v '^ *+' conftest.er1 >conftest.err
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } && {
32729 test -z "$ac_c_werror_flag" ||
32730 test ! -s conftest.err
32731 } && test -s conftest.$ac_objext; then
32732 ac_cv_type_signal=int
32734 echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32737 ac_cv_type_signal=void
32740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32742 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32743 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32745 cat >>confdefs.h <<_ACEOF
32746 #define RETSIGTYPE $ac_cv_type_signal
32751 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32752 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32753 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 cat >conftest.$ac_ext <<_ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h. */
32762 $ac_includes_default
32763 #include <signal.h>
32766 typedef sig_atomic_t ac__type_new_;
32770 if ((ac__type_new_ *) 0)
32772 if (sizeof (ac__type_new_))
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
32787 grep -v '^ *+' conftest.er1 >conftest.err
32789 cat conftest.err >&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } && {
32792 test -z "$ac_c_werror_flag" ||
32793 test ! -s conftest.err
32794 } && test -s conftest.$ac_objext; then
32795 ac_cv_type_sig_atomic_t=yes
32797 echo "$as_me: failed program was:" >&5
32798 sed 's/^/| /' conftest.$ac_ext >&5
32800 ac_cv_type_sig_atomic_t=no
32803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32805 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32806 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32807 if test $ac_cv_type_sig_atomic_t = yes; then
32811 cat >>confdefs.h <<_ACEOF
32812 #define sig_atomic_t int
32818 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32819 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32820 if test "${ac_cv_type_uid_t+set}" = set; then
32821 echo $ECHO_N "(cached) $ECHO_C" >&6
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32829 #include <sys/types.h>
32832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32833 $EGREP "uid_t" >/dev/null 2>&1; then
32834 ac_cv_type_uid_t=yes
32836 ac_cv_type_uid_t=no
32841 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32842 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32843 if test $ac_cv_type_uid_t = no; then
32845 cat >>confdefs.h <<\_ACEOF
32850 cat >>confdefs.h <<\_ACEOF
32857 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32858 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32859 if test "${ac_cv_header_time+set}" = set; then
32860 echo $ECHO_N "(cached) $ECHO_C" >&6
32862 cat >conftest.$ac_ext <<_ACEOF
32865 cat confdefs.h >>conftest.$ac_ext
32866 cat >>conftest.$ac_ext <<_ACEOF
32867 /* end confdefs.h. */
32868 #include <sys/types.h>
32869 #include <sys/time.h>
32875 if ((struct tm *) 0)
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1 >conftest.err
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.$ac_objext; then
32898 ac_cv_header_time=yes
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 ac_cv_header_time=no
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32908 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32909 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32910 if test $ac_cv_header_time = yes; then
32912 cat >>confdefs.h <<\_ACEOF
32913 #define TIME_WITH_SYS_TIME 1
32918 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32919 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32920 if test "${ac_cv_struct_tm+set}" = set; then
32921 echo $ECHO_N "(cached) $ECHO_C" >&6
32923 cat >conftest.$ac_ext <<_ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h. */
32929 #include <sys/types.h>
32936 int *p = &tm.tm_sec;
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
32944 case "(($ac_try" in
32945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946 *) ac_try_echo=$ac_try;;
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949 (eval "$ac_compile") 2>conftest.er1
32951 grep -v '^ *+' conftest.er1 >conftest.err
32953 cat conftest.err >&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); } && {
32956 test -z "$ac_c_werror_flag" ||
32957 test ! -s conftest.err
32958 } && test -s conftest.$ac_objext; then
32959 ac_cv_struct_tm=time.h
32961 echo "$as_me: failed program was:" >&5
32962 sed 's/^/| /' conftest.$ac_ext >&5
32964 ac_cv_struct_tm=sys/time.h
32967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32969 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32970 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32971 if test $ac_cv_struct_tm = sys/time.h; then
32973 cat >>confdefs.h <<\_ACEOF
32974 #define TM_IN_SYS_TIME 1
32979 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32980 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32981 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32984 cat >conftest.$ac_ext <<_ACEOF
32987 cat confdefs.h >>conftest.$ac_ext
32988 cat >>conftest.$ac_ext <<_ACEOF
32989 /* end confdefs.h. */
32990 $ac_includes_default
32994 static struct stat ac_aggr;
32995 if (ac_aggr.st_blksize)
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_compile") 2>conftest.er1
33010 grep -v '^ *+' conftest.er1 >conftest.err
33012 cat conftest.err >&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } && {
33015 test -z "$ac_c_werror_flag" ||
33016 test ! -s conftest.err
33017 } && test -s conftest.$ac_objext; then
33018 ac_cv_member_struct_stat_st_blksize=yes
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33023 cat >conftest.$ac_ext <<_ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33029 $ac_includes_default
33033 static struct stat ac_aggr;
33034 if (sizeof ac_aggr.st_blksize)
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33049 grep -v '^ *+' conftest.er1 >conftest.err
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } && {
33054 test -z "$ac_c_werror_flag" ||
33055 test ! -s conftest.err
33056 } && test -s conftest.$ac_objext; then
33057 ac_cv_member_struct_stat_st_blksize=yes
33059 echo "$as_me: failed program was:" >&5
33060 sed 's/^/| /' conftest.$ac_ext >&5
33062 ac_cv_member_struct_stat_st_blksize=no
33065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33072 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33074 cat >>confdefs.h <<_ACEOF
33075 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33081 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33082 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
33083 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33086 cat >conftest.$ac_ext <<_ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33092 $ac_includes_default
33098 static struct passwd ac_aggr;
33099 if (ac_aggr.pw_gecos)
33105 rm -f conftest.$ac_objext
33106 if { (ac_try="$ac_compile"
33107 case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_compile") 2>conftest.er1
33114 grep -v '^ *+' conftest.er1 >conftest.err
33116 cat conftest.err >&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } && {
33119 test -z "$ac_c_werror_flag" ||
33120 test ! -s conftest.err
33121 } && test -s conftest.$ac_objext; then
33122 ac_cv_member_struct_passwd_pw_gecos=yes
33124 echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33127 cat >conftest.$ac_ext <<_ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h. */
33133 $ac_includes_default
33139 static struct passwd ac_aggr;
33140 if (sizeof ac_aggr.pw_gecos)
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
33155 grep -v '^ *+' conftest.er1 >conftest.err
33157 cat conftest.err >&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } && {
33160 test -z "$ac_c_werror_flag" ||
33161 test ! -s conftest.err
33162 } && test -s conftest.$ac_objext; then
33163 ac_cv_member_struct_passwd_pw_gecos=yes
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ac_cv_member_struct_passwd_pw_gecos=no
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33177 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33178 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33180 cat >>confdefs.h <<_ACEOF
33181 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33187 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33188 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33189 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33192 cat >conftest.$ac_ext <<_ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33198 $ac_includes_default
33204 static struct passwd ac_aggr;
33205 if (ac_aggr.pw_passwd)
33211 rm -f conftest.$ac_objext
33212 if { (ac_try="$ac_compile"
33213 case "(($ac_try" in
33214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 *) ac_try_echo=$ac_try;;
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 (eval "$ac_compile") 2>conftest.er1
33220 grep -v '^ *+' conftest.er1 >conftest.err
33222 cat conftest.err >&5
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); } && {
33225 test -z "$ac_c_werror_flag" ||
33226 test ! -s conftest.err
33227 } && test -s conftest.$ac_objext; then
33228 ac_cv_member_struct_passwd_pw_passwd=yes
33230 echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33233 cat >conftest.$ac_ext <<_ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h. */
33239 $ac_includes_default
33245 static struct passwd ac_aggr;
33246 if (sizeof ac_aggr.pw_passwd)
33252 rm -f conftest.$ac_objext
33253 if { (ac_try="$ac_compile"
33254 case "(($ac_try" in
33255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256 *) ac_try_echo=$ac_try;;
33258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259 (eval "$ac_compile") 2>conftest.er1
33261 grep -v '^ *+' conftest.er1 >conftest.err
33263 cat conftest.err >&5
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); } && {
33266 test -z "$ac_c_werror_flag" ||
33267 test ! -s conftest.err
33268 } && test -s conftest.$ac_objext; then
33269 ac_cv_member_struct_passwd_pw_passwd=yes
33271 echo "$as_me: failed program was:" >&5
33272 sed 's/^/| /' conftest.$ac_ext >&5
33274 ac_cv_member_struct_passwd_pw_passwd=no
33277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33282 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33283 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33284 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33294 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33295 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33296 if test "${ol_cv_c_upper_lower+set}" = set; then
33297 echo $ECHO_N "(cached) $ECHO_C" >&6
33300 if test "$cross_compiling" = yes; then
33301 ol_cv_c_upper_lower=safe
33303 cat >conftest.$ac_ext <<_ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33313 if ('C' == toupper('C'))
33319 rm -f conftest$ac_exeext
33320 if { (ac_try="$ac_link"
33321 case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_link") 2>&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33330 { (case "(($ac_try" in
33331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332 *) ac_try_echo=$ac_try;;
33334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335 (eval "$ac_try") 2>&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; }; then
33339 ol_cv_c_upper_lower=no
33341 echo "$as_me: program exited with status $ac_status" >&5
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 ( exit $ac_status )
33346 ol_cv_c_upper_lower=yes
33348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33353 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33354 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33355 if test $ol_cv_c_upper_lower != no ; then
33357 cat >>confdefs.h <<\_ACEOF
33358 #define C_UPPER_LOWER 1
33363 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33365 if test "${ac_cv_c_const+set}" = set; then
33366 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 cat >conftest.$ac_ext <<_ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h. */
33378 /* FIXME: Include the comments suggested by Paul. */
33379 #ifndef __cplusplus
33380 /* Ultrix mips cc rejects this. */
33381 typedef int charset[2];
33383 /* SunOS 4.1.1 cc rejects this. */
33384 char const *const *pcpcc;
33386 /* NEC SVR4.0.2 mips cc rejects this. */
33387 struct point {int x, y;};
33388 static struct point const zero = {0,0};
33389 /* AIX XL C 1.02.0.0 rejects this.
33390 It does not let you subtract one const X* pointer from another in
33391 an arm of an if-expression whose if-part is not a constant
33393 const char *g = "string";
33394 pcpcc = &g + (g ? g-g : 0);
33395 /* HPUX 7.0 cc rejects these. */
33397 ppc = (char**) pcpcc;
33398 pcpcc = (char const *const *) ppc;
33399 { /* SCO 3.2v4 cc rejects this. */
33401 char const *s = 0 ? (char *) 0 : (char const *) 0;
33406 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33407 int x[] = {25, 17};
33408 const int *foo = &x[0];
33411 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33412 typedef const int *iptr;
33416 { /* AIX XL C 1.02.0.0 rejects this saying
33417 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33418 struct s { int j; const int *ap[3]; };
33419 struct s *b; b->j = 5;
33421 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33422 const int foo = 10;
33423 if (!foo) return 0;
33425 return !cs[0] && !zero.x;
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_compile") 2>conftest.er1
33441 grep -v '^ *+' conftest.er1 >conftest.err
33443 cat conftest.err >&5
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); } && {
33446 test -z "$ac_c_werror_flag" ||
33447 test ! -s conftest.err
33448 } && test -s conftest.$ac_objext; then
33451 echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33460 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33461 if test $ac_cv_c_const = no; then
33463 cat >>confdefs.h <<\_ACEOF
33469 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33470 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33471 if test "${ol_cv_c_volatile+set}" = set; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33474 cat >conftest.$ac_ext <<_ACEOF
33477 cat confdefs.h >>conftest.$ac_ext
33478 cat >>conftest.$ac_ext <<_ACEOF
33479 /* end confdefs.h. */
33484 volatile int a; int * volatile b = x ? &y : &z;
33485 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33491 rm -f conftest.$ac_objext
33492 if { (ac_try="$ac_compile"
33493 case "(($ac_try" in
33494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495 *) ac_try_echo=$ac_try;;
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498 (eval "$ac_compile") 2>conftest.er1
33500 grep -v '^ *+' conftest.er1 >conftest.err
33502 cat conftest.err >&5
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); } && {
33505 test -z "$ac_c_werror_flag" ||
33506 test ! -s conftest.err
33507 } && test -s conftest.$ac_objext; then
33508 ol_cv_c_volatile=yes
33510 echo "$as_me: failed program was:" >&5
33511 sed 's/^/| /' conftest.$ac_ext >&5
33513 ol_cv_c_volatile=no
33516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33518 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33519 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33520 if test $ol_cv_c_volatile = yes; then
33524 cat >>confdefs.h <<\_ACEOF
33531 if test $cross_compiling = yes ; then
33532 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33533 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33535 cat >>confdefs.h <<\_ACEOF
33536 #define CROSS_COMPILING 1
33540 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33541 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33542 if test "${ac_cv_c_bigendian+set}" = set; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33545 # See if sys/param.h defines the BYTE_ORDER macro.
33546 cat >conftest.$ac_ext <<_ACEOF
33549 cat confdefs.h >>conftest.$ac_ext
33550 cat >>conftest.$ac_ext <<_ACEOF
33551 /* end confdefs.h. */
33552 #include <sys/types.h>
33553 #include <sys/param.h>
33558 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33559 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33560 bogus endian macros
33567 rm -f conftest.$ac_objext
33568 if { (ac_try="$ac_compile"
33569 case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_compile") 2>conftest.er1
33576 grep -v '^ *+' conftest.er1 >conftest.err
33578 cat conftest.err >&5
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } && {
33581 test -z "$ac_c_werror_flag" ||
33582 test ! -s conftest.err
33583 } && test -s conftest.$ac_objext; then
33584 # It does; now see whether it defined to BIG_ENDIAN or not.
33585 cat >conftest.$ac_ext <<_ACEOF
33588 cat confdefs.h >>conftest.$ac_ext
33589 cat >>conftest.$ac_ext <<_ACEOF
33590 /* end confdefs.h. */
33591 #include <sys/types.h>
33592 #include <sys/param.h>
33597 #if BYTE_ORDER != BIG_ENDIAN
33605 rm -f conftest.$ac_objext
33606 if { (ac_try="$ac_compile"
33607 case "(($ac_try" in
33608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609 *) ac_try_echo=$ac_try;;
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612 (eval "$ac_compile") 2>conftest.er1
33614 grep -v '^ *+' conftest.er1 >conftest.err
33616 cat conftest.err >&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); } && {
33619 test -z "$ac_c_werror_flag" ||
33620 test ! -s conftest.err
33621 } && test -s conftest.$ac_objext; then
33622 ac_cv_c_bigendian=yes
33624 echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33627 ac_cv_c_bigendian=no
33630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33632 echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33635 # It does not; compile a test program.
33636 if test "$cross_compiling" = yes; then
33637 # try to guess the endianness by grepping values into an object file
33638 ac_cv_c_bigendian=unknown
33639 cat >conftest.$ac_ext <<_ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h. */
33645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33654 _ascii (); _ebcdic ();
33659 rm -f conftest.$ac_objext
33660 if { (ac_try="$ac_compile"
33661 case "(($ac_try" in
33662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663 *) ac_try_echo=$ac_try;;
33665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666 (eval "$ac_compile") 2>conftest.er1
33668 grep -v '^ *+' conftest.er1 >conftest.err
33670 cat conftest.err >&5
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); } && {
33673 test -z "$ac_c_werror_flag" ||
33674 test ! -s conftest.err
33675 } && test -s conftest.$ac_objext; then
33676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33677 ac_cv_c_bigendian=yes
33679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33680 if test "$ac_cv_c_bigendian" = unknown; then
33681 ac_cv_c_bigendian=no
33683 # finding both strings is unlikely to happen, but who knows?
33684 ac_cv_c_bigendian=unknown
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 cat >conftest.$ac_ext <<_ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33702 $ac_includes_default
33707 /* Are we little or big endian? From Harbison&Steele. */
33711 char c[sizeof (long int)];
33714 return u.c[sizeof (long int) - 1] == 1;
33720 rm -f conftest$ac_exeext
33721 if { (ac_try="$ac_link"
33722 case "(($ac_try" in
33723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724 *) ac_try_echo=$ac_try;;
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727 (eval "$ac_link") 2>&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33731 { (case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_try") 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_c_bigendian=no
33742 echo "$as_me: program exited with status $ac_status" >&5
33743 echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33746 ( exit $ac_status )
33747 ac_cv_c_bigendian=yes
33749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33757 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33758 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33759 case $ac_cv_c_bigendian in
33762 cat >>confdefs.h <<\_ACEOF
33763 #define WORDS_BIGENDIAN 1
33769 { { echo "$as_me:$LINENO: error: unknown endianness
33770 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33771 echo "$as_me: error: unknown endianness
33772 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33773 { (exit 1); exit 1; }; } ;;
33778 { echo "$as_me:$LINENO: checking for short" >&5
33779 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33780 if test "${ac_cv_type_short+set}" = set; then
33781 echo $ECHO_N "(cached) $ECHO_C" >&6
33783 cat >conftest.$ac_ext <<_ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h. */
33789 $ac_includes_default
33790 typedef short ac__type_new_;
33794 if ((ac__type_new_ *) 0)
33796 if (sizeof (ac__type_new_))
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806 *) ac_try_echo=$ac_try;;
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809 (eval "$ac_compile") 2>conftest.er1
33811 grep -v '^ *+' conftest.er1 >conftest.err
33813 cat conftest.err >&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } && {
33816 test -z "$ac_c_werror_flag" ||
33817 test ! -s conftest.err
33818 } && test -s conftest.$ac_objext; then
33819 ac_cv_type_short=yes
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 ac_cv_type_short=no
33827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33829 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33830 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33832 # The cast to long int works around a bug in the HP C Compiler
33833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33835 # This bug is HP SR number 8606223364.
33836 { echo "$as_me:$LINENO: checking size of short" >&5
33837 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33838 if test "${ac_cv_sizeof_short+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 if test "$cross_compiling" = yes; then
33842 # Depending upon the size, compute the lo and hi bounds.
33843 cat >conftest.$ac_ext <<_ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h. */
33849 $ac_includes_default
33850 typedef short ac__type_sizeof_;
33854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33861 rm -f conftest.$ac_objext
33862 if { (ac_try="$ac_compile"
33863 case "(($ac_try" in
33864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865 *) ac_try_echo=$ac_try;;
33867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33868 (eval "$ac_compile") 2>conftest.er1
33870 grep -v '^ *+' conftest.er1 >conftest.err
33872 cat conftest.err >&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } && {
33875 test -z "$ac_c_werror_flag" ||
33876 test ! -s conftest.err
33877 } && test -s conftest.$ac_objext; then
33880 cat >conftest.$ac_ext <<_ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h. */
33886 $ac_includes_default
33887 typedef short ac__type_sizeof_;
33891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33907 grep -v '^ *+' conftest.er1 >conftest.err
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } && {
33912 test -z "$ac_c_werror_flag" ||
33913 test ! -s conftest.err
33914 } && test -s conftest.$ac_objext; then
33915 ac_hi=$ac_mid; break
33917 echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33920 ac_lo=`expr $ac_mid + 1`
33921 if test $ac_lo -le $ac_mid; then
33925 ac_mid=`expr 2 '*' $ac_mid + 1`
33928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33931 echo "$as_me: failed program was:" >&5
33932 sed 's/^/| /' conftest.$ac_ext >&5
33934 cat >conftest.$ac_ext <<_ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h. */
33940 $ac_includes_default
33941 typedef short ac__type_sizeof_;
33945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33952 rm -f conftest.$ac_objext
33953 if { (ac_try="$ac_compile"
33954 case "(($ac_try" in
33955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33956 *) ac_try_echo=$ac_try;;
33958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33959 (eval "$ac_compile") 2>conftest.er1
33961 grep -v '^ *+' conftest.er1 >conftest.err
33963 cat conftest.err >&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } && {
33966 test -z "$ac_c_werror_flag" ||
33967 test ! -s conftest.err
33968 } && test -s conftest.$ac_objext; then
33971 cat >conftest.$ac_ext <<_ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h. */
33977 $ac_includes_default
33978 typedef short ac__type_sizeof_;
33982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33989 rm -f conftest.$ac_objext
33990 if { (ac_try="$ac_compile"
33991 case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_compile") 2>conftest.er1
33998 grep -v '^ *+' conftest.er1 >conftest.err
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } && {
34003 test -z "$ac_c_werror_flag" ||
34004 test ! -s conftest.err
34005 } && test -s conftest.$ac_objext; then
34006 ac_lo=$ac_mid; break
34008 echo "$as_me: failed program was:" >&5
34009 sed 's/^/| /' conftest.$ac_ext >&5
34011 ac_hi=`expr '(' $ac_mid ')' - 1`
34012 if test $ac_mid -le $ac_hi; then
34016 ac_mid=`expr 2 '*' $ac_mid`
34019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34022 echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 # Binary search between lo and hi bounds.
34033 while test "x$ac_lo" != "x$ac_hi"; do
34034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34035 cat >conftest.$ac_ext <<_ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h. */
34041 $ac_includes_default
34042 typedef short ac__type_sizeof_;
34046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_compile") 2>conftest.er1
34062 grep -v '^ *+' conftest.er1 >conftest.err
34064 cat conftest.err >&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } && {
34067 test -z "$ac_c_werror_flag" ||
34068 test ! -s conftest.err
34069 } && test -s conftest.$ac_objext; then
34072 echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34075 ac_lo=`expr '(' $ac_mid ')' + 1`
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34081 ?*) ac_cv_sizeof_short=$ac_lo;;
34082 '') if test "$ac_cv_type_short" = yes; then
34083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34084 See \`config.log' for more details." >&5
34085 echo "$as_me: error: cannot compute sizeof (short)
34086 See \`config.log' for more details." >&2;}
34087 { (exit 77); exit 77; }; }
34089 ac_cv_sizeof_short=0
34093 cat >conftest.$ac_ext <<_ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34099 $ac_includes_default
34100 typedef short ac__type_sizeof_;
34101 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34102 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34104 #include <stdlib.h>
34109 FILE *f = fopen ("conftest.val", "w");
34112 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34114 long int i = longval ();
34115 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34117 fprintf (f, "%ld\n", i);
34121 unsigned long int i = ulongval ();
34122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34124 fprintf (f, "%lu\n", i);
34126 return ferror (f) || fclose (f) != 0;
34132 rm -f conftest$ac_exeext
34133 if { (ac_try="$ac_link"
34134 case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_link") 2>&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34143 { (case "(($ac_try" in
34144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34145 *) ac_try_echo=$ac_try;;
34147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34148 (eval "$ac_try") 2>&5
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; }; then
34152 ac_cv_sizeof_short=`cat conftest.val`
34154 echo "$as_me: program exited with status $ac_status" >&5
34155 echo "$as_me: failed program was:" >&5
34156 sed 's/^/| /' conftest.$ac_ext >&5
34158 ( exit $ac_status )
34159 if test "$ac_cv_type_short" = yes; then
34160 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34161 See \`config.log' for more details." >&5
34162 echo "$as_me: error: cannot compute sizeof (short)
34163 See \`config.log' for more details." >&2;}
34164 { (exit 77); exit 77; }; }
34166 ac_cv_sizeof_short=0
34169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34173 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34174 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34178 cat >>confdefs.h <<_ACEOF
34179 #define SIZEOF_SHORT $ac_cv_sizeof_short
34183 { echo "$as_me:$LINENO: checking for int" >&5
34184 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34185 if test "${ac_cv_type_int+set}" = set; then
34186 echo $ECHO_N "(cached) $ECHO_C" >&6
34188 cat >conftest.$ac_ext <<_ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h. */
34194 $ac_includes_default
34195 typedef int ac__type_new_;
34199 if ((ac__type_new_ *) 0)
34201 if (sizeof (ac__type_new_))
34207 rm -f conftest.$ac_objext
34208 if { (ac_try="$ac_compile"
34209 case "(($ac_try" in
34210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34211 *) ac_try_echo=$ac_try;;
34213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34214 (eval "$ac_compile") 2>conftest.er1
34216 grep -v '^ *+' conftest.er1 >conftest.err
34218 cat conftest.err >&5
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); } && {
34221 test -z "$ac_c_werror_flag" ||
34222 test ! -s conftest.err
34223 } && test -s conftest.$ac_objext; then
34226 echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34234 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34235 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34237 # The cast to long int works around a bug in the HP C Compiler
34238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34240 # This bug is HP SR number 8606223364.
34241 { echo "$as_me:$LINENO: checking size of int" >&5
34242 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34243 if test "${ac_cv_sizeof_int+set}" = set; then
34244 echo $ECHO_N "(cached) $ECHO_C" >&6
34246 if test "$cross_compiling" = yes; then
34247 # Depending upon the size, compute the lo and hi bounds.
34248 cat >conftest.$ac_ext <<_ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h. */
34254 $ac_includes_default
34255 typedef int ac__type_sizeof_;
34259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34266 rm -f conftest.$ac_objext
34267 if { (ac_try="$ac_compile"
34268 case "(($ac_try" in
34269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270 *) ac_try_echo=$ac_try;;
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273 (eval "$ac_compile") 2>conftest.er1
34275 grep -v '^ *+' conftest.er1 >conftest.err
34277 cat conftest.err >&5
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); } && {
34280 test -z "$ac_c_werror_flag" ||
34281 test ! -s conftest.err
34282 } && test -s conftest.$ac_objext; then
34285 cat >conftest.$ac_ext <<_ACEOF
34288 cat confdefs.h >>conftest.$ac_ext
34289 cat >>conftest.$ac_ext <<_ACEOF
34290 /* end confdefs.h. */
34291 $ac_includes_default
34292 typedef int ac__type_sizeof_;
34296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34303 rm -f conftest.$ac_objext
34304 if { (ac_try="$ac_compile"
34305 case "(($ac_try" in
34306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307 *) ac_try_echo=$ac_try;;
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310 (eval "$ac_compile") 2>conftest.er1
34312 grep -v '^ *+' conftest.er1 >conftest.err
34314 cat conftest.err >&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); } && {
34317 test -z "$ac_c_werror_flag" ||
34318 test ! -s conftest.err
34319 } && test -s conftest.$ac_objext; then
34320 ac_hi=$ac_mid; break
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34325 ac_lo=`expr $ac_mid + 1`
34326 if test $ac_lo -le $ac_mid; then
34330 ac_mid=`expr 2 '*' $ac_mid + 1`
34333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34336 echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34339 cat >conftest.$ac_ext <<_ACEOF
34342 cat confdefs.h >>conftest.$ac_ext
34343 cat >>conftest.$ac_ext <<_ACEOF
34344 /* end confdefs.h. */
34345 $ac_includes_default
34346 typedef int ac__type_sizeof_;
34350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34357 rm -f conftest.$ac_objext
34358 if { (ac_try="$ac_compile"
34359 case "(($ac_try" in
34360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361 *) ac_try_echo=$ac_try;;
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 (eval "$ac_compile") 2>conftest.er1
34366 grep -v '^ *+' conftest.er1 >conftest.err
34368 cat conftest.err >&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); } && {
34371 test -z "$ac_c_werror_flag" ||
34372 test ! -s conftest.err
34373 } && test -s conftest.$ac_objext; then
34376 cat >conftest.$ac_ext <<_ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h. */
34382 $ac_includes_default
34383 typedef int ac__type_sizeof_;
34387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34394 rm -f conftest.$ac_objext
34395 if { (ac_try="$ac_compile"
34396 case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401 (eval "$ac_compile") 2>conftest.er1
34403 grep -v '^ *+' conftest.er1 >conftest.err
34405 cat conftest.err >&5
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); } && {
34408 test -z "$ac_c_werror_flag" ||
34409 test ! -s conftest.err
34410 } && test -s conftest.$ac_objext; then
34411 ac_lo=$ac_mid; break
34413 echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34416 ac_hi=`expr '(' $ac_mid ')' - 1`
34417 if test $ac_mid -le $ac_hi; then
34421 ac_mid=`expr 2 '*' $ac_mid`
34424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34427 echo "$as_me: failed program was:" >&5
34428 sed 's/^/| /' conftest.$ac_ext >&5
34433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34437 # Binary search between lo and hi bounds.
34438 while test "x$ac_lo" != "x$ac_hi"; do
34439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34440 cat >conftest.$ac_ext <<_ACEOF
34443 cat confdefs.h >>conftest.$ac_ext
34444 cat >>conftest.$ac_ext <<_ACEOF
34445 /* end confdefs.h. */
34446 $ac_includes_default
34447 typedef int ac__type_sizeof_;
34451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34458 rm -f conftest.$ac_objext
34459 if { (ac_try="$ac_compile"
34460 case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_compile") 2>conftest.er1
34467 grep -v '^ *+' conftest.er1 >conftest.err
34469 cat conftest.err >&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); } && {
34472 test -z "$ac_c_werror_flag" ||
34473 test ! -s conftest.err
34474 } && test -s conftest.$ac_objext; then
34477 echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34480 ac_lo=`expr '(' $ac_mid ')' + 1`
34483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34486 ?*) ac_cv_sizeof_int=$ac_lo;;
34487 '') if test "$ac_cv_type_int" = yes; then
34488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34489 See \`config.log' for more details." >&5
34490 echo "$as_me: error: cannot compute sizeof (int)
34491 See \`config.log' for more details." >&2;}
34492 { (exit 77); exit 77; }; }
34498 cat >conftest.$ac_ext <<_ACEOF
34501 cat confdefs.h >>conftest.$ac_ext
34502 cat >>conftest.$ac_ext <<_ACEOF
34503 /* end confdefs.h. */
34504 $ac_includes_default
34505 typedef int ac__type_sizeof_;
34506 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34507 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34509 #include <stdlib.h>
34514 FILE *f = fopen ("conftest.val", "w");
34517 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34519 long int i = longval ();
34520 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34522 fprintf (f, "%ld\n", i);
34526 unsigned long int i = ulongval ();
34527 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34529 fprintf (f, "%lu\n", i);
34531 return ferror (f) || fclose (f) != 0;
34537 rm -f conftest$ac_exeext
34538 if { (ac_try="$ac_link"
34539 case "(($ac_try" in
34540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34541 *) ac_try_echo=$ac_try;;
34543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34544 (eval "$ac_link") 2>&5
34546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34548 { (case "(($ac_try" in
34549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34550 *) ac_try_echo=$ac_try;;
34552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34553 (eval "$ac_try") 2>&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 ac_cv_sizeof_int=`cat conftest.val`
34559 echo "$as_me: program exited with status $ac_status" >&5
34560 echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34563 ( exit $ac_status )
34564 if test "$ac_cv_type_int" = yes; then
34565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34566 See \`config.log' for more details." >&5
34567 echo "$as_me: error: cannot compute sizeof (int)
34568 See \`config.log' for more details." >&2;}
34569 { (exit 77); exit 77; }; }
34574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34578 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34579 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34583 cat >>confdefs.h <<_ACEOF
34584 #define SIZEOF_INT $ac_cv_sizeof_int
34588 { echo "$as_me:$LINENO: checking for long" >&5
34589 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34590 if test "${ac_cv_type_long+set}" = set; then
34591 echo $ECHO_N "(cached) $ECHO_C" >&6
34593 cat >conftest.$ac_ext <<_ACEOF
34596 cat confdefs.h >>conftest.$ac_ext
34597 cat >>conftest.$ac_ext <<_ACEOF
34598 /* end confdefs.h. */
34599 $ac_includes_default
34600 typedef long ac__type_new_;
34604 if ((ac__type_new_ *) 0)
34606 if (sizeof (ac__type_new_))
34612 rm -f conftest.$ac_objext
34613 if { (ac_try="$ac_compile"
34614 case "(($ac_try" in
34615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34616 *) ac_try_echo=$ac_try;;
34618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34619 (eval "$ac_compile") 2>conftest.er1
34621 grep -v '^ *+' conftest.er1 >conftest.err
34623 cat conftest.err >&5
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); } && {
34626 test -z "$ac_c_werror_flag" ||
34627 test ! -s conftest.err
34628 } && test -s conftest.$ac_objext; then
34629 ac_cv_type_long=yes
34631 echo "$as_me: failed program was:" >&5
34632 sed 's/^/| /' conftest.$ac_ext >&5
34637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34639 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34640 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34642 # The cast to long int works around a bug in the HP C Compiler
34643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34645 # This bug is HP SR number 8606223364.
34646 { echo "$as_me:$LINENO: checking size of long" >&5
34647 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34648 if test "${ac_cv_sizeof_long+set}" = set; then
34649 echo $ECHO_N "(cached) $ECHO_C" >&6
34651 if test "$cross_compiling" = yes; then
34652 # Depending upon the size, compute the lo and hi bounds.
34653 cat >conftest.$ac_ext <<_ACEOF
34656 cat confdefs.h >>conftest.$ac_ext
34657 cat >>conftest.$ac_ext <<_ACEOF
34658 /* end confdefs.h. */
34659 $ac_includes_default
34660 typedef long ac__type_sizeof_;
34664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34671 rm -f conftest.$ac_objext
34672 if { (ac_try="$ac_compile"
34673 case "(($ac_try" in
34674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34675 *) ac_try_echo=$ac_try;;
34677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34678 (eval "$ac_compile") 2>conftest.er1
34680 grep -v '^ *+' conftest.er1 >conftest.err
34682 cat conftest.err >&5
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } && {
34685 test -z "$ac_c_werror_flag" ||
34686 test ! -s conftest.err
34687 } && test -s conftest.$ac_objext; then
34690 cat >conftest.$ac_ext <<_ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h. */
34696 $ac_includes_default
34697 typedef long ac__type_sizeof_;
34701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34708 rm -f conftest.$ac_objext
34709 if { (ac_try="$ac_compile"
34710 case "(($ac_try" in
34711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34712 *) ac_try_echo=$ac_try;;
34714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34715 (eval "$ac_compile") 2>conftest.er1
34717 grep -v '^ *+' conftest.er1 >conftest.err
34719 cat conftest.err >&5
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); } && {
34722 test -z "$ac_c_werror_flag" ||
34723 test ! -s conftest.err
34724 } && test -s conftest.$ac_objext; then
34725 ac_hi=$ac_mid; break
34727 echo "$as_me: failed program was:" >&5
34728 sed 's/^/| /' conftest.$ac_ext >&5
34730 ac_lo=`expr $ac_mid + 1`
34731 if test $ac_lo -le $ac_mid; then
34735 ac_mid=`expr 2 '*' $ac_mid + 1`
34738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34741 echo "$as_me: failed program was:" >&5
34742 sed 's/^/| /' conftest.$ac_ext >&5
34744 cat >conftest.$ac_ext <<_ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h. */
34750 $ac_includes_default
34751 typedef long ac__type_sizeof_;
34755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34762 rm -f conftest.$ac_objext
34763 if { (ac_try="$ac_compile"
34764 case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769 (eval "$ac_compile") 2>conftest.er1
34771 grep -v '^ *+' conftest.er1 >conftest.err
34773 cat conftest.err >&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); } && {
34776 test -z "$ac_c_werror_flag" ||
34777 test ! -s conftest.err
34778 } && test -s conftest.$ac_objext; then
34781 cat >conftest.$ac_ext <<_ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h. */
34787 $ac_includes_default
34788 typedef long ac__type_sizeof_;
34792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34799 rm -f conftest.$ac_objext
34800 if { (ac_try="$ac_compile"
34801 case "(($ac_try" in
34802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34803 *) ac_try_echo=$ac_try;;
34805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34806 (eval "$ac_compile") 2>conftest.er1
34808 grep -v '^ *+' conftest.er1 >conftest.err
34810 cat conftest.err >&5
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); } && {
34813 test -z "$ac_c_werror_flag" ||
34814 test ! -s conftest.err
34815 } && test -s conftest.$ac_objext; then
34816 ac_lo=$ac_mid; break
34818 echo "$as_me: failed program was:" >&5
34819 sed 's/^/| /' conftest.$ac_ext >&5
34821 ac_hi=`expr '(' $ac_mid ')' - 1`
34822 if test $ac_mid -le $ac_hi; then
34826 ac_mid=`expr 2 '*' $ac_mid`
34829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34832 echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34842 # Binary search between lo and hi bounds.
34843 while test "x$ac_lo" != "x$ac_hi"; do
34844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34845 cat >conftest.$ac_ext <<_ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h. */
34851 $ac_includes_default
34852 typedef long ac__type_sizeof_;
34856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34863 rm -f conftest.$ac_objext
34864 if { (ac_try="$ac_compile"
34865 case "(($ac_try" in
34866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34867 *) ac_try_echo=$ac_try;;
34869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34870 (eval "$ac_compile") 2>conftest.er1
34872 grep -v '^ *+' conftest.er1 >conftest.err
34874 cat conftest.err >&5
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); } && {
34877 test -z "$ac_c_werror_flag" ||
34878 test ! -s conftest.err
34879 } && test -s conftest.$ac_objext; then
34882 echo "$as_me: failed program was:" >&5
34883 sed 's/^/| /' conftest.$ac_ext >&5
34885 ac_lo=`expr '(' $ac_mid ')' + 1`
34888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34891 ?*) ac_cv_sizeof_long=$ac_lo;;
34892 '') if test "$ac_cv_type_long" = yes; then
34893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34894 See \`config.log' for more details." >&5
34895 echo "$as_me: error: cannot compute sizeof (long)
34896 See \`config.log' for more details." >&2;}
34897 { (exit 77); exit 77; }; }
34899 ac_cv_sizeof_long=0
34903 cat >conftest.$ac_ext <<_ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h. */
34909 $ac_includes_default
34910 typedef long ac__type_sizeof_;
34911 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34912 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34914 #include <stdlib.h>
34919 FILE *f = fopen ("conftest.val", "w");
34922 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34924 long int i = longval ();
34925 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34927 fprintf (f, "%ld\n", i);
34931 unsigned long int i = ulongval ();
34932 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34934 fprintf (f, "%lu\n", i);
34936 return ferror (f) || fclose (f) != 0;
34942 rm -f conftest$ac_exeext
34943 if { (ac_try="$ac_link"
34944 case "(($ac_try" in
34945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34946 *) ac_try_echo=$ac_try;;
34948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34949 (eval "$ac_link") 2>&5
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34953 { (case "(($ac_try" in
34954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955 *) ac_try_echo=$ac_try;;
34957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958 (eval "$ac_try") 2>&5
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); }; }; then
34962 ac_cv_sizeof_long=`cat conftest.val`
34964 echo "$as_me: program exited with status $ac_status" >&5
34965 echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.$ac_ext >&5
34968 ( exit $ac_status )
34969 if test "$ac_cv_type_long" = yes; then
34970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34971 See \`config.log' for more details." >&5
34972 echo "$as_me: error: cannot compute sizeof (long)
34973 See \`config.log' for more details." >&2;}
34974 { (exit 77); exit 77; }; }
34976 ac_cv_sizeof_long=0
34979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34984 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34988 cat >>confdefs.h <<_ACEOF
34989 #define SIZEOF_LONG $ac_cv_sizeof_long
34993 { echo "$as_me:$LINENO: checking for long long" >&5
34994 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34995 if test "${ac_cv_type_long_long+set}" = set; then
34996 echo $ECHO_N "(cached) $ECHO_C" >&6
34998 cat >conftest.$ac_ext <<_ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h. */
35004 $ac_includes_default
35005 typedef long long ac__type_new_;
35009 if ((ac__type_new_ *) 0)
35011 if (sizeof (ac__type_new_))
35017 rm -f conftest.$ac_objext
35018 if { (ac_try="$ac_compile"
35019 case "(($ac_try" in
35020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35021 *) ac_try_echo=$ac_try;;
35023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35024 (eval "$ac_compile") 2>conftest.er1
35026 grep -v '^ *+' conftest.er1 >conftest.err
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } && {
35031 test -z "$ac_c_werror_flag" ||
35032 test ! -s conftest.err
35033 } && test -s conftest.$ac_objext; then
35034 ac_cv_type_long_long=yes
35036 echo "$as_me: failed program was:" >&5
35037 sed 's/^/| /' conftest.$ac_ext >&5
35039 ac_cv_type_long_long=no
35042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35044 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35045 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
35047 # The cast to long int works around a bug in the HP C Compiler
35048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35050 # This bug is HP SR number 8606223364.
35051 { echo "$as_me:$LINENO: checking size of long long" >&5
35052 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
35053 if test "${ac_cv_sizeof_long_long+set}" = set; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35056 if test "$cross_compiling" = yes; then
35057 # Depending upon the size, compute the lo and hi bounds.
35058 cat >conftest.$ac_ext <<_ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h. */
35064 $ac_includes_default
35065 typedef long long ac__type_sizeof_;
35069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35076 rm -f conftest.$ac_objext
35077 if { (ac_try="$ac_compile"
35078 case "(($ac_try" in
35079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080 *) ac_try_echo=$ac_try;;
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083 (eval "$ac_compile") 2>conftest.er1
35085 grep -v '^ *+' conftest.er1 >conftest.err
35087 cat conftest.err >&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); } && {
35090 test -z "$ac_c_werror_flag" ||
35091 test ! -s conftest.err
35092 } && test -s conftest.$ac_objext; then
35095 cat >conftest.$ac_ext <<_ACEOF
35098 cat confdefs.h >>conftest.$ac_ext
35099 cat >>conftest.$ac_ext <<_ACEOF
35100 /* end confdefs.h. */
35101 $ac_includes_default
35102 typedef long long ac__type_sizeof_;
35106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35113 rm -f conftest.$ac_objext
35114 if { (ac_try="$ac_compile"
35115 case "(($ac_try" in
35116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35117 *) ac_try_echo=$ac_try;;
35119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35120 (eval "$ac_compile") 2>conftest.er1
35122 grep -v '^ *+' conftest.er1 >conftest.err
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } && {
35127 test -z "$ac_c_werror_flag" ||
35128 test ! -s conftest.err
35129 } && test -s conftest.$ac_objext; then
35130 ac_hi=$ac_mid; break
35132 echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35135 ac_lo=`expr $ac_mid + 1`
35136 if test $ac_lo -le $ac_mid; then
35140 ac_mid=`expr 2 '*' $ac_mid + 1`
35143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35146 echo "$as_me: failed program was:" >&5
35147 sed 's/^/| /' conftest.$ac_ext >&5
35149 cat >conftest.$ac_ext <<_ACEOF
35152 cat confdefs.h >>conftest.$ac_ext
35153 cat >>conftest.$ac_ext <<_ACEOF
35154 /* end confdefs.h. */
35155 $ac_includes_default
35156 typedef long long ac__type_sizeof_;
35160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35167 rm -f conftest.$ac_objext
35168 if { (ac_try="$ac_compile"
35169 case "(($ac_try" in
35170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35171 *) ac_try_echo=$ac_try;;
35173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35174 (eval "$ac_compile") 2>conftest.er1
35176 grep -v '^ *+' conftest.er1 >conftest.err
35178 cat conftest.err >&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); } && {
35181 test -z "$ac_c_werror_flag" ||
35182 test ! -s conftest.err
35183 } && test -s conftest.$ac_objext; then
35186 cat >conftest.$ac_ext <<_ACEOF
35189 cat confdefs.h >>conftest.$ac_ext
35190 cat >>conftest.$ac_ext <<_ACEOF
35191 /* end confdefs.h. */
35192 $ac_includes_default
35193 typedef long long ac__type_sizeof_;
35197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35204 rm -f conftest.$ac_objext
35205 if { (ac_try="$ac_compile"
35206 case "(($ac_try" in
35207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35208 *) ac_try_echo=$ac_try;;
35210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35211 (eval "$ac_compile") 2>conftest.er1
35213 grep -v '^ *+' conftest.er1 >conftest.err
35215 cat conftest.err >&5
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); } && {
35218 test -z "$ac_c_werror_flag" ||
35219 test ! -s conftest.err
35220 } && test -s conftest.$ac_objext; then
35221 ac_lo=$ac_mid; break
35223 echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35226 ac_hi=`expr '(' $ac_mid ')' - 1`
35227 if test $ac_mid -le $ac_hi; then
35231 ac_mid=`expr 2 '*' $ac_mid`
35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35237 echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35247 # Binary search between lo and hi bounds.
35248 while test "x$ac_lo" != "x$ac_hi"; do
35249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35250 cat >conftest.$ac_ext <<_ACEOF
35253 cat confdefs.h >>conftest.$ac_ext
35254 cat >>conftest.$ac_ext <<_ACEOF
35255 /* end confdefs.h. */
35256 $ac_includes_default
35257 typedef long long ac__type_sizeof_;
35261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35268 rm -f conftest.$ac_objext
35269 if { (ac_try="$ac_compile"
35270 case "(($ac_try" in
35271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35272 *) ac_try_echo=$ac_try;;
35274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35275 (eval "$ac_compile") 2>conftest.er1
35277 grep -v '^ *+' conftest.er1 >conftest.err
35279 cat conftest.err >&5
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); } && {
35282 test -z "$ac_c_werror_flag" ||
35283 test ! -s conftest.err
35284 } && test -s conftest.$ac_objext; then
35287 echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35290 ac_lo=`expr '(' $ac_mid ')' + 1`
35293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35296 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35297 '') if test "$ac_cv_type_long_long" = yes; then
35298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35299 See \`config.log' for more details." >&5
35300 echo "$as_me: error: cannot compute sizeof (long long)
35301 See \`config.log' for more details." >&2;}
35302 { (exit 77); exit 77; }; }
35304 ac_cv_sizeof_long_long=0
35308 cat >conftest.$ac_ext <<_ACEOF
35311 cat confdefs.h >>conftest.$ac_ext
35312 cat >>conftest.$ac_ext <<_ACEOF
35313 /* end confdefs.h. */
35314 $ac_includes_default
35315 typedef long long ac__type_sizeof_;
35316 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35317 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35319 #include <stdlib.h>
35324 FILE *f = fopen ("conftest.val", "w");
35327 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35329 long int i = longval ();
35330 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35332 fprintf (f, "%ld\n", i);
35336 unsigned long int i = ulongval ();
35337 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35339 fprintf (f, "%lu\n", i);
35341 return ferror (f) || fclose (f) != 0;
35347 rm -f conftest$ac_exeext
35348 if { (ac_try="$ac_link"
35349 case "(($ac_try" in
35350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35351 *) ac_try_echo=$ac_try;;
35353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35354 (eval "$ac_link") 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35358 { (case "(($ac_try" in
35359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35360 *) ac_try_echo=$ac_try;;
35362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35363 (eval "$ac_try") 2>&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; }; then
35367 ac_cv_sizeof_long_long=`cat conftest.val`
35369 echo "$as_me: program exited with status $ac_status" >&5
35370 echo "$as_me: failed program was:" >&5
35371 sed 's/^/| /' conftest.$ac_ext >&5
35373 ( exit $ac_status )
35374 if test "$ac_cv_type_long_long" = yes; then
35375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35376 See \`config.log' for more details." >&5
35377 echo "$as_me: error: cannot compute sizeof (long long)
35378 See \`config.log' for more details." >&2;}
35379 { (exit 77); exit 77; }; }
35381 ac_cv_sizeof_long_long=0
35384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35388 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35389 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35393 cat >>confdefs.h <<_ACEOF
35394 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35398 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35399 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35400 if test "${ac_cv_type_wchar_t+set}" = set; then
35401 echo $ECHO_N "(cached) $ECHO_C" >&6
35403 cat >conftest.$ac_ext <<_ACEOF
35406 cat confdefs.h >>conftest.$ac_ext
35407 cat >>conftest.$ac_ext <<_ACEOF
35408 /* end confdefs.h. */
35409 $ac_includes_default
35410 typedef wchar_t ac__type_new_;
35414 if ((ac__type_new_ *) 0)
35416 if (sizeof (ac__type_new_))
35422 rm -f conftest.$ac_objext
35423 if { (ac_try="$ac_compile"
35424 case "(($ac_try" in
35425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426 *) ac_try_echo=$ac_try;;
35428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35429 (eval "$ac_compile") 2>conftest.er1
35431 grep -v '^ *+' conftest.er1 >conftest.err
35433 cat conftest.err >&5
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); } && {
35436 test -z "$ac_c_werror_flag" ||
35437 test ! -s conftest.err
35438 } && test -s conftest.$ac_objext; then
35439 ac_cv_type_wchar_t=yes
35441 echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35444 ac_cv_type_wchar_t=no
35447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35449 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35450 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35452 # The cast to long int works around a bug in the HP C Compiler
35453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35455 # This bug is HP SR number 8606223364.
35456 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35457 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35458 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35459 echo $ECHO_N "(cached) $ECHO_C" >&6
35461 if test "$cross_compiling" = yes; then
35462 # Depending upon the size, compute the lo and hi bounds.
35463 cat >conftest.$ac_ext <<_ACEOF
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h. */
35469 $ac_includes_default
35470 typedef wchar_t ac__type_sizeof_;
35474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35481 rm -f conftest.$ac_objext
35482 if { (ac_try="$ac_compile"
35483 case "(($ac_try" in
35484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35485 *) ac_try_echo=$ac_try;;
35487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35488 (eval "$ac_compile") 2>conftest.er1
35490 grep -v '^ *+' conftest.er1 >conftest.err
35492 cat conftest.err >&5
35493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 (exit $ac_status); } && {
35495 test -z "$ac_c_werror_flag" ||
35496 test ! -s conftest.err
35497 } && test -s conftest.$ac_objext; then
35500 cat >conftest.$ac_ext <<_ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h. */
35506 $ac_includes_default
35507 typedef wchar_t ac__type_sizeof_;
35511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35518 rm -f conftest.$ac_objext
35519 if { (ac_try="$ac_compile"
35520 case "(($ac_try" in
35521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35522 *) ac_try_echo=$ac_try;;
35524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35525 (eval "$ac_compile") 2>conftest.er1
35527 grep -v '^ *+' conftest.er1 >conftest.err
35529 cat conftest.err >&5
35530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); } && {
35532 test -z "$ac_c_werror_flag" ||
35533 test ! -s conftest.err
35534 } && test -s conftest.$ac_objext; then
35535 ac_hi=$ac_mid; break
35537 echo "$as_me: failed program was:" >&5
35538 sed 's/^/| /' conftest.$ac_ext >&5
35540 ac_lo=`expr $ac_mid + 1`
35541 if test $ac_lo -le $ac_mid; then
35545 ac_mid=`expr 2 '*' $ac_mid + 1`
35548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551 echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.$ac_ext >&5
35554 cat >conftest.$ac_ext <<_ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35560 $ac_includes_default
35561 typedef wchar_t ac__type_sizeof_;
35565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35572 rm -f conftest.$ac_objext
35573 if { (ac_try="$ac_compile"
35574 case "(($ac_try" in
35575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35576 *) ac_try_echo=$ac_try;;
35578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35579 (eval "$ac_compile") 2>conftest.er1
35581 grep -v '^ *+' conftest.er1 >conftest.err
35583 cat conftest.err >&5
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); } && {
35586 test -z "$ac_c_werror_flag" ||
35587 test ! -s conftest.err
35588 } && test -s conftest.$ac_objext; then
35591 cat >conftest.$ac_ext <<_ACEOF
35594 cat confdefs.h >>conftest.$ac_ext
35595 cat >>conftest.$ac_ext <<_ACEOF
35596 /* end confdefs.h. */
35597 $ac_includes_default
35598 typedef wchar_t ac__type_sizeof_;
35602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35609 rm -f conftest.$ac_objext
35610 if { (ac_try="$ac_compile"
35611 case "(($ac_try" in
35612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35613 *) ac_try_echo=$ac_try;;
35615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35616 (eval "$ac_compile") 2>conftest.er1
35618 grep -v '^ *+' conftest.er1 >conftest.err
35620 cat conftest.err >&5
35621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35622 (exit $ac_status); } && {
35623 test -z "$ac_c_werror_flag" ||
35624 test ! -s conftest.err
35625 } && test -s conftest.$ac_objext; then
35626 ac_lo=$ac_mid; break
35628 echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35631 ac_hi=`expr '(' $ac_mid ')' - 1`
35632 if test $ac_mid -le $ac_hi; then
35636 ac_mid=`expr 2 '*' $ac_mid`
35639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35642 echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35652 # Binary search between lo and hi bounds.
35653 while test "x$ac_lo" != "x$ac_hi"; do
35654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35655 cat >conftest.$ac_ext <<_ACEOF
35658 cat confdefs.h >>conftest.$ac_ext
35659 cat >>conftest.$ac_ext <<_ACEOF
35660 /* end confdefs.h. */
35661 $ac_includes_default
35662 typedef wchar_t ac__type_sizeof_;
35666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677 *) ac_try_echo=$ac_try;;
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680 (eval "$ac_compile") 2>conftest.er1
35682 grep -v '^ *+' conftest.er1 >conftest.err
35684 cat conftest.err >&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); } && {
35687 test -z "$ac_c_werror_flag" ||
35688 test ! -s conftest.err
35689 } && test -s conftest.$ac_objext; then
35692 echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35695 ac_lo=`expr '(' $ac_mid ')' + 1`
35698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35701 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35702 '') if test "$ac_cv_type_wchar_t" = yes; then
35703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35704 See \`config.log' for more details." >&5
35705 echo "$as_me: error: cannot compute sizeof (wchar_t)
35706 See \`config.log' for more details." >&2;}
35707 { (exit 77); exit 77; }; }
35709 ac_cv_sizeof_wchar_t=0
35713 cat >conftest.$ac_ext <<_ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h. */
35719 $ac_includes_default
35720 typedef wchar_t ac__type_sizeof_;
35721 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35722 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35724 #include <stdlib.h>
35729 FILE *f = fopen ("conftest.val", "w");
35732 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35734 long int i = longval ();
35735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35737 fprintf (f, "%ld\n", i);
35741 unsigned long int i = ulongval ();
35742 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35744 fprintf (f, "%lu\n", i);
35746 return ferror (f) || fclose (f) != 0;
35752 rm -f conftest$ac_exeext
35753 if { (ac_try="$ac_link"
35754 case "(($ac_try" in
35755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35756 *) ac_try_echo=$ac_try;;
35758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35759 (eval "$ac_link") 2>&5
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35763 { (case "(($ac_try" in
35764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35765 *) ac_try_echo=$ac_try;;
35767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35768 (eval "$ac_try") 2>&5
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; }; then
35772 ac_cv_sizeof_wchar_t=`cat conftest.val`
35774 echo "$as_me: program exited with status $ac_status" >&5
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35778 ( exit $ac_status )
35779 if test "$ac_cv_type_wchar_t" = yes; then
35780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35781 See \`config.log' for more details." >&5
35782 echo "$as_me: error: cannot compute sizeof (wchar_t)
35783 See \`config.log' for more details." >&2;}
35784 { (exit 77); exit 77; }; }
35786 ac_cv_sizeof_wchar_t=0
35789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35793 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35794 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35798 cat >>confdefs.h <<_ACEOF
35799 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35804 if test "$ac_cv_sizeof_int" -lt 4 ; then
35805 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35806 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35809 cat >>confdefs.h <<\_ACEOF
35810 #define LBER_INT_T long
35815 cat >>confdefs.h <<\_ACEOF
35816 #define LBER_INT_T int
35822 cat >>confdefs.h <<\_ACEOF
35823 #define LBER_LEN_T long
35827 cat >>confdefs.h <<\_ACEOF
35828 #define LBER_SOCKET_T int
35832 cat >>confdefs.h <<\_ACEOF
35833 #define LBER_TAG_T long
35837 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35838 if test $ac_cv_sizeof_long_long -gt 4 ; then
35839 ol_with_mp=longlong
35841 cat >>confdefs.h <<\_ACEOF
35842 #define USE_MP_LONG_LONG 1
35845 elif test $ol_with_mp = longlong ; then
35846 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35847 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35848 { (exit 1); exit 1; }; }
35851 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35852 if test $ac_cv_sizeof_long -gt 4 ; then
35855 cat >>confdefs.h <<\_ACEOF
35856 #define USE_MP_LONG 1
35859 elif test $ol_with_mp = long ; then
35860 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35861 echo "$as_me: error: long unusable for multiple precision" >&2;}
35862 { (exit 1); exit 1; }; }
35865 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35867 for ac_header in openssl/bn.h
35869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35874 echo $ECHO_N "(cached) $ECHO_C" >&6
35876 ac_res=`eval echo '${'$as_ac_Header'}'`
35877 { echo "$as_me:$LINENO: result: $ac_res" >&5
35878 echo "${ECHO_T}$ac_res" >&6; }
35880 # Is the header compilable?
35881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35883 cat >conftest.$ac_ext <<_ACEOF
35886 cat confdefs.h >>conftest.$ac_ext
35887 cat >>conftest.$ac_ext <<_ACEOF
35888 /* end confdefs.h. */
35889 $ac_includes_default
35890 #include <$ac_header>
35892 rm -f conftest.$ac_objext
35893 if { (ac_try="$ac_compile"
35894 case "(($ac_try" in
35895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896 *) ac_try_echo=$ac_try;;
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899 (eval "$ac_compile") 2>conftest.er1
35901 grep -v '^ *+' conftest.er1 >conftest.err
35903 cat conftest.err >&5
35904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905 (exit $ac_status); } && {
35906 test -z "$ac_c_werror_flag" ||
35907 test ! -s conftest.err
35908 } && test -s conftest.$ac_objext; then
35909 ac_header_compiler=yes
35911 echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35914 ac_header_compiler=no
35917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35919 echo "${ECHO_T}$ac_header_compiler" >&6; }
35921 # Is the header present?
35922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35924 cat >conftest.$ac_ext <<_ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h. */
35930 #include <$ac_header>
35932 if { (ac_try="$ac_cpp conftest.$ac_ext"
35933 case "(($ac_try" in
35934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35935 *) ac_try_echo=$ac_try;;
35937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35940 grep -v '^ *+' conftest.er1 >conftest.err
35942 cat conftest.err >&5
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); } >/dev/null && {
35945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35946 test ! -s conftest.err
35948 ac_header_preproc=yes
35950 echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 ac_header_preproc=no
35956 rm -f conftest.err conftest.$ac_ext
35957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35958 echo "${ECHO_T}$ac_header_preproc" >&6; }
35960 # So? What about this header?
35961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35967 ac_header_preproc=yes
35970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35983 ## --------------------------------------------- ##
35984 ## Report this to <http://www.openldap.org/its/> ##
35985 ## --------------------------------------------- ##
35987 ) | sed "s/^/$as_me: WARNING: /" >&2
35990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35995 eval "$as_ac_Header=\$ac_header_preproc"
35997 ac_res=`eval echo '${'$as_ac_Header'}'`
35998 { echo "$as_me:$LINENO: result: $ac_res" >&5
35999 echo "${ECHO_T}$ac_res" >&6; }
36002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36003 cat >>confdefs.h <<_ACEOF
36004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36012 for ac_header in openssl/crypto.h
36014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36019 echo $ECHO_N "(cached) $ECHO_C" >&6
36021 ac_res=`eval echo '${'$as_ac_Header'}'`
36022 { echo "$as_me:$LINENO: result: $ac_res" >&5
36023 echo "${ECHO_T}$ac_res" >&6; }
36025 # Is the header compilable?
36026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36028 cat >conftest.$ac_ext <<_ACEOF
36031 cat confdefs.h >>conftest.$ac_ext
36032 cat >>conftest.$ac_ext <<_ACEOF
36033 /* end confdefs.h. */
36034 $ac_includes_default
36035 #include <$ac_header>
36037 rm -f conftest.$ac_objext
36038 if { (ac_try="$ac_compile"
36039 case "(($ac_try" in
36040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041 *) ac_try_echo=$ac_try;;
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044 (eval "$ac_compile") 2>conftest.er1
36046 grep -v '^ *+' conftest.er1 >conftest.err
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } && {
36051 test -z "$ac_c_werror_flag" ||
36052 test ! -s conftest.err
36053 } && test -s conftest.$ac_objext; then
36054 ac_header_compiler=yes
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 ac_header_compiler=no
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36064 echo "${ECHO_T}$ac_header_compiler" >&6; }
36066 # Is the header present?
36067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36069 cat >conftest.$ac_ext <<_ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h. */
36075 #include <$ac_header>
36077 if { (ac_try="$ac_cpp conftest.$ac_ext"
36078 case "(($ac_try" in
36079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36080 *) ac_try_echo=$ac_try;;
36082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36085 grep -v '^ *+' conftest.er1 >conftest.err
36087 cat conftest.err >&5
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); } >/dev/null && {
36090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36091 test ! -s conftest.err
36093 ac_header_preproc=yes
36095 echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36098 ac_header_preproc=no
36101 rm -f conftest.err conftest.$ac_ext
36102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36103 echo "${ECHO_T}$ac_header_preproc" >&6; }
36105 # So? What about this header?
36106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36112 ac_header_preproc=yes
36115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36128 ## --------------------------------------------- ##
36129 ## Report this to <http://www.openldap.org/its/> ##
36130 ## --------------------------------------------- ##
36132 ) | sed "s/^/$as_me: WARNING: /" >&2
36135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36138 echo $ECHO_N "(cached) $ECHO_C" >&6
36140 eval "$as_ac_Header=\$ac_header_preproc"
36142 ac_res=`eval echo '${'$as_ac_Header'}'`
36143 { echo "$as_me:$LINENO: result: $ac_res" >&5
36144 echo "${ECHO_T}$ac_res" >&6; }
36147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36148 cat >>confdefs.h <<_ACEOF
36149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36156 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36157 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36158 test "$ol_with_tls" = "found" ; then
36161 cat >>confdefs.h <<\_ACEOF
36162 #define USE_MP_BIGNUM 1
36165 elif test $ol_with_mp = bignum ; then
36166 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36167 echo "$as_me: error: bignum not available" >&2;}
36168 { (exit 1); exit 1; }; }
36171 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36173 for ac_header in gmp.h
36175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36180 echo $ECHO_N "(cached) $ECHO_C" >&6
36182 ac_res=`eval echo '${'$as_ac_Header'}'`
36183 { echo "$as_me:$LINENO: result: $ac_res" >&5
36184 echo "${ECHO_T}$ac_res" >&6; }
36186 # Is the header compilable?
36187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36189 cat >conftest.$ac_ext <<_ACEOF
36192 cat confdefs.h >>conftest.$ac_ext
36193 cat >>conftest.$ac_ext <<_ACEOF
36194 /* end confdefs.h. */
36195 $ac_includes_default
36196 #include <$ac_header>
36198 rm -f conftest.$ac_objext
36199 if { (ac_try="$ac_compile"
36200 case "(($ac_try" in
36201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202 *) ac_try_echo=$ac_try;;
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205 (eval "$ac_compile") 2>conftest.er1
36207 grep -v '^ *+' conftest.er1 >conftest.err
36209 cat conftest.err >&5
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } && {
36212 test -z "$ac_c_werror_flag" ||
36213 test ! -s conftest.err
36214 } && test -s conftest.$ac_objext; then
36215 ac_header_compiler=yes
36217 echo "$as_me: failed program was:" >&5
36218 sed 's/^/| /' conftest.$ac_ext >&5
36220 ac_header_compiler=no
36223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36225 echo "${ECHO_T}$ac_header_compiler" >&6; }
36227 # Is the header present?
36228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36230 cat >conftest.$ac_ext <<_ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h. */
36236 #include <$ac_header>
36238 if { (ac_try="$ac_cpp conftest.$ac_ext"
36239 case "(($ac_try" in
36240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36241 *) ac_try_echo=$ac_try;;
36243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36246 grep -v '^ *+' conftest.er1 >conftest.err
36248 cat conftest.err >&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); } >/dev/null && {
36251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36252 test ! -s conftest.err
36254 ac_header_preproc=yes
36256 echo "$as_me: failed program was:" >&5
36257 sed 's/^/| /' conftest.$ac_ext >&5
36259 ac_header_preproc=no
36262 rm -f conftest.err conftest.$ac_ext
36263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36264 echo "${ECHO_T}$ac_header_preproc" >&6; }
36266 # So? What about this header?
36267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36273 ac_header_preproc=yes
36276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36289 ## --------------------------------------------- ##
36290 ## Report this to <http://www.openldap.org/its/> ##
36291 ## --------------------------------------------- ##
36293 ) | sed "s/^/$as_me: WARNING: /" >&2
36296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36299 echo $ECHO_N "(cached) $ECHO_C" >&6
36301 eval "$as_ac_Header=\$ac_header_preproc"
36303 ac_res=`eval echo '${'$as_ac_Header'}'`
36304 { echo "$as_me:$LINENO: result: $ac_res" >&5
36305 echo "${ECHO_T}$ac_res" >&6; }
36308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36309 cat >>confdefs.h <<_ACEOF
36310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36318 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36319 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36320 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36321 echo $ECHO_N "(cached) $ECHO_C" >&6
36323 ac_check_lib_save_LIBS=$LIBS
36325 cat >conftest.$ac_ext <<_ACEOF
36328 cat confdefs.h >>conftest.$ac_ext
36329 cat >>conftest.$ac_ext <<_ACEOF
36330 /* end confdefs.h. */
36332 /* Override any GCC internal prototype to avoid an error.
36333 Use char because int might match the return type of a GCC
36334 builtin and then its argument prototype would still apply. */
36338 char __gmpz_add_ui ();
36342 return __gmpz_add_ui ();
36347 rm -f conftest.$ac_objext conftest$ac_exeext
36348 if { (ac_try="$ac_link"
36349 case "(($ac_try" in
36350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36351 *) ac_try_echo=$ac_try;;
36353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36354 (eval "$ac_link") 2>conftest.er1
36356 grep -v '^ *+' conftest.er1 >conftest.err
36358 cat conftest.err >&5
36359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 (exit $ac_status); } && {
36361 test -z "$ac_c_werror_flag" ||
36362 test ! -s conftest.err
36363 } && test -s conftest$ac_exeext &&
36364 $as_test_x conftest$ac_exeext; then
36365 ac_cv_lib_gmp___gmpz_add_ui=yes
36367 echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36370 ac_cv_lib_gmp___gmpz_add_ui=no
36373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36374 conftest$ac_exeext conftest.$ac_ext
36375 LIBS=$ac_check_lib_save_LIBS
36377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36378 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36379 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36380 cat >>confdefs.h <<_ACEOF
36381 #define HAVE_LIBGMP 1
36388 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36390 cat >>confdefs.h <<\_ACEOF
36391 #define USE_MP_GMP 1
36395 elif test $ol_with_mp = gmp ; then
36396 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36397 echo "$as_me: error: gmp not available" >&2;}
36398 { (exit 1); exit 1; }; }
36401 if test $ol_with_mp = auto ; then
36405 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36406 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36407 if test "${ac_cv_func_memcmp_working+set}" = set; then
36408 echo $ECHO_N "(cached) $ECHO_C" >&6
36410 if test "$cross_compiling" = yes; then
36411 ac_cv_func_memcmp_working=no
36413 cat >conftest.$ac_ext <<_ACEOF
36416 cat confdefs.h >>conftest.$ac_ext
36417 cat >>conftest.$ac_ext <<_ACEOF
36418 /* end confdefs.h. */
36419 $ac_includes_default
36424 /* Some versions of memcmp are not 8-bit clean. */
36425 char c0 = '\100', c1 = '\200', c2 = '\201';
36426 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36429 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36430 or more and with at least one buffer not starting on a 4-byte boundary.
36431 William Lewis provided this test program. */
36436 for (i = 0; i < 4; i++)
36440 strcpy (a, "--------01111111");
36441 strcpy (b, "--------10000000");
36442 if (memcmp (a, b, 16) >= 0)
36452 rm -f conftest$ac_exeext
36453 if { (ac_try="$ac_link"
36454 case "(($ac_try" in
36455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36456 *) ac_try_echo=$ac_try;;
36458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36459 (eval "$ac_link") 2>&5
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36463 { (case "(($ac_try" in
36464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465 *) ac_try_echo=$ac_try;;
36467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36468 (eval "$ac_try") 2>&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); }; }; then
36472 ac_cv_func_memcmp_working=yes
36474 echo "$as_me: program exited with status $ac_status" >&5
36475 echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36478 ( exit $ac_status )
36479 ac_cv_func_memcmp_working=no
36481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36486 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36487 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36488 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36489 *" memcmp.$ac_objext "* ) ;;
36490 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36496 if test $ac_cv_func_memcmp_working = no ; then
36498 cat >>confdefs.h <<\_ACEOF
36499 #define NEED_MEMCMP_REPLACEMENT 1
36505 for ac_func in strftime
36507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36511 echo $ECHO_N "(cached) $ECHO_C" >&6
36513 cat >conftest.$ac_ext <<_ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h. */
36519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36521 #define $ac_func innocuous_$ac_func
36523 /* System header to define __stub macros and hopefully few prototypes,
36524 which can conflict with char $ac_func (); below.
36525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36526 <limits.h> exists even on freestanding compilers. */
36529 # include <limits.h>
36531 # include <assert.h>
36536 /* Override any GCC internal prototype to avoid an error.
36537 Use char because int might match the return type of a GCC
36538 builtin and then its argument prototype would still apply. */
36543 /* The GNU C library defines this for functions which it implements
36544 to always fail with ENOSYS. Some functions are actually named
36545 something starting with __ and the normal name is an alias. */
36546 #if defined __stub_$ac_func || defined __stub___$ac_func
36553 return $ac_func ();
36558 rm -f conftest.$ac_objext conftest$ac_exeext
36559 if { (ac_try="$ac_link"
36560 case "(($ac_try" in
36561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562 *) ac_try_echo=$ac_try;;
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565 (eval "$ac_link") 2>conftest.er1
36567 grep -v '^ *+' conftest.er1 >conftest.err
36569 cat conftest.err >&5
36570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571 (exit $ac_status); } && {
36572 test -z "$ac_c_werror_flag" ||
36573 test ! -s conftest.err
36574 } && test -s conftest$ac_exeext &&
36575 $as_test_x conftest$ac_exeext; then
36576 eval "$as_ac_var=yes"
36578 echo "$as_me: failed program was:" >&5
36579 sed 's/^/| /' conftest.$ac_ext >&5
36581 eval "$as_ac_var=no"
36584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36585 conftest$ac_exeext conftest.$ac_ext
36587 ac_res=`eval echo '${'$as_ac_var'}'`
36588 { echo "$as_me:$LINENO: result: $ac_res" >&5
36589 echo "${ECHO_T}$ac_res" >&6; }
36590 if test `eval echo '${'$as_ac_var'}'` = yes; then
36591 cat >>confdefs.h <<_ACEOF
36592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36596 # strftime is in -lintl on SCO UNIX.
36597 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36598 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36599 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36600 echo $ECHO_N "(cached) $ECHO_C" >&6
36602 ac_check_lib_save_LIBS=$LIBS
36603 LIBS="-lintl $LIBS"
36604 cat >conftest.$ac_ext <<_ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h. */
36611 /* Override any GCC internal prototype to avoid an error.
36612 Use char because int might match the return type of a GCC
36613 builtin and then its argument prototype would still apply. */
36621 return strftime ();
36626 rm -f conftest.$ac_objext conftest$ac_exeext
36627 if { (ac_try="$ac_link"
36628 case "(($ac_try" in
36629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630 *) ac_try_echo=$ac_try;;
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633 (eval "$ac_link") 2>conftest.er1
36635 grep -v '^ *+' conftest.er1 >conftest.err
36637 cat conftest.err >&5
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); } && {
36640 test -z "$ac_c_werror_flag" ||
36641 test ! -s conftest.err
36642 } && test -s conftest$ac_exeext &&
36643 $as_test_x conftest$ac_exeext; then
36644 ac_cv_lib_intl_strftime=yes
36646 echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36649 ac_cv_lib_intl_strftime=no
36652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36653 conftest$ac_exeext conftest.$ac_ext
36654 LIBS=$ac_check_lib_save_LIBS
36656 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36657 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36658 if test $ac_cv_lib_intl_strftime = yes; then
36659 cat >>confdefs.h <<\_ACEOF
36660 #define HAVE_STRFTIME 1
36663 LIBS="-lintl $LIBS"
36670 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36671 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36672 if test "${ol_cv_func_inet_aton+set}" = set; then
36673 echo $ECHO_N "(cached) $ECHO_C" >&6
36675 cat >conftest.$ac_ext <<_ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h. */
36682 #ifdef HAVE_SYS_TYPES_H
36683 # include <sys/types.h>
36685 #ifdef HAVE_SYS_SOCKET_H
36686 # include <sys/socket.h>
36687 # ifdef HAVE_SYS_SELECT_H
36688 # include <sys/select.h>
36690 # include <netinet/in.h>
36691 # ifdef HAVE_ARPA_INET_H
36692 # include <arpa/inet.h>
36700 int rc = inet_aton( "255.255.255.255", &in );
36705 rm -f conftest.$ac_objext conftest$ac_exeext
36706 if { (ac_try="$ac_link"
36707 case "(($ac_try" in
36708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709 *) ac_try_echo=$ac_try;;
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712 (eval "$ac_link") 2>conftest.er1
36714 grep -v '^ *+' conftest.er1 >conftest.err
36716 cat conftest.err >&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && {
36719 test -z "$ac_c_werror_flag" ||
36720 test ! -s conftest.err
36721 } && test -s conftest$ac_exeext &&
36722 $as_test_x conftest$ac_exeext; then
36723 ol_cv_func_inet_aton=yes
36725 echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36728 ol_cv_func_inet_aton=no
36731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36732 conftest$ac_exeext conftest.$ac_ext
36734 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36735 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36736 if test $ol_cv_func_inet_aton != no; then
36738 cat >>confdefs.h <<\_ACEOF
36739 #define HAVE_INET_ATON 1
36745 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36746 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36747 if test "${ac_cv_func__spawnlp+set}" = set; then
36748 echo $ECHO_N "(cached) $ECHO_C" >&6
36750 cat >conftest.$ac_ext <<_ACEOF
36753 cat confdefs.h >>conftest.$ac_ext
36754 cat >>conftest.$ac_ext <<_ACEOF
36755 /* end confdefs.h. */
36756 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36758 #define _spawnlp innocuous__spawnlp
36760 /* System header to define __stub macros and hopefully few prototypes,
36761 which can conflict with char _spawnlp (); below.
36762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36763 <limits.h> exists even on freestanding compilers. */
36766 # include <limits.h>
36768 # include <assert.h>
36773 /* Override any GCC internal prototype to avoid an error.
36774 Use char because int might match the return type of a GCC
36775 builtin and then its argument prototype would still apply. */
36780 /* The GNU C library defines this for functions which it implements
36781 to always fail with ENOSYS. Some functions are actually named
36782 something starting with __ and the normal name is an alias. */
36783 #if defined __stub__spawnlp || defined __stub____spawnlp
36790 return _spawnlp ();
36795 rm -f conftest.$ac_objext conftest$ac_exeext
36796 if { (ac_try="$ac_link"
36797 case "(($ac_try" in
36798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799 *) ac_try_echo=$ac_try;;
36801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36802 (eval "$ac_link") 2>conftest.er1
36804 grep -v '^ *+' conftest.er1 >conftest.err
36806 cat conftest.err >&5
36807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808 (exit $ac_status); } && {
36809 test -z "$ac_c_werror_flag" ||
36810 test ! -s conftest.err
36811 } && test -s conftest$ac_exeext &&
36812 $as_test_x conftest$ac_exeext; then
36813 ac_cv_func__spawnlp=yes
36815 echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36818 ac_cv_func__spawnlp=no
36821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36822 conftest$ac_exeext conftest.$ac_ext
36824 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36825 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36826 if test $ac_cv_func__spawnlp = yes; then
36828 cat >>confdefs.h <<\_ACEOF
36829 #define HAVE_SPAWNLP 1
36835 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36836 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36837 if test "${ac_cv_func__snprintf+set}" = set; then
36838 echo $ECHO_N "(cached) $ECHO_C" >&6
36840 cat >conftest.$ac_ext <<_ACEOF
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h. */
36846 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36848 #define _snprintf innocuous__snprintf
36850 /* System header to define __stub macros and hopefully few prototypes,
36851 which can conflict with char _snprintf (); below.
36852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36853 <limits.h> exists even on freestanding compilers. */
36856 # include <limits.h>
36858 # include <assert.h>
36863 /* Override any GCC internal prototype to avoid an error.
36864 Use char because int might match the return type of a GCC
36865 builtin and then its argument prototype would still apply. */
36870 /* The GNU C library defines this for functions which it implements
36871 to always fail with ENOSYS. Some functions are actually named
36872 something starting with __ and the normal name is an alias. */
36873 #if defined __stub__snprintf || defined __stub____snprintf
36880 return _snprintf ();
36885 rm -f conftest.$ac_objext conftest$ac_exeext
36886 if { (ac_try="$ac_link"
36887 case "(($ac_try" in
36888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36889 *) ac_try_echo=$ac_try;;
36891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36892 (eval "$ac_link") 2>conftest.er1
36894 grep -v '^ *+' conftest.er1 >conftest.err
36896 cat conftest.err >&5
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); } && {
36899 test -z "$ac_c_werror_flag" ||
36900 test ! -s conftest.err
36901 } && test -s conftest$ac_exeext &&
36902 $as_test_x conftest$ac_exeext; then
36903 ac_cv_func__snprintf=yes
36905 echo "$as_me: failed program was:" >&5
36906 sed 's/^/| /' conftest.$ac_ext >&5
36908 ac_cv_func__snprintf=no
36911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36912 conftest$ac_exeext conftest.$ac_ext
36914 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36915 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36916 if test $ac_cv_func__snprintf = yes; then
36917 ac_cv_func_snprintf=yes
36919 cat >>confdefs.h <<\_ACEOF
36920 #define snprintf _snprintf
36929 for ac_func in vsnprintf _vsnprintf
36931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36935 echo $ECHO_N "(cached) $ECHO_C" >&6
36937 cat >conftest.$ac_ext <<_ACEOF
36940 cat confdefs.h >>conftest.$ac_ext
36941 cat >>conftest.$ac_ext <<_ACEOF
36942 /* end confdefs.h. */
36943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36945 #define $ac_func innocuous_$ac_func
36947 /* System header to define __stub macros and hopefully few prototypes,
36948 which can conflict with char $ac_func (); below.
36949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36950 <limits.h> exists even on freestanding compilers. */
36953 # include <limits.h>
36955 # include <assert.h>
36960 /* Override any GCC internal prototype to avoid an error.
36961 Use char because int might match the return type of a GCC
36962 builtin and then its argument prototype would still apply. */
36967 /* The GNU C library defines this for functions which it implements
36968 to always fail with ENOSYS. Some functions are actually named
36969 something starting with __ and the normal name is an alias. */
36970 #if defined __stub_$ac_func || defined __stub___$ac_func
36977 return $ac_func ();
36982 rm -f conftest.$ac_objext conftest$ac_exeext
36983 if { (ac_try="$ac_link"
36984 case "(($ac_try" in
36985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36986 *) ac_try_echo=$ac_try;;
36988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36989 (eval "$ac_link") 2>conftest.er1
36991 grep -v '^ *+' conftest.er1 >conftest.err
36993 cat conftest.err >&5
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); } && {
36996 test -z "$ac_c_werror_flag" ||
36997 test ! -s conftest.err
36998 } && test -s conftest$ac_exeext &&
36999 $as_test_x conftest$ac_exeext; then
37000 eval "$as_ac_var=yes"
37002 echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37005 eval "$as_ac_var=no"
37008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37009 conftest$ac_exeext conftest.$ac_ext
37011 ac_res=`eval echo '${'$as_ac_var'}'`
37012 { echo "$as_me:$LINENO: result: $ac_res" >&5
37013 echo "${ECHO_T}$ac_res" >&6; }
37014 if test `eval echo '${'$as_ac_var'}'` = yes; then
37015 cat >>confdefs.h <<_ACEOF
37016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37023 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37024 ac_cv_func_vsnprintf=yes
37026 cat >>confdefs.h <<\_ACEOF
37027 #define vsnprintf _vsnprintf
37033 for ac_func in vprintf
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
37123 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37124 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37125 if test "${ac_cv_func__doprnt+set}" = set; then
37126 echo $ECHO_N "(cached) $ECHO_C" >&6
37128 cat >conftest.$ac_ext <<_ACEOF
37131 cat confdefs.h >>conftest.$ac_ext
37132 cat >>conftest.$ac_ext <<_ACEOF
37133 /* end confdefs.h. */
37134 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37136 #define _doprnt innocuous__doprnt
37138 /* System header to define __stub macros and hopefully few prototypes,
37139 which can conflict with char _doprnt (); below.
37140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37141 <limits.h> exists even on freestanding compilers. */
37144 # include <limits.h>
37146 # include <assert.h>
37151 /* Override any GCC internal prototype to avoid an error.
37152 Use char because int might match the return type of a GCC
37153 builtin and then its argument prototype would still apply. */
37158 /* The GNU C library defines this for functions which it implements
37159 to always fail with ENOSYS. Some functions are actually named
37160 something starting with __ and the normal name is an alias. */
37161 #if defined __stub__doprnt || defined __stub____doprnt
37173 rm -f conftest.$ac_objext conftest$ac_exeext
37174 if { (ac_try="$ac_link"
37175 case "(($ac_try" in
37176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37177 *) ac_try_echo=$ac_try;;
37179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37180 (eval "$ac_link") 2>conftest.er1
37182 grep -v '^ *+' conftest.er1 >conftest.err
37184 cat conftest.err >&5
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); } && {
37187 test -z "$ac_c_werror_flag" ||
37188 test ! -s conftest.err
37189 } && test -s conftest$ac_exeext &&
37190 $as_test_x conftest$ac_exeext; then
37191 ac_cv_func__doprnt=yes
37193 echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.$ac_ext >&5
37196 ac_cv_func__doprnt=no
37199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37200 conftest$ac_exeext conftest.$ac_ext
37202 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37203 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37204 if test $ac_cv_func__doprnt = yes; then
37206 cat >>confdefs.h <<\_ACEOF
37207 #define HAVE_DOPRNT 1
37217 if test $ac_cv_func_vprintf = yes ; then
37220 for ac_func in snprintf vsnprintf
37222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37226 echo $ECHO_N "(cached) $ECHO_C" >&6
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37236 #define $ac_func innocuous_$ac_func
37238 /* System header to define __stub macros and hopefully few prototypes,
37239 which can conflict with char $ac_func (); below.
37240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37241 <limits.h> exists even on freestanding compilers. */
37244 # include <limits.h>
37246 # include <assert.h>
37251 /* Override any GCC internal prototype to avoid an error.
37252 Use char because int might match the return type of a GCC
37253 builtin and then its argument prototype would still apply. */
37258 /* The GNU C library defines this for functions which it implements
37259 to always fail with ENOSYS. Some functions are actually named
37260 something starting with __ and the normal name is an alias. */
37261 #if defined __stub_$ac_func || defined __stub___$ac_func
37268 return $ac_func ();
37273 rm -f conftest.$ac_objext conftest$ac_exeext
37274 if { (ac_try="$ac_link"
37275 case "(($ac_try" in
37276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37277 *) ac_try_echo=$ac_try;;
37279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37280 (eval "$ac_link") 2>conftest.er1
37282 grep -v '^ *+' conftest.er1 >conftest.err
37284 cat conftest.err >&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); } && {
37287 test -z "$ac_c_werror_flag" ||
37288 test ! -s conftest.err
37289 } && test -s conftest$ac_exeext &&
37290 $as_test_x conftest$ac_exeext; then
37291 eval "$as_ac_var=yes"
37293 echo "$as_me: failed program was:" >&5
37294 sed 's/^/| /' conftest.$ac_ext >&5
37296 eval "$as_ac_var=no"
37299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37300 conftest$ac_exeext conftest.$ac_ext
37302 ac_res=`eval echo '${'$as_ac_var'}'`
37303 { echo "$as_me:$LINENO: result: $ac_res" >&5
37304 echo "${ECHO_T}$ac_res" >&6; }
37305 if test `eval echo '${'$as_ac_var'}'` = yes; then
37306 cat >>confdefs.h <<_ACEOF
37307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37434 echo $ECHO_N "(cached) $ECHO_C" >&6
37436 cat >conftest.$ac_ext <<_ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h. */
37442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37444 #define $ac_func innocuous_$ac_func
37446 /* System header to define __stub macros and hopefully few prototypes,
37447 which can conflict with char $ac_func (); below.
37448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37449 <limits.h> exists even on freestanding compilers. */
37452 # include <limits.h>
37454 # include <assert.h>
37459 /* Override any GCC internal prototype to avoid an error.
37460 Use char because int might match the return type of a GCC
37461 builtin and then its argument prototype would still apply. */
37466 /* The GNU C library defines this for functions which it implements
37467 to always fail with ENOSYS. Some functions are actually named
37468 something starting with __ and the normal name is an alias. */
37469 #if defined __stub_$ac_func || defined __stub___$ac_func
37476 return $ac_func ();
37481 rm -f conftest.$ac_objext conftest$ac_exeext
37482 if { (ac_try="$ac_link"
37483 case "(($ac_try" in
37484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37485 *) ac_try_echo=$ac_try;;
37487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37488 (eval "$ac_link") 2>conftest.er1
37490 grep -v '^ *+' conftest.er1 >conftest.err
37492 cat conftest.err >&5
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); } && {
37495 test -z "$ac_c_werror_flag" ||
37496 test ! -s conftest.err
37497 } && test -s conftest$ac_exeext &&
37498 $as_test_x conftest$ac_exeext; then
37499 eval "$as_ac_var=yes"
37501 echo "$as_me: failed program was:" >&5
37502 sed 's/^/| /' conftest.$ac_ext >&5
37504 eval "$as_ac_var=no"
37507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37508 conftest$ac_exeext conftest.$ac_ext
37510 ac_res=`eval echo '${'$as_ac_var'}'`
37511 { echo "$as_me:$LINENO: result: $ac_res" >&5
37512 echo "${ECHO_T}$ac_res" >&6; }
37513 if test `eval echo '${'$as_ac_var'}'` = yes; then
37514 cat >>confdefs.h <<_ACEOF
37515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37524 for ac_func in getopt getpeereid
37526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37530 echo $ECHO_N "(cached) $ECHO_C" >&6
37532 cat >conftest.$ac_ext <<_ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h. */
37538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37540 #define $ac_func innocuous_$ac_func
37542 /* System header to define __stub macros and hopefully few prototypes,
37543 which can conflict with char $ac_func (); below.
37544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37545 <limits.h> exists even on freestanding compilers. */
37548 # include <limits.h>
37550 # include <assert.h>
37555 /* Override any GCC internal prototype to avoid an error.
37556 Use char because int might match the return type of a GCC
37557 builtin and then its argument prototype would still apply. */
37562 /* The GNU C library defines this for functions which it implements
37563 to always fail with ENOSYS. Some functions are actually named
37564 something starting with __ and the normal name is an alias. */
37565 #if defined __stub_$ac_func || defined __stub___$ac_func
37572 return $ac_func ();
37577 rm -f conftest.$ac_objext conftest$ac_exeext
37578 if { (ac_try="$ac_link"
37579 case "(($ac_try" in
37580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581 *) ac_try_echo=$ac_try;;
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584 (eval "$ac_link") 2>conftest.er1
37586 grep -v '^ *+' conftest.er1 >conftest.err
37588 cat conftest.err >&5
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); } && {
37591 test -z "$ac_c_werror_flag" ||
37592 test ! -s conftest.err
37593 } && test -s conftest$ac_exeext &&
37594 $as_test_x conftest$ac_exeext; then
37595 eval "$as_ac_var=yes"
37597 echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37600 eval "$as_ac_var=no"
37603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37604 conftest$ac_exeext conftest.$ac_ext
37606 ac_res=`eval echo '${'$as_ac_var'}'`
37607 { echo "$as_me:$LINENO: result: $ac_res" >&5
37608 echo "${ECHO_T}$ac_res" >&6; }
37609 if test `eval echo '${'$as_ac_var'}'` = yes; then
37610 cat >>confdefs.h <<_ACEOF
37611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37615 case " $LIBOBJS " in
37616 *" $ac_func.$ac_objext "* ) ;;
37617 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37626 if test "$ac_cv_func_getopt" != yes; then
37627 LIBSRCS="$LIBSRCS getopt.c"
37630 if test "$ac_cv_func_getpeereid" != yes; then
37632 for ac_func in getpeerucred
37634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37638 echo $ECHO_N "(cached) $ECHO_C" >&6
37640 cat >conftest.$ac_ext <<_ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h. */
37646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37648 #define $ac_func innocuous_$ac_func
37650 /* System header to define __stub macros and hopefully few prototypes,
37651 which can conflict with char $ac_func (); below.
37652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37653 <limits.h> exists even on freestanding compilers. */
37656 # include <limits.h>
37658 # include <assert.h>
37663 /* Override any GCC internal prototype to avoid an error.
37664 Use char because int might match the return type of a GCC
37665 builtin and then its argument prototype would still apply. */
37670 /* The GNU C library defines this for functions which it implements
37671 to always fail with ENOSYS. Some functions are actually named
37672 something starting with __ and the normal name is an alias. */
37673 #if defined __stub_$ac_func || defined __stub___$ac_func
37680 return $ac_func ();
37685 rm -f conftest.$ac_objext conftest$ac_exeext
37686 if { (ac_try="$ac_link"
37687 case "(($ac_try" in
37688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689 *) ac_try_echo=$ac_try;;
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692 (eval "$ac_link") 2>conftest.er1
37694 grep -v '^ *+' conftest.er1 >conftest.err
37696 cat conftest.err >&5
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); } && {
37699 test -z "$ac_c_werror_flag" ||
37700 test ! -s conftest.err
37701 } && test -s conftest$ac_exeext &&
37702 $as_test_x conftest$ac_exeext; then
37703 eval "$as_ac_var=yes"
37705 echo "$as_me: failed program was:" >&5
37706 sed 's/^/| /' conftest.$ac_ext >&5
37708 eval "$as_ac_var=no"
37711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37712 conftest$ac_exeext conftest.$ac_ext
37714 ac_res=`eval echo '${'$as_ac_var'}'`
37715 { echo "$as_me:$LINENO: result: $ac_res" >&5
37716 echo "${ECHO_T}$ac_res" >&6; }
37717 if test `eval echo '${'$as_ac_var'}'` = yes; then
37718 cat >>confdefs.h <<_ACEOF
37719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37725 if test "$ac_cv_func_getpeerucred" != yes ; then
37726 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37727 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37728 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37729 echo $ECHO_N "(cached) $ECHO_C" >&6
37731 cat >conftest.$ac_ext <<_ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h. */
37737 $ac_includes_default
37738 #ifdef HAVE_SYS_SOCKET_H
37739 #include <sys/socket.h>
37745 static struct msghdr ac_aggr;
37746 if (ac_aggr.msg_accrightslen)
37752 rm -f conftest.$ac_objext
37753 if { (ac_try="$ac_compile"
37754 case "(($ac_try" in
37755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37756 *) ac_try_echo=$ac_try;;
37758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37759 (eval "$ac_compile") 2>conftest.er1
37761 grep -v '^ *+' conftest.er1 >conftest.err
37763 cat conftest.err >&5
37764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); } && {
37766 test -z "$ac_c_werror_flag" ||
37767 test ! -s conftest.err
37768 } && test -s conftest.$ac_objext; then
37769 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37774 cat >conftest.$ac_ext <<_ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h. */
37780 $ac_includes_default
37781 #ifdef HAVE_SYS_SOCKET_H
37782 #include <sys/socket.h>
37788 static struct msghdr ac_aggr;
37789 if (sizeof ac_aggr.msg_accrightslen)
37795 rm -f conftest.$ac_objext
37796 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
37812 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37814 echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37817 ac_cv_member_struct_msghdr_msg_accrightslen=no
37820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37826 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37827 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37829 cat >>confdefs.h <<_ACEOF
37830 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37836 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37837 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37838 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37839 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37840 echo $ECHO_N "(cached) $ECHO_C" >&6
37842 cat >conftest.$ac_ext <<_ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h. */
37848 $ac_includes_default
37849 #ifdef HAVE_SYS_SOCKET_H
37850 #include <sys/socket.h>
37856 static struct msghdr ac_aggr;
37857 if (ac_aggr.msg_control)
37863 rm -f conftest.$ac_objext
37864 if { (ac_try="$ac_compile"
37865 case "(($ac_try" in
37866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37867 *) ac_try_echo=$ac_try;;
37869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37870 (eval "$ac_compile") 2>conftest.er1
37872 grep -v '^ *+' conftest.er1 >conftest.err
37874 cat conftest.err >&5
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); } && {
37877 test -z "$ac_c_werror_flag" ||
37878 test ! -s conftest.err
37879 } && test -s conftest.$ac_objext; then
37880 ac_cv_member_struct_msghdr_msg_control=yes
37882 echo "$as_me: failed program was:" >&5
37883 sed 's/^/| /' conftest.$ac_ext >&5
37885 cat >conftest.$ac_ext <<_ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37891 $ac_includes_default
37892 #ifdef HAVE_SYS_SOCKET_H
37893 #include <sys/socket.h>
37899 static struct msghdr ac_aggr;
37900 if (sizeof ac_aggr.msg_control)
37906 rm -f conftest.$ac_objext
37907 if { (ac_try="$ac_compile"
37908 case "(($ac_try" in
37909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37910 *) ac_try_echo=$ac_try;;
37912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37913 (eval "$ac_compile") 2>conftest.er1
37915 grep -v '^ *+' conftest.er1 >conftest.err
37917 cat conftest.err >&5
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); } && {
37920 test -z "$ac_c_werror_flag" ||
37921 test ! -s conftest.err
37922 } && test -s conftest.$ac_objext; then
37923 ac_cv_member_struct_msghdr_msg_control=yes
37925 echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37928 ac_cv_member_struct_msghdr_msg_control=no
37931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37936 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37937 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37938 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37940 cat >>confdefs.h <<_ACEOF
37941 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37948 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37949 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37950 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37951 echo $ECHO_N "(cached) $ECHO_C" >&6
37953 cat >conftest.$ac_ext <<_ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h. */
37959 $ac_includes_default
37963 static struct stat ac_aggr;
37964 if (ac_aggr.st_fstype)
37970 rm -f conftest.$ac_objext
37971 if { (ac_try="$ac_compile"
37972 case "(($ac_try" in
37973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37974 *) ac_try_echo=$ac_try;;
37976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37977 (eval "$ac_compile") 2>conftest.er1
37979 grep -v '^ *+' conftest.er1 >conftest.err
37981 cat conftest.err >&5
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); } && {
37984 test -z "$ac_c_werror_flag" ||
37985 test ! -s conftest.err
37986 } && test -s conftest.$ac_objext; then
37987 ac_cv_member_struct_stat_st_fstype=yes
37989 echo "$as_me: failed program was:" >&5
37990 sed 's/^/| /' conftest.$ac_ext >&5
37992 cat >conftest.$ac_ext <<_ACEOF
37995 cat confdefs.h >>conftest.$ac_ext
37996 cat >>conftest.$ac_ext <<_ACEOF
37997 /* end confdefs.h. */
37998 $ac_includes_default
38002 static struct stat ac_aggr;
38003 if (sizeof ac_aggr.st_fstype)
38009 rm -f conftest.$ac_objext
38010 if { (ac_try="$ac_compile"
38011 case "(($ac_try" in
38012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38013 *) ac_try_echo=$ac_try;;
38015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38016 (eval "$ac_compile") 2>conftest.er1
38018 grep -v '^ *+' conftest.er1 >conftest.err
38020 cat conftest.err >&5
38021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022 (exit $ac_status); } && {
38023 test -z "$ac_c_werror_flag" ||
38024 test ! -s conftest.err
38025 } && test -s conftest.$ac_objext; then
38026 ac_cv_member_struct_stat_st_fstype=yes
38028 echo "$as_me: failed program was:" >&5
38029 sed 's/^/| /' conftest.$ac_ext >&5
38031 ac_cv_member_struct_stat_st_fstype=no
38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
38041 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38043 cat >>confdefs.h <<_ACEOF
38044 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38049 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38050 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
38051 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38052 echo $ECHO_N "(cached) $ECHO_C" >&6
38054 cat >conftest.$ac_ext <<_ACEOF
38057 cat confdefs.h >>conftest.$ac_ext
38058 cat >>conftest.$ac_ext <<_ACEOF
38059 /* end confdefs.h. */
38060 $ac_includes_default
38064 static struct stat ac_aggr;
38065 if (ac_aggr.st_vfstype)
38071 rm -f conftest.$ac_objext
38072 if { (ac_try="$ac_compile"
38073 case "(($ac_try" in
38074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38075 *) ac_try_echo=$ac_try;;
38077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38078 (eval "$ac_compile") 2>conftest.er1
38080 grep -v '^ *+' conftest.er1 >conftest.err
38082 cat conftest.err >&5
38083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); } && {
38085 test -z "$ac_c_werror_flag" ||
38086 test ! -s conftest.err
38087 } && test -s conftest.$ac_objext; then
38088 ac_cv_member_struct_stat_st_vfstype=yes
38090 echo "$as_me: failed program was:" >&5
38091 sed 's/^/| /' conftest.$ac_ext >&5
38093 cat >conftest.$ac_ext <<_ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h. */
38099 $ac_includes_default
38103 static struct stat ac_aggr;
38104 if (sizeof ac_aggr.st_vfstype)
38110 rm -f conftest.$ac_objext
38111 if { (ac_try="$ac_compile"
38112 case "(($ac_try" in
38113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38114 *) ac_try_echo=$ac_try;;
38116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38117 (eval "$ac_compile") 2>conftest.er1
38119 grep -v '^ *+' conftest.er1 >conftest.err
38121 cat conftest.err >&5
38122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123 (exit $ac_status); } && {
38124 test -z "$ac_c_werror_flag" ||
38125 test ! -s conftest.err
38126 } && test -s conftest.$ac_objext; then
38127 ac_cv_member_struct_stat_st_vfstype=yes
38129 echo "$as_me: failed program was:" >&5
38130 sed 's/^/| /' conftest.$ac_ext >&5
38132 ac_cv_member_struct_stat_st_vfstype=no
38135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38140 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38141 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38142 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38144 cat >>confdefs.h <<_ACEOF
38145 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38151 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38152 cat >conftest.$ac_ext <<_ACEOF
38153 struct stat st; char *ptr=st.st_fstype;
38155 rm -f conftest.$ac_objext
38156 if { (ac_try="$ac_compile"
38157 case "(($ac_try" in
38158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38159 *) ac_try_echo=$ac_try;;
38161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38162 (eval "$ac_compile") 2>conftest.er1
38164 grep -v '^ *+' conftest.er1 >conftest.err
38166 cat conftest.err >&5
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); } && {
38169 test -z "$ac_c_werror_flag" ||
38170 test ! -s conftest.err
38171 } && test -s conftest.$ac_objext; then
38173 cat >>confdefs.h <<\_ACEOF
38174 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38178 echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38191 LIBSRCS="$LIBSRCS getpeereid.c"
38194 if test "$ac_cv_func_snprintf" != yes ||
38195 test "$ac_cv_func_vsnprintf" != yes; then
38196 if test "$ac_cv_func_snprintf" != yes; then
38198 cat >>confdefs.h <<\_ACEOF
38199 #define snprintf ber_pvt_snprintf
38203 if test "$ac_cv_func_vsnprintf" != yes; then
38205 cat >>confdefs.h <<\_ACEOF
38206 #define vsnprintf ber_pvt_vsnprintf
38213 if test "$ol_enable_slapi" != no ; then
38215 for ac_header in ltdl.h
38217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38222 echo $ECHO_N "(cached) $ECHO_C" >&6
38224 ac_res=`eval echo '${'$as_ac_Header'}'`
38225 { echo "$as_me:$LINENO: result: $ac_res" >&5
38226 echo "${ECHO_T}$ac_res" >&6; }
38228 # Is the header compilable?
38229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38231 cat >conftest.$ac_ext <<_ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h. */
38237 $ac_includes_default
38238 #include <$ac_header>
38240 rm -f conftest.$ac_objext
38241 if { (ac_try="$ac_compile"
38242 case "(($ac_try" in
38243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38244 *) ac_try_echo=$ac_try;;
38246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38247 (eval "$ac_compile") 2>conftest.er1
38249 grep -v '^ *+' conftest.er1 >conftest.err
38251 cat conftest.err >&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); } && {
38254 test -z "$ac_c_werror_flag" ||
38255 test ! -s conftest.err
38256 } && test -s conftest.$ac_objext; then
38257 ac_header_compiler=yes
38259 echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38262 ac_header_compiler=no
38265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38267 echo "${ECHO_T}$ac_header_compiler" >&6; }
38269 # Is the header present?
38270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38272 cat >conftest.$ac_ext <<_ACEOF
38275 cat confdefs.h >>conftest.$ac_ext
38276 cat >>conftest.$ac_ext <<_ACEOF
38277 /* end confdefs.h. */
38278 #include <$ac_header>
38280 if { (ac_try="$ac_cpp conftest.$ac_ext"
38281 case "(($ac_try" in
38282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38283 *) ac_try_echo=$ac_try;;
38285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38288 grep -v '^ *+' conftest.er1 >conftest.err
38290 cat conftest.err >&5
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); } >/dev/null && {
38293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38294 test ! -s conftest.err
38296 ac_header_preproc=yes
38298 echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38301 ac_header_preproc=no
38304 rm -f conftest.err conftest.$ac_ext
38305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38306 echo "${ECHO_T}$ac_header_preproc" >&6; }
38308 # So? What about this header?
38309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38315 ac_header_preproc=yes
38318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38331 ## --------------------------------------------- ##
38332 ## Report this to <http://www.openldap.org/its/> ##
38333 ## --------------------------------------------- ##
38335 ) | sed "s/^/$as_me: WARNING: /" >&2
38338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38341 echo $ECHO_N "(cached) $ECHO_C" >&6
38343 eval "$as_ac_Header=\$ac_header_preproc"
38345 ac_res=`eval echo '${'$as_ac_Header'}'`
38346 { echo "$as_me:$LINENO: result: $ac_res" >&5
38347 echo "${ECHO_T}$ac_res" >&6; }
38350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38351 cat >>confdefs.h <<_ACEOF
38352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38360 if test $ac_cv_header_ltdl_h != yes ; then
38361 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38362 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38363 { (exit 1); exit 1; }; }
38365 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38366 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38367 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38368 echo $ECHO_N "(cached) $ECHO_C" >&6
38370 ac_check_lib_save_LIBS=$LIBS
38371 LIBS="-lltdl $LIBS"
38372 cat >conftest.$ac_ext <<_ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h. */
38379 /* Override any GCC internal prototype to avoid an error.
38380 Use char because int might match the return type of a GCC
38381 builtin and then its argument prototype would still apply. */
38389 return lt_dlinit ();
38394 rm -f conftest.$ac_objext conftest$ac_exeext
38395 if { (ac_try="$ac_link"
38396 case "(($ac_try" in
38397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38398 *) ac_try_echo=$ac_try;;
38400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38401 (eval "$ac_link") 2>conftest.er1
38403 grep -v '^ *+' conftest.er1 >conftest.err
38405 cat conftest.err >&5
38406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407 (exit $ac_status); } && {
38408 test -z "$ac_c_werror_flag" ||
38409 test ! -s conftest.err
38410 } && test -s conftest$ac_exeext &&
38411 $as_test_x conftest$ac_exeext; then
38412 ac_cv_lib_ltdl_lt_dlinit=yes
38414 echo "$as_me: failed program was:" >&5
38415 sed 's/^/| /' conftest.$ac_ext >&5
38417 ac_cv_lib_ltdl_lt_dlinit=no
38420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38421 conftest$ac_exeext conftest.$ac_ext
38422 LIBS=$ac_check_lib_save_LIBS
38424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38425 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38426 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38429 LIBSLAPI=libslapi.a
38430 LIBSLAPITOOLS=../libslapi.a
38432 cat >>confdefs.h <<\_ACEOF
38433 #define HAVE_LIBLTDL 1
38438 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38439 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38440 { (exit 1); exit 1; }; }
38445 cat >>confdefs.h <<\_ACEOF
38446 #define LDAP_SLAPI 1
38451 if test "$ol_enable_debug" != no ; then
38452 if test "$ol_enable_debug" = traditional; then
38454 cat >>confdefs.h <<\_ACEOF
38455 #define OLD_DEBUG 1
38460 cat >>confdefs.h <<\_ACEOF
38461 #define LDAP_DEBUG 1
38465 if test "$ol_enable_syslog" = yes ; then
38467 cat >>confdefs.h <<\_ACEOF
38468 #define LDAP_SYSLOG 1
38472 if test "$ol_enable_proctitle" != no ; then
38474 cat >>confdefs.h <<\_ACEOF
38475 #define LDAP_PROCTITLE 1
38479 if test "$ol_enable_referrals" != no ; then
38481 cat >>confdefs.h <<\_ACEOF
38482 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38486 if test "$ol_enable_local" != no; then
38488 cat >>confdefs.h <<\_ACEOF
38489 #define LDAP_PF_LOCAL 1
38493 if test "$ol_link_ipv6" != no; then
38495 cat >>confdefs.h <<\_ACEOF
38496 #define LDAP_PF_INET6 1
38500 if test "$ol_enable_cleartext" != no ; then
38502 cat >>confdefs.h <<\_ACEOF
38503 #define SLAPD_CLEARTEXT 1
38507 if test "$ol_enable_crypt" != no ; then
38509 cat >>confdefs.h <<\_ACEOF
38510 #define SLAPD_CRYPT 1
38514 if test "$ol_link_spasswd" != no ; then
38516 cat >>confdefs.h <<\_ACEOF
38517 #define SLAPD_SPASSWD 1
38521 if test "$ol_enable_rlookups" != no ; then
38523 cat >>confdefs.h <<\_ACEOF
38524 #define SLAPD_RLOOKUPS 1
38528 if test "$ol_enable_aci" != no ; then
38529 if test $ol_enable_dynacl = no ; then
38530 ol_enable_dynacl=yes
38531 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38532 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38534 if test "$ol_enable_aci" = mod ; then
38535 MFLAG=SLAPD_MOD_DYNAMIC
38536 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38537 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38538 { (exit 1); exit 1; }; }
38540 MFLAG=SLAPD_MOD_STATIC
38542 WITH_ACI_ENABLED=$ol_enable_aci
38544 cat >>confdefs.h <<_ACEOF
38545 #define SLAPD_ACI_ENABLED $MFLAG
38549 WITH_ACI_ENABLED=no
38551 if test "$ol_enable_dynacl" != no ; then
38553 cat >>confdefs.h <<\_ACEOF
38554 #define SLAP_DYNACL 1
38559 if test "$ol_link_modules" != no ; then
38561 cat >>confdefs.h <<\_ACEOF
38562 #define SLAPD_MODULES 1
38566 SLAPD_MODULES_LDFLAGS="-dlopen self"
38570 cat >>confdefs.h <<\_ACEOF
38571 #define SLAPD_MOD_STATIC 1
38575 cat >>confdefs.h <<\_ACEOF
38576 #define SLAPD_MOD_DYNAMIC 2
38580 if test "$ol_enable_monitor" != no ; then
38582 BUILD_MONITOR=$ol_enable_monitor
38583 if test "$ol_enable_monitor" = mod ; then
38584 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38585 MFLAG=SLAPD_MOD_DYNAMIC
38587 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38588 MFLAG=SLAPD_MOD_STATIC
38591 cat >>confdefs.h <<_ACEOF
38592 #define SLAPD_MONITOR $MFLAG
38597 if test "$ol_enable_bdb" != no ; then
38599 BUILD_BDB=$ol_enable_bdb
38600 if test "$ol_enable_bdb" = mod ; then
38601 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38602 MFLAG=SLAPD_MOD_DYNAMIC
38604 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38605 MFLAG=SLAPD_MOD_STATIC
38608 cat >>confdefs.h <<_ACEOF
38609 #define SLAPD_BDB $MFLAG
38614 if test "$ol_enable_dnssrv" != no ; then
38616 BUILD_DNSSRV=$ol_enable_dnssrv
38617 if test "$ol_enable_dnssrv" = mod ; then
38618 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38619 MFLAG=SLAPD_MOD_DYNAMIC
38621 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38622 MFLAG=SLAPD_MOD_STATIC
38625 cat >>confdefs.h <<_ACEOF
38626 #define SLAPD_DNSSRV $MFLAG
38631 if test "$ol_enable_hdb" != no ; then
38633 BUILD_HDB=$ol_enable_hdb
38634 if test "$ol_enable_hdb" = mod ; then
38635 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38636 MFLAG=SLAPD_MOD_DYNAMIC
38638 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38639 MFLAG=SLAPD_MOD_STATIC
38642 cat >>confdefs.h <<_ACEOF
38643 #define SLAPD_HDB $MFLAG
38648 if test "$ol_enable_ldap" != no ; then
38650 BUILD_LDAP=$ol_enable_ldap
38651 if test "$ol_enable_ldap" = mod ; then
38652 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38653 MFLAG=SLAPD_MOD_DYNAMIC
38655 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38656 MFLAG=SLAPD_MOD_STATIC
38659 cat >>confdefs.h <<_ACEOF
38660 #define SLAPD_LDAP $MFLAG
38665 if test "$ol_enable_meta" != no ; then
38667 BUILD_META=$ol_enable_meta
38669 if test "$ol_enable_meta" = mod ; then
38670 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38671 MFLAG=SLAPD_MOD_DYNAMIC
38673 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38674 MFLAG=SLAPD_MOD_STATIC
38677 cat >>confdefs.h <<_ACEOF
38678 #define SLAPD_META $MFLAG
38683 if test "$ol_enable_ndb" != no ; then
38685 BUILD_NDB=$ol_enable_ndb
38686 if test "$ol_enable_ndb" = mod ; then
38687 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38688 MFLAG=SLAPD_MOD_DYNAMIC
38690 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38691 MFLAG=SLAPD_MOD_STATIC
38694 cat >>confdefs.h <<_ACEOF
38695 #define SLAPD_NDB $MFLAG
38700 if test "$ol_enable_null" != no ; then
38702 BUILD_NULL=$ol_enable_null
38703 if test "$ol_enable_null" = mod ; then
38704 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38705 MFLAG=SLAPD_MOD_DYNAMIC
38707 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38708 MFLAG=SLAPD_MOD_STATIC
38711 cat >>confdefs.h <<_ACEOF
38712 #define SLAPD_NULL $MFLAG
38717 if test "$ol_enable_passwd" != no ; then
38719 BUILD_PASSWD=$ol_enable_passwd
38720 if test "$ol_enable_passwd" = mod ; then
38721 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38722 MFLAG=SLAPD_MOD_DYNAMIC
38724 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38725 MFLAG=SLAPD_MOD_STATIC
38728 cat >>confdefs.h <<_ACEOF
38729 #define SLAPD_PASSWD $MFLAG
38734 if test "$ol_link_perl" != no ; then
38736 BUILD_PERL=$ol_enable_perl
38737 if test "$ol_enable_perl" = mod ; then
38738 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38739 MFLAG=SLAPD_MOD_DYNAMIC
38741 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38742 MFLAG=SLAPD_MOD_STATIC
38745 cat >>confdefs.h <<_ACEOF
38746 #define SLAPD_PERL $MFLAG
38751 if test "$ol_enable_relay" != no ; then
38753 BUILD_RELAY=$ol_enable_relay
38754 if test "$ol_enable_relay" = mod ; then
38755 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38756 MFLAG=SLAPD_MOD_DYNAMIC
38758 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38759 MFLAG=SLAPD_MOD_STATIC
38762 cat >>confdefs.h <<_ACEOF
38763 #define SLAPD_RELAY $MFLAG
38768 if test "$ol_enable_shell" != no ; then
38769 if test "$ol_link_threads" != no ; then
38770 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38771 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38774 BUILD_SHELL=$ol_enable_shell
38775 if test "$ol_enable_shell" = mod ; then
38776 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38777 MFLAG=SLAPD_MOD_DYNAMIC
38779 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38780 MFLAG=SLAPD_MOD_STATIC
38783 cat >>confdefs.h <<_ACEOF
38784 #define SLAPD_SHELL $MFLAG
38789 if test "$ol_enable_sock" != no ; then
38791 BUILD_SOCK=$ol_enable_sock
38792 if test "$ol_enable_sock" = mod ; then
38793 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38794 MFLAG=SLAPD_MOD_DYNAMIC
38796 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38797 MFLAG=SLAPD_MOD_STATIC
38800 cat >>confdefs.h <<_ACEOF
38801 #define SLAPD_SOCK $MFLAG
38806 if test "$ol_link_sql" != no ; then
38808 BUILD_SQL=$ol_enable_sql
38809 if test "$ol_enable_sql" = mod; then
38810 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38811 MFLAG=SLAPD_MOD_DYNAMIC
38813 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38814 MFLAG=SLAPD_MOD_STATIC
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_SQL $MFLAG
38823 if test "$ol_enable_accesslog" != no ; then
38824 BUILD_ACCESSLOG=$ol_enable_accesslog
38825 if test "$ol_enable_accesslog" = mod ; then
38826 MFLAG=SLAPD_MOD_DYNAMIC
38827 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38829 MFLAG=SLAPD_MOD_STATIC
38830 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38833 cat >>confdefs.h <<_ACEOF
38834 #define SLAPD_OVER_ACCESSLOG $MFLAG
38839 if test "$ol_enable_auditlog" != no ; then
38840 BUILD_AUDITLOG=$ol_enable_auditlog
38841 if test "$ol_enable_auditlog" = mod ; then
38842 MFLAG=SLAPD_MOD_DYNAMIC
38843 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38845 MFLAG=SLAPD_MOD_STATIC
38846 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38849 cat >>confdefs.h <<_ACEOF
38850 #define SLAPD_OVER_AUDITLOG $MFLAG
38855 if test "$ol_enable_collect" != no ; then
38856 BUILD_COLLECT=$ol_enable_collect
38857 if test "$ol_enable_collect" = mod ; then
38858 MFLAG=SLAPD_MOD_DYNAMIC
38859 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38861 MFLAG=SLAPD_MOD_STATIC
38862 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38865 cat >>confdefs.h <<_ACEOF
38866 #define SLAPD_OVER_COLLECT $MFLAG
38871 if test "$ol_enable_constraint" != no ; then
38872 BUILD_CONSTRAINT=$ol_enable_constraint
38873 if test "$ol_enable_constraint" = mod ; then
38874 MFLAG=SLAPD_MOD_DYNAMIC
38875 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38877 MFLAG=SLAPD_MOD_STATIC
38878 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38881 cat >>confdefs.h <<_ACEOF
38882 #define SLAPD_OVER_CONSTRAINT $MFLAG
38887 if test "$ol_enable_dds" != no ; then
38888 BUILD_DDS=$ol_enable_dds
38889 if test "$ol_enable_dds" = mod ; then
38890 MFLAG=SLAPD_MOD_DYNAMIC
38891 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38893 MFLAG=SLAPD_MOD_STATIC
38894 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38897 cat >>confdefs.h <<_ACEOF
38898 #define SLAPD_OVER_DDS $MFLAG
38903 if test "$ol_enable_deref" != no ; then
38904 BUILD_DEREF=$ol_enable_deref
38905 if test "$ol_enable_deref" = mod ; then
38906 MFLAG=SLAPD_MOD_DYNAMIC
38907 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38909 MFLAG=SLAPD_MOD_STATIC
38910 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38913 cat >>confdefs.h <<_ACEOF
38914 #define SLAPD_OVER_DEREF $MFLAG
38919 if test "$ol_enable_dyngroup" != no ; then
38920 BUILD_DYNGROUP=$ol_enable_dyngroup
38921 if test "$ol_enable_dyngroup" = mod ; then
38922 MFLAG=SLAPD_MOD_DYNAMIC
38923 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38925 MFLAG=SLAPD_MOD_STATIC
38926 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38929 cat >>confdefs.h <<_ACEOF
38930 #define SLAPD_OVER_DYNGROUP $MFLAG
38935 if test "$ol_enable_dynlist" != no ; then
38936 BUILD_DYNLIST=$ol_enable_dynlist
38937 if test "$ol_enable_dynlist" = mod ; then
38938 MFLAG=SLAPD_MOD_DYNAMIC
38939 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38941 MFLAG=SLAPD_MOD_STATIC
38942 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38945 cat >>confdefs.h <<_ACEOF
38946 #define SLAPD_OVER_DYNLIST $MFLAG
38951 if test "$ol_enable_memberof" != no ; then
38952 BUILD_MEMBEROF=$ol_enable_memberof
38953 if test "$ol_enable_memberof" = mod ; then
38954 MFLAG=SLAPD_MOD_DYNAMIC
38955 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38957 MFLAG=SLAPD_MOD_STATIC
38958 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38961 cat >>confdefs.h <<_ACEOF
38962 #define SLAPD_OVER_MEMBEROF $MFLAG
38967 if test "$ol_enable_ppolicy" != no ; then
38968 BUILD_PPOLICY=$ol_enable_ppolicy
38969 if test "$ol_enable_ppolicy" = mod ; then
38970 MFLAG=SLAPD_MOD_DYNAMIC
38971 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38973 MFLAG=SLAPD_MOD_STATIC
38974 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38977 cat >>confdefs.h <<_ACEOF
38978 #define SLAPD_OVER_PPOLICY $MFLAG
38983 if test "$ol_enable_proxycache" != no ; then
38984 BUILD_PROXYCACHE=$ol_enable_proxycache
38985 if test "$ol_enable_proxycache" = mod ; then
38986 MFLAG=SLAPD_MOD_DYNAMIC
38987 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38989 MFLAG=SLAPD_MOD_STATIC
38990 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38993 cat >>confdefs.h <<_ACEOF
38994 #define SLAPD_OVER_PROXYCACHE $MFLAG
38999 if test "$ol_enable_refint" != no ; then
39000 BUILD_REFINT=$ol_enable_refint
39001 if test "$ol_enable_refint" = mod ; then
39002 MFLAG=SLAPD_MOD_DYNAMIC
39003 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39005 MFLAG=SLAPD_MOD_STATIC
39006 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39009 cat >>confdefs.h <<_ACEOF
39010 #define SLAPD_OVER_REFINT $MFLAG
39015 if test "$ol_enable_retcode" != no ; then
39016 BUILD_RETCODE=$ol_enable_retcode
39017 if test "$ol_enable_retcode" = mod ; then
39018 MFLAG=SLAPD_MOD_DYNAMIC
39019 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39021 MFLAG=SLAPD_MOD_STATIC
39022 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39025 cat >>confdefs.h <<_ACEOF
39026 #define SLAPD_OVER_RETCODE $MFLAG
39031 if test "$ol_enable_rwm" != no ; then
39033 BUILD_RWM=$ol_enable_rwm
39034 if test "$ol_enable_rwm" = mod ; then
39035 MFLAG=SLAPD_MOD_DYNAMIC
39036 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39038 MFLAG=SLAPD_MOD_STATIC
39039 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39042 cat >>confdefs.h <<_ACEOF
39043 #define SLAPD_OVER_RWM $MFLAG
39048 if test "$ol_enable_seqmod" != no ; then
39049 BUILD_SEQMOD=$ol_enable_seqmod
39050 if test "$ol_enable_seqmod" = mod ; then
39051 MFLAG=SLAPD_MOD_DYNAMIC
39052 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39054 MFLAG=SLAPD_MOD_STATIC
39055 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39058 cat >>confdefs.h <<_ACEOF
39059 #define SLAPD_OVER_SEQMOD $MFLAG
39064 if test "$ol_enable_sssvlv" != no ; then
39065 BUILD_SSSVLV=$ol_enable_sssvlv
39066 if test "$ol_enable_sssvlv" = mod ; then
39067 MFLAG=SLAPD_MOD_DYNAMIC
39068 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
39070 MFLAG=SLAPD_MOD_STATIC
39071 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
39074 cat >>confdefs.h <<_ACEOF
39075 #define SLAPD_OVER_SSSVLV $MFLAG
39080 if test "$ol_enable_syncprov" != no ; then
39081 BUILD_SYNCPROV=$ol_enable_syncprov
39082 if test "$ol_enable_syncprov" = mod ; then
39083 MFLAG=SLAPD_MOD_DYNAMIC
39084 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39086 MFLAG=SLAPD_MOD_STATIC
39087 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39090 cat >>confdefs.h <<_ACEOF
39091 #define SLAPD_OVER_SYNCPROV $MFLAG
39096 if test "$ol_enable_translucent" != no ; then
39097 BUILD_TRANSLUCENT=$ol_enable_translucent
39098 if test "$ol_enable_translucent" = mod ; then
39099 MFLAG=SLAPD_MOD_DYNAMIC
39100 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39102 MFLAG=SLAPD_MOD_STATIC
39103 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39106 cat >>confdefs.h <<_ACEOF
39107 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39112 if test "$ol_enable_unique" != no ; then
39113 BUILD_UNIQUE=$ol_enable_unique
39114 if test "$ol_enable_unique" = mod ; then
39115 MFLAG=SLAPD_MOD_DYNAMIC
39116 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39118 MFLAG=SLAPD_MOD_STATIC
39119 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39122 cat >>confdefs.h <<_ACEOF
39123 #define SLAPD_OVER_UNIQUE $MFLAG
39128 if test "$ol_enable_valsort" != no ; then
39129 BUILD_VALSORT=$ol_enable_valsort
39130 if test "$ol_enable_valsort" = mod ; then
39131 MFLAG=SLAPD_MOD_DYNAMIC
39132 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39134 MFLAG=SLAPD_MOD_STATIC
39135 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39138 cat >>confdefs.h <<_ACEOF
39139 #define SLAPD_OVER_VALSORT $MFLAG
39144 if test "$ol_enable_rewrite" != no ; then
39146 cat >>confdefs.h <<\_ACEOF
39147 #define ENABLE_REWRITE 1
39153 if test "$ol_enable_slapi" != no ; then
39155 cat >>confdefs.h <<\_ACEOF
39156 #define ENABLE_SLAPI 1
39160 SLAPD_SLAPI_DEPEND=libslapi.a
39165 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39167 SLAPD_MODULES_LDFLAGS=
39262 # Check whether --with-xxinstall was given.
39263 if test "${with_xxinstall+set}" = set; then
39264 withval=$with_xxinstall;
39269 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"
39272 ac_config_commands="$ac_config_commands default"
39276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39277 # Let make expand exec_prefix.
39278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39280 DEFS=-DHAVE_CONFIG_H
39284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39285 # 1. Remove the extension, and $U if already installed.
39286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39287 ac_i=`echo "$ac_i" | sed "$ac_script"`
39288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39289 # will be set to the directory where LIBOBJS objects are built.
39290 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39291 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39293 LIBOBJS=$ac_libobjs
39295 LTLIBOBJS=$ac_ltlibobjs
39298 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39299 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39300 Usually this means the macro was only invoked conditionally." >&5
39301 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39302 Usually this means the macro was only invoked conditionally." >&2;}
39303 { (exit 1); exit 1; }; }
39305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39306 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39307 Usually this means the macro was only invoked conditionally." >&5
39308 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39309 Usually this means the macro was only invoked conditionally." >&2;}
39310 { (exit 1); exit 1; }; }
39312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39313 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39314 Usually this means the macro was only invoked conditionally." >&5
39315 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39316 Usually this means the macro was only invoked conditionally." >&2;}
39317 { (exit 1); exit 1; }; }
39320 : ${CONFIG_STATUS=./config.status}
39321 ac_clean_files_save=$ac_clean_files
39322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39323 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39324 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39325 cat >$CONFIG_STATUS <<_ACEOF
39327 # Generated by $as_me.
39328 # Run this file to recreate the current configuration.
39329 # Compiler output produced by configure, useful for debugging
39330 # configure, is in config.log if it exists.
39333 ac_cs_recheck=false
39335 SHELL=\${CONFIG_SHELL-$SHELL}
39338 cat >>$CONFIG_STATUS <<\_ACEOF
39339 ## --------------------- ##
39340 ## M4sh Initialization. ##
39341 ## --------------------- ##
39343 # Be more Bourne compatible
39344 DUALCASE=1; export DUALCASE # for MKS sh
39345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39349 # is contrary to our usage. Disable this feature.
39350 alias -g '${1+"$@"}'='"$@"'
39351 setopt NO_GLOB_SUBST
39353 case `(set -o) 2>/dev/null` in
39354 *posix*) set -o posix ;;
39363 # Avoid depending upon Character Ranges.
39364 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39365 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39366 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39367 as_cr_digits='0123456789'
39368 as_cr_alnum=$as_cr_Letters$as_cr_digits
39370 # The user is always right.
39371 if test "${PATH_SEPARATOR+set}" != set; then
39372 echo "#! /bin/sh" >conf$$.sh
39373 echo "exit 0" >>conf$$.sh
39375 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39383 # Support unset when possible.
39384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39392 # We need space, tab and new line, in precisely that order. Quoting is
39393 # there to prevent editors from complaining about space-tab.
39394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39395 # splitting by setting IFS to empty value.)
39400 # Find who we are. Look in the path if we contain no directory separator.
39402 *[\\/]* ) as_myself=$0 ;;
39403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39404 for as_dir in $PATH
39407 test -z "$as_dir" && as_dir=.
39408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39414 # We did not find ourselves, most probably we were run as `sh COMMAND'
39415 # in which case we are not to be found in the path.
39416 if test "x$as_myself" = x; then
39419 if test ! -f "$as_myself"; then
39420 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39421 { (exit 1); exit 1; }
39424 # Work around bugs in pre-3.0 UWIN ksh.
39425 for as_var in ENV MAIL MAILPATH
39426 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39434 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39435 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39436 LC_TELEPHONE LC_TIME
39438 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39439 eval $as_var=C; export $as_var
39441 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39445 # Required to use basename.
39446 if expr a : '\(a\)' >/dev/null 2>&1 &&
39447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39454 as_basename=basename
39460 # Name of the executable.
39461 as_me=`$as_basename -- "$0" ||
39462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39463 X"$0" : 'X\(//\)$' \| \
39464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39466 sed '/^.*\/\([^/][^/]*\)\/*$/{
39485 as_lineno_1=$LINENO
39486 as_lineno_2=$LINENO
39487 test "x$as_lineno_1" != "x$as_lineno_2" &&
39488 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39490 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39491 # uniformly replaced by the line number. The first 'sed' inserts a
39492 # line-number line after each line using $LINENO; the second 'sed'
39493 # does the real work. The second script uses 'N' to pair each
39494 # line-number line with the line containing $LINENO, and appends
39495 # trailing '-' during substitution so that $LINENO is not a special
39496 # case at line end.
39497 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39498 # scripts with optimization help from Paolo Bonzini. Blame Lee
39499 # E. McMahon (1931-1989) for sed's syntax. :-)
39511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39514 ' >$as_me.lineno &&
39515 chmod +x "$as_me.lineno" ||
39516 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39517 { (exit 1); exit 1; }; }
39519 # Don't try to exec as it changes $[0], causing all sort of problems
39520 # (the dirname of $[0] is not the place where we might find the
39521 # original and so on. Autoconf is especially sensitive to this).
39522 . "./$as_me.lineno"
39523 # Exit status is that of the last command.
39528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39534 ECHO_C= ECHO_N= ECHO_T=
39535 case `echo -n x` in
39537 case `echo 'x\c'` in
39538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39545 if expr a : '\(a\)' >/dev/null 2>&1 &&
39546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39552 rm -f conf$$ conf$$.exe conf$$.file
39553 if test -d conf$$.dir; then
39554 rm -f conf$$.dir/conf$$.file
39560 if ln -s conf$$.file conf$$ 2>/dev/null; then
39562 # ... but there are two gotchas:
39563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39565 # In both cases, we have to default to `cp -p'.
39566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39568 elif ln conf$$.file conf$$ 2>/dev/null; then
39573 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39574 rmdir conf$$.dir 2>/dev/null
39576 if mkdir -p . 2>/dev/null; then
39579 test -d ./-p && rmdir ./-p
39583 if test -x / >/dev/null 2>&1; then
39584 as_test_x='test -x'
39586 if ls -dL / >/dev/null 2>&1; then
39593 if test -d "$1"; then
39599 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39600 ???[sx]*):;;*)false;;esac;fi
39604 as_executable_p=$as_test_x
39606 # Sed expression to map a string onto a valid CPP name.
39607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39609 # Sed expression to map a string onto a valid variable name.
39610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39615 # Save the log message, to keep $[0] and so on meaningful, and to
39616 # report actual input values of CONFIG_FILES etc. instead of their
39617 # values after options handling.
39619 This file was extended by $as_me, which was
39620 generated by GNU Autoconf 2.61. Invocation command line was
39622 CONFIG_FILES = $CONFIG_FILES
39623 CONFIG_HEADERS = $CONFIG_HEADERS
39624 CONFIG_LINKS = $CONFIG_LINKS
39625 CONFIG_COMMANDS = $CONFIG_COMMANDS
39628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39633 cat >>$CONFIG_STATUS <<_ACEOF
39634 # Files that config.status was made for.
39635 config_files="$ac_config_files"
39636 config_headers="$ac_config_headers"
39637 config_commands="$ac_config_commands"
39641 cat >>$CONFIG_STATUS <<\_ACEOF
39643 \`$as_me' instantiates files from templates according to the
39644 current configuration.
39646 Usage: $0 [OPTIONS] [FILE]...
39648 -h, --help print this help, then exit
39649 -V, --version print version number and configuration settings, then exit
39650 -q, --quiet do not print progress messages
39651 -d, --debug don't remove temporary files
39652 --recheck update $as_me by reconfiguring in the same conditions
39653 --file=FILE[:TEMPLATE]
39654 instantiate the configuration file FILE
39655 --header=FILE[:TEMPLATE]
39656 instantiate the configuration header FILE
39658 Configuration files:
39661 Configuration headers:
39664 Configuration commands:
39667 Report bugs to <bug-autoconf@gnu.org>."
39670 cat >>$CONFIG_STATUS <<_ACEOF
39673 configured by $0, generated by GNU Autoconf 2.61,
39674 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39676 Copyright (C) 2006 Free Software Foundation, Inc.
39677 This config.status script is free software; the Free Software Foundation
39678 gives unlimited permission to copy, distribute and modify it."
39686 cat >>$CONFIG_STATUS <<\_ACEOF
39687 # If no file are specified by the user, then we need to provide default
39688 # value. By we need to know if files were specified by the user.
39694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39706 # Handling of the options.
39707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39710 echo "$ac_cs_version"; exit ;;
39711 --debug | --debu | --deb | --de | --d | -d )
39713 --file | --fil | --fi | --f )
39715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39716 ac_need_defaults=false;;
39717 --header | --heade | --head | --hea )
39719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39720 ac_need_defaults=false;;
39722 # Conflict between --help and --header
39723 { echo "$as_me: error: ambiguous option: $1
39724 Try \`$0 --help' for more information." >&2
39725 { (exit 1); exit 1; }; };;
39726 --help | --hel | -h )
39727 echo "$ac_cs_usage"; exit ;;
39728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39732 # This is an error.
39733 -*) { echo "$as_me: error: unrecognized option: $1
39734 Try \`$0 --help' for more information." >&2
39735 { (exit 1); exit 1; }; } ;;
39737 *) ac_config_targets="$ac_config_targets $1"
39738 ac_need_defaults=false ;;
39744 ac_configure_extra_args=
39746 if $ac_cs_silent; then
39748 ac_configure_extra_args="$ac_configure_extra_args --silent"
39752 cat >>$CONFIG_STATUS <<_ACEOF
39753 if \$ac_cs_recheck; then
39754 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39755 CONFIG_SHELL=$SHELL
39756 export CONFIG_SHELL
39757 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39761 cat >>$CONFIG_STATUS <<\_ACEOF
39765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39766 ## Running $as_me. ##
39772 cat >>$CONFIG_STATUS <<_ACEOF
39776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39778 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39779 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39784 cat >>$CONFIG_STATUS <<\_ACEOF
39786 # Handling of arguments.
39787 for ac_config_target in $ac_config_targets
39789 case $ac_config_target in
39790 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39791 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39792 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39794 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39795 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39796 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39797 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39798 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39799 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39800 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39801 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39802 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39803 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39804 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39805 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39806 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39807 "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" ;;
39808 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39809 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39810 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39811 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39812 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39813 "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" ;;
39814 "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" ;;
39815 "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" ;;
39816 "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" ;;
39817 "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" ;;
39818 "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" ;;
39819 "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" ;;
39820 "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" ;;
39821 "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" ;;
39822 "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" ;;
39823 "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" ;;
39824 "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" ;;
39825 "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" ;;
39826 "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" ;;
39827 "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" ;;
39828 "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" ;;
39829 "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" ;;
39830 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39831 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39832 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39833 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39834 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39836 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39837 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39838 { (exit 1); exit 1; }; };;
39843 # If the user did not use the arguments to specify the items to instantiate,
39844 # then the envvar interface is used. Set only those that are not.
39845 # We use the long form for the default assignment because of an extremely
39846 # bizarre bug on SunOS 4.1.3.
39847 if $ac_need_defaults; then
39848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39853 # Have a temporary directory for convenience. Make it in the build tree
39854 # simply because there is no reason against having it here, and in addition,
39855 # creating and moving files from /tmp can sometimes cause problems.
39856 # Hook for its removal unless debugging.
39857 # Note that there is a small window in which the directory will not be cleaned:
39858 # after its creation but before its name has been assigned to `$tmp'.
39862 trap 'exit_status=$?
39863 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39865 trap '{ (exit 1); exit 1; }' 1 2 13 15
39867 # Create a (secure) tmp directory for tmp files.
39870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39871 test -n "$tmp" && test -d "$tmp"
39874 tmp=./conf$$-$RANDOM
39875 (umask 077 && mkdir "$tmp")
39878 echo "$me: cannot create a temporary directory in ." >&2
39879 { (exit 1); exit 1; }
39883 # Set up the sed scripts for CONFIG_FILES section.
39886 # No need to generate the scripts if there are no CONFIG_FILES.
39887 # This happens for instance when ./config.status config.h
39888 if test -n "$CONFIG_FILES"; then
39895 for ac_last_try in false false false false false :; do
39896 cat >conf$$subs.sed <<_ACEOF
39897 SHELL!$SHELL$ac_delim
39898 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39899 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39900 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39901 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39902 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39903 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39904 exec_prefix!$exec_prefix$ac_delim
39905 prefix!$prefix$ac_delim
39906 program_transform_name!$program_transform_name$ac_delim
39907 bindir!$bindir$ac_delim
39908 sbindir!$sbindir$ac_delim
39909 libexecdir!$libexecdir$ac_delim
39910 datarootdir!$datarootdir$ac_delim
39911 datadir!$datadir$ac_delim
39912 sysconfdir!$sysconfdir$ac_delim
39913 sharedstatedir!$sharedstatedir$ac_delim
39914 localstatedir!$localstatedir$ac_delim
39915 includedir!$includedir$ac_delim
39916 oldincludedir!$oldincludedir$ac_delim
39917 docdir!$docdir$ac_delim
39918 infodir!$infodir$ac_delim
39919 htmldir!$htmldir$ac_delim
39920 dvidir!$dvidir$ac_delim
39921 pdfdir!$pdfdir$ac_delim
39922 psdir!$psdir$ac_delim
39923 libdir!$libdir$ac_delim
39924 localedir!$localedir$ac_delim
39925 mandir!$mandir$ac_delim
39926 DEFS!$DEFS$ac_delim
39927 ECHO_C!$ECHO_C$ac_delim
39928 ECHO_N!$ECHO_N$ac_delim
39929 ECHO_T!$ECHO_T$ac_delim
39930 LIBS!$LIBS$ac_delim
39931 build_alias!$build_alias$ac_delim
39932 host_alias!$host_alias$ac_delim
39933 target_alias!$target_alias$ac_delim
39934 build!$build$ac_delim
39935 build_cpu!$build_cpu$ac_delim
39936 build_vendor!$build_vendor$ac_delim
39937 build_os!$build_os$ac_delim
39938 host!$host$ac_delim
39939 host_cpu!$host_cpu$ac_delim
39940 host_vendor!$host_vendor$ac_delim
39941 host_os!$host_os$ac_delim
39942 target!$target$ac_delim
39943 target_cpu!$target_cpu$ac_delim
39944 target_vendor!$target_vendor$ac_delim
39945 target_os!$target_os$ac_delim
39946 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39947 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39948 INSTALL_DATA!$INSTALL_DATA$ac_delim
39949 am__isrc!$am__isrc$ac_delim
39950 CYGPATH_W!$CYGPATH_W$ac_delim
39951 PACKAGE!$PACKAGE$ac_delim
39952 VERSION!$VERSION$ac_delim
39953 ACLOCAL!$ACLOCAL$ac_delim
39954 AUTOCONF!$AUTOCONF$ac_delim
39955 AUTOMAKE!$AUTOMAKE$ac_delim
39956 AUTOHEADER!$AUTOHEADER$ac_delim
39957 MAKEINFO!$MAKEINFO$ac_delim
39958 install_sh!$install_sh$ac_delim
39959 STRIP!$STRIP$ac_delim
39960 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39961 mkdir_p!$mkdir_p$ac_delim
39963 SET_MAKE!$SET_MAKE$ac_delim
39964 am__leading_dot!$am__leading_dot$ac_delim
39965 AMTAR!$AMTAR$ac_delim
39966 am__tar!$am__tar$ac_delim
39967 am__untar!$am__untar$ac_delim
39968 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39969 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39970 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39971 top_builddir!$top_builddir$ac_delim
39972 ldap_subdir!$ldap_subdir$ac_delim
39975 CFLAGS!$CFLAGS$ac_delim
39976 LDFLAGS!$LDFLAGS$ac_delim
39977 CPPFLAGS!$CPPFLAGS$ac_delim
39978 ac_ct_CC!$ac_ct_CC$ac_delim
39979 EXEEXT!$EXEEXT$ac_delim
39980 OBJEXT!$OBJEXT$ac_delim
39981 DEPDIR!$DEPDIR$ac_delim
39982 am__include!$am__include$ac_delim
39983 am__quote!$am__quote$ac_delim
39984 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39985 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39986 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39987 CCDEPMODE!$CCDEPMODE$ac_delim
39988 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39989 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39990 GREP!$GREP$ac_delim
39991 EGREP!$EGREP$ac_delim
39992 LN_S!$LN_S$ac_delim
39993 ECHO!$ECHO$ac_delim
39996 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39998 elif $ac_last_try; then
39999 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40000 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40001 { (exit 1); exit 1; }; }
40003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40007 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40008 if test -n "$ac_eof"; then
40009 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40010 ac_eof=`expr $ac_eof + 1`
40013 cat >>$CONFIG_STATUS <<_ACEOF
40014 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40018 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40019 s/^/s,@/; s/!/@,|#_!!_#|/
40022 s/'"$ac_delim"'$/,g/; t
40024 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40025 ' >>$CONFIG_STATUS <conf$$subs.sed
40026 rm -f conf$$subs.sed
40027 cat >>$CONFIG_STATUS <<_ACEOF
40033 for ac_last_try in false false false false false :; do
40034 cat >conf$$subs.sed <<_ACEOF
40035 RANLIB!$RANLIB$ac_delim
40036 DLLTOOL!$DLLTOOL$ac_delim
40038 OBJDUMP!$OBJDUMP$ac_delim
40040 LIBTOOL!$LIBTOOL$ac_delim
40041 PERLBIN!$PERLBIN$ac_delim
40042 OL_MKDEP!$OL_MKDEP$ac_delim
40043 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40044 LTSTATIC!$LTSTATIC$ac_delim
40045 MYSQL!$MYSQL$ac_delim
40046 LIBOBJS!$LIBOBJS$ac_delim
40047 LIBSRCS!$LIBSRCS$ac_delim
40048 PLAT!$PLAT$ac_delim
40049 WITH_SASL!$WITH_SASL$ac_delim
40050 WITH_TLS!$WITH_TLS$ac_delim
40051 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40052 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40053 BUILD_THREAD!$BUILD_THREAD$ac_delim
40054 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40055 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40056 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40057 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40058 BUILD_BDB!$BUILD_BDB$ac_delim
40059 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40060 BUILD_HDB!$BUILD_HDB$ac_delim
40061 BUILD_LDAP!$BUILD_LDAP$ac_delim
40062 BUILD_META!$BUILD_META$ac_delim
40063 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40064 BUILD_NDB!$BUILD_NDB$ac_delim
40065 BUILD_NULL!$BUILD_NULL$ac_delim
40066 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40067 BUILD_RELAY!$BUILD_RELAY$ac_delim
40068 BUILD_PERL!$BUILD_PERL$ac_delim
40069 BUILD_SHELL!$BUILD_SHELL$ac_delim
40070 BUILD_SOCK!$BUILD_SOCK$ac_delim
40071 BUILD_SQL!$BUILD_SQL$ac_delim
40072 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40073 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40074 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40075 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40076 BUILD_DDS!$BUILD_DDS$ac_delim
40077 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40078 BUILD_DEREF!$BUILD_DEREF$ac_delim
40079 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40080 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40081 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40082 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40083 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40084 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40085 BUILD_REFINT!$BUILD_REFINT$ac_delim
40086 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40087 BUILD_RWM!$BUILD_RWM$ac_delim
40088 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40089 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
40090 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40091 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40092 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40093 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40094 LDAP_LIBS!$LDAP_LIBS$ac_delim
40095 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40096 BDB_LIBS!$BDB_LIBS$ac_delim
40097 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40098 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40099 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40100 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40101 WRAP_LIBS!$WRAP_LIBS$ac_delim
40102 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40103 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40104 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40105 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40106 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40107 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40108 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40109 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40110 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40111 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40112 KRB4_LIBS!$KRB4_LIBS$ac_delim
40113 KRB5_LIBS!$KRB5_LIBS$ac_delim
40114 SASL_LIBS!$SASL_LIBS$ac_delim
40115 TLS_LIBS!$TLS_LIBS$ac_delim
40116 MODULES_LIBS!$MODULES_LIBS$ac_delim
40117 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40118 LIBSLAPI!$LIBSLAPI$ac_delim
40119 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
40120 AUTH_LIBS!$AUTH_LIBS$ac_delim
40121 ICU_LIBS!$ICU_LIBS$ac_delim
40122 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40123 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40124 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40125 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40126 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40127 LTLIBOBJS!$LTLIBOBJS$ac_delim
40130 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
40132 elif $ac_last_try; then
40133 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40135 { (exit 1); exit 1; }; }
40137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40142 if test -n "$ac_eof"; then
40143 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40144 ac_eof=`expr $ac_eof + 1`
40147 cat >>$CONFIG_STATUS <<_ACEOF
40148 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40153 s/^/s,@/; s/!/@,|#_!!_#|/
40156 s/'"$ac_delim"'$/,g/; t
40158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40159 ' >>$CONFIG_STATUS <conf$$subs.sed
40160 rm -f conf$$subs.sed
40161 cat >>$CONFIG_STATUS <<_ACEOF
40168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40170 # trailing colons and then remove the whole line if VPATH becomes empty
40171 # (actually we leave an empty line to preserve line numbers).
40172 if test "x$srcdir" = x.; then
40173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40174 s/:*\$(srcdir):*/:/
40175 s/:*\${srcdir}:*/:/
40177 s/^\([^=]*=[ ]*\):*/\1/
40183 cat >>$CONFIG_STATUS <<\_ACEOF
40184 fi # test -n "$CONFIG_FILES"
40187 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
40190 :[FHLC]) ac_mode=$ac_tag; continue;;
40192 case $ac_mode$ac_tag in
40194 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40196 { (exit 1); exit 1; }; };;
40197 :[FH]-) ac_tag=-:-;;
40198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40215 -) ac_f="$tmp/stdin";;
40216 *) # Look for the file first in the build tree, then in the source tree
40217 # (if the path is not absolute). The absolute path cannot be DOS-style,
40218 # because $ac_f cannot contain `:'.
40222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40224 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40226 { (exit 1); exit 1; }; };;
40228 ac_file_inputs="$ac_file_inputs $ac_f"
40231 # Let's still pretend it is `configure' which instantiates (i.e., don't
40232 # use $as_me), people would be surprised to read:
40233 # /* config.h. Generated by config.status. */
40234 configure_input="Generated from "`IFS=:
40235 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40236 if test x"$ac_file" != x-; then
40237 configure_input="$ac_file. $configure_input"
40238 { echo "$as_me:$LINENO: creating $ac_file" >&5
40239 echo "$as_me: creating $ac_file" >&6;}
40243 *:-:* | *:-) cat >"$tmp/stdin";;
40248 ac_dir=`$as_dirname -- "$ac_file" ||
40249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40250 X"$ac_file" : 'X\(//\)[^/]' \| \
40251 X"$ac_file" : 'X\(//\)$' \| \
40252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40258 /^X\(\/\/\)[^/].*/{
40273 -*) as_dir=./$as_dir;;
40275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40280 *) as_qdir=$as_dir;;
40282 as_dirs="'$as_qdir' $as_dirs"
40283 as_dir=`$as_dirname -- "$as_dir" ||
40284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40285 X"$as_dir" : 'X\(//\)[^/]' \| \
40286 X"$as_dir" : 'X\(//\)$' \| \
40287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40293 /^X\(\/\/\)[^/].*/{
40306 test -d "$as_dir" && break
40308 test -z "$as_dirs" || eval "mkdir $as_dirs"
40309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40311 { (exit 1); exit 1; }; }; }
40315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40318 # A ".." for each directory in $ac_dir_suffix.
40319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40320 case $ac_top_builddir_sub in
40321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40325 ac_abs_top_builddir=$ac_pwd
40326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40327 # for backward compatibility:
40328 ac_top_builddir=$ac_top_build_prefix
40331 .) # We are building in place.
40333 ac_top_srcdir=$ac_top_builddir_sub
40334 ac_abs_top_srcdir=$ac_pwd ;;
40335 [\\/]* | ?:[\\/]* ) # Absolute name.
40336 ac_srcdir=$srcdir$ac_dir_suffix;
40337 ac_top_srcdir=$srcdir
40338 ac_abs_top_srcdir=$srcdir ;;
40339 *) # Relative name.
40340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40341 ac_top_srcdir=$ac_top_build_prefix$srcdir
40342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40355 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40357 ac_MKDIR_P=$MKDIR_P
40359 [\\/$]* | ?:[\\/]* ) ;;
40360 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40364 cat >>$CONFIG_STATUS <<\_ACEOF
40365 # If the template does not know about datarootdir, expand it.
40366 # FIXME: This hack should be removed a few years after 2.60.
40367 ac_datarootdir_hack=; ac_datarootdir_seen=
40369 case `sed -n '/datarootdir/ {
40378 ' $ac_file_inputs` in
40379 *datarootdir*) ac_datarootdir_seen=yes;;
40380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40381 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40384 cat >>$CONFIG_STATUS <<_ACEOF
40385 ac_datarootdir_hack='
40386 s&@datadir@&$datadir&g
40387 s&@docdir@&$docdir&g
40388 s&@infodir@&$infodir&g
40389 s&@localedir@&$localedir&g
40390 s&@mandir@&$mandir&g
40391 s&\\\${datarootdir}&$datarootdir&g' ;;
40395 # Neutralize VPATH when `$srcdir' = `.'.
40396 # Shell code in configure.ac might set extrasub.
40397 # FIXME: do we really want to maintain this feature?
40398 cat >>$CONFIG_STATUS <<_ACEOF
40402 cat >>$CONFIG_STATUS <<\_ACEOF
40404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40405 s&@configure_input@&$configure_input&;t t
40406 s&@top_builddir@&$ac_top_builddir_sub&;t t
40407 s&@srcdir@&$ac_srcdir&;t t
40408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40409 s&@top_srcdir@&$ac_top_srcdir&;t t
40410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40411 s&@builddir@&$ac_builddir&;t t
40412 s&@abs_builddir@&$ac_abs_builddir&;t t
40413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40414 s&@INSTALL@&$ac_INSTALL&;t t
40415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40416 $ac_datarootdir_hack
40417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40422 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40423 which seems to be undefined. Please make sure it is defined." >&5
40424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40425 which seems to be undefined. Please make sure it is defined." >&2;}
40429 -) cat "$tmp/out"; rm -f "$tmp/out";;
40430 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40439 # Transform confdefs.h into a sed script `conftest.defines', that
40440 # substitutes the proper values into config.h.in to produce config.h.
40441 rm -f conftest.defines conftest.tail
40442 # First, append a space to every undef/define line, to ease matching.
40443 echo 's/$/ /' >conftest.defines
40444 # Then, protect against being on the right side of a sed subst, or in
40445 # an unquoted here document, in config.status. If some macros were
40446 # called several times there might be several #defines for the same
40447 # symbol, which is useless. But do not sort them, since the last
40448 # AC_DEFINE must be honored.
40449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40452 # PARAMS is the parameter list in the macro definition--in most cases, it's
40453 # just an empty string.
40454 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40455 ac_dB='\\)[ (].*,\\1define\\2'
40463 s/^[ ]*#[ ]*define[ ][ ]*//
40468 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40469 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40470 ' >>conftest.defines
40472 # Remove the space that was appended to ease matching.
40473 # Then replace #undef with comments. This is necessary, for
40474 # example, in the case of _POSIX_SOURCE, which is predefined and required
40475 # on some systems where configure will not decide to define it.
40476 # (The regexp can be short, since the line contains either #define or #undef.)
40478 s,^[ #]*u.*,/* & */,' >>conftest.defines
40480 # Break up conftest.defines:
40481 ac_max_sed_lines=50
40483 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40484 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40485 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40487 ac_in='$ac_file_inputs'
40488 ac_out='"$tmp/out1"'
40489 ac_nxt='"$tmp/out2"'
40493 # Write a here document:
40494 cat >>$CONFIG_STATUS <<_ACEOF
40495 # First, check the format of the line:
40496 cat >"\$tmp/defines.sed" <<\\CEOF
40497 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40498 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40502 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40504 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40505 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40506 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40507 grep . conftest.tail >/dev/null || break
40508 rm -f conftest.defines
40509 mv conftest.tail conftest.defines
40511 rm -f conftest.defines conftest.tail
40513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40514 cat >>$CONFIG_STATUS <<\_ACEOF
40515 if test x"$ac_file" != x-; then
40516 echo "/* $configure_input */" >"$tmp/config.h"
40517 cat "$ac_result" >>"$tmp/config.h"
40518 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40520 echo "$as_me: $ac_file is unchanged" >&6;}
40523 mv "$tmp/config.h" $ac_file
40526 echo "/* $configure_input */"
40530 # Compute $ac_file's index in $config_headers.
40532 for _am_header in $config_headers :; do
40533 case $_am_header in
40534 $ac_file | $ac_file:* )
40537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40540 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40541 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40542 X$ac_file : 'X\(//\)[^/]' \| \
40543 X$ac_file : 'X\(//\)$' \| \
40544 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40550 /^X\(\/\/\)[^/].*/{
40562 s/.*/./; q'`/stamp-h$_am_stamp_count
40565 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40566 echo "$as_me: executing $ac_file commands" >&6;}
40571 case $ac_file$ac_mode in
40572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40573 # Strip MF so we end up with the name of the file.
40574 mf=`echo "$mf" | sed -e 's/:.*$//'`
40575 # Check whether this is an Automake generated Makefile or not.
40576 # We used to match only the files named `Makefile.in', but
40577 # some people rename them; so instead we look at the file content.
40578 # Grep'ing the first line is not enough: some people post-process
40579 # each Makefile.in and add a new line on top of each file to say so.
40580 # Grep'ing the whole file is not good either: AIX grep has a line
40581 # limit of 2048, but all sed's we know have understand at least 4000.
40582 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
40583 dirpart=`$as_dirname -- "$mf" ||
40584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40585 X"$mf" : 'X\(//\)[^/]' \| \
40586 X"$mf" : 'X\(//\)$' \| \
40587 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40593 /^X\(\/\/\)[^/].*/{
40609 # Extract the definition of DEPDIR, am__include, and am__quote
40610 # from the Makefile without running `make'.
40611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40612 test -z "$DEPDIR" && continue
40613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40614 test -z "am__include" && continue
40615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40616 # When using ansi2knr, U may be empty or an underscore; expand it
40617 U=`sed -n 's/^U = //p' < "$mf"`
40618 # Find all dependency output files, they are included files with
40619 # $(DEPDIR) in their names. We invoke sed twice because it is the
40620 # simplest approach to changing $(DEPDIR) to its actual value in the
40622 for file in `sed -n "
40623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40625 # Make sure the directory exists.
40626 test -f "$dirpart/$file" && continue
40627 fdir=`$as_dirname -- "$file" ||
40628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40629 X"$file" : 'X\(//\)[^/]' \| \
40630 X"$file" : 'X\(//\)$' \| \
40631 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40637 /^X\(\/\/\)[^/].*/{
40650 { as_dir=$dirpart/$fdir
40652 -*) as_dir=./$as_dir;;
40654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40658 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40659 *) as_qdir=$as_dir;;
40661 as_dirs="'$as_qdir' $as_dirs"
40662 as_dir=`$as_dirname -- "$as_dir" ||
40663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40664 X"$as_dir" : 'X\(//\)[^/]' \| \
40665 X"$as_dir" : 'X\(//\)$' \| \
40666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40672 /^X\(\/\/\)[^/].*/{
40685 test -d "$as_dir" && break
40687 test -z "$as_dirs" || eval "mkdir $as_dirs"
40688 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40690 { (exit 1); exit 1; }; }; }
40691 # echo "creating $dirpart/$file"
40692 echo '# dummy' > "$dirpart/$file"
40699 BACKENDSC="servers/slapd/backends.c"
40700 echo "Making $BACKENDSC"
40702 cat > $BACKENDSC << ENDX
40703 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40705 * Copyright 1998-2011 The OpenLDAP Foundation.
40706 * All rights reserved.
40708 * Redistribution and use in source and binary forms, with or without
40709 * modification, are permitted only as authorized by the OpenLDAP
40712 * A copy of this license is available in the file LICENSE in the
40713 * top-level directory of the distribution or, alternatively, at
40714 * <http://www.OpenLDAP.org/license.html>.
40716 /* This file is automatically generated by configure; please do not edit. */
40718 #include "portable.h"
40722 if test "${STATIC_BACKENDS}"; then
40723 for b in config ${STATIC_BACKENDS}; do
40724 bb=`echo "${b}" | sed -e 's/back-//'`
40725 cat >> $BACKENDSC << ENDX
40726 extern BI_init ${bb}_back_initialize;
40730 cat >> $BACKENDSC << ENDX
40732 BackendInfo slap_binfo[] = {
40735 for b in config ${STATIC_BACKENDS}; do
40736 bb=`echo "${b}" | sed -e 's/back-//'`
40737 echo " Add ${bb} ..."
40738 cat >> $BACKENDSC << ENDX
40739 { "${bb}", ${bb}_back_initialize },
40743 cat >> $BACKENDSC << ENDX
40747 /* end of generated file */
40750 OVERLAYSC="servers/slapd/overlays/statover.c"
40751 echo "Making $OVERLAYSC"
40753 cat > $OVERLAYSC << ENDX
40754 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40756 * Copyright 1998-2011 The OpenLDAP Foundation.
40757 * All rights reserved.
40759 * Redistribution and use in source and binary forms, with or without
40760 * modification, are permitted only as authorized by the OpenLDAP
40763 * A copy of this license is available in the file LICENSE in the
40764 * top-level directory of the distribution or, alternatively, at
40765 * <http://www.OpenLDAP.org/license.html>.
40767 /* This file is automatically generated by configure; please do not edit. */
40769 #include "portable.h"
40773 if test "${STATIC_OVERLAYS}"; then
40774 for o in ${STATIC_OVERLAYS}; do
40775 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40776 cat >> $OVERLAYSC << ENDX
40777 extern OV_init ${oo}_initialize;
40782 cat >> $OVERLAYSC << ENDX
40784 OverlayInit slap_oinfo[] = {
40787 if test "${STATIC_OVERLAYS}"; then
40788 for o in ${STATIC_OVERLAYS}; do
40789 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40790 echo " Add ${oo} ..."
40791 cat >> $OVERLAYSC << ENDX
40792 { "${oo}", ${oo}_initialize },
40797 cat >> $OVERLAYSC << ENDX
40801 /* end of generated file */
40804 if test "${ol_cv_mkdep}" = no; then
40805 echo '(Do not "make depend"; we do not know how to build dependencies)'
40807 echo 'Please run "make depend" to build dependencies'
40815 { (exit 0); exit 0; }
40817 chmod +x $CONFIG_STATUS
40818 ac_clean_files=$ac_clean_files_save
40821 # configure is writing to config.log, and then calls config.status.
40822 # config.status does its own redirection, appending to config.log.
40823 # Unfortunately, on DOS this fails, as config.log is still kept open
40824 # by configure, so config.status won't be able to write to it; its
40825 # output is simply discarded. So we exec the FD to /dev/null,
40826 # effectively closing config.log, so it can be properly (re)opened and
40827 # appended to by config.status. When coming back to configure, we
40828 # need to make the FD available again.
40829 if test "$no_create" != yes; then
40831 ac_config_status_args=
40832 test "$silent" = yes &&
40833 ac_config_status_args="$ac_config_status_args --quiet"
40835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40838 # would make configure fail if this is the last instruction.
40839 $ac_cs_success || { (exit 1); exit 1; }