2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
962 TRAY_MONITOR_CPPFLAGS
1049 ac_subst_files='MCOMMON'
1050 ac_precious_vars='build_alias
1068 # Initialize some variables set by options.
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1080 program_transform_name=s,x,x,
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1126 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130 # Accept the important Cygnus configure options, so we can diagnose typos.
1132 case $ac_dashdash$ac_option in
1136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139 bindir=$ac_optarg ;;
1141 -build | --build | --buil | --bui | --bu)
1142 ac_prev=build_alias ;;
1143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144 build_alias=$ac_optarg ;;
1146 -cache-file | --cache-file | --cache-fil | --cache-fi \
1147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148 ac_prev=cache_file ;;
1149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151 cache_file=$ac_optarg ;;
1153 --config-cache | -C)
1154 cache_file=config.cache ;;
1156 -datadir | --datadir | --datadi | --datad)
1158 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159 datadir=$ac_optarg ;;
1161 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162 | --dataroo | --dataro | --datar)
1163 ac_prev=datarootdir ;;
1164 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166 datarootdir=$ac_optarg ;;
1168 -disable-* | --disable-*)
1169 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173 { (exit 1); exit 1; }; }
1174 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175 eval enable_$ac_feature=no ;;
1177 -docdir | --docdir | --docdi | --doc | --do)
1179 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180 docdir=$ac_optarg ;;
1182 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1184 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185 dvidir=$ac_optarg ;;
1187 -enable-* | --enable-*)
1188 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194 eval enable_$ac_feature=\$ac_optarg ;;
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 htmldir=$ac_optarg ;;
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1239 -libdir | --libdir | --libdi | --libd)
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1330 -psdir | --psdir | --psdi | --psd | --ps)
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 sbindir=$ac_optarg ;;
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 sharedstatedir=$ac_optarg ;;
1356 -site | --site | --sit)
1358 -site=* | --site=* | --sit=*)
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1385 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 { echo "$as_me: error: invalid package name: $ac_package" >&2
1389 { (exit 1); exit 1; }; }
1390 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391 eval with_$ac_package=\$ac_optarg ;;
1393 -without-* | --without-*)
1394 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 { echo "$as_me: error: invalid package name: $ac_package" >&2
1398 { (exit 1); exit 1; }; }
1399 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400 eval with_$ac_package=no ;;
1403 # Obsolete; use --with-x.
1406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407 | --x-incl | --x-inc | --x-in | --x-i)
1408 ac_prev=x_includes ;;
1409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411 x_includes=$ac_optarg ;;
1413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415 ac_prev=x_libraries ;;
1416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418 x_libraries=$ac_optarg ;;
1420 -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422 { (exit 1); exit 1; }; }
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430 { (exit 1); exit 1; }; }
1431 eval $ac_envvar=\$ac_optarg
1432 export $ac_envvar ;;
1435 # FIXME: should be removed in autoconf 3.0.
1436 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1445 if test -n "$ac_prev"; then
1446 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447 { echo "$as_me: error: missing argument to $ac_option" >&2
1448 { (exit 1); exit 1; }; }
1451 # Be sure to have absolute directory names.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463 { (exit 1); exit 1; }; }
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478 If a cross compiler is detected then cross compile mode will be used." >&2
1479 elif test "x$build_alias" != "x$host_alias"; then
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 test "$silent" = yes && exec 6>/dev/null
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493 { echo "$as_me: error: Working directory cannot be determined" >&2
1494 { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 { echo "$as_me: error: pwd does not report name of working directory" >&2
1497 { (exit 1); exit 1; }; }
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502 ac_srcdir_defaulted=yes
1503 # Try the directory containing this script, then the parent directory.
1504 ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506 X"$0" : 'X\(//\)[^/]' \| \
1507 X"$0" : 'X\(//\)$' \| \
1508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1532 ac_srcdir_defaulted=no
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537 { (exit 1); exit 1; }; }
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542 { (exit 1); exit 1; }; }
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 for ac_var in $ac_precious_vars; do
1555 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_env_${ac_var}_value=\$${ac_var}
1557 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 # Report the --help message.
1564 if test "$ac_init_help" = "long"; then
1565 # Omit some internal or obsolete options to make the list less imposing.
1566 # This message is too long to be a string in the A/UX 3.1 sh.
1568 \`configure' configures this package to adapt to many kinds of systems.
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE. See below for descriptions of some of the useful variables.
1575 Defaults for the options are specified in brackets.
1578 -h, --help display this help and exit
1579 --help=short display options specific to this package
1580 --help=recursive display the short help of all the included packages
1581 -V, --version display version information and exit
1582 -q, --quiet, --silent do not print \`checking...' messages
1583 --cache-file=FILE cache test results in FILE [disabled]
1584 -C, --config-cache alias for \`--cache-file=config.cache'
1585 -n, --no-create do not create output files
1586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1588 Installation directories:
1589 --prefix=PREFIX install architecture-independent files in PREFIX
1590 [$ac_default_prefix]
1591 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1599 For better control, use the options below.
1601 Fine tuning of the installation directories:
1602 --bindir=DIR user executables [EPREFIX/bin]
1603 --sbindir=DIR system admin executables [EPREFIX/sbin]
1604 --libexecdir=DIR program executables [EPREFIX/libexec]
1605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1626 --x-includes=DIR X include files are in DIR
1627 --x-libraries=DIR X library files are in DIR
1630 --build=BUILD configure for building on BUILD [guessed]
1631 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1635 if test -n "$ac_init_help"; then
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-libtool enable building using GNU libtool [default=yes]
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=no]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-includes enable installing of include files [default=no]
1649 --disable-nls do not use Native Language Support
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-gnome enable build of bgnome-console GUI [default=no]
1652 --enable-bat enable build of bat Qt4 GUI [default=no]
1653 --enable-bwx-console enable build of wxWidgets console [default=no]
1654 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1656 --enable-smartalloc enable smartalloc debugging support [default=no]
1657 --enable-lockmgr enable lock manager support [default=no]
1658 --enable-static-tools enable static tape tools [default=no]
1659 --enable-static-fd enable static File daemon [default=no]
1660 --enable-static-sd enable static Storage daemon [default=no]
1661 --enable-static-dir enable static Director [default=no]
1662 --enable-static-cons enable static Console [default=no]
1663 --enable-client-only build client (File daemon) only [default=no]
1664 --enable-build-dird enable building of dird (Director) [default=yes]
1665 --enable-build-stored enable building of stored (Storage daemon)
1667 --disable-conio disable conio support [default=no]
1668 --enable-ipv6 enable ipv6 support [default=yes]
1669 --disable-readline disable readline support [default=yes]
1670 --enable-batch-insert enable the DB batch insert code [default=no]
1671 --disable-largefile omit support for large files
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-qwt[=DIR] specify qwt library directory
1688 --with-readline[=DIR] specify readline library directory
1689 --with-python[=DIR] Include Python support. DIR is the Python base
1690 install directory, default is to search through a
1691 number of common places for the Python files.
1692 --with-tcp-wrappers[=DIR]
1693 enable tcpwrappers support
1694 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1695 --with-working-dir=PATH specify path of Bacula working directory
1696 --with-archivedir=PATH specify path of SD archive directory
1697 --with-scriptdir=PATH specify path of Bacula scripts directory
1698 --with-plugindir=PATH specify path of Bacula plugins directory
1699 --with-dump-email=EMAIL dump email address
1700 --with-job-email=EMAIL job output email address
1701 --with-smtp-host=HOST SMTP mail host address
1702 --with-pid-dir=PATH specify location of Bacula pid files
1703 --with-subsys-dir=PATH specify location of Bacula subsys file
1704 --with-baseport=PORT specify base port address for daemons
1705 --with-dir-password=PASSWORD
1706 specify Director's password
1707 --with-fd-password=PASSWORD
1708 specify Client's password
1709 --with-sd-password=PASSWORD
1710 specify Storage daemon's password
1711 --with-mon-dir-password=PASSWORD
1712 specify Director's password used by the monitor
1713 --with-mon-fd-password=PASSWORD
1714 specify Client's password used by the monitor
1715 --with-mon-sd-password=PASSWORD
1716 specify Storage daemon's password used by the
1718 --with-db-name=DBNAME specify database name [default=bacula]
1719 --with-db-user=UNAME specify database user [default=bacula]
1720 --with-db-password=PWD specify database password [default=*none*]
1721 --with-db-port=DBPORT specify a database port [default=null]
1722 --with-dir-user=USER specify user for Director daemon
1723 --with-dir-group=GROUP specify group for Director daemon
1724 --with-sd-user=USER specify user for Storage daemon
1725 --with-sd-group=GROUP specify group for Storage daemon
1726 --with-fd-user=USER specify user for File daemon
1727 --with-fd-group=GROUP specify group for File daemon
1728 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1729 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730 base install directory, [default=/usr/local/pgsql]
1731 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1732 directory, default is to search through a number of
1733 common places for the MySQL files.
1734 --with-embedded-mysql[=DIR]
1735 Include MySQL support. DIR is the MySQL base install
1736 directory, default is to search through a number of
1737 common places for the MySQL files.
1738 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1739 install directory, default is to search through a
1740 number of common places for the SQLite3 files.
1741 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1742 install directory, default is to search through a
1743 number of common places for the SQLite files.
1744 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1745 directory, default is to search through a number of
1746 common places for the DBI files.
1747 --with-dbi-driver[=DRIVER]
1748 Suport for DBI driver. DRIVER is the one DBI driver
1749 like Mysql, Postgresql, others. Default is to not
1750 configure any driver.
1751 --with-x use the X Window System
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CXX C++ compiler command
1762 CXXFLAGS C++ compiler flags
1764 WXCONFIG wx-config command. On some systems, you must set it to
1765 wx-config-2.6 to use wxWidgets 2.6.
1766 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1767 CXXCPP C++ preprocessor
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1777 if test "$ac_init_help" = "recursive"; then
1778 # If there are subdirs, report their specific --help.
1779 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1780 test -d "$ac_dir" || continue
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1787 # A ".." for each directory in $ac_dir_suffix.
1788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1789 case $ac_top_builddir_sub in
1790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1800 .) # We are building in place.
1802 ac_top_srcdir=$ac_top_builddir_sub
1803 ac_abs_top_srcdir=$ac_pwd ;;
1804 [\\/]* | ?:[\\/]* ) # Absolute name.
1805 ac_srcdir=$srcdir$ac_dir_suffix;
1806 ac_top_srcdir=$srcdir
1807 ac_abs_top_srcdir=$srcdir ;;
1809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810 ac_top_srcdir=$ac_top_build_prefix$srcdir
1811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815 cd "$ac_dir" || { ac_status=$?; continue; }
1816 # Check for guested configure.
1817 if test -f "$ac_srcdir/configure.gnu"; then
1819 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820 elif test -f "$ac_srcdir/configure"; then
1822 $SHELL "$ac_srcdir/configure" --help=recursive
1824 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 cd "$ac_pwd" || { ac_status=$?; break; }
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1834 generated by GNU Autoconf 2.61
1836 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1837 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.61. Invocation command line was
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 echo "PATH: $as_dir"
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_must_keep_next=false
1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916 | -silent | --silent | --silen | --sile | --sil)
1919 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1924 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1925 if test $ac_must_keep_next = true; then
1926 ac_must_keep_next=false # Got value, back to normal.
1929 *=* | --config-cache | -C | -disable-* | --disable-* \
1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932 | -with-* | --with-* | -without-* | --without-* | --x)
1933 case "$ac_configure_args0 " in
1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 -* ) ac_must_keep_next=true ;;
1940 ac_configure_args="$ac_configure_args '$ac_arg'"
1945 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1946 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log. We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954 # Save into config.log some information that might help in debugging.
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1964 # The following way of writing the cache mishandles newlines in values,
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1971 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1975 _ | IFS | as_nl) ;; #(
1976 *) $as_unset $ac_var ;;
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space=\ *)
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##
2001 for ac_var in $ac_subst_vars
2003 eval ac_val=\$$ac_var
2005 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 echo "$ac_var='\''$ac_val'\''"
2011 if test -n "$ac_subst_files"; then
2013 ## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##
2018 for ac_var in $ac_subst_files
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 echo "$ac_var='\''$ac_val'\''"
2029 if test -s confdefs.h; then
2039 test "$ac_signal" != 0 &&
2040 echo "$as_me: caught signal $ac_signal"
2041 echo "$as_me: exit $exit_status"
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2055 # Predefined preprocessor variables.
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085 set x "$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2089 set x "$ac_default_prefix/share/config.site" \
2090 "$ac_default_prefix/etc/config.site"
2095 if test -r "$ac_site_file"; then
2096 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 echo "$as_me: loading cache $cache_file" >&6;}
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2115 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 echo "$as_me: creating cache $cache_file" >&6;}
2120 # Check that the precious variables saved in the cache have kept the same
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2130 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2134 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2141 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2143 echo "$as_me: former value: $ac_old_val" >&2;}
2144 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2145 echo "$as_me: current value: $ac_new_val" >&2;}
2146 ac_cache_corrupted=:
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2152 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161 if $ac_cache_corrupted; then
2162 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166 { (exit 1); exit 1; }; }
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2200 if test -f "$ac_dir/install-sh"; then
2202 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 elif test -f "$ac_dir/install.sh"; then
2206 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 elif test -f "$ac_dir/shtool"; then
2210 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 if test -z "$ac_aux_dir"; then
2215 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2216 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2217 { (exit 1); exit 1; }; }
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2229 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2232 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2233 WIN32MAINDIR=${BUILD_DIR}
2234 WIN32TOPDIR=${TOP_DIR}
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 TRUEPRG=$ac_cv_path_TRUEPRG
2275 if test -n "$TRUEPRG"; then
2276 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2277 echo "${ECHO_T}$TRUEPRG" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2284 test -n "$TRUEPRG" && break
2286 test -n "$TRUEPRG" || TRUEPRG=":"
2288 for ac_prog in false
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 FALSEPRG=$ac_cv_path_FALSEPRG
2321 if test -n "$FALSEPRG"; then
2322 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2323 echo "${ECHO_T}$FALSEPRG" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 test -n "$FALSEPRG" && break
2332 test -n "$FALSEPRG" || FALSEPRG=":"
2337 if test "x$BACULA" != x; then
2338 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2340 BACULA=${BACULA:-Bacula}
2341 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$CC"; then
2382 { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2391 if test -z "$ac_cv_prog_CC"; then
2393 # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_CC="gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2429 if test "x$ac_ct_CC" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_CC="${ac_tool_prefix}cc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test -n "$CC"; then
2479 { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2489 if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2524 if test $# != 0; then
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
2547 for ac_prog in cl.exe
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$CC" && break
2589 if test -z "$CC"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$ac_ct_CC" && break
2633 if test "x$ac_ct_CC" = x; then
2636 case $cross_compiling:$ac_tool_warned in
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet. If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler --version >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler -v >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -V >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort. b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions. Remove them first so a
2724 # subsequent execution test works.
2726 for ac_file in $ac_files
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 if { (ac_try="$ac_link_default"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_link_default") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2750 for ac_file in $ac_files ''
2752 test -f "$ac_file" || continue
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2757 # We found the default executable, but exeext='' is most
2761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791 { (exit 77); exit 77; }; }
2794 ac_exeext=$ac_cv_exeext
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2815 if test "$cross_compiling" = maybe; then
2818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link") 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 for ac_file in conftest.exe conftest conftest.*; do
2857 test -f "$ac_file" || continue
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 for ac_file in conftest.o conftest.obj conftest.*; do
2912 test -f "$ac_file" || continue;
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2988 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2990 GCC=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CFLAGS=${CFLAGS+set}
2992 ac_save_CFLAGS=$CFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_save_c_werror_flag=$ac_c_werror_flag
2999 ac_c_werror_flag=yes
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_c_werror_flag=$ac_save_c_werror_flag
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131 CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133 if test "$GCC" = yes; then
3139 if test "$GCC" = yes; then
3145 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3146 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_cc_c89+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_prog_cc_c89=no
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3160 #include <sys/types.h>
3161 #include <sys/stat.h>
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3176 s = g (p, va_arg (v,int));
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3182 function prototypes and stuff, but not '\xHH' hex character constants.
3183 These don't provoke an error unfortunately, instead are silently treated
3184 as 'x'. The following induces an error, until -std is added to get
3185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3186 array size at least. It's necessary to write '\x00'==0 to get something
3187 that's true only with -std. */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191 inside strings and character constants. */
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 CC="$ac_save_CC $ac_arg"
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
3230 ac_cv_prog_cc_c89=$ac_arg
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f core conftest.err conftest.$ac_objext
3239 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 rm -f conftest.$ac_ext
3246 case "x$ac_cv_prog_cc_c89" in
3248 { echo "$as_me:$LINENO: result: none needed" >&5
3249 echo "${ECHO_T}none needed" >&6; } ;;
3251 { echo "$as_me:$LINENO: result: unsupported" >&5
3252 echo "${ECHO_T}unsupported" >&6; } ;;
3254 CC="$CC $ac_cv_prog_cc_c89"
3255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 ac_cpp='$CXXCPP $CPPFLAGS'
3268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3271 if test -z "$CXX"; then
3272 if test -n "$CCC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_CXX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if test -n "$CXX"; then
3286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CXX"; then
3307 { echo "$as_me:$LINENO: result: $CXX" >&5
3308 echo "${ECHO_T}$CXX" >&6; }
3310 { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3315 test -n "$CXX" && break
3318 if test -z "$CXX"; then
3320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$ac_ct_CXX"; then
3330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339 ac_cv_prog_ac_ct_CXX="$ac_prog"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3350 if test -n "$ac_ct_CXX"; then
3351 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3354 { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3359 test -n "$ac_ct_CXX" && break
3362 if test "x$ac_ct_CXX" = x; then
3365 case $cross_compiling:$ac_tool_warned in
3367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet. If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&5
3370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373 ac_tool_warned=yes ;;
3381 # Provide some information about the compiler.
3382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3383 ac_compiler=`set X $ac_compile; echo $2`
3384 { (ac_try="$ac_compiler --version >&5"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compiler --version >&5") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394 { (ac_try="$ac_compiler -v >&5"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compiler -v >&5") 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404 { (ac_try="$ac_compiler -V >&5"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compiler -V >&5") 2>&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_cxx_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3469 GXX=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cxx_g+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478 ac_cxx_werror_flag=yes
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_cxx_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3513 ac_cv_prog_cxx_g=yes
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_cxx_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_cxx_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3590 ac_cv_prog_cxx_g=yes
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3609 if test "$ac_test_CXXFLAGS" = set; then
3610 CXXFLAGS=$ac_save_CXXFLAGS
3611 elif test $ac_cv_prog_cxx_g = yes; then
3612 if test "$GXX" = yes; then
3618 if test "$GXX" = yes; then
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 if test "x$CC" != xcc; then
3631 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3632 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3634 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3635 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3637 set dummy $CC; ac_cc=`echo $2 |
3638 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3657 # Make sure it works both with $CC and with simple cc.
3658 # We do the test twice because some compilers refuse to overwrite an
3659 # existing .o file with -o, though they will create one.
3660 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3662 if { (case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); };
3681 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3682 if test "x$CC" != xcc; then
3683 # Test first that cc exists at all.
3684 if { ac_try='cc -c conftest.$ac_ext >&5'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696 if { (case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_try") 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); };
3718 # cc exists but doesn't like -o.
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726 rm -f core conftest*
3729 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3730 { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3733 { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_MINUS_C_MINUS_O 1
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3753 if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 for ac_c_preproc_warn_flag in '' yes
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3776 # include <limits.h>
3778 # include <assert.h>
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 # Broken: fails on valid input.
3807 rm -f conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null && {
3832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3835 # Broken: success on invalid input.
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 # Passes both tests.
3846 rm -f conftest.err conftest.$ac_ext
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3866 for ac_c_preproc_warn_flag in '' yes
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3881 # include <limits.h>
3883 # include <assert.h>
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Broken: fails on valid input.
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3940 # Broken: success on invalid input.
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 # Passes both tests.
3951 rm -f conftest.err conftest.$ac_ext
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3959 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963 { (exit 1); exit 1; }; }
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in grep ggrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995 # Check for GNU ac_path_GREP and select it if it is found.
3996 # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4002 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 echo 'GREP' >> "conftest.nl"
4009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 ac_count=`expr $ac_count + 1`
4012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_GREP="$ac_path_GREP"
4015 ac_path_GREP_max=$ac_count
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 $ac_path_GREP_found && break 3
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038 { (exit 1); exit 1; }; }
4042 ac_cv_path_GREP=$GREP
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4060 # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in egrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4084 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 ac_count=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP="$ac_path_EGREP"
4097 ac_path_EGREP_max=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 $ac_path_EGREP_found && break 3
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120 { (exit 1); exit 1; }; }
4124 ac_cv_path_EGREP=$EGREP
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132 EGREP="$ac_cv_path_EGREP"
4135 if test $ac_cv_c_compiler_gnu = yes; then
4136 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 ac_pattern="Autoconf.*'x'"
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4153 ac_cv_prog_gcc_traditional=yes
4155 ac_cv_prog_gcc_traditional=no
4160 if test $ac_cv_prog_gcc_traditional = no; then
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4172 ac_cv_prog_gcc_traditional=yes
4178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4180 if test $ac_cv_prog_gcc_traditional = yes; then
4181 CC="$CC -traditional"
4185 BASECC=`basename $CC`
4187 if test "x$BASECC" = xgcc; then
4188 cat >>confdefs.h <<\_ACEOF
4194 # Extract the first word of "$CXX", so it can be a program name with args.
4195 set dummy $CXX; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_CXX+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4226 if test -n "$CXX"; then
4227 { echo "$as_me:$LINENO: result: $CXX" >&5
4228 echo "${ECHO_T}$CXX" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 if test ! -e $CXX; then
4236 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4237 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4238 { (exit 1); exit 1; }; }
4241 # Find a good install program. We prefer a C program (faster),
4242 # so one script is as good as another. But avoid the broken or
4243 # incompatible versions:
4244 # SysV /etc/install, /usr/sbin/install
4245 # SunOS /usr/etc/install
4246 # IRIX /sbin/install
4248 # AmigaOS /C/install, which installs bootblocks on floppy discs
4249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4252 # OS/2's system install, which has a completely different semantic
4253 # ./install, which can be erroneously created by make from ./install.sh.
4254 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4256 if test -z "$INSTALL"; then
4257 if test "${ac_cv_path_install+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 # Account for people who put trailing slashes in PATH elements.
4267 ./ | .// | /cC/* | \
4268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4272 # OSF1 and SCO ODT 3.0 have their own names for install.
4273 # Don't use installbsd from OSF since it installs stuff as root
4275 for ac_prog in ginstall scoinst install; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4278 if test $ac_prog = install &&
4279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280 # AIX install. It has an incompatible calling convention.
4282 elif test $ac_prog = install &&
4283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284 # program-specific install script used by HP pwplus--don't use.
4287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4300 if test "${ac_cv_path_install+set}" = set; then
4301 INSTALL=$ac_cv_path_install
4303 # As a last resort, use the slow shell script. Don't cache a
4304 # value for INSTALL within a source directory, because that will
4305 # break other packages using the cache if that directory is
4306 # removed, or if the value is a relative name.
4307 INSTALL=$ac_install_sh
4310 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4311 echo "${ECHO_T}$INSTALL" >&6; }
4313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4314 # It thinks the first close brace ends the variable substitution.
4315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4321 # Extract the first word of "mv", so it can be a program name with args.
4322 set dummy mv; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_path_MV+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4353 if test -n "$MV"; then
4354 { echo "$as_me:$LINENO: result: $MV" >&5
4355 echo "${ECHO_T}$MV" >&6; }
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 # Extract the first word of "rm", so it can be a program name with args.
4363 set dummy rm; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_REMOVE+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393 REMOVE=$ac_cv_path_REMOVE
4394 if test -n "$REMOVE"; then
4395 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4396 echo "${ECHO_T}$REMOVE" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4403 # Extract the first word of "cp", so it can be a program name with args.
4404 set dummy cp; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_path_CP+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4435 if test -n "$CP"; then
4436 { echo "$as_me:$LINENO: result: $CP" >&5
4437 echo "${ECHO_T}$CP" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_path_SED+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4476 if test -n "$SED"; then
4477 { echo "$as_me:$LINENO: result: $SED" >&5
4478 echo "${ECHO_T}$SED" >&6; }
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 # Extract the first word of "echo", so it can be a program name with args.
4486 set dummy echo; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_ECHO+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516 ECHO=$ac_cv_path_ECHO
4517 if test -n "$ECHO"; then
4518 { echo "$as_me:$LINENO: result: $ECHO" >&5
4519 echo "${ECHO_T}$ECHO" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # Extract the first word of "cmp", so it can be a program name with args.
4527 set dummy cmp; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_CMP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4558 if test -n "$CMP"; then
4559 { echo "$as_me:$LINENO: result: $CMP" >&5
4560 echo "${ECHO_T}$CMP" >&6; }
4562 { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4567 # Extract the first word of "tbl", so it can be a program name with args.
4568 set dummy tbl; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_TBL+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4599 if test -n "$TBL"; then
4600 { echo "$as_me:$LINENO: result: $TBL" >&5
4601 echo "${ECHO_T}$TBL" >&6; }
4603 { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_AR+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4640 if test -n "$AR"; then
4641 { echo "$as_me:$LINENO: result: $AR" >&5
4642 echo "${ECHO_T}$AR" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 # Extract the first word of "openssl", so it can be a program name with args.
4650 set dummy openssl; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_OPENSSL+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680 OPENSSL=$ac_cv_path_OPENSSL
4681 if test -n "$OPENSSL"; then
4682 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4683 echo "${ECHO_T}$OPENSSL" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 # Extract the first word of "mtx", so it can be a program name with args.
4691 set dummy mtx; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_path_MTX+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4722 if test -n "$MTX"; then
4723 { echo "$as_me:$LINENO: result: $MTX" >&5
4724 echo "${ECHO_T}$MTX" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 # Extract the first word of "dd", so it can be a program name with args.
4732 set dummy dd; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_path_DD+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4763 if test -n "$DD"; then
4764 { echo "$as_me:$LINENO: result: $DD" >&5
4765 echo "${ECHO_T}$DD" >&6; }
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 # Extract the first word of "mkisofs", so it can be a program name with args.
4773 set dummy mkisofs; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_MKISOFS+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803 MKISOFS=$ac_cv_path_MKISOFS
4804 if test -n "$MKISOFS"; then
4805 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4806 echo "${ECHO_T}$MKISOFS" >&6; }
4808 { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4813 # Extract the first word of "python", so it can be a program name with args.
4814 set dummy python; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_path_PYTHON+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844 PYTHON=$ac_cv_path_PYTHON
4845 if test -n "$PYTHON"; then
4846 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4847 echo "${ECHO_T}$PYTHON" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 # Extract the first word of "growisofs", so it can be a program name with args.
4855 set dummy growisofs; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885 GROWISOFS=$ac_cv_path_GROWISOFS
4886 if test -n "$GROWISOFS"; then
4887 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4888 echo "${ECHO_T}$GROWISOFS" >&6; }
4890 { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4895 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4896 set dummy dvd+rw-mediainfo; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 case $DVDRWMEDIAINFO in
4904 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4927 if test -n "$DVDRWMEDIAINFO"; then
4928 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4929 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4937 set dummy dvd+rw-format; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 case $DVDRWFORMAT in
4945 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4968 if test -n "$DVDRWFORMAT"; then
4969 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4970 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4972 { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4977 # Extract the first word of "pkg-config", so it can be a program name with args.
4978 set dummy pkg-config; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008 PKGCONFIG=$ac_cv_path_PKGCONFIG
5009 if test -n "$PKGCONFIG"; then
5010 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5011 echo "${ECHO_T}$PKGCONFIG" >&6; }
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5018 # Extract the first word of "qmake", so it can be a program name with args.
5019 set dummy qmake; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_QMAKE+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049 QMAKE=$ac_cv_path_QMAKE
5050 if test -n "$QMAKE"; then
5051 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5052 echo "${ECHO_T}$QMAKE" >&6; }
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5059 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5060 set dummy qmake-qt4; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090 QMAKEQT4=$ac_cv_path_QMAKEQT4
5091 if test -n "$QMAKEQT4"; then
5092 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5093 echo "${ECHO_T}$QMAKEQT4" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 # Extract the first word of "gmake", so it can be a program name with args.
5101 set dummy gmake; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_GMAKE+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131 GMAKE=$ac_cv_path_GMAKE
5132 if test -n "$GMAKE"; then
5133 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5134 echo "${ECHO_T}$GMAKE" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5142 if test "x$WXCONFIG" = x; then
5145 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5146 set dummy ${WXCONFIG}; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176 WXCONFIG=$ac_cv_path_WXCONFIG
5177 if test -n "$WXCONFIG"; then
5178 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5179 echo "${ECHO_T}$WXCONFIG" >&6; }
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "cdrecord", so it can be a program name with args.
5188 set dummy cdrecord; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_CDRECORD+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218 CDRECORD=$ac_cv_path_CDRECORD
5219 if test -n "$CDRECORD"; then
5220 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5221 echo "${ECHO_T}$CDRECORD" >&6; }
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "pidof", so it can be a program name with args.
5229 set dummy pidof; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PIDOF+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259 PIDOF=$ac_cv_path_PIDOF
5260 if test -n "$PIDOF"; then
5261 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5262 echo "${ECHO_T}$PIDOF" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5269 for ac_prog in gawk mawk nawk awk
5271 # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_AWK+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 if test -n "$AWK"; then
5279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_AWK="$ac_prog"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 if test -n "$AWK"; then
5300 { echo "$as_me:$LINENO: result: $AWK" >&5
5301 echo "${ECHO_T}$AWK" >&6; }
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 test -n "$AWK" && break
5311 # Some AWK programs fail, so test it and warn the user
5312 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5313 { if ((prog == $2) || (("(" prog ")") == $2) ||
5314 (("" prog "") == $2) ||
5315 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5317 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5318 The regex engine of $AWK is too broken to be used you
5319 might want to install GNU AWK.
5320 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5321 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322 The regex engine of $AWK is too broken to be used you
5323 might want to install GNU AWK.
5324 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5325 { (exit 1); exit 1; }; }
5328 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5329 set dummy $THE_AWK; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_AWK+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5360 if test -n "$AWK"; then
5361 { echo "$as_me:$LINENO: result: $AWK" >&5
5362 echo "${ECHO_T}$AWK" >&6; }
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5371 test -n "$ARFLAG" || ARFLAGS="cr"
5382 # Check whether --enable-libtool was given.
5383 if test "${enable_libtool+set}" = set; then
5384 enableval=$enable_libtool;
5385 if test x$enableval = xno; then
5394 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5400 macro_version='2.2.6'
5401 macro_revision='1.3012'
5415 ltmain="$ac_aux_dir/ltmain.sh"
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5420 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5421 { (exit 1); exit 1; }; }
5423 { echo "$as_me:$LINENO: checking build system type" >&5
5424 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5425 if test "${ac_cv_build+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_build_alias=$build_alias
5429 test "x$ac_build_alias" = x &&
5430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5431 test "x$ac_build_alias" = x &&
5432 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5434 { (exit 1); exit 1; }; }
5435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5436 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5437 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5438 { (exit 1); exit 1; }; }
5441 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5442 echo "${ECHO_T}$ac_cv_build" >&6; }
5443 case $ac_cv_build in
5445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5446 echo "$as_me: error: invalid value of canonical build" >&2;}
5447 { (exit 1); exit 1; }; };;
5450 ac_save_IFS=$IFS; IFS='-'
5456 # Remember, the first character of IFS is used to create $*,
5457 # except with old shells:
5460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5463 { echo "$as_me:$LINENO: checking host system type" >&5
5464 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5465 if test "${ac_cv_host+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 if test "x$host_alias" = x; then
5469 ac_cv_host=$ac_cv_build
5471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5473 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5474 { (exit 1); exit 1; }; }
5478 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479 echo "${ECHO_T}$ac_cv_host" >&6; }
5482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5483 echo "$as_me: error: invalid value of canonical host" >&2;}
5484 { (exit 1); exit 1; }; };;
5487 ac_save_IFS=$IFS; IFS='-'
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5502 if test "${ac_cv_path_SED+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5506 for ac_i in 1 2 3 4 5 6 7; do
5507 ac_script="$ac_script$as_nl$ac_script"
5509 echo "$ac_script" | sed 99q >conftest.sed
5510 $as_unset ac_script || ac_script=
5511 # Extract the first word of "sed gsed" to use in msg output
5512 if test -z "$SED"; then
5513 set dummy sed gsed; ac_prog_name=$2
5514 if test "${ac_cv_path_SED+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_path_SED_found=false
5518 # Loop through the user's path and test for each of PROGNAME-LIST
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_prog in sed gsed; do
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5527 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5528 # Check for GNU ac_path_SED and select it if it is found.
5529 # Check for GNU $ac_path_SED
5530 case `"$ac_path_SED" --version 2>&1` in
5532 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5535 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5538 cat "conftest.in" "conftest.in" >"conftest.tmp"
5539 mv "conftest.tmp" "conftest.in"
5540 cp "conftest.in" "conftest.nl"
5541 echo '' >> "conftest.nl"
5542 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5544 ac_count=`expr $ac_count + 1`
5545 if test $ac_count -gt ${ac_path_SED_max-0}; then
5546 # Best one so far, save it but keep looking for a better one
5547 ac_cv_path_SED="$ac_path_SED"
5548 ac_path_SED_max=$ac_count
5550 # 10*(2^10) chars as input seems more than enough
5551 test $ac_count -gt 10 && break
5553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5557 $ac_path_SED_found && break 3
5567 SED="$ac_cv_path_SED"
5568 if test -z "$SED"; then
5569 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5571 { (exit 1); exit 1; }; }
5579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5581 SED="$ac_cv_path_SED"
5584 test -z "$SED" && SED=sed
5585 Xsed="$SED -e 1s/^X//"
5597 { echo "$as_me:$LINENO: checking for fgrep" >&5
5598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_FGREP+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603 then ac_cv_path_FGREP="$GREP -F"
5605 # Extract the first word of "fgrep" to use in msg output
5606 if test -z "$FGREP"; then
5607 set dummy fgrep; ac_prog_name=$2
5608 if test "${ac_cv_path_FGREP+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 ac_path_FGREP_found=false
5612 # Loop through the user's path and test for each of PROGNAME-LIST
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5617 test -z "$as_dir" && as_dir=.
5618 for ac_prog in fgrep; do
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5621 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5622 # Check for GNU ac_path_FGREP and select it if it is found.
5623 # Check for GNU $ac_path_FGREP
5624 case `"$ac_path_FGREP" --version 2>&1` in
5626 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5632 cat "conftest.in" "conftest.in" >"conftest.tmp"
5633 mv "conftest.tmp" "conftest.in"
5634 cp "conftest.in" "conftest.nl"
5635 echo 'FGREP' >> "conftest.nl"
5636 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638 ac_count=`expr $ac_count + 1`
5639 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5640 # Best one so far, save it but keep looking for a better one
5641 ac_cv_path_FGREP="$ac_path_FGREP"
5642 ac_path_FGREP_max=$ac_count
5644 # 10*(2^10) chars as input seems more than enough
5645 test $ac_count -gt 10 && break
5647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 $ac_path_FGREP_found && break 3
5661 FGREP="$ac_cv_path_FGREP"
5662 if test -z "$FGREP"; then
5663 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5665 { (exit 1); exit 1; }; }
5669 ac_cv_path_FGREP=$FGREP
5675 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5676 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5677 FGREP="$ac_cv_path_FGREP"
5680 test -z "$GREP" && GREP=grep
5700 # Check whether --with-gnu-ld was given.
5701 if test "${with_gnu_ld+set}" = set; then
5702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5708 if test "$GCC" = yes; then
5709 # Check if gcc -print-prog-name=ld gives a path.
5710 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5714 # gcc leaves a trailing carriage return which upsets mingw
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5720 # Accept absolute paths.
5722 re_direlt='/[^/][^/]*/\.\./'
5723 # Canonicalize the pathname of ld
5724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5728 test -z "$LD" && LD="$ac_prog"
5731 # If it fails, then pretend we aren't using GCC.
5735 # If it is relative, then search for the first ld in PATH.
5739 elif test "$with_gnu_ld" = yes; then
5740 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5743 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_path_LD+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 if test -z "$LD"; then
5750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751 for ac_dir in $PATH; do
5753 test -z "$ac_dir" && ac_dir=.
5754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755 lt_cv_path_LD="$ac_dir/$ac_prog"
5756 # Check to see if the program is GNU ld. I'd rather use --version,
5757 # but apparently some variants of GNU ld only accept -v.
5758 # Break only if it was the GNU/non-GNU ld that we prefer.
5759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760 *GNU* | *'with BFD'*)
5761 test "$with_gnu_ld" != no && break
5764 test "$with_gnu_ld" != yes && break
5771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5776 if test -n "$LD"; then
5777 { echo "$as_me:$LINENO: result: $LD" >&5
5778 echo "${ECHO_T}$LD" >&6; }
5780 { echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6; }
5783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5785 { (exit 1); exit 1; }; }
5786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794 lt_cv_prog_gnu_ld=yes
5797 lt_cv_prog_gnu_ld=no
5801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5813 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$NM"; then
5819 # Let the user override the test.
5822 lt_nm_to_check="${ac_tool_prefix}nm"
5823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824 lt_nm_to_check="$lt_nm_to_check nm"
5826 for lt_tmp_nm in $lt_nm_to_check; do
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5830 test -z "$ac_dir" && ac_dir=.
5831 tmp_nm="$ac_dir/$lt_tmp_nm"
5832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833 # Check to see if the nm accepts a BSD-compat flag.
5834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835 # nm: unknown option "B" ignored
5836 # Tru64's nm complains that /dev/null is an invalid object file
5837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838 */dev/null* | *'Invalid file or object type'*)
5839 lt_cv_path_NM="$tmp_nm -B"
5843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5845 lt_cv_path_NM="$tmp_nm -p"
5849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850 continue # so that we can try to find one that supports BSD flags
5859 : ${lt_cv_path_NM=no}
5862 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5863 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5867 # Didn't find any BSD compatible name lister, look for dumpbin.
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$DUMPBIN"; then
5879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5901 echo "${ECHO_T}$DUMPBIN" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 test -n "$DUMPBIN" && break
5911 if test -z "$DUMPBIN"; then
5912 ac_ct_DUMPBIN=$DUMPBIN
5913 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 if test -n "$ac_ct_DUMPBIN"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5945 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5952 test -n "$ac_ct_DUMPBIN" && break
5955 if test "x$ac_ct_DUMPBIN" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet. If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet. If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5968 DUMPBIN=$ac_ct_DUMPBIN
5973 if test "$DUMPBIN" != ":"; then
5977 test -z "$NM" && NM=nm
5984 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5985 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5986 if test "${lt_cv_nm_interface+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 lt_cv_nm_interface="BSD nm"
5990 echo "int some_variable = 0;" > conftest.$ac_ext
5991 (eval echo "\"\$as_me:5991: $ac_compile\"" >&5)
5992 (eval "$ac_compile" 2>conftest.err)
5993 cat conftest.err >&5
5994 (eval echo "\"\$as_me:5994: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5995 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5996 cat conftest.err >&5
5997 (eval echo "\"\$as_me:5997: output\"" >&5)
5998 cat conftest.out >&5
5999 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6000 lt_cv_nm_interface="MS dumpbin"
6004 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6005 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6007 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6010 if test "$LN_S" = "ln -s"; then
6011 { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6014 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015 echo "${ECHO_T}no, using $LN_S" >&6; }
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 # On DJGPP, this test can blow up pretty badly due to problems in libc
6030 # (any single argument exceeding 2000 bytes causes a buffer overrun
6031 # during glob expansion). Even if it were fixed, the result of this
6032 # check would be larger than it should be.
6033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6037 # Under GNU Hurd, this test is not required because there is
6038 # no limit to the length of command line arguments.
6039 # Libtool will interpret -1 as no limit whatsoever
6040 lt_cv_sys_max_cmd_len=-1;
6043 cygwin* | mingw* | cegcc*)
6044 # On Win9x/ME, this test blows up -- it succeeds, but takes
6045 # about 5 minutes as the teststring grows exponentially.
6046 # Worse, since 9x/ME are not pre-emptively multitasking,
6047 # you end up with a "frozen" computer, even though with patience
6048 # the test eventually succeeds (with a max line length of 256k).
6049 # Instead, let's just punt: use the minimum linelength reported by
6050 # all of the supported platforms: 8192 (on NT/2K/XP).
6051 lt_cv_sys_max_cmd_len=8192;
6055 # On AmigaOS with pdksh, this test takes hours, literally.
6056 # So we just punt and use a minimum line length of 8192.
6057 lt_cv_sys_max_cmd_len=8192;
6060 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061 # This has been around since 386BSD, at least. Likely further.
6062 if test -x /sbin/sysctl; then
6063 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064 elif test -x /usr/sbin/sysctl; then
6065 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6069 # And add a safety zone
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076 lt_cv_sys_max_cmd_len=196608
6080 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082 # nice to cause kernel panics so lets avoid the loop below.
6083 # First set a reasonable default.
6084 lt_cv_sys_max_cmd_len=16384
6086 if test -x /sbin/sysconfig; then
6087 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093 lt_cv_sys_max_cmd_len=102400
6095 sysv5* | sco5v6* | sysv4.2uw2*)
6096 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097 if test -n "$kargmax"; then
6098 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6100 lt_cv_sys_max_cmd_len=32768
6104 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6105 if test -n "$lt_cv_sys_max_cmd_len"; then
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109 # Make teststring a little bigger before we do anything with it.
6110 # a 1K string should be a reasonable start.
6111 for i in 1 2 3 4 5 6 7 8 ; do
6112 teststring=$teststring$teststring
6114 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115 # If test is not a shell built-in, we'll probably end up computing a
6116 # maximum length that is only half of the actual maximum length, but
6118 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6119 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6120 test $i != 17 # 1/2 MB should be enough
6123 teststring=$teststring$teststring
6125 # Only check the string length outside the loop.
6126 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6128 # Add a significant safety factor because C++ compilers can tack on
6129 # massive amounts of additional arguments before passing them to the
6130 # linker. It appears as though 1/2 is a usable value.
6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6138 if test -n $lt_cv_sys_max_cmd_len ; then
6139 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6142 { echo "$as_me:$LINENO: result: none" >&5
6143 echo "${ECHO_T}none" >&6; }
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6156 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6157 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6158 # Try some XSI features
6161 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6163 && eval 'test $(( 1 + 1 )) -eq 2 \
6164 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6166 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6167 echo "${ECHO_T}$xsi_shell" >&6; }
6170 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6171 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6173 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6175 && lt_shell_append=yes
6176 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6177 echo "${ECHO_T}$lt_shell_append" >&6; }
6180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6190 # test EBCDIC or ASCII
6191 case `echo X|tr X '\101'` in
6192 A) # ASCII based system
6193 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6194 lt_SP2NL='tr \040 \012'
6195 lt_NL2SP='tr \015\012 \040\040'
6197 *) # EBCDIC based system
6198 lt_SP2NL='tr \100 \n'
6199 lt_NL2SP='tr \r\n \100\100'
6211 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6213 if test "${lt_cv_ld_reload_flag+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 lt_cv_ld_reload_flag='-r'
6218 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6223 *) reload_flag=" $reload_flag" ;;
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6228 if test "$GCC" = yes; then
6229 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 if test -n "$OBJDUMP"; then
6253 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 OBJDUMP=$ac_cv_prog_OBJDUMP
6273 if test -n "$OBJDUMP"; then
6274 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6275 echo "${ECHO_T}$OBJDUMP" >&6; }
6277 { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6283 if test -z "$ac_cv_prog_OBJDUMP"; then
6284 ac_ct_OBJDUMP=$OBJDUMP
6285 # Extract the first word of "objdump", so it can be a program name with args.
6286 set dummy objdump; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 if test -n "$ac_ct_OBJDUMP"; then
6293 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6313 if test -n "$ac_ct_OBJDUMP"; then
6314 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6315 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6321 if test "x$ac_ct_OBJDUMP" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet. If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6334 OBJDUMP=$ac_ct_OBJDUMP
6337 OBJDUMP="$ac_cv_prog_OBJDUMP"
6340 test -z "$OBJDUMP" && OBJDUMP=objdump
6350 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6351 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6352 if test "${lt_cv_deplibs_check_method+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 lt_cv_file_magic_cmd='$MAGIC_CMD'
6356 lt_cv_file_magic_test_file=
6357 lt_cv_deplibs_check_method='unknown'
6358 # Need to set the preceding variable on all platforms that support
6359 # interlibrary dependencies.
6360 # 'none' -- dependencies not supported.
6361 # `unknown' -- same as none, but documents that we really don't know.
6362 # 'pass_all' -- all dependencies passed with no checks.
6363 # 'test_compile' -- check by making test program.
6364 # 'file_magic [[regex]]' -- check by looking for files in library path
6365 # which responds to the $file_magic_cmd with a given extended regex.
6366 # If you have `file' or equivalent on your system and you're not sure
6367 # whether `pass_all' will *always* work, you probably want this one.
6371 lt_cv_deplibs_check_method=pass_all
6375 lt_cv_deplibs_check_method=pass_all
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380 lt_cv_file_magic_cmd='/usr/bin/file -L'
6381 lt_cv_file_magic_test_file=/shlib/libc.so
6385 # func_win32_libid is a shell function defined in ltmain.sh
6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387 lt_cv_file_magic_cmd='func_win32_libid'
6391 # Base MSYS/MinGW do not provide the 'file' command needed by
6392 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393 # unless we find 'file', for example because we are cross-compiling.
6394 if ( file / ) >/dev/null 2>&1; then
6395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396 lt_cv_file_magic_cmd='func_win32_libid'
6398 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399 lt_cv_file_magic_cmd='$OBJDUMP -f'
6404 # use the weaker test based on 'objdump'. See mingw*.
6405 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406 lt_cv_file_magic_cmd='$OBJDUMP -f'
6409 darwin* | rhapsody*)
6410 lt_cv_deplibs_check_method=pass_all
6413 freebsd* | dragonfly*)
6414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6417 # Not sure whether the presence of OpenBSD here was a mistake.
6418 # Let's accept both of them until this is cleared up.
6419 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6425 lt_cv_deplibs_check_method=pass_all
6430 lt_cv_deplibs_check_method=pass_all
6433 hpux10.20* | hpux11*)
6434 lt_cv_file_magic_cmd=/usr/bin/file
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6441 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]'
6442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6456 irix5* | irix6* | nonstopux*)
6458 *-32|*"-32 ") libmagic=32-bit;;
6459 *-n32|*"-n32 ") libmagic=N32;;
6460 *-64|*"-64 ") libmagic=64-bit;;
6461 *) libmagic=never-match;;
6463 lt_cv_deplibs_check_method=pass_all
6466 # This must be Linux ELF.
6467 linux* | k*bsd*-gnu)
6468 lt_cv_deplibs_check_method=pass_all
6472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481 lt_cv_file_magic_cmd=/usr/bin/file
6482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6486 lt_cv_deplibs_check_method=pass_all
6490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497 osf3* | osf4* | osf5*)
6498 lt_cv_deplibs_check_method=pass_all
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510 lt_cv_deplibs_check_method=pass_all
6514 case $host_vendor in
6516 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]'
6517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6520 lt_cv_deplibs_check_method=pass_all
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529 lt_cv_file_magic_test_file=/lib/libc.so
6532 lt_cv_deplibs_check_method=pass_all
6535 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method=pass_all
6546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_AR+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_AR="${ac_tool_prefix}ar"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 if test -n "$AR"; then
6593 { echo "$as_me:$LINENO: result: $AR" >&5
6594 echo "${ECHO_T}$AR" >&6; }
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6602 if test -z "$ac_cv_prog_AR"; then
6604 # Extract the first word of "ar", so it can be a program name with args.
6605 set dummy ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 if test -n "$ac_ct_AR"; then
6612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_AR="ar"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632 if test -n "$ac_ct_AR"; then
6633 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6634 echo "${ECHO_T}$ac_ct_AR" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6640 if test "x$ac_ct_AR" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet. If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet. If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_STRIP+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$STRIP"; then
6681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702 { echo "$as_me:$LINENO: result: $STRIP" >&5
6703 echo "${ECHO_T}$STRIP" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6711 if test -z "$ac_cv_prog_STRIP"; then
6713 # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 if test -n "$ac_ct_STRIP"; then
6721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_STRIP="strip"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749 if test "x$ac_ct_STRIP" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6765 STRIP="$ac_cv_prog_STRIP"
6768 test -z "$STRIP" && STRIP=:
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_RANLIB+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 if test -n "$RANLIB"; then
6784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 RANLIB=$ac_cv_prog_RANLIB
6804 if test -n "$RANLIB"; then
6805 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6806 echo "${ECHO_T}$RANLIB" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6814 if test -z "$ac_cv_prog_RANLIB"; then
6815 ac_ct_RANLIB=$RANLIB
6816 # Extract the first word of "ranlib", so it can be a program name with args.
6817 set dummy ranlib; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 if test -n "$ac_ct_RANLIB"; then
6824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_ac_ct_RANLIB="ranlib"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6846 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6852 if test "x$ac_ct_RANLIB" = x; then
6855 case $cross_compiling:$ac_tool_warned in
6857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet. If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&5
6860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet. If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6863 ac_tool_warned=yes ;;
6865 RANLIB=$ac_ct_RANLIB
6868 RANLIB="$ac_cv_prog_RANLIB"
6871 test -z "$RANLIB" && RANLIB=:
6878 # Determine commands to create old-style static archives.
6879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880 old_postinstall_cmds='chmod 644 $oldlib'
6881 old_postuninstall_cmds=
6883 if test -n "$RANLIB"; then
6886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6928 # If no C compiler was specified, use CC.
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6934 # Allow CC to be a program name with arguments.
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954 # Define system-specific variables.
6959 cygwin* | mingw* | pw32* | cegcc*)
6960 symcode='[ABCDGISTW]'
6963 if test "$host_cpu" = ia64; then
6964 symcode='[ABCDEGRST]'
6968 symcode='[BCDEGRST]'
6971 symcode='[BCDEGQRST]'
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993 symcode='[ABCDGIRSTW]' ;;
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7005 # Handle CRLF in mingw tool chain
7009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7013 # Try without a prefix underscore, then with it.
7014 for ac_symprfx in "" "_"; do
7016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7017 symxfrm="\\1 $ac_symprfx\\2 \\2"
7019 # Write the raw and C identifiers.
7020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021 # Fake it for dumpbin and say T for any non-static function
7022 # and D for any global variable.
7023 # Also find C++ and __fastcall symbols from MSVC++,
7024 # which start with @ or ?.
7025 lt_cv_sys_global_symbol_pipe="$AWK '"\
7026 " {last_section=section; section=\$ 3};"\
7027 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7028 " \$ 0!~/External *\|/{next};"\
7029 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7030 " {if(hide[section]) next};"\
7031 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7032 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7033 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7034 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7035 " ' prfx=^$ac_symprfx"
7037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7040 # Check to see that the pipe works correctly.
7044 cat > conftest.$ac_ext <<_LT_EOF
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; then
7062 # Now try to grab the symbols.
7064 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7065 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && test -s "$nlist"; then
7069 # Try sorting and uniquifying the output.
7070 if sort "$nlist" | uniq > "$nlist"T; then
7071 mv -f "$nlist"T "$nlist"
7076 # Make sure that we snagged all the symbols we need.
7077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079 cat <<_LT_EOF > conftest.$ac_ext
7085 # Now generate the symbol file.
7086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7088 cat <<_LT_EOF >> conftest.$ac_ext
7090 /* The mapping between symbol names and symbols. */
7095 lt__PROGRAM__LTX_preloaded_symbols[] =
7097 { "@PROGRAM@", (void *) 0 },
7099 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7100 cat <<\_LT_EOF >> conftest.$ac_ext
7104 /* This works around a problem in FreeBSD linker */
7105 #ifdef FREEBSD_WORKAROUND
7106 static const void *lt_preloaded_setup() {
7107 return lt__PROGRAM__LTX_preloaded_symbols;
7115 # Now try linking the two files.
7116 mv conftest.$ac_objext conftstm.$ac_objext
7117 lt_save_LIBS="$LIBS"
7118 lt_save_CFLAGS="$CFLAGS"
7119 LIBS="conftstm.$ac_objext"
7120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7128 LIBS="$lt_save_LIBS"
7129 CFLAGS="$lt_save_CFLAGS"
7131 echo "cannot find nm_test_func in $nlist" >&5
7134 echo "cannot find nm_test_var in $nlist" >&5
7137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7140 echo "$progname: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 rm -rf conftest* conftst*
7145 # Do not use the global_symbol_pipe unless it works.
7146 if test "$pipe_works" = yes; then
7149 lt_cv_sys_global_symbol_pipe=
7155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7156 lt_cv_sys_global_symbol_to_cdecl=
7158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7159 { echo "$as_me:$LINENO: result: failed" >&5
7160 echo "${ECHO_T}failed" >&6; }
7162 { echo "$as_me:$LINENO: result: ok" >&5
7163 echo "${ECHO_T}ok" >&6; }
7187 # Check whether --enable-libtool-lock was given.
7188 if test "${enable_libtool_lock+set}" = set; then
7189 enableval=$enable_libtool_lock;
7192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194 # Some flags need to be propagated to the compiler or linker for good
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 case `/usr/bin/file conftest.$ac_objext` in
7217 # Find out which ABI we are using.
7218 echo '#line 7218 "configure"' > conftest.$ac_ext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; then
7224 if test "$lt_cv_prog_gnu_ld" = yes; then
7225 case `/usr/bin/file conftest.$ac_objext` in
7227 LD="${LD-ld} -melf32bsmip"
7230 LD="${LD-ld} -melf32bmipn32"
7233 LD="${LD-ld} -melf64bmip"
7237 case `/usr/bin/file conftest.$ac_objext` in
7253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; then
7262 case `/usr/bin/file conftest.o` in
7265 x86_64-*kfreebsd*-gnu)
7266 LD="${LD-ld} -m elf_i386_fbsd"
7269 LD="${LD-ld} -m elf_i386"
7271 ppc64-*linux*|powerpc64-*linux*)
7272 LD="${LD-ld} -m elf32ppclinux"
7275 LD="${LD-ld} -m elf_s390"
7278 LD="${LD-ld} -m elf32_sparc"
7284 x86_64-*kfreebsd*-gnu)
7285 LD="${LD-ld} -m elf_x86_64_fbsd"
7288 LD="${LD-ld} -m elf_x86_64"
7290 ppc*-*linux*|powerpc*-*linux*)
7291 LD="${LD-ld} -m elf64ppc"
7293 s390*-*linux*|s390*-*tpf*)
7294 LD="${LD-ld} -m elf64_s390"
7297 LD="${LD-ld} -m elf64_sparc"
7307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308 SAVE_CFLAGS="$CFLAGS"
7309 CFLAGS="$CFLAGS -belf"
7310 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7312 if test "${lt_cv_cc_needs_belf+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_link") 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest$ac_exeext &&
7353 $as_test_x conftest$ac_exeext; then
7354 lt_cv_cc_needs_belf=yes
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 lt_cv_cc_needs_belf=no
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363 conftest$ac_exeext conftest.$ac_ext
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375 CFLAGS="$SAVE_CFLAGS"
7379 # Find out which ABI we are using.
7380 echo 'int i;' > conftest.$ac_ext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382 (eval $ac_compile) 2>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; then
7386 case `/usr/bin/file conftest.o` in
7388 case $lt_cv_prog_gnu_ld in
7389 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7403 need_locks="$enable_libtool_lock"
7407 rhapsody* | darwin*)
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 if test -n "$DSYMUTIL"; then
7417 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7439 echo "${ECHO_T}$DSYMUTIL" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448 ac_ct_DSYMUTIL=$DSYMUTIL
7449 # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 if test -n "$ac_ct_DSYMUTIL"; then
7457 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7479 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7485 if test "x$ac_ct_DSYMUTIL" = x; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7491 whose name does not start with the host triplet. If you think this
7492 configuration is useful to you, please write to autoconf@gnu.org." >&5
7493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet. If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7496 ac_tool_warned=yes ;;
7498 DSYMUTIL=$ac_ct_DSYMUTIL
7501 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7504 if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 if test -n "$NMEDIT"; then
7513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7535 echo "${ECHO_T}$NMEDIT" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544 ac_ct_NMEDIT=$NMEDIT
7545 # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 if test -n "$ac_ct_NMEDIT"; then
7553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7575 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7581 if test "x$ac_ct_NMEDIT" = x; then
7584 case $cross_compiling:$ac_tool_warned in
7586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7587 whose name does not start with the host triplet. If you think this
7588 configuration is useful to you, please write to autoconf@gnu.org." >&5
7589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet. If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7592 ac_tool_warned=yes ;;
7594 NMEDIT=$ac_ct_NMEDIT
7597 NMEDIT="$ac_cv_prog_NMEDIT"
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_prog_LIPO+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 if test -n "$LIPO"; then
7609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 LIPO=$ac_cv_prog_LIPO
7629 if test -n "$LIPO"; then
7630 { echo "$as_me:$LINENO: result: $LIPO" >&5
7631 echo "${ECHO_T}$LIPO" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7639 if test -z "$ac_cv_prog_LIPO"; then
7641 # Extract the first word of "lipo", so it can be a program name with args.
7642 set dummy lipo; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 if test -n "$ac_ct_LIPO"; then
7649 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_ac_ct_LIPO="lipo"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669 if test -n "$ac_ct_LIPO"; then
7670 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7671 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7673 { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7677 if test "x$ac_ct_LIPO" = x; then
7680 case $cross_compiling:$ac_tool_warned in
7682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683 whose name does not start with the host triplet. If you think this
7684 configuration is useful to you, please write to autoconf@gnu.org." >&5
7685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet. If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7688 ac_tool_warned=yes ;;
7693 LIPO="$ac_cv_prog_LIPO"
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}otool; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_prog_OTOOL+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 if test -n "$OTOOL"; then
7705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 OTOOL=$ac_cv_prog_OTOOL
7725 if test -n "$OTOOL"; then
7726 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7727 echo "${ECHO_T}$OTOOL" >&6; }
7729 { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7735 if test -z "$ac_cv_prog_OTOOL"; then
7737 # Extract the first word of "otool", so it can be a program name with args.
7738 set dummy otool; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 if test -n "$ac_ct_OTOOL"; then
7745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_ac_ct_OTOOL="otool"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7765 if test -n "$ac_ct_OTOOL"; then
7766 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7767 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7769 { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7773 if test "x$ac_ct_OTOOL" = x; then
7776 case $cross_compiling:$ac_tool_warned in
7778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7779 whose name does not start with the host triplet. If you think this
7780 configuration is useful to you, please write to autoconf@gnu.org." >&5
7781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet. If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7784 ac_tool_warned=yes ;;
7789 OTOOL="$ac_cv_prog_OTOOL"
7792 if test -n "$ac_tool_prefix"; then
7793 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test -n "$OTOOL64"; then
7801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 OTOOL64=$ac_cv_prog_OTOOL64
7821 if test -n "$OTOOL64"; then
7822 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7823 echo "${ECHO_T}$OTOOL64" >&6; }
7825 { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7831 if test -z "$ac_cv_prog_OTOOL64"; then
7832 ac_ct_OTOOL64=$OTOOL64
7833 # Extract the first word of "otool64", so it can be a program name with args.
7834 set dummy otool64; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 if test -n "$ac_ct_OTOOL64"; then
7841 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_prog_ac_ct_OTOOL64="otool64"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7861 if test -n "$ac_ct_OTOOL64"; then
7862 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7863 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7869 if test "x$ac_ct_OTOOL64" = x; then
7872 case $cross_compiling:$ac_tool_warned in
7874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7875 whose name does not start with the host triplet. If you think this
7876 configuration is useful to you, please write to autoconf@gnu.org." >&5
7877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7880 ac_tool_warned=yes ;;
7882 OTOOL64=$ac_ct_OTOOL64
7885 OTOOL64="$ac_cv_prog_OTOOL64"
7914 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7915 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 lt_cv_apple_cc_single_mod=no
7920 if test -z "${LT_MULTI_MODULE}"; then
7921 # By default we will add the -single_module flag. You can override
7922 # by either setting the environment variable LT_MULTI_MODULE
7923 # non-empty at configure time, or by adding -multi_module to the
7925 rm -rf libconftest.dylib*
7926 echo "int foo(void){return 1;}" > conftest.c
7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7932 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933 lt_cv_apple_cc_single_mod=yes
7935 cat conftest.err >&5
7937 rm -rf libconftest.dylib*
7941 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7942 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7943 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7944 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 lt_cv_ld_exported_symbols_list=no
7949 save_LDFLAGS=$LDFLAGS
7950 echo "_main" > conftest.sym
7951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_link") 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest$ac_exeext &&
7984 $as_test_x conftest$ac_exeext; then
7985 lt_cv_ld_exported_symbols_list=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 lt_cv_ld_exported_symbols_list=no
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LDFLAGS="$save_LDFLAGS"
7998 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7999 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8001 rhapsody* | darwin1.[012])
8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005 darwin*) # darwin 5.x on
8006 # if running on 10.5 or later, the deployment target defaults
8007 # to the OS version, if on x86, and 10.4, the deployment
8008 # target defaults to 10.4. Don't you love it?
8009 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020 _lt_dar_single_mod='$single_module'
8022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8025 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027 if test "$DSYMUTIL" != ":"; then
8028 _lt_dsymutil='~$DSYMUTIL $lib || :'
8035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8037 if test "${ac_cv_header_stdc+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest.$ac_objext; then
8076 ac_cv_header_stdc=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_header_stdc=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 if test $ac_cv_header_stdc = yes; then
8087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then
8101 ac_cv_header_stdc=no
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then
8122 ac_cv_header_stdc=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 # define ISLOWER(c) \
8146 (('a' <= (c) && (c) <= 'i') \
8147 || ('j' <= (c) && (c) <= 'r') \
8148 || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 for (i = 0; i < 256; i++)
8158 if (XOR (islower (i), ISLOWER (i))
8159 || toupper (i) != TOUPPER (i))
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8186 echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_header_stdc=no
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220 inttypes.h stdint.h unistd.h
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8236 #include <$ac_header>
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_compile") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest.$ac_objext; then
8255 eval "$as_ac_Header=yes"
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 eval "$as_ac_Header=no"
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8279 for ac_header in dlfcn.h
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 $ac_includes_default
8295 #include <$ac_header>
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
8314 eval "$as_ac_Header=yes"
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 eval "$as_ac_Header=no"
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325 { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8339 ac_cpp='$CXXCPP $CPPFLAGS'
8340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8343 if test -z "$CXX"; then
8344 if test -n "$CCC"; then
8347 if test -n "$ac_tool_prefix"; then
8348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CXX+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 if test -n "$CXX"; then
8358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 if test -n "$CXX"; then
8379 { echo "$as_me:$LINENO: result: $CXX" >&5
8380 echo "${ECHO_T}$CXX" >&6; }
8382 { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8387 test -n "$CXX" && break
8390 if test -z "$CXX"; then
8392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 if test -n "$ac_ct_CXX"; then
8402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_ac_ct_CXX="$ac_prog"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8422 if test -n "$ac_ct_CXX"; then
8423 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8431 test -n "$ac_ct_CXX" && break
8434 if test "x$ac_ct_CXX" = x; then
8437 case $cross_compiling:$ac_tool_warned in
8439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet. If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&5
8442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet. If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8445 ac_tool_warned=yes ;;
8453 # Provide some information about the compiler.
8454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8455 ac_compiler=`set X $ac_compile; echo $2`
8456 { (ac_try="$ac_compiler --version >&5"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compiler --version >&5") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }
8466 { (ac_try="$ac_compiler -v >&5"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compiler -v >&5") 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }
8476 { (ac_try="$ac_compiler -V >&5"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compiler -V >&5") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }
8487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_cxx_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8541 GXX=`test $ac_compiler_gnu = yes && echo yes`
8542 ac_test_CXXFLAGS=${CXXFLAGS+set}
8543 ac_save_CXXFLAGS=$CXXFLAGS
8544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8546 if test "${ac_cv_prog_cxx_g+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8550 ac_cxx_werror_flag=yes
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_cxx_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_prog_cxx_g=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_cxx_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.$ac_objext; then
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_cxx_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8662 ac_cv_prog_cxx_g=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8681 if test "$ac_test_CXXFLAGS" = set; then
8682 CXXFLAGS=$ac_save_CXXFLAGS
8683 elif test $ac_cv_prog_cxx_g = yes; then
8684 if test "$GXX" = yes; then
8690 if test "$GXX" = yes; then
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8703 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8704 (test "X$CXX" != "Xg++"))) ; then
8706 ac_cpp='$CXXCPP $CPPFLAGS'
8707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8710 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8711 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8712 if test -z "$CXXCPP"; then
8713 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 # Double quotes because CXXCPP needs to be expanded
8717 for CXXCPP in "$CXX -E" "/lib/cpp"
8720 for ac_cxx_preproc_warn_flag in '' yes
8722 # Use a header file that comes with gcc, so configuring glibc
8723 # with a fresh cross-compiler works.
8724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 # <limits.h> exists even on freestanding compilers.
8726 # On the NeXT, cc -E runs the code through the compiler's parser,
8727 # not just through cpp. "Syntax error" is here to catch this case.
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8735 # include <limits.h>
8737 # include <assert.h>
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null && {
8754 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755 test ! -s conftest.err
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 # Broken: fails on valid input.
8766 rm -f conftest.err conftest.$ac_ext
8768 # OK, works on sane cases. Now check whether nonexistent headers
8769 # can be detected and how.
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 #include <ac_nonexistent.h>
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null && {
8791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792 test ! -s conftest.err
8794 # Broken: success on invalid input.
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 # Passes both tests.
8805 rm -f conftest.err conftest.$ac_ext
8808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8809 rm -f conftest.err conftest.$ac_ext
8810 if $ac_preproc_ok; then
8815 ac_cv_prog_CXXCPP=$CXXCPP
8818 CXXCPP=$ac_cv_prog_CXXCPP
8820 ac_cv_prog_CXXCPP=$CXXCPP
8822 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8823 echo "${ECHO_T}$CXXCPP" >&6; }
8825 for ac_cxx_preproc_warn_flag in '' yes
8827 # Use a header file that comes with gcc, so configuring glibc
8828 # with a fresh cross-compiler works.
8829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8830 # <limits.h> exists even on freestanding compilers.
8831 # On the NeXT, cc -E runs the code through the compiler's parser,
8832 # not just through cpp. "Syntax error" is here to catch this case.
8833 cat >conftest.$ac_ext <<_ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8840 # include <limits.h>
8842 # include <assert.h>
8846 if { (ac_try="$ac_cpp conftest.$ac_ext"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } >/dev/null && {
8859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8860 test ! -s conftest.err
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 # Broken: fails on valid input.
8871 rm -f conftest.err conftest.$ac_ext
8873 # OK, works on sane cases. Now check whether nonexistent headers
8874 # can be detected and how.
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 #include <ac_nonexistent.h>
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } >/dev/null && {
8896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8897 test ! -s conftest.err
8899 # Broken: success on invalid input.
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 # Passes both tests.
8910 rm -f conftest.err conftest.$ac_ext
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8918 _lt_caught_CXX_error=yes
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928 _lt_caught_CXX_error=yes
8936 # Check whether --enable-shared was given.
8937 if test "${enable_shared+set}" = set; then
8938 enableval=$enable_shared; p=${PACKAGE-default}
8940 yes) enable_shared=yes ;;
8941 no) enable_shared=no ;;
8944 # Look at the argument we got. We use all the common list separators.
8945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946 for pkg in $enableval; do
8948 if test "X$pkg" = "X$p"; then
8965 # Check whether --enable-static was given.
8966 if test "${enable_static+set}" = set; then
8967 enableval=$enable_static; p=${PACKAGE-default}
8969 yes) enable_static=yes ;;
8970 no) enable_static=no ;;
8973 # Look at the argument we got. We use all the common list separators.
8974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975 for pkg in $enableval; do
8977 if test "X$pkg" = "X$p"; then
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then
9008 withval=$with_pic; pic_mode="$withval"
9014 test -z "$pic_mode" && pic_mode=default
9022 # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then
9024 enableval=$enable_fast_install; p=${PACKAGE-default}
9026 yes) enable_fast_install=yes ;;
9027 no) enable_fast_install=no ;;
9029 enable_fast_install=no
9030 # Look at the argument we got. We use all the common list separators.
9031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032 for pkg in $enableval; do
9034 if test "X$pkg" = "X$p"; then
9035 enable_fast_install=yes
9042 enable_fast_install=yes
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9085 test -z "$LN_S" && LN_S="ln -s"
9100 if test -n "${ZSH_VERSION+set}" ; then
9101 setopt NO_GLOB_SUBST
9104 { echo "$as_me:$LINENO: checking for objdir" >&5
9105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9106 if test "${lt_cv_objdir+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 rm -f .libs 2>/dev/null
9110 mkdir .libs 2>/dev/null
9111 if test -d .libs; then
9114 # MS-DOS does not allow filenames that begin with a dot.
9117 rmdir .libs 2>/dev/null
9119 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9120 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9121 objdir=$lt_cv_objdir
9127 cat >>confdefs.h <<_ACEOF
9128 #define LT_OBJDIR "$lt_cv_objdir/"
9149 # AIX sometimes has problems with the GCC collect2 program. For some
9150 # reason, if we set the COLLECT_NAMES environment variable, the problems
9151 # vanish in a puff of smoke.
9152 if test "X${COLLECT_NAMES+set}" != Xset; then
9154 export COLLECT_NAMES
9159 # Sed substitution that helps us do robust quoting. It backslashifies
9160 # metacharacters that are still active within double-quoted strings.
9161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9163 # Same as above, but do not quote variable references.
9164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9166 # Sed substitution to delay expansion of an escaped shell variable in a
9167 # double_quote_subst'ed string.
9168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9170 # Sed substitution to delay expansion of an escaped single quote.
9171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9173 # Sed substitution to avoid accidental globbing in evaled expressions
9174 no_glob_subst='s/\*/\\\*/g'
9178 can_build_shared=yes
9180 # All known linkers require a `.a' archive for static linking (except MSVC,
9181 # which needs '.lib').
9184 with_gnu_ld="$lt_cv_prog_gnu_ld"
9187 old_CFLAGS="$CFLAGS"
9189 # Set sane defaults for various variables
9190 test -z "$CC" && CC=cc
9191 test -z "$LTCC" && LTCC=$CC
9192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9193 test -z "$LD" && LD=ld
9194 test -z "$ac_objext" && ac_objext=o
9196 for cc_temp in $compiler""; do
9198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9207 # Only perform the check for file, if the check method requires it
9208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9209 case $deplibs_check_method in
9211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9212 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9222 lt_save_MAGIC_CMD="$MAGIC_CMD"
9223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225 for ac_dir in $ac_dummy; do
9227 test -z "$ac_dir" && ac_dir=.
9228 if test -f $ac_dir/${ac_tool_prefix}file; then
9229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9230 if test -n "$file_magic_test_file"; then
9231 case $deplibs_check_method in
9233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236 $EGREP "$file_magic_regex" > /dev/null; then
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such. This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem. Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9258 MAGIC_CMD="$lt_save_MAGIC_CMD"
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9268 { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9276 if test -z "$lt_cv_path_MAGIC_CMD"; then
9277 if test -n "$ac_tool_prefix"; then
9278 { echo "$as_me:$LINENO: checking for file" >&5
9279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9288 lt_save_MAGIC_CMD="$MAGIC_CMD"
9289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291 for ac_dir in $ac_dummy; do
9293 test -z "$ac_dir" && ac_dir=.
9294 if test -f $ac_dir/file; then
9295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9296 if test -n "$file_magic_test_file"; then
9297 case $deplibs_check_method in
9299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302 $EGREP "$file_magic_regex" > /dev/null; then
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such. This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem. Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9324 MAGIC_CMD="$lt_save_MAGIC_CMD"
9329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330 if test -n "$MAGIC_CMD"; then
9331 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9334 { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9348 # Use C for the default configuration in the libtool script
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9358 # Source file extension for C test sources.
9361 # Object file extension for compiled C test sources.
9365 # Code to be used in simple compile tests
9366 lt_simple_compile_test_code="int some_variable = 0;"
9368 # Code to be used in simple link tests
9369 lt_simple_link_test_code='int main(){return(0);}'
9377 # If no C compiler was specified, use CC.
9380 # If no C compiler flags were specified, use CFLAGS.
9381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9383 # Allow CC to be a program name with arguments.
9386 # Save the default compiler, since it gets overwritten when the other
9387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9388 compiler_DEFAULT=$CC
9390 # save warnings/boilerplate of simple test code
9391 ac_outfile=conftest.$ac_objext
9392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9394 _lt_compiler_boilerplate=`cat conftest.err`
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_linker_boilerplate=`cat conftest.err`
9405 ## There is no encapsulation within the following macros, do not change
9406 ## the running order or otherwise move them around unless you know exactly
9407 ## what you are doing...
9408 if test -n "$compiler"; then
9410 lt_prog_compiler_no_builtin_flag=
9412 if test "$GCC" = yes; then
9413 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9415 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 lt_cv_prog_compiler_rtti_exceptions=no
9421 ac_outfile=conftest.$ac_objext
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423 lt_compiler_flag="-fno-rtti -fno-exceptions"
9424 # Insert the option either (1) after the last *FLAGS variable, or
9425 # (2) before a word containing "conftest.", or (3) at the end.
9426 # Note that $ac_compile itself does not contain backslashes and begins
9427 # with a dollar sign (not a hyphen), so the echo should work correctly.
9428 # The option is referenced via a variable to avoid confusing sed.
9429 lt_compile=`echo "$ac_compile" | $SED \
9430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432 -e 's:$: $lt_compiler_flag:'`
9433 (eval echo "\"\$as_me:9433: $lt_compile\"" >&5)
9434 (eval "$lt_compile" 2>conftest.err)
9436 cat conftest.err >&5
9437 echo "$as_me:9437: \$? = $ac_status" >&5
9438 if (exit $ac_status) && test -s "$ac_outfile"; then
9439 # The compiler can only warn and ignore the option if not recognized
9440 # So say no if there are warnings other than the usual output.
9441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444 lt_cv_prog_compiler_rtti_exceptions=yes
9450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9454 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9466 lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9473 if test "$GCC" = yes; then
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_static='-static'
9479 # All AIX code is PIC.
9480 if test "$host_cpu" = ia64; then
9481 # AIX 5 now supports IA64 processor
9482 lt_prog_compiler_static='-Bstatic'
9489 # see comment about AmigaOS4 .so support
9490 lt_prog_compiler_pic='-fPIC'
9493 # FIXME: we need at least 68020 code to build shared libraries, but
9494 # adding the `-m68020' flag to GCC prevents building anything better,
9496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502 # PIC is the default for these OSes.
9505 mingw* | cygwin* | pw32* | os2* | cegcc*)
9506 # This hack is so that the source file can tell whether it is being
9507 # built for inclusion in a dll (and should export symbols for example).
9508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9509 # (--disable-auto-import) libraries
9510 lt_prog_compiler_pic='-DDLL_EXPORT'
9513 darwin* | rhapsody*)
9514 # PIC is the default on this platform
9515 # Common symbols not allowed in MH_DYLIB files
9516 lt_prog_compiler_pic='-fno-common'
9520 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9521 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9522 # sets the default TLS model and affects inlining.
9528 lt_prog_compiler_pic='-fPIC'
9534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9535 # Instead, we relocate shared libraries at runtime.
9539 # Just because we use GCC doesn't mean we suddenly get shared libraries
9540 # on systems that don't support them.
9541 lt_prog_compiler_can_build_shared=no
9546 # QNX uses GNU C++, but need to define -shared option too, otherwise
9548 lt_prog_compiler_pic='-fPIC -shared'
9552 if test -d /usr/nec; then
9553 lt_prog_compiler_pic=-Kconform_pic
9558 lt_prog_compiler_pic='-fPIC'
9562 # PORTME Check for flag to pass linker flags through the system compiler.
9565 lt_prog_compiler_wl='-Wl,'
9566 if test "$host_cpu" = ia64; then
9567 # AIX 5 now supports IA64 processor
9568 lt_prog_compiler_static='-Bstatic'
9570 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574 mingw* | cygwin* | pw32* | os2* | cegcc*)
9575 # This hack is so that the source file can tell whether it is being
9576 # built for inclusion in a dll (and should export symbols for example).
9577 lt_prog_compiler_pic='-DDLL_EXPORT'
9580 hpux9* | hpux10* | hpux11*)
9581 lt_prog_compiler_wl='-Wl,'
9582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9589 lt_prog_compiler_pic='+Z'
9592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9593 lt_prog_compiler_static='${wl}-a ${wl}archive'
9596 irix5* | irix6* | nonstopux*)
9597 lt_prog_compiler_wl='-Wl,'
9598 # PIC (with -KPIC) is the default.
9599 lt_prog_compiler_static='-non_shared'
9602 linux* | k*bsd*-gnu)
9603 case $cc_basename in
9604 # old Intel for x86_64 which still supported -KPIC.
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-KPIC'
9608 lt_prog_compiler_static='-static'
9610 # icc used to be incompatible with GCC.
9611 # ICC 10 doesn't accept -KPIC any more.
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-fPIC'
9615 lt_prog_compiler_static='-static'
9617 # Lahey Fortran 8.1.
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='--shared'
9621 lt_prog_compiler_static='--static'
9623 pgcc* | pgf77* | pgf90* | pgf95*)
9624 # Portland Group compilers (*not* the Pentium gcc compiler,
9625 # which looks to be a dead project)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-fpic'
9628 lt_prog_compiler_static='-Bstatic'
9631 lt_prog_compiler_wl='-Wl,'
9632 # All Alpha code is PIC.
9633 lt_prog_compiler_static='-non_shared'
9636 # IBM XL C 8.0/Fortran 10.1 on PPC
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_pic='-qpic'
9639 lt_prog_compiler_static='-qstaticlink'
9642 case `$CC -V 2>&1 | sed 5q` in
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-Bstatic'
9647 lt_prog_compiler_wl='-Wl,'
9650 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 lt_prog_compiler_wl=''
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9666 # QNX uses GNU C++, but need to define -shared option too, otherwise
9668 lt_prog_compiler_pic='-fPIC -shared'
9671 osf3* | osf4* | osf5*)
9672 lt_prog_compiler_wl='-Wl,'
9673 # All OSF/1 code is PIC.
9674 lt_prog_compiler_static='-non_shared'
9678 lt_prog_compiler_static='-non_shared'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-Bstatic'
9684 case $cc_basename in
9686 lt_prog_compiler_wl='-Qoption ld ';;
9688 lt_prog_compiler_wl='-Wl,';;
9693 lt_prog_compiler_wl='-Qoption ld '
9694 lt_prog_compiler_pic='-PIC'
9695 lt_prog_compiler_static='-Bstatic'
9698 sysv4 | sysv4.2uw2* | sysv4.3*)
9699 lt_prog_compiler_wl='-Wl,'
9700 lt_prog_compiler_pic='-KPIC'
9701 lt_prog_compiler_static='-Bstatic'
9705 if test -d /usr/nec ;then
9706 lt_prog_compiler_pic='-Kconform_pic'
9707 lt_prog_compiler_static='-Bstatic'
9711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-KPIC'
9714 lt_prog_compiler_static='-Bstatic'
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_can_build_shared=no
9723 lt_prog_compiler_pic='-pic'
9724 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_can_build_shared=no
9734 # For platforms which do not support PIC, -DPIC is meaningless:
9736 lt_prog_compiler_pic=
9739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9751 # Check to make sure the PIC flag actually works.
9753 if test -n "$lt_prog_compiler_pic"; then
9754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 lt_cv_prog_compiler_pic_works=no
9760 ac_outfile=conftest.$ac_objext
9761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9763 # Insert the option either (1) after the last *FLAGS variable, or
9764 # (2) before a word containing "conftest.", or (3) at the end.
9765 # Note that $ac_compile itself does not contain backslashes and begins
9766 # with a dollar sign (not a hyphen), so the echo should work correctly.
9767 # The option is referenced via a variable to avoid confusing sed.
9768 lt_compile=`echo "$ac_compile" | $SED \
9769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771 -e 's:$: $lt_compiler_flag:'`
9772 (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773 (eval "$lt_compile" 2>conftest.err)
9775 cat conftest.err >&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 if (exit $ac_status) && test -s "$ac_outfile"; then
9778 # The compiler can only warn and ignore the option if not recognized
9779 # So say no if there are warnings other than the usual output.
9780 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9783 lt_cv_prog_compiler_pic_works=yes
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9793 case $lt_prog_compiler_pic in
9795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9798 lt_prog_compiler_pic=
9799 lt_prog_compiler_can_build_shared=no
9810 # Check to make sure the static flag actually works.
9812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 lt_cv_prog_compiler_static_works=no
9819 save_LDFLAGS="$LDFLAGS"
9820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler_static_works=yes
9834 lt_cv_prog_compiler_static_works=yes
9838 LDFLAGS="$save_LDFLAGS"
9841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9847 lt_prog_compiler_static=
9856 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 lt_cv_prog_compiler_c_o=no
9862 $RM -r conftest 2>/dev/null
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868 lt_compiler_flag="-o out/conftest2.$ac_objext"
9869 # Insert the option either (1) after the last *FLAGS variable, or
9870 # (2) before a word containing "conftest.", or (3) at the end.
9871 # Note that $ac_compile itself does not contain backslashes and begins
9872 # with a dollar sign (not a hyphen), so the echo should work correctly.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>out/conftest.err)
9880 cat out/conftest.err >&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884 # The compiler can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler_c_o=yes
9894 # SGI C++ compiler will create directory out/ii_files/ for
9895 # template instantiation
9896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897 $RM out/* && rmdir out
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9911 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 lt_cv_prog_compiler_c_o=no
9917 $RM -r conftest 2>/dev/null
9921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9923 lt_compiler_flag="-o out/conftest2.$ac_objext"
9924 # Insert the option either (1) after the last *FLAGS variable, or
9925 # (2) before a word containing "conftest.", or (3) at the end.
9926 # Note that $ac_compile itself does not contain backslashes and begins
9927 # with a dollar sign (not a hyphen), so the echo should work correctly.
9928 lt_compile=`echo "$ac_compile" | $SED \
9929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931 -e 's:$: $lt_compiler_flag:'`
9932 (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933 (eval "$lt_compile" 2>out/conftest.err)
9935 cat out/conftest.err >&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9939 # The compiler can only warn and ignore the option if not recognized
9940 # So say no if there are warnings
9941 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944 lt_cv_prog_compiler_c_o=yes
9949 # SGI C++ compiler will create directory out/ii_files/ for
9950 # template instantiation
9951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952 $RM out/* && rmdir out
9958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9964 hard_links="nottested"
9965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966 # do not overwrite the value of need_locks provided by the user
9967 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973 ln conftest.a conftest.b 2>&5 || hard_links=no
9974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975 { echo "$as_me:$LINENO: result: $hard_links" >&5
9976 echo "${ECHO_T}$hard_links" >&6; }
9977 if test "$hard_links" = no; then
9978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9991 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9995 allow_undefined_flag=
9996 always_export_symbols=no
9998 archive_expsym_cmds=
9999 compiler_needs_object=no
10000 enable_shared_with_static_runtimes=no
10001 export_dynamic_flag_spec=
10002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003 hardcode_automatic=no
10005 hardcode_direct_absolute=no
10006 hardcode_libdir_flag_spec=
10007 hardcode_libdir_flag_spec_ld=
10008 hardcode_libdir_separator=
10009 hardcode_minus_L=no
10010 hardcode_shlibpath_var=unsupported
10012 link_all_deplibs=unknown
10014 module_expsym_cmds=
10015 old_archive_from_new_cmds=
10016 old_archive_from_expsyms_cmds=
10017 thread_safe_flag_spec=
10018 whole_archive_flag_spec=
10019 # include_expsyms should be a list of space-separated symbols to be *always*
10020 # included in the symbol list
10022 # exclude_expsyms can be an extended regexp of symbols to exclude
10023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10025 # as well as any symbol that contains `d'.
10026 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10028 # platforms (ab)use it in PIC code, but their linkers get confused if
10029 # the symbol is explicitly referenced. Since portable code cannot
10030 # rely on this symbol name, it's probably fine to never include it in
10031 # preloaded symbol tables.
10032 # Exclude shared library initialization/finalization symbols.
10033 extract_expsyms_cmds=
10036 cygwin* | mingw* | pw32* | cegcc*)
10037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10038 # When not using gcc, we currently assume that we are using
10039 # Microsoft Visual C++.
10040 if test "$GCC" != yes; then
10045 # we just hope/assume this is gcc and not c89 (= MSVC++)
10054 if test "$with_gnu_ld" = yes; then
10055 # If archive_cmds runs LD, not CC, wlarc should be empty
10058 # Set some defaults for GNU ld with shared library support. These
10059 # are reset later if shared libraries are not supported. Putting them
10060 # here allows them to be overridden if necessary.
10061 runpath_var=LD_RUN_PATH
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 export_dynamic_flag_spec='${wl}--export-dynamic'
10064 # ancient GNU ld didn't support --whole-archive et. al.
10065 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10068 whole_archive_flag_spec=
10070 supports_anon_versioning=no
10071 case `$LD -v 2>&1` in
10072 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10074 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10075 *\ 2.11.*) ;; # other 2.11 versions
10076 *) supports_anon_versioning=yes ;;
10079 # See if GNU ld supports shared libraries.
10082 # On AIX/PPC, the GNU linker is very broken
10083 if test "$host_cpu" != ia64; then
10087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10088 *** to be unable to reliably create shared libraries on AIX.
10089 *** Therefore, libtool is disabling shared libraries support. If you
10090 *** really care for shared libraries, you may want to modify your PATH
10091 *** so that a non-GNU linker is found, and then restart.
10100 # see comment about AmigaOS4 .so support
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds=''
10105 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)'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114 allow_undefined_flag=unsupported
10115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10116 # support --undefined. This deserves some investigation. FIXME
10117 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 cygwin* | mingw* | pw32* | cegcc*)
10124 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10125 # as there is no search path for DLLs.
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 allow_undefined_flag=unsupported
10128 always_export_symbols=no
10129 enable_shared_with_static_runtimes=yes
10130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134 # If the export-symbols file already is a .def file (1st line
10135 # is EXPORTS), use it as is; otherwise, prepend...
10136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10137 cp $export_symbols $output_objdir/$soname.def;
10139 echo EXPORTS > $output_objdir/$soname.def;
10140 cat $export_symbols >> $output_objdir/$soname.def;
10142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150 hardcode_shlibpath_var=no
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154 # Instead, shared libraries are loaded at an image base (0x10000000 by
10155 # default) and relocated if they conflict, which is a slow very memory
10156 # consuming and fragmenting process. To avoid this, we pick a random,
10157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160 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'
10163 gnu* | linux* | tpf* | k*bsd*-gnu)
10165 if test "$host_os" = linux-dietlibc; then
10166 case $cc_basename in
10167 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10170 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171 && test "$tmp_diet" = no
10174 tmp_sharedflag='-shared'
10175 case $cc_basename,$host_cpu in
10176 pgcc*) # Portland Group C compiler
10177 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'
10178 tmp_addflag=' $pic_flag'
10180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10181 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'
10182 tmp_addflag=' $pic_flag -Mnomain' ;;
10183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10184 tmp_addflag=' -i_dynamic' ;;
10185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10186 tmp_addflag=' -i_dynamic -nofor_main' ;;
10187 ifc* | ifort*) # Intel Fortran compiler
10188 tmp_addflag=' -nofor_main' ;;
10189 lf95*) # Lahey Fortran 8.1
10190 whole_archive_flag_spec=
10191 tmp_sharedflag='--shared' ;;
10192 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10193 tmp_sharedflag='-qmkshrobj'
10196 case `$CC -V 2>&1 | sed 5q` in
10197 *Sun\ C*) # Sun C 5.9
10198 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10199 compiler_needs_object=yes
10200 tmp_sharedflag='-G' ;;
10201 *Sun\ F*) # Sun Fortran 8.3
10202 tmp_sharedflag='-G' ;;
10204 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 if test "x$supports_anon_versioning" = xyes; then
10207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209 echo "local: *; };" >> $output_objdir/$libname.ver~
10210 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10213 case $cc_basename in
10215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10216 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10217 hardcode_libdir_flag_spec=
10218 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10219 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10220 if test "x$supports_anon_versioning" = xyes; then
10221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223 echo "local: *; };" >> $output_objdir/$libname.ver~
10224 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems. Therefore, libtool
10250 *** is disabling shared libraries support. We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer. Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265 case `$LD -v 2>&1` in
10266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems. Therefore, libtool
10272 *** is disabling shared libraries support. We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10280 # For security reasons, it is highly recommended that you always
10281 # use absolute paths for naming shared libraries, and exclude the
10282 # DT_RUNPATH tag from executables and libraries. But doing so
10283 # requires that you compile everything twice, which is a pain.
10284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312 if test "$ld_shlibs" = no; then
10314 hardcode_libdir_flag_spec=
10315 export_dynamic_flag_spec=
10316 whole_archive_flag_spec=
10319 # PORTME fill in a description of your system's linker (not GNU ld)
10322 allow_undefined_flag=unsupported
10323 always_export_symbols=yes
10324 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'
10325 # Note: this linker hardcodes the directories in LIBPATH if there
10326 # are no directories specified by -L.
10327 hardcode_minus_L=yes
10328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329 # Neither direct hardcoding nor static linking is supported with a
10331 hardcode_direct=unsupported
10336 if test "$host_cpu" = ia64; then
10337 # On IA64, the linker does run time linking by default, so we don't
10338 # have to do anything special.
10339 aix_use_runtimelinking=no
10340 exp_sym_flag='-Bexport'
10343 # If we're using GNU nm, then we don't want the "-C" option.
10344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346 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'
10348 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'
10350 aix_use_runtimelinking=no
10352 # Test if we are trying to use run time linking or normal
10353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354 # need to do runtime linking.
10355 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10356 for ld_flag in $LDFLAGS; do
10357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10358 aix_use_runtimelinking=yes
10365 exp_sym_flag='-bexport'
10366 no_entry_flag='-bnoentry'
10369 # When large executables or shared objects are built, AIX ld can
10370 # have problems creating the table of contents. If linking a library
10371 # or program results in "error TOC overflow" add -mminimal-toc to
10372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10376 hardcode_direct=yes
10377 hardcode_direct_absolute=yes
10378 hardcode_libdir_separator=':'
10379 link_all_deplibs=yes
10380 file_list_spec='${wl}-f,'
10382 if test "$GCC" = yes; then
10383 case $host_os in aix4.[012]|aix4.[012].*)
10384 # We only want to do this on AIX 4.2 and lower, the check
10385 # below for broken collect2 doesn't work under 4.3+
10386 collect2name=`${CC} -print-prog-name=collect2`
10387 if test -f "$collect2name" &&
10388 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10390 # We have reworked collect2
10393 # We have old collect2
10394 hardcode_direct=unsupported
10395 # It fails to find uninstalled libraries when the uninstalled
10396 # path is not listed in the libpath. Setting hardcode_minus_L
10397 # to unsupported forces relinking
10398 hardcode_minus_L=yes
10399 hardcode_libdir_flag_spec='-L$libdir'
10400 hardcode_libdir_separator=
10404 shared_flag='-shared'
10405 if test "$aix_use_runtimelinking" = yes; then
10406 shared_flag="$shared_flag "'${wl}-G'
10410 if test "$host_cpu" = ia64; then
10411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10412 # chokes on -Wl,-G. The following line is correct:
10415 if test "$aix_use_runtimelinking" = yes; then
10416 shared_flag='${wl}-G'
10418 shared_flag='${wl}-bM:SRE'
10423 export_dynamic_flag_spec='${wl}-bexpall'
10424 # It seems that -bexpall does not export symbols beginning with
10425 # underscore (_), so it is better to generate a list of symbols to export.
10426 always_export_symbols=yes
10427 if test "$aix_use_runtimelinking" = yes; then
10428 # Warning - without using the other runtime loading flags (-brtl),
10429 # -berok will link without error, but may produce a broken library.
10430 allow_undefined_flag='-berok'
10431 # Determine the default libpath from the value encoded in an
10432 # empty executable.
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext &&
10465 $as_test_x conftest$ac_exeext; then
10467 lt_aix_libpath_sed='
10468 /Import File Strings/,/^$/ {
10474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 # Check for a 64-bit object if we didn't find anything.
10476 if test -z "$aix_libpath"; then
10477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10493 if test "$host_cpu" = ia64; then
10494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495 allow_undefined_flag="-z nodefs"
10496 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"
10498 # Determine the default libpath from the value encoded in an
10499 # empty executable.
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext &&
10532 $as_test_x conftest$ac_exeext; then
10534 lt_aix_libpath_sed='
10535 /Import File Strings/,/^$/ {
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10558 # Warning - without using the other run time loading flags,
10559 # -berok will link without error, but may produce a broken library.
10560 no_undefined_flag=' ${wl}-bernotok'
10561 allow_undefined_flag=' ${wl}-berok'
10562 # Exported symbols can be pulled into shared objects from archives
10563 whole_archive_flag_spec='$convenience'
10564 archive_cmds_need_lc=yes
10565 # This is similar to how AIX traditionally builds its shared libraries.
10566 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'
10574 # see comment about AmigaOS4 .so support
10575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576 archive_expsym_cmds=''
10579 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)'
10580 hardcode_libdir_flag_spec='-L$libdir'
10581 hardcode_minus_L=yes
10587 export_dynamic_flag_spec=-rdynamic
10590 cygwin* | mingw* | pw32* | cegcc*)
10591 # When not using gcc, we currently assume that we are using
10592 # Microsoft Visual C++.
10593 # hardcode_libdir_flag_spec is actually meaningless, as there is
10594 # no search path for DLLs.
10595 hardcode_libdir_flag_spec=' '
10596 allow_undefined_flag=unsupported
10597 # Tell ltmain to make .lib files, not .a files.
10599 # Tell ltmain to make .dll files, not .so files.
10601 # FIXME: Setting linknames here is a bad hack.
10602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10603 # The linker will automatically build a .lib file if we build a DLL.
10604 old_archive_from_new_cmds='true'
10605 # FIXME: Should let the user specify the lib program.
10606 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10607 fix_srcfile_path='`cygpath -w "$srcfile"`'
10608 enable_shared_with_static_runtimes=yes
10611 darwin* | rhapsody*)
10614 archive_cmds_need_lc=no
10616 hardcode_automatic=yes
10617 hardcode_shlibpath_var=unsupported
10618 whole_archive_flag_spec=''
10619 link_all_deplibs=yes
10620 allow_undefined_flag="$_lt_dar_allow_undefined"
10621 case $cc_basename in
10622 ifort*) _lt_dar_can_shared=yes ;;
10623 *) _lt_dar_can_shared=$GCC ;;
10625 if test "$_lt_dar_can_shared" = "yes"; then
10626 output_verbose_link_cmd=echo
10627 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10628 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10629 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10630 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_shlibpath_var=no
10648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10649 # support. Future versions do this automatically, but an explicit c++rt0.o
10650 # does not break anything, and helps significantly (at the cost of a little
10653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_direct=yes
10656 hardcode_shlibpath_var=no
10659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_direct=yes
10663 hardcode_minus_L=yes
10664 hardcode_shlibpath_var=no
10667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10668 freebsd* | dragonfly*)
10669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10670 hardcode_libdir_flag_spec='-R$libdir'
10671 hardcode_direct=yes
10672 hardcode_shlibpath_var=no
10676 if test "$GCC" = yes; then
10677 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'
10679 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'
10681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682 hardcode_libdir_separator=:
10683 hardcode_direct=yes
10685 # hardcode_minus_L: Not really in the search PATH,
10686 # but as the default location of the library.
10687 hardcode_minus_L=yes
10688 export_dynamic_flag_spec='${wl}-E'
10692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10697 if test "$with_gnu_ld" = no; then
10698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10699 hardcode_libdir_flag_spec_ld='+b $libdir'
10700 hardcode_libdir_separator=:
10701 hardcode_direct=yes
10702 hardcode_direct_absolute=yes
10703 export_dynamic_flag_spec='${wl}-E'
10704 # hardcode_minus_L: Not really in the search PATH,
10705 # but as the default location of the library.
10706 hardcode_minus_L=yes
10711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736 if test "$with_gnu_ld" = no; then
10737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738 hardcode_libdir_separator=:
10743 hardcode_shlibpath_var=no
10746 hardcode_direct=yes
10747 hardcode_direct_absolute=yes
10748 export_dynamic_flag_spec='${wl}-E'
10750 # hardcode_minus_L: Not really in the search PATH,
10751 # but as the default location of the library.
10752 hardcode_minus_L=yes
10758 irix5* | irix6* | nonstopux*)
10759 if test "$GCC" = yes; then
10760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10761 # Try to use the -exported_symbol ld option, if it does not
10762 # work, assume that -exports_file does not work either and
10763 # implicitly export all symbols.
10764 save_LDFLAGS="$LDFLAGS"
10765 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10766 cat >conftest.$ac_ext <<_ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest$ac_exeext &&
10786 $as_test_x conftest$ac_exeext; then
10787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LDFLAGS="$save_LDFLAGS"
10800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10803 archive_cmds_need_lc='no'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 hardcode_libdir_separator=:
10807 link_all_deplibs=yes
10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10814 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10816 hardcode_libdir_flag_spec='-R$libdir'
10817 hardcode_direct=yes
10818 hardcode_shlibpath_var=no
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_direct=yes
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator=:
10826 hardcode_shlibpath_var=no
10833 if test -f /usr/libexec/ld.so; then
10834 hardcode_direct=yes
10835 hardcode_shlibpath_var=no
10836 hardcode_direct_absolute=yes
10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841 export_dynamic_flag_spec='${wl}-E'
10844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846 hardcode_libdir_flag_spec='-R$libdir'
10849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_minus_L=yes
10862 allow_undefined_flag=unsupported
10863 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'
10864 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10868 if test "$GCC" = yes; then
10869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10872 allow_undefined_flag=' -expect_unresolved \*'
10873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10875 archive_cmds_need_lc='no'
10876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877 hardcode_libdir_separator=:
10880 osf4* | osf5*) # as osf3* with the addition of -msym flag
10881 if test "$GCC" = yes; then
10882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10886 allow_undefined_flag=' -expect_unresolved \*'
10887 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10889 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10891 # Both c and cxx compiler support -rpath directly
10892 hardcode_libdir_flag_spec='-rpath $libdir'
10894 archive_cmds_need_lc='no'
10895 hardcode_libdir_separator=:
10899 no_undefined_flag=' -z defs'
10900 if test "$GCC" = yes; then
10902 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10906 case `$CC -V 2>&1` in
10909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10915 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921 hardcode_libdir_flag_spec='-R$libdir'
10922 hardcode_shlibpath_var=no
10924 solaris2.[0-5] | solaris2.[0-5].*) ;;
10926 # The compiler driver will combine and reorder linker options,
10927 # but understands `-z linker_flag'. GCC discards it without `$wl',
10928 # but is careful enough not to reorder.
10929 # Supported since Solaris 2.6 (maybe 2.5.1?)
10930 if test "$GCC" = yes; then
10931 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10937 link_all_deplibs=yes
10941 if test "x$host_vendor" = xsequent; then
10942 # Use $CC to link under sequent, because it throws in some extra .o
10943 # files that make .init and .fini sections work.
10944 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10948 hardcode_libdir_flag_spec='-L$libdir'
10949 hardcode_direct=yes
10950 hardcode_minus_L=yes
10951 hardcode_shlibpath_var=no
10955 case $host_vendor in
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_direct=yes # is this really true???
10961 ## LD is ld it makes a PLAMLIB
10962 ## CC just makes a GrossModule.
10963 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964 reload_cmds='$CC -r -o $output$reload_objs'
10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10972 runpath_var='LD_RUN_PATH'
10973 hardcode_shlibpath_var=no
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_shlibpath_var=no
10979 export_dynamic_flag_spec='-Bexport'
10983 if test -d /usr/nec; then
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_shlibpath_var=no
10986 runpath_var=LD_RUN_PATH
10987 hardcode_runpath_var=yes
10992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993 no_undefined_flag='${wl}-z,text'
10994 archive_cmds_need_lc=no
10995 hardcode_shlibpath_var=no
10996 runpath_var='LD_RUN_PATH'
10998 if test "$GCC" = yes; then
10999 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 sysv5* | sco3.2v5* | sco5v6*)
11008 # Note: We can NOT use -z defs as we might desire, because we do not
11009 # link with -lc, and that would cause any symbols used from libc to
11010 # always be unresolved, which means just about no library would
11011 # ever link correctly. If we're not using GNU ld we use -z text
11012 # though, which does catch some bad symbols but isn't as heavy-handed
11014 no_undefined_flag='${wl}-z,text'
11015 allow_undefined_flag='${wl}-z,nodefs'
11016 archive_cmds_need_lc=no
11017 hardcode_shlibpath_var=no
11018 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019 hardcode_libdir_separator=':'
11020 link_all_deplibs=yes
11021 export_dynamic_flag_spec='${wl}-Bexport'
11022 runpath_var='LD_RUN_PATH'
11024 if test "$GCC" = yes; then
11025 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035 hardcode_libdir_flag_spec='-L$libdir'
11036 hardcode_shlibpath_var=no
11044 if test x$host_vendor = xsni; then
11046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047 export_dynamic_flag_spec='${wl}-Blargedynsym'
11053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11054 echo "${ECHO_T}$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11057 with_gnu_ld=$with_gnu_ld
11074 # Do we need to explicitly link libc?
11076 case "x$archive_cmds_need_lc" in
11078 # Assume -lc should be added
11079 archive_cmds_need_lc=yes
11081 if test "$enable_shared" = yes && test "$GCC" = yes; then
11082 case $archive_cmds in
11084 # FIXME: we may have to deal with multi-command sequences.
11087 # Test whether the compiler implicitly links with -lc since on some
11088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089 # to ld, don't add -lc before -lgcc.
11090 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } 2>conftest.err; then
11102 libobjs=conftest.$ac_objext
11104 wl=$lt_prog_compiler_wl
11105 pic_flag=$lt_prog_compiler_pic
11111 lt_save_allow_undefined_flag=$allow_undefined_flag
11112 allow_undefined_flag=
11113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11114 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }
11119 archive_cmds_need_lc=no
11121 archive_cmds_need_lc=yes
11123 allow_undefined_flag=$lt_save_allow_undefined_flag
11125 cat conftest.err 1>&5
11128 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11292 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11295 if test "$GCC" = yes; then
11297 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298 *) lt_awk_arg="/^libraries:/" ;;
11300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11302 # if the path contains ";" then we assume it to be the separator
11303 # otherwise default to the standard path separator (i.e. ":") - it is
11304 # assumed that no part of a normal pathname contains ";" but that should
11305 # okay in the real world where ";" in dirpaths is itself problematic.
11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11310 # Ok, now we have the path, separated by spaces, we can step through it
11311 # and add multilib dir if necessary.
11312 lt_tmp_lt_search_path_spec=
11313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11314 for lt_sys_path in $lt_search_path_spec; do
11315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11318 test -d "$lt_sys_path" && \
11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11322 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11323 BEGIN {RS=" "; FS="/|\n";} {
11326 for (lt_i = NF; lt_i > 0; lt_i--) {
11327 if ($lt_i != "" && $lt_i != ".") {
11328 if ($lt_i == "..") {
11331 if (lt_count == 0) {
11332 lt_foo="/" $lt_i lt_foo;
11339 if (lt_foo != "") { lt_freq[lt_foo]++; }
11340 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11342 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11346 library_names_spec=
11347 libname_spec='lib$name'
11351 postuninstall_cmds=
11355 shlibpath_overrides_runpath=unknown
11357 dynamic_linker="$host_os ld.so"
11358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11359 need_lib_prefix=unknown
11360 hardcode_into_libs=no
11362 # when you set need_version to no, make sure it does not cause -set_version
11363 # flags to be left without arguments
11364 need_version=unknown
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11370 shlibpath_var=LIBPATH
11372 # AIX 3 has no versioning support, so we append a major version to the name.
11373 soname_spec='${libname}${release}${shared_ext}$major'
11380 hardcode_into_libs=yes
11381 if test "$host_cpu" = ia64; then
11382 # AIX 5 supports IA64
11383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11384 shlibpath_var=LD_LIBRARY_PATH
11386 # With GCC up to 2.95.x, collect2 would create an import file
11387 # for dependence libraries. The import file would start with
11388 # the line `#! .'. This would cause the generated library to
11389 # depend on `.', always an invalid library. This was fixed in
11390 # development snapshots of GCC prior to 3.0.
11392 aix4 | aix4.[01] | aix4.[01].*)
11393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11395 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11398 can_build_shared=no
11402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11403 # soname into executable. Probably we can add versioning support to
11404 # collect2, so additional links can be useful in future.
11405 if test "$aix_use_runtimelinking" = yes; then
11406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407 # instead of lib<name>.a to let people know that these are not
11408 # typical AIX shared libraries.
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411 # We preserve .a as extension for shared libraries through AIX4.2
11412 # and later when we are not doing run time linking.
11413 library_names_spec='${libname}${release}.a $libname.a'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LIBPATH
11423 # Since July 2007 AmigaOS4 officially supports .so libraries.
11424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 library_names_spec='$libname.ixlibrary $libname.a'
11429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430 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'
11436 library_names_spec='${libname}${shared_ext}'
11437 dynamic_linker="$host_os ld.so"
11438 shlibpath_var=LIBRARY_PATH
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 soname_spec='${libname}${release}${shared_ext}$major'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450 # the default ld.so.conf also contains /usr/contrib/lib and
11451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452 # libtool to hard-code these into programs
11455 cygwin* | mingw* | pw32* | cegcc*)
11456 version_type=windows
11461 case $GCC,$host_os in
11462 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11463 library_names_spec='$libname.dll.a'
11464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465 postinstall_cmds='base_file=`basename \${file}`~
11466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11467 dldir=$destdir/`dirname \$dlpath`~
11468 test -d \$dldir || mkdir -p \$dldir~
11469 $install_prog $dir/$dlname \$dldir/$dlname~
11470 chmod a+x \$dldir/$dlname~
11471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475 dlpath=$dir/\$dldll~
11477 shlibpath_overrides_runpath=yes
11481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11486 # MinGW DLLs use traditional 'lib' prefix
11487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11489 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490 # It is most probably a Windows format PATH printed by
11491 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11492 # path with ; separators, and with drive letters. We can handle the
11493 # drive letters (cygwin fileutils understands them), so leave them,
11494 # especially as we might pass files found there to a mingw objdump,
11495 # which wouldn't understand a cygwinified path. Ahh.
11496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11502 # pw32 DLLs use 'pw' prefix rather than 'lib'
11503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11512 dynamic_linker='Win32 ld.exe'
11513 # FIXME: first we should search . and the directory the executable is in
11517 darwin* | rhapsody*)
11518 dynamic_linker="$host_os dyld"
11519 version_type=darwin
11522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11523 soname_spec='${libname}${release}${major}$shared_ext'
11524 shlibpath_overrides_runpath=yes
11525 shlibpath_var=DYLD_LIBRARY_PATH
11526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11545 freebsd* | dragonfly*)
11546 # DragonFly does not have aout. When/if they implement a new
11547 # versioning mechanism, adjust this.
11548 if test -x /usr/bin/objformat; then
11549 objformat=`/usr/bin/objformat`
11552 freebsd[123]*) objformat=aout ;;
11553 *) objformat=elf ;;
11556 version_type=freebsd-$objformat
11557 case $version_type in
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11573 freebsd3.[01]* | freebsdelf3.[01]*)
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11577 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11578 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
11582 *) # from 4.6 on, and DragonFly
11583 shlibpath_overrides_runpath=yes
11584 hardcode_into_libs=yes
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 hardcode_into_libs=yes
11599 hpux9* | hpux10* | hpux11*)
11600 # Give a soname corresponding to the major version so that dld.sl refuses to
11601 # link against other versions.
11608 hardcode_into_libs=yes
11609 dynamic_linker="$host_os dld.so"
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 if test "X$HPUX_IA64_MODE" = X32; then
11615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623 hardcode_into_libs=yes
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634 dynamic_linker="$host_os dld.sl"
11635 shlibpath_var=SHLIB_PATH
11636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11641 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11642 postinstall_cmds='chmod 555 $lib'
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 hardcode_into_libs=yes
11657 irix5* | irix6* | nonstopux*)
11659 nonstopux*) version_type=nonstopux ;;
11661 if test "$lt_cv_prog_gnu_ld" = yes; then
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11672 irix5* | nonstopux*)
11673 libsuff= shlibsuff=
11676 case $LD in # libtool.m4 will add one of these switches to LD
11677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678 libsuff= shlibsuff= libmagic=32-bit;;
11679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680 libsuff=32 shlibsuff=N32 libmagic=N32;;
11681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683 *) libsuff= shlibsuff= libmagic=never-match;;
11687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688 shlibpath_overrides_runpath=no
11689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691 hardcode_into_libs=yes
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11699 # This must be Linux ELF.
11700 linux* | k*bsd*-gnu)
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no
11709 # Some binutils ld are patched to set DT_RUNPATH
11710 save_LDFLAGS=$LDFLAGS
11711 save_libdir=$libdir
11712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest$ac_exeext &&
11746 $as_test_x conftest$ac_exeext; then
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11748 shlibpath_overrides_runpath=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LDFLAGS=$save_LDFLAGS
11761 libdir=$save_libdir
11763 # This implies no fast_install, which is unacceptable.
11764 # Some rework will be needed to allow for fast_install
11765 # before this can be enabled.
11766 hardcode_into_libs=yes
11768 # Append ld.so.conf contents to the search path
11769 if test -f /etc/ld.so.conf; then
11770 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11774 # We used to test for /lib/ld.so.1 and disable shared libraries on
11775 # powerpc, because MkLinux only supported shared libraries with the
11776 # GNU dynamic linker. Since this was broken with cross compilers,
11777 # most powerpc-linux boxes support dynamic linking these days and
11778 # people can always --disable-shared, the test was removed, and we
11779 # assume the GNU/Linux dynamic linker is in use.
11780 dynamic_linker='GNU/Linux ld.so'
11787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790 dynamic_linker='NetBSD (a.out) ld.so'
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 dynamic_linker='NetBSD ld.elf_so'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=yes
11798 hardcode_into_libs=yes
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 hardcode_into_libs=yes
11817 dynamic_linker='ldqnx.so'
11822 sys_lib_dlsearch_path_spec="/usr/lib"
11824 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11826 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11827 *) need_version=no ;;
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834 openbsd2.[89] | openbsd2.[89].*)
11835 shlibpath_overrides_runpath=no
11838 shlibpath_overrides_runpath=yes
11842 shlibpath_overrides_runpath=yes
11847 libname_spec='$name'
11850 library_names_spec='$libname${shared_ext} $libname.a'
11851 dynamic_linker='OS/2 ld.exe'
11852 shlibpath_var=LIBPATH
11855 osf3* | osf4* | osf5*)
11859 soname_spec='${libname}${release}${shared_ext}$major'
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11863 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 # ldd complains unless libraries are executable
11880 postinstall_cmds='chmod +x $lib'
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 if test "$with_gnu_ld" = yes; then
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 soname_spec='${libname}${release}${shared_ext}$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 case $host_vendor in
11902 shlibpath_overrides_runpath=no
11904 runpath_var=LD_RUN_PATH
11912 shlibpath_overrides_runpath=no
11913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11919 if test -d /usr/nec ;then
11921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11922 soname_spec='$libname${shared_ext}.$major'
11923 shlibpath_var=LD_LIBRARY_PATH
11927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11928 version_type=freebsd-elf
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=yes
11935 hardcode_into_libs=yes
11936 if test "$with_gnu_ld" = yes; then
11937 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11939 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11946 sys_lib_dlsearch_path_spec='/usr/lib'
11950 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=no
11957 hardcode_into_libs=yes
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11971 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11972 echo "${ECHO_T}$dynamic_linker" >&6; }
11973 test "$dynamic_linker" = no && can_build_shared=no
11975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11976 if test "$GCC" = yes; then
11977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11981 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12073 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12076 if test -n "$hardcode_libdir_flag_spec" ||
12077 test -n "$runpath_var" ||
12078 test "X$hardcode_automatic" = "Xyes" ; then
12080 # We can hardcode non-existent directories.
12081 if test "$hardcode_direct" != no &&
12082 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12083 # have to relink, otherwise we might link with an installed library
12084 # when we should be linking with a yet-to-be-installed one
12085 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12086 test "$hardcode_minus_L" != no; then
12087 # Linking always hardcodes the temporary library directory.
12088 hardcode_action=relink
12090 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12091 hardcode_action=immediate
12094 # We cannot hardcode anything, or else we can only hardcode existing
12096 hardcode_action=unsupported
12098 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12099 echo "${ECHO_T}$hardcode_action" >&6; }
12101 if test "$hardcode_action" = relink ||
12102 test "$inherit_rpath" = yes; then
12103 # Fast installation is not supported
12104 enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106 test "$enable_shared" = no; then
12107 # Fast installation is not necessary
12108 enable_fast_install=needless
12116 if test "x$enable_dlopen" != xyes; then
12117 enable_dlopen=unknown
12118 enable_dlopen_self=unknown
12119 enable_dlopen_self_static=unknown
12126 lt_cv_dlopen="load_add_on"
12128 lt_cv_dlopen_self=yes
12131 mingw* | pw32* | cegcc*)
12132 lt_cv_dlopen="LoadLibrary"
12137 lt_cv_dlopen="dlopen"
12142 # if libdl is installed we need to link against it
12143 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS=$LIBS
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest$ac_exeext &&
12189 $as_test_x conftest$ac_exeext; then
12190 ac_cv_lib_dl_dlopen=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_lib_dl_dlopen=no
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12204 if test $ac_cv_lib_dl_dlopen = yes; then
12205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12208 lt_cv_dlopen="dyld"
12210 lt_cv_dlopen_self=yes
12217 { echo "$as_me:$LINENO: checking for shl_load" >&5
12218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12219 if test "${ac_cv_func_shl_load+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12230 #define shl_load innocuous_shl_load
12232 /* System header to define __stub macros and hopefully few prototypes,
12233 which can conflict with char shl_load (); below.
12234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12235 <limits.h> exists even on freestanding compilers. */
12238 # include <limits.h>
12240 # include <assert.h>
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined __stub_shl_load || defined __stub___shl_load
12262 return shl_load ();
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest$ac_exeext &&
12284 $as_test_x conftest$ac_exeext; then
12285 ac_cv_func_shl_load=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_func_shl_load=no
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12296 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12298 if test $ac_cv_func_shl_load = yes; then
12299 lt_cv_dlopen="shl_load"
12301 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_check_lib_save_LIBS=$LIBS
12308 cat >conftest.$ac_ext <<_ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12325 return shl_load ();
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_dld_shl_load=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_dld_shl_load=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12365 { echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define dlopen innocuous_dlopen
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char dlopen (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12386 # include <limits.h>
12388 # include <assert.h>
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest$ac_exeext &&
12432 $as_test_x conftest$ac_exeext; then
12433 ac_cv_func_dlopen=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_cv_func_dlopen=no
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442 conftest$ac_exeext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12446 if test $ac_cv_func_dlopen = yes; then
12447 lt_cv_dlopen="dlopen"
12449 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 ac_check_lib_save_LIBS=$LIBS
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12463 /* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_link") 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && {
12492 test -z "$ac_c_werror_flag" ||
12493 test ! -s conftest.err
12494 } && test -s conftest$ac_exeext &&
12495 $as_test_x conftest$ac_exeext; then
12496 ac_cv_lib_dl_dlopen=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_cv_lib_dl_dlopen=no
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12510 if test $ac_cv_lib_dl_dlopen = yes; then
12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12513 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext &&
12559 $as_test_x conftest$ac_exeext; then
12560 ac_cv_lib_svld_dlopen=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_lib_svld_dlopen=no
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12574 if test $ac_cv_lib_svld_dlopen = yes; then
12575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12577 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_check_lib_save_LIBS=$LIBS
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12601 return dld_link ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest$ac_exeext &&
12623 $as_test_x conftest$ac_exeext; then
12624 ac_cv_lib_dld_dld_link=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_cv_lib_dld_dld_link=no
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12638 if test $ac_cv_lib_dld_dld_link = yes; then
12639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12660 if test "x$lt_cv_dlopen" != xno; then
12666 case $lt_cv_dlopen in
12668 save_CPPFLAGS="$CPPFLAGS"
12669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12671 save_LDFLAGS="$LDFLAGS"
12672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12675 LIBS="$lt_cv_dlopen_libs $LIBS"
12677 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12679 if test "${lt_cv_dlopen_self+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test "$cross_compiling" = yes; then :
12683 lt_cv_dlopen_self=cross
12685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686 lt_status=$lt_dlunknown
12687 cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12698 # define LT_DLGLOBAL RTLD_GLOBAL
12701 # define LT_DLGLOBAL DL_GLOBAL
12703 # define LT_DLGLOBAL 0
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708 find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12714 # define LT_DLLAZY_OR_NOW DL_LAZY
12717 # define LT_DLLAZY_OR_NOW RTLD_NOW
12720 # define LT_DLLAZY_OR_NOW DL_NOW
12722 # define LT_DLLAZY_OR_NOW 0
12729 void fnord() { int i=42;}
12732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12733 int status = $lt_dlunknown;
12737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12739 /* dlclose (self); */
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12752 (./conftest; exit; ) >&5 2>/dev/null
12754 case x$lt_status in
12755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12760 # compilation failed
12761 lt_cv_dlopen_self=no
12768 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12771 if test "x$lt_cv_dlopen_self" = xyes; then
12772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12775 if test "${lt_cv_dlopen_self_static+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 if test "$cross_compiling" = yes; then :
12779 lt_cv_dlopen_self_static=cross
12781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782 lt_status=$lt_dlunknown
12783 cat > conftest.$ac_ext <<_LT_EOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12794 # define LT_DLGLOBAL RTLD_GLOBAL
12797 # define LT_DLGLOBAL DL_GLOBAL
12799 # define LT_DLGLOBAL 0
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804 find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12810 # define LT_DLLAZY_OR_NOW DL_LAZY
12813 # define LT_DLLAZY_OR_NOW RTLD_NOW
12816 # define LT_DLLAZY_OR_NOW DL_NOW
12818 # define LT_DLLAZY_OR_NOW 0
12825 void fnord() { int i=42;}
12828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829 int status = $lt_dlunknown;
12833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835 /* dlclose (self); */
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12848 (./conftest; exit; ) >&5 2>/dev/null
12850 case x$lt_status in
12851 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12852 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12853 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12856 # compilation failed
12857 lt_cv_dlopen_self_static=no
12864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12865 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12868 CPPFLAGS="$save_CPPFLAGS"
12869 LDFLAGS="$save_LDFLAGS"
12874 case $lt_cv_dlopen_self in
12875 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12876 *) enable_dlopen_self=unknown ;;
12879 case $lt_cv_dlopen_self_static in
12880 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12881 *) enable_dlopen_self_static=unknown ;;
12903 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12904 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12906 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12907 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12908 { echo "$as_me:$LINENO: result: yes" >&5
12909 echo "${ECHO_T}yes" >&6; }
12911 # FIXME - insert some real tests, host_os isn't really good enough
12914 if test -n "$STRIP" ; then
12915 striplib="$STRIP -x"
12916 old_striplib="$STRIP -S"
12917 { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12925 { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12942 # Report which library types will actually be built
12943 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12945 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946 echo "${ECHO_T}$can_build_shared" >&6; }
12948 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12950 test "$can_build_shared" = "no" && enable_shared=no
12952 # On AIX, shared libraries and static libraries use the same namespace, and
12953 # are all built from PIC.
12956 test "$enable_shared" = yes && enable_static=no
12957 if test -n "$RANLIB"; then
12958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959 postinstall_cmds='$RANLIB $lib'
12964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12965 test "$enable_shared" = yes && enable_static=no
12969 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12970 echo "${ECHO_T}$enable_shared" >&6; }
12972 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12974 # Make sure either enable_shared or enable_static is yes.
12975 test "$enable_shared" = yes || enable_static=yes
12976 { echo "$as_me:$LINENO: result: $enable_static" >&5
12977 echo "${ECHO_T}$enable_static" >&6; }
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993 ac_cpp='$CXXCPP $CPPFLAGS'
12994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998 archive_cmds_need_lc_CXX=no
12999 allow_undefined_flag_CXX=
13000 always_export_symbols_CXX=no
13001 archive_expsym_cmds_CXX=
13002 compiler_needs_object_CXX=no
13003 export_dynamic_flag_spec_CXX=
13004 hardcode_direct_CXX=no
13005 hardcode_direct_absolute_CXX=no
13006 hardcode_libdir_flag_spec_CXX=
13007 hardcode_libdir_flag_spec_ld_CXX=
13008 hardcode_libdir_separator_CXX=
13009 hardcode_minus_L_CXX=no
13010 hardcode_shlibpath_var_CXX=unsupported
13011 hardcode_automatic_CXX=no
13012 inherit_rpath_CXX=no
13014 module_expsym_cmds_CXX=
13015 link_all_deplibs_CXX=unknown
13016 old_archive_cmds_CXX=$old_archive_cmds
13017 no_undefined_flag_CXX=
13018 whole_archive_flag_spec_CXX=
13019 enable_shared_with_static_runtimes_CXX=no
13021 # Source file extension for C++ test sources.
13024 # Object file extension for compiled C++ test sources.
13028 # No sense in running all these tests if we already determined that
13029 # the CXX compiler isn't working. Some variables (like enable_shared)
13030 # are currently assumed to apply to all compilers on this platform,
13031 # and will be corrupted by setting them based on a non-working compiler.
13032 if test "$_lt_caught_CXX_error" != yes; then
13033 # Code to be used in simple compile tests
13034 lt_simple_compile_test_code="int some_variable = 0;"
13036 # Code to be used in simple link tests
13037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13046 # If no C compiler was specified, use CC.
13049 # If no C compiler flags were specified, use CFLAGS.
13050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13052 # Allow CC to be a program name with arguments.
13056 # save warnings/boilerplate of simple test code
13057 ac_outfile=conftest.$ac_objext
13058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13060 _lt_compiler_boilerplate=`cat conftest.err`
13063 ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_linker_boilerplate=`cat conftest.err`
13070 # Allow CC to be a program name with arguments.
13075 lt_save_with_gnu_ld=$with_gnu_ld
13076 lt_save_path_LD=$lt_cv_path_LD
13077 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13078 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13080 $as_unset lt_cv_prog_gnu_ld
13082 if test -n "${lt_cv_path_LDCXX+set}"; then
13083 lt_cv_path_LD=$lt_cv_path_LDCXX
13085 $as_unset lt_cv_path_LD
13087 test -z "${LDCXX+set}" || LD=$LDCXX
13091 for cc_temp in $compiler""; do
13093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13099 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13102 if test -n "$compiler"; then
13103 # We don't want -fno-exception when compiling C++ code, so set the
13104 # no_builtin_flag separately
13105 if test "$GXX" = yes; then
13106 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13108 lt_prog_compiler_no_builtin_flag_CXX=
13111 if test "$GXX" = yes; then
13112 # Set up default GNU C++ configuration
13116 # Check whether --with-gnu-ld was given.
13117 if test "${with_gnu_ld+set}" = set; then
13118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13124 if test "$GCC" = yes; then
13125 # Check if gcc -print-prog-name=ld gives a path.
13126 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13130 # gcc leaves a trailing carriage return which upsets mingw
13131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13136 # Accept absolute paths.
13138 re_direlt='/[^/][^/]*/\.\./'
13139 # Canonicalize the pathname of ld
13140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13144 test -z "$LD" && LD="$ac_prog"
13147 # If it fails, then pretend we aren't using GCC.
13151 # If it is relative, then search for the first ld in PATH.
13152 with_gnu_ld=unknown
13155 elif test "$with_gnu_ld" = yes; then
13156 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13159 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13162 if test "${lt_cv_path_LD+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 if test -z "$LD"; then
13166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13167 for ac_dir in $PATH; do
13169 test -z "$ac_dir" && ac_dir=.
13170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13171 lt_cv_path_LD="$ac_dir/$ac_prog"
13172 # Check to see if the program is GNU ld. I'd rather use --version,
13173 # but apparently some variants of GNU ld only accept -v.
13174 # Break only if it was the GNU/non-GNU ld that we prefer.
13175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13176 *GNU* | *'with BFD'*)
13177 test "$with_gnu_ld" != no && break
13180 test "$with_gnu_ld" != yes && break
13187 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13191 LD="$lt_cv_path_LD"
13192 if test -n "$LD"; then
13193 { echo "$as_me:$LINENO: result: $LD" >&5
13194 echo "${ECHO_T}$LD" >&6; }
13196 { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13201 { (exit 1); exit 1; }; }
13202 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13208 case `$LD -v 2>&1 </dev/null` in
13209 *GNU* | *'with BFD'*)
13210 lt_cv_prog_gnu_ld=yes
13213 lt_cv_prog_gnu_ld=no
13217 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13219 with_gnu_ld=$lt_cv_prog_gnu_ld
13227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228 # archiving commands below assume that GNU ld is being used.
13229 if test "$with_gnu_ld" = yes; then
13230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236 # If archive_cmds runs LD, not CC, wlarc should be empty
13237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238 # investigate it a little bit more. (MM)
13241 # ancient GNU ld didn't support --whole-archive et. al.
13242 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13243 $GREP 'no-whole-archive' > /dev/null; then
13244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13246 whole_archive_flag_spec_CXX=
13252 # A generic and very simple default shared library creation
13253 # command for GNU C++ for the case where it uses the native
13254 # linker, instead of GNU ld. If possible, this setting should
13255 # overridden to take advantage of the native linker features on
13256 # the platform it is being used on.
13257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13271 # PORTME: fill in a description of your system's C++ link characteristics
13272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13277 # FIXME: insert proper C++ library support
13281 if test "$host_cpu" = ia64; then
13282 # On IA64, the linker does run time linking by default, so we don't
13283 # have to do anything special.
13284 aix_use_runtimelinking=no
13285 exp_sym_flag='-Bexport'
13288 aix_use_runtimelinking=no
13290 # Test if we are trying to use run time linking or normal
13291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292 # need to do runtime linking.
13293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13294 for ld_flag in $LDFLAGS; do
13297 aix_use_runtimelinking=yes
13305 exp_sym_flag='-bexport'
13306 no_entry_flag='-bnoentry'
13309 # When large executables or shared objects are built, AIX ld can
13310 # have problems creating the table of contents. If linking a library
13311 # or program results in "error TOC overflow" add -mminimal-toc to
13312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13315 archive_cmds_CXX=''
13316 hardcode_direct_CXX=yes
13317 hardcode_direct_absolute_CXX=yes
13318 hardcode_libdir_separator_CXX=':'
13319 link_all_deplibs_CXX=yes
13320 file_list_spec_CXX='${wl}-f,'
13322 if test "$GXX" = yes; then
13323 case $host_os in aix4.[012]|aix4.[012].*)
13324 # We only want to do this on AIX 4.2 and lower, the check
13325 # below for broken collect2 doesn't work under 4.3+
13326 collect2name=`${CC} -print-prog-name=collect2`
13327 if test -f "$collect2name" &&
13328 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13330 # We have reworked collect2
13333 # We have old collect2
13334 hardcode_direct_CXX=unsupported
13335 # It fails to find uninstalled libraries when the uninstalled
13336 # path is not listed in the libpath. Setting hardcode_minus_L
13337 # to unsupported forces relinking
13338 hardcode_minus_L_CXX=yes
13339 hardcode_libdir_flag_spec_CXX='-L$libdir'
13340 hardcode_libdir_separator_CXX=
13343 shared_flag='-shared'
13344 if test "$aix_use_runtimelinking" = yes; then
13345 shared_flag="$shared_flag "'${wl}-G'
13349 if test "$host_cpu" = ia64; then
13350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13351 # chokes on -Wl,-G. The following line is correct:
13354 if test "$aix_use_runtimelinking" = yes; then
13355 shared_flag='${wl}-G'
13357 shared_flag='${wl}-bM:SRE'
13362 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13363 # It seems that -bexpall does not export symbols beginning with
13364 # underscore (_), so it is better to generate a list of symbols to
13366 always_export_symbols_CXX=yes
13367 if test "$aix_use_runtimelinking" = yes; then
13368 # Warning - without using the other runtime loading flags (-brtl),
13369 # -berok will link without error, but may produce a broken library.
13370 allow_undefined_flag_CXX='-berok'
13371 # Determine the default libpath from the value encoded in an empty
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_cxx_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext &&
13405 $as_test_x conftest$ac_exeext; then
13407 lt_aix_libpath_sed='
13408 /Import File Strings/,/^$/ {
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13430 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13432 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13434 if test "$host_cpu" = ia64; then
13435 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13436 allow_undefined_flag_CXX="-z nodefs"
13437 archive_expsym_cmds_CXX="\$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"
13439 # Determine the default libpath from the value encoded in an
13440 # empty executable.
13441 cat >conftest.$ac_ext <<_ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_cxx_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13475 lt_aix_libpath_sed='
13476 /Import File Strings/,/^$/ {
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 # Check for a 64-bit object if we didn't find anything.
13484 if test -z "$aix_libpath"; then
13485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495 conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13499 # Warning - without using the other run time loading flags,
13500 # -berok will link without error, but may produce a broken library.
13501 no_undefined_flag_CXX=' ${wl}-bernotok'
13502 allow_undefined_flag_CXX=' ${wl}-berok'
13503 # Exported symbols can be pulled into shared objects from archives
13504 whole_archive_flag_spec_CXX='$convenience'
13505 archive_cmds_need_lc_CXX=yes
13506 # This is similar to how AIX traditionally builds its shared
13508 archive_expsym_cmds_CXX="\$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'
13514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13515 allow_undefined_flag_CXX=unsupported
13516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13517 # support --undefined. This deserves some investigation. FIXME
13518 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525 case $cc_basename in
13527 # FIXME: insert proper C++ library support
13533 cygwin* | mingw* | pw32* | cegcc*)
13534 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13535 # as there is no search path for DLLs.
13536 hardcode_libdir_flag_spec_CXX='-L$libdir'
13537 allow_undefined_flag_CXX=unsupported
13538 always_export_symbols_CXX=no
13539 enable_shared_with_static_runtimes_CXX=yes
13541 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13542 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13543 # If the export-symbols file already is a .def file (1st line
13544 # is EXPORTS), use it as is; otherwise, prepend...
13545 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546 cp $export_symbols $output_objdir/$soname.def;
13548 echo EXPORTS > $output_objdir/$soname.def;
13549 cat $export_symbols >> $output_objdir/$soname.def;
13551 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13556 darwin* | rhapsody*)
13559 archive_cmds_need_lc_CXX=no
13560 hardcode_direct_CXX=no
13561 hardcode_automatic_CXX=yes
13562 hardcode_shlibpath_var_CXX=unsupported
13563 whole_archive_flag_spec_CXX=''
13564 link_all_deplibs_CXX=yes
13565 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13566 case $cc_basename in
13567 ifort*) _lt_dar_can_shared=yes ;;
13568 *) _lt_dar_can_shared=$GCC ;;
13570 if test "$_lt_dar_can_shared" = "yes"; then
13571 output_verbose_link_cmd=echo
13572 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13573 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13574 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13575 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13576 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13577 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13578 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13588 case $cc_basename in
13590 # FIXME: insert proper C++ library support
13594 # Green Hills C++ Compiler
13595 # FIXME: insert proper C++ library support
13599 # FIXME: insert proper C++ library support
13606 # C++ shared libraries reported to be fairly broken before
13612 archive_cmds_need_lc_CXX=no
13615 freebsd* | dragonfly*)
13616 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13626 hardcode_libdir_separator_CXX=:
13627 export_dynamic_flag_spec_CXX='${wl}-E'
13628 hardcode_direct_CXX=yes
13629 hardcode_minus_L_CXX=yes # Not in the search PATH,
13630 # but as the default
13631 # location of the library.
13633 case $cc_basename in
13635 # FIXME: insert proper C++ library support
13639 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13640 # Commands to make compiler produce verbose output that lists
13641 # what "hidden" libraries, object files and flags are used when
13642 # linking a shared library.
13644 # There doesn't appear to be a way to prevent this compiler from
13645 # explicitly linking system object files so we need to strip them
13646 # from the output so that they don't get included in the library
13648 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13651 if test "$GXX" = yes; then
13652 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13654 # FIXME: insert proper C++ library support
13662 if test $with_gnu_ld = no; then
13663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664 hardcode_libdir_separator_CXX=:
13670 export_dynamic_flag_spec_CXX='${wl}-E'
13676 hardcode_direct_CXX=no
13677 hardcode_shlibpath_var_CXX=no
13680 hardcode_direct_CXX=yes
13681 hardcode_direct_absolute_CXX=yes
13682 hardcode_minus_L_CXX=yes # Not in the search PATH,
13683 # but as the default
13684 # location of the library.
13688 case $cc_basename in
13690 # FIXME: insert proper C++ library support
13696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 # Commands to make compiler produce verbose output that lists
13706 # what "hidden" libraries, object files and flags are used when
13707 # linking a shared library.
13709 # There doesn't appear to be a way to prevent this compiler from
13710 # explicitly linking system object files so we need to strip them
13711 # from the output so that they don't get included in the library
13713 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13716 if test "$GXX" = yes; then
13717 if test $with_gnu_ld = no; then
13720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13731 # FIXME: insert proper C++ library support
13739 hardcode_direct_CXX=no
13740 hardcode_shlibpath_var_CXX=no
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}-E'
13743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13744 # Instead, shared libraries are loaded at an image base (0x10000000 by
13745 # default) and relocated if they conflict, which is a slow very memory
13746 # consuming and fragmenting process. To avoid this, we pick a random,
13747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13749 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13750 archive_expsym_cmds_CXX='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'
13753 case $cc_basename in
13756 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13758 # Archives containing C++ object files must be created using
13759 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13760 # necessary to make sure instantiated templates are included
13762 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13765 if test "$GXX" = yes; then
13766 if test "$with_gnu_ld" = no; then
13767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13772 link_all_deplibs_CXX=yes
13775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776 hardcode_libdir_separator_CXX=:
13777 inherit_rpath_CXX=yes
13780 linux* | k*bsd*-gnu)
13781 case $cc_basename in
13783 # Kuck and Associates, Inc. (KAI) C++ Compiler
13785 # KCC will only create a shared library if the output file
13786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787 # to its proper name (with version) after linking.
13788 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13789 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13794 # There doesn't appear to be a way to prevent this compiler from
13795 # explicitly linking system object files so we need to strip them
13796 # from the output so that they don't get included in the library
13798 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13803 # Archives containing C++ object files must be created using
13804 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13805 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810 # version 8.0 and above of icpc choke on multiply defined symbols
13811 # if we add $predep_objects and $postdep_objects, however 7.1 and
13812 # earlier do not add the objects themselves.
13813 case `$CC -V 2>&1` in
13815 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13818 *) # Version 8.0 or newer
13821 ia64*) tmp_idyn=' -i_dynamic';;
13823 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827 archive_cmds_need_lc_CXX=no
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13833 # Portland Group C++ compiler
13835 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13836 prelink_cmds_CXX='tpldir=Template.dir~
13838 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13839 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13840 old_archive_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13843 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13845 archive_cmds_CXX='tpldir=Template.dir~
13847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13848 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13849 archive_expsym_cmds_CXX='tpldir=Template.dir~
13851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13854 *) # Version 6 will use weak symbols
13855 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13860 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13869 runpath_var=LD_RUN_PATH
13870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13871 hardcode_libdir_separator_CXX=:
13873 # Commands to make compiler produce verbose output that lists
13874 # what "hidden" libraries, object files and flags are used when
13875 # linking a shared library.
13877 # There doesn't appear to be a way to prevent this compiler from
13878 # explicitly linking system object files so we need to strip them
13879 # from the output so that they don't get included in the library
13881 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13884 # IBM XL 8.0 on PPC, with GNU ld
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13887 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 if test "x$supports_anon_versioning" = xyes; then
13889 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891 echo "local: *; };" >> $output_objdir/$libname.ver~
13892 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13896 case `$CC -V 2>&1 | sed 5q` in
13899 no_undefined_flag_CXX=' -zdefs'
13900 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13902 hardcode_libdir_flag_spec_CXX='-R$libdir'
13903 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13904 compiler_needs_object_CXX=yes
13906 # Not sure whether something based on
13907 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13909 output_verbose_link_cmd='echo'
13911 # Archives containing C++ object files must be created using
13912 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13913 # necessary to make sure instantiated templates are included
13915 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13923 # FIXME: insert proper C++ library support
13928 # FIXME: insert proper C++ library support
13933 case $cc_basename in
13935 # FIXME: insert proper C++ library support
13939 # FIXME: insert proper C++ library support
13946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13947 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13949 hardcode_libdir_flag_spec_CXX='-R$libdir'
13950 hardcode_direct_CXX=yes
13951 hardcode_shlibpath_var_CXX=no
13953 # Workaround some broken pre-1.5 toolchains
13954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13962 # C++ shared libraries are fairly broken
13967 if test -f /usr/libexec/ld.so; then
13968 hardcode_direct_CXX=yes
13969 hardcode_shlibpath_var_CXX=no
13970 hardcode_direct_absolute_CXX=yes
13971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13975 export_dynamic_flag_spec_CXX='${wl}-E'
13976 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13978 output_verbose_link_cmd=echo
13984 osf3* | osf4* | osf5*)
13985 case $cc_basename in
13987 # Kuck and Associates, Inc. (KAI) C++ Compiler
13989 # KCC will only create a shared library if the output file
13990 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13991 # to its proper name (with version) after linking.
13992 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995 hardcode_libdir_separator_CXX=:
13997 # Archives containing C++ object files must be created using
13998 # the KAI C++ compiler.
14000 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14001 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14005 # Rational C++ 2.4.1
14006 # FIXME: insert proper C++ library support
14012 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14013 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14017 allow_undefined_flag_CXX=' -expect_unresolved \*'
14018 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14019 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14020 echo "-hidden">> $lib.exp~
14021 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14023 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14027 hardcode_libdir_separator_CXX=:
14029 # Commands to make compiler produce verbose output that lists
14030 # what "hidden" libraries, object files and flags are used when
14031 # linking a shared library.
14033 # There doesn't appear to be a way to prevent this compiler from
14034 # explicitly linking system object files so we need to strip them
14035 # from the output so that they don't get included in the library
14037 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14041 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14044 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14047 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052 hardcode_libdir_separator_CXX=:
14054 # Commands to make compiler produce verbose output that lists
14055 # what "hidden" libraries, object files and flags are used when
14056 # linking a shared library.
14057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14060 # FIXME: insert proper C++ library support
14068 # FIXME: insert proper C++ library support
14073 case $cc_basename in
14076 # FIXME: insert proper C++ library support
14081 # FIXME: insert proper C++ library support
14085 # FIXME: insert proper C++ library support
14092 case $cc_basename in
14094 # Sun C++ 4.2, 5.x and Centerline C++
14095 archive_cmds_need_lc_CXX=yes
14096 no_undefined_flag_CXX=' -zdefs'
14097 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14099 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14101 hardcode_libdir_flag_spec_CXX='-R$libdir'
14102 hardcode_shlibpath_var_CXX=no
14104 solaris2.[0-5] | solaris2.[0-5].*) ;;
14106 # The compiler driver will combine and reorder linker options,
14107 # but understands `-z linker_flag'.
14108 # Supported since Solaris 2.6 (maybe 2.5.1?)
14109 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14112 link_all_deplibs_CXX=yes
14114 output_verbose_link_cmd='echo'
14116 # Archives containing C++ object files must be created using
14117 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14118 # necessary to make sure instantiated templates are included
14120 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14123 # Green Hills C++ Compiler
14124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14126 # The C++ compiler must be used to create the archive.
14127 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14130 # GNU C++ compiler with Solaris linker
14131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14132 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14133 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14134 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14138 # Commands to make compiler produce verbose output that lists
14139 # what "hidden" libraries, object files and flags are used when
14140 # linking a shared library.
14141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14143 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14145 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14149 # Commands to make compiler produce verbose output that lists
14150 # what "hidden" libraries, object files and flags are used when
14151 # linking a shared library.
14152 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14155 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14157 solaris2.[0-5] | solaris2.[0-5].*) ;;
14159 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14168 no_undefined_flag_CXX='${wl}-z,text'
14169 archive_cmds_need_lc_CXX=no
14170 hardcode_shlibpath_var_CXX=no
14171 runpath_var='LD_RUN_PATH'
14173 case $cc_basename in
14175 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 sysv5* | sco3.2v5* | sco5v6*)
14186 # Note: We can NOT use -z defs as we might desire, because we do not
14187 # link with -lc, and that would cause any symbols used from libc to
14188 # always be unresolved, which means just about no library would
14189 # ever link correctly. If we're not using GNU ld we use -z text
14190 # though, which does catch some bad symbols but isn't as heavy-handed
14192 no_undefined_flag_CXX='${wl}-z,text'
14193 allow_undefined_flag_CXX='${wl}-z,nodefs'
14194 archive_cmds_need_lc_CXX=no
14195 hardcode_shlibpath_var_CXX=no
14196 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14197 hardcode_libdir_separator_CXX=':'
14198 link_all_deplibs_CXX=yes
14199 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14200 runpath_var='LD_RUN_PATH'
14202 case $cc_basename in
14204 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 case $cc_basename in
14217 # NonStop-UX NCC 3.20
14218 # FIXME: insert proper C++ library support
14222 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14234 # FIXME: insert proper C++ library support
14239 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14240 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14241 test "$ld_shlibs_CXX" = no && can_build_shared=no
14247 ## There is no encapsulation within the following macros, do not change
14248 ## the running order or otherwise move them around unless you know exactly
14249 ## what you are doing...
14250 # Dependencies to place before and after the object being linked:
14251 predep_objects_CXX=
14252 postdep_objects_CXX=
14255 compiler_lib_search_path_CXX=
14257 cat > conftest.$ac_ext <<_LT_EOF
14261 Foo (void) { a = 0; }
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; then
14272 # Parse the compiler output and extract the necessary
14273 # objects, libraries and library flags.
14275 # Sentinel used to keep track of whether or not we are before
14276 # the conftest object file.
14277 pre_test_object_deps_done=no
14279 for p in `eval "$output_verbose_link_cmd"`; do
14283 # Some compilers place space between "-{L,R}" and the path.
14284 # Remove the space.
14285 if test $p = "-L" ||
14286 test $p = "-R"; then
14293 if test "$pre_test_object_deps_done" = no; then
14296 # Internal compiler library paths should come after those
14297 # provided the user. The postdeps already come after the
14298 # user supplied libs so there is no need to process them.
14299 if test -z "$compiler_lib_search_path_CXX"; then
14300 compiler_lib_search_path_CXX="${prev}${p}"
14302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14305 # The "-l" case would never come before the object being
14306 # linked, so don't bother handling this case.
14309 if test -z "$postdeps_CXX"; then
14310 postdeps_CXX="${prev}${p}"
14312 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14318 # This assumes that the test object file only shows up
14319 # once in the compiler output.
14320 if test "$p" = "conftest.$objext"; then
14321 pre_test_object_deps_done=yes
14325 if test "$pre_test_object_deps_done" = no; then
14326 if test -z "$predep_objects_CXX"; then
14327 predep_objects_CXX="$p"
14329 predep_objects_CXX="$predep_objects_CXX $p"
14332 if test -z "$postdep_objects_CXX"; then
14333 postdep_objects_CXX="$p"
14335 postdep_objects_CXX="$postdep_objects_CXX $p"
14340 *) ;; # Ignore the rest.
14348 echo "libtool.m4: error: problem compiling CXX test program"
14351 $RM -f confest.$objext
14353 # PORTME: override above test on systems where it is broken
14356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14357 # hack all around it, let's just trust "g++" to DTRT.
14358 predep_objects_CXX=
14359 postdep_objects_CXX=
14364 case `$CC -V 2>&1 | sed 5q` in
14368 # The more standards-conforming stlport4 library is
14369 # incompatible with the Cstd library. Avoid specifying
14370 # it if it's in CXXFLAGS. Ignore libCrun as
14371 # -library=stlport4 depends on it.
14372 case " $CXX $CXXFLAGS " in
14373 *" -library=stlport4 "*)
14374 solaris_use_stlport4=yes
14378 if test "$solaris_use_stlport4" != yes; then
14379 postdeps_CXX='-library=Cstd -library=Crun'
14386 case $cc_basename in
14388 # The more standards-conforming stlport4 library is
14389 # incompatible with the Cstd library. Avoid specifying
14390 # it if it's in CXXFLAGS. Ignore libCrun as
14391 # -library=stlport4 depends on it.
14392 case " $CXX $CXXFLAGS " in
14393 *" -library=stlport4 "*)
14394 solaris_use_stlport4=yes
14398 # Adding this requires a known-good setup of shared libraries for
14399 # Sun compiler versions before 5.6, else PIC objects from an old
14400 # archive will be linked into the output, leading to subtle bugs.
14401 if test "$solaris_use_stlport4" != yes; then
14402 postdeps_CXX='-library=Cstd -library=Crun'
14410 case " $postdeps_CXX " in
14411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14413 compiler_lib_search_dirs_CXX=
14414 if test -n "${compiler_lib_search_path_CXX}"; then
14415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14448 lt_prog_compiler_wl_CXX=
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX=
14452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14455 # C++ specific cases for pic, static, wl, etc.
14456 if test "$GXX" = yes; then
14457 lt_prog_compiler_wl_CXX='-Wl,'
14458 lt_prog_compiler_static_CXX='-static'
14462 # All AIX code is PIC.
14463 if test "$host_cpu" = ia64; then
14464 # AIX 5 now supports IA64 processor
14465 lt_prog_compiler_static_CXX='-Bstatic'
14472 # see comment about AmigaOS4 .so support
14473 lt_prog_compiler_pic_CXX='-fPIC'
14476 # FIXME: we need at least 68020 code to build shared libraries, but
14477 # adding the `-m68020' flag to GCC prevents building anything better,
14479 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14485 # PIC is the default for these OSes.
14487 mingw* | cygwin* | os2* | pw32* | cegcc*)
14488 # This hack is so that the source file can tell whether it is being
14489 # built for inclusion in a dll (and should export symbols for example).
14490 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14491 # (--disable-auto-import) libraries
14492 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14494 darwin* | rhapsody*)
14495 # PIC is the default on this platform
14496 # Common symbols not allowed in MH_DYLIB files
14497 lt_prog_compiler_pic_CXX='-fno-common'
14500 # DJGPP does not support shared libraries at all
14501 lt_prog_compiler_pic_CXX=
14504 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14505 # Instead, we relocate shared libraries at runtime.
14508 if test -d /usr/nec; then
14509 lt_prog_compiler_pic_CXX=-Kconform_pic
14513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14515 # sets the default TLS model and affects inlining.
14520 lt_prog_compiler_pic_CXX='-fPIC'
14525 # QNX uses GNU C++, but need to define -shared option too, otherwise
14526 # it will coredump.
14527 lt_prog_compiler_pic_CXX='-fPIC -shared'
14530 lt_prog_compiler_pic_CXX='-fPIC'
14536 # All AIX code is PIC.
14537 if test "$host_cpu" = ia64; then
14538 # AIX 5 now supports IA64 processor
14539 lt_prog_compiler_static_CXX='-Bstatic'
14541 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14545 case $cc_basename in
14547 # Green Hills C++ Compiler
14548 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14553 case $cc_basename in
14555 lt_prog_compiler_pic_CXX='-KPIC'
14558 # Green Hills C++ Compiler
14559 lt_prog_compiler_pic_CXX='-pic'
14565 freebsd* | dragonfly*)
14566 # FreeBSD uses GNU C++
14568 hpux9* | hpux10* | hpux11*)
14569 case $cc_basename in
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573 if test "$host_cpu" != ia64; then
14574 lt_prog_compiler_pic_CXX='+Z'
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14585 lt_prog_compiler_pic_CXX='+Z'
14594 # This is c89, which is MS Visual C++ (no shared libs)
14595 # Anyone wants to do a port?
14597 irix5* | irix6* | nonstopux*)
14598 case $cc_basename in
14600 lt_prog_compiler_wl_CXX='-Wl,'
14601 lt_prog_compiler_static_CXX='-non_shared'
14602 # CC pic flag -KPIC is the default.
14608 linux* | k*bsd*-gnu)
14609 case $cc_basename in
14612 lt_prog_compiler_wl_CXX='--backend -Wl,'
14613 lt_prog_compiler_pic_CXX='-fPIC'
14616 # old Intel C++ for x86_64 which still supported -KPIC.
14617 lt_prog_compiler_wl_CXX='-Wl,'
14618 lt_prog_compiler_pic_CXX='-KPIC'
14619 lt_prog_compiler_static_CXX='-static'
14622 # Intel C++, used to be incompatible with GCC.
14623 # ICC 10 doesn't accept -KPIC any more.
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 lt_prog_compiler_pic_CXX='-fPIC'
14626 lt_prog_compiler_static_CXX='-static'
14629 # Portland Group C++ compiler
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 lt_prog_compiler_pic_CXX='-fpic'
14632 lt_prog_compiler_static_CXX='-Bstatic'
14636 # Make sure the PIC flag is empty. It appears that all Alpha
14637 # Linux and Compaq Tru64 Unix objects are PIC.
14638 lt_prog_compiler_pic_CXX=
14639 lt_prog_compiler_static_CXX='-non_shared'
14642 # IBM XL 8.0 on PPC
14643 lt_prog_compiler_wl_CXX='-Wl,'
14644 lt_prog_compiler_pic_CXX='-qpic'
14645 lt_prog_compiler_static_CXX='-qstaticlink'
14648 case `$CC -V 2>&1 | sed 5q` in
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 lt_prog_compiler_static_CXX='-Bstatic'
14653 lt_prog_compiler_wl_CXX='-Qoption ld '
14664 case $cc_basename in
14666 lt_prog_compiler_pic_CXX='-W c,exportall'
14675 # QNX uses GNU C++, but need to define -shared option too, otherwise
14676 # it will coredump.
14677 lt_prog_compiler_pic_CXX='-fPIC -shared'
14679 osf3* | osf4* | osf5*)
14680 case $cc_basename in
14682 lt_prog_compiler_wl_CXX='--backend -Wl,'
14685 # Rational C++ 2.4.1
14686 lt_prog_compiler_pic_CXX='-pic'
14689 # Digital/Compaq C++
14690 lt_prog_compiler_wl_CXX='-Wl,'
14691 # Make sure the PIC flag is empty. It appears that all Alpha
14692 # Linux and Compaq Tru64 Unix objects are PIC.
14693 lt_prog_compiler_pic_CXX=
14694 lt_prog_compiler_static_CXX='-non_shared'
14703 case $cc_basename in
14705 # Sun C++ 4.2, 5.x and Centerline C++
14706 lt_prog_compiler_pic_CXX='-KPIC'
14707 lt_prog_compiler_static_CXX='-Bstatic'
14708 lt_prog_compiler_wl_CXX='-Qoption ld '
14711 # Green Hills C++ Compiler
14712 lt_prog_compiler_pic_CXX='-PIC'
14719 case $cc_basename in
14722 lt_prog_compiler_pic_CXX='-pic'
14723 lt_prog_compiler_static_CXX='-Bstatic'
14727 lt_prog_compiler_pic_CXX='-pic'
14733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14734 case $cc_basename in
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_pic_CXX='-KPIC'
14738 lt_prog_compiler_static_CXX='-Bstatic'
14743 case $cc_basename in
14745 # NonStop-UX NCC 3.20
14746 lt_prog_compiler_pic_CXX='-KPIC'
14755 lt_prog_compiler_can_build_shared_CXX=no
14761 # For platforms which do not support PIC, -DPIC is meaningless:
14763 lt_prog_compiler_pic_CXX=
14766 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14775 # Check to make sure the PIC flag actually works.
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14780 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 lt_cv_prog_compiler_pic_works_CXX=no
14784 ac_outfile=conftest.$ac_objext
14785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787 # Insert the option either (1) after the last *FLAGS variable, or
14788 # (2) before a word containing "conftest.", or (3) at the end.
14789 # Note that $ac_compile itself does not contain backslashes and begins
14790 # with a dollar sign (not a hyphen), so the echo should work correctly.
14791 # The option is referenced via a variable to avoid confusing sed.
14792 lt_compile=`echo "$ac_compile" | $SED \
14793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:14796: $lt_compile\"" >&5)
14797 (eval "$lt_compile" 2>conftest.err)
14799 cat conftest.err >&5
14800 echo "$as_me:14800: \$? = $ac_status" >&5
14801 if (exit $ac_status) && test -s "$ac_outfile"; then
14802 # The compiler can only warn and ignore the option if not recognized
14803 # So say no if there are warnings other than the usual output.
14804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807 lt_cv_prog_compiler_pic_works_CXX=yes
14813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817 case $lt_prog_compiler_pic_CXX in
14819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14822 lt_prog_compiler_pic_CXX=
14823 lt_prog_compiler_can_build_shared_CXX=no
14831 # Check to make sure the static flag actually works.
14833 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14834 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 lt_cv_prog_compiler_static_works_CXX=no
14840 save_LDFLAGS="$LDFLAGS"
14841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844 # The linker can only warn and ignore the option if not recognized
14845 # So say no if there are warnings
14846 if test -s conftest.err; then
14847 # Append any errors to the config.log.
14848 cat conftest.err 1>&5
14849 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851 if diff conftest.exp conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler_static_works_CXX=yes
14855 lt_cv_prog_compiler_static_works_CXX=yes
14859 LDFLAGS="$save_LDFLAGS"
14862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14863 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14865 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14868 lt_prog_compiler_static_CXX=
14874 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 lt_cv_prog_compiler_c_o_CXX=no
14880 $RM -r conftest 2>/dev/null
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886 lt_compiler_flag="-o out/conftest2.$ac_objext"
14887 # Insert the option either (1) after the last *FLAGS variable, or
14888 # (2) before a word containing "conftest.", or (3) at the end.
14889 # Note that $ac_compile itself does not contain backslashes and begins
14890 # with a dollar sign (not a hyphen), so the echo should work correctly.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>out/conftest.err)
14898 cat out/conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902 # The compiler can only warn and ignore the option if not recognized
14903 # So say no if there are warnings
14904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907 lt_cv_prog_compiler_c_o_CXX=yes
14912 # SGI C++ compiler will create directory out/ii_files/ for
14913 # template instantiation
14914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915 $RM out/* && rmdir out
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14926 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 lt_cv_prog_compiler_c_o_CXX=no
14932 $RM -r conftest 2>/dev/null
14936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938 lt_compiler_flag="-o out/conftest2.$ac_objext"
14939 # Insert the option either (1) after the last *FLAGS variable, or
14940 # (2) before a word containing "conftest.", or (3) at the end.
14941 # Note that $ac_compile itself does not contain backslashes and begins
14942 # with a dollar sign (not a hyphen), so the echo should work correctly.
14943 lt_compile=`echo "$ac_compile" | $SED \
14944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946 -e 's:$: $lt_compiler_flag:'`
14947 (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948 (eval "$lt_compile" 2>out/conftest.err)
14950 cat out/conftest.err >&5
14951 echo "$as_me:14951: \$? = $ac_status" >&5
14952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14954 # The compiler can only warn and ignore the option if not recognized
14955 # So say no if there are warnings
14956 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959 lt_cv_prog_compiler_c_o_CXX=yes
14964 # SGI C++ compiler will create directory out/ii_files/ for
14965 # template instantiation
14966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14967 $RM out/* && rmdir out
14973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14979 hard_links="nottested"
14980 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14981 # do not overwrite the value of need_locks provided by the user
14982 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 ln conftest.a conftest.b 2>&5 || hard_links=no
14989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990 { echo "$as_me:$LINENO: result: $hard_links" >&5
14991 echo "${ECHO_T}$hard_links" >&6; }
14992 if test "$hard_links" = no; then
14993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009 # If we're using GNU nm, then we don't want the "-C" option.
15010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15012 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15014 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15018 export_symbols_cmds_CXX="$ltdll_cmds"
15020 cygwin* | mingw* | cegcc*)
15021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15027 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15029 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15030 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15031 test "$ld_shlibs_CXX" = no && can_build_shared=no
15033 with_gnu_ld_CXX=$with_gnu_ld
15041 # Do we need to explicitly link libc?
15043 case "x$archive_cmds_need_lc_CXX" in
15045 # Assume -lc should be added
15046 archive_cmds_need_lc_CXX=yes
15048 if test "$enable_shared" = yes && test "$GCC" = yes; then
15049 case $archive_cmds_CXX in
15051 # FIXME: we may have to deal with multi-command sequences.
15054 # Test whether the compiler implicitly links with -lc since on some
15055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15056 # to ld, don't add -lc before -lgcc.
15057 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } 2>conftest.err; then
15069 libobjs=conftest.$ac_objext
15071 wl=$lt_prog_compiler_wl_CXX
15072 pic_flag=$lt_prog_compiler_pic_CXX
15078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15079 allow_undefined_flag_CXX=
15080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15081 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }
15086 archive_cmds_need_lc_CXX=no
15088 archive_cmds_need_lc_CXX=yes
15090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15092 cat conftest.err 1>&5
15095 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15166 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15169 library_names_spec=
15170 libname_spec='lib$name'
15174 postuninstall_cmds=
15178 shlibpath_overrides_runpath=unknown
15180 dynamic_linker="$host_os ld.so"
15181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15182 need_lib_prefix=unknown
15183 hardcode_into_libs=no
15185 # when you set need_version to no, make sure it does not cause -set_version
15186 # flags to be left without arguments
15187 need_version=unknown
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15193 shlibpath_var=LIBPATH
15195 # AIX 3 has no versioning support, so we append a major version to the name.
15196 soname_spec='${libname}${release}${shared_ext}$major'
15203 hardcode_into_libs=yes
15204 if test "$host_cpu" = ia64; then
15205 # AIX 5 supports IA64
15206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15207 shlibpath_var=LD_LIBRARY_PATH
15209 # With GCC up to 2.95.x, collect2 would create an import file
15210 # for dependence libraries. The import file would start with
15211 # the line `#! .'. This would cause the generated library to
15212 # depend on `.', always an invalid library. This was fixed in
15213 # development snapshots of GCC prior to 3.0.
15215 aix4 | aix4.[01] | aix4.[01].*)
15216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15221 can_build_shared=no
15225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15226 # soname into executable. Probably we can add versioning support to
15227 # collect2, so additional links can be useful in future.
15228 if test "$aix_use_runtimelinking" = yes; then
15229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230 # instead of lib<name>.a to let people know that these are not
15231 # typical AIX shared libraries.
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 # We preserve .a as extension for shared libraries through AIX4.2
15235 # and later when we are not doing run time linking.
15236 library_names_spec='${libname}${release}.a $libname.a'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LIBPATH
15246 # Since July 2007 AmigaOS4 officially supports .so libraries.
15247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 library_names_spec='$libname.ixlibrary $libname.a'
15252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15253 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'
15259 library_names_spec='${libname}${shared_ext}'
15260 dynamic_linker="$host_os ld.so"
15261 shlibpath_var=LIBRARY_PATH
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273 # the default ld.so.conf also contains /usr/contrib/lib and
15274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275 # libtool to hard-code these into programs
15278 cygwin* | mingw* | pw32* | cegcc*)
15279 version_type=windows
15284 case $GCC,$host_os in
15285 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15286 library_names_spec='$libname.dll.a'
15287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288 postinstall_cmds='base_file=`basename \${file}`~
15289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290 dldir=$destdir/`dirname \$dlpath`~
15291 test -d \$dldir || mkdir -p \$dldir~
15292 $install_prog $dir/$dlname \$dldir/$dlname~
15293 chmod a+x \$dldir/$dlname~
15294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298 dlpath=$dir/\$dldll~
15300 shlibpath_overrides_runpath=yes
15304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15309 # MinGW DLLs use traditional 'lib' prefix
15310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15312 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15313 # It is most probably a Windows format PATH printed by
15314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15315 # path with ; separators, and with drive letters. We can handle the
15316 # drive letters (cygwin fileutils understands them), so leave them,
15317 # especially as we might pass files found there to a mingw objdump,
15318 # which wouldn't understand a cygwinified path. Ahh.
15319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15325 # pw32 DLLs use 'pw' prefix rather than 'lib'
15326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15335 dynamic_linker='Win32 ld.exe'
15336 # FIXME: first we should search . and the directory the executable is in
15340 darwin* | rhapsody*)
15341 dynamic_linker="$host_os dyld"
15342 version_type=darwin
15345 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15346 soname_spec='${libname}${release}${major}$shared_ext'
15347 shlibpath_overrides_runpath=yes
15348 shlibpath_var=DYLD_LIBRARY_PATH
15349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15351 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15367 freebsd* | dragonfly*)
15368 # DragonFly does not have aout. When/if they implement a new
15369 # versioning mechanism, adjust this.
15370 if test -x /usr/bin/objformat; then
15371 objformat=`/usr/bin/objformat`
15374 freebsd[123]*) objformat=aout ;;
15375 *) objformat=elf ;;
15378 version_type=freebsd-$objformat
15379 case $version_type in
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15395 freebsd3.[01]* | freebsdelf3.[01]*)
15396 shlibpath_overrides_runpath=yes
15397 hardcode_into_libs=yes
15399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401 shlibpath_overrides_runpath=no
15402 hardcode_into_libs=yes
15404 *) # from 4.6 on, and DragonFly
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 hardcode_into_libs=yes
15421 hpux9* | hpux10* | hpux11*)
15422 # Give a soname corresponding to the major version so that dld.sl refuses to
15423 # link against other versions.
15430 hardcode_into_libs=yes
15431 dynamic_linker="$host_os dld.so"
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 if test "X$HPUX_IA64_MODE" = X32; then
15437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445 hardcode_into_libs=yes
15446 dynamic_linker="$host_os dld.sl"
15447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=SHLIB_PATH
15458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464 postinstall_cmds='chmod 555 $lib'
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 hardcode_into_libs=yes
15479 irix5* | irix6* | nonstopux*)
15481 nonstopux*) version_type=nonstopux ;;
15483 if test "$lt_cv_prog_gnu_ld" = yes; then
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 irix5* | nonstopux*)
15495 libsuff= shlibsuff=
15498 case $LD in # libtool.m4 will add one of these switches to LD
15499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500 libsuff= shlibsuff= libmagic=32-bit;;
15501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502 libsuff=32 shlibsuff=N32 libmagic=N32;;
15503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505 *) libsuff= shlibsuff= libmagic=never-match;;
15509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510 shlibpath_overrides_runpath=no
15511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513 hardcode_into_libs=yes
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15521 # This must be Linux ELF.
15522 linux* | k*bsd*-gnu)
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath=no
15531 # Some binutils ld are patched to set DT_RUNPATH
15532 save_LDFLAGS=$LDFLAGS
15533 save_libdir=$libdir
15534 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15535 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_link") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_cxx_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest$ac_exeext &&
15568 $as_test_x conftest$ac_exeext; then
15569 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15570 shlibpath_overrides_runpath=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LDFLAGS=$save_LDFLAGS
15583 libdir=$save_libdir
15585 # This implies no fast_install, which is unacceptable.
15586 # Some rework will be needed to allow for fast_install
15587 # before this can be enabled.
15588 hardcode_into_libs=yes
15590 # Append ld.so.conf contents to the search path
15591 if test -f /etc/ld.so.conf; then
15592 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15596 # We used to test for /lib/ld.so.1 and disable shared libraries on
15597 # powerpc, because MkLinux only supported shared libraries with the
15598 # GNU dynamic linker. Since this was broken with cross compilers,
15599 # most powerpc-linux boxes support dynamic linking these days and
15600 # people can always --disable-shared, the test was removed, and we
15601 # assume the GNU/Linux dynamic linker is in use.
15602 dynamic_linker='GNU/Linux ld.so'
15609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612 dynamic_linker='NetBSD (a.out) ld.so'
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 dynamic_linker='NetBSD ld.elf_so'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=yes
15620 hardcode_into_libs=yes
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 shlibpath_overrides_runpath=yes
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=no
15638 hardcode_into_libs=yes
15639 dynamic_linker='ldqnx.so'
15644 sys_lib_dlsearch_path_spec="/usr/lib"
15646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15649 *) need_version=no ;;
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15656 openbsd2.[89] | openbsd2.[89].*)
15657 shlibpath_overrides_runpath=no
15660 shlibpath_overrides_runpath=yes
15664 shlibpath_overrides_runpath=yes
15669 libname_spec='$name'
15672 library_names_spec='$libname${shared_ext} $libname.a'
15673 dynamic_linker='OS/2 ld.exe'
15674 shlibpath_var=LIBPATH
15677 osf3* | osf4* | osf5*)
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 hardcode_into_libs=yes
15701 # ldd complains unless libraries are executable
15702 postinstall_cmds='chmod +x $lib'
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 if test "$with_gnu_ld" = yes; then
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 case $host_vendor in
15724 shlibpath_overrides_runpath=no
15726 runpath_var=LD_RUN_PATH
15734 shlibpath_overrides_runpath=no
15735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15741 if test -d /usr/nec ;then
15743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15744 soname_spec='$libname${shared_ext}.$major'
15745 shlibpath_var=LD_LIBRARY_PATH
15749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15750 version_type=freebsd-elf
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=yes
15757 hardcode_into_libs=yes
15758 if test "$with_gnu_ld" = yes; then
15759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15768 sys_lib_dlsearch_path_spec='/usr/lib'
15772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=no
15779 hardcode_into_libs=yes
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15844 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15846 hardcode_action_CXX=
15847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15848 test -n "$runpath_var_CXX" ||
15849 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15851 # We can hardcode non-existent directories.
15852 if test "$hardcode_direct_CXX" != no &&
15853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15854 # have to relink, otherwise we might link with an installed library
15855 # when we should be linking with a yet-to-be-installed one
15856 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15857 test "$hardcode_minus_L_CXX" != no; then
15858 # Linking always hardcodes the temporary library directory.
15859 hardcode_action_CXX=relink
15861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15862 hardcode_action_CXX=immediate
15865 # We cannot hardcode anything, or else we can only hardcode existing
15867 hardcode_action_CXX=unsupported
15869 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15870 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15872 if test "$hardcode_action_CXX" = relink ||
15873 test "$inherit_rpath_CXX" = yes; then
15874 # Fast installation is not supported
15875 enable_fast_install=no
15876 elif test "$shlibpath_overrides_runpath" = yes ||
15877 test "$enable_shared" = no; then
15878 # Fast installation is not necessary
15879 enable_fast_install=needless
15888 fi # test -n "$compiler"
15894 with_gnu_ld=$lt_save_with_gnu_ld
15895 lt_cv_path_LDCXX=$lt_cv_path_LD
15896 lt_cv_path_LD=$lt_save_path_LD
15897 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15898 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15899 fi # test "$_lt_caught_CXX_error" != yes
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15919 ac_config_commands="$ac_config_commands libtool"
15924 # Only expand once:
15929 if test x$use_libtool != xno; then
15930 DEFAULT_OBJECT_TYPE=".lo"
15931 DEFAULT_ARCHIVE_TYPE=".la"
15932 DEFAULT_SHARED_OBJECT_TYPE=".la"
15933 LIBTOOL="\$(LIBTOOL)"
15934 LIBTOOL_INSTALL_TARGET="libtool-install"
15935 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15936 LIBTOOL_CLEAN_TARGET="libtool-clean"
15937 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15939 DEFAULT_OBJECT_TYPE=".o"
15940 DEFAULT_ARCHIVE_TYPE=".a"
15941 DEFAULT_SHARED_OBJECT_TYPE=".so"
15942 LIBTOOL="# \$(LIBTOOL)"
15943 LIBTOOL_INSTALL_TARGET=""
15944 LIBTOOL_UNINSTALL_TARGET=""
15945 LIBTOOL_CLEAN_TARGET=""
15946 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960 enableval=$enable_includes;
15961 if test x$enableval = xyes; then
15962 install_includes=yes
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971 INCLUDE_INSTALL_TARGET="install-includes"
15972 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15974 INCLUDE_INSTALL_TARGET=""
15975 INCLUDE_UNINSTALL_TARGET=""
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 if test "x$host_alias" = x; then
15987 ac_cv_host=$ac_cv_build
15989 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992 { (exit 1); exit 1; }; }
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002 { (exit 1); exit 1; }; };;
16005 ac_save_IFS=$IFS; IFS='-'
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16019 *cygwin* ) CYGWIN=yes;;
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16029 HAVE_SUN_OS_FALSE='#'
16031 HAVE_SUN_OS_TRUE='#'
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16043 HAVE_SUN_OS_FALSE='#'
16045 HAVE_SUN_OS_TRUE='#'
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16056 HAVE_OSF1_OS_FALSE='#'
16058 HAVE_OSF1_OS_TRUE='#'
16059 HAVE_OSF1_OS_FALSE=
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16070 HAVE_OSF1_OS_FALSE='#'
16072 HAVE_OSF1_OS_TRUE='#'
16073 HAVE_OSF1_OS_FALSE=
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16083 HAVE_AIX_OS_FALSE='#'
16085 HAVE_AIX_OS_TRUE='#'
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16097 HAVE_AIX_OS_FALSE='#'
16099 HAVE_AIX_OS_TRUE='#'
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16110 HAVE_HPUX_OS_FALSE='#'
16112 HAVE_HPUX_OS_TRUE='#'
16113 HAVE_HPUX_OS_FALSE=
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16124 HAVE_HPUX_OS_FALSE='#'
16126 HAVE_HPUX_OS_TRUE='#'
16127 HAVE_HPUX_OS_FALSE=
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16136 HAVE_LINUX_OS_TRUE=
16137 HAVE_LINUX_OS_FALSE='#'
16139 HAVE_LINUX_OS_TRUE='#'
16140 HAVE_LINUX_OS_FALSE=
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16150 HAVE_LINUX_OS_TRUE=
16151 HAVE_LINUX_OS_FALSE='#'
16153 HAVE_LINUX_OS_TRUE='#'
16154 HAVE_LINUX_OS_FALSE=
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16163 HAVE_FREEBSD_OS_TRUE=
16164 HAVE_FREEBSD_OS_FALSE='#'
16166 HAVE_FREEBSD_OS_TRUE='#'
16167 HAVE_FREEBSD_OS_FALSE=
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16177 HAVE_FREEBSD_OS_TRUE=
16178 HAVE_FREEBSD_OS_FALSE='#'
16180 HAVE_FREEBSD_OS_TRUE='#'
16181 HAVE_FREEBSD_OS_FALSE=
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16190 HAVE_NETBSD_OS_TRUE=
16191 HAVE_NETBSD_OS_FALSE='#'
16193 HAVE_NETBSD_OS_TRUE='#'
16194 HAVE_NETBSD_OS_FALSE=
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16204 HAVE_NETBSD_OS_TRUE=
16205 HAVE_NETBSD_OS_FALSE='#'
16207 HAVE_NETBSD_OS_TRUE='#'
16208 HAVE_NETBSD_OS_FALSE=
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16217 HAVE_OPENBSD_OS_TRUE=
16218 HAVE_OPENBSD_OS_FALSE='#'
16220 HAVE_OPENBSD_OS_TRUE='#'
16221 HAVE_OPENBSD_OS_FALSE=
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16231 HAVE_OPENBSD_OS_TRUE=
16232 HAVE_OPENBSD_OS_FALSE='#'
16234 HAVE_OPENBSD_OS_TRUE='#'
16235 HAVE_OPENBSD_OS_FALSE=
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16245 HAVE_BSDI_OS_FALSE='#'
16247 HAVE_BSDI_OS_TRUE='#'
16248 HAVE_BSDI_OS_FALSE=
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16259 HAVE_BSDI_OS_FALSE='#'
16261 HAVE_BSDI_OS_TRUE='#'
16262 HAVE_BSDI_OS_FALSE=
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16272 HAVE_SGI_OS_FALSE='#'
16274 HAVE_SGI_OS_TRUE='#'
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16286 HAVE_SGI_OS_FALSE='#'
16288 HAVE_SGI_OS_TRUE='#'
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16299 HAVE_IRIX_OS_FALSE='#'
16301 HAVE_IRIX_OS_TRUE='#'
16302 HAVE_IRIX_OS_FALSE=
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16313 HAVE_IRIX_OS_FALSE='#'
16315 HAVE_IRIX_OS_TRUE='#'
16316 HAVE_IRIX_OS_FALSE=
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16325 HAVE_DARWIN_OS_TRUE=
16326 HAVE_DARWIN_OS_FALSE='#'
16328 HAVE_DARWIN_OS_TRUE='#'
16329 HAVE_DARWIN_OS_FALSE=
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16339 HAVE_DARWIN_OS_TRUE=
16340 HAVE_DARWIN_OS_FALSE='#'
16342 HAVE_DARWIN_OS_TRUE='#'
16343 HAVE_DARWIN_OS_FALSE=
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16352 echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16380 elif test -f /etc/SuSE-release
16383 elif test -d /etc/SuSEconfig
16386 elif test -f /etc/mandrake-release
16389 elif test -f /etc/whitebox-release
16392 elif test -f /etc/redhat-release
16395 elif test -f /etc/gentoo-release
16398 elif test -f /etc/debian_version
16401 elif test -f /etc/slackware-version
16404 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16407 elif test -f /etc/engarde-version
16410 elif test "$CYGWIN" = yes
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CYGWIN 1
16420 { echo "$as_me:$LINENO: result: done" >&5
16421 echo "${ECHO_T}done" >&6; }
16424 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16426 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16427 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.make <<\_ACEOF
16433 @echo '@@@%%%=$(MAKE)=@@@%%%'
16435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16436 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16437 *@@@%%%=?*=@@@%%%*)
16438 eval ac_cv_prog_make_${ac_make}_set=yes;;
16440 eval ac_cv_prog_make_${ac_make}_set=no;;
16442 rm -f conftest.make
16444 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16445 { echo "$as_me:$LINENO: result: yes" >&5
16446 echo "${ECHO_T}yes" >&6; }
16449 { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16451 SET_MAKE="MAKE=${MAKE-make}"
16457 if test -n "$ac_aux_dir"; then
16458 case "$ac_aux_dir" in
16459 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16460 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16463 if test -z "$MKINSTALLDIRS"; then
16464 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16469 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16470 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16471 # Check whether --enable-nls was given.
16472 if test "${enable_nls+set}" = set; then
16473 enableval=$enable_nls; USE_NLS=$enableval
16478 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16479 echo "${ECHO_T}$USE_NLS" >&6; }
16486 # Prepare PATH_SEPARATOR.
16487 # The user is always right.
16488 if test "${PATH_SEPARATOR+set}" != set; then
16489 echo "#! /bin/sh" >conf$$.sh
16490 echo "exit 0" >>conf$$.sh
16492 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16500 # Find out how to test for executable files. Don't use a zero-byte file,
16501 # as systems may use methods other than mode bits to determine executability.
16502 cat >conf$$.file <<_ASEOF
16506 chmod +x conf$$.file
16507 if test -x conf$$.file >/dev/null 2>&1; then
16508 ac_executable_p="test -x"
16510 ac_executable_p="test -f"
16514 # Extract the first word of "msgfmt", so it can be a program name with args.
16515 set dummy msgfmt; ac_word=$2
16516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16518 if test "${ac_cv_path_MSGFMT+set}" = set; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16526 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16527 for ac_dir in $PATH; do
16529 test -z "$ac_dir" && ac_dir=.
16530 for ac_exec_ext in '' $ac_executable_extensions; do
16531 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16532 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16533 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16534 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16535 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16542 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16546 MSGFMT="$ac_cv_path_MSGFMT"
16547 if test "$MSGFMT" != ":"; then
16548 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16549 echo "${ECHO_T}$MSGFMT" >&6; }
16551 { echo "$as_me:$LINENO: result: no" >&5
16552 echo "${ECHO_T}no" >&6; }
16555 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16556 set dummy gmsgfmt; ac_word=$2
16557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
16573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16574 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16582 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16586 GMSGFMT=$ac_cv_path_GMSGFMT
16587 if test -n "$GMSGFMT"; then
16588 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16589 echo "${ECHO_T}$GMSGFMT" >&6; }
16591 { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16598 # Prepare PATH_SEPARATOR.
16599 # The user is always right.
16600 if test "${PATH_SEPARATOR+set}" != set; then
16601 echo "#! /bin/sh" >conf$$.sh
16602 echo "exit 0" >>conf$$.sh
16604 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16612 # Find out how to test for executable files. Don't use a zero-byte file,
16613 # as systems may use methods other than mode bits to determine executability.
16614 cat >conf$$.file <<_ASEOF
16618 chmod +x conf$$.file
16619 if test -x conf$$.file >/dev/null 2>&1; then
16620 ac_executable_p="test -x"
16622 ac_executable_p="test -f"
16626 # Extract the first word of "xgettext", so it can be a program name with args.
16627 set dummy xgettext; ac_word=$2
16628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 case "$XGETTEXT" in
16635 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16638 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16639 for ac_dir in $PATH; do
16641 test -z "$ac_dir" && ac_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16644 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16645 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16646 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16647 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16654 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16658 XGETTEXT="$ac_cv_path_XGETTEXT"
16659 if test "$XGETTEXT" != ":"; then
16660 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16661 echo "${ECHO_T}$XGETTEXT" >&6; }
16663 { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16670 # Prepare PATH_SEPARATOR.
16671 # The user is always right.
16672 if test "${PATH_SEPARATOR+set}" != set; then
16673 echo "#! /bin/sh" >conf$$.sh
16674 echo "exit 0" >>conf$$.sh
16676 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16684 # Find out how to test for executable files. Don't use a zero-byte file,
16685 # as systems may use methods other than mode bits to determine executability.
16686 cat >conf$$.file <<_ASEOF
16690 chmod +x conf$$.file
16691 if test -x conf$$.file >/dev/null 2>&1; then
16692 ac_executable_p="test -x"
16694 ac_executable_p="test -f"
16698 # Extract the first word of "msgmerge", so it can be a program name with args.
16699 set dummy msgmerge; ac_word=$2
16700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16702 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 case "$MSGMERGE" in
16707 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16710 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16711 for ac_dir in $PATH; do
16713 test -z "$ac_dir" && ac_dir=.
16714 for ac_exec_ext in '' $ac_executable_extensions; do
16715 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16716 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16717 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16718 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16725 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16729 MSGMERGE="$ac_cv_path_MSGMERGE"
16730 if test "$MSGMERGE" != ":"; then
16731 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16732 echo "${ECHO_T}$MSGMERGE" >&6; }
16734 { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16739 if test "$GMSGFMT" != ":"; then
16740 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16741 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16744 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16745 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16746 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16751 if test "$XGETTEXT" != ":"; then
16752 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16753 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16756 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16757 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16763 ac_config_commands="$ac_config_commands default-1"
16767 if test "X$prefix" = "XNONE"; then
16768 acl_final_prefix="$ac_default_prefix"
16770 acl_final_prefix="$prefix"
16772 if test "X$exec_prefix" = "XNONE"; then
16773 acl_final_exec_prefix='${prefix}'
16775 acl_final_exec_prefix="$exec_prefix"
16777 acl_save_prefix="$prefix"
16778 prefix="$acl_final_prefix"
16779 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16780 prefix="$acl_save_prefix"
16783 # Check whether --with-gnu-ld was given.
16784 if test "${with_gnu_ld+set}" = set; then
16785 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16790 # Prepare PATH_SEPARATOR.
16791 # The user is always right.
16792 if test "${PATH_SEPARATOR+set}" != set; then
16793 echo "#! /bin/sh" >conf$$.sh
16794 echo "exit 0" >>conf$$.sh
16796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16804 if test "$GCC" = yes; then
16805 # Check if gcc -print-prog-name=ld gives a path.
16806 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16810 # gcc leaves a trailing carriage return which upsets mingw
16811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16816 # Accept absolute paths.
16817 [\\/]* | [A-Za-z]:[\\/]*)
16818 re_direlt='/[^/][^/]*/\.\./'
16819 # Canonicalize the path of ld
16820 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16821 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16822 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16824 test -z "$LD" && LD="$ac_prog"
16827 # If it fails, then pretend we aren't using GCC.
16831 # If it is relative, then search for the first ld in PATH.
16832 with_gnu_ld=unknown
16835 elif test "$with_gnu_ld" = yes; then
16836 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16839 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16842 if test "${acl_cv_path_LD+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 if test -z "$LD"; then
16846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16847 for ac_dir in $PATH; do
16848 test -z "$ac_dir" && ac_dir=.
16849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850 acl_cv_path_LD="$ac_dir/$ac_prog"
16851 # Check to see if the program is GNU ld. I'd rather use --version,
16852 # but apparently some GNU ld's only accept -v.
16853 # Break only if it was the GNU/non-GNU ld that we prefer.
16854 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16855 *GNU* | *'with BFD'*)
16856 test "$with_gnu_ld" != no && break ;;
16858 test "$with_gnu_ld" != yes && break ;;
16864 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16868 LD="$acl_cv_path_LD"
16869 if test -n "$LD"; then
16870 { echo "$as_me:$LINENO: result: $LD" >&5
16871 echo "${ECHO_T}$LD" >&6; }
16873 { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16878 { (exit 1); exit 1; }; }
16879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16881 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16885 case `$LD -v 2>&1 </dev/null` in
16886 *GNU* | *'with BFD'*)
16887 acl_cv_prog_gnu_ld=yes ;;
16889 acl_cv_prog_gnu_ld=no ;;
16892 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16893 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16894 with_gnu_ld=$acl_cv_prog_gnu_ld
16899 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16900 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16901 if test "${acl_cv_rpath+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16906 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16908 rm -f ./conftest.sh
16912 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16913 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16915 libext="$acl_cv_libext"
16916 shlibext="$acl_cv_shlibext"
16917 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16918 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16919 hardcode_direct="$acl_cv_hardcode_direct"
16920 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16921 # Check whether --enable-rpath was given.
16922 if test "${enable_rpath+set}" = set; then
16923 enableval=$enable_rpath; :
16937 acl_save_prefix="$prefix"
16938 prefix="$acl_final_prefix"
16939 acl_save_exec_prefix="$exec_prefix"
16940 exec_prefix="$acl_final_exec_prefix"
16942 eval additional_includedir=\"$includedir\"
16943 eval additional_libdir=\"$libdir\"
16945 exec_prefix="$acl_save_exec_prefix"
16946 prefix="$acl_save_prefix"
16949 # Check whether --with-libiconv-prefix was given.
16950 if test "${with_libiconv_prefix+set}" = set; then
16951 withval=$with_libiconv_prefix;
16952 if test "X$withval" = "Xno"; then
16955 if test "X$withval" = "X"; then
16957 acl_save_prefix="$prefix"
16958 prefix="$acl_final_prefix"
16959 acl_save_exec_prefix="$exec_prefix"
16960 exec_prefix="$acl_final_exec_prefix"
16962 eval additional_includedir=\"$includedir\"
16963 eval additional_libdir=\"$libdir\"
16965 exec_prefix="$acl_save_exec_prefix"
16966 prefix="$acl_save_prefix"
16969 additional_includedir="$withval/include"
16970 additional_libdir="$withval/lib"
16981 names_already_handled=
16982 names_next_round='iconv '
16983 while test -n "$names_next_round"; do
16984 names_this_round="$names_next_round"
16986 for name in $names_this_round; do
16988 for n in $names_already_handled; do
16989 if test "$n" = "$name"; then
16990 already_handled=yes
16994 if test -z "$already_handled"; then
16995 names_already_handled="$names_already_handled $name"
16996 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16997 eval value=\"\$HAVE_LIB$uppername\"
16998 if test -n "$value"; then
16999 if test "$value" = yes; then
17000 eval value=\"\$LIB$uppername\"
17001 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17002 eval value=\"\$LTLIB$uppername\"
17003 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17012 if test $use_additional = yes; then
17013 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17014 found_dir="$additional_libdir"
17015 found_so="$additional_libdir/lib$name.$shlibext"
17016 if test -f "$additional_libdir/lib$name.la"; then
17017 found_la="$additional_libdir/lib$name.la"
17020 if test -f "$additional_libdir/lib$name.$libext"; then
17021 found_dir="$additional_libdir"
17022 found_a="$additional_libdir/lib$name.$libext"
17023 if test -f "$additional_libdir/lib$name.la"; then
17024 found_la="$additional_libdir/lib$name.la"
17029 if test "X$found_dir" = "X"; then
17030 for x in $LDFLAGS $LTLIBICONV; do
17032 acl_save_prefix="$prefix"
17033 prefix="$acl_final_prefix"
17034 acl_save_exec_prefix="$exec_prefix"
17035 exec_prefix="$acl_final_exec_prefix"
17037 exec_prefix="$acl_save_exec_prefix"
17038 prefix="$acl_save_prefix"
17042 dir=`echo "X$x" | sed -e 's/^X-L//'`
17043 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17045 found_so="$dir/lib$name.$shlibext"
17046 if test -f "$dir/lib$name.la"; then
17047 found_la="$dir/lib$name.la"
17050 if test -f "$dir/lib$name.$libext"; then
17052 found_a="$dir/lib$name.$libext"
17053 if test -f "$dir/lib$name.la"; then
17054 found_la="$dir/lib$name.la"
17060 if test "X$found_dir" != "X"; then
17065 if test "X$found_dir" != "X"; then
17066 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17067 if test "X$found_so" != "X"; then
17068 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17072 for x in $ltrpathdirs; do
17073 if test "X$x" = "X$found_dir"; then
17078 if test -z "$haveit"; then
17079 ltrpathdirs="$ltrpathdirs $found_dir"
17081 if test "$hardcode_direct" = yes; then
17082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17084 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17087 for x in $rpathdirs; do
17088 if test "X$x" = "X$found_dir"; then
17093 if test -z "$haveit"; then
17094 rpathdirs="$rpathdirs $found_dir"
17098 for x in $LDFLAGS $LIBICONV; do
17100 acl_save_prefix="$prefix"
17101 prefix="$acl_final_prefix"
17102 acl_save_exec_prefix="$exec_prefix"
17103 exec_prefix="$acl_final_exec_prefix"
17105 exec_prefix="$acl_save_exec_prefix"
17106 prefix="$acl_save_prefix"
17108 if test "X$x" = "X-L$found_dir"; then
17113 if test -z "$haveit"; then
17114 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17116 if test "$hardcode_minus_L" != no; then
17117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17119 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17125 if test "X$found_a" != "X"; then
17126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17128 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17131 additional_includedir=
17132 case "$found_dir" in
17134 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17135 additional_includedir="$basedir/include"
17138 if test "X$additional_includedir" != "X"; then
17139 if test "X$additional_includedir" != "X/usr/include"; then
17141 if test "X$additional_includedir" = "X/usr/local/include"; then
17142 if test -n "$GCC"; then
17144 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17148 if test -z "$haveit"; then
17149 for x in $CPPFLAGS $INCICONV; do
17151 acl_save_prefix="$prefix"
17152 prefix="$acl_final_prefix"
17153 acl_save_exec_prefix="$exec_prefix"
17154 exec_prefix="$acl_final_exec_prefix"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17159 if test "X$x" = "X-I$additional_includedir"; then
17164 if test -z "$haveit"; then
17165 if test -d "$additional_includedir"; then
17166 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17172 if test -n "$found_la"; then
17173 save_libdir="$libdir"
17174 case "$found_la" in
17175 */* | *\\*) . "$found_la" ;;
17176 *) . "./$found_la" ;;
17178 libdir="$save_libdir"
17179 for dep in $dependency_libs; do
17182 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17183 if test "X$additional_libdir" != "X/usr/lib"; then
17185 if test "X$additional_libdir" = "X/usr/local/lib"; then
17186 if test -n "$GCC"; then
17188 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17192 if test -z "$haveit"; then
17194 for x in $LDFLAGS $LIBICONV; do
17196 acl_save_prefix="$prefix"
17197 prefix="$acl_final_prefix"
17198 acl_save_exec_prefix="$exec_prefix"
17199 exec_prefix="$acl_final_exec_prefix"
17201 exec_prefix="$acl_save_exec_prefix"
17202 prefix="$acl_save_prefix"
17204 if test "X$x" = "X-L$additional_libdir"; then
17209 if test -z "$haveit"; then
17210 if test -d "$additional_libdir"; then
17211 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17215 for x in $LDFLAGS $LTLIBICONV; do
17217 acl_save_prefix="$prefix"
17218 prefix="$acl_final_prefix"
17219 acl_save_exec_prefix="$exec_prefix"
17220 exec_prefix="$acl_final_exec_prefix"
17222 exec_prefix="$acl_save_exec_prefix"
17223 prefix="$acl_save_prefix"
17225 if test "X$x" = "X-L$additional_libdir"; then
17230 if test -z "$haveit"; then
17231 if test -d "$additional_libdir"; then
17232 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17239 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17240 if test "$enable_rpath" != no; then
17242 for x in $rpathdirs; do
17243 if test "X$x" = "X$dir"; then
17248 if test -z "$haveit"; then
17249 rpathdirs="$rpathdirs $dir"
17252 for x in $ltrpathdirs; do
17253 if test "X$x" = "X$dir"; then
17258 if test -z "$haveit"; then
17259 ltrpathdirs="$ltrpathdirs $dir"
17264 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17267 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17270 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17277 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17284 if test "X$rpathdirs" != "X"; then
17285 if test -n "$hardcode_libdir_separator"; then
17287 for found_dir in $rpathdirs; do
17288 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17290 acl_save_libdir="$libdir"
17292 eval flag=\"$hardcode_libdir_flag_spec\"
17293 libdir="$acl_save_libdir"
17294 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17296 for found_dir in $rpathdirs; do
17297 acl_save_libdir="$libdir"
17298 libdir="$found_dir"
17299 eval flag=\"$hardcode_libdir_flag_spec\"
17300 libdir="$acl_save_libdir"
17301 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17305 if test "X$ltrpathdirs" != "X"; then
17306 for found_dir in $ltrpathdirs; do
17307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17328 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17329 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17330 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 gt_save_CPPFLAGS="$CPPFLAGS"
17334 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17335 gt_save_LIBS="$LIBS"
17336 LIBS="$LIBS -framework CoreFoundation"
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 <CFPreferences.h>
17347 CFPreferencesCopyAppValue(NULL, NULL)
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext &&
17369 $as_test_x conftest$ac_exeext; then
17370 gt_cv_func_CFPreferencesCopyAppValue=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 gt_cv_func_CFPreferencesCopyAppValue=no
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379 conftest$ac_exeext conftest.$ac_ext
17380 CPPFLAGS="$gt_save_CPPFLAGS"
17381 LIBS="$gt_save_LIBS"
17383 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17384 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17385 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17392 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17393 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17394 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 gt_save_CPPFLAGS="$CPPFLAGS"
17398 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17399 gt_save_LIBS="$LIBS"
17400 LIBS="$LIBS -framework CoreFoundation"
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <CFLocale.h>
17411 CFLocaleCopyCurrent();
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest$ac_exeext &&
17433 $as_test_x conftest$ac_exeext; then
17434 gt_cv_func_CFLocaleCopyCurrent=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 gt_cv_func_CFLocaleCopyCurrent=no
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443 conftest$ac_exeext conftest.$ac_ext
17444 CPPFLAGS="$gt_save_CPPFLAGS"
17445 LIBS="$gt_save_LIBS"
17447 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17448 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17449 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_CFLOCALECOPYCURRENT 1
17457 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17464 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17465 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17466 # Check whether --enable-nls was given.
17467 if test "${enable_nls+set}" = set; then
17468 enableval=$enable_nls; USE_NLS=$enableval
17473 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17474 echo "${ECHO_T}$USE_NLS" >&6; }
17483 if test "$USE_NLS" = "yes"; then
17484 gt_use_preinstalled_gnugettext=no
17491 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17492 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17493 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <libintl.h>
17503 extern int _nl_msg_cat_cntr;
17504 extern int *_nl_domain_bindings;
17508 bindtextdomain ("", "");
17509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && {
17528 test -z "$ac_c_werror_flag" ||
17529 test ! -s conftest.err
17530 } && test -s conftest$ac_exeext &&
17531 $as_test_x conftest$ac_exeext; then
17532 gt_cv_func_gnugettext1_libc=yes
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 gt_cv_func_gnugettext1_libc=no
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17543 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17544 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17546 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17552 am_save_CPPFLAGS="$CPPFLAGS"
17554 for element in $INCICONV; do
17556 for x in $CPPFLAGS; do
17558 acl_save_prefix="$prefix"
17559 prefix="$acl_final_prefix"
17560 acl_save_exec_prefix="$exec_prefix"
17561 exec_prefix="$acl_final_exec_prefix"
17563 exec_prefix="$acl_save_exec_prefix"
17564 prefix="$acl_save_prefix"
17566 if test "X$x" = "X$element"; then
17571 if test -z "$haveit"; then
17572 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17577 { echo "$as_me:$LINENO: checking for iconv" >&5
17578 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17579 if test "${am_cv_func_iconv+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 am_cv_func_iconv="no, consider installing GNU libiconv"
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 #include <stdlib.h>
17596 iconv_t cd = iconv_open("","");
17597 iconv(cd,NULL,NULL,NULL,NULL);
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_link") 2>conftest.er1
17612 grep -v '^ *+' conftest.er1 >conftest.err
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } && {
17617 test -z "$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 } && test -s conftest$ac_exeext &&
17620 $as_test_x conftest$ac_exeext; then
17621 am_cv_func_iconv=yes
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630 conftest$ac_exeext conftest.$ac_ext
17631 if test "$am_cv_func_iconv" != yes; then
17632 am_save_LIBS="$LIBS"
17633 LIBS="$LIBS $LIBICONV"
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <stdlib.h>
17645 iconv_t cd = iconv_open("","");
17646 iconv(cd,NULL,NULL,NULL,NULL);
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_link") 2>conftest.er1
17661 grep -v '^ *+' conftest.er1 >conftest.err
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } && {
17666 test -z "$ac_c_werror_flag" ||
17667 test ! -s conftest.err
17668 } && test -s conftest$ac_exeext &&
17669 $as_test_x conftest$ac_exeext; then
17670 am_cv_lib_iconv=yes
17671 am_cv_func_iconv=yes
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17680 conftest$ac_exeext conftest.$ac_ext
17681 LIBS="$am_save_LIBS"
17685 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17686 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17687 if test "$am_cv_func_iconv" = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_ICONV 1
17694 if test "$am_cv_lib_iconv" = yes; then
17695 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17696 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17697 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17698 echo "${ECHO_T}$LIBICONV" >&6; }
17700 CPPFLAGS="$am_save_CPPFLAGS"
17712 acl_save_prefix="$prefix"
17713 prefix="$acl_final_prefix"
17714 acl_save_exec_prefix="$exec_prefix"
17715 exec_prefix="$acl_final_exec_prefix"
17717 eval additional_includedir=\"$includedir\"
17718 eval additional_libdir=\"$libdir\"
17720 exec_prefix="$acl_save_exec_prefix"
17721 prefix="$acl_save_prefix"
17724 # Check whether --with-libintl-prefix was given.
17725 if test "${with_libintl_prefix+set}" = set; then
17726 withval=$with_libintl_prefix;
17727 if test "X$withval" = "Xno"; then
17730 if test "X$withval" = "X"; then
17732 acl_save_prefix="$prefix"
17733 prefix="$acl_final_prefix"
17734 acl_save_exec_prefix="$exec_prefix"
17735 exec_prefix="$acl_final_exec_prefix"
17737 eval additional_includedir=\"$includedir\"
17738 eval additional_libdir=\"$libdir\"
17740 exec_prefix="$acl_save_exec_prefix"
17741 prefix="$acl_save_prefix"
17744 additional_includedir="$withval/include"
17745 additional_libdir="$withval/lib"
17756 names_already_handled=
17757 names_next_round='intl '
17758 while test -n "$names_next_round"; do
17759 names_this_round="$names_next_round"
17761 for name in $names_this_round; do
17763 for n in $names_already_handled; do
17764 if test "$n" = "$name"; then
17765 already_handled=yes
17769 if test -z "$already_handled"; then
17770 names_already_handled="$names_already_handled $name"
17771 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17772 eval value=\"\$HAVE_LIB$uppername\"
17773 if test -n "$value"; then
17774 if test "$value" = yes; then
17775 eval value=\"\$LIB$uppername\"
17776 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17777 eval value=\"\$LTLIB$uppername\"
17778 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17787 if test $use_additional = yes; then
17788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17789 found_dir="$additional_libdir"
17790 found_so="$additional_libdir/lib$name.$shlibext"
17791 if test -f "$additional_libdir/lib$name.la"; then
17792 found_la="$additional_libdir/lib$name.la"
17795 if test -f "$additional_libdir/lib$name.$libext"; then
17796 found_dir="$additional_libdir"
17797 found_a="$additional_libdir/lib$name.$libext"
17798 if test -f "$additional_libdir/lib$name.la"; then
17799 found_la="$additional_libdir/lib$name.la"
17804 if test "X$found_dir" = "X"; then
17805 for x in $LDFLAGS $LTLIBINTL; do
17807 acl_save_prefix="$prefix"
17808 prefix="$acl_final_prefix"
17809 acl_save_exec_prefix="$exec_prefix"
17810 exec_prefix="$acl_final_exec_prefix"
17812 exec_prefix="$acl_save_exec_prefix"
17813 prefix="$acl_save_prefix"
17817 dir=`echo "X$x" | sed -e 's/^X-L//'`
17818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17820 found_so="$dir/lib$name.$shlibext"
17821 if test -f "$dir/lib$name.la"; then
17822 found_la="$dir/lib$name.la"
17825 if test -f "$dir/lib$name.$libext"; then
17827 found_a="$dir/lib$name.$libext"
17828 if test -f "$dir/lib$name.la"; then
17829 found_la="$dir/lib$name.la"
17835 if test "X$found_dir" != "X"; then
17840 if test "X$found_dir" != "X"; then
17841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17842 if test "X$found_so" != "X"; then
17843 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17844 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17847 for x in $ltrpathdirs; do
17848 if test "X$x" = "X$found_dir"; then
17853 if test -z "$haveit"; then
17854 ltrpathdirs="$ltrpathdirs $found_dir"
17856 if test "$hardcode_direct" = yes; then
17857 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17860 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17862 for x in $rpathdirs; do
17863 if test "X$x" = "X$found_dir"; then
17868 if test -z "$haveit"; then
17869 rpathdirs="$rpathdirs $found_dir"
17873 for x in $LDFLAGS $LIBINTL; do
17875 acl_save_prefix="$prefix"
17876 prefix="$acl_final_prefix"
17877 acl_save_exec_prefix="$exec_prefix"
17878 exec_prefix="$acl_final_exec_prefix"
17880 exec_prefix="$acl_save_exec_prefix"
17881 prefix="$acl_save_prefix"
17883 if test "X$x" = "X-L$found_dir"; then
17888 if test -z "$haveit"; then
17889 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17891 if test "$hardcode_minus_L" != no; then
17892 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17894 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17900 if test "X$found_a" != "X"; then
17901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17903 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17906 additional_includedir=
17907 case "$found_dir" in
17909 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17910 additional_includedir="$basedir/include"
17913 if test "X$additional_includedir" != "X"; then
17914 if test "X$additional_includedir" != "X/usr/include"; then
17916 if test "X$additional_includedir" = "X/usr/local/include"; then
17917 if test -n "$GCC"; then
17919 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17923 if test -z "$haveit"; then
17924 for x in $CPPFLAGS $INCINTL; do
17926 acl_save_prefix="$prefix"
17927 prefix="$acl_final_prefix"
17928 acl_save_exec_prefix="$exec_prefix"
17929 exec_prefix="$acl_final_exec_prefix"
17931 exec_prefix="$acl_save_exec_prefix"
17932 prefix="$acl_save_prefix"
17934 if test "X$x" = "X-I$additional_includedir"; then
17939 if test -z "$haveit"; then
17940 if test -d "$additional_includedir"; then
17941 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17947 if test -n "$found_la"; then
17948 save_libdir="$libdir"
17949 case "$found_la" in
17950 */* | *\\*) . "$found_la" ;;
17951 *) . "./$found_la" ;;
17953 libdir="$save_libdir"
17954 for dep in $dependency_libs; do
17957 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17958 if test "X$additional_libdir" != "X/usr/lib"; then
17960 if test "X$additional_libdir" = "X/usr/local/lib"; then
17961 if test -n "$GCC"; then
17963 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17967 if test -z "$haveit"; then
17969 for x in $LDFLAGS $LIBINTL; do
17971 acl_save_prefix="$prefix"
17972 prefix="$acl_final_prefix"
17973 acl_save_exec_prefix="$exec_prefix"
17974 exec_prefix="$acl_final_exec_prefix"
17976 exec_prefix="$acl_save_exec_prefix"
17977 prefix="$acl_save_prefix"
17979 if test "X$x" = "X-L$additional_libdir"; then
17984 if test -z "$haveit"; then
17985 if test -d "$additional_libdir"; then
17986 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17990 for x in $LDFLAGS $LTLIBINTL; do
17992 acl_save_prefix="$prefix"
17993 prefix="$acl_final_prefix"
17994 acl_save_exec_prefix="$exec_prefix"
17995 exec_prefix="$acl_final_exec_prefix"
17997 exec_prefix="$acl_save_exec_prefix"
17998 prefix="$acl_save_prefix"
18000 if test "X$x" = "X-L$additional_libdir"; then
18005 if test -z "$haveit"; then
18006 if test -d "$additional_libdir"; then
18007 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18014 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18015 if test "$enable_rpath" != no; then
18017 for x in $rpathdirs; do
18018 if test "X$x" = "X$dir"; then
18023 if test -z "$haveit"; then
18024 rpathdirs="$rpathdirs $dir"
18027 for x in $ltrpathdirs; do
18028 if test "X$x" = "X$dir"; then
18033 if test -z "$haveit"; then
18034 ltrpathdirs="$ltrpathdirs $dir"
18039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18045 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18046 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18052 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18059 if test "X$rpathdirs" != "X"; then
18060 if test -n "$hardcode_libdir_separator"; then
18062 for found_dir in $rpathdirs; do
18063 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18065 acl_save_libdir="$libdir"
18067 eval flag=\"$hardcode_libdir_flag_spec\"
18068 libdir="$acl_save_libdir"
18069 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18071 for found_dir in $rpathdirs; do
18072 acl_save_libdir="$libdir"
18073 libdir="$found_dir"
18074 eval flag=\"$hardcode_libdir_flag_spec\"
18075 libdir="$acl_save_libdir"
18076 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18080 if test "X$ltrpathdirs" != "X"; then
18081 for found_dir in $ltrpathdirs; do
18082 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18086 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18087 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18088 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 gt_save_CPPFLAGS="$CPPFLAGS"
18092 CPPFLAGS="$CPPFLAGS $INCINTL"
18093 gt_save_LIBS="$LIBS"
18094 LIBS="$LIBS $LIBINTL"
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18107 const char *_nl_expand_alias (const char *);
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_link") 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest$ac_exeext &&
18134 $as_test_x conftest$ac_exeext; then
18135 gt_cv_func_gnugettext1_libintl=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 gt_cv_func_gnugettext1_libintl=no
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144 conftest$ac_exeext conftest.$ac_ext
18145 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18146 LIBS="$LIBS $LIBICONV"
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 #include <libintl.h>
18154 extern int _nl_msg_cat_cntr;
18159 const char *_nl_expand_alias (const char *);
18163 bindtextdomain ("", "");
18164 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_link") 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } && {
18183 test -z "$ac_c_werror_flag" ||
18184 test ! -s conftest.err
18185 } && test -s conftest$ac_exeext &&
18186 $as_test_x conftest$ac_exeext; then
18187 LIBINTL="$LIBINTL $LIBICONV"
18188 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18189 gt_cv_func_gnugettext1_libintl=yes
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199 conftest$ac_exeext conftest.$ac_ext
18201 CPPFLAGS="$gt_save_CPPFLAGS"
18202 LIBS="$gt_save_LIBS"
18204 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18205 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18208 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18209 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18210 && test "$PACKAGE" != gettext-runtime \
18211 && test "$PACKAGE" != gettext-tools; }; then
18212 gt_use_preinstalled_gnugettext=yes
18221 if test -n "$INTL_MACOSX_LIBS"; then
18222 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18223 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18224 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18225 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18229 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define ENABLE_NLS 1
18241 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18242 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18243 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18244 echo "${ECHO_T}$USE_NLS" >&6; }
18245 if test "$USE_NLS" = "yes"; then
18246 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18247 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18248 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18249 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18250 gt_source="external libintl"
18255 gt_source="included intl directory"
18257 { echo "$as_me:$LINENO: result: $gt_source" >&5
18258 echo "${ECHO_T}$gt_source" >&6; }
18261 if test "$USE_NLS" = "yes"; then
18263 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18264 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18265 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18266 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18267 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18268 echo "${ECHO_T}$LIBINTL" >&6; }
18270 for element in $INCINTL; do
18272 for x in $CPPFLAGS; do
18274 acl_save_prefix="$prefix"
18275 prefix="$acl_final_prefix"
18276 acl_save_exec_prefix="$exec_prefix"
18277 exec_prefix="$acl_final_exec_prefix"
18279 exec_prefix="$acl_save_exec_prefix"
18280 prefix="$acl_save_prefix"
18282 if test "X$x" = "X$element"; then
18287 if test -z "$haveit"; then
18288 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_GETTEXT 1
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_DCGETTEXT 1
18311 INTLLIBS="$LIBINTL"
18319 if test x${prefix} = xNONE ; then
18320 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18321 sysconfdir=/etc/bacula
18324 if test `eval echo ${libdir}` = NONE/lib ; then
18328 if test `eval echo ${includedir}` = NONE/include ; then
18329 includedir=/usr/include
18332 if test `eval echo ${datarootdir}` = NONE/share ; then
18333 datarootdir=/usr/share
18338 if test x${exec_prefix} = xNONE ; then
18339 exec_prefix=${prefix}
18342 sysconfdir=`eval echo ${sysconfdir}`
18343 datarootdir=`eval echo ${datarootdir}`
18344 docdir=`eval echo ${docdir}`
18345 htmldir=`eval echo ${htmldir}`
18346 libdir=`eval echo ${libdir}`
18347 includedir=`eval echo ${includedir}`
18348 localedir=`eval echo ${datarootdir}/locale`
18349 cat >>confdefs.h <<_ACEOF
18350 #define SYSCONFDIR "$sysconfdir"
18353 cat >>confdefs.h <<_ACEOF
18354 #define LOCALEDIR "$localedir"
18358 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18359 sbindir=${exec_prefix}/sbin
18361 sbindir=`eval echo ${sbindir}`
18363 if test x$mandir = x'${prefix}/man' ; then
18364 mandir=/usr/share/man
18367 if test x$htmldir = x${docdir} ; then
18368 htmldir=`eval echo ${docdir}bacula-${VERSION}/html`
18371 if test x$docdir = x'/usr/share/doc/' ; then
18372 docdir=`eval echo ${docdir}bacula-${VERSION}`
18376 for ac_prog in msgfmt
18378 # Extract the first word of "$ac_prog", so it can be a program name with args.
18379 set dummy $ac_prog; ac_word=$2
18380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18382 if test "${ac_cv_path_MSGFMT+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18391 for as_dir in $PATH
18394 test -z "$as_dir" && as_dir=.
18395 for ac_exec_ext in '' $ac_executable_extensions; do
18396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18397 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18408 MSGFMT=$ac_cv_path_MSGFMT
18409 if test -n "$MSGFMT"; then
18410 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18411 echo "${ECHO_T}$MSGFMT" >&6; }
18413 { echo "$as_me:$LINENO: result: no" >&5
18414 echo "${ECHO_T}no" >&6; }
18418 test -n "$MSGFMT" && break
18420 test -n "$MSGFMT" || MSGFMT="no"
18422 if test "$MSGFMT" = "no"
18424 echo 'msgfmt program not found, disabling NLS !'
18426 USE_INCLUDED_LIBINTL=no
18429 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18430 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18431 if test "${ac_cv_gnu_library_2+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18441 #include <features.h>
18442 #ifdef __GNU_LIBRARY__
18443 #if (__GLIBC__ >= 2)
18449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18450 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18451 ac_cv_gnu_library_2=yes
18453 ac_cv_gnu_library_2=no
18460 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18461 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18463 GLIBC2="$ac_cv_gnu_library_2"
18466 if test -n "$ac_tool_prefix"; then
18467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18471 if test "${ac_cv_prog_RANLIB+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 if test -n "$RANLIB"; then
18475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18481 test -z "$as_dir" && as_dir=.
18482 for ac_exec_ext in '' $ac_executable_extensions; do
18483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18494 RANLIB=$ac_cv_prog_RANLIB
18495 if test -n "$RANLIB"; then
18496 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18497 echo "${ECHO_T}$RANLIB" >&6; }
18499 { echo "$as_me:$LINENO: result: no" >&5
18500 echo "${ECHO_T}no" >&6; }
18505 if test -z "$ac_cv_prog_RANLIB"; then
18506 ac_ct_RANLIB=$RANLIB
18507 # Extract the first word of "ranlib", so it can be a program name with args.
18508 set dummy ranlib; ac_word=$2
18509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 if test -n "$ac_ct_RANLIB"; then
18515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18521 test -z "$as_dir" && as_dir=.
18522 for ac_exec_ext in '' $ac_executable_extensions; do
18523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18524 ac_cv_prog_ac_ct_RANLIB="ranlib"
18525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18535 if test -n "$ac_ct_RANLIB"; then
18536 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18537 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18539 { echo "$as_me:$LINENO: result: no" >&5
18540 echo "${ECHO_T}no" >&6; }
18543 if test "x$ac_ct_RANLIB" = x; then
18546 case $cross_compiling:$ac_tool_warned in
18548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18549 whose name does not start with the host triplet. If you think this
18550 configuration is useful to you, please write to autoconf@gnu.org." >&5
18551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18552 whose name does not start with the host triplet. If you think this
18553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18554 ac_tool_warned=yes ;;
18556 RANLIB=$ac_ct_RANLIB
18559 RANLIB="$ac_cv_prog_RANLIB"
18563 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18564 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lcposix $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18577 /* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18587 return strerror ();
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest$ac_exeext &&
18609 $as_test_x conftest$ac_exeext; then
18610 ac_cv_lib_cposix_strerror=yes
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 ac_cv_lib_cposix_strerror=no
18618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18622 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18623 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18624 if test $ac_cv_lib_cposix_strerror = yes; then
18625 LIBS="$LIBS -lcposix"
18630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18632 if test "${ac_cv_c_const+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18645 /* FIXME: Include the comments suggested by Paul. */
18646 #ifndef __cplusplus
18647 /* Ultrix mips cc rejects this. */
18648 typedef int charset[2];
18650 /* SunOS 4.1.1 cc rejects this. */
18651 char const *const *pcpcc;
18653 /* NEC SVR4.0.2 mips cc rejects this. */
18654 struct point {int x, y;};
18655 static struct point const zero = {0,0};
18656 /* AIX XL C 1.02.0.0 rejects this.
18657 It does not let you subtract one const X* pointer from another in
18658 an arm of an if-expression whose if-part is not a constant
18660 const char *g = "string";
18661 pcpcc = &g + (g ? g-g : 0);
18662 /* HPUX 7.0 cc rejects these. */
18664 ppc = (char**) pcpcc;
18665 pcpcc = (char const *const *) ppc;
18666 { /* SCO 3.2v4 cc rejects this. */
18668 char const *s = 0 ? (char *) 0 : (char const *) 0;
18673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18674 int x[] = {25, 17};
18675 const int *foo = &x[0];
18678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18679 typedef const int *iptr;
18683 { /* AIX XL C 1.02.0.0 rejects this saying
18684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18685 struct s { int j; const int *ap[3]; };
18686 struct s *b; b->j = 5;
18688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18689 const int foo = 10;
18690 if (!foo) return 0;
18692 return !cs[0] && !zero.x;
18699 rm -f conftest.$ac_objext
18700 if { (ac_try="$ac_compile"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_compile") 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } && {
18713 test -z "$ac_c_werror_flag" ||
18714 test ! -s conftest.err
18715 } && test -s conftest.$ac_objext; then
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18726 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18727 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18728 if test $ac_cv_c_const = no; then
18730 cat >>confdefs.h <<\_ACEOF
18737 { echo "$as_me:$LINENO: checking for signed" >&5
18738 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18739 if test "${bh_cv_c_signed+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_compile") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest.$ac_objext; then
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18784 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18785 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18786 if test $bh_cv_c_signed = no; then
18788 cat >>confdefs.h <<\_ACEOF
18794 { echo "$as_me:$LINENO: checking for inline" >&5
18795 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18796 if test "${ac_cv_c_inline+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 for ac_kw in inline __inline__ __inline; do
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #ifndef __cplusplus
18809 static $ac_kw foo_t static_foo () {return 0; }
18810 $ac_kw foo_t foo () {return 0; }
18814 rm -f conftest.$ac_objext
18815 if { (ac_try="$ac_compile"
18816 case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_compile") 2>conftest.er1
18823 grep -v '^ *+' conftest.er1 >conftest.err
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } && {
18828 test -z "$ac_c_werror_flag" ||
18829 test ! -s conftest.err
18830 } && test -s conftest.$ac_objext; then
18831 ac_cv_c_inline=$ac_kw
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840 test "$ac_cv_c_inline" != no && break
18844 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18845 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18848 case $ac_cv_c_inline in
18851 case $ac_cv_c_inline in
18853 *) ac_val=$ac_cv_c_inline;;
18855 cat >>confdefs.h <<_ACEOF
18856 #ifndef __cplusplus
18857 #define inline $ac_val
18863 { echo "$as_me:$LINENO: checking for off_t" >&5
18864 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18865 if test "${ac_cv_type_off_t+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 $ac_includes_default
18875 typedef off_t ac__type_new_;
18879 if ((ac__type_new_ *) 0)
18881 if (sizeof (ac__type_new_))
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_compile") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest.$ac_objext; then
18904 ac_cv_type_off_t=yes
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_type_off_t=no
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18915 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18916 if test $ac_cv_type_off_t = yes; then
18920 cat >>confdefs.h <<_ACEOF
18921 #define off_t long int
18926 { echo "$as_me:$LINENO: checking for size_t" >&5
18927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_size_t+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 $ac_includes_default
18938 typedef size_t ac__type_new_;
18942 if ((ac__type_new_ *) 0)
18944 if (sizeof (ac__type_new_))
18950 rm -f conftest.$ac_objext
18951 if { (ac_try="$ac_compile"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_compile") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest.$ac_objext; then
18967 ac_cv_type_size_t=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_type_size_t=no
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18977 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18978 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18979 if test $ac_cv_type_size_t = yes; then
18983 cat >>confdefs.h <<_ACEOF
18984 #define size_t unsigned int
18990 { echo "$as_me:$LINENO: checking for long long" >&5
18991 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18992 if test "${ac_cv_type_long_long+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 long long ll = 1LL; int i = 63;
19005 long long llmax = (long long) -1;
19006 return ll << i | ll >> i | llmax / ll | llmax % ll;
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_link") 2>conftest.er1
19020 grep -v '^ *+' conftest.er1 >conftest.err
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest$ac_exeext &&
19028 $as_test_x conftest$ac_exeext; then
19029 ac_cv_type_long_long=yes
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_cv_type_long_long=no
19037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19038 conftest$ac_exeext conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19041 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19042 if test $ac_cv_type_long_long = yes; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_LONG_LONG 1
19051 { echo "$as_me:$LINENO: checking for long double" >&5
19052 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19053 if test "${gt_cv_c_long_double+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 if test "$GCC" = yes; then
19057 gt_cv_c_long_double=yes
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19066 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19067 long double foo = 0.0;
19068 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19069 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_compile") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest.$ac_objext; then
19096 gt_cv_c_long_double=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 gt_cv_c_long_double=no
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19108 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19109 if test $gt_cv_c_long_double = yes; then
19111 cat >>confdefs.h <<\_ACEOF
19112 #define HAVE_LONG_DOUBLE 1
19118 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19119 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19120 if test "${gt_cv_c_wchar_t+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <stddef.h>
19130 wchar_t foo = (wchar_t)'\0';
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.$ac_objext; then
19156 gt_cv_c_wchar_t=yes
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19167 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19168 if test $gt_cv_c_wchar_t = yes; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_WCHAR_T 1
19177 { echo "$as_me:$LINENO: checking for wint_t" >&5
19178 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19179 if test "${gt_cv_c_wint_t+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19189 wint_t foo = (wchar_t)'\0';
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_compile") 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest.$ac_objext; then
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19226 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19227 if test $gt_cv_c_wint_t = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE_WINT_T 1
19236 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19237 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19238 if test "${gl_cv_header_inttypes_h+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <sys/types.h>
19248 #include <inttypes.h>
19252 uintmax_t i = (uintmax_t) -1;
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 gl_cv_header_inttypes_h=yes
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 gl_cv_header_inttypes_h=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19285 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19286 if test $gl_cv_header_inttypes_h = yes; then
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19295 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19296 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19297 if test "${gl_cv_header_stdint_h+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 #include <sys/types.h>
19307 #include <stdint.h>
19311 uintmax_t i = (uintmax_t) -1;
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest.$ac_objext; then
19333 gl_cv_header_stdint_h=yes
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 gl_cv_header_stdint_h=no
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19344 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19345 if test $gl_cv_header_stdint_h = yes; then
19347 cat >>confdefs.h <<_ACEOF
19348 #define HAVE_STDINT_H_WITH_UINTMAX 1
19356 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19357 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19358 if test "${gt_cv_c_intmax_t+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19368 #include <stddef.h>
19369 #include <stdlib.h>
19370 #if HAVE_STDINT_H_WITH_UINTMAX
19371 #include <stdint.h>
19373 #if HAVE_INTTYPES_H_WITH_UINTMAX
19374 #include <inttypes.h>
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } && {
19399 test -z "$ac_c_werror_flag" ||
19400 test ! -s conftest.err
19401 } && test -s conftest.$ac_objext; then
19402 gt_cv_c_intmax_t=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 gt_cv_c_intmax_t=no
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19413 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19414 if test $gt_cv_c_intmax_t = yes; then
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE_INTMAX_T 1
19424 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19425 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19426 if test "${gt_cv_func_printf_posix+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 if test "$cross_compiling" = yes; then
19432 cat >conftest.$ac_ext <<_ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19439 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445 $EGREP "notposix" >/dev/null 2>&1; then
19446 gt_cv_func_printf_posix="guessing no"
19448 gt_cv_func_printf_posix="guessing yes"
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19462 #include <string.h>
19463 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19464 dollar expansion (possibly an autoconf bug). */
19465 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19466 static char buf[100];
19469 sprintf (buf, format, 33, 55);
19470 return (strcmp (buf, "55 33") != 0);
19473 rm -f conftest$ac_exeext
19474 if { (ac_try="$ac_link"
19475 case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_link") 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 gt_cv_func_printf_posix=yes
19495 echo "$as_me: program exited with status $ac_status" >&5
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ( exit $ac_status )
19500 gt_cv_func_printf_posix=no
19502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19508 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19509 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19510 case $gt_cv_func_printf_posix in
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_POSIX_PRINTF 1
19520 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19521 # for constant arguments. Useless!
19522 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19523 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19524 if test "${ac_cv_working_alloca_h+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <alloca.h>
19537 char *p = (char *) alloca (2 * sizeof (int));
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_link") 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } && {
19557 test -z "$ac_c_werror_flag" ||
19558 test ! -s conftest.err
19559 } && test -s conftest$ac_exeext &&
19560 $as_test_x conftest$ac_exeext; then
19561 ac_cv_working_alloca_h=yes
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_cv_working_alloca_h=no
19569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19570 conftest$ac_exeext conftest.$ac_ext
19572 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19574 if test $ac_cv_working_alloca_h = yes; then
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_ALLOCA_H 1
19582 { echo "$as_me:$LINENO: checking for alloca" >&5
19583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19584 if test "${ac_cv_func_alloca_works+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 # define alloca __builtin_alloca
19597 # include <malloc.h>
19598 # define alloca _alloca
19600 # ifdef HAVE_ALLOCA_H
19601 # include <alloca.h>
19606 # ifndef alloca /* predefined by HP cc +Olibcalls */
19617 char *p = (char *) alloca (1);
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_link") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest$ac_exeext &&
19640 $as_test_x conftest$ac_exeext; then
19641 ac_cv_func_alloca_works=yes
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ac_cv_func_alloca_works=no
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19655 if test $ac_cv_func_alloca_works = yes; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ALLOCA 1
19662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19663 # that cause trouble. Some versions do not even contain alloca or
19664 # contain a buggy version. If you still want to use their alloca,
19665 # use ar to extract alloca.o from them instead of compiling alloca.c.
19667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19669 cat >>confdefs.h <<\_ACEOF
19674 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19676 if test "${ac_cv_os_cray+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #if defined CRAY && ! defined CRAY2
19692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19693 $EGREP "webecray" >/dev/null 2>&1; then
19701 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19703 if test $ac_cv_os_cray = yes; then
19704 for ac_func in _getb67 GETB67 getb67; do
19705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19719 #define $ac_func innocuous_$ac_func
19721 /* System header to define __stub macros and hopefully few prototypes,
19722 which can conflict with char $ac_func (); below.
19723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19724 <limits.h> exists even on freestanding compilers. */
19727 # include <limits.h>
19729 # include <assert.h>
19734 /* Override any GCC internal prototype to avoid an error.
19735 Use char because int might match the return type of a GCC
19736 builtin and then its argument prototype would still apply. */
19741 /* The GNU C library defines this for functions which it implements
19742 to always fail with ENOSYS. Some functions are actually named
19743 something starting with __ and the normal name is an alias. */
19744 #if defined __stub_$ac_func || defined __stub___$ac_func
19751 return $ac_func ();
19756 rm -f conftest.$ac_objext conftest$ac_exeext
19757 if { (ac_try="$ac_link"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_link") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest$ac_exeext &&
19773 $as_test_x conftest$ac_exeext; then
19774 eval "$as_ac_var=yes"
19776 echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19779 eval "$as_ac_var=no"
19782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19783 conftest$ac_exeext conftest.$ac_ext
19785 ac_res=`eval echo '${'$as_ac_var'}'`
19786 { echo "$as_me:$LINENO: result: $ac_res" >&5
19787 echo "${ECHO_T}$ac_res" >&6; }
19788 if test `eval echo '${'$as_ac_var'}'` = yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define CRAY_STACKSEG_END $ac_func
19800 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19801 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19802 if test "${ac_cv_c_stack_direction+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 if test "$cross_compiling" = yes; then
19806 ac_cv_c_stack_direction=0
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 $ac_includes_default
19816 find_stack_direction ()
19818 static char *addr = 0;
19823 return find_stack_direction ();
19826 return (&dummy > addr) ? 1 : -1;
19832 return find_stack_direction () < 0;
19835 rm -f conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_link") 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_c_stack_direction=1
19857 echo "$as_me: program exited with status $ac_status" >&5
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ( exit $ac_status )
19862 ac_cv_c_stack_direction=-1
19864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19869 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19872 cat >>confdefs.h <<_ACEOF
19873 #define STACK_DIRECTION $ac_cv_c_stack_direction
19881 for ac_header in stdlib.h unistd.h
19883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 ac_res=`eval echo '${'$as_ac_Header'}'`
19891 { echo "$as_me:$LINENO: result: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19894 # Is the header compilable?
19895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19904 #include <$ac_header>
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_compile") 2>conftest.er1
19915 grep -v '^ *+' conftest.er1 >conftest.err
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && {
19920 test -z "$ac_c_werror_flag" ||
19921 test ! -s conftest.err
19922 } && test -s conftest.$ac_objext; then
19923 ac_header_compiler=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_header_compiler=no
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19933 echo "${ECHO_T}$ac_header_compiler" >&6; }
19935 # Is the header present?
19936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 #include <$ac_header>
19946 if { (ac_try="$ac_cpp conftest.$ac_ext"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null && {
19959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19962 ac_header_preproc=yes
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_header_preproc=no
19970 rm -f conftest.err conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 echo "${ECHO_T}$ac_header_preproc" >&6; }
19974 # So? What about this header?
19975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19981 ac_header_preproc=yes
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 eval "$as_ac_Header=\$ac_header_preproc"
20006 ac_res=`eval echo '${'$as_ac_Header'}'`
20007 { echo "$as_me:$LINENO: result: $ac_res" >&5
20008 echo "${ECHO_T}$ac_res" >&6; }
20011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021 for ac_func in getpagesize
20023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20037 #define $ac_func innocuous_$ac_func
20039 /* System header to define __stub macros and hopefully few prototypes,
20040 which can conflict with char $ac_func (); below.
20041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042 <limits.h> exists even on freestanding compilers. */
20045 # include <limits.h>
20047 # include <assert.h>
20052 /* Override any GCC internal prototype to avoid an error.
20053 Use char because int might match the return type of a GCC
20054 builtin and then its argument prototype would still apply. */
20059 /* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062 #if defined __stub_$ac_func || defined __stub___$ac_func
20069 return $ac_func ();
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_link") 2>conftest.er1
20083 grep -v '^ *+' conftest.er1 >conftest.err
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && {
20088 test -z "$ac_c_werror_flag" ||
20089 test ! -s conftest.err
20090 } && test -s conftest$ac_exeext &&
20091 $as_test_x conftest$ac_exeext; then
20092 eval "$as_ac_var=yes"
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 eval "$as_ac_var=no"
20100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20101 conftest$ac_exeext conftest.$ac_ext
20103 ac_res=`eval echo '${'$as_ac_var'}'`
20104 { echo "$as_me:$LINENO: result: $ac_res" >&5
20105 echo "${ECHO_T}$ac_res" >&6; }
20106 if test `eval echo '${'$as_ac_var'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20114 { echo "$as_me:$LINENO: checking for working mmap" >&5
20115 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 if test "$cross_compiling" = yes; then
20120 ac_cv_func_mmap_fixed_mapped=no
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $ac_includes_default
20129 /* malloc might have been renamed as rpl_malloc. */
20132 /* Thanks to Mike Haertel and Jim Avera for this test.
20133 Here is a matrix of mmap possibilities:
20134 mmap private not fixed
20135 mmap private fixed at somewhere currently unmapped
20136 mmap private fixed at somewhere already mapped
20137 mmap shared not fixed
20138 mmap shared fixed at somewhere currently unmapped
20139 mmap shared fixed at somewhere already mapped
20140 For private mappings, we should verify that changes cannot be read()
20141 back from the file, nor mmap's back from the file at a different
20142 address. (There have been systems where private was not correctly
20143 implemented like the infamous i386 svr4.0, and systems where the
20144 VM page cache was not coherent with the file system buffer cache
20145 like early versions of FreeBSD and possibly contemporary NetBSD.)
20146 For shared mappings, we should conversely verify that changes get
20147 propagated back to all the places they're supposed to be.
20149 Grep wants private fixed already mapped.
20150 The main things grep needs to know about mmap are:
20151 * does it exist and is it safe to write into the mmap'd area
20152 * how to use it (BSD variants) */
20155 #include <sys/mman.h>
20157 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20161 /* This mess was copied from the GNU getpagesize.h. */
20162 #ifndef HAVE_GETPAGESIZE
20163 /* Assume that all systems that can run configure have sys/param.h. */
20164 # ifndef HAVE_SYS_PARAM_H
20165 # define HAVE_SYS_PARAM_H 1
20168 # ifdef _SC_PAGESIZE
20169 # define getpagesize() sysconf(_SC_PAGESIZE)
20170 # else /* no _SC_PAGESIZE */
20171 # ifdef HAVE_SYS_PARAM_H
20172 # include <sys/param.h>
20173 # ifdef EXEC_PAGESIZE
20174 # define getpagesize() EXEC_PAGESIZE
20175 # else /* no EXEC_PAGESIZE */
20177 # define getpagesize() NBPG * CLSIZE
20180 # endif /* no CLSIZE */
20181 # else /* no NBPG */
20183 # define getpagesize() NBPC
20184 # else /* no NBPC */
20186 # define getpagesize() PAGESIZE
20187 # endif /* PAGESIZE */
20188 # endif /* no NBPC */
20189 # endif /* no NBPG */
20190 # endif /* no EXEC_PAGESIZE */
20191 # else /* no HAVE_SYS_PARAM_H */
20192 # define getpagesize() 8192 /* punt totally */
20193 # endif /* no HAVE_SYS_PARAM_H */
20194 # endif /* no _SC_PAGESIZE */
20196 #endif /* no HAVE_GETPAGESIZE */
20201 char *data, *data2, *data3;
20205 pagesize = getpagesize ();
20207 /* First, make a file with some known garbage in it. */
20208 data = (char *) malloc (pagesize);
20211 for (i = 0; i < pagesize; ++i)
20212 *(data + i) = rand ();
20214 fd = creat ("conftest.mmap", 0600);
20217 if (write (fd, data, pagesize) != pagesize)
20221 /* Next, try to mmap the file at a fixed address which already has
20222 something else allocated at it. If we can, also make sure that
20223 we see the same garbage. */
20224 fd = open ("conftest.mmap", O_RDWR);
20227 data2 = (char *) malloc (2 * pagesize);
20230 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20231 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20232 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20234 for (i = 0; i < pagesize; ++i)
20235 if (*(data + i) != *(data2 + i))
20238 /* Finally, make sure that changes to the mapped area do not
20239 percolate back to the file as seen by read(). (This is a bug on
20240 some variants of i386 svr4.0.) */
20241 for (i = 0; i < pagesize; ++i)
20242 *(data2 + i) = *(data2 + i) + 1;
20243 data3 = (char *) malloc (pagesize);
20246 if (read (fd, data3, pagesize) != pagesize)
20248 for (i = 0; i < pagesize; ++i)
20249 if (*(data + i) != *(data3 + i))
20255 rm -f conftest$ac_exeext
20256 if { (ac_try="$ac_link"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20266 { (case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_try") 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_func_mmap_fixed_mapped=yes
20277 echo "$as_me: program exited with status $ac_status" >&5
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 ( exit $ac_status )
20282 ac_cv_func_mmap_fixed_mapped=no
20284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20290 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20291 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_MMAP 1
20298 rm -f conftest.mmap
20301 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20302 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20303 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 #include <features.h>
20314 #ifdef __GNU_LIBRARY__
20315 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20322 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20323 ac_cv_gnu_library_2_1=yes
20325 ac_cv_gnu_library_2_1=no
20332 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20333 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20335 GLIBC21="$ac_cv_gnu_library_2_1"
20340 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20341 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20342 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 if test "$cross_compiling" = yes; then
20348 # Guess based on the CPU.
20349 case "$host_cpu" in
20350 alpha* | i3456786 | m68k | s390*)
20351 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20353 gt_cv_int_divbyzero_sigfpe="guessing no";;
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 #include <stdlib.h>
20365 #include <signal.h>
20369 sigfpe_handler (int sig)
20371 sigfpe_handler (sig) int sig;
20374 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20375 exit (sig != SIGFPE);
20385 signal (SIGFPE, sigfpe_handler);
20386 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20387 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20388 signal (SIGTRAP, sigfpe_handler);
20390 /* Linux/SPARC yields signal SIGILL. */
20391 #if defined (__sparc__) && defined (__linux__)
20392 signal (SIGILL, sigfpe_handler);
20401 rm -f conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 gt_cv_int_divbyzero_sigfpe=yes
20423 echo "$as_me: program exited with status $ac_status" >&5
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ( exit $ac_status )
20428 gt_cv_int_divbyzero_sigfpe=no
20430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20436 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20437 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20438 case "$gt_cv_int_divbyzero_sigfpe" in
20443 cat >>confdefs.h <<_ACEOF
20444 #define INTDIV0_RAISES_SIGFPE $value
20449 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20450 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20451 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 unsigned long long ull = 1ULL; int i = 63;
20464 unsigned long long ullmax = (unsigned long long) -1;
20465 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (ac_try="$ac_link"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_link") 2>conftest.er1
20479 grep -v '^ *+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest$ac_exeext &&
20487 $as_test_x conftest$ac_exeext; then
20488 ac_cv_type_unsigned_long_long=yes
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ac_cv_type_unsigned_long_long=no
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497 conftest$ac_exeext conftest.$ac_ext
20499 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20500 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20501 if test $ac_cv_type_unsigned_long_long = yes; then
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE_UNSIGNED_LONG_LONG 1
20512 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20514 test $ac_cv_type_unsigned_long_long = yes \
20515 && ac_type='unsigned long long' \
20516 || ac_type='unsigned long'
20518 cat >>confdefs.h <<_ACEOF
20519 #define uintmax_t $ac_type
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_UINTMAX_T 1
20531 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20532 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20533 if test "${gt_cv_header_inttypes_h+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 #include <sys/types.h>
20544 #include <inttypes.h>
20553 rm -f conftest.$ac_objext
20554 if { (ac_try="$ac_compile"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_compile") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest.$ac_objext; then
20570 gt_cv_header_inttypes_h=yes
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 gt_cv_header_inttypes_h=no
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20582 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20583 if test $gt_cv_header_inttypes_h = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_INTTYPES_H 1
20593 if test $gt_cv_header_inttypes_h = yes; then
20594 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20595 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20596 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #include <inttypes.h>
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && {
20633 test -z "$ac_c_werror_flag" ||
20634 test ! -s conftest.err
20635 } && test -s conftest.$ac_objext; then
20636 gt_cv_inttypes_pri_broken=no
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 gt_cv_inttypes_pri_broken=yes
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20648 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20650 if test "$gt_cv_inttypes_pri_broken" = yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define PRI_MACROS_BROKEN 1
20660 for ac_header in stdint.h
20662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670 { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20673 # Is the header compilable?
20674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 $ac_includes_default
20683 #include <$ac_header>
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_compile") 2>conftest.er1
20694 grep -v '^ *+' conftest.er1 >conftest.err
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } && {
20699 test -z "$ac_c_werror_flag" ||
20700 test ! -s conftest.err
20701 } && test -s conftest.$ac_objext; then
20702 ac_header_compiler=yes
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_header_compiler=no
20710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20712 echo "${ECHO_T}$ac_header_compiler" >&6; }
20714 # Is the header present?
20715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 #include <$ac_header>
20725 if { (ac_try="$ac_cpp conftest.$ac_ext"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } >/dev/null && {
20738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20739 test ! -s conftest.err
20741 ac_header_preproc=yes
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 ac_header_preproc=no
20749 rm -f conftest.err conftest.$ac_ext
20750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20751 echo "${ECHO_T}$ac_header_preproc" >&6; }
20753 # So? What about this header?
20754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20760 ac_header_preproc=yes
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 eval "$as_ac_Header=\$ac_header_preproc"
20785 ac_res=`eval echo '${'$as_ac_Header'}'`
20786 { echo "$as_me:$LINENO: result: $ac_res" >&5
20787 echo "${ECHO_T}$ac_res" >&6; }
20790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20791 cat >>confdefs.h <<_ACEOF
20792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20799 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20800 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 #include <limits.h>
20811 #include <stdint.h>
20818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20819 $EGREP "Found it" >/dev/null 2>&1; then
20824 if test -z "$result"; then
20825 if test "$cross_compiling" = yes; then
20826 # Depending upon the size, compute the lo and hi bounds.
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <stddef.h>
20837 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20853 grep -v '^ *+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #include <stddef.h>
20873 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.$ac_objext; then
20897 ac_hi=$ac_mid; break
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_lo=`expr $ac_mid + 1`
20903 if test $ac_lo -le $ac_mid; then
20907 ac_mid=`expr 2 '*' $ac_mid + 1`
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 cat >conftest.$ac_ext <<_ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922 #include <stddef.h>
20926 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20933 rm -f conftest.$ac_objext
20934 if { (ac_try="$ac_compile"
20935 case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest.$ac_objext; then
20952 cat >conftest.$ac_ext <<_ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 #include <stddef.h>
20962 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20986 ac_lo=$ac_mid; break
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_hi=`expr '(' $ac_mid ')' - 1`
20992 if test $ac_mid -le $ac_hi; then
20996 ac_mid=`expr 2 '*' $ac_mid`
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 # Binary search between lo and hi bounds.
21013 while test "x$ac_lo" != "x$ac_hi"; do
21014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <stddef.h>
21025 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_compile") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest.$ac_objext; then
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 ac_lo=`expr '(' $ac_mid ')' + 1`
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 ?*) res_hi=$ac_lo;;
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 #include <stddef.h>
21071 static long int longval () { return ~(size_t)0 / 10; }
21072 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21074 #include <stdlib.h>
21079 FILE *f = fopen ("conftest.val", "w");
21082 if ((~(size_t)0 / 10) < 0)
21084 long int i = longval ();
21085 if (i != (~(size_t)0 / 10))
21087 fprintf (f, "%ld\n", i);
21091 unsigned long int i = ulongval ();
21092 if (i != (~(size_t)0 / 10))
21094 fprintf (f, "%lu\n", i);
21096 return ferror (f) || fclose (f) != 0;
21102 rm -f conftest$ac_exeext
21103 if { (ac_try="$ac_link"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_link") 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21113 { (case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_try") 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 res_hi=`cat conftest.val`
21124 echo "$as_me: program exited with status $ac_status" >&5
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ( exit $ac_status )
21131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21135 if test "$cross_compiling" = yes; then
21136 # Depending upon the size, compute the lo and hi bounds.
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 #include <stddef.h>
21147 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest.$ac_objext; then
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 #include <stddef.h>
21183 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_hi=$ac_mid; break
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_lo=`expr $ac_mid + 1`
21213 if test $ac_lo -le $ac_mid; then
21217 ac_mid=`expr 2 '*' $ac_mid + 1`
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <stddef.h>
21236 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_compile") 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest.$ac_objext; then
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include <stddef.h>
21272 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_compile") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest.$ac_objext; then
21296 ac_lo=$ac_mid; break
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_hi=`expr '(' $ac_mid ')' - 1`
21302 if test $ac_mid -le $ac_hi; then
21306 ac_mid=`expr 2 '*' $ac_mid`
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 # Binary search between lo and hi bounds.
21323 while test "x$ac_lo" != "x$ac_hi"; do
21324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <stddef.h>
21335 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_compile") 2>conftest.er1
21351 grep -v '^ *+' conftest.er1 >conftest.err
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } && {
21356 test -z "$ac_c_werror_flag" ||
21357 test ! -s conftest.err
21358 } && test -s conftest.$ac_objext; then
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_lo=`expr '(' $ac_mid ')' + 1`
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 ?*) res_lo=$ac_lo;;
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <stddef.h>
21381 static long int longval () { return ~(size_t)0 % 10; }
21382 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21384 #include <stdlib.h>
21389 FILE *f = fopen ("conftest.val", "w");
21392 if ((~(size_t)0 % 10) < 0)
21394 long int i = longval ();
21395 if (i != (~(size_t)0 % 10))
21397 fprintf (f, "%ld\n", i);
21401 unsigned long int i = ulongval ();
21402 if (i != (~(size_t)0 % 10))
21404 fprintf (f, "%lu\n", i);
21406 return ferror (f) || fclose (f) != 0;
21412 rm -f conftest$ac_exeext
21413 if { (ac_try="$ac_link"
21414 case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_link") 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423 { (case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_try") 2>&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 res_lo=`cat conftest.val`
21434 echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ( exit $ac_status )
21441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21445 if test "$cross_compiling" = yes; then
21446 # Depending upon the size, compute the lo and hi bounds.
21447 cat >conftest.$ac_ext <<_ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 #include <stddef.h>
21457 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21464 rm -f conftest.$ac_objext
21465 if { (ac_try="$ac_compile"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_compile") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest.$ac_objext; then
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21489 #include <stddef.h>
21493 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21509 grep -v '^ *+' conftest.er1 >conftest.err
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } && {
21514 test -z "$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21516 } && test -s conftest.$ac_objext; then
21517 ac_hi=$ac_mid; break
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_lo=`expr $ac_mid + 1`
21523 if test $ac_lo -le $ac_mid; then
21527 ac_mid=`expr 2 '*' $ac_mid + 1`
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <stddef.h>
21546 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21553 rm -f conftest.$ac_objext
21554 if { (ac_try="$ac_compile"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_compile") 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest.$ac_objext; then
21572 cat >conftest.$ac_ext <<_ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <stddef.h>
21582 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_compile") 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } && {
21603 test -z "$ac_c_werror_flag" ||
21604 test ! -s conftest.err
21605 } && test -s conftest.$ac_objext; then
21606 ac_lo=$ac_mid; break
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ac_hi=`expr '(' $ac_mid ')' - 1`
21612 if test $ac_mid -le $ac_hi; then
21616 ac_mid=`expr 2 '*' $ac_mid`
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632 # Binary search between lo and hi bounds.
21633 while test "x$ac_lo" != "x$ac_hi"; do
21634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 #include <stddef.h>
21645 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_lo=`expr '(' $ac_mid ')' + 1`
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 ?*) fits_in_uint=$ac_lo;;
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <stddef.h>
21691 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21692 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21694 #include <stdlib.h>
21699 FILE *f = fopen ("conftest.val", "w");
21702 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21704 long int i = longval ();
21705 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21707 fprintf (f, "%ld\n", i);
21711 unsigned long int i = ulongval ();
21712 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21714 fprintf (f, "%lu\n", i);
21716 return ferror (f) || fclose (f) != 0;
21722 rm -f conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_link") 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21733 { (case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_try") 2>&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; }; then
21742 fits_in_uint=`cat conftest.val`
21744 echo "$as_me: program exited with status $ac_status" >&5
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ( exit $ac_status )
21751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21755 if test "$fits_in_uint" = 1; then
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 #include <stddef.h>
21764 extern unsigned long foo;
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_compile") 2>conftest.er1
21783 grep -v '^ *+' conftest.er1 >conftest.err
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest.$ac_objext; then
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 if test -z "$result"; then
21802 if test "$fits_in_uint" = 1; then
21803 result="$res_hi$res_lo"U
21805 result="$res_hi$res_lo"UL
21808 result='~(size_t)0'
21811 { echo "$as_me:$LINENO: result: $result" >&5
21812 echo "${ECHO_T}$result" >&6; }
21813 if test "$result" != yes; then
21815 cat >>confdefs.h <<_ACEOF
21816 #define SIZE_MAX $result
21825 for ac_header in stdint.h
21827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835 { echo "$as_me:$LINENO: result: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21838 # Is the header compilable?
21839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 $ac_includes_default
21848 #include <$ac_header>
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.$ac_objext; then
21867 ac_header_compiler=yes
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ac_header_compiler=no
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21877 echo "${ECHO_T}$ac_header_compiler" >&6; }
21879 # Is the header present?
21880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 #include <$ac_header>
21890 if { (ac_try="$ac_cpp conftest.$ac_ext"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21898 grep -v '^ *+' conftest.er1 >conftest.err
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } >/dev/null && {
21903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21904 test ! -s conftest.err
21906 ac_header_preproc=yes
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 ac_header_preproc=no
21914 rm -f conftest.err conftest.$ac_ext
21915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21916 echo "${ECHO_T}$ac_header_preproc" >&6; }
21918 # So? What about this header?
21919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21925 ac_header_preproc=yes
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 eval "$as_ac_Header=\$ac_header_preproc"
21950 ac_res=`eval echo '${'$as_ac_Header'}'`
21951 { echo "$as_me:$LINENO: result: $ac_res" >&5
21952 echo "${ECHO_T}$ac_res" >&6; }
21955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21956 cat >>confdefs.h <<_ACEOF
21957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21971 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21972 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21973 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 $ac_includes_default
21983 typedef ptrdiff_t ac__type_new_;
21987 if ((ac__type_new_ *) 0)
21989 if (sizeof (ac__type_new_))
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_compile") 2>conftest.er1
22004 grep -v '^ *+' conftest.er1 >conftest.err
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest.$ac_objext; then
22012 ac_cv_type_ptrdiff_t=yes
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_cv_type_ptrdiff_t=no
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22024 if test $ac_cv_type_ptrdiff_t = yes; then
22028 cat >>confdefs.h <<\_ACEOF
22029 #define ptrdiff_t long
22045 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22046 stdlib.h string.h unistd.h sys/param.h
22048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 ac_res=`eval echo '${'$as_ac_Header'}'`
22056 { echo "$as_me:$LINENO: result: $ac_res" >&5
22057 echo "${ECHO_T}$ac_res" >&6; }
22059 # Is the header compilable?
22060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22069 #include <$ac_header>
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_header_compiler=yes
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_compiler=no
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6; }
22100 # Is the header present?
22101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22111 if { (ac_try="$ac_cpp conftest.$ac_ext"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } >/dev/null && {
22124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22127 ac_header_preproc=yes
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_preproc=no
22135 rm -f conftest.err conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137 echo "${ECHO_T}$ac_header_preproc" >&6; }
22139 # So? What about this header?
22140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22146 ac_header_preproc=yes
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 eval "$as_ac_Header=\$ac_header_preproc"
22171 ac_res=`eval echo '${'$as_ac_Header'}'`
22172 { echo "$as_me:$LINENO: result: $ac_res" >&5
22173 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22208 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22209 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22210 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22227 #define $ac_func innocuous_$ac_func
22229 /* System header to define __stub macros and hopefully few prototypes,
22230 which can conflict with char $ac_func (); below.
22231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22232 <limits.h> exists even on freestanding compilers. */
22235 # include <limits.h>
22237 # include <assert.h>
22242 /* Override any GCC internal prototype to avoid an error.
22243 Use char because int might match the return type of a GCC
22244 builtin and then its argument prototype would still apply. */
22249 /* The GNU C library defines this for functions which it implements
22250 to always fail with ENOSYS. Some functions are actually named
22251 something starting with __ and the normal name is an alias. */
22252 #if defined __stub_$ac_func || defined __stub___$ac_func
22259 return $ac_func ();
22264 rm -f conftest.$ac_objext conftest$ac_exeext
22265 if { (ac_try="$ac_link"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_link") 2>conftest.er1
22273 grep -v '^ *+' conftest.er1 >conftest.err
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest$ac_exeext &&
22281 $as_test_x conftest$ac_exeext; then
22282 eval "$as_ac_var=yes"
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 eval "$as_ac_var=no"
22290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22291 conftest$ac_exeext conftest.$ac_ext
22293 ac_res=`eval echo '${'$as_ac_var'}'`
22294 { echo "$as_me:$LINENO: result: $ac_res" >&5
22295 echo "${ECHO_T}$ac_res" >&6; }
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22307 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22308 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22323 char *p = (char *) _snprintf;
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.$ac_objext; then
22347 ac_cv_have_decl__snprintf=yes
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22352 ac_cv_have_decl__snprintf=no
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22358 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22359 if test $ac_cv_have_decl__snprintf = yes; then
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_DECL__SNPRINTF $gt_value
22371 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22372 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22373 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22388 char *p = (char *) _snwprintf;
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_compile") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest.$ac_objext; then
22412 ac_cv_have_decl__snwprintf=yes
22414 echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22417 ac_cv_have_decl__snwprintf=no
22420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22423 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22424 if test $ac_cv_have_decl__snwprintf = yes; then
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_DECL__SNWPRINTF $gt_value
22437 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22438 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22439 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22453 #ifndef feof_unlocked
22454 char *p = (char *) feof_unlocked;
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_compile") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest.$ac_objext; then
22478 ac_cv_have_decl_feof_unlocked=yes
22480 echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22483 ac_cv_have_decl_feof_unlocked=no
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22489 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22490 if test $ac_cv_have_decl_feof_unlocked = yes; then
22496 cat >>confdefs.h <<_ACEOF
22497 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22502 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22503 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22504 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22518 #ifndef fgets_unlocked
22519 char *p = (char *) fgets_unlocked;
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22543 ac_cv_have_decl_fgets_unlocked=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_cv_have_decl_fgets_unlocked=no
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22554 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22555 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22567 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22568 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22569 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 cat >conftest.$ac_ext <<_ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22583 #ifndef getc_unlocked
22584 char *p = (char *) getc_unlocked;
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_have_decl_getc_unlocked=yes
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_cv_have_decl_getc_unlocked=no
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22619 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22620 if test $ac_cv_have_decl_getc_unlocked = yes; then
22626 cat >>confdefs.h <<_ACEOF
22627 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22632 case $gt_cv_func_printf_posix in
22633 *yes) HAVE_POSIX_PRINTF=1 ;;
22634 *) HAVE_POSIX_PRINTF=0 ;;
22637 if test "$ac_cv_func_asprintf" = yes; then
22643 if test "$ac_cv_func_snprintf" = yes; then
22649 if test "$ac_cv_func_wprintf" = yes; then
22661 am_save_CPPFLAGS="$CPPFLAGS"
22663 for element in $INCICONV; do
22665 for x in $CPPFLAGS; do
22667 acl_save_prefix="$prefix"
22668 prefix="$acl_final_prefix"
22669 acl_save_exec_prefix="$exec_prefix"
22670 exec_prefix="$acl_final_exec_prefix"
22672 exec_prefix="$acl_save_exec_prefix"
22673 prefix="$acl_save_prefix"
22675 if test "X$x" = "X$element"; then
22680 if test -z "$haveit"; then
22681 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22686 { echo "$as_me:$LINENO: checking for iconv" >&5
22687 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22688 if test "${am_cv_func_iconv+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 am_cv_func_iconv="no, consider installing GNU libiconv"
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <stdlib.h>
22705 iconv_t cd = iconv_open("","");
22706 iconv(cd,NULL,NULL,NULL,NULL);
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_link") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext &&
22729 $as_test_x conftest$ac_exeext; then
22730 am_cv_func_iconv=yes
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 conftest$ac_exeext conftest.$ac_ext
22740 if test "$am_cv_func_iconv" != yes; then
22741 am_save_LIBS="$LIBS"
22742 LIBS="$LIBS $LIBICONV"
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <stdlib.h>
22754 iconv_t cd = iconv_open("","");
22755 iconv(cd,NULL,NULL,NULL,NULL);
22761 rm -f conftest.$ac_objext conftest$ac_exeext
22762 if { (ac_try="$ac_link"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_link") 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && {
22775 test -z "$ac_c_werror_flag" ||
22776 test ! -s conftest.err
22777 } && test -s conftest$ac_exeext &&
22778 $as_test_x conftest$ac_exeext; then
22779 am_cv_lib_iconv=yes
22780 am_cv_func_iconv=yes
22782 echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22789 conftest$ac_exeext conftest.$ac_ext
22790 LIBS="$am_save_LIBS"
22794 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22795 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22796 if test "$am_cv_func_iconv" = yes; then
22798 cat >>confdefs.h <<\_ACEOF
22799 #define HAVE_ICONV 1
22803 if test "$am_cv_lib_iconv" = yes; then
22804 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22805 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22806 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22807 echo "${ECHO_T}$LIBICONV" >&6; }
22809 CPPFLAGS="$am_save_CPPFLAGS"
22816 if test "$am_cv_func_iconv" = yes; then
22817 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22818 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22819 if test "${am_cv_proto_iconv+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 #include <stdlib.h>
22836 #if defined(__STDC__) || defined(__cplusplus)
22837 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 am_cv_proto_iconv_arg1=""
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 am_cv_proto_iconv_arg1="const"
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22879 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22880 { echo "$as_me:$LINENO: result: ${ac_t:-
22881 }$am_cv_proto_iconv" >&5
22882 echo "${ECHO_T}${ac_t:-
22883 }$am_cv_proto_iconv" >&6; }
22885 cat >>confdefs.h <<_ACEOF
22886 #define ICONV_CONST $am_cv_proto_iconv_arg1
22892 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22893 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22894 if test "${am_cv_langinfo_codeset+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <langinfo.h>
22907 char* cs = nl_langinfo(CODESET);
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_link") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext &&
22929 $as_test_x conftest$ac_exeext; then
22930 am_cv_langinfo_codeset=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 am_cv_langinfo_codeset=no
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939 conftest$ac_exeext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22943 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22944 if test $am_cv_langinfo_codeset = yes; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_LANGINFO_CODESET 1
22952 if test $ac_cv_header_locale_h = yes; then
22954 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22955 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22956 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 #include <locale.h>
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (ac_try="$ac_link"
22976 case "(($ac_try" in
22977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981 (eval "$ac_link") 2>conftest.er1
22983 grep -v '^ *+' conftest.er1 >conftest.err
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } && {
22988 test -z "$ac_c_werror_flag" ||
22989 test ! -s conftest.err
22990 } && test -s conftest$ac_exeext &&
22991 $as_test_x conftest$ac_exeext; then
22992 gt_cv_val_LC_MESSAGES=yes
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 gt_cv_val_LC_MESSAGES=no
23000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23001 conftest$ac_exeext conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23004 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23005 if test $gt_cv_val_LC_MESSAGES = yes; then
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_LC_MESSAGES 1
23015 if test -n "$INTL_MACOSX_LIBS"; then
23016 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23019 for ac_prog in bison
23021 # Extract the first word of "$ac_prog", so it can be a program name with args.
23022 set dummy $ac_prog; ac_word=$2
23023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23025 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 if test -n "$INTLBISON"; then
23029 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23032 for as_dir in $PATH
23035 test -z "$as_dir" && as_dir=.
23036 for ac_exec_ext in '' $ac_executable_extensions; do
23037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23038 ac_cv_prog_INTLBISON="$ac_prog"
23039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23048 INTLBISON=$ac_cv_prog_INTLBISON
23049 if test -n "$INTLBISON"; then
23050 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23051 echo "${ECHO_T}$INTLBISON" >&6; }
23053 { echo "$as_me:$LINENO: result: no" >&5
23054 echo "${ECHO_T}no" >&6; }
23058 test -n "$INTLBISON" && break
23061 if test -z "$INTLBISON"; then
23064 { echo "$as_me:$LINENO: checking version of bison" >&5
23065 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23066 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23067 case $ac_prog_version in
23068 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23069 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23070 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23071 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23073 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23074 echo "${ECHO_T}$ac_prog_version" >&6; }
23076 if test $ac_verc_fail = yes; then
23095 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23096 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 gt_save_CPPFLAGS="$CPPFLAGS"
23101 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102 gt_save_LIBS="$LIBS"
23103 LIBS="$LIBS -framework CoreFoundation"
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #include <CFPreferences.h>
23114 CFPreferencesCopyAppValue(NULL, NULL)
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_link") 2>conftest.er1
23128 grep -v '^ *+' conftest.er1 >conftest.err
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest$ac_exeext &&
23136 $as_test_x conftest$ac_exeext; then
23137 gt_cv_func_CFPreferencesCopyAppValue=yes
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 gt_cv_func_CFPreferencesCopyAppValue=no
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146 conftest$ac_exeext conftest.$ac_ext
23147 CPPFLAGS="$gt_save_CPPFLAGS"
23148 LIBS="$gt_save_LIBS"
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23152 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23159 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23160 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23161 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 gt_save_CPPFLAGS="$CPPFLAGS"
23165 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23166 gt_save_LIBS="$LIBS"
23167 LIBS="$LIBS -framework CoreFoundation"
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 #include <CFLocale.h>
23178 CFLocaleCopyCurrent();
23183 rm -f conftest.$ac_objext conftest$ac_exeext
23184 if { (ac_try="$ac_link"
23185 case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_link") 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } && {
23197 test -z "$ac_c_werror_flag" ||
23198 test ! -s conftest.err
23199 } && test -s conftest$ac_exeext &&
23200 $as_test_x conftest$ac_exeext; then
23201 gt_cv_func_CFLocaleCopyCurrent=yes
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23206 gt_cv_func_CFLocaleCopyCurrent=no
23209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23210 conftest$ac_exeext conftest.$ac_ext
23211 CPPFLAGS="$gt_save_CPPFLAGS"
23212 LIBS="$gt_save_LIBS"
23214 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23215 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23216 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23218 cat >>confdefs.h <<\_ACEOF
23219 #define HAVE_CFLOCALECOPYCURRENT 1
23224 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23225 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23231 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23232 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23233 # Check whether --enable-nls was given.
23234 if test "${enable_nls+set}" = set; then
23235 enableval=$enable_nls; USE_NLS=$enableval
23240 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23241 echo "${ECHO_T}$USE_NLS" >&6; }
23246 BUILD_INCLUDED_LIBINTL=no
23247 USE_INCLUDED_LIBINTL=no
23253 if test "$USE_NLS" = "yes"; then
23254 gt_use_preinstalled_gnugettext=no
23256 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23257 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23259 # Check whether --with-included-gettext was given.
23260 if test "${with_included_gettext+set}" = set; then
23261 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23263 nls_cv_force_use_gnu_gettext=no
23266 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23267 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23269 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23270 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23277 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23278 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23279 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 #include <libintl.h>
23289 extern int _nl_msg_cat_cntr;
23290 extern int *_nl_domain_bindings;
23294 bindtextdomain ("", "");
23295 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23300 rm -f conftest.$ac_objext conftest$ac_exeext
23301 if { (ac_try="$ac_link"
23302 case "(($ac_try" in
23303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_link") 2>conftest.er1
23309 grep -v '^ *+' conftest.er1 >conftest.err
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } && {
23314 test -z "$ac_c_werror_flag" ||
23315 test ! -s conftest.err
23316 } && test -s conftest$ac_exeext &&
23317 $as_test_x conftest$ac_exeext; then
23318 gt_cv_func_gnugettext1_libc=yes
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 gt_cv_func_gnugettext1_libc=no
23326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23327 conftest$ac_exeext conftest.$ac_ext
23329 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23330 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23332 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23338 acl_save_prefix="$prefix"
23339 prefix="$acl_final_prefix"
23340 acl_save_exec_prefix="$exec_prefix"
23341 exec_prefix="$acl_final_exec_prefix"
23343 eval additional_includedir=\"$includedir\"
23344 eval additional_libdir=\"$libdir\"
23346 exec_prefix="$acl_save_exec_prefix"
23347 prefix="$acl_save_prefix"
23350 # Check whether --with-libintl-prefix was given.
23351 if test "${with_libintl_prefix+set}" = set; then
23352 withval=$with_libintl_prefix;
23353 if test "X$withval" = "Xno"; then
23356 if test "X$withval" = "X"; then
23358 acl_save_prefix="$prefix"
23359 prefix="$acl_final_prefix"
23360 acl_save_exec_prefix="$exec_prefix"
23361 exec_prefix="$acl_final_exec_prefix"
23363 eval additional_includedir=\"$includedir\"
23364 eval additional_libdir=\"$libdir\"
23366 exec_prefix="$acl_save_exec_prefix"
23367 prefix="$acl_save_prefix"
23370 additional_includedir="$withval/include"
23371 additional_libdir="$withval/lib"
23382 names_already_handled=
23383 names_next_round='intl '
23384 while test -n "$names_next_round"; do
23385 names_this_round="$names_next_round"
23387 for name in $names_this_round; do
23389 for n in $names_already_handled; do
23390 if test "$n" = "$name"; then
23391 already_handled=yes
23395 if test -z "$already_handled"; then
23396 names_already_handled="$names_already_handled $name"
23397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23398 eval value=\"\$HAVE_LIB$uppername\"
23399 if test -n "$value"; then
23400 if test "$value" = yes; then
23401 eval value=\"\$LIB$uppername\"
23402 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23403 eval value=\"\$LTLIB$uppername\"
23404 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23413 if test $use_additional = yes; then
23414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23415 found_dir="$additional_libdir"
23416 found_so="$additional_libdir/lib$name.$shlibext"
23417 if test -f "$additional_libdir/lib$name.la"; then
23418 found_la="$additional_libdir/lib$name.la"
23421 if test -f "$additional_libdir/lib$name.$libext"; then
23422 found_dir="$additional_libdir"
23423 found_a="$additional_libdir/lib$name.$libext"
23424 if test -f "$additional_libdir/lib$name.la"; then
23425 found_la="$additional_libdir/lib$name.la"
23430 if test "X$found_dir" = "X"; then
23431 for x in $LDFLAGS $LTLIBINTL; do
23433 acl_save_prefix="$prefix"
23434 prefix="$acl_final_prefix"
23435 acl_save_exec_prefix="$exec_prefix"
23436 exec_prefix="$acl_final_exec_prefix"
23438 exec_prefix="$acl_save_exec_prefix"
23439 prefix="$acl_save_prefix"
23443 dir=`echo "X$x" | sed -e 's/^X-L//'`
23444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23446 found_so="$dir/lib$name.$shlibext"
23447 if test -f "$dir/lib$name.la"; then
23448 found_la="$dir/lib$name.la"
23451 if test -f "$dir/lib$name.$libext"; then
23453 found_a="$dir/lib$name.$libext"
23454 if test -f "$dir/lib$name.la"; then
23455 found_la="$dir/lib$name.la"
23461 if test "X$found_dir" != "X"; then
23466 if test "X$found_dir" != "X"; then
23467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23468 if test "X$found_so" != "X"; then
23469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23470 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23473 for x in $ltrpathdirs; do
23474 if test "X$x" = "X$found_dir"; then
23479 if test -z "$haveit"; then
23480 ltrpathdirs="$ltrpathdirs $found_dir"
23482 if test "$hardcode_direct" = yes; then
23483 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23488 for x in $rpathdirs; do
23489 if test "X$x" = "X$found_dir"; then
23494 if test -z "$haveit"; then
23495 rpathdirs="$rpathdirs $found_dir"
23499 for x in $LDFLAGS $LIBINTL; do
23501 acl_save_prefix="$prefix"
23502 prefix="$acl_final_prefix"
23503 acl_save_exec_prefix="$exec_prefix"
23504 exec_prefix="$acl_final_exec_prefix"
23506 exec_prefix="$acl_save_exec_prefix"
23507 prefix="$acl_save_prefix"
23509 if test "X$x" = "X-L$found_dir"; then
23514 if test -z "$haveit"; then
23515 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23517 if test "$hardcode_minus_L" != no; then
23518 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23520 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23526 if test "X$found_a" != "X"; then
23527 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23529 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23532 additional_includedir=
23533 case "$found_dir" in
23535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23536 additional_includedir="$basedir/include"
23539 if test "X$additional_includedir" != "X"; then
23540 if test "X$additional_includedir" != "X/usr/include"; then
23542 if test "X$additional_includedir" = "X/usr/local/include"; then
23543 if test -n "$GCC"; then
23545 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23549 if test -z "$haveit"; then
23550 for x in $CPPFLAGS $INCINTL; do
23552 acl_save_prefix="$prefix"
23553 prefix="$acl_final_prefix"
23554 acl_save_exec_prefix="$exec_prefix"
23555 exec_prefix="$acl_final_exec_prefix"
23557 exec_prefix="$acl_save_exec_prefix"
23558 prefix="$acl_save_prefix"
23560 if test "X$x" = "X-I$additional_includedir"; then
23565 if test -z "$haveit"; then
23566 if test -d "$additional_includedir"; then
23567 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23573 if test -n "$found_la"; then
23574 save_libdir="$libdir"
23575 case "$found_la" in
23576 */* | *\\*) . "$found_la" ;;
23577 *) . "./$found_la" ;;
23579 libdir="$save_libdir"
23580 for dep in $dependency_libs; do
23583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23584 if test "X$additional_libdir" != "X/usr/lib"; then
23586 if test "X$additional_libdir" = "X/usr/local/lib"; then
23587 if test -n "$GCC"; then
23589 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23593 if test -z "$haveit"; then
23595 for x in $LDFLAGS $LIBINTL; do
23597 acl_save_prefix="$prefix"
23598 prefix="$acl_final_prefix"
23599 acl_save_exec_prefix="$exec_prefix"
23600 exec_prefix="$acl_final_exec_prefix"
23602 exec_prefix="$acl_save_exec_prefix"
23603 prefix="$acl_save_prefix"
23605 if test "X$x" = "X-L$additional_libdir"; then
23610 if test -z "$haveit"; then
23611 if test -d "$additional_libdir"; then
23612 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23616 for x in $LDFLAGS $LTLIBINTL; do
23618 acl_save_prefix="$prefix"
23619 prefix="$acl_final_prefix"
23620 acl_save_exec_prefix="$exec_prefix"
23621 exec_prefix="$acl_final_exec_prefix"
23623 exec_prefix="$acl_save_exec_prefix"
23624 prefix="$acl_save_prefix"
23626 if test "X$x" = "X-L$additional_libdir"; then
23631 if test -z "$haveit"; then
23632 if test -d "$additional_libdir"; then
23633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23641 if test "$enable_rpath" != no; then
23643 for x in $rpathdirs; do
23644 if test "X$x" = "X$dir"; then
23649 if test -z "$haveit"; then
23650 rpathdirs="$rpathdirs $dir"
23653 for x in $ltrpathdirs; do
23654 if test "X$x" = "X$dir"; then
23659 if test -z "$haveit"; then
23660 ltrpathdirs="$ltrpathdirs $dir"
23665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23671 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23672 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23678 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23685 if test "X$rpathdirs" != "X"; then
23686 if test -n "$hardcode_libdir_separator"; then
23688 for found_dir in $rpathdirs; do
23689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23691 acl_save_libdir="$libdir"
23693 eval flag=\"$hardcode_libdir_flag_spec\"
23694 libdir="$acl_save_libdir"
23695 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23697 for found_dir in $rpathdirs; do
23698 acl_save_libdir="$libdir"
23699 libdir="$found_dir"
23700 eval flag=\"$hardcode_libdir_flag_spec\"
23701 libdir="$acl_save_libdir"
23702 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23706 if test "X$ltrpathdirs" != "X"; then
23707 for found_dir in $ltrpathdirs; do
23708 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23712 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23713 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23714 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 gt_save_CPPFLAGS="$CPPFLAGS"
23718 CPPFLAGS="$CPPFLAGS $INCINTL"
23719 gt_save_LIBS="$LIBS"
23720 LIBS="$LIBS $LIBINTL"
23721 cat >conftest.$ac_ext <<_ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #include <libintl.h>
23728 extern int _nl_msg_cat_cntr;
23733 const char *_nl_expand_alias (const char *);
23737 bindtextdomain ("", "");
23738 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23743 rm -f conftest.$ac_objext conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_link") 2>conftest.er1
23752 grep -v '^ *+' conftest.er1 >conftest.err
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest$ac_exeext &&
23760 $as_test_x conftest$ac_exeext; then
23761 gt_cv_func_gnugettext1_libintl=yes
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 gt_cv_func_gnugettext1_libintl=no
23769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23770 conftest$ac_exeext conftest.$ac_ext
23771 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23772 LIBS="$LIBS $LIBICONV"
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include <libintl.h>
23780 extern int _nl_msg_cat_cntr;
23785 const char *_nl_expand_alias (const char *);
23789 bindtextdomain ("", "");
23790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23795 rm -f conftest.$ac_objext conftest$ac_exeext
23796 if { (ac_try="$ac_link"
23797 case "(($ac_try" in
23798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799 *) ac_try_echo=$ac_try;;
23801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23802 (eval "$ac_link") 2>conftest.er1
23804 grep -v '^ *+' conftest.er1 >conftest.err
23806 cat conftest.err >&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } && {
23809 test -z "$ac_c_werror_flag" ||
23810 test ! -s conftest.err
23811 } && test -s conftest$ac_exeext &&
23812 $as_test_x conftest$ac_exeext; then
23813 LIBINTL="$LIBINTL $LIBICONV"
23814 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23815 gt_cv_func_gnugettext1_libintl=yes
23818 echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23825 conftest$ac_exeext conftest.$ac_ext
23827 CPPFLAGS="$gt_save_CPPFLAGS"
23828 LIBS="$gt_save_LIBS"
23830 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23831 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23834 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23835 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23836 && test "$PACKAGE" != gettext-runtime \
23837 && test "$PACKAGE" != gettext-tools; }; then
23838 gt_use_preinstalled_gnugettext=yes
23846 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23847 nls_cv_use_gnu_gettext=yes
23851 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23852 BUILD_INCLUDED_LIBINTL=yes
23853 USE_INCLUDED_LIBINTL=yes
23854 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23855 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23856 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23860 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23861 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23866 if test -n "$INTL_MACOSX_LIBS"; then
23867 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23868 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23869 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23870 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23874 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23875 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23877 cat >>confdefs.h <<\_ACEOF
23878 #define ENABLE_NLS 1
23886 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23887 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23888 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23889 echo "${ECHO_T}$USE_NLS" >&6; }
23890 if test "$USE_NLS" = "yes"; then
23891 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23892 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23893 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23894 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23895 gt_source="external libintl"
23900 gt_source="included intl directory"
23902 { echo "$as_me:$LINENO: result: $gt_source" >&5
23903 echo "${ECHO_T}$gt_source" >&6; }
23906 if test "$USE_NLS" = "yes"; then
23908 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23909 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23910 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23911 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23912 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23913 echo "${ECHO_T}$LIBINTL" >&6; }
23915 for element in $INCINTL; do
23917 for x in $CPPFLAGS; do
23919 acl_save_prefix="$prefix"
23920 prefix="$acl_final_prefix"
23921 acl_save_exec_prefix="$exec_prefix"
23922 exec_prefix="$acl_final_exec_prefix"
23924 exec_prefix="$acl_save_exec_prefix"
23925 prefix="$acl_save_prefix"
23927 if test "X$x" = "X$element"; then
23932 if test -z "$haveit"; then
23933 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23940 cat >>confdefs.h <<\_ACEOF
23941 #define HAVE_GETTEXT 1
23945 cat >>confdefs.h <<\_ACEOF
23946 #define HAVE_DCGETTEXT 1
23955 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23956 BUILD_INCLUDED_LIBINTL=yes
23963 nls_cv_header_intl=
23964 nls_cv_header_libgt=
23976 if test "$USE_INCLUDED_LIBINTL" = yes; then
23977 INTLOBJS="\$(GETTOBJS)"
23981 INTL_LIBTOOL_SUFFIX_PREFIX=
23985 INTLLIBS="$LIBINTL"
23997 support_postgresql=no
23999 support_smartalloc=yes
24000 support_readline=yes
24004 support_wx_console=no
24005 support_tray_monitor=no
24010 support_static_tools=no
24011 support_static_fd=no
24012 support_static_sd=no
24013 support_static_dir=no
24014 support_static_cons=no
24016 build_client_only=no
24025 # Check whether --enable-gnome was given.
24026 if test "${enable_gnome+set}" = set; then
24027 enableval=$enable_gnome;
24028 if test x$enableval = xyes; then
24037 if test x$support_gnome = xyes; then
24038 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24040 if test $pkg = 0; then
24041 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24042 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24043 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24044 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049 GNOME_DIR=src/gnome2-console
24050 gnome_version="Version 2.x"
24052 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24053 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24054 { (exit 1); exit 1; }; }
24059 # Check whether --enable-bat was given.
24060 if test "${enable_bat+set}" = set; then
24061 enableval=$enable_bat;
24062 if test x$enableval = xyes; then
24064 cat >>confdefs.h <<\_ACEOF
24076 if test x$support_bat = xyes; then
24077 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24079 if test $pkg = 0; then
24080 BAT_DIR=src/qt-console
24082 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24083 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24084 { (exit 1); exit 1; }; }
24094 if test x$support_bat = xyes; then
24095 { echo "$as_me:$LINENO: checking for qwt support" >&5
24096 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24098 # Check whether --with-qwt was given.
24099 if test "${with_qwt+set}" = set; then
24101 case "$with_qwt" in
24106 if test -f ${with_qwt}/include/qwt.h; then
24107 QWT_INC="${with_qwt}/include"
24108 QWT_LDFLAGS="-L${with_qwt}/lib"
24119 if test $no_qwt = no; then
24120 if test x$QWT_INC = x; then
24121 for root in /usr /usr/local; do
24122 for ver in qwt qwt5 qwt-qt4; do
24123 if test -f ${root}/include/${ver}/qwt.h; then
24124 QWT_INC="${root}/include/${ver}"
24125 if test -d ${root}/lib64/; then
24126 QWT_LDFLAGS="-L${root}/lib64"
24127 elif test -d ${root}/lib/64/; then
24128 QWT_LDFLAGS="-L${root}/64"
24130 QWT_LDFLAGS="-L${root}/lib"
24141 if test x$QWT_INC = x; then
24142 { echo "$as_me:$LINENO: result: no" >&5
24143 echo "${ECHO_T}no" >&6; }
24146 cat >>confdefs.h <<\_ACEOF
24150 { echo "$as_me:$LINENO: result: yes" >&5
24151 echo "${ECHO_T}yes" >&6; }
24161 # Check whether --enable-bwx-console was given.
24162 if test "${enable_bwx_console+set}" = set; then
24163 enableval=$enable_bwx_console;
24164 if test x$enableval = xyes; then
24165 support_wx_console=yes
24173 if test x$support_wx_console = xyes; then
24174 abc=`$WXCONFIG $WXFLAGS --cppflags`
24176 if test $pkg = 0; then
24177 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24178 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24179 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24183 WX_DIR="src/wx-console"
24186 echo "wx-config program not found. bwx-console disabled."
24188 support_wx_console=no
24193 # Check whether --enable-tray-monitor was given.
24194 if test "${enable_tray_monitor+set}" = set; then
24195 enableval=$enable_tray_monitor;
24196 if test x$enableval = xyes; then
24197 support_tray_monitor=yes
24205 if test x$support_tray_monitor = xyes; then
24206 abc=`$PKGCONFIG --exists gtk+-2.0`
24208 if test $pkg = 0; then
24209 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24210 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24213 TRAY_MONITOR_DIR=src/tray-monitor
24214 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24216 if test $pkg = 0; then
24218 cat >>confdefs.h <<\_ACEOF
24219 #define HAVE_GTK_2_4 1
24227 # Check whether --enable-smartalloc was given.
24228 if test "${enable_smartalloc+set}" = set; then
24229 enableval=$enable_smartalloc;
24230 if test x$enableval = xno; then
24231 support_smartalloc=no
24238 if test x$support_smartalloc = xyes; then
24240 cat >>confdefs.h <<\_ACEOF
24241 #define SMARTALLOC 1
24246 # Check whether --enable-lockmgr was given.
24247 if test "${enable_lockmgr+set}" = set; then
24248 enableval=$enable_lockmgr;
24249 if test x$enableval = xyes; then
24250 support_lockmgr=yes
24257 if test x$support_lockmgr = xyes; then
24259 cat >>confdefs.h <<\_ACEOF
24260 #define _USE_LOCKMGR 1
24266 # Check whether --enable-static-tools was given.
24267 if test "${enable_static_tools+set}" = set; then
24268 enableval=$enable_static_tools;
24269 if test x$enableval = xyes; then
24270 support_static_tools=yes
24278 if test x$support_static_tools = xyes; then
24279 TTOOL_LDFLAGS="-static"
24283 # Check whether --enable-static-fd was given.
24284 if test "${enable_static_fd+set}" = set; then
24285 enableval=$enable_static_fd;
24286 if test x$enableval = xyes; then
24287 support_static_fd=yes
24295 if test x$support_static_fd = xyes; then
24296 STATIC_FD="static-bacula-fd"
24300 # Check whether --enable-static-sd was given.
24301 if test "${enable_static_sd+set}" = set; then
24302 enableval=$enable_static_sd;
24303 if test x$enableval = xyes; then
24304 support_static_sd=yes
24312 if test x$support_static_sd = xyes; then
24313 STATIC_SD="static-bacula-sd"
24317 # Check whether --enable-static-dir was given.
24318 if test "${enable_static_dir+set}" = set; then
24319 enableval=$enable_static_dir;
24320 if test x$enableval = xyes; then
24321 support_static_dir=yes
24329 if test x$support_static_dir = xyes; then
24330 STATIC_DIR="static-bacula-dir"
24334 # Check whether --enable-static-cons was given.
24335 if test "${enable_static_cons+set}" = set; then
24336 enableval=$enable_static_cons;
24337 if test x$enableval = xyes; then
24338 support_static_cons=yes
24348 if test x$support_static_cons = xyes; then
24349 STATIC_CONS="static-bconsole"
24350 STATIC_GNOME_CONS="static-bgnome-console"
24351 STATIC_WX_CONS="static-bwx-console"
24357 # Check whether --enable-client-only was given.
24358 if test "${enable_client_only+set}" = set; then
24359 enableval=$enable_client_only;
24360 if test x$enableval = xyes; then
24361 build_client_only=yes
24369 if test x$build_client_only = xno; then
24376 # Check whether --enable-build-dird was given.
24377 if test "${enable_build_dird+set}" = set; then
24378 enableval=$enable_build_dird;
24379 if test x$enableval = xno; then
24386 if test x$build_dird = xyes; then
24387 DIRD_DIR="src/dird"
24388 DIR_TOOLS="DIRTOOLS"
24391 DIR_TOOLS="NODIRTOOLS"
24396 # Check whether --enable-build-stored was given.
24397 if test "${enable_build_stored+set}" = set; then
24398 enableval=$enable_build_stored;
24399 if test x$enableval = xno; then
24406 if test x$build_stored = xyes; then
24407 STORED_DIR="src/stored"
24413 # Check whether --enable-conio was given.
24414 if test "${enable_conio+set}" = set; then
24415 enableval=$enable_conio;
24416 if test x$enableval = xno; then
24426 # Check whether --enable-ipv6 was given.
24427 if test "${enable_ipv6+set}" = set; then
24428 enableval=$enable_ipv6;
24429 if test x$enableval = xno; then
24437 if test x$support_ipv6 = xyes; then
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24444 #include <sys/types.h>
24445 #include <sys/socket.h>
24446 #include <netinet/in.h>
24450 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24455 rm -f conftest.$ac_objext conftest$ac_exeext
24456 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
24464 grep -v '^ *+' conftest.er1 >conftest.err
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && {
24469 test -z "$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 } && test -s conftest$ac_exeext &&
24472 $as_test_x conftest$ac_exeext; then
24475 echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24482 conftest$ac_exeext conftest.$ac_ext
24485 if test x$support_ipv6 = xyes; then
24487 cat >>confdefs.h <<\_ACEOF
24488 #define HAVE_IPV6 1
24494 if test x$support_conio = xyes; then
24495 if test "${ac_cv_header_termcap_h+set}" = set; then
24496 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24497 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24498 if test "${ac_cv_header_termcap_h+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24502 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24504 # Is the header compilable?
24505 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24506 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24507 cat >conftest.$ac_ext <<_ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 $ac_includes_default
24514 #include <termcap.h>
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_compile") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest.$ac_objext; then
24533 ac_header_compiler=yes
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_header_compiler=no
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24543 echo "${ECHO_T}$ac_header_compiler" >&6; }
24545 # Is the header present?
24546 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24547 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 #include <termcap.h>
24556 if { (ac_try="$ac_cpp conftest.$ac_ext"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24564 grep -v '^ *+' conftest.er1 >conftest.err
24566 cat conftest.err >&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); } >/dev/null && {
24569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24570 test ! -s conftest.err
24572 ac_header_preproc=yes
24574 echo "$as_me: failed program was:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24577 ac_header_preproc=no
24580 rm -f conftest.err conftest.$ac_ext
24581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24582 echo "${ECHO_T}$ac_header_preproc" >&6; }
24584 # So? What about this header?
24585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24587 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24588 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24590 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24591 ac_header_preproc=yes
24594 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24595 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24596 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24597 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24598 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24599 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24600 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24601 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24602 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24603 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24604 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24605 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24609 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24610 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24611 if test "${ac_cv_header_termcap_h+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 ac_cv_header_termcap_h=$ac_header_preproc
24616 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24617 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24620 if test $ac_cv_header_termcap_h = yes; then
24621 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24622 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24623 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 ac_check_lib_save_LIBS=$LIBS
24627 LIBS="-ltermcap $LIBS"
24628 cat >conftest.$ac_ext <<_ACEOF
24631 cat confdefs.h >>conftest.$ac_ext
24632 cat >>conftest.$ac_ext <<_ACEOF
24633 /* end confdefs.h. */
24635 /* Override any GCC internal prototype to avoid an error.
24636 Use char because int might match the return type of a GCC
24637 builtin and then its argument prototype would still apply. */
24650 rm -f conftest.$ac_objext conftest$ac_exeext
24651 if { (ac_try="$ac_link"
24652 case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_link") 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } && {
24664 test -z "$ac_c_werror_flag" ||
24665 test ! -s conftest.err
24666 } && test -s conftest$ac_exeext &&
24667 $as_test_x conftest$ac_exeext; then
24668 ac_cv_lib_termcap_tgetent=yes
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 ac_cv_lib_termcap_tgetent=no
24676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24677 conftest$ac_exeext conftest.$ac_ext
24678 LIBS=$ac_check_lib_save_LIBS
24680 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24681 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24682 if test $ac_cv_lib_termcap_tgetent = yes; then
24683 CONS_LIBS="-ltermcap"
24687 support_readline=no
24689 cat >>confdefs.h <<\_ACEOF
24690 #define HAVE_CONIO 1
24695 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24696 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24697 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 ac_check_lib_save_LIBS=$LIBS
24701 LIBS="-lncurses $LIBS"
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24709 /* Override any GCC internal prototype to avoid an error.
24710 Use char because int might match the return type of a GCC
24711 builtin and then its argument prototype would still apply. */
24724 rm -f conftest.$ac_objext conftest$ac_exeext
24725 if { (ac_try="$ac_link"
24726 case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_link") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1 >conftest.err
24735 cat conftest.err >&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest$ac_exeext &&
24741 $as_test_x conftest$ac_exeext; then
24742 ac_cv_lib_ncurses_tgetent=yes
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_cv_lib_ncurses_tgetent=no
24750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24751 conftest$ac_exeext conftest.$ac_ext
24752 LIBS=$ac_check_lib_save_LIBS
24754 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24755 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24756 if test $ac_cv_lib_ncurses_tgetent = yes; then
24757 CONS_LIBS="-lncurses"
24761 support_readline=no
24763 cat >>confdefs.h <<\_ACEOF
24764 #define HAVE_CONIO 1
24777 for ac_header in curses.h
24779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 ac_res=`eval echo '${'$as_ac_Header'}'`
24787 { echo "$as_me:$LINENO: result: $ac_res" >&5
24788 echo "${ECHO_T}$ac_res" >&6; }
24790 # Is the header compilable?
24791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24799 $ac_includes_default
24800 #include <$ac_header>
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24821 echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 ac_header_compiler=no
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829 echo "${ECHO_T}$ac_header_compiler" >&6; }
24831 # Is the header present?
24832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 #include <$ac_header>
24842 if { (ac_try="$ac_cpp conftest.$ac_ext"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1 >conftest.err
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } >/dev/null && {
24855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24858 ac_header_preproc=yes
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ac_header_preproc=no
24866 rm -f conftest.err conftest.$ac_ext
24867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868 echo "${ECHO_T}$ac_header_preproc" >&6; }
24870 # So? What about this header?
24871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 eval "$as_ac_Header=\$ac_header_preproc"
24902 ac_res=`eval echo '${'$as_ac_Header'}'`
24903 { echo "$as_me:$LINENO: result: $ac_res" >&5
24904 echo "${ECHO_T}$ac_res" >&6; }
24907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24908 cat >>confdefs.h <<_ACEOF
24909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24916 { echo "$as_me:$LINENO: checking for term.h" >&5
24917 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24918 if test "${ac_cv_header_term_h+set}" = set; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 cat >conftest.$ac_ext <<_ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24928 #include <curses.h>
24934 rm -f conftest.$ac_objext
24935 if { (ac_try="$ac_compile"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_compile") 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } && {
24948 test -z "$ac_c_werror_flag" ||
24949 test ! -s conftest.err
24950 } && test -s conftest.$ac_objext; then
24951 ac_cv_header_term_h=yes
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 ac_cv_header_term_h=no
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24962 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24963 if test $ac_cv_header_term_h = yes; then
24964 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24965 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24966 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 ac_check_lib_save_LIBS=$LIBS
24970 LIBS="-lcurses $LIBS"
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24978 /* Override any GCC internal prototype to avoid an error.
24979 Use char because int might match the return type of a GCC
24980 builtin and then its argument prototype would still apply. */
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (ac_try="$ac_link"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_link") 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } && {
25007 test -z "$ac_c_werror_flag" ||
25008 test ! -s conftest.err
25009 } && test -s conftest$ac_exeext &&
25010 $as_test_x conftest$ac_exeext; then
25011 ac_cv_lib_curses_tgetent=yes
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_cv_lib_curses_tgetent=no
25019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25020 conftest$ac_exeext conftest.$ac_ext
25021 LIBS=$ac_check_lib_save_LIBS
25023 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25024 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25025 if test $ac_cv_lib_curses_tgetent = yes; then
25026 CONS_LIBS="-lcurses"
25030 support_readline=no
25032 cat >>confdefs.h <<\_ACEOF
25033 #define HAVE_CONIO 1
25041 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25052 # Check whether --enable-readline was given.
25053 if test "${enable_readline+set}" = set; then
25054 enableval=$enable_readline;
25055 if test x$enableval = xno; then
25056 support_readline=no
25065 if test x$support_readline = xyes; then
25067 # Check whether --with-readline was given.
25068 if test "${with_readline+set}" = set; then
25069 withval=$with_readline;
25070 case "$with_readline" in
25075 if test -f ${with_readline}/readline.h; then
25076 CONS_INC="-I${with_readline}"
25077 CONS_LDFLAGS="-L$with_readline"
25078 elif test -f ${with_readline}/include/readline/readline.h; then
25079 CONS_INC="-I${with_readline}/include/readline"
25080 CONS_LDFLAGS="-L${with_readline}/lib"
25081 with_readline="${with_readline}/include/readline"
25083 with_readline="/usr/include/readline"
25086 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25088 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25089 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 ac_res=`eval echo '${'$as_ac_Header'}'`
25094 { echo "$as_me:$LINENO: result: $ac_res" >&5
25095 echo "${ECHO_T}$ac_res" >&6; }
25097 # Is the header compilable?
25098 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25099 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25100 cat >conftest.$ac_ext <<_ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25107 #include <${with_readline}/readline.h>
25109 rm -f conftest.$ac_objext
25110 if { (ac_try="$ac_compile"
25111 case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_compile") 2>conftest.er1
25118 grep -v '^ *+' conftest.er1 >conftest.err
25120 cat conftest.err >&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } && {
25123 test -z "$ac_c_werror_flag" ||
25124 test ! -s conftest.err
25125 } && test -s conftest.$ac_objext; then
25126 ac_header_compiler=yes
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25131 ac_header_compiler=no
25134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25136 echo "${ECHO_T}$ac_header_compiler" >&6; }
25138 # Is the header present?
25139 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25140 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 #include <${with_readline}/readline.h>
25149 if { (ac_try="$ac_cpp conftest.$ac_ext"
25150 case "(($ac_try" in
25151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25152 *) ac_try_echo=$ac_try;;
25154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25157 grep -v '^ *+' conftest.er1 >conftest.err
25159 cat conftest.err >&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } >/dev/null && {
25162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25163 test ! -s conftest.err
25165 ac_header_preproc=yes
25167 echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25170 ac_header_preproc=no
25173 rm -f conftest.err conftest.$ac_ext
25174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25175 echo "${ECHO_T}$ac_header_preproc" >&6; }
25177 # So? What about this header?
25178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25180 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25184 ac_header_preproc=yes
25187 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25188 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25190 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25192 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25193 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25194 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25195 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25196 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25197 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25198 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25202 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25203 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 eval "$as_ac_Header=\$ac_header_preproc"
25209 ac_res=`eval echo '${'$as_ac_Header'}'`
25210 { echo "$as_me:$LINENO: result: $ac_res" >&5
25211 echo "${ECHO_T}$ac_res" >&6; }
25214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25217 cat >>confdefs.h <<\_ACEOF
25218 #define HAVE_READLINE 1
25221 CONS_LIBS="-lreadline -lhistory -ltermcap"
25227 echo "readline.h not found. readline turned off ..."
25239 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25240 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25241 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25242 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25243 echo $ECHO_N "(cached) $ECHO_C" >&6
25245 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25246 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25248 # Is the header compilable?
25249 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25250 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25251 cat >conftest.$ac_ext <<_ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h. */
25257 $ac_includes_default
25258 #include </usr/include/readline/readline.h>
25260 rm -f conftest.$ac_objext
25261 if { (ac_try="$ac_compile"
25262 case "(($ac_try" in
25263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25264 *) ac_try_echo=$ac_try;;
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267 (eval "$ac_compile") 2>conftest.er1
25269 grep -v '^ *+' conftest.er1 >conftest.err
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && {
25274 test -z "$ac_c_werror_flag" ||
25275 test ! -s conftest.err
25276 } && test -s conftest.$ac_objext; then
25277 ac_header_compiler=yes
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ac_header_compiler=no
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25287 echo "${ECHO_T}$ac_header_compiler" >&6; }
25289 # Is the header present?
25290 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25291 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 #include </usr/include/readline/readline.h>
25300 if { (ac_try="$ac_cpp conftest.$ac_ext"
25301 case "(($ac_try" in
25302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303 *) ac_try_echo=$ac_try;;
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25308 grep -v '^ *+' conftest.er1 >conftest.err
25310 cat conftest.err >&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } >/dev/null && {
25313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25314 test ! -s conftest.err
25316 ac_header_preproc=yes
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_header_preproc=no
25324 rm -f conftest.err conftest.$ac_ext
25325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25326 echo "${ECHO_T}$ac_header_preproc" >&6; }
25328 # So? What about this header?
25329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25335 ac_header_preproc=yes
25338 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25339 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25340 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25341 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25343 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25345 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25346 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25347 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25349 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25353 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25354 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25355 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25356 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25360 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25361 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25364 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25367 cat >>confdefs.h <<\_ACEOF
25368 #define HAVE_READLINE 1
25372 CONS_INC="-I/usr/include/readline"
25373 CONS_LIBS="-lreadline -ltermcap"
25377 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25379 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25380 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 ac_res=`eval echo '${'$as_ac_Header'}'`
25385 { echo "$as_me:$LINENO: result: $ac_res" >&5
25386 echo "${ECHO_T}$ac_res" >&6; }
25388 # Is the header compilable?
25389 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25390 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25391 cat >conftest.$ac_ext <<_ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25397 $ac_includes_default
25398 #include <${TOP_DIR}/depkgs/readline/readline.h>
25400 rm -f conftest.$ac_objext
25401 if { (ac_try="$ac_compile"
25402 case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_compile") 2>conftest.er1
25409 grep -v '^ *+' conftest.er1 >conftest.err
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && {
25414 test -z "$ac_c_werror_flag" ||
25415 test ! -s conftest.err
25416 } && test -s conftest.$ac_objext; then
25417 ac_header_compiler=yes
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25422 ac_header_compiler=no
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25427 echo "${ECHO_T}$ac_header_compiler" >&6; }
25429 # Is the header present?
25430 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25431 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 #include <${TOP_DIR}/depkgs/readline/readline.h>
25440 if { (ac_try="$ac_cpp conftest.$ac_ext"
25441 case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25448 grep -v '^ *+' conftest.er1 >conftest.err
25450 cat conftest.err >&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); } >/dev/null && {
25453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25454 test ! -s conftest.err
25456 ac_header_preproc=yes
25458 echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25461 ac_header_preproc=no
25464 rm -f conftest.err conftest.$ac_ext
25465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25466 echo "${ECHO_T}$ac_header_preproc" >&6; }
25468 # So? What about this header?
25469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25475 ac_header_preproc=yes
25478 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25479 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25480 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25481 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25483 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25484 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25485 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25486 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25487 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25488 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25489 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25493 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25494 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25496 echo $ECHO_N "(cached) $ECHO_C" >&6
25498 eval "$as_ac_Header=\$ac_header_preproc"
25500 ac_res=`eval echo '${'$as_ac_Header'}'`
25501 { echo "$as_me:$LINENO: result: $ac_res" >&5
25502 echo "${ECHO_T}$ac_res" >&6; }
25505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25508 cat >>confdefs.h <<\_ACEOF
25509 #define HAVE_READLINE 1
25513 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25514 CONS_LIBS="-lreadline -lhistory -ltermcap"
25515 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25516 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25521 echo "readline.h not found. readline turned off ..."
25548 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25549 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25550 if test "${ac_cv_header_stat_broken+set}" = set; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 #include <sys/types.h>
25560 #include <sys/stat.h>
25562 #if defined S_ISBLK && defined S_IFDIR
25563 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25566 #if defined S_ISBLK && defined S_IFCHR
25567 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25570 #if defined S_ISLNK && defined S_IFREG
25571 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25574 #if defined S_ISSOCK && defined S_IFREG
25575 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25579 rm -f conftest.$ac_objext
25580 if { (ac_try="$ac_compile"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_compile") 2>conftest.er1
25588 grep -v '^ *+' conftest.er1 >conftest.err
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && {
25593 test -z "$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25595 } && test -s conftest.$ac_objext; then
25596 ac_cv_header_stat_broken=no
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 ac_cv_header_stat_broken=yes
25604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25607 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25608 if test $ac_cv_header_stat_broken = yes; then
25610 cat >>confdefs.h <<\_ACEOF
25611 #define STAT_MACROS_BROKEN 1
25621 ac_header_dirent=no
25622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25629 cat >conftest.$ac_ext <<_ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <sys/types.h>
25647 rm -f conftest.$ac_objext
25648 if { (ac_try="$ac_compile"
25649 case "(($ac_try" in
25650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25651 *) ac_try_echo=$ac_try;;
25653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25654 (eval "$ac_compile") 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } && {
25661 test -z "$ac_c_werror_flag" ||
25662 test ! -s conftest.err
25663 } && test -s conftest.$ac_objext; then
25664 eval "$as_ac_Header=yes"
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 eval "$as_ac_Header=no"
25672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674 ac_res=`eval echo '${'$as_ac_Header'}'`
25675 { echo "$as_me:$LINENO: result: $ac_res" >&5
25676 echo "${ECHO_T}$ac_res" >&6; }
25677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25678 cat >>confdefs.h <<_ACEOF
25679 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25682 ac_header_dirent=$ac_hdr; break
25686 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25687 if test $ac_header_dirent = dirent.h; then
25688 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25689 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25690 if test "${ac_cv_search_opendir+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 ac_func_search_save_LIBS=$LIBS
25694 cat >conftest.$ac_ext <<_ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25701 /* Override any GCC internal prototype to avoid an error.
25702 Use char because int might match the return type of a GCC
25703 builtin and then its argument prototype would still apply. */
25716 for ac_lib in '' dir; do
25717 if test -z "$ac_lib"; then
25718 ac_res="none required"
25721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25723 rm -f conftest.$ac_objext conftest$ac_exeext
25724 if { (ac_try="$ac_link"
25725 case "(($ac_try" in
25726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730 (eval "$ac_link") 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } && {
25737 test -z "$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25739 } && test -s conftest$ac_exeext &&
25740 $as_test_x conftest$ac_exeext; then
25741 ac_cv_search_opendir=$ac_res
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25751 if test "${ac_cv_search_opendir+set}" = set; then
25755 if test "${ac_cv_search_opendir+set}" = set; then
25758 ac_cv_search_opendir=no
25760 rm conftest.$ac_ext
25761 LIBS=$ac_func_search_save_LIBS
25763 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25764 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25765 ac_res=$ac_cv_search_opendir
25766 if test "$ac_res" != no; then
25767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25772 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25774 if test "${ac_cv_search_opendir+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 ac_func_search_save_LIBS=$LIBS
25778 cat >conftest.$ac_ext <<_ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25785 /* Override any GCC internal prototype to avoid an error.
25786 Use char because int might match the return type of a GCC
25787 builtin and then its argument prototype would still apply. */
25800 for ac_lib in '' x; do
25801 if test -z "$ac_lib"; then
25802 ac_res="none required"
25805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_link") 2>conftest.er1
25816 grep -v '^ *+' conftest.er1 >conftest.err
25818 cat conftest.err >&5
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest$ac_exeext &&
25824 $as_test_x conftest$ac_exeext; then
25825 ac_cv_search_opendir=$ac_res
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25835 if test "${ac_cv_search_opendir+set}" = set; then
25839 if test "${ac_cv_search_opendir+set}" = set; then
25842 ac_cv_search_opendir=no
25844 rm conftest.$ac_ext
25845 LIBS=$ac_func_search_save_LIBS
25847 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25848 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25849 ac_res=$ac_cv_search_opendir
25850 if test "$ac_res" != no; then
25851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25864 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 cat >conftest.$ac_ext <<_ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25880 #define $ac_func innocuous_$ac_func
25882 /* System header to define __stub macros and hopefully few prototypes,
25883 which can conflict with char $ac_func (); below.
25884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25885 <limits.h> exists even on freestanding compilers. */
25888 # include <limits.h>
25890 # include <assert.h>
25895 /* Override any GCC internal prototype to avoid an error.
25896 Use char because int might match the return type of a GCC
25897 builtin and then its argument prototype would still apply. */
25902 /* The GNU C library defines this for functions which it implements
25903 to always fail with ENOSYS. Some functions are actually named
25904 something starting with __ and the normal name is an alias. */
25905 #if defined __stub_$ac_func || defined __stub___$ac_func
25912 return $ac_func ();
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
25935 eval "$as_ac_var=yes"
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 eval "$as_ac_var=no"
25943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25944 conftest$ac_exeext conftest.$ac_ext
25946 ac_res=`eval echo '${'$as_ac_var'}'`
25947 { echo "$as_me:$LINENO: result: $ac_res" >&5
25948 echo "${ECHO_T}$ac_res" >&6; }
25949 if test `eval echo '${'$as_ac_var'}'` = yes; then
25950 cat >>confdefs.h <<_ACEOF
25951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25959 for ac_func in nanosleep nl_langinfo
25961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25975 #define $ac_func innocuous_$ac_func
25977 /* System header to define __stub macros and hopefully few prototypes,
25978 which can conflict with char $ac_func (); below.
25979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25980 <limits.h> exists even on freestanding compilers. */
25983 # include <limits.h>
25985 # include <assert.h>
25990 /* Override any GCC internal prototype to avoid an error.
25991 Use char because int might match the return type of a GCC
25992 builtin and then its argument prototype would still apply. */
25997 /* The GNU C library defines this for functions which it implements
25998 to always fail with ENOSYS. Some functions are actually named
25999 something starting with __ and the normal name is an alias. */
26000 #if defined __stub_$ac_func || defined __stub___$ac_func
26007 return $ac_func ();
26012 rm -f conftest.$ac_objext conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_link") 2>conftest.er1
26021 grep -v '^ *+' conftest.er1 >conftest.err
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } && {
26026 test -z "$ac_c_werror_flag" ||
26027 test ! -s conftest.err
26028 } && test -s conftest$ac_exeext &&
26029 $as_test_x conftest$ac_exeext; then
26030 eval "$as_ac_var=yes"
26032 echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26035 eval "$as_ac_var=no"
26038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26039 conftest$ac_exeext conftest.$ac_ext
26041 ac_res=`eval echo '${'$as_ac_var'}'`
26042 { echo "$as_me:$LINENO: result: $ac_res" >&5
26043 echo "${ECHO_T}$ac_res" >&6; }
26044 if test `eval echo '${'$as_ac_var'}'` = yes; then
26045 cat >>confdefs.h <<_ACEOF
26046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26053 for ac_header in varargs.h
26055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 ac_res=`eval echo '${'$as_ac_Header'}'`
26063 { echo "$as_me:$LINENO: result: $ac_res" >&5
26064 echo "${ECHO_T}$ac_res" >&6; }
26066 # Is the header compilable?
26067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 $ac_includes_default
26076 #include <$ac_header>
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082 *) ac_try_echo=$ac_try;;
26084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26085 (eval "$ac_compile") 2>conftest.er1
26087 grep -v '^ *+' conftest.er1 >conftest.err
26089 cat conftest.err >&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } && {
26092 test -z "$ac_c_werror_flag" ||
26093 test ! -s conftest.err
26094 } && test -s conftest.$ac_objext; then
26095 ac_header_compiler=yes
26097 echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26100 ac_header_compiler=no
26103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26105 echo "${ECHO_T}$ac_header_compiler" >&6; }
26107 # Is the header present?
26108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 #include <$ac_header>
26118 if { (ac_try="$ac_cpp conftest.$ac_ext"
26119 case "(($ac_try" in
26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1 >conftest.err
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } >/dev/null && {
26131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26132 test ! -s conftest.err
26134 ac_header_preproc=yes
26136 echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ac_header_preproc=no
26142 rm -f conftest.err conftest.$ac_ext
26143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26144 echo "${ECHO_T}$ac_header_preproc" >&6; }
26146 # So? What about this header?
26147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26153 ac_header_preproc=yes
26156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26174 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 eval "$as_ac_Header=\$ac_header_preproc"
26178 ac_res=`eval echo '${'$as_ac_Header'}'`
26179 { echo "$as_me:$LINENO: result: $ac_res" >&5
26180 echo "${ECHO_T}$ac_res" >&6; }
26183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26184 cat >>confdefs.h <<_ACEOF
26185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26194 { echo "$as_me:$LINENO: checking for Python support" >&5
26195 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26197 # Check whether --with-python was given.
26198 if test "${with_python+set}" = set; then
26199 withval=$with_python;
26202 if test "$withval" != "no"; then
26203 if test "$withval" = "yes"; then
26204 for python_root in /usr /usr/local /usr/sfw; do
26205 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26206 if test -f $python_root/include/${ver}/Python.h; then
26207 PYTHON_INCDIR=-I$python_root/include/${ver}
26208 if test -d $python_root/lib64/${ver}/config; then
26209 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26211 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26218 if test x$PYTHON_INCDIR = x; then
26219 if test -f $prefix/include/Python.h; then
26220 PYTHON_INCDIR=-I$prefix/include
26221 if test -d $prefix/lib64/config; then
26222 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26224 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26227 { echo "$as_me:$LINENO: result: no" >&5
26228 echo "${ECHO_T}no" >&6; }
26229 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26230 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26231 { (exit 1); exit 1; }; }
26235 if test -f $withval/Python.h; then
26236 PYTHON_INCDIR=-I$withval
26237 PYTHON_LIBS="-L$withval/config -lpython"
26238 elif test -f $withval/include/Python.h; then
26239 PYTHON_INCDIR=-I$withval/include
26240 if test -d $withval/lib64/config; then
26241 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26243 PYTHON_LIBS="-L$withval/lib/config -lpython"
26245 elif test -f $withval/include/python/Python.h; then
26246 PYTHON_INCDIR=-I$withval/include/python
26247 if test -d $withval/lib64/python/config; then
26248 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26250 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26253 { echo "$as_me:$LINENO: result: no" >&5
26254 echo "${ECHO_T}no" >&6; }
26255 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26256 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26257 { (exit 1); exit 1; }; }
26261 cat >>confdefs.h <<\_ACEOF
26262 #define HAVE_PYTHON 1
26265 { echo "$as_me:$LINENO: result: yes" >&5
26266 echo "${ECHO_T}yes" >&6; }
26268 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26269 echo "$as_me: checking for more Python libs" >&6;}
26270 saved_LIBS="$LIBS"; LIBS=
26271 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26272 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26273 if test "${ac_cv_search_shm_open+set}" = set; then
26274 echo $ECHO_N "(cached) $ECHO_C" >&6
26276 ac_func_search_save_LIBS=$LIBS
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26284 /* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26294 return shm_open ();
26299 for ac_lib in '' rt; do
26300 if test -z "$ac_lib"; then
26301 ac_res="none required"
26304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26306 rm -f conftest.$ac_objext conftest$ac_exeext
26307 if { (ac_try="$ac_link"
26308 case "(($ac_try" in
26309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310 *) ac_try_echo=$ac_try;;
26312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313 (eval "$ac_link") 2>conftest.er1
26315 grep -v '^ *+' conftest.er1 >conftest.err
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } && {
26320 test -z "$ac_c_werror_flag" ||
26321 test ! -s conftest.err
26322 } && test -s conftest$ac_exeext &&
26323 $as_test_x conftest$ac_exeext; then
26324 ac_cv_search_shm_open=$ac_res
26326 echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26334 if test "${ac_cv_search_shm_open+set}" = set; then
26338 if test "${ac_cv_search_shm_open+set}" = set; then
26341 ac_cv_search_shm_open=no
26343 rm conftest.$ac_ext
26344 LIBS=$ac_func_search_save_LIBS
26346 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26347 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26348 ac_res=$ac_cv_search_shm_open
26349 if test "$ac_res" != no; then
26350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26355 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26356 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26357 if test "${ac_cv_lib_util_openpty+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 ac_check_lib_save_LIBS=$LIBS
26361 LIBS="-lutil $LIBS"
26362 cat >conftest.$ac_ext <<_ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h. */
26369 /* Override any GCC internal prototype to avoid an error.
26370 Use char because int might match the return type of a GCC
26371 builtin and then its argument prototype would still apply. */
26384 rm -f conftest.$ac_objext conftest$ac_exeext
26385 if { (ac_try="$ac_link"
26386 case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391 (eval "$ac_link") 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } && {
26398 test -z "$ac_c_werror_flag" ||
26399 test ! -s conftest.err
26400 } && test -s conftest$ac_exeext &&
26401 $as_test_x conftest$ac_exeext; then
26402 ac_cv_lib_util_openpty=yes
26404 echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26407 ac_cv_lib_util_openpty=no
26410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26411 conftest$ac_exeext conftest.$ac_ext
26412 LIBS=$ac_check_lib_save_LIBS
26414 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26415 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26416 if test $ac_cv_lib_util_openpty = yes; then
26417 cat >>confdefs.h <<_ACEOF
26418 #define HAVE_LIBUTIL 1
26421 LIBS="-lutil $LIBS"
26425 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26428 { echo "$as_me:$LINENO: result: no" >&5
26429 echo "${ECHO_T}no" >&6; }
26434 { echo "$as_me:$LINENO: result: no" >&5
26435 echo "${ECHO_T}no" >&6; }
26443 { echo "$as_me:$LINENO: checking for socket" >&5
26444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26445 if test "${ac_cv_func_socket+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26456 #define socket innocuous_socket
26458 /* System header to define __stub macros and hopefully few prototypes,
26459 which can conflict with char socket (); below.
26460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26461 <limits.h> exists even on freestanding compilers. */
26464 # include <limits.h>
26466 # include <assert.h>
26471 /* Override any GCC internal prototype to avoid an error.
26472 Use char because int might match the return type of a GCC
26473 builtin and then its argument prototype would still apply. */
26478 /* The GNU C library defines this for functions which it implements
26479 to always fail with ENOSYS. Some functions are actually named
26480 something starting with __ and the normal name is an alias. */
26481 #if defined __stub_socket || defined __stub___socket
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26502 grep -v '^ *+' conftest.er1 >conftest.err
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } && {
26507 test -z "$ac_c_werror_flag" ||
26508 test ! -s conftest.err
26509 } && test -s conftest$ac_exeext &&
26510 $as_test_x conftest$ac_exeext; then
26511 ac_cv_func_socket=yes
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_cv_func_socket=no
26519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26520 conftest$ac_exeext conftest.$ac_ext
26522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26524 if test $ac_cv_func_socket = yes; then
26525 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26526 echo "${ECHO_T}using libc's socket" >&6; }
26529 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26530 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26531 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 ac_check_lib_save_LIBS=$LIBS
26535 LIBS="-lxnet $LIBS"
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26543 /* Override any GCC internal prototype to avoid an error.
26544 Use char because int might match the return type of a GCC
26545 builtin and then its argument prototype would still apply. */
26558 rm -f conftest.$ac_objext conftest$ac_exeext
26559 if { (ac_try="$ac_link"
26560 case "(($ac_try" in
26561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562 *) ac_try_echo=$ac_try;;
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565 (eval "$ac_link") 2>conftest.er1
26567 grep -v '^ *+' conftest.er1 >conftest.err
26569 cat conftest.err >&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); } && {
26572 test -z "$ac_c_werror_flag" ||
26573 test ! -s conftest.err
26574 } && test -s conftest$ac_exeext &&
26575 $as_test_x conftest$ac_exeext; then
26576 ac_cv_lib_xnet_socket=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_cv_lib_xnet_socket=no
26584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26585 conftest$ac_exeext conftest.$ac_ext
26586 LIBS=$ac_check_lib_save_LIBS
26588 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26589 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26590 if test $ac_cv_lib_xnet_socket = yes; then
26591 cat >>confdefs.h <<_ACEOF
26592 #define HAVE_LIBXNET 1
26595 LIBS="-lxnet $LIBS"
26600 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26601 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26602 if test "${ac_cv_lib_socket_socket+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26605 ac_check_lib_save_LIBS=$LIBS
26606 LIBS="-lsocket $LIBS"
26607 cat >conftest.$ac_ext <<_ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h. */
26614 /* Override any GCC internal prototype to avoid an error.
26615 Use char because int might match the return type of a GCC
26616 builtin and then its argument prototype would still apply. */
26629 rm -f conftest.$ac_objext conftest$ac_exeext
26630 if { (ac_try="$ac_link"
26631 case "(($ac_try" in
26632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26633 *) ac_try_echo=$ac_try;;
26635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26636 (eval "$ac_link") 2>conftest.er1
26638 grep -v '^ *+' conftest.er1 >conftest.err
26640 cat conftest.err >&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } && {
26643 test -z "$ac_c_werror_flag" ||
26644 test ! -s conftest.err
26645 } && test -s conftest$ac_exeext &&
26646 $as_test_x conftest$ac_exeext; then
26647 ac_cv_lib_socket_socket=yes
26649 echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26652 ac_cv_lib_socket_socket=no
26655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26656 conftest$ac_exeext conftest.$ac_ext
26657 LIBS=$ac_check_lib_save_LIBS
26659 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26660 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26661 if test $ac_cv_lib_socket_socket = yes; then
26662 cat >>confdefs.h <<_ACEOF
26663 #define HAVE_LIBSOCKET 1
26666 LIBS="-lsocket $LIBS"
26671 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26672 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26673 if test "${ac_cv_lib_inet_socket+set}" = set; then
26674 echo $ECHO_N "(cached) $ECHO_C" >&6
26676 ac_check_lib_save_LIBS=$LIBS
26677 LIBS="-linet $LIBS"
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26685 /* Override any GCC internal prototype to avoid an error.
26686 Use char because int might match the return type of a GCC
26687 builtin and then its argument prototype would still apply. */
26700 rm -f conftest.$ac_objext conftest$ac_exeext
26701 if { (ac_try="$ac_link"
26702 case "(($ac_try" in
26703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704 *) ac_try_echo=$ac_try;;
26706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707 (eval "$ac_link") 2>conftest.er1
26709 grep -v '^ *+' conftest.er1 >conftest.err
26711 cat conftest.err >&5
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); } && {
26714 test -z "$ac_c_werror_flag" ||
26715 test ! -s conftest.err
26716 } && test -s conftest$ac_exeext &&
26717 $as_test_x conftest$ac_exeext; then
26718 ac_cv_lib_inet_socket=yes
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 ac_cv_lib_inet_socket=no
26726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26727 conftest$ac_exeext conftest.$ac_ext
26728 LIBS=$ac_check_lib_save_LIBS
26730 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26731 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26732 if test $ac_cv_lib_inet_socket = yes; then
26733 cat >>confdefs.h <<_ACEOF
26734 #define HAVE_LIBINET 1
26737 LIBS="-linet $LIBS"
26747 # Check whether --with-tcp-wrappers was given.
26748 if test "${with_tcp_wrappers+set}" = set; then
26749 withval=$with_tcp_wrappers;
26750 if test "x$withval" != "xno" ; then
26752 LIBS="$saved_LIBS -lwrap"
26753 { echo "$as_me:$LINENO: checking for libwrap" >&5
26754 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26755 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26756 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26757 if test "${ac_cv_search_nanosleep+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 ac_func_search_save_LIBS=$LIBS
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26768 /* Override any GCC internal prototype to avoid an error.
26769 Use char because int might match the return type of a GCC
26770 builtin and then its argument prototype would still apply. */
26778 return nanosleep ();
26783 for ac_lib in '' rt; do
26784 if test -z "$ac_lib"; then
26785 ac_res="none required"
26788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26790 rm -f conftest.$ac_objext conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794 *) ac_try_echo=$ac_try;;
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797 (eval "$ac_link") 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } && {
26804 test -z "$ac_c_werror_flag" ||
26805 test ! -s conftest.err
26806 } && test -s conftest$ac_exeext &&
26807 $as_test_x conftest$ac_exeext; then
26808 ac_cv_search_nanosleep=$ac_res
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26818 if test "${ac_cv_search_nanosleep+set}" = set; then
26822 if test "${ac_cv_search_nanosleep+set}" = set; then
26825 ac_cv_search_nanosleep=no
26827 rm conftest.$ac_ext
26828 LIBS=$ac_func_search_save_LIBS
26830 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26831 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26832 ac_res=$ac_cv_search_nanosleep
26833 if test "$ac_res" != no; then
26834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26845 #include <sys/types.h>
26847 int deny_severity = 0;
26848 int allow_severity = 0;
26849 struct request_info *req;
26861 rm -f conftest.$ac_objext conftest$ac_exeext
26862 if { (ac_try="$ac_link"
26863 case "(($ac_try" in
26864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865 *) ac_try_echo=$ac_try;;
26867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868 (eval "$ac_link") 2>conftest.er1
26870 grep -v '^ *+' conftest.er1 >conftest.err
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } && {
26875 test -z "$ac_c_werror_flag" ||
26876 test ! -s conftest.err
26877 } && test -s conftest$ac_exeext &&
26878 $as_test_x conftest$ac_exeext; then
26880 { echo "$as_me:$LINENO: result: yes" >&5
26881 echo "${ECHO_T}yes" >&6; }
26883 cat >>confdefs.h <<\_ACEOF
26884 #define HAVE_LIBWRAP 1
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26896 LIBS="$saved_LIBS -lwrap -lnsl"
26897 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26898 cat >conftest.$ac_ext <<_ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26905 #include <sys/types.h>
26907 int deny_severity = 0;
26908 int allow_severity = 0;
26909 struct request_info *req;
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest$ac_exeext &&
26938 $as_test_x conftest$ac_exeext; then
26940 { echo "$as_me:$LINENO: result: yes" >&5
26941 echo "${ECHO_T}yes" >&6; }
26943 cat >>confdefs.h <<\_ACEOF
26944 #define HAVE_LIBWRAP 1
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26956 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26957 echo "$as_me: error: *** libwrap missing" >&2;}
26958 { (exit 1); exit 1; }; }
26963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26964 conftest$ac_exeext conftest.$ac_ext
26969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26970 conftest$ac_exeext conftest.$ac_ext
26977 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26978 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26980 # Check whether --with-openssl was given.
26981 if test "${with_openssl+set}" = set; then
26982 withval=$with_openssl;
26983 with_openssl_directory=${withval}
26989 if test "x$with_openssl_directory" != "xno"; then
26990 OPENSSL_LIBS="-lssl -lcrypto"
26993 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26995 # Make sure the $with_openssl_directory also makes sense
26997 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26998 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26999 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27003 saved_LIBS="${LIBS}"
27004 saved_CFLAGS="${CFLAGS}"
27005 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27006 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27008 cat >conftest.$ac_ext <<_ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27015 #include <openssl/ssl.h>
27021 CRYPTO_set_id_callback(NULL);
27027 rm -f conftest.$ac_objext conftest$ac_exeext
27028 if { (ac_try="$ac_link"
27029 case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_link") 2>conftest.er1
27036 grep -v '^ *+' conftest.er1 >conftest.err
27038 cat conftest.err >&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } && {
27041 test -z "$ac_c_werror_flag" ||
27042 test ! -s conftest.err
27043 } && test -s conftest$ac_exeext &&
27044 $as_test_x conftest$ac_exeext; then
27047 support_crypto="yes"
27050 echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27060 conftest$ac_exeext conftest.$ac_ext
27062 cat >conftest.$ac_ext <<_ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h. */
27069 #include <openssl/evp.h>
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_link") 2>conftest.er1
27090 grep -v '^ *+' conftest.er1 >conftest.err
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest$ac_exeext &&
27098 $as_test_x conftest$ac_exeext; then
27100 ac_cv_openssl_sha2="yes"
27103 echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27107 ac_cv_openssl_sha2="no"
27112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27113 conftest$ac_exeext conftest.$ac_ext
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27122 #include <openssl/evp.h>
27134 rm -f conftest.$ac_objext conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138 *) ac_try_echo=$ac_try;;
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141 (eval "$ac_link") 2>conftest.er1
27143 grep -v '^ *+' conftest.er1 >conftest.err
27145 cat conftest.err >&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } && {
27148 test -z "$ac_c_werror_flag" ||
27149 test ! -s conftest.err
27150 } && test -s conftest$ac_exeext &&
27151 $as_test_x conftest$ac_exeext; then
27153 ac_cv_openssl_export="no"
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27160 ac_cv_openssl_export="yes"
27165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27166 conftest$ac_exeext conftest.$ac_ext
27168 LIBS="${saved_LIBS}"
27169 CFLAGS="${saved_CFLAGS}"
27171 if test "$support_tls" = "yes"; then
27173 cat >>confdefs.h <<\_ACEOF
27174 #define HAVE_OPENSSL 1
27178 cat >>confdefs.h <<\_ACEOF
27183 cat >>confdefs.h <<\_ACEOF
27184 #define HAVE_CRYPTO 1
27189 if test "$ac_cv_openssl_sha2" = "yes"; then
27191 cat >>confdefs.h <<\_ACEOF
27192 #define HAVE_SHA2 1
27197 if test "$ac_cv_openssl_export" = "yes"; then
27199 cat >>confdefs.h <<\_ACEOF
27200 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27206 support_crypto="no"
27211 { echo "$as_me:$LINENO: result: $support_tls" >&5
27212 echo "${ECHO_T}$support_tls" >&6; }
27216 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27217 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27218 if test "${ac_cv_search_dlopen+set}" = set; then
27219 echo $ECHO_N "(cached) $ECHO_C" >&6
27221 ac_func_search_save_LIBS=$LIBS
27222 cat >conftest.$ac_ext <<_ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27229 /* Override any GCC internal prototype to avoid an error.
27230 Use char because int might match the return type of a GCC
27231 builtin and then its argument prototype would still apply. */
27244 for ac_lib in '' dl; do
27245 if test -z "$ac_lib"; then
27246 ac_res="none required"
27249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (ac_try="$ac_link"
27253 case "(($ac_try" in
27254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255 *) ac_try_echo=$ac_try;;
27257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258 (eval "$ac_link") 2>conftest.er1
27260 grep -v '^ *+' conftest.er1 >conftest.err
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } && {
27265 test -z "$ac_c_werror_flag" ||
27266 test ! -s conftest.err
27267 } && test -s conftest$ac_exeext &&
27268 $as_test_x conftest$ac_exeext; then
27269 ac_cv_search_dlopen=$ac_res
27271 echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27279 if test "${ac_cv_search_dlopen+set}" = set; then
27283 if test "${ac_cv_search_dlopen+set}" = set; then
27286 ac_cv_search_dlopen=no
27288 rm conftest.$ac_ext
27289 LIBS=$ac_func_search_save_LIBS
27291 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27292 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27293 ac_res=$ac_cv_search_dlopen
27294 if test "$ac_res" != no; then
27295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27300 working_dir=`eval echo ${prefix}/var/bacula/working`
27302 # Check whether --with-working-dir was given.
27303 if test "${with_working_dir+set}" = set; then
27304 withval=$with_working_dir;
27305 if test "x$withval" != "xno" ; then
27306 working_dir=$withval
27317 # Check whether --with-archivedir was given.
27318 if test "${with_archivedir+set}" = set; then
27319 withval=$with_archivedir;
27320 if test "x$withval" != "xno" ; then
27321 archivedir=$withval
27330 scriptdir=`eval echo ${sysconfdir}`
27332 # Check whether --with-scriptdir was given.
27333 if test "${with_scriptdir+set}" = set; then
27334 withval=$with_scriptdir;
27335 if test "x$withval" != "xno" ; then
27345 # ------------------------------------------
27346 # Where to place plugindir (plugin files)
27347 # ------------------------------------------
27348 plugindir=`eval echo ${sysconfdir}`
27350 # Check whether --with-plugindir was given.
27351 if test "${with_plugindir+set}" = set; then
27352 withval=$with_plugindir;
27353 if test "x$withval" != "xno" ; then
27363 dump_email=root@localhost
27365 # Check whether --with-dump-email was given.
27366 if test "${with_dump_email+set}" = set; then
27367 withval=$with_dump_email;
27368 if test "x$withval" != "xno" ; then
27369 dump_email=$withval
27378 job_email=root@localhost
27380 # Check whether --with-job-email was given.
27381 if test "${with_job_email+set}" = set; then
27382 withval=$with_job_email;
27383 if test "x$withval" != "xno" ; then
27393 smtp_host=localhost
27395 # Check whether --with-smtp_host was given.
27396 if test "${with_smtp_host+set}" = set; then
27397 withval=$with_smtp_host;
27398 if test "x$withval" != "xno" ; then
27410 # Check whether --with-pid-dir was given.
27411 if test "${with_pid_dir+set}" = set; then
27412 withval=$with_pid_dir;
27413 if test "x$withval" != "xno" ; then
27421 cat >>confdefs.h <<_ACEOF
27422 #define _PATH_BACULA_PIDDIR "$piddir"
27427 subsysdir=/var/run/subsys
27428 if test -d /var/run/subsys; then
27429 subsysdir=/var/run/subsys
27430 elif test -d /var/lock/subsys; then
27431 subsysdir=/var/lock/subsys
27433 subsysdir=/var/run/subsys
27436 # Check whether --with-subsys-dir was given.
27437 if test "${with_subsys_dir+set}" = set; then
27438 withval=$with_subsys_dir;
27439 if test "x$withval" != "xno" ; then
27451 # Check whether --with-baseport was given.
27452 if test "${with_baseport+set}" = set; then
27453 withval=$with_baseport;
27454 if test "x$withval" != "xno" ; then
27463 dir_port=`expr $baseport`
27464 fd_port=`expr $baseport + 1`
27465 sd_port=`expr $fd_port + 1`
27473 # Check whether --with-dir-password was given.
27474 if test "${with_dir_password+set}" = set; then
27475 withval=$with_dir_password;
27476 if test "x$withval" != "xno" ; then
27477 dir_password=$withval
27484 if test "x$dir_password" = "x" ; then
27485 if test "x$OPENSSL" = "xnone" ; then
27486 key=`autoconf/randpass 33`
27488 key=`openssl rand -base64 33`
27495 # Check whether --with-fd-password was given.
27496 if test "${with_fd_password+set}" = set; then
27497 withval=$with_fd_password;
27498 if test "x$withval" != "xno" ; then
27499 fd_password=$withval
27506 if test "x$fd_password" = "x" ; then
27507 if test "x$OPENSSL" = "xnone" ; then
27508 key=`autoconf/randpass 37`
27510 key=`openssl rand -base64 33`
27517 # Check whether --with-sd-password was given.
27518 if test "${with_sd_password+set}" = set; then
27519 withval=$with_sd_password;
27520 if test "x$withval" != "xno" ; then
27521 sd_password=$withval
27528 if test "x$sd_password" = "x" ; then
27529 if test "x$OPENSSL" = "xnone" ; then
27530 key=`autoconf/randpass 41`
27532 key=`openssl rand -base64 33`
27539 # Check whether --with-mon-dir-password was given.
27540 if test "${with_mon_dir_password+set}" = set; then
27541 withval=$with_mon_dir_password;
27542 if test "x$withval" != "xno" ; then
27543 mon_dir_password=$withval
27550 if test "x$mon_dir_password" = "x" ; then
27551 if test "x$OPENSSL" = "xnone" ; then
27552 key=`autoconf/randpass 33`
27554 key=`openssl rand -base64 33`
27556 mon_dir_password=$key
27561 # Check whether --with-mon-fd-password was given.
27562 if test "${with_mon_fd_password+set}" = set; then
27563 withval=$with_mon_fd_password;
27564 if test "x$withval" != "xno" ; then
27565 mon_fd_password=$withval
27572 if test "x$mon_fd_password" = "x" ; then
27573 if test "x$OPENSSL" = "xnone" ; then
27574 key=`autoconf/randpass 37`
27576 key=`openssl rand -base64 33`
27578 mon_fd_password=$key
27583 # Check whether --with-mon-sd-password was given.
27584 if test "${with_mon_sd_password+set}" = set; then
27585 withval=$with_mon_sd_password;
27586 if test "x$withval" != "xno" ; then
27587 mon_sd_password=$withval
27594 if test "x$mon_sd_password" = "x" ; then
27595 if test "x$OPENSSL" = "xnone" ; then
27596 key=`autoconf/randpass 41`
27598 key=`openssl rand -base64 33`
27600 mon_sd_password=$key
27612 # Check whether --with-db_name was given.
27613 if test "${with_db_name+set}" = set; then
27614 withval=$with_db_name;
27615 if test "x$withval" != "x" ; then
27626 # Check whether --with-db_user was given.
27627 if test "${with_db_user+set}" = set; then
27628 withval=$with_db_user;
27629 if test "x$withval" != "x" ; then
27640 # Check whether --with-db_password was given.
27641 if test "${with_db_password+set}" = set; then
27642 withval=$with_db_password;
27643 if test "x$withval" != "x" ; then
27644 db_password=$withval
27654 # Check whether --with-db_port was given.
27655 if test "${with_db_port+set}" = set; then
27656 withval=$with_db_port;
27657 if test "x$withval" != "x" ; then
27667 # Handle users and groups for each daemon
27671 # Check whether --with-dir_user was given.
27672 if test "${with_dir_user+set}" = set; then
27673 withval=$with_dir_user;
27674 if test "x$withval" != "x" ; then
27684 # Check whether --with-dir_group was given.
27685 if test "${with_dir_group+set}" = set; then
27686 withval=$with_dir_group;
27687 if test "x$withval" != "x" ; then
27697 # Check whether --with-sd_user was given.
27698 if test "${with_sd_user+set}" = set; then
27699 withval=$with_sd_user;
27700 if test "x$withval" != "x" ; then
27710 # Check whether --with-sd_group was given.
27711 if test "${with_sd_group+set}" = set; then
27712 withval=$with_sd_group;
27713 if test "x$withval" != "x" ; then
27723 # Check whether --with-fd_user was given.
27724 if test "${with_fd_user+set}" = set; then
27725 withval=$with_fd_user;
27726 if test "x$withval" != "x" ; then
27736 # Check whether --with-fd_group was given.
27737 if test "${with_fd_group+set}" = set; then
27738 withval=$with_fd_group;
27739 if test "x$withval" != "x" ; then
27756 # Check whether --with-sbin-perm was given.
27757 if test "${with_sbin_perm+set}" = set; then
27758 withval=$with_sbin_perm;
27759 if test "x$withval" != "x" ; then
27772 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27773 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27775 # Check whether --with-postgresql was given.
27776 if test "${with_postgresql+set}" = set; then
27777 withval=$with_postgresql;
27778 if test "$withval" != "no"; then
27779 if test "$db_found" = "yes"; then
27780 { echo "$as_me:$LINENO: result: error" >&5
27781 echo "${ECHO_T}error" >&6; }
27782 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27783 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27784 { (exit 1); exit 1; }; };
27786 if test "$withval" = "yes"; then
27787 PG_CONFIG=`which pg_config`
27788 if test -n "$PG_CONFIG";then
27789 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27790 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27791 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27792 elif test -f /usr/local/include/libpq-fe.h; then
27793 POSTGRESQL_INCDIR=/usr/local/include
27794 if test -d /usr/local/lib64; then
27795 POSTGRESQL_LIBDIR=/usr/local/lib64
27797 POSTGRESQL_LIBDIR=/usr/local/lib
27799 POSTGRESQL_BINDIR=/usr/local/bin
27800 elif test -f /usr/include/libpq-fe.h; then
27801 POSTGRESQL_INCDIR=/usr/include
27802 if test -d /usr/lib64; then
27803 POSTGRESQL_LIBDIR=/usr/lib64
27805 POSTGRESQL_LIBDIR=/usr/lib
27807 POSTGRESQL_BINDIR=/usr/bin
27808 elif test -f /usr/include/pgsql/libpq-fe.h; then
27809 POSTGRESQL_INCDIR=/usr/include/pgsql
27810 if test -d /usr/lib64/pgsql; then
27811 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27813 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27815 POSTGRESQL_BINDIR=/usr/bin
27816 elif test -f /usr/include/postgresql/libpq-fe.h; then
27817 POSTGRESQL_INCDIR=/usr/include/postgresql
27818 if test -d /usr/lib64/postgresql; then
27819 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27821 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27823 POSTGRESQL_BINDIR=/usr/bin
27825 { echo "$as_me:$LINENO: result: no" >&5
27826 echo "${ECHO_T}no" >&6; }
27827 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27828 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27829 { (exit 1); exit 1; }; }
27831 elif test -f $withval/include/libpq-fe.h; then
27832 POSTGRESQL_INCDIR=$withval/include
27833 POSTGRESQL_LIBDIR=$withval/lib
27834 POSTGRESQL_BINDIR=$withval/bin
27835 elif test -f $withval/include/postgresql/libpq-fe.h; then
27836 POSTGRESQL_INCDIR=$withval/include/postgresql
27837 if test -d $withval/lib64; then
27838 POSTGRESQL_LIBDIR=$withval/lib64
27840 POSTGRESQL_LIBDIR=$withval/lib
27842 POSTGRESQL_BINDIR=$withval/bin
27844 { echo "$as_me:$LINENO: result: no" >&5
27845 echo "${ECHO_T}no" >&6; }
27846 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27847 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27848 { (exit 1); exit 1; }; }
27850 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27851 { echo "$as_me:$LINENO: checking for crypt" >&5
27852 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27853 if test "${ac_cv_func_crypt+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27856 cat >conftest.$ac_ext <<_ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h. */
27862 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27864 #define crypt innocuous_crypt
27866 /* System header to define __stub macros and hopefully few prototypes,
27867 which can conflict with char crypt (); below.
27868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27869 <limits.h> exists even on freestanding compilers. */
27872 # include <limits.h>
27874 # include <assert.h>
27879 /* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27886 /* The GNU C library defines this for functions which it implements
27887 to always fail with ENOSYS. Some functions are actually named
27888 something starting with __ and the normal name is an alias. */
27889 #if defined __stub_crypt || defined __stub___crypt
27901 rm -f conftest.$ac_objext conftest$ac_exeext
27902 if { (ac_try="$ac_link"
27903 case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_link") 2>conftest.er1
27910 grep -v '^ *+' conftest.er1 >conftest.err
27912 cat conftest.err >&5
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); } && {
27915 test -z "$ac_c_werror_flag" ||
27916 test ! -s conftest.err
27917 } && test -s conftest$ac_exeext &&
27918 $as_test_x conftest$ac_exeext; then
27919 ac_cv_func_crypt=yes
27921 echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27924 ac_cv_func_crypt=no
27927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27928 conftest$ac_exeext conftest.$ac_ext
27930 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27931 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27932 if test $ac_cv_func_crypt = yes; then
27935 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27936 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27937 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27940 ac_check_lib_save_LIBS=$LIBS
27941 LIBS="-lcrypt $LIBS"
27942 cat >conftest.$ac_ext <<_ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27949 /* Override any GCC internal prototype to avoid an error.
27950 Use char because int might match the return type of a GCC
27951 builtin and then its argument prototype would still apply. */
27964 rm -f conftest.$ac_objext conftest$ac_exeext
27965 if { (ac_try="$ac_link"
27966 case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_link") 2>conftest.er1
27973 grep -v '^ *+' conftest.er1 >conftest.err
27975 cat conftest.err >&5
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); } && {
27978 test -z "$ac_c_werror_flag" ||
27979 test ! -s conftest.err
27980 } && test -s conftest$ac_exeext &&
27981 $as_test_x conftest$ac_exeext; then
27982 ac_cv_lib_crypt_crypt=yes
27984 echo "$as_me: failed program was:" >&5
27985 sed 's/^/| /' conftest.$ac_ext >&5
27987 ac_cv_lib_crypt_crypt=no
27990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27991 conftest$ac_exeext conftest.$ac_ext
27992 LIBS=$ac_check_lib_save_LIBS
27994 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27995 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27996 if test $ac_cv_lib_crypt_crypt = yes; then
27997 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28002 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28003 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28004 SQL_BINDIR=$POSTGRESQL_BINDIR
28005 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28007 cat >>confdefs.h <<\_ACEOF
28008 #define HAVE_POSTGRESQL 1
28011 { echo "$as_me:$LINENO: result: yes" >&5
28012 echo "${ECHO_T}yes" >&6; }
28014 support_postgresql=yes
28018 { echo "$as_me:$LINENO: result: no" >&5
28019 echo "${ECHO_T}no" >&6; }
28024 { echo "$as_me:$LINENO: result: no" >&5
28025 echo "${ECHO_T}no" >&6; }
28037 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28038 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28040 # Check whether --with-mysql was given.
28041 if test "${with_mysql+set}" = set; then
28042 withval=$with_mysql;
28043 if test "$withval" != "no"; then
28044 if test "$withval" = "yes"; then
28045 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28046 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28047 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28048 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28049 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28051 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28053 MYSQL_BINDIR=/usr/local/mysql/bin
28054 elif test -f /usr/include/mysql/mysql.h; then
28055 MYSQL_INCDIR=/usr/include/mysql
28056 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28057 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28058 MYSQL_LIBDIR=/usr/lib64/mysql
28059 elif test -f /usr/lib64/libmysqlclient_r.a \
28060 -o -f /usr/lib64/libmysqlclient_r.so; then
28061 MYSQL_LIBDIR=/usr/lib64
28062 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28063 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28064 MYSQL_LIBDIR=/usr/lib/mysql
28066 MYSQL_LIBDIR=/usr/lib
28068 MYSQL_BINDIR=/usr/bin
28069 elif test -f /usr/include/mysql.h; then
28070 MYSQL_INCDIR=/usr/include
28071 if test -f /usr/lib64/libmysqlclient_r.a \
28072 -o -f /usr/lib64/libmysqlclient_r.so; then
28073 MYSQL_LIBDIR=/usr/lib64
28075 MYSQL_LIBDIR=/usr/lib
28077 MYSQL_BINDIR=/usr/bin
28078 elif test -f /usr/local/include/mysql/mysql.h; then
28079 MYSQL_INCDIR=/usr/local/include/mysql
28080 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28081 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28082 MYSQL_LIBDIR=/usr/local/lib64/mysql
28084 MYSQL_LIBDIR=/usr/local/lib/mysql
28086 MYSQL_BINDIR=/usr/local/bin
28087 elif test -f /usr/local/include/mysql.h; then
28088 MYSQL_INCDIR=/usr/local/include
28089 if test -f /usr/local/lib64/libmysqlclient_r.a \
28090 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28091 MYSQL_LIBDIR=/usr/local/lib64
28093 MYSQL_LIBDIR=/usr/local/lib
28095 MYSQL_BINDIR=/usr/local/bin
28097 { echo "$as_me:$LINENO: result: no" >&5
28098 echo "${ECHO_T}no" >&6; }
28099 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28100 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28101 { (exit 1); exit 1; }; }
28104 if test -f $withval/include/mysql/mysql.h; then
28105 MYSQL_INCDIR=$withval/include/mysql
28106 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28107 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28108 MYSQL_LIBDIR=$withval/lib64/mysql
28109 elif test -f $withval/lib64/libmysqlclient_r.a \
28110 -o -f $withval/lib64/libmysqlclient_r.so; then
28111 MYSQL_LIBDIR=$withval/lib64
28112 elif test -f $withval/lib/libmysqlclient_r.a \
28113 -o -f $withval/lib/libmysqlclient_r.so; then
28114 MYSQL_LIBDIR=$withval/lib
28116 MYSQL_LIBDIR=$withval/lib/mysql
28118 MYSQL_BINDIR=$withval/bin
28119 elif test -f $withval/include/mysql.h; then
28120 MYSQL_INCDIR=$withval/include
28121 if test -f $withval/lib64/libmysqlclient_r.a \
28122 -o -f $withval/lib64/libmysqlclient_r.so; then
28123 MYSQL_LIBDIR=$withval/lib64
28125 MYSQL_LIBDIR=$withval/lib
28127 MYSQL_BINDIR=$withval/bin
28129 { echo "$as_me:$LINENO: result: no" >&5
28130 echo "${ECHO_T}no" >&6; }
28131 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28132 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28133 { (exit 1); exit 1; }; }
28136 SQL_INCLUDE=-I$MYSQL_INCDIR
28137 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28138 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28139 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28140 cat >>confdefs.h <<\_ACEOF
28141 #define HAVE_THREAD_SAFE_MYSQL 1
28145 SQL_BINDIR=$MYSQL_BINDIR
28146 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28148 cat >>confdefs.h <<\_ACEOF
28149 #define HAVE_MYSQL 1
28152 { echo "$as_me:$LINENO: result: yes" >&5
28153 echo "${ECHO_T}yes" >&6; }
28160 { echo "$as_me:$LINENO: result: no" >&5
28161 echo "${ECHO_T}no" >&6; }
28169 # Check whether --with-embedded-mysql was given.
28170 if test "${with_embedded_mysql+set}" = set; then
28171 withval=$with_embedded_mysql;
28172 if test "$withval" != "no"; then
28173 if test "$withval" = "yes"; then
28174 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28175 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28176 if test -d /usr/local/mysql/lib64/mysql; then
28177 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28179 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28181 MYSQL_BINDIR=/usr/local/mysql/bin
28182 elif test -f /usr/include/mysql/mysql.h; then
28183 MYSQL_INCDIR=/usr/include/mysql
28184 if test -d /usr/lib64/mysql; then
28185 MYSQL_LIBDIR=/usr/lib64/mysql
28187 MYSQL_LIBDIR=/usr/lib/mysql
28189 MYSQL_BINDIR=/usr/bin
28190 elif test -f /usr/include/mysql.h; then
28191 MYSQL_INCDIR=/usr/include
28192 if test -d /usr/lib64; then
28193 MYSQL_LIBDIR=/usr/lib64
28195 MYSQL_LIBDIR=/usr/lib
28197 MYSQL_BINDIR=/usr/bin
28198 elif test -f /usr/local/include/mysql/mysql.h; then
28199 MYSQL_INCDIR=/usr/local/include/mysql
28200 if test -d /usr/local/lib64/mysql; then
28201 MYSQL_LIBDIR=/usr/local/lib64/mysql
28203 MYSQL_LIBDIR=/usr/local/lib/mysql
28205 MYSQL_BINDIR=/usr/local/bin
28206 elif test -f /usr/local/include/mysql.h; then
28207 MYSQL_INCDIR=/usr/local/include
28208 if test -d /usr/local/lib64; then
28209 MYSQL_LIBDIR=/usr/local/lib64
28211 MYSQL_LIBDIR=/usr/local/lib
28213 MYSQL_BINDIR=/usr/local/bin
28215 { echo "$as_me:$LINENO: result: no" >&5
28216 echo "${ECHO_T}no" >&6; }
28217 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28218 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28219 { (exit 1); exit 1; }; }
28222 if test -f $withval/include/mysql/mysql.h; then
28223 MYSQL_INCDIR=$withval/include/mysql
28224 if test -d $withval/lib64/mysql; then
28225 MYSQL_LIBDIR=$withval/lib64/mysql
28227 MYSQL_LIBDIR=$withval/lib/mysql
28229 MYSQL_BINDIR=$withval/bin
28230 elif test -f $withval/include/mysql.h; then
28231 MYSQL_INCDIR=$withval/include
28232 if test -d $withval/lib64; then
28233 MYSQL_LIBDIR=$withval/lib64
28235 MYSQL_LIBDIR=$withval/lib
28237 MYSQL_BINDIR=$withval/bin
28239 { echo "$as_me:$LINENO: result: no" >&5
28240 echo "${ECHO_T}no" >&6; }
28241 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28242 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28243 { (exit 1); exit 1; }; }
28246 SQL_INCLUDE=-I$MYSQL_INCDIR
28247 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28248 SQL_BINDIR=$MYSQL_BINDIR
28249 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28251 cat >>confdefs.h <<\_ACEOF
28252 #define HAVE_MYSQL 1
28255 cat >>confdefs.h <<\_ACEOF
28256 #define HAVE_EMBEDDED_MYSQL 1
28259 { echo "$as_me:$LINENO: result: yes" >&5
28260 echo "${ECHO_T}yes" >&6; }
28267 { echo "$as_me:$LINENO: result: no" >&5
28268 echo "${ECHO_T}no" >&6; }
28284 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28285 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28287 # Check whether --with-sqlite3 was given.
28288 if test "${with_sqlite3+set}" = set; then
28289 withval=$with_sqlite3;
28290 if test "$withval" != "no"; then
28291 if test "$withval" = "yes"; then
28292 if test -f /usr/local/include/sqlite3.h; then
28293 SQLITE_INCDIR=/usr/local/include
28294 if test -d /usr/local/lib64; then
28295 SQLITE_LIBDIR=/usr/local/lib64
28297 SQLITE_LIBDIR=/usr/local/lib
28299 SQLITE_BINDIR=/usr/local/bin
28300 elif test -f /usr/include/sqlite3.h; then
28301 SQLITE_INCDIR=/usr/include
28302 if test -d /usr/lib64; then
28303 SQLITE_LIBDIR=/usr/lib64
28305 SQLITE_LIBDIR=/usr/lib
28307 SQLITE_BINDIR=/usr/bin
28308 elif test -f $prefix/include/sqlite3.h; then
28309 SQLITE_INCDIR=$prefix/include
28310 if test -d $prefix/lib64; then
28311 SQLITE_LIBDIR=$prefix/lib64
28313 SQLITE_LIBDIR=$prefix/lib
28315 SQLITE_BINDIR=$prefix/bin
28317 { echo "$as_me:$LINENO: result: no" >&5
28318 echo "${ECHO_T}no" >&6; }
28319 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28320 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28321 { (exit 1); exit 1; }; }
28324 if test -f $withval/sqlite3.h; then
28325 SQLITE_INCDIR=$withval
28326 SQLITE_LIBDIR=$withval
28327 SQLITE_BINDIR=$withval
28328 elif test -f $withval/include/sqlite3.h; then
28329 SQLITE_INCDIR=$withval/include
28330 if test -d $withval/lib64; then
28331 SQLITE_LIBDIR=$withval/lib64
28333 SQLITE_LIBDIR=$withval/lib
28335 SQLITE_BINDIR=$withval/bin
28337 { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28340 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28341 { (exit 1); exit 1; }; }
28344 SQL_INCLUDE=-I$SQLITE_INCDIR
28345 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28346 SQL_BINDIR=$SQLITE_BINDIR
28347 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28349 cat >>confdefs.h <<\_ACEOF
28350 #define HAVE_SQLITE3 1
28353 { echo "$as_me:$LINENO: result: yes" >&5
28354 echo "${ECHO_T}yes" >&6; }
28356 support_sqlite3=yes
28361 { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28367 { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28380 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28381 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28383 # Check whether --with-sqlite was given.
28384 if test "${with_sqlite+set}" = set; then
28385 withval=$with_sqlite;
28386 if test "$withval" != "no"; then
28387 if test "$withval" = "yes"; then
28388 if test -f /usr/local/include/sqlite.h; then
28389 SQLITE_INCDIR=/usr/local/include
28390 if test -d /usr/local/lib64; then
28391 SQLITE_LIBDIR=/usr/local/lib64
28393 SQLITE_LIBDIR=/usr/local/lib
28395 SQLITE_BINDIR=/usr/local/bin
28396 elif test -f /usr/include/sqlite.h; then
28397 SQLITE_INCDIR=/usr/include
28398 if test -d /usr/lib64; then
28399 SQLITE_LIBDIR=/usr/lib64
28401 SQLITE_LIBDIR=/usr/lib
28403 SQLITE_BINDIR=/usr/bin
28404 elif test -f $prefix/include/sqlite.h; then
28405 SQLITE_INCDIR=$prefix/include
28406 if test -d $prefix/lib64; then
28407 SQLITE_LIBDIR=$prefix/lib64
28409 SQLITE_LIBDIR=$prefix/lib
28411 SQLITE_BINDIR=$prefix/bin
28413 { echo "$as_me:$LINENO: result: no" >&5
28414 echo "${ECHO_T}no" >&6; }
28415 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28416 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28417 { (exit 1); exit 1; }; }
28420 if test -f $withval/sqlite.h; then
28421 SQLITE_INCDIR=$withval
28422 SQLITE_LIBDIR=$withval
28423 SQLITE_BINDIR=$withval
28424 elif test -f $withval/include/sqlite.h; then
28425 SQLITE_INCDIR=$withval/include
28426 if test -d $withval/lib64; then
28427 SQLITE_LIBDIR=$withval/lib64
28429 SQLITE_LIBDIR=$withval/lib
28431 SQLITE_BINDIR=$withval/bin
28433 { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28436 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28437 { (exit 1); exit 1; }; }
28440 SQL_INCLUDE=-I$SQLITE_INCDIR
28441 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28442 SQL_BINDIR=$SQLITE_BINDIR
28443 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28445 cat >>confdefs.h <<\_ACEOF
28446 #define HAVE_SQLITE 1
28449 { echo "$as_me:$LINENO: result: yes" >&5
28450 echo "${ECHO_T}yes" >&6; }
28457 { echo "$as_me:$LINENO: result: no" >&5
28458 echo "${ECHO_T}no" >&6; }
28463 { echo "$as_me:$LINENO: result: no" >&5
28464 echo "${ECHO_T}no" >&6; }
28476 { echo "$as_me:$LINENO: checking for DBI support" >&5
28477 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28479 # Check whether --with-dbi was given.
28480 if test "${with_dbi+set}" = set; then
28482 if test "$withval" != "no"; then
28483 if test "$withval" = "yes"; then
28484 if test -f /usr/local/include/dbi/dbi.h; then
28485 DBI_INCDIR=/usr/local/dbi/include
28486 if test -d /usr/local/lib64; then
28487 DBI_LIBDIR=/usr/local/lib64
28489 DBI_LIBDIR=/usr/local/lib
28491 DBI_BINDIR=/usr/local/bin
28492 elif test -f /usr/include/dbi/dbi.h; then
28493 DBI_INCDIR=/usr/include
28494 if test -d /usr/lib64; then
28495 DBI_LIBDIR=/usr/lib64
28497 DBI_LIBDIR=/usr/lib
28499 DBI_BINDIR=/usr/bin
28500 elif test -f $prefix/include/dbi/dbi.h; then
28501 DBI_INCDIR=$prefix/include
28502 if test -d $prefix/lib64; then
28503 DBI_LIBDIR=$prefix/lib64
28505 DBI_LIBDIR=$prefix/lib
28507 DBI_BINDIR=$prefix/bin
28509 { echo "$as_me:$LINENO: result: no" >&5
28510 echo "${ECHO_T}no" >&6; }
28511 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28512 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28513 { (exit 1); exit 1; }; }
28515 if test -d /usr/local/lib/dbd; then
28516 DRIVERDIR=/usr/local/lib/dbd
28517 if test -d /usr/local/lib64/dbd; then
28518 DRIVERDIR=/usr/local/lib64/dbd
28520 DRIVERDIR=/usr/local/lib/dbd
28522 elif test -d /usr/lib/dbd; then
28523 DRIVERDIR=/usr/lib/dbd
28524 if test -d /usr/lib64/dbd; then
28525 DRIVERDIR=/usr/lib64/dbd
28527 DRIVERDIR=/usr/lib/dbd
28529 elif test -d $prefix/lib/dbd; then
28530 if test -d $prefix/lib64/dbd; then
28531 DRIVERDIR=$prefix/lib64/dbd
28533 DRIVERDIR=$prefix/lib/dbd
28536 { echo "$as_me:$LINENO: result: no" >&5
28537 echo "${ECHO_T}no" >&6; }
28538 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28539 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28540 { (exit 1); exit 1; }; }
28543 if test -f $withval/dbi.h; then
28544 DBI_INCDIR=$withval
28545 DBI_LIBDIR=$withval
28546 DBI_BINDIR=$withval
28547 elif test -f $withval/include/dbi/dbi.h; then
28548 DBI_INCDIR=$withval/include
28549 if test -d $withval/lib64; then
28550 DBI_LIBDIR=$withval/lib64
28552 DBI_LIBDIR=$withval/lib
28554 DBI_BINDIR=$withval/bin
28556 { echo "$as_me:$LINENO: result: no" >&5
28557 echo "${ECHO_T}no" >&6; }
28558 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28559 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28560 { (exit 1); exit 1; }; }
28562 if test -d $withval/dbd; then
28563 DRIVERDIR=$withval/dbd
28564 elif test -d $withval/lib/; then
28565 if test -d $withval/lib64/dbd; then
28566 DRIVERDIR=$withval/lib64/dbd
28568 DRIVERDIR=$withval/lib/dbd
28571 { echo "$as_me:$LINENO: result: no" >&5
28572 echo "${ECHO_T}no" >&6; }
28573 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28574 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28575 { (exit 1); exit 1; }; }
28578 SQL_INCLUDE=-I$DBI_INCDIR
28579 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28580 SQL_BINDIR=$DBI_BINDIR
28581 SQL_LIB=$DBI_LIBDIR/libdbi.a
28582 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28585 cat >>confdefs.h <<\_ACEOF
28589 { echo "$as_me:$LINENO: result: yes" >&5
28590 echo "${ECHO_T}yes" >&6; }
28598 { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28604 { echo "$as_me:$LINENO: result: no" >&5
28605 echo "${ECHO_T}no" >&6; }
28620 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28621 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28623 # Check whether --with-dbi-driver was given.
28624 if test "${with_dbi_driver+set}" = set; then
28625 withval=$with_dbi_driver;
28626 if test "$withval" != "no"; then
28630 if test -f /usr/local/mysql/bin/mysql; then
28631 SQL_BINDIR=/usr/local/mysql/bin
28632 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28633 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28634 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28636 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28638 elif test -f /usr/bin/mysql; then
28639 SQL_BINDIR=/usr/bin
28640 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28641 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28642 SQL_LIBDIR=/usr/lib64/mysql
28643 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28644 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28645 SQL_LIBDIR=/usr/lib/mysql
28647 SQL_LIBDIR=/usr/lib
28649 elif test -f /usr/local/bin/mysql; then
28650 SQL_BINDIR=/usr/local/bin
28651 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28652 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28653 SQL_LIBDIR=/usr/local/lib64/mysql
28654 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28655 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28656 SQL_LIBDIR=/usr/local/lib/mysql
28658 SQL_LIBDIR=/usr/local/lib
28660 elif test -f $withval/bin/mysql; then
28661 SQL_BINDIR=$withval/bin
28662 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28663 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28664 SQL_LIBDIR=$withval/lib64/mysql
28665 elif test -f $withval/lib64/libmysqlclient_r.a \
28666 -o -f $withval/lib64/libmysqlclient_r.so; then
28667 SQL_LIBDIR=$withval/lib64
28668 elif test -f $withval/lib/libmysqlclient_r.a \
28669 -o -f $withval/lib/libmysqlclient_r.so; then
28670 SQL_LIBDIR=$withval/lib/
28672 SQL_LIBDIR=$withval/lib/mysql
28675 { echo "$as_me:$LINENO: result: no" >&5
28676 echo "${ECHO_T}no" >&6; }
28677 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28678 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28679 { (exit 1); exit 1; }; }
28681 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28682 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28684 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28688 db_prog="postgresql"
28689 PG_CONFIG=`which pg_config`
28690 if test -n "$PG_CONFIG"; then
28691 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28692 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28693 elif test -f /usr/local/bin/psql; then
28694 SQL_BINDIR=/usr/local/bin
28695 if test -d /usr/local/lib64; then
28696 SQL_LIBDIR=/usr/local/lib64
28698 SQL_LIBDIR=/usr/local/lib
28700 elif test -f /usr/bin/psql; then
28701 SQL_BINDIR=/usr/local/bin
28702 if test -d /usr/lib64/postgresql; then
28703 SQL_LIBDIR=/usr/lib64/postgresql
28704 elif test -d /usr/lib/postgresql; then
28705 SQL_LIBDIR=/usr/lib/postgresql
28706 elif test -d /usr/lib64; then
28707 SQL_LIBDIR=/usr/lib64
28709 SQL_LIBDIR=/usr/lib
28711 elif test -f $withval/bin/psql; then
28712 SQL_BINDIR=$withval/bin
28713 if test -d $withval/lib64; then
28714 SQL_LIBDIR=$withval/lib64
28716 SQL_LIBDIR=$withval/lib
28719 { echo "$as_me:$LINENO: result: no" >&5
28720 echo "${ECHO_T}no" >&6; }
28721 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28722 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28723 { (exit 1); exit 1; }; }
28725 if test -f $SQL_LIBDIR/libpq.so; then
28726 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28728 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28733 if test -f /usr/local/bin/sqlite; then
28734 SQL_BINDIR=/usr/local/bin
28735 if test -d /usr/local/lib64; then
28736 SQL_LIBDIR=/usr/local/lib64
28738 SQL_LIBDIR=/usr/local/lib
28740 elif test -f /usr/bin/sqlite; then
28741 SQL_BINDIR=/usr/bin
28742 if test -d /usr/lib64; then
28743 SQL_LIBDIR=/usr/lib64
28745 SQL_LIBDIR=/usr/lib
28747 elif test -f $withval/bin/sqlite; then
28748 SQL_BINDIR=$withval/bin
28749 if test -d $withval/lib64; then
28750 SQL_LIBDIR=$withval/lib64
28752 SQL_LIBDIR=$withval/lib
28755 { echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6; }
28757 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28758 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28759 { (exit 1); exit 1; }; }
28761 if test -f $SQL_LIBDIR/libsqlite.so; then
28762 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28764 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28769 if test -f /usr/local/bin/sqlite3; then
28770 SQL_BINDIR=/usr/local/bin
28771 if test -d /usr/local/lib64; then
28772 SQL_LIBDIR=/usr/local/lib64
28774 SQL_LIBDIR=/usr/local/lib
28776 elif test -f /usr/bin/sqlite3; then
28777 SQL_BINDIR=/usr/bin
28778 if test -d /usr/lib64; then
28779 SQL_LIBDIR=/usr/lib64
28781 SQL_LIBDIR=/usr/lib
28783 elif test -f $withval/bin/sqlite3; then
28784 SQL_BINDIR=$withval/bin
28785 if test -d $withval/lib64; then
28786 SQL_LIBDIR=$withval/lib64
28788 SQL_LIBDIR=$withval/lib
28791 { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28794 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28795 { (exit 1); exit 1; }; }
28797 if test -f $SQL_LIBDIR/libsqlite3.so; then
28798 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28800 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28804 { echo "$as_me:$LINENO: result: no" >&5
28805 echo "${ECHO_T}no" >&6; }
28806 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28807 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28808 { (exit 1); exit 1; }; }
28812 { echo "$as_me:$LINENO: result: yes" >&5
28813 echo "${ECHO_T}yes" >&6; }
28816 { echo "$as_me:$LINENO: result: no" >&5
28817 echo "${ECHO_T}no" >&6; }
28822 { echo "$as_me:$LINENO: result: no" >&5
28823 echo "${ECHO_T}no" >&6; }
28836 support_batch_insert=no
28837 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28839 if test $pkg = 0; then
28840 support_batch_insert=yes
28841 # Check whether --enable-batch-insert was given.
28842 if test "${enable_batch_insert+set}" = set; then
28843 enableval=$enable_batch_insert;
28844 if test x$enableval = xno; then
28845 support_batch_insert=no
28847 support_batch_insert=yes
28855 if test x$DB_TYPE = xpostgresql; then
28856 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28858 if test $pkg != 0; then
28859 support_batch_insert=no
28863 if test x$DB_TYPE = xdbi; then
28867 if test $DB_PROG = postgresql; then
28868 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28872 if test $DB_PROG = mysql; then
28873 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28877 if test $DB_PROG = sqlite3; then
28878 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28882 if test $pkg = 0; then
28883 # Check whether --enable-batch-insert was given.
28884 if test "${enable_batch_insert+set}" = set; then
28885 enableval=$enable_batch_insert;
28886 if test x$enableval = xno; then
28887 support_batch_insert=no
28889 support_batch_insert=yes
28902 if test $support_batch_insert = yes ; then
28904 cat >>confdefs.h <<\_ACEOF
28905 #define HAVE_BATCH_FILE_INSERT 1
28910 cat >>confdefs.h <<\_ACEOF
28911 #define PROTOTYPES 1
28915 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28916 if test -z "$CCOPTS"; then
28917 CCOPTS='-g -O2 -Wall'
28924 largefile_support="no"
28926 # Check whether --enable-largefile was given.
28927 if test "${enable_largefile+set}" = set; then
28928 enableval=$enable_largefile;
28931 if test "$enable_largefile" != no; then
28932 if test -n "$ac_tool_prefix"; then
28933 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28934 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28937 if test "${ac_cv_prog_GETCONF+set}" = set; then
28938 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 if test -n "$GETCONF"; then
28941 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28944 for as_dir in $PATH
28947 test -z "$as_dir" && as_dir=.
28948 for ac_exec_ext in '' $ac_executable_extensions; do
28949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28950 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28960 GETCONF=$ac_cv_prog_GETCONF
28961 if test -n "$GETCONF"; then
28962 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28963 echo "${ECHO_T}$GETCONF" >&6; }
28965 { echo "$as_me:$LINENO: result: no" >&5
28966 echo "${ECHO_T}no" >&6; }
28971 if test -z "$ac_cv_prog_GETCONF"; then
28972 ac_ct_GETCONF=$GETCONF
28973 # Extract the first word of "getconf", so it can be a program name with args.
28974 set dummy getconf; ac_word=$2
28975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28977 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28980 if test -n "$ac_ct_GETCONF"; then
28981 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28984 for as_dir in $PATH
28987 test -z "$as_dir" && as_dir=.
28988 for ac_exec_ext in '' $ac_executable_extensions; do
28989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28990 ac_cv_prog_ac_ct_GETCONF="getconf"
28991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29000 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29001 if test -n "$ac_ct_GETCONF"; then
29002 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29003 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29005 { echo "$as_me:$LINENO: result: no" >&5
29006 echo "${ECHO_T}no" >&6; }
29009 if test "x$ac_ct_GETCONF" = x; then
29012 case $cross_compiling:$ac_tool_warned in
29014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29015 whose name does not start with the host triplet. If you think this
29016 configuration is useful to you, please write to autoconf@gnu.org." >&5
29017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29018 whose name does not start with the host triplet. If you think this
29019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29020 ac_tool_warned=yes ;;
29022 GETCONF=$ac_ct_GETCONF
29025 GETCONF="$ac_cv_prog_GETCONF"
29028 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29029 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29030 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29033 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29034 ac_cv_sys_largefile_CFLAGS=no
29036 # IRIX 6.2 and later require cc -n32.
29037 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29038 if test "$GCC" != yes; then
29039 ac_cv_sys_largefile_CFLAGS=-n32
29042 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29043 cat >conftest.$ac_ext <<_ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h. */
29058 rm -f conftest.$ac_objext conftest$ac_exeext
29059 if { (ac_try="$ac_link"
29060 case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_link") 2>conftest.er1
29067 grep -v '^ *+' conftest.er1 >conftest.err
29069 cat conftest.err >&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } && {
29072 test -z "$ac_c_werror_flag" ||
29073 test ! -s conftest.err
29074 } && test -s conftest$ac_exeext &&
29075 $as_test_x conftest$ac_exeext; then
29078 echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29081 ac_cv_sys_largefile_CFLAGS=no
29084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29085 conftest$ac_exeext conftest.$ac_ext
29090 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29091 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29092 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29093 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29094 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29098 ac_cv_sys_largefile_LDFLAGS=no
29102 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29103 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29104 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29105 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29106 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29107 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29110 ac_cv_sys_largefile_LIBS=no
29114 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29115 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29117 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29120 -D_FILE_OFFSET_BITS=*) ;;
29121 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29122 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29127 case "$CPPFLAGS" in
29128 '') CPPFLAGS="$ac_flag" ;;
29129 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29137 '') CFLAGS="$ac_flag" ;;
29138 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29143 case "$ac_cv_sys_largefile_LDFLAGS" in
29147 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29148 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29151 case "$ac_cv_sys_largefile_LIBS" in
29155 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29156 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29159 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29160 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29161 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29162 echo $ECHO_N "(cached) $ECHO_C" >&6
29164 ac_cv_sys_file_offset_bits=no
29165 ac_cv_sys_file_offset_bits=64
29166 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29168 -D_FILE_OFFSET_BITS)
29169 ac_cv_sys_file_offset_bits=1 ;;
29170 -D_FILE_OFFSET_BITS=*)
29171 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29176 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29177 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29178 if test "$ac_cv_sys_file_offset_bits" != no; then
29180 cat >>confdefs.h <<_ACEOF
29181 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29185 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29186 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29187 if test "${ac_cv_sys_largefile_source+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 ac_cv_sys_largefile_source=no
29191 ac_cv_sys_largefile_source=1
29192 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29194 -D_LARGEFILE_SOURCE)
29195 ac_cv_sys_largefile_source=1 ;;
29196 -D_LARGEFILE_SOURCE=*)
29197 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29202 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29203 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29204 if test "$ac_cv_sys_largefile_source" != no; then
29206 cat >>confdefs.h <<_ACEOF
29207 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29211 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29212 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29213 if test "${ac_cv_sys_large_files+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 ac_cv_sys_large_files=no
29217 ac_cv_sys_large_files=1
29218 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29221 ac_cv_sys_large_files=1 ;;
29223 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29228 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29229 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29230 if test "$ac_cv_sys_large_files" != no; then
29232 cat >>confdefs.h <<_ACEOF
29233 #define _LARGE_FILES $ac_cv_sys_large_files
29240 { echo "$as_me:$LINENO: checking for X" >&5
29241 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29244 # Check whether --with-x was given.
29245 if test "${with_x+set}" = set; then
29249 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29250 if test "x$with_x" = xno; then
29251 # The user explicitly disabled X.
29254 case $x_includes,$x_libraries in #(
29255 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29256 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29257 { (exit 1); exit 1; }; };; #(
29258 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29259 echo $ECHO_N "(cached) $ECHO_C" >&6
29261 # One or both of the vars are not set, and there is no cached value.
29262 ac_x_includes=no ac_x_libraries=no
29263 rm -f -r conftest.dir
29264 if mkdir conftest.dir; then
29266 cat >Imakefile <<'_ACEOF'
29268 @echo incroot='${INCROOT}'
29270 @echo usrlibdir='${USRLIBDIR}'
29272 @echo libdir='${LIBDIR}'
29274 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29276 for ac_var in incroot usrlibdir libdir; do
29277 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29279 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29280 for ac_extension in a so sl; do
29281 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29282 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29283 ac_im_usrlibdir=$ac_im_libdir; break
29286 # Screen out bogus values from the imake configuration. They are
29287 # bogus both because they are the default anyway, and because
29288 # using them would break gcc on systems where it needs fixed includes.
29289 case $ac_im_incroot in
29290 /usr/include) ac_x_includes= ;;
29291 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29293 case $ac_im_usrlibdir in
29294 /usr/lib | /lib) ;;
29295 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29299 rm -f -r conftest.dir
29302 # Standard set of common directories for X headers.
29303 # Check X11 before X11Rn because it is often a symlink to the current release.
29315 /usr/local/X11/include
29316 /usr/local/X11R6/include
29317 /usr/local/X11R5/include
29318 /usr/local/X11R4/include
29320 /usr/local/include/X11
29321 /usr/local/include/X11R6
29322 /usr/local/include/X11R5
29323 /usr/local/include/X11R4
29327 /usr/XFree86/include/X11
29331 /usr/unsupported/include
29332 /usr/athena/include
29333 /usr/local/x11r5/include
29334 /usr/lpp/Xamples/include
29336 /usr/openwin/include
29337 /usr/openwin/share/include'
29339 if test "$ac_x_includes" = no; then
29340 # Guess where to find include files, by looking for Xlib.h.
29341 # First, try using that file with no special directory specified.
29342 cat >conftest.$ac_ext <<_ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29348 #include <X11/Xlib.h>
29350 if { (ac_try="$ac_cpp conftest.$ac_ext"
29351 case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29358 grep -v '^ *+' conftest.er1 >conftest.err
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } >/dev/null && {
29363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29364 test ! -s conftest.err
29366 # We can compile using X headers with no special include directory.
29369 echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29372 for ac_dir in $ac_x_header_dirs; do
29373 if test -r "$ac_dir/X11/Xlib.h"; then
29374 ac_x_includes=$ac_dir
29380 rm -f conftest.err conftest.$ac_ext
29381 fi # $ac_x_includes = no
29383 if test "$ac_x_libraries" = no; then
29384 # Check for the libraries.
29385 # See if we find them without any special options.
29386 # Don't add to $LIBS permanently.
29389 cat >conftest.$ac_ext <<_ACEOF
29392 cat confdefs.h >>conftest.$ac_ext
29393 cat >>conftest.$ac_ext <<_ACEOF
29394 /* end confdefs.h. */
29395 #include <X11/Xlib.h>
29404 rm -f conftest.$ac_objext conftest$ac_exeext
29405 if { (ac_try="$ac_link"
29406 case "(($ac_try" in
29407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29408 *) ac_try_echo=$ac_try;;
29410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29411 (eval "$ac_link") 2>conftest.er1
29413 grep -v '^ *+' conftest.er1 >conftest.err
29415 cat conftest.err >&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); } && {
29418 test -z "$ac_c_werror_flag" ||
29419 test ! -s conftest.err
29420 } && test -s conftest$ac_exeext &&
29421 $as_test_x conftest$ac_exeext; then
29423 # We can link X programs with no special library path.
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29430 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29432 # Don't even attempt the hair of trying to link an X program!
29433 for ac_extension in a so sl; do
29434 if test -r "$ac_dir/libX11.$ac_extension"; then
29435 ac_x_libraries=$ac_dir
29442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29443 conftest$ac_exeext conftest.$ac_ext
29444 fi # $ac_x_libraries = no
29446 case $ac_x_includes,$ac_x_libraries in #(
29447 no,* | *,no | *\'*)
29448 # Didn't find X, or a directory has "'" in its name.
29449 ac_cv_have_x="have_x=no";; #(
29451 # Record where we found X for the cache.
29452 ac_cv_have_x="have_x=yes\
29453 ac_x_includes='$ac_x_includes'\
29454 ac_x_libraries='$ac_x_libraries'"
29460 eval "$ac_cv_have_x"
29463 if test "$have_x" != yes; then
29464 { echo "$as_me:$LINENO: result: $have_x" >&5
29465 echo "${ECHO_T}$have_x" >&6; }
29468 # If each of the values was on the command line, it overrides each guess.
29469 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29470 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29471 # Update the cache value to reflect the command line values.
29472 ac_cv_have_x="have_x=yes\
29473 ac_x_includes='$x_includes'\
29474 ac_x_libraries='$x_libraries'"
29475 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29476 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29479 if test "$no_x" = yes; then
29480 # Not all programs may use this symbol, but it does not hurt to define it.
29482 cat >>confdefs.h <<\_ACEOF
29483 #define X_DISPLAY_MISSING 1
29486 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29488 if test -n "$x_includes"; then
29489 X_CFLAGS="$X_CFLAGS -I$x_includes"
29492 # It would also be nice to do this for all -L options, not just this one.
29493 if test -n "$x_libraries"; then
29494 X_LIBS="$X_LIBS -L$x_libraries"
29495 # For Solaris; some versions of Sun CC require a space after -R and
29496 # others require no space. Words are not sufficient . . . .
29497 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29498 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29499 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29500 ac_xsave_c_werror_flag=$ac_c_werror_flag
29501 ac_c_werror_flag=yes
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (ac_try="$ac_link"
29519 case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_link") 2>conftest.er1
29526 grep -v '^ *+' conftest.er1 >conftest.err
29528 cat conftest.err >&5
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } && {
29531 test -z "$ac_c_werror_flag" ||
29532 test ! -s conftest.err
29533 } && test -s conftest$ac_exeext &&
29534 $as_test_x conftest$ac_exeext; then
29535 { echo "$as_me:$LINENO: result: no" >&5
29536 echo "${ECHO_T}no" >&6; }
29537 X_LIBS="$X_LIBS -R$x_libraries"
29539 echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.$ac_ext >&5
29542 LIBS="$ac_xsave_LIBS -R $x_libraries"
29543 cat >conftest.$ac_ext <<_ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h. */
29558 rm -f conftest.$ac_objext conftest$ac_exeext
29559 if { (ac_try="$ac_link"
29560 case "(($ac_try" in
29561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562 *) ac_try_echo=$ac_try;;
29564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565 (eval "$ac_link") 2>conftest.er1
29567 grep -v '^ *+' conftest.er1 >conftest.err
29569 cat conftest.err >&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); } && {
29572 test -z "$ac_c_werror_flag" ||
29573 test ! -s conftest.err
29574 } && test -s conftest$ac_exeext &&
29575 $as_test_x conftest$ac_exeext; then
29576 { echo "$as_me:$LINENO: result: yes" >&5
29577 echo "${ECHO_T}yes" >&6; }
29578 X_LIBS="$X_LIBS -R $x_libraries"
29580 echo "$as_me: failed program was:" >&5
29581 sed 's/^/| /' conftest.$ac_ext >&5
29583 { echo "$as_me:$LINENO: result: neither works" >&5
29584 echo "${ECHO_T}neither works" >&6; }
29587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29588 conftest$ac_exeext conftest.$ac_ext
29591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29592 conftest$ac_exeext conftest.$ac_ext
29593 ac_c_werror_flag=$ac_xsave_c_werror_flag
29594 LIBS=$ac_xsave_LIBS
29597 # Check for system-dependent libraries X programs must link with.
29598 # Do this before checking for the system-independent R6 libraries
29599 # (-lICE), since we may need -lsocket or whatever for X linking.
29601 if test "$ISC" = yes; then
29602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29604 # Martyn Johnson says this is needed for Ultrix, if the X
29605 # libraries were built with DECnet support. And Karl Berry says
29606 # the Alpha needs dnet_stub (dnet does not exist).
29607 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29608 cat >conftest.$ac_ext <<_ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h. */
29615 /* Override any GCC internal prototype to avoid an error.
29616 Use char because int might match the return type of a GCC
29617 builtin and then its argument prototype would still apply. */
29621 char XOpenDisplay ();
29625 return XOpenDisplay ();
29630 rm -f conftest.$ac_objext conftest$ac_exeext
29631 if { (ac_try="$ac_link"
29632 case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_link") 2>conftest.er1
29639 grep -v '^ *+' conftest.er1 >conftest.err
29641 cat conftest.err >&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } && {
29644 test -z "$ac_c_werror_flag" ||
29645 test ! -s conftest.err
29646 } && test -s conftest$ac_exeext &&
29647 $as_test_x conftest$ac_exeext; then
29650 echo "$as_me: failed program was:" >&5
29651 sed 's/^/| /' conftest.$ac_ext >&5
29653 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29654 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29655 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29658 ac_check_lib_save_LIBS=$LIBS
29659 LIBS="-ldnet $LIBS"
29660 cat >conftest.$ac_ext <<_ACEOF
29663 cat confdefs.h >>conftest.$ac_ext
29664 cat >>conftest.$ac_ext <<_ACEOF
29665 /* end confdefs.h. */
29667 /* Override any GCC internal prototype to avoid an error.
29668 Use char because int might match the return type of a GCC
29669 builtin and then its argument prototype would still apply. */
29677 return dnet_ntoa ();
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_link") 2>conftest.er1
29691 grep -v '^ *+' conftest.er1 >conftest.err
29693 cat conftest.err >&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); } && {
29696 test -z "$ac_c_werror_flag" ||
29697 test ! -s conftest.err
29698 } && test -s conftest$ac_exeext &&
29699 $as_test_x conftest$ac_exeext; then
29700 ac_cv_lib_dnet_dnet_ntoa=yes
29702 echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29705 ac_cv_lib_dnet_dnet_ntoa=no
29708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29709 conftest$ac_exeext conftest.$ac_ext
29710 LIBS=$ac_check_lib_save_LIBS
29712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29713 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29714 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29718 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29719 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29720 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29721 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29722 echo $ECHO_N "(cached) $ECHO_C" >&6
29724 ac_check_lib_save_LIBS=$LIBS
29725 LIBS="-ldnet_stub $LIBS"
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29733 /* Override any GCC internal prototype to avoid an error.
29734 Use char because int might match the return type of a GCC
29735 builtin and then its argument prototype would still apply. */
29743 return dnet_ntoa ();
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (ac_try="$ac_link"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_link") 2>conftest.er1
29757 grep -v '^ *+' conftest.er1 >conftest.err
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } && {
29762 test -z "$ac_c_werror_flag" ||
29763 test ! -s conftest.err
29764 } && test -s conftest$ac_exeext &&
29765 $as_test_x conftest$ac_exeext; then
29766 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29771 ac_cv_lib_dnet_stub_dnet_ntoa=no
29774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29775 conftest$ac_exeext conftest.$ac_ext
29776 LIBS=$ac_check_lib_save_LIBS
29778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29779 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29780 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29788 conftest$ac_exeext conftest.$ac_ext
29789 LIBS="$ac_xsave_LIBS"
29791 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29792 # to get the SysV transport functions.
29793 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29795 # The nsl library prevents programs from opening the X display
29796 # on Irix 5.2, according to T.E. Dickey.
29797 # The functions gethostbyname, getservbyname, and inet_addr are
29798 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29799 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29800 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29801 if test "${ac_cv_func_gethostbyname+set}" = set; then
29802 echo $ECHO_N "(cached) $ECHO_C" >&6
29804 cat >conftest.$ac_ext <<_ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29812 #define gethostbyname innocuous_gethostbyname
29814 /* System header to define __stub macros and hopefully few prototypes,
29815 which can conflict with char gethostbyname (); below.
29816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29817 <limits.h> exists even on freestanding compilers. */
29820 # include <limits.h>
29822 # include <assert.h>
29825 #undef gethostbyname
29827 /* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29833 char gethostbyname ();
29834 /* The GNU C library defines this for functions which it implements
29835 to always fail with ENOSYS. Some functions are actually named
29836 something starting with __ and the normal name is an alias. */
29837 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29844 return gethostbyname ();
29849 rm -f conftest.$ac_objext conftest$ac_exeext
29850 if { (ac_try="$ac_link"
29851 case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_link") 2>conftest.er1
29858 grep -v '^ *+' conftest.er1 >conftest.err
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } && {
29863 test -z "$ac_c_werror_flag" ||
29864 test ! -s conftest.err
29865 } && test -s conftest$ac_exeext &&
29866 $as_test_x conftest$ac_exeext; then
29867 ac_cv_func_gethostbyname=yes
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 ac_cv_func_gethostbyname=no
29875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29876 conftest$ac_exeext conftest.$ac_ext
29878 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29879 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29881 if test $ac_cv_func_gethostbyname = no; then
29882 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29883 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29884 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29885 echo $ECHO_N "(cached) $ECHO_C" >&6
29887 ac_check_lib_save_LIBS=$LIBS
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29896 /* Override any GCC internal prototype to avoid an error.
29897 Use char because int might match the return type of a GCC
29898 builtin and then its argument prototype would still apply. */
29902 char gethostbyname ();
29906 return gethostbyname ();
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (ac_try="$ac_link"
29913 case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_link") 2>conftest.er1
29920 grep -v '^ *+' conftest.er1 >conftest.err
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); } && {
29925 test -z "$ac_c_werror_flag" ||
29926 test ! -s conftest.err
29927 } && test -s conftest$ac_exeext &&
29928 $as_test_x conftest$ac_exeext; then
29929 ac_cv_lib_nsl_gethostbyname=yes
29931 echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 ac_cv_lib_nsl_gethostbyname=no
29937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938 conftest$ac_exeext conftest.$ac_ext
29939 LIBS=$ac_check_lib_save_LIBS
29941 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29942 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29943 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29944 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29947 if test $ac_cv_lib_nsl_gethostbyname = no; then
29948 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29949 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29950 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29953 ac_check_lib_save_LIBS=$LIBS
29955 cat >conftest.$ac_ext <<_ACEOF
29958 cat confdefs.h >>conftest.$ac_ext
29959 cat >>conftest.$ac_ext <<_ACEOF
29960 /* end confdefs.h. */
29962 /* Override any GCC internal prototype to avoid an error.
29963 Use char because int might match the return type of a GCC
29964 builtin and then its argument prototype would still apply. */
29968 char gethostbyname ();
29972 return gethostbyname ();
29977 rm -f conftest.$ac_objext conftest$ac_exeext
29978 if { (ac_try="$ac_link"
29979 case "(($ac_try" in
29980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981 *) ac_try_echo=$ac_try;;
29983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29984 (eval "$ac_link") 2>conftest.er1
29986 grep -v '^ *+' conftest.er1 >conftest.err
29988 cat conftest.err >&5
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); } && {
29991 test -z "$ac_c_werror_flag" ||
29992 test ! -s conftest.err
29993 } && test -s conftest$ac_exeext &&
29994 $as_test_x conftest$ac_exeext; then
29995 ac_cv_lib_bsd_gethostbyname=yes
29997 echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
30000 ac_cv_lib_bsd_gethostbyname=no
30003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30004 conftest$ac_exeext conftest.$ac_ext
30005 LIBS=$ac_check_lib_save_LIBS
30007 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30008 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30009 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30016 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30017 # socket/setsockopt and other routines are undefined under SCO ODT
30018 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30019 # on later versions), says Simon Leinen: it contains gethostby*
30020 # variants that don't use the name server (or something). -lsocket
30021 # must be given before -lnsl if both are needed. We assume that
30022 # if connect needs -lnsl, so does gethostbyname.
30023 { echo "$as_me:$LINENO: checking for connect" >&5
30024 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30025 if test "${ac_cv_func_connect+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30036 #define connect innocuous_connect
30038 /* System header to define __stub macros and hopefully few prototypes,
30039 which can conflict with char connect (); below.
30040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30041 <limits.h> exists even on freestanding compilers. */
30044 # include <limits.h>
30046 # include <assert.h>
30051 /* Override any GCC internal prototype to avoid an error.
30052 Use char because int might match the return type of a GCC
30053 builtin and then its argument prototype would still apply. */
30058 /* The GNU C library defines this for functions which it implements
30059 to always fail with ENOSYS. Some functions are actually named
30060 something starting with __ and the normal name is an alias. */
30061 #if defined __stub_connect || defined __stub___connect
30073 rm -f conftest.$ac_objext conftest$ac_exeext
30074 if { (ac_try="$ac_link"
30075 case "(($ac_try" in
30076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077 *) ac_try_echo=$ac_try;;
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080 (eval "$ac_link") 2>conftest.er1
30082 grep -v '^ *+' conftest.er1 >conftest.err
30084 cat conftest.err >&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } && {
30087 test -z "$ac_c_werror_flag" ||
30088 test ! -s conftest.err
30089 } && test -s conftest$ac_exeext &&
30090 $as_test_x conftest$ac_exeext; then
30091 ac_cv_func_connect=yes
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30096 ac_cv_func_connect=no
30099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30100 conftest$ac_exeext conftest.$ac_ext
30102 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30103 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30105 if test $ac_cv_func_connect = no; then
30106 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30107 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30108 if test "${ac_cv_lib_socket_connect+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30111 ac_check_lib_save_LIBS=$LIBS
30112 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30120 /* Override any GCC internal prototype to avoid an error.
30121 Use char because int might match the return type of a GCC
30122 builtin and then its argument prototype would still apply. */
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_link") 2>conftest.er1
30144 grep -v '^ *+' conftest.er1 >conftest.err
30146 cat conftest.err >&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } && {
30149 test -z "$ac_c_werror_flag" ||
30150 test ! -s conftest.err
30151 } && test -s conftest$ac_exeext &&
30152 $as_test_x conftest$ac_exeext; then
30153 ac_cv_lib_socket_connect=yes
30155 echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30158 ac_cv_lib_socket_connect=no
30161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30162 conftest$ac_exeext conftest.$ac_ext
30163 LIBS=$ac_check_lib_save_LIBS
30165 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30166 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30167 if test $ac_cv_lib_socket_connect = yes; then
30168 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30173 # Guillermo Gomez says -lposix is necessary on A/UX.
30174 { echo "$as_me:$LINENO: checking for remove" >&5
30175 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30176 if test "${ac_cv_func_remove+set}" = set; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30179 cat >conftest.$ac_ext <<_ACEOF
30182 cat confdefs.h >>conftest.$ac_ext
30183 cat >>conftest.$ac_ext <<_ACEOF
30184 /* end confdefs.h. */
30185 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30187 #define remove innocuous_remove
30189 /* System header to define __stub macros and hopefully few prototypes,
30190 which can conflict with char remove (); below.
30191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30192 <limits.h> exists even on freestanding compilers. */
30195 # include <limits.h>
30197 # include <assert.h>
30202 /* Override any GCC internal prototype to avoid an error.
30203 Use char because int might match the return type of a GCC
30204 builtin and then its argument prototype would still apply. */
30209 /* The GNU C library defines this for functions which it implements
30210 to always fail with ENOSYS. Some functions are actually named
30211 something starting with __ and the normal name is an alias. */
30212 #if defined __stub_remove || defined __stub___remove
30224 rm -f conftest.$ac_objext conftest$ac_exeext
30225 if { (ac_try="$ac_link"
30226 case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_link") 2>conftest.er1
30233 grep -v '^ *+' conftest.er1 >conftest.err
30235 cat conftest.err >&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } && {
30238 test -z "$ac_c_werror_flag" ||
30239 test ! -s conftest.err
30240 } && test -s conftest$ac_exeext &&
30241 $as_test_x conftest$ac_exeext; then
30242 ac_cv_func_remove=yes
30244 echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30247 ac_cv_func_remove=no
30250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30251 conftest$ac_exeext conftest.$ac_ext
30253 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30254 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30256 if test $ac_cv_func_remove = no; then
30257 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30258 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30259 if test "${ac_cv_lib_posix_remove+set}" = set; then
30260 echo $ECHO_N "(cached) $ECHO_C" >&6
30262 ac_check_lib_save_LIBS=$LIBS
30263 LIBS="-lposix $LIBS"
30264 cat >conftest.$ac_ext <<_ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30271 /* Override any GCC internal prototype to avoid an error.
30272 Use char because int might match the return type of a GCC
30273 builtin and then its argument prototype would still apply. */
30286 rm -f conftest.$ac_objext conftest$ac_exeext
30287 if { (ac_try="$ac_link"
30288 case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_link") 2>conftest.er1
30295 grep -v '^ *+' conftest.er1 >conftest.err
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } && {
30300 test -z "$ac_c_werror_flag" ||
30301 test ! -s conftest.err
30302 } && test -s conftest$ac_exeext &&
30303 $as_test_x conftest$ac_exeext; then
30304 ac_cv_lib_posix_remove=yes
30306 echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30309 ac_cv_lib_posix_remove=no
30312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30313 conftest$ac_exeext conftest.$ac_ext
30314 LIBS=$ac_check_lib_save_LIBS
30316 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30317 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30318 if test $ac_cv_lib_posix_remove = yes; then
30319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30324 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30325 { echo "$as_me:$LINENO: checking for shmat" >&5
30326 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30327 if test "${ac_cv_func_shmat+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30338 #define shmat innocuous_shmat
30340 /* System header to define __stub macros and hopefully few prototypes,
30341 which can conflict with char shmat (); below.
30342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30343 <limits.h> exists even on freestanding compilers. */
30346 # include <limits.h>
30348 # include <assert.h>
30353 /* Override any GCC internal prototype to avoid an error.
30354 Use char because int might match the return type of a GCC
30355 builtin and then its argument prototype would still apply. */
30360 /* The GNU C library defines this for functions which it implements
30361 to always fail with ENOSYS. Some functions are actually named
30362 something starting with __ and the normal name is an alias. */
30363 #if defined __stub_shmat || defined __stub___shmat
30375 rm -f conftest.$ac_objext conftest$ac_exeext
30376 if { (ac_try="$ac_link"
30377 case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_link") 2>conftest.er1
30384 grep -v '^ *+' conftest.er1 >conftest.err
30386 cat conftest.err >&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } && {
30389 test -z "$ac_c_werror_flag" ||
30390 test ! -s conftest.err
30391 } && test -s conftest$ac_exeext &&
30392 $as_test_x conftest$ac_exeext; then
30393 ac_cv_func_shmat=yes
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398 ac_cv_func_shmat=no
30401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30402 conftest$ac_exeext conftest.$ac_ext
30404 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30405 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30407 if test $ac_cv_func_shmat = no; then
30408 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30409 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30410 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30411 echo $ECHO_N "(cached) $ECHO_C" >&6
30413 ac_check_lib_save_LIBS=$LIBS
30415 cat >conftest.$ac_ext <<_ACEOF
30418 cat confdefs.h >>conftest.$ac_ext
30419 cat >>conftest.$ac_ext <<_ACEOF
30420 /* end confdefs.h. */
30422 /* Override any GCC internal prototype to avoid an error.
30423 Use char because int might match the return type of a GCC
30424 builtin and then its argument prototype would still apply. */
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438 if { (ac_try="$ac_link"
30439 case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444 (eval "$ac_link") 2>conftest.er1
30446 grep -v '^ *+' conftest.er1 >conftest.err
30448 cat conftest.err >&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } && {
30451 test -z "$ac_c_werror_flag" ||
30452 test ! -s conftest.err
30453 } && test -s conftest$ac_exeext &&
30454 $as_test_x conftest$ac_exeext; then
30455 ac_cv_lib_ipc_shmat=yes
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 ac_cv_lib_ipc_shmat=no
30463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30464 conftest$ac_exeext conftest.$ac_ext
30465 LIBS=$ac_check_lib_save_LIBS
30467 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30468 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30469 if test $ac_cv_lib_ipc_shmat = yes; then
30470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30476 # Check for libraries that X11R6 Xt/Xaw programs need.
30477 ac_save_LDFLAGS=$LDFLAGS
30478 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30479 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30480 # check for ICE first), but we must link in the order -lSM -lICE or
30481 # we get undefined symbols. So assume we have SM if we have ICE.
30482 # These have to be linked with before -lX11, unlike the other
30483 # libraries we check for below, so use a different variable.
30484 # John Interrante, Karl Berry
30485 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30486 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30487 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30490 ac_check_lib_save_LIBS=$LIBS
30491 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30492 cat >conftest.$ac_ext <<_ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h. */
30499 /* Override any GCC internal prototype to avoid an error.
30500 Use char because int might match the return type of a GCC
30501 builtin and then its argument prototype would still apply. */
30505 char IceConnectionNumber ();
30509 return IceConnectionNumber ();
30514 rm -f conftest.$ac_objext conftest$ac_exeext
30515 if { (ac_try="$ac_link"
30516 case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_link") 2>conftest.er1
30523 grep -v '^ *+' conftest.er1 >conftest.err
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } && {
30528 test -z "$ac_c_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest$ac_exeext &&
30531 $as_test_x conftest$ac_exeext; then
30532 ac_cv_lib_ICE_IceConnectionNumber=yes
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 ac_cv_lib_ICE_IceConnectionNumber=no
30540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30541 conftest$ac_exeext conftest.$ac_ext
30542 LIBS=$ac_check_lib_save_LIBS
30544 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30545 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30546 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30547 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30550 LDFLAGS=$ac_save_LDFLAGS
30616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30621 echo $ECHO_N "(cached) $ECHO_C" >&6
30623 ac_res=`eval echo '${'$as_ac_Header'}'`
30624 { echo "$as_me:$LINENO: result: $ac_res" >&5
30625 echo "${ECHO_T}$ac_res" >&6; }
30627 # Is the header compilable?
30628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30630 cat >conftest.$ac_ext <<_ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h. */
30636 $ac_includes_default
30637 #include <$ac_header>
30639 rm -f conftest.$ac_objext
30640 if { (ac_try="$ac_compile"
30641 case "(($ac_try" in
30642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_compile") 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } && {
30653 test -z "$ac_c_werror_flag" ||
30654 test ! -s conftest.err
30655 } && test -s conftest.$ac_objext; then
30656 ac_header_compiler=yes
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 ac_header_compiler=no
30664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30666 echo "${ECHO_T}$ac_header_compiler" >&6; }
30668 # Is the header present?
30669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30671 cat >conftest.$ac_ext <<_ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h. */
30677 #include <$ac_header>
30679 if { (ac_try="$ac_cpp conftest.$ac_ext"
30680 case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30687 grep -v '^ *+' conftest.er1 >conftest.err
30689 cat conftest.err >&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } >/dev/null && {
30692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30693 test ! -s conftest.err
30695 ac_header_preproc=yes
30697 echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.$ac_ext >&5
30700 ac_header_preproc=no
30703 rm -f conftest.err conftest.$ac_ext
30704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30705 echo "${ECHO_T}$ac_header_preproc" >&6; }
30707 # So? What about this header?
30708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30714 ac_header_preproc=yes
30717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30737 eval "$as_ac_Header=\$ac_header_preproc"
30739 ac_res=`eval echo '${'$as_ac_Header'}'`
30740 { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30745 cat >>confdefs.h <<_ACEOF
30746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30753 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30754 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30755 if test "${ac_cv_header_stdc+set}" = set; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30758 cat >conftest.$ac_ext <<_ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h. */
30764 #include <stdlib.h>
30765 #include <stdarg.h>
30766 #include <string.h>
30777 rm -f conftest.$ac_objext
30778 if { (ac_try="$ac_compile"
30779 case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_compile") 2>conftest.er1
30786 grep -v '^ *+' conftest.er1 >conftest.err
30788 cat conftest.err >&5
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } && {
30791 test -z "$ac_c_werror_flag" ||
30792 test ! -s conftest.err
30793 } && test -s conftest.$ac_objext; then
30794 ac_cv_header_stdc=yes
30796 echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 ac_cv_header_stdc=no
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30804 if test $ac_cv_header_stdc = yes; then
30805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30806 cat >conftest.$ac_ext <<_ACEOF
30809 cat confdefs.h >>conftest.$ac_ext
30810 cat >>conftest.$ac_ext <<_ACEOF
30811 /* end confdefs.h. */
30812 #include <string.h>
30815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30816 $EGREP "memchr" >/dev/null 2>&1; then
30819 ac_cv_header_stdc=no
30825 if test $ac_cv_header_stdc = yes; then
30826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30827 cat >conftest.$ac_ext <<_ACEOF
30830 cat confdefs.h >>conftest.$ac_ext
30831 cat >>conftest.$ac_ext <<_ACEOF
30832 /* end confdefs.h. */
30833 #include <stdlib.h>
30836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30837 $EGREP "free" >/dev/null 2>&1; then
30840 ac_cv_header_stdc=no
30846 if test $ac_cv_header_stdc = yes; then
30847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30848 if test "$cross_compiling" = yes; then
30851 cat >conftest.$ac_ext <<_ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h. */
30858 #include <stdlib.h>
30859 #if ((' ' & 0x0FF) == 0x020)
30860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30863 # define ISLOWER(c) \
30864 (('a' <= (c) && (c) <= 'i') \
30865 || ('j' <= (c) && (c) <= 'r') \
30866 || ('s' <= (c) && (c) <= 'z'))
30867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30875 for (i = 0; i < 256; i++)
30876 if (XOR (islower (i), ISLOWER (i))
30877 || toupper (i) != TOUPPER (i))
30882 rm -f conftest$ac_exeext
30883 if { (ac_try="$ac_link"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_link") 2>&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30893 { (case "(($ac_try" in
30894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_try") 2>&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; }; then
30904 echo "$as_me: program exited with status $ac_status" >&5
30905 echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30908 ( exit $ac_status )
30909 ac_cv_header_stdc=no
30911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30919 if test $ac_cv_header_stdc = yes; then
30921 cat >>confdefs.h <<\_ACEOF
30922 #define STDC_HEADERS 1
30927 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30928 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30929 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30932 cat >conftest.$ac_ext <<_ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h. */
30938 #include <sys/types.h>
30942 return makedev(0, 0);
30947 rm -f conftest.$ac_objext conftest$ac_exeext
30948 if { (ac_try="$ac_link"
30949 case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_link") 2>conftest.er1
30956 grep -v '^ *+' conftest.er1 >conftest.err
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } && {
30961 test -z "$ac_c_werror_flag" ||
30962 test ! -s conftest.err
30963 } && test -s conftest$ac_exeext &&
30964 $as_test_x conftest$ac_exeext; then
30965 ac_cv_header_sys_types_h_makedev=yes
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 ac_cv_header_sys_types_h_makedev=no
30973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30974 conftest$ac_exeext conftest.$ac_ext
30977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30978 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30980 if test $ac_cv_header_sys_types_h_makedev = no; then
30981 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30982 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30983 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30984 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30988 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30990 # Is the header compilable?
30991 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30992 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30993 cat >conftest.$ac_ext <<_ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h. */
30999 $ac_includes_default
31000 #include <sys/mkdev.h>
31002 rm -f conftest.$ac_objext
31003 if { (ac_try="$ac_compile"
31004 case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009 (eval "$ac_compile") 2>conftest.er1
31011 grep -v '^ *+' conftest.er1 >conftest.err
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); } && {
31016 test -z "$ac_c_werror_flag" ||
31017 test ! -s conftest.err
31018 } && test -s conftest.$ac_objext; then
31019 ac_header_compiler=yes
31021 echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31024 ac_header_compiler=no
31027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31029 echo "${ECHO_T}$ac_header_compiler" >&6; }
31031 # Is the header present?
31032 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31033 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31034 cat >conftest.$ac_ext <<_ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31040 #include <sys/mkdev.h>
31042 if { (ac_try="$ac_cpp conftest.$ac_ext"
31043 case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31050 grep -v '^ *+' conftest.er1 >conftest.err
31052 cat conftest.err >&5
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); } >/dev/null && {
31055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31056 test ! -s conftest.err
31058 ac_header_preproc=yes
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31063 ac_header_preproc=no
31066 rm -f conftest.err conftest.$ac_ext
31067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31068 echo "${ECHO_T}$ac_header_preproc" >&6; }
31070 # So? What about this header?
31071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31073 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31074 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31075 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31076 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31077 ac_header_preproc=yes
31080 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31081 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31082 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31083 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31084 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31085 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31087 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31088 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31089 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31090 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31091 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31095 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31096 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31106 if test $ac_cv_header_sys_mkdev_h = yes; then
31108 cat >>confdefs.h <<\_ACEOF
31109 #define MAJOR_IN_MKDEV 1
31116 if test $ac_cv_header_sys_mkdev_h = no; then
31117 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31118 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31119 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31120 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31123 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31124 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31126 # Is the header compilable?
31127 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31128 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31129 cat >conftest.$ac_ext <<_ACEOF
31132 cat confdefs.h >>conftest.$ac_ext
31133 cat >>conftest.$ac_ext <<_ACEOF
31134 /* end confdefs.h. */
31135 $ac_includes_default
31136 #include <sys/sysmacros.h>
31138 rm -f conftest.$ac_objext
31139 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
31155 ac_header_compiler=yes
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31160 ac_header_compiler=no
31163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31165 echo "${ECHO_T}$ac_header_compiler" >&6; }
31167 # Is the header present?
31168 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31169 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31170 cat >conftest.$ac_ext <<_ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h. */
31176 #include <sys/sysmacros.h>
31178 if { (ac_try="$ac_cpp conftest.$ac_ext"
31179 case "(($ac_try" in
31180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181 *) ac_try_echo=$ac_try;;
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31186 grep -v '^ *+' conftest.er1 >conftest.err
31188 cat conftest.err >&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } >/dev/null && {
31191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31192 test ! -s conftest.err
31194 ac_header_preproc=yes
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_header_preproc=no
31202 rm -f conftest.err conftest.$ac_ext
31203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31204 echo "${ECHO_T}$ac_header_preproc" >&6; }
31206 # So? What about this header?
31207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31209 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31210 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31211 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31212 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31213 ac_header_preproc=yes
31216 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31217 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31218 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31219 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31220 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31221 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31222 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31223 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31225 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31226 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31227 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31231 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31232 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31233 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31234 echo $ECHO_N "(cached) $ECHO_C" >&6
31236 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31238 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31239 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31242 if test $ac_cv_header_sys_sysmacros_h = yes; then
31244 cat >>confdefs.h <<\_ACEOF
31245 #define MAJOR_IN_SYSMACROS 1
31259 ac_header_dirent=no
31260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31262 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31267 cat >conftest.$ac_ext <<_ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h. */
31273 #include <sys/types.h>
31285 rm -f conftest.$ac_objext
31286 if { (ac_try="$ac_compile"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_compile") 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } && {
31299 test -z "$ac_c_werror_flag" ||
31300 test ! -s conftest.err
31301 } && test -s conftest.$ac_objext; then
31302 eval "$as_ac_Header=yes"
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 eval "$as_ac_Header=no"
31310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31312 ac_res=`eval echo '${'$as_ac_Header'}'`
31313 { echo "$as_me:$LINENO: result: $ac_res" >&5
31314 echo "${ECHO_T}$ac_res" >&6; }
31315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31316 cat >>confdefs.h <<_ACEOF
31317 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31320 ac_header_dirent=$ac_hdr; break
31324 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31325 if test $ac_header_dirent = dirent.h; then
31326 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31328 if test "${ac_cv_search_opendir+set}" = set; then
31329 echo $ECHO_N "(cached) $ECHO_C" >&6
31331 ac_func_search_save_LIBS=$LIBS
31332 cat >conftest.$ac_ext <<_ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h. */
31339 /* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31354 for ac_lib in '' dir; do
31355 if test -z "$ac_lib"; then
31356 ac_res="none required"
31359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368 (eval "$ac_link") 2>conftest.er1
31370 grep -v '^ *+' conftest.er1 >conftest.err
31372 cat conftest.err >&5
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); } && {
31375 test -z "$ac_c_werror_flag" ||
31376 test ! -s conftest.err
31377 } && test -s conftest$ac_exeext &&
31378 $as_test_x conftest$ac_exeext; then
31379 ac_cv_search_opendir=$ac_res
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31389 if test "${ac_cv_search_opendir+set}" = set; then
31393 if test "${ac_cv_search_opendir+set}" = set; then
31396 ac_cv_search_opendir=no
31398 rm conftest.$ac_ext
31399 LIBS=$ac_func_search_save_LIBS
31401 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31402 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31403 ac_res=$ac_cv_search_opendir
31404 if test "$ac_res" != no; then
31405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31410 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31412 if test "${ac_cv_search_opendir+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 ac_func_search_save_LIBS=$LIBS
31416 cat >conftest.$ac_ext <<_ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31423 /* Override any GCC internal prototype to avoid an error.
31424 Use char because int might match the return type of a GCC
31425 builtin and then its argument prototype would still apply. */
31438 for ac_lib in '' x; do
31439 if test -z "$ac_lib"; then
31440 ac_res="none required"
31443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31445 rm -f conftest.$ac_objext conftest$ac_exeext
31446 if { (ac_try="$ac_link"
31447 case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_link") 2>conftest.er1
31454 grep -v '^ *+' conftest.er1 >conftest.err
31456 cat conftest.err >&5
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); } && {
31459 test -z "$ac_c_werror_flag" ||
31460 test ! -s conftest.err
31461 } && test -s conftest$ac_exeext &&
31462 $as_test_x conftest$ac_exeext; then
31463 ac_cv_search_opendir=$ac_res
31465 echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31473 if test "${ac_cv_search_opendir+set}" = set; then
31477 if test "${ac_cv_search_opendir+set}" = set; then
31480 ac_cv_search_opendir=no
31482 rm conftest.$ac_ext
31483 LIBS=$ac_func_search_save_LIBS
31485 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31486 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31487 ac_res=$ac_cv_search_opendir
31488 if test "$ac_res" != no; then
31489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31495 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31496 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31497 if test "${ac_cv_header_stat_broken+set}" = set; then
31498 echo $ECHO_N "(cached) $ECHO_C" >&6
31500 cat >conftest.$ac_ext <<_ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h. */
31506 #include <sys/types.h>
31507 #include <sys/stat.h>
31509 #if defined S_ISBLK && defined S_IFDIR
31510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31513 #if defined S_ISBLK && defined S_IFCHR
31514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31517 #if defined S_ISLNK && defined S_IFREG
31518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31521 #if defined S_ISSOCK && defined S_IFREG
31522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31526 rm -f conftest.$ac_objext
31527 if { (ac_try="$ac_compile"
31528 case "(($ac_try" in
31529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31530 *) ac_try_echo=$ac_try;;
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_compile") 2>conftest.er1
31535 grep -v '^ *+' conftest.er1 >conftest.err
31537 cat conftest.err >&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); } && {
31540 test -z "$ac_c_werror_flag" ||
31541 test ! -s conftest.err
31542 } && test -s conftest.$ac_objext; then
31543 ac_cv_header_stat_broken=no
31545 echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31548 ac_cv_header_stat_broken=yes
31551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31554 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31555 if test $ac_cv_header_stat_broken = yes; then
31557 cat >>confdefs.h <<\_ACEOF
31558 #define STAT_MACROS_BROKEN 1
31563 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31564 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31565 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31568 cat >conftest.$ac_ext <<_ACEOF
31571 cat confdefs.h >>conftest.$ac_ext
31572 cat >>conftest.$ac_ext <<_ACEOF
31573 /* end confdefs.h. */
31574 #include <sys/types.h>
31575 #include <sys/wait.h>
31576 #ifndef WEXITSTATUS
31577 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31580 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31588 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31593 rm -f conftest.$ac_objext
31594 if { (ac_try="$ac_compile"
31595 case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
31602 grep -v '^ *+' conftest.er1 >conftest.err
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } && {
31607 test -z "$ac_c_werror_flag" ||
31608 test ! -s conftest.err
31609 } && test -s conftest.$ac_objext; then
31610 ac_cv_header_sys_wait_h=yes
31612 echo "$as_me: failed program was:" >&5
31613 sed 's/^/| /' conftest.$ac_ext >&5
31615 ac_cv_header_sys_wait_h=no
31618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31620 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31621 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31622 if test $ac_cv_header_sys_wait_h = yes; then
31624 cat >>confdefs.h <<\_ACEOF
31625 #define HAVE_SYS_WAIT_H 1
31630 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31631 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31632 if test "${ac_cv_header_time+set}" = set; then
31633 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 #include <sys/types.h>
31642 #include <sys/time.h>
31648 if ((struct tm *) 0)
31654 rm -f conftest.$ac_objext
31655 if { (ac_try="$ac_compile"
31656 case "(($ac_try" in
31657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31658 *) ac_try_echo=$ac_try;;
31660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31661 (eval "$ac_compile") 2>conftest.er1
31663 grep -v '^ *+' conftest.er1 >conftest.err
31665 cat conftest.err >&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } && {
31668 test -z "$ac_c_werror_flag" ||
31669 test ! -s conftest.err
31670 } && test -s conftest.$ac_objext; then
31671 ac_cv_header_time=yes
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 ac_cv_header_time=no
31679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31681 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31682 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31683 if test $ac_cv_header_time = yes; then
31685 cat >>confdefs.h <<\_ACEOF
31686 #define TIME_WITH_SYS_TIME 1
31691 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31692 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31693 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31696 cat >conftest.$ac_ext <<_ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h. */
31702 $ac_includes_default
31706 static struct stat ac_aggr;
31707 if (ac_aggr.st_blksize)
31713 rm -f conftest.$ac_objext
31714 if { (ac_try="$ac_compile"
31715 case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_compile") 2>conftest.er1
31722 grep -v '^ *+' conftest.er1 >conftest.err
31724 cat conftest.err >&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } && {
31727 test -z "$ac_c_werror_flag" ||
31728 test ! -s conftest.err
31729 } && test -s conftest.$ac_objext; then
31730 ac_cv_member_struct_stat_st_blksize=yes
31732 echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31741 $ac_includes_default
31745 static struct stat ac_aggr;
31746 if (sizeof ac_aggr.st_blksize)
31752 rm -f conftest.$ac_objext
31753 if { (ac_try="$ac_compile"
31754 case "(($ac_try" in
31755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756 *) ac_try_echo=$ac_try;;
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759 (eval "$ac_compile") 2>conftest.er1
31761 grep -v '^ *+' conftest.er1 >conftest.err
31763 cat conftest.err >&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); } && {
31766 test -z "$ac_c_werror_flag" ||
31767 test ! -s conftest.err
31768 } && test -s conftest.$ac_objext; then
31769 ac_cv_member_struct_stat_st_blksize=yes
31771 echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31774 ac_cv_member_struct_stat_st_blksize=no
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31783 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31784 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31786 cat >>confdefs.h <<_ACEOF
31787 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31791 cat >>confdefs.h <<\_ACEOF
31792 #define HAVE_ST_BLKSIZE 1
31798 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31799 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31800 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 cat >conftest.$ac_ext <<_ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31809 $ac_includes_default
31813 static struct stat ac_aggr;
31814 if (ac_aggr.st_blocks)
31820 rm -f conftest.$ac_objext
31821 if { (ac_try="$ac_compile"
31822 case "(($ac_try" in
31823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824 *) ac_try_echo=$ac_try;;
31826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827 (eval "$ac_compile") 2>conftest.er1
31829 grep -v '^ *+' conftest.er1 >conftest.err
31831 cat conftest.err >&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); } && {
31834 test -z "$ac_c_werror_flag" ||
31835 test ! -s conftest.err
31836 } && test -s conftest.$ac_objext; then
31837 ac_cv_member_struct_stat_st_blocks=yes
31839 echo "$as_me: failed program was:" >&5
31840 sed 's/^/| /' conftest.$ac_ext >&5
31842 cat >conftest.$ac_ext <<_ACEOF
31845 cat confdefs.h >>conftest.$ac_ext
31846 cat >>conftest.$ac_ext <<_ACEOF
31847 /* end confdefs.h. */
31848 $ac_includes_default
31852 static struct stat ac_aggr;
31853 if (sizeof ac_aggr.st_blocks)
31859 rm -f conftest.$ac_objext
31860 if { (ac_try="$ac_compile"
31861 case "(($ac_try" in
31862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31863 *) ac_try_echo=$ac_try;;
31865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31866 (eval "$ac_compile") 2>conftest.er1
31868 grep -v '^ *+' conftest.er1 >conftest.err
31870 cat conftest.err >&5
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); } && {
31873 test -z "$ac_c_werror_flag" ||
31874 test ! -s conftest.err
31875 } && test -s conftest.$ac_objext; then
31876 ac_cv_member_struct_stat_st_blocks=yes
31878 echo "$as_me: failed program was:" >&5
31879 sed 's/^/| /' conftest.$ac_ext >&5
31881 ac_cv_member_struct_stat_st_blocks=no
31884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31891 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31893 cat >>confdefs.h <<_ACEOF
31894 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31898 cat >>confdefs.h <<\_ACEOF
31899 #define HAVE_ST_BLOCKS 1
31903 case " $LIBOBJS " in
31904 *" fileblocks.$ac_objext "* ) ;;
31905 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31912 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31913 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31914 if test "${ac_cv_struct_tm+set}" = set; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31917 cat >conftest.$ac_ext <<_ACEOF
31920 cat confdefs.h >>conftest.$ac_ext
31921 cat >>conftest.$ac_ext <<_ACEOF
31922 /* end confdefs.h. */
31923 #include <sys/types.h>
31930 int *p = &tm.tm_sec;
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_compile") 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } && {
31950 test -z "$ac_c_werror_flag" ||
31951 test ! -s conftest.err
31952 } && test -s conftest.$ac_objext; then
31953 ac_cv_struct_tm=time.h
31955 echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31958 ac_cv_struct_tm=sys/time.h
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31964 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31965 if test $ac_cv_struct_tm = sys/time.h; then
31967 cat >>confdefs.h <<\_ACEOF
31968 #define TM_IN_SYS_TIME 1
31973 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31974 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31978 cat >conftest.$ac_ext <<_ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h. */
31984 #include <sys/types.h>
31985 #include <$ac_cv_struct_tm>
31991 static struct tm ac_aggr;
31992 if (ac_aggr.tm_zone)
31998 rm -f conftest.$ac_objext
31999 if { (ac_try="$ac_compile"
32000 case "(($ac_try" in
32001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32002 *) ac_try_echo=$ac_try;;
32004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32005 (eval "$ac_compile") 2>conftest.er1
32007 grep -v '^ *+' conftest.er1 >conftest.err
32009 cat conftest.err >&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); } && {
32012 test -z "$ac_c_werror_flag" ||
32013 test ! -s conftest.err
32014 } && test -s conftest.$ac_objext; then
32015 ac_cv_member_struct_tm_tm_zone=yes
32017 echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32020 cat >conftest.$ac_ext <<_ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h. */
32026 #include <sys/types.h>
32027 #include <$ac_cv_struct_tm>
32033 static struct tm ac_aggr;
32034 if (sizeof ac_aggr.tm_zone)
32040 rm -f conftest.$ac_objext
32041 if { (ac_try="$ac_compile"
32042 case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_compile") 2>conftest.er1
32049 grep -v '^ *+' conftest.er1 >conftest.err
32051 cat conftest.err >&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); } && {
32054 test -z "$ac_c_werror_flag" ||
32055 test ! -s conftest.err
32056 } && test -s conftest.$ac_objext; then
32057 ac_cv_member_struct_tm_tm_zone=yes
32059 echo "$as_me: failed program was:" >&5
32060 sed 's/^/| /' conftest.$ac_ext >&5
32062 ac_cv_member_struct_tm_tm_zone=no
32065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32071 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32072 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32074 cat >>confdefs.h <<_ACEOF
32075 #define HAVE_STRUCT_TM_TM_ZONE 1
32081 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32083 cat >>confdefs.h <<\_ACEOF
32084 #define HAVE_TM_ZONE 1
32088 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32089 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32090 if test "${ac_cv_have_decl_tzname+set}" = set; then
32091 echo $ECHO_N "(cached) $ECHO_C" >&6
32093 cat >conftest.$ac_ext <<_ACEOF
32096 cat confdefs.h >>conftest.$ac_ext
32097 cat >>conftest.$ac_ext <<_ACEOF
32098 /* end confdefs.h. */
32112 rm -f conftest.$ac_objext
32113 if { (ac_try="$ac_compile"
32114 case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_compile") 2>conftest.er1
32121 grep -v '^ *+' conftest.er1 >conftest.err
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } && {
32126 test -z "$ac_c_werror_flag" ||
32127 test ! -s conftest.err
32128 } && test -s conftest.$ac_objext; then
32129 ac_cv_have_decl_tzname=yes
32131 echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32134 ac_cv_have_decl_tzname=no
32137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32140 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32141 if test $ac_cv_have_decl_tzname = yes; then
32143 cat >>confdefs.h <<_ACEOF
32144 #define HAVE_DECL_TZNAME 1
32149 cat >>confdefs.h <<_ACEOF
32150 #define HAVE_DECL_TZNAME 0
32157 { echo "$as_me:$LINENO: checking for tzname" >&5
32158 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32159 if test "${ac_cv_var_tzname+set}" = set; then
32160 echo $ECHO_N "(cached) $ECHO_C" >&6
32162 cat >conftest.$ac_ext <<_ACEOF
32165 cat confdefs.h >>conftest.$ac_ext
32166 cat >>conftest.$ac_ext <<_ACEOF
32167 /* end confdefs.h. */
32169 #if !HAVE_DECL_TZNAME
32170 extern char *tzname[];
32176 return tzname[0][0];
32181 rm -f conftest.$ac_objext conftest$ac_exeext
32182 if { (ac_try="$ac_link"
32183 case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_link") 2>conftest.er1
32190 grep -v '^ *+' conftest.er1 >conftest.err
32192 cat conftest.err >&5
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } && {
32195 test -z "$ac_c_werror_flag" ||
32196 test ! -s conftest.err
32197 } && test -s conftest$ac_exeext &&
32198 $as_test_x conftest$ac_exeext; then
32199 ac_cv_var_tzname=yes
32201 echo "$as_me: failed program was:" >&5
32202 sed 's/^/| /' conftest.$ac_ext >&5
32204 ac_cv_var_tzname=no
32207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32208 conftest$ac_exeext conftest.$ac_ext
32210 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32211 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32212 if test $ac_cv_var_tzname = yes; then
32214 cat >>confdefs.h <<\_ACEOF
32215 #define HAVE_TZNAME 1
32222 { echo "$as_me:$LINENO: checking for utime.h" >&5
32223 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32224 if test "${ba_cv_header_utime_h+set}" = set; then
32225 echo $ECHO_N "(cached) $ECHO_C" >&6
32228 cat >conftest.$ac_ext <<_ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h. */
32235 #include <sys/types.h>
32248 rm -f conftest.$ac_objext
32249 if { (ac_try="$ac_compile"
32250 case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_compile") 2>conftest.er1
32257 grep -v '^ *+' conftest.er1 >conftest.err
32259 cat conftest.err >&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } && {
32262 test -z "$ac_c_werror_flag" ||
32263 test ! -s conftest.err
32264 } && test -s conftest.$ac_objext; then
32266 ba_cv_header_utime_h=yes
32269 echo "$as_me: failed program was:" >&5
32270 sed 's/^/| /' conftest.$ac_ext >&5
32273 ba_cv_header_utime_h=no
32278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32283 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32284 test $ba_cv_header_utime_h = yes &&
32285 cat >>confdefs.h <<\_ACEOF
32286 #define HAVE_UTIME_H 1
32290 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32291 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32292 if test "${ba_cv_header_socklen_t+set}" = set; then
32293 echo $ECHO_N "(cached) $ECHO_C" >&6
32296 cat >conftest.$ac_ext <<_ACEOF
32299 cat confdefs.h >>conftest.$ac_ext
32300 cat >>conftest.$ac_ext <<_ACEOF
32301 /* end confdefs.h. */
32303 #include <sys/types.h>
32304 #include <sys/socket.h>
32316 rm -f conftest.$ac_objext
32317 if { (ac_try="$ac_compile"
32318 case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_compile") 2>conftest.er1
32325 grep -v '^ *+' conftest.er1 >conftest.err
32327 cat conftest.err >&5
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } && {
32330 test -z "$ac_c_werror_flag" ||
32331 test ! -s conftest.err
32332 } && test -s conftest.$ac_objext; then
32334 ba_cv_header_socklen_t=yes
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32341 ba_cv_header_socklen_t=no
32346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32350 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32351 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32352 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32353 #define HAVE_SOCKLEN_T 1
32357 { echo "$as_me:$LINENO: checking for bigendian" >&5
32358 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32359 if test "${ba_cv_bigendian+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32363 if test "$cross_compiling" = yes; then
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32376 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32379 rm -f conftest$ac_exeext
32380 if { (ac_try="$ac_link"
32381 case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_link") 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32390 { (case "(($ac_try" in
32391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32392 *) ac_try_echo=$ac_try;;
32394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395 (eval "$ac_try") 2>&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; }; then
32400 ba_cv_bigendian=yes
32403 echo "$as_me: program exited with status $ac_status" >&5
32404 echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32407 ( exit $ac_status )
32412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32419 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32420 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32421 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32422 #define HAVE_BIGENDIAN 1
32427 ac_cpp='$CXXCPP $CPPFLAGS'
32428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32432 { echo "$as_me:$LINENO: checking for typeof" >&5
32433 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32434 if test "${ba_cv_have_typeof+set}" = set; then
32435 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 if test "$cross_compiling" = yes; then
32440 ba_cv_have_typeof=no
32444 cat >conftest.$ac_ext <<_ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h. */
32451 main(){char *a = 0; a = (typeof a)a;}
32454 rm -f conftest$ac_exeext
32455 if { (ac_try="$ac_link"
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_link") 2>&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32465 { (case "(($ac_try" in
32466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467 *) ac_try_echo=$ac_try;;
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_try") 2>&5
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; }; then
32475 ba_cv_have_typeof=yes
32478 echo "$as_me: program exited with status $ac_status" >&5
32479 echo "$as_me: failed program was:" >&5
32480 sed 's/^/| /' conftest.$ac_ext >&5
32482 ( exit $ac_status )
32484 ba_cv_have_typeof=no
32487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32494 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32495 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32496 test $ba_cv_have_typeof = yes &&
32497 cat >>confdefs.h <<\_ACEOF
32498 #define HAVE_TYPEOF 1
32502 ac_cpp='$CPP $CPPFLAGS'
32503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32508 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32509 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32510 if test "${ac_cv_c_const+set}" = set; then
32511 echo $ECHO_N "(cached) $ECHO_C" >&6
32513 cat >conftest.$ac_ext <<_ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h. */
32523 /* FIXME: Include the comments suggested by Paul. */
32524 #ifndef __cplusplus
32525 /* Ultrix mips cc rejects this. */
32526 typedef int charset[2];
32528 /* SunOS 4.1.1 cc rejects this. */
32529 char const *const *pcpcc;
32531 /* NEC SVR4.0.2 mips cc rejects this. */
32532 struct point {int x, y;};
32533 static struct point const zero = {0,0};
32534 /* AIX XL C 1.02.0.0 rejects this.
32535 It does not let you subtract one const X* pointer from another in
32536 an arm of an if-expression whose if-part is not a constant
32538 const char *g = "string";
32539 pcpcc = &g + (g ? g-g : 0);
32540 /* HPUX 7.0 cc rejects these. */
32542 ppc = (char**) pcpcc;
32543 pcpcc = (char const *const *) ppc;
32544 { /* SCO 3.2v4 cc rejects this. */
32546 char const *s = 0 ? (char *) 0 : (char const *) 0;
32551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32552 int x[] = {25, 17};
32553 const int *foo = &x[0];
32556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32557 typedef const int *iptr;
32561 { /* AIX XL C 1.02.0.0 rejects this saying
32562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32563 struct s { int j; const int *ap[3]; };
32564 struct s *b; b->j = 5;
32566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32567 const int foo = 10;
32568 if (!foo) return 0;
32570 return !cs[0] && !zero.x;
32577 rm -f conftest.$ac_objext
32578 if { (ac_try="$ac_compile"
32579 case "(($ac_try" in
32580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 *) ac_try_echo=$ac_try;;
32583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584 (eval "$ac_compile") 2>conftest.er1
32586 grep -v '^ *+' conftest.er1 >conftest.err
32588 cat conftest.err >&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } && {
32591 test -z "$ac_c_werror_flag" ||
32592 test ! -s conftest.err
32593 } && test -s conftest.$ac_objext; then
32596 echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32605 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32606 if test $ac_cv_c_const = no; then
32608 cat >>confdefs.h <<\_ACEOF
32615 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32616 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32618 # The order of these tests is important.
32619 cat >conftest.$ac_ext <<_ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32626 #include <sys/statvfs.h>
32627 #include <sys/fstyp.h>
32630 if { (ac_try="$ac_cpp conftest.$ac_ext"
32631 case "(($ac_try" in
32632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32633 *) ac_try_echo=$ac_try;;
32635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32638 grep -v '^ *+' conftest.er1 >conftest.err
32640 cat conftest.err >&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } >/dev/null && {
32643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32644 test ! -s conftest.err
32646 cat >>confdefs.h <<\_ACEOF
32647 #define FSTYPE_STATVFS 1
32652 echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.$ac_ext >&5
32658 rm -f conftest.err conftest.$ac_ext
32659 if test $fstype = no; then
32660 cat >conftest.$ac_ext <<_ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32667 #include <sys/statfs.h>
32668 #include <sys/fstyp.h>
32671 if { (ac_try="$ac_cpp conftest.$ac_ext"
32672 case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32679 grep -v '^ *+' conftest.er1 >conftest.err
32681 cat conftest.err >&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); } >/dev/null && {
32684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32685 test ! -s conftest.err
32687 cat >>confdefs.h <<\_ACEOF
32688 #define FSTYPE_USG_STATFS 1
32693 echo "$as_me: failed program was:" >&5
32694 sed 's/^/| /' conftest.$ac_ext >&5
32699 rm -f conftest.err conftest.$ac_ext
32701 if test $fstype = no; then
32702 cat >conftest.$ac_ext <<_ACEOF
32705 cat confdefs.h >>conftest.$ac_ext
32706 cat >>conftest.$ac_ext <<_ACEOF
32707 /* end confdefs.h. */
32709 #include <sys/statfs.h>
32710 #include <sys/vmount.h>
32713 if { (ac_try="$ac_cpp conftest.$ac_ext"
32714 case "(($ac_try" in
32715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32716 *) ac_try_echo=$ac_try;;
32718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32721 grep -v '^ *+' conftest.er1 >conftest.err
32723 cat conftest.err >&5
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); } >/dev/null && {
32726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32727 test ! -s conftest.err
32729 cat >>confdefs.h <<\_ACEOF
32730 #define FSTYPE_AIX_STATFS 1
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32741 rm -f conftest.err conftest.$ac_ext
32743 if test $fstype = no; then
32744 cat >conftest.$ac_ext <<_ACEOF
32747 cat confdefs.h >>conftest.$ac_ext
32748 cat >>conftest.$ac_ext <<_ACEOF
32749 /* end confdefs.h. */
32751 #include <mntent.h>
32754 if { (ac_try="$ac_cpp conftest.$ac_ext"
32755 case "(($ac_try" in
32756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32757 *) ac_try_echo=$ac_try;;
32759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32762 grep -v '^ *+' conftest.er1 >conftest.err
32764 cat conftest.err >&5
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); } >/dev/null && {
32767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32768 test ! -s conftest.err
32770 cat >>confdefs.h <<\_ACEOF
32771 #define FSTYPE_MNTENT 1
32776 echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32782 rm -f conftest.err conftest.$ac_ext
32784 if test $fstype = no; then
32785 cat >conftest.$ac_ext <<_ACEOF
32788 cat confdefs.h >>conftest.$ac_ext
32789 cat >>conftest.$ac_ext <<_ACEOF
32790 /* end confdefs.h. */
32791 #include <sys/mount.h>
32794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32795 $EGREP "f_type;" >/dev/null 2>&1; then
32796 cat >>confdefs.h <<\_ACEOF
32797 #define FSTYPE_STATFS 1
32804 if test $fstype = no; then
32805 cat >conftest.$ac_ext <<_ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32812 #include <sys/mount.h>
32813 #include <sys/fs_types.h>
32816 if { (ac_try="$ac_cpp conftest.$ac_ext"
32817 case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32824 grep -v '^ *+' conftest.er1 >conftest.err
32826 cat conftest.err >&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } >/dev/null && {
32829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32830 test ! -s conftest.err
32832 cat >>confdefs.h <<\_ACEOF
32833 #define FSTYPE_GETMNT 1
32838 echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32844 rm -f conftest.err conftest.$ac_ext
32846 { echo "$as_me:$LINENO: result: $fstype" >&5
32847 echo "${ECHO_T}$fstype" >&6; }
32849 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32850 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32851 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32852 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32856 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32858 # Is the header compilable?
32859 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32860 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32861 cat >conftest.$ac_ext <<_ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32868 #include <sys/statvfs.h>
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32879 grep -v '^ *+' conftest.er1 >conftest.err
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } && {
32884 test -z "$ac_c_werror_flag" ||
32885 test ! -s conftest.err
32886 } && test -s conftest.$ac_objext; then
32887 ac_header_compiler=yes
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32892 ac_header_compiler=no
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32897 echo "${ECHO_T}$ac_header_compiler" >&6; }
32899 # Is the header present?
32900 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32901 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32902 cat >conftest.$ac_ext <<_ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 #include <sys/statvfs.h>
32910 if { (ac_try="$ac_cpp conftest.$ac_ext"
32911 case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32918 grep -v '^ *+' conftest.er1 >conftest.err
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } >/dev/null && {
32923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32926 ac_header_preproc=yes
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_header_preproc=no
32934 rm -f conftest.err conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32936 echo "${ECHO_T}$ac_header_preproc" >&6; }
32938 # So? What about this header?
32939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32941 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32942 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32943 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32944 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32945 ac_header_preproc=yes
32948 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32949 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32950 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32951 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32952 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32953 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32954 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32955 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32956 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32957 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32958 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32959 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32963 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32964 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32965 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32966 echo $ECHO_N "(cached) $ECHO_C" >&6
32968 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32970 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32971 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32974 if test $ac_cv_header_sys_statvfs_h = yes; then
32976 cat >>confdefs.h <<\_ACEOF
32977 #define HAVE_SYS_STATVFS_H 1
32984 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32985 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32986 if test "${ac_cv_type_signal+set}" = set; then
32987 echo $ECHO_N "(cached) $ECHO_C" >&6
32989 cat >conftest.$ac_ext <<_ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32995 #include <sys/types.h>
32996 #include <signal.h>
33001 return *(signal (0, 0)) (0) == 1;
33006 rm -f conftest.$ac_objext
33007 if { (ac_try="$ac_compile"
33008 case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_compile") 2>conftest.er1
33015 grep -v '^ *+' conftest.er1 >conftest.err
33017 cat conftest.err >&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); } && {
33020 test -z "$ac_c_werror_flag" ||
33021 test ! -s conftest.err
33022 } && test -s conftest.$ac_objext; then
33023 ac_cv_type_signal=int
33025 echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33028 ac_cv_type_signal=void
33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33033 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33034 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33036 cat >>confdefs.h <<_ACEOF
33037 #define RETSIGTYPE $ac_cv_type_signal
33042 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33043 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33044 if test "${bash_cv_signal_vintage+set}" = set; then
33045 echo $ECHO_N "(cached) $ECHO_C" >&6
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 #include <signal.h>
33060 struct sigaction sa;
33061 sigemptyset(&ss); sigsuspend(&ss);
33062 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33063 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33069 rm -f conftest.$ac_objext conftest$ac_exeext
33070 if { (ac_try="$ac_link"
33071 case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_link") 2>conftest.er1
33078 grep -v '^ *+' conftest.er1 >conftest.err
33080 cat conftest.err >&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); } && {
33083 test -z "$ac_c_werror_flag" ||
33084 test ! -s conftest.err
33085 } && test -s conftest$ac_exeext &&
33086 $as_test_x conftest$ac_exeext; then
33087 bash_cv_signal_vintage="posix"
33089 echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33093 cat >conftest.$ac_ext <<_ACEOF
33096 cat confdefs.h >>conftest.$ac_ext
33097 cat >>conftest.$ac_ext <<_ACEOF
33098 /* end confdefs.h. */
33099 #include <signal.h>
33104 int mask = sigmask(SIGINT);
33105 sigsetmask(mask); sigblock(mask); sigpause(mask);
33111 rm -f conftest.$ac_objext conftest$ac_exeext
33112 if { (ac_try="$ac_link"
33113 case "(($ac_try" in
33114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115 *) ac_try_echo=$ac_try;;
33117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33118 (eval "$ac_link") 2>conftest.er1
33120 grep -v '^ *+' conftest.er1 >conftest.err
33122 cat conftest.err >&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); } && {
33125 test -z "$ac_c_werror_flag" ||
33126 test ! -s conftest.err
33127 } && test -s conftest$ac_exeext &&
33128 $as_test_x conftest$ac_exeext; then
33129 bash_cv_signal_vintage="4.2bsd"
33131 echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33135 cat >conftest.$ac_ext <<_ACEOF
33138 cat confdefs.h >>conftest.$ac_ext
33139 cat >>conftest.$ac_ext <<_ACEOF
33140 /* end confdefs.h. */
33142 #include <signal.h>
33143 RETSIGTYPE foo() { }
33148 int mask = sigmask(SIGINT);
33149 sigset(SIGINT, foo); sigrelse(SIGINT);
33150 sighold(SIGINT); sigpause(SIGINT);
33156 rm -f conftest.$ac_objext conftest$ac_exeext
33157 if { (ac_try="$ac_link"
33158 case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_link") 2>conftest.er1
33165 grep -v '^ *+' conftest.er1 >conftest.err
33167 cat conftest.err >&5
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); } && {
33170 test -z "$ac_c_werror_flag" ||
33171 test ! -s conftest.err
33172 } && test -s conftest$ac_exeext &&
33173 $as_test_x conftest$ac_exeext; then
33174 bash_cv_signal_vintage="svr3"
33176 echo "$as_me: failed program was:" >&5
33177 sed 's/^/| /' conftest.$ac_ext >&5
33179 bash_cv_signal_vintage="v7"
33183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33184 conftest$ac_exeext conftest.$ac_ext
33188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33189 conftest$ac_exeext conftest.$ac_ext
33193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33194 conftest$ac_exeext conftest.$ac_ext
33198 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33199 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33200 if test "$bash_cv_signal_vintage" = "posix"; then
33201 cat >>confdefs.h <<\_ACEOF
33202 #define HAVE_POSIX_SIGNALS 1
33205 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33206 cat >>confdefs.h <<\_ACEOF
33207 #define HAVE_BSD_SIGNALS 1
33210 elif test "$bash_cv_signal_vintage" = "svr3"; then
33211 cat >>confdefs.h <<\_ACEOF
33212 #define HAVE_USG_SIGHOLD 1
33217 { echo "$as_me:$LINENO: checking for mode_t" >&5
33218 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33219 if test "${ac_cv_type_mode_t+set}" = set; then
33220 echo $ECHO_N "(cached) $ECHO_C" >&6
33222 cat >conftest.$ac_ext <<_ACEOF
33225 cat confdefs.h >>conftest.$ac_ext
33226 cat >>conftest.$ac_ext <<_ACEOF
33227 /* end confdefs.h. */
33228 $ac_includes_default
33229 typedef mode_t ac__type_new_;
33233 if ((ac__type_new_ *) 0)
33235 if (sizeof (ac__type_new_))
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33250 grep -v '^ *+' conftest.er1 >conftest.err
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } && {
33255 test -z "$ac_c_werror_flag" ||
33256 test ! -s conftest.err
33257 } && test -s conftest.$ac_objext; then
33258 ac_cv_type_mode_t=yes
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33263 ac_cv_type_mode_t=no
33266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33269 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33270 if test $ac_cv_type_mode_t = yes; then
33274 cat >>confdefs.h <<_ACEOF
33280 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33281 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33282 if test "${ac_cv_type_uid_t+set}" = set; then
33283 echo $ECHO_N "(cached) $ECHO_C" >&6
33285 cat >conftest.$ac_ext <<_ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h. */
33291 #include <sys/types.h>
33294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33295 $EGREP "uid_t" >/dev/null 2>&1; then
33296 ac_cv_type_uid_t=yes
33298 ac_cv_type_uid_t=no
33303 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33304 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33305 if test $ac_cv_type_uid_t = no; then
33307 cat >>confdefs.h <<\_ACEOF
33312 cat >>confdefs.h <<\_ACEOF
33318 { echo "$as_me:$LINENO: checking for size_t" >&5
33319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33320 if test "${ac_cv_type_size_t+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33323 cat >conftest.$ac_ext <<_ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h. */
33329 $ac_includes_default
33330 typedef size_t ac__type_new_;
33334 if ((ac__type_new_ *) 0)
33336 if (sizeof (ac__type_new_))
33342 rm -f conftest.$ac_objext
33343 if { (ac_try="$ac_compile"
33344 case "(($ac_try" in
33345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346 *) ac_try_echo=$ac_try;;
33348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33349 (eval "$ac_compile") 2>conftest.er1
33351 grep -v '^ *+' conftest.er1 >conftest.err
33353 cat conftest.err >&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } && {
33356 test -z "$ac_c_werror_flag" ||
33357 test ! -s conftest.err
33358 } && test -s conftest.$ac_objext; then
33359 ac_cv_type_size_t=yes
33361 echo "$as_me: failed program was:" >&5
33362 sed 's/^/| /' conftest.$ac_ext >&5
33364 ac_cv_type_size_t=no
33367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33370 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33371 if test $ac_cv_type_size_t = yes; then
33375 cat >>confdefs.h <<_ACEOF
33376 #define size_t unsigned int
33381 { echo "$as_me:$LINENO: checking for pid_t" >&5
33382 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33383 if test "${ac_cv_type_pid_t+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33386 cat >conftest.$ac_ext <<_ACEOF
33389 cat confdefs.h >>conftest.$ac_ext
33390 cat >>conftest.$ac_ext <<_ACEOF
33391 /* end confdefs.h. */
33392 $ac_includes_default
33393 typedef pid_t ac__type_new_;
33397 if ((ac__type_new_ *) 0)
33399 if (sizeof (ac__type_new_))
33405 rm -f conftest.$ac_objext
33406 if { (ac_try="$ac_compile"
33407 case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_compile") 2>conftest.er1
33414 grep -v '^ *+' conftest.er1 >conftest.err
33416 cat conftest.err >&5
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } && {
33419 test -z "$ac_c_werror_flag" ||
33420 test ! -s conftest.err
33421 } && test -s conftest.$ac_objext; then
33422 ac_cv_type_pid_t=yes
33424 echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33427 ac_cv_type_pid_t=no
33430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33433 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33434 if test $ac_cv_type_pid_t = yes; then
33438 cat >>confdefs.h <<_ACEOF
33444 { echo "$as_me:$LINENO: checking for off_t" >&5
33445 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33446 if test "${ac_cv_type_off_t+set}" = set; then
33447 echo $ECHO_N "(cached) $ECHO_C" >&6
33449 cat >conftest.$ac_ext <<_ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h. */
33455 $ac_includes_default
33456 typedef off_t ac__type_new_;
33460 if ((ac__type_new_ *) 0)
33462 if (sizeof (ac__type_new_))
33468 rm -f conftest.$ac_objext
33469 if { (ac_try="$ac_compile"
33470 case "(($ac_try" in
33471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472 *) ac_try_echo=$ac_try;;
33474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33475 (eval "$ac_compile") 2>conftest.er1
33477 grep -v '^ *+' conftest.er1 >conftest.err
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } && {
33482 test -z "$ac_c_werror_flag" ||
33483 test ! -s conftest.err
33484 } && test -s conftest.$ac_objext; then
33485 ac_cv_type_off_t=yes
33487 echo "$as_me: failed program was:" >&5
33488 sed 's/^/| /' conftest.$ac_ext >&5
33490 ac_cv_type_off_t=no
33493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33495 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33496 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33497 if test $ac_cv_type_off_t = yes; then
33501 cat >>confdefs.h <<_ACEOF
33502 #define off_t long int
33508 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33509 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33510 if test "${ac_cv_type_intptr_t+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33513 cat >conftest.$ac_ext <<_ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h. */
33519 $ac_includes_default
33520 typedef intptr_t ac__type_new_;
33524 if ((ac__type_new_ *) 0)
33526 if (sizeof (ac__type_new_))
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } && {
33546 test -z "$ac_c_werror_flag" ||
33547 test ! -s conftest.err
33548 } && test -s conftest.$ac_objext; then
33549 ac_cv_type_intptr_t=yes
33551 echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33554 ac_cv_type_intptr_t=no
33557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33559 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33560 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33561 if test $ac_cv_type_intptr_t = yes; then
33563 cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_INTPTR_T 1
33568 for ac_type in 'int' 'long int' 'long long int'; do
33569 cat >conftest.$ac_ext <<_ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 $ac_includes_default
33579 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33586 rm -f conftest.$ac_objext
33587 if { (ac_try="$ac_compile"
33588 case "(($ac_try" in
33589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33590 *) ac_try_echo=$ac_try;;
33592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33593 (eval "$ac_compile") 2>conftest.er1
33595 grep -v '^ *+' conftest.er1 >conftest.err
33597 cat conftest.err >&5
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } && {
33600 test -z "$ac_c_werror_flag" ||
33601 test ! -s conftest.err
33602 } && test -s conftest.$ac_objext; then
33604 cat >>confdefs.h <<_ACEOF
33605 #define intptr_t $ac_type
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33617 test -z "$ac_type" && break
33623 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33624 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33625 if test "${ac_cv_type_uintptr_t+set}" = set; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 cat >conftest.$ac_ext <<_ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 $ac_includes_default
33635 typedef uintptr_t ac__type_new_;
33639 if ((ac__type_new_ *) 0)
33641 if (sizeof (ac__type_new_))
33647 rm -f conftest.$ac_objext
33648 if { (ac_try="$ac_compile"
33649 case "(($ac_try" in
33650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33651 *) ac_try_echo=$ac_try;;
33653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33654 (eval "$ac_compile") 2>conftest.er1
33656 grep -v '^ *+' conftest.er1 >conftest.err
33658 cat conftest.err >&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } && {
33661 test -z "$ac_c_werror_flag" ||
33662 test ! -s conftest.err
33663 } && test -s conftest.$ac_objext; then
33664 ac_cv_type_uintptr_t=yes
33666 echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33669 ac_cv_type_uintptr_t=no
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33674 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33675 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33676 if test $ac_cv_type_uintptr_t = yes; then
33678 cat >>confdefs.h <<\_ACEOF
33679 #define HAVE_UINTPTR_T 1
33683 for ac_type in 'unsigned int' 'unsigned long int' \
33684 'unsigned long long int'; do
33685 cat >conftest.$ac_ext <<_ACEOF
33688 cat confdefs.h >>conftest.$ac_ext
33689 cat >>conftest.$ac_ext <<_ACEOF
33690 /* end confdefs.h. */
33691 $ac_includes_default
33695 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33702 rm -f conftest.$ac_objext
33703 if { (ac_try="$ac_compile"
33704 case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_compile") 2>conftest.er1
33711 grep -v '^ *+' conftest.er1 >conftest.err
33713 cat conftest.err >&5
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } && {
33716 test -z "$ac_c_werror_flag" ||
33717 test ! -s conftest.err
33718 } && test -s conftest.$ac_objext; then
33720 cat >>confdefs.h <<_ACEOF
33721 #define uintptr_t $ac_type
33726 echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33733 test -z "$ac_type" && break
33738 { echo "$as_me:$LINENO: checking for ino_t" >&5
33739 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33740 if test "${ac_cv_type_ino_t+set}" = set; then
33741 echo $ECHO_N "(cached) $ECHO_C" >&6
33743 cat >conftest.$ac_ext <<_ACEOF
33746 cat confdefs.h >>conftest.$ac_ext
33747 cat >>conftest.$ac_ext <<_ACEOF
33748 /* end confdefs.h. */
33749 $ac_includes_default
33750 typedef ino_t ac__type_new_;
33754 if ((ac__type_new_ *) 0)
33756 if (sizeof (ac__type_new_))
33762 rm -f conftest.$ac_objext
33763 if { (ac_try="$ac_compile"
33764 case "(($ac_try" in
33765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33766 *) ac_try_echo=$ac_try;;
33768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33769 (eval "$ac_compile") 2>conftest.er1
33771 grep -v '^ *+' conftest.er1 >conftest.err
33773 cat conftest.err >&5
33774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); } && {
33776 test -z "$ac_c_werror_flag" ||
33777 test ! -s conftest.err
33778 } && test -s conftest.$ac_objext; then
33779 ac_cv_type_ino_t=yes
33781 echo "$as_me: failed program was:" >&5
33782 sed 's/^/| /' conftest.$ac_ext >&5
33784 ac_cv_type_ino_t=no
33787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33789 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33790 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33791 if test $ac_cv_type_ino_t = yes; then
33795 cat >>confdefs.h <<_ACEOF
33796 #define ino_t unsigned long
33801 { echo "$as_me:$LINENO: checking for dev_t" >&5
33802 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33803 if test "${ac_cv_type_dev_t+set}" = set; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33806 cat >conftest.$ac_ext <<_ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812 $ac_includes_default
33813 typedef dev_t ac__type_new_;
33817 if ((ac__type_new_ *) 0)
33819 if (sizeof (ac__type_new_))
33825 rm -f conftest.$ac_objext
33826 if { (ac_try="$ac_compile"
33827 case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_compile") 2>conftest.er1
33834 grep -v '^ *+' conftest.er1 >conftest.err
33836 cat conftest.err >&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } && {
33839 test -z "$ac_c_werror_flag" ||
33840 test ! -s conftest.err
33841 } && test -s conftest.$ac_objext; then
33842 ac_cv_type_dev_t=yes
33844 echo "$as_me: failed program was:" >&5
33845 sed 's/^/| /' conftest.$ac_ext >&5
33847 ac_cv_type_dev_t=no
33850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33852 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33853 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33854 if test $ac_cv_type_dev_t = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859 #define dev_t unsigned long
33864 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33865 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33866 if test "${ac_cv_type_daddr_t+set}" = set; then
33867 echo $ECHO_N "(cached) $ECHO_C" >&6
33869 cat >conftest.$ac_ext <<_ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h. */
33875 $ac_includes_default
33876 typedef daddr_t ac__type_new_;
33880 if ((ac__type_new_ *) 0)
33882 if (sizeof (ac__type_new_))
33888 rm -f conftest.$ac_objext
33889 if { (ac_try="$ac_compile"
33890 case "(($ac_try" in
33891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33892 *) ac_try_echo=$ac_try;;
33894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33895 (eval "$ac_compile") 2>conftest.er1
33897 grep -v '^ *+' conftest.er1 >conftest.err
33899 cat conftest.err >&5
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); } && {
33902 test -z "$ac_c_werror_flag" ||
33903 test ! -s conftest.err
33904 } && test -s conftest.$ac_objext; then
33905 ac_cv_type_daddr_t=yes
33907 echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.$ac_ext >&5
33910 ac_cv_type_daddr_t=no
33913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33916 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33917 if test $ac_cv_type_daddr_t = yes; then
33921 cat >>confdefs.h <<_ACEOF
33922 #define daddr_t long
33927 { echo "$as_me:$LINENO: checking for major_t" >&5
33928 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33929 if test "${ac_cv_type_major_t+set}" = set; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33932 cat >conftest.$ac_ext <<_ACEOF
33935 cat confdefs.h >>conftest.$ac_ext
33936 cat >>conftest.$ac_ext <<_ACEOF
33937 /* end confdefs.h. */
33938 $ac_includes_default
33939 typedef major_t ac__type_new_;
33943 if ((ac__type_new_ *) 0)
33945 if (sizeof (ac__type_new_))
33951 rm -f conftest.$ac_objext
33952 if { (ac_try="$ac_compile"
33953 case "(($ac_try" in
33954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955 *) ac_try_echo=$ac_try;;
33957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33958 (eval "$ac_compile") 2>conftest.er1
33960 grep -v '^ *+' conftest.er1 >conftest.err
33962 cat conftest.err >&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } && {
33965 test -z "$ac_c_werror_flag" ||
33966 test ! -s conftest.err
33967 } && test -s conftest.$ac_objext; then
33968 ac_cv_type_major_t=yes
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33973 ac_cv_type_major_t=no
33976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33978 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33979 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33980 if test $ac_cv_type_major_t = yes; then
33984 cat >>confdefs.h <<_ACEOF
33985 #define major_t int
33990 { echo "$as_me:$LINENO: checking for minor_t" >&5
33991 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33992 if test "${ac_cv_type_minor_t+set}" = set; then
33993 echo $ECHO_N "(cached) $ECHO_C" >&6
33995 cat >conftest.$ac_ext <<_ACEOF
33998 cat confdefs.h >>conftest.$ac_ext
33999 cat >>conftest.$ac_ext <<_ACEOF
34000 /* end confdefs.h. */
34001 $ac_includes_default
34002 typedef minor_t ac__type_new_;
34006 if ((ac__type_new_ *) 0)
34008 if (sizeof (ac__type_new_))
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_compile") 2>conftest.er1
34023 grep -v '^ *+' conftest.er1 >conftest.err
34025 cat conftest.err >&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } && {
34028 test -z "$ac_c_werror_flag" ||
34029 test ! -s conftest.err
34030 } && test -s conftest.$ac_objext; then
34031 ac_cv_type_minor_t=yes
34033 echo "$as_me: failed program was:" >&5
34034 sed 's/^/| /' conftest.$ac_ext >&5
34036 ac_cv_type_minor_t=no
34039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34041 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34042 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34043 if test $ac_cv_type_minor_t = yes; then
34047 cat >>confdefs.h <<_ACEOF
34048 #define minor_t int
34053 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34054 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34055 if test "${ac_cv_type_ssize_t+set}" = set; then
34056 echo $ECHO_N "(cached) $ECHO_C" >&6
34058 cat >conftest.$ac_ext <<_ACEOF
34061 cat confdefs.h >>conftest.$ac_ext
34062 cat >>conftest.$ac_ext <<_ACEOF
34063 /* end confdefs.h. */
34064 $ac_includes_default
34065 typedef ssize_t ac__type_new_;
34069 if ((ac__type_new_ *) 0)
34071 if (sizeof (ac__type_new_))
34077 rm -f conftest.$ac_objext
34078 if { (ac_try="$ac_compile"
34079 case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_compile") 2>conftest.er1
34086 grep -v '^ *+' conftest.er1 >conftest.err
34088 cat conftest.err >&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); } && {
34091 test -z "$ac_c_werror_flag" ||
34092 test ! -s conftest.err
34093 } && test -s conftest.$ac_objext; then
34094 ac_cv_type_ssize_t=yes
34096 echo "$as_me: failed program was:" >&5
34097 sed 's/^/| /' conftest.$ac_ext >&5
34099 ac_cv_type_ssize_t=no
34102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34104 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34105 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34106 if test $ac_cv_type_ssize_t = yes; then
34110 cat >>confdefs.h <<_ACEOF
34111 #define ssize_t int
34116 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34117 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34118 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34119 echo $ECHO_N "(cached) $ECHO_C" >&6
34121 cat >conftest.$ac_ext <<_ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h. */
34127 $ac_includes_default
34131 static struct stat ac_aggr;
34132 if (ac_aggr.st_blocks)
34138 rm -f conftest.$ac_objext
34139 if { (ac_try="$ac_compile"
34140 case "(($ac_try" in
34141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34142 *) ac_try_echo=$ac_try;;
34144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34145 (eval "$ac_compile") 2>conftest.er1
34147 grep -v '^ *+' conftest.er1 >conftest.err
34149 cat conftest.err >&5
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); } && {
34152 test -z "$ac_c_werror_flag" ||
34153 test ! -s conftest.err
34154 } && test -s conftest.$ac_objext; then
34155 ac_cv_member_struct_stat_st_blocks=yes
34157 echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34160 cat >conftest.$ac_ext <<_ACEOF
34163 cat confdefs.h >>conftest.$ac_ext
34164 cat >>conftest.$ac_ext <<_ACEOF
34165 /* end confdefs.h. */
34166 $ac_includes_default
34170 static struct stat ac_aggr;
34171 if (sizeof ac_aggr.st_blocks)
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_compile") 2>conftest.er1
34186 grep -v '^ *+' conftest.er1 >conftest.err
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } && {
34191 test -z "$ac_c_werror_flag" ||
34192 test ! -s conftest.err
34193 } && test -s conftest.$ac_objext; then
34194 ac_cv_member_struct_stat_st_blocks=yes
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34199 ac_cv_member_struct_stat_st_blocks=no
34202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34207 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34208 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34209 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34211 cat >>confdefs.h <<_ACEOF
34212 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34216 cat >>confdefs.h <<\_ACEOF
34217 #define HAVE_ST_BLOCKS 1
34221 case " $LIBOBJS " in
34222 *" fileblocks.$ac_objext "* ) ;;
34223 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34230 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34231 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34232 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34233 echo $ECHO_N "(cached) $ECHO_C" >&6
34235 cat >conftest.$ac_ext <<_ACEOF
34238 cat confdefs.h >>conftest.$ac_ext
34239 cat >>conftest.$ac_ext <<_ACEOF
34240 /* end confdefs.h. */
34241 $ac_includes_default
34245 static struct stat ac_aggr;
34246 if (ac_aggr.st_rdev)
34252 rm -f conftest.$ac_objext
34253 if { (ac_try="$ac_compile"
34254 case "(($ac_try" in
34255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34256 *) ac_try_echo=$ac_try;;
34258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34259 (eval "$ac_compile") 2>conftest.er1
34261 grep -v '^ *+' conftest.er1 >conftest.err
34263 cat conftest.err >&5
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } && {
34266 test -z "$ac_c_werror_flag" ||
34267 test ! -s conftest.err
34268 } && test -s conftest.$ac_objext; then
34269 ac_cv_member_struct_stat_st_rdev=yes
34271 echo "$as_me: failed program was:" >&5
34272 sed 's/^/| /' conftest.$ac_ext >&5
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 $ac_includes_default
34284 static struct stat ac_aggr;
34285 if (sizeof ac_aggr.st_rdev)
34291 rm -f conftest.$ac_objext
34292 if { (ac_try="$ac_compile"
34293 case "(($ac_try" in
34294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34295 *) ac_try_echo=$ac_try;;
34297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34298 (eval "$ac_compile") 2>conftest.er1
34300 grep -v '^ *+' conftest.er1 >conftest.err
34302 cat conftest.err >&5
34303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304 (exit $ac_status); } && {
34305 test -z "$ac_c_werror_flag" ||
34306 test ! -s conftest.err
34307 } && test -s conftest.$ac_objext; then
34308 ac_cv_member_struct_stat_st_rdev=yes
34310 echo "$as_me: failed program was:" >&5
34311 sed 's/^/| /' conftest.$ac_ext >&5
34313 ac_cv_member_struct_stat_st_rdev=no
34316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34322 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34323 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34325 cat >>confdefs.h <<_ACEOF
34326 #define HAVE_STRUCT_STAT_ST_RDEV 1
34330 cat >>confdefs.h <<\_ACEOF
34331 #define HAVE_ST_RDEV 1
34337 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34338 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34339 if test "${ac_cv_struct_tm+set}" = set; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34342 cat >conftest.$ac_ext <<_ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34348 #include <sys/types.h>
34355 int *p = &tm.tm_sec;
34361 rm -f conftest.$ac_objext
34362 if { (ac_try="$ac_compile"
34363 case "(($ac_try" in
34364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34365 *) ac_try_echo=$ac_try;;
34367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34368 (eval "$ac_compile") 2>conftest.er1
34370 grep -v '^ *+' conftest.er1 >conftest.err
34372 cat conftest.err >&5
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); } && {
34375 test -z "$ac_c_werror_flag" ||
34376 test ! -s conftest.err
34377 } && test -s conftest.$ac_objext; then
34378 ac_cv_struct_tm=time.h
34380 echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34383 ac_cv_struct_tm=sys/time.h
34386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34388 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34389 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34390 if test $ac_cv_struct_tm = sys/time.h; then
34392 cat >>confdefs.h <<\_ACEOF
34393 #define TM_IN_SYS_TIME 1
34398 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34400 if test "${ac_cv_c_const+set}" = set; then
34401 echo $ECHO_N "(cached) $ECHO_C" >&6
34403 cat >conftest.$ac_ext <<_ACEOF
34406 cat confdefs.h >>conftest.$ac_ext
34407 cat >>conftest.$ac_ext <<_ACEOF
34408 /* end confdefs.h. */
34413 /* FIXME: Include the comments suggested by Paul. */
34414 #ifndef __cplusplus
34415 /* Ultrix mips cc rejects this. */
34416 typedef int charset[2];
34418 /* SunOS 4.1.1 cc rejects this. */
34419 char const *const *pcpcc;
34421 /* NEC SVR4.0.2 mips cc rejects this. */
34422 struct point {int x, y;};
34423 static struct point const zero = {0,0};
34424 /* AIX XL C 1.02.0.0 rejects this.
34425 It does not let you subtract one const X* pointer from another in
34426 an arm of an if-expression whose if-part is not a constant
34428 const char *g = "string";
34429 pcpcc = &g + (g ? g-g : 0);
34430 /* HPUX 7.0 cc rejects these. */
34432 ppc = (char**) pcpcc;
34433 pcpcc = (char const *const *) ppc;
34434 { /* SCO 3.2v4 cc rejects this. */
34436 char const *s = 0 ? (char *) 0 : (char const *) 0;
34441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34442 int x[] = {25, 17};
34443 const int *foo = &x[0];
34446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34447 typedef const int *iptr;
34451 { /* AIX XL C 1.02.0.0 rejects this saying
34452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34453 struct s { int j; const int *ap[3]; };
34454 struct s *b; b->j = 5;
34456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34457 const int foo = 10;
34458 if (!foo) return 0;
34460 return !cs[0] && !zero.x;
34467 rm -f conftest.$ac_objext
34468 if { (ac_try="$ac_compile"
34469 case "(($ac_try" in
34470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34471 *) ac_try_echo=$ac_try;;
34473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34474 (eval "$ac_compile") 2>conftest.er1
34476 grep -v '^ *+' conftest.er1 >conftest.err
34478 cat conftest.err >&5
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); } && {
34481 test -z "$ac_c_werror_flag" ||
34482 test ! -s conftest.err
34483 } && test -s conftest.$ac_objext; then
34486 echo "$as_me: failed program was:" >&5
34487 sed 's/^/| /' conftest.$ac_ext >&5
34492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34494 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34495 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34496 if test $ac_cv_c_const = no; then
34498 cat >>confdefs.h <<\_ACEOF
34505 { echo "$as_me:$LINENO: checking for char" >&5
34506 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34507 if test "${ac_cv_type_char+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34510 cat >conftest.$ac_ext <<_ACEOF
34513 cat confdefs.h >>conftest.$ac_ext
34514 cat >>conftest.$ac_ext <<_ACEOF
34515 /* end confdefs.h. */
34516 $ac_includes_default
34517 typedef char ac__type_new_;
34521 if ((ac__type_new_ *) 0)
34523 if (sizeof (ac__type_new_))
34529 rm -f conftest.$ac_objext
34530 if { (ac_try="$ac_compile"
34531 case "(($ac_try" in
34532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533 *) ac_try_echo=$ac_try;;
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536 (eval "$ac_compile") 2>conftest.er1
34538 grep -v '^ *+' conftest.er1 >conftest.err
34540 cat conftest.err >&5
34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34542 (exit $ac_status); } && {
34543 test -z "$ac_c_werror_flag" ||
34544 test ! -s conftest.err
34545 } && test -s conftest.$ac_objext; then
34546 ac_cv_type_char=yes
34548 echo "$as_me: failed program was:" >&5
34549 sed 's/^/| /' conftest.$ac_ext >&5
34554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34556 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34557 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34559 # The cast to long int works around a bug in the HP C Compiler
34560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34562 # This bug is HP SR number 8606223364.
34563 { echo "$as_me:$LINENO: checking size of char" >&5
34564 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34565 if test "${ac_cv_sizeof_char+set}" = set; then
34566 echo $ECHO_N "(cached) $ECHO_C" >&6
34568 if test "$cross_compiling" = yes; then
34569 # Depending upon the size, compute the lo and hi bounds.
34570 cat >conftest.$ac_ext <<_ACEOF
34573 cat confdefs.h >>conftest.$ac_ext
34574 cat >>conftest.$ac_ext <<_ACEOF
34575 /* end confdefs.h. */
34576 $ac_includes_default
34577 typedef char ac__type_sizeof_;
34581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34588 rm -f conftest.$ac_objext
34589 if { (ac_try="$ac_compile"
34590 case "(($ac_try" in
34591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34592 *) ac_try_echo=$ac_try;;
34594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34595 (eval "$ac_compile") 2>conftest.er1
34597 grep -v '^ *+' conftest.er1 >conftest.err
34599 cat conftest.err >&5
34600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601 (exit $ac_status); } && {
34602 test -z "$ac_c_werror_flag" ||
34603 test ! -s conftest.err
34604 } && test -s conftest.$ac_objext; then
34607 cat >conftest.$ac_ext <<_ACEOF
34610 cat confdefs.h >>conftest.$ac_ext
34611 cat >>conftest.$ac_ext <<_ACEOF
34612 /* end confdefs.h. */
34613 $ac_includes_default
34614 typedef char ac__type_sizeof_;
34618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34625 rm -f conftest.$ac_objext
34626 if { (ac_try="$ac_compile"
34627 case "(($ac_try" in
34628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_compile") 2>conftest.er1
34634 grep -v '^ *+' conftest.er1 >conftest.err
34636 cat conftest.err >&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } && {
34639 test -z "$ac_c_werror_flag" ||
34640 test ! -s conftest.err
34641 } && test -s conftest.$ac_objext; then
34642 ac_hi=$ac_mid; break
34644 echo "$as_me: failed program was:" >&5
34645 sed 's/^/| /' conftest.$ac_ext >&5
34647 ac_lo=`expr $ac_mid + 1`
34648 if test $ac_lo -le $ac_mid; then
34652 ac_mid=`expr 2 '*' $ac_mid + 1`
34655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34658 echo "$as_me: failed program was:" >&5
34659 sed 's/^/| /' conftest.$ac_ext >&5
34661 cat >conftest.$ac_ext <<_ACEOF
34664 cat confdefs.h >>conftest.$ac_ext
34665 cat >>conftest.$ac_ext <<_ACEOF
34666 /* end confdefs.h. */
34667 $ac_includes_default
34668 typedef char ac__type_sizeof_;
34672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34679 rm -f conftest.$ac_objext
34680 if { (ac_try="$ac_compile"
34681 case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686 (eval "$ac_compile") 2>conftest.er1
34688 grep -v '^ *+' conftest.er1 >conftest.err
34690 cat conftest.err >&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); } && {
34693 test -z "$ac_c_werror_flag" ||
34694 test ! -s conftest.err
34695 } && test -s conftest.$ac_objext; then
34698 cat >conftest.$ac_ext <<_ACEOF
34701 cat confdefs.h >>conftest.$ac_ext
34702 cat >>conftest.$ac_ext <<_ACEOF
34703 /* end confdefs.h. */
34704 $ac_includes_default
34705 typedef char ac__type_sizeof_;
34709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34716 rm -f conftest.$ac_objext
34717 if { (ac_try="$ac_compile"
34718 case "(($ac_try" in
34719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720 *) ac_try_echo=$ac_try;;
34722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723 (eval "$ac_compile") 2>conftest.er1
34725 grep -v '^ *+' conftest.er1 >conftest.err
34727 cat conftest.err >&5
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); } && {
34730 test -z "$ac_c_werror_flag" ||
34731 test ! -s conftest.err
34732 } && test -s conftest.$ac_objext; then
34733 ac_lo=$ac_mid; break
34735 echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34738 ac_hi=`expr '(' $ac_mid ')' - 1`
34739 if test $ac_mid -le $ac_hi; then
34743 ac_mid=`expr 2 '*' $ac_mid`
34746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34749 echo "$as_me: failed program was:" >&5
34750 sed 's/^/| /' conftest.$ac_ext >&5
34755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759 # Binary search between lo and hi bounds.
34760 while test "x$ac_lo" != "x$ac_hi"; do
34761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34762 cat >conftest.$ac_ext <<_ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h. */
34768 $ac_includes_default
34769 typedef char ac__type_sizeof_;
34773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_compile") 2>conftest.er1
34789 grep -v '^ *+' conftest.er1 >conftest.err
34791 cat conftest.err >&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); } && {
34794 test -z "$ac_c_werror_flag" ||
34795 test ! -s conftest.err
34796 } && test -s conftest.$ac_objext; then
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 ac_lo=`expr '(' $ac_mid ')' + 1`
34805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 ?*) ac_cv_sizeof_char=$ac_lo;;
34809 '') if test "$ac_cv_type_char" = yes; then
34810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34811 See \`config.log' for more details." >&5
34812 echo "$as_me: error: cannot compute sizeof (char)
34813 See \`config.log' for more details." >&2;}
34814 { (exit 77); exit 77; }; }
34816 ac_cv_sizeof_char=0
34820 cat >conftest.$ac_ext <<_ACEOF
34823 cat confdefs.h >>conftest.$ac_ext
34824 cat >>conftest.$ac_ext <<_ACEOF
34825 /* end confdefs.h. */
34826 $ac_includes_default
34827 typedef char ac__type_sizeof_;
34828 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34829 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34831 #include <stdlib.h>
34836 FILE *f = fopen ("conftest.val", "w");
34839 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34841 long int i = longval ();
34842 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34844 fprintf (f, "%ld\n", i);
34848 unsigned long int i = ulongval ();
34849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34851 fprintf (f, "%lu\n", i);
34853 return ferror (f) || fclose (f) != 0;
34859 rm -f conftest$ac_exeext
34860 if { (ac_try="$ac_link"
34861 case "(($ac_try" in
34862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34863 *) ac_try_echo=$ac_try;;
34865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34866 (eval "$ac_link") 2>&5
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34870 { (case "(($ac_try" in
34871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34872 *) ac_try_echo=$ac_try;;
34874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34875 (eval "$ac_try") 2>&5
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); }; }; then
34879 ac_cv_sizeof_char=`cat conftest.val`
34881 echo "$as_me: program exited with status $ac_status" >&5
34882 echo "$as_me: failed program was:" >&5
34883 sed 's/^/| /' conftest.$ac_ext >&5
34885 ( exit $ac_status )
34886 if test "$ac_cv_type_char" = yes; then
34887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34888 See \`config.log' for more details." >&5
34889 echo "$as_me: error: cannot compute sizeof (char)
34890 See \`config.log' for more details." >&2;}
34891 { (exit 77); exit 77; }; }
34893 ac_cv_sizeof_char=0
34896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34900 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34901 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34905 cat >>confdefs.h <<_ACEOF
34906 #define SIZEOF_CHAR $ac_cv_sizeof_char
34910 { echo "$as_me:$LINENO: checking for short int" >&5
34911 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34912 if test "${ac_cv_type_short_int+set}" = set; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34915 cat >conftest.$ac_ext <<_ACEOF
34918 cat confdefs.h >>conftest.$ac_ext
34919 cat >>conftest.$ac_ext <<_ACEOF
34920 /* end confdefs.h. */
34921 $ac_includes_default
34922 typedef short int ac__type_new_;
34926 if ((ac__type_new_ *) 0)
34928 if (sizeof (ac__type_new_))
34934 rm -f conftest.$ac_objext
34935 if { (ac_try="$ac_compile"
34936 case "(($ac_try" in
34937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34938 *) ac_try_echo=$ac_try;;
34940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34941 (eval "$ac_compile") 2>conftest.er1
34943 grep -v '^ *+' conftest.er1 >conftest.err
34945 cat conftest.err >&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); } && {
34948 test -z "$ac_c_werror_flag" ||
34949 test ! -s conftest.err
34950 } && test -s conftest.$ac_objext; then
34951 ac_cv_type_short_int=yes
34953 echo "$as_me: failed program was:" >&5
34954 sed 's/^/| /' conftest.$ac_ext >&5
34956 ac_cv_type_short_int=no
34959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34961 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34962 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34964 # The cast to long int works around a bug in the HP C Compiler
34965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34967 # This bug is HP SR number 8606223364.
34968 { echo "$as_me:$LINENO: checking size of short int" >&5
34969 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34970 if test "${ac_cv_sizeof_short_int+set}" = set; then
34971 echo $ECHO_N "(cached) $ECHO_C" >&6
34973 if test "$cross_compiling" = yes; then
34974 # Depending upon the size, compute the lo and hi bounds.
34975 cat >conftest.$ac_ext <<_ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h. */
34981 $ac_includes_default
34982 typedef short int ac__type_sizeof_;
34986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34993 rm -f conftest.$ac_objext
34994 if { (ac_try="$ac_compile"
34995 case "(($ac_try" in
34996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34997 *) ac_try_echo=$ac_try;;
34999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35000 (eval "$ac_compile") 2>conftest.er1
35002 grep -v '^ *+' conftest.er1 >conftest.err
35004 cat conftest.err >&5
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); } && {
35007 test -z "$ac_c_werror_flag" ||
35008 test ! -s conftest.err
35009 } && test -s conftest.$ac_objext; then
35012 cat >conftest.$ac_ext <<_ACEOF
35015 cat confdefs.h >>conftest.$ac_ext
35016 cat >>conftest.$ac_ext <<_ACEOF
35017 /* end confdefs.h. */
35018 $ac_includes_default
35019 typedef short int ac__type_sizeof_;
35023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35030 rm -f conftest.$ac_objext
35031 if { (ac_try="$ac_compile"
35032 case "(($ac_try" in
35033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35034 *) ac_try_echo=$ac_try;;
35036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35037 (eval "$ac_compile") 2>conftest.er1
35039 grep -v '^ *+' conftest.er1 >conftest.err
35041 cat conftest.err >&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); } && {
35044 test -z "$ac_c_werror_flag" ||
35045 test ! -s conftest.err
35046 } && test -s conftest.$ac_objext; then
35047 ac_hi=$ac_mid; break
35049 echo "$as_me: failed program was:" >&5
35050 sed 's/^/| /' conftest.$ac_ext >&5
35052 ac_lo=`expr $ac_mid + 1`
35053 if test $ac_lo -le $ac_mid; then
35057 ac_mid=`expr 2 '*' $ac_mid + 1`
35060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35063 echo "$as_me: failed program was:" >&5
35064 sed 's/^/| /' conftest.$ac_ext >&5
35066 cat >conftest.$ac_ext <<_ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h. */
35072 $ac_includes_default
35073 typedef short int ac__type_sizeof_;
35077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35084 rm -f conftest.$ac_objext
35085 if { (ac_try="$ac_compile"
35086 case "(($ac_try" in
35087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35088 *) ac_try_echo=$ac_try;;
35090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35091 (eval "$ac_compile") 2>conftest.er1
35093 grep -v '^ *+' conftest.er1 >conftest.err
35095 cat conftest.err >&5
35096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35097 (exit $ac_status); } && {
35098 test -z "$ac_c_werror_flag" ||
35099 test ! -s conftest.err
35100 } && test -s conftest.$ac_objext; then
35103 cat >conftest.$ac_ext <<_ACEOF
35106 cat confdefs.h >>conftest.$ac_ext
35107 cat >>conftest.$ac_ext <<_ACEOF
35108 /* end confdefs.h. */
35109 $ac_includes_default
35110 typedef short int ac__type_sizeof_;
35114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35121 rm -f conftest.$ac_objext
35122 if { (ac_try="$ac_compile"
35123 case "(($ac_try" in
35124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35125 *) ac_try_echo=$ac_try;;
35127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35128 (eval "$ac_compile") 2>conftest.er1
35130 grep -v '^ *+' conftest.er1 >conftest.err
35132 cat conftest.err >&5
35133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35134 (exit $ac_status); } && {
35135 test -z "$ac_c_werror_flag" ||
35136 test ! -s conftest.err
35137 } && test -s conftest.$ac_objext; then
35138 ac_lo=$ac_mid; break
35140 echo "$as_me: failed program was:" >&5
35141 sed 's/^/| /' conftest.$ac_ext >&5
35143 ac_hi=`expr '(' $ac_mid ')' - 1`
35144 if test $ac_mid -le $ac_hi; then
35148 ac_mid=`expr 2 '*' $ac_mid`
35151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35154 echo "$as_me: failed program was:" >&5
35155 sed 's/^/| /' conftest.$ac_ext >&5
35160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35164 # Binary search between lo and hi bounds.
35165 while test "x$ac_lo" != "x$ac_hi"; do
35166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35167 cat >conftest.$ac_ext <<_ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h. */
35173 $ac_includes_default
35174 typedef short int ac__type_sizeof_;
35178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35185 rm -f conftest.$ac_objext
35186 if { (ac_try="$ac_compile"
35187 case "(($ac_try" in
35188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189 *) ac_try_echo=$ac_try;;
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_compile") 2>conftest.er1
35194 grep -v '^ *+' conftest.er1 >conftest.err
35196 cat conftest.err >&5
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); } && {
35199 test -z "$ac_c_werror_flag" ||
35200 test ! -s conftest.err
35201 } && test -s conftest.$ac_objext; then
35204 echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35207 ac_lo=`expr '(' $ac_mid ')' + 1`
35210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35213 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35214 '') if test "$ac_cv_type_short_int" = yes; then
35215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35216 See \`config.log' for more details." >&5
35217 echo "$as_me: error: cannot compute sizeof (short int)
35218 See \`config.log' for more details." >&2;}
35219 { (exit 77); exit 77; }; }
35221 ac_cv_sizeof_short_int=0
35225 cat >conftest.$ac_ext <<_ACEOF
35228 cat confdefs.h >>conftest.$ac_ext
35229 cat >>conftest.$ac_ext <<_ACEOF
35230 /* end confdefs.h. */
35231 $ac_includes_default
35232 typedef short int ac__type_sizeof_;
35233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35236 #include <stdlib.h>
35241 FILE *f = fopen ("conftest.val", "w");
35244 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35246 long int i = longval ();
35247 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35249 fprintf (f, "%ld\n", i);
35253 unsigned long int i = ulongval ();
35254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35256 fprintf (f, "%lu\n", i);
35258 return ferror (f) || fclose (f) != 0;
35264 rm -f conftest$ac_exeext
35265 if { (ac_try="$ac_link"
35266 case "(($ac_try" in
35267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268 *) ac_try_echo=$ac_try;;
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271 (eval "$ac_link") 2>&5
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35275 { (case "(($ac_try" in
35276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35277 *) ac_try_echo=$ac_try;;
35279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35280 (eval "$ac_try") 2>&5
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; }; then
35284 ac_cv_sizeof_short_int=`cat conftest.val`
35286 echo "$as_me: program exited with status $ac_status" >&5
35287 echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35290 ( exit $ac_status )
35291 if test "$ac_cv_type_short_int" = yes; then
35292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35293 See \`config.log' for more details." >&5
35294 echo "$as_me: error: cannot compute sizeof (short int)
35295 See \`config.log' for more details." >&2;}
35296 { (exit 77); exit 77; }; }
35298 ac_cv_sizeof_short_int=0
35301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35306 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35310 cat >>confdefs.h <<_ACEOF
35311 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35315 { echo "$as_me:$LINENO: checking for int" >&5
35316 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35317 if test "${ac_cv_type_int+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35320 cat >conftest.$ac_ext <<_ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35326 $ac_includes_default
35327 typedef int ac__type_new_;
35331 if ((ac__type_new_ *) 0)
35333 if (sizeof (ac__type_new_))
35339 rm -f conftest.$ac_objext
35340 if { (ac_try="$ac_compile"
35341 case "(($ac_try" in
35342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343 *) ac_try_echo=$ac_try;;
35345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35346 (eval "$ac_compile") 2>conftest.er1
35348 grep -v '^ *+' conftest.er1 >conftest.err
35350 cat conftest.err >&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } && {
35353 test -z "$ac_c_werror_flag" ||
35354 test ! -s conftest.err
35355 } && test -s conftest.$ac_objext; then
35358 echo "$as_me: failed program was:" >&5
35359 sed 's/^/| /' conftest.$ac_ext >&5
35364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35366 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35367 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35369 # The cast to long int works around a bug in the HP C Compiler
35370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35372 # This bug is HP SR number 8606223364.
35373 { echo "$as_me:$LINENO: checking size of int" >&5
35374 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35375 if test "${ac_cv_sizeof_int+set}" = set; then
35376 echo $ECHO_N "(cached) $ECHO_C" >&6
35378 if test "$cross_compiling" = yes; then
35379 # Depending upon the size, compute the lo and hi bounds.
35380 cat >conftest.$ac_ext <<_ACEOF
35383 cat confdefs.h >>conftest.$ac_ext
35384 cat >>conftest.$ac_ext <<_ACEOF
35385 /* end confdefs.h. */
35386 $ac_includes_default
35387 typedef int ac__type_sizeof_;
35391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35398 rm -f conftest.$ac_objext
35399 if { (ac_try="$ac_compile"
35400 case "(($ac_try" in
35401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35402 *) ac_try_echo=$ac_try;;
35404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35405 (eval "$ac_compile") 2>conftest.er1
35407 grep -v '^ *+' conftest.er1 >conftest.err
35409 cat conftest.err >&5
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); } && {
35412 test -z "$ac_c_werror_flag" ||
35413 test ! -s conftest.err
35414 } && test -s conftest.$ac_objext; then
35417 cat >conftest.$ac_ext <<_ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h. */
35423 $ac_includes_default
35424 typedef int ac__type_sizeof_;
35428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35435 rm -f conftest.$ac_objext
35436 if { (ac_try="$ac_compile"
35437 case "(($ac_try" in
35438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439 *) ac_try_echo=$ac_try;;
35441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35442 (eval "$ac_compile") 2>conftest.er1
35444 grep -v '^ *+' conftest.er1 >conftest.err
35446 cat conftest.err >&5
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); } && {
35449 test -z "$ac_c_werror_flag" ||
35450 test ! -s conftest.err
35451 } && test -s conftest.$ac_objext; then
35452 ac_hi=$ac_mid; break
35454 echo "$as_me: failed program was:" >&5
35455 sed 's/^/| /' conftest.$ac_ext >&5
35457 ac_lo=`expr $ac_mid + 1`
35458 if test $ac_lo -le $ac_mid; then
35462 ac_mid=`expr 2 '*' $ac_mid + 1`
35465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35468 echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35471 cat >conftest.$ac_ext <<_ACEOF
35474 cat confdefs.h >>conftest.$ac_ext
35475 cat >>conftest.$ac_ext <<_ACEOF
35476 /* end confdefs.h. */
35477 $ac_includes_default
35478 typedef int ac__type_sizeof_;
35482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35489 rm -f conftest.$ac_objext
35490 if { (ac_try="$ac_compile"
35491 case "(($ac_try" in
35492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35493 *) ac_try_echo=$ac_try;;
35495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35496 (eval "$ac_compile") 2>conftest.er1
35498 grep -v '^ *+' conftest.er1 >conftest.err
35500 cat conftest.err >&5
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); } && {
35503 test -z "$ac_c_werror_flag" ||
35504 test ! -s conftest.err
35505 } && test -s conftest.$ac_objext; then
35508 cat >conftest.$ac_ext <<_ACEOF
35511 cat confdefs.h >>conftest.$ac_ext
35512 cat >>conftest.$ac_ext <<_ACEOF
35513 /* end confdefs.h. */
35514 $ac_includes_default
35515 typedef int ac__type_sizeof_;
35519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35526 rm -f conftest.$ac_objext
35527 if { (ac_try="$ac_compile"
35528 case "(($ac_try" in
35529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35530 *) ac_try_echo=$ac_try;;
35532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35533 (eval "$ac_compile") 2>conftest.er1
35535 grep -v '^ *+' conftest.er1 >conftest.err
35537 cat conftest.err >&5
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); } && {
35540 test -z "$ac_c_werror_flag" ||
35541 test ! -s conftest.err
35542 } && test -s conftest.$ac_objext; then
35543 ac_lo=$ac_mid; break
35545 echo "$as_me: failed program was:" >&5
35546 sed 's/^/| /' conftest.$ac_ext >&5
35548 ac_hi=`expr '(' $ac_mid ')' - 1`
35549 if test $ac_mid -le $ac_hi; then
35553 ac_mid=`expr 2 '*' $ac_mid`
35556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559 echo "$as_me: failed program was:" >&5
35560 sed 's/^/| /' conftest.$ac_ext >&5
35565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35569 # Binary search between lo and hi bounds.
35570 while test "x$ac_lo" != "x$ac_hi"; do
35571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35572 cat >conftest.$ac_ext <<_ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h. */
35578 $ac_includes_default
35579 typedef int ac__type_sizeof_;
35583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35590 rm -f conftest.$ac_objext
35591 if { (ac_try="$ac_compile"
35592 case "(($ac_try" in
35593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594 *) ac_try_echo=$ac_try;;
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597 (eval "$ac_compile") 2>conftest.er1
35599 grep -v '^ *+' conftest.er1 >conftest.err
35601 cat conftest.err >&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } && {
35604 test -z "$ac_c_werror_flag" ||
35605 test ! -s conftest.err
35606 } && test -s conftest.$ac_objext; then
35609 echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35612 ac_lo=`expr '(' $ac_mid ')' + 1`
35615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 ?*) ac_cv_sizeof_int=$ac_lo;;
35619 '') if test "$ac_cv_type_int" = yes; then
35620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35621 See \`config.log' for more details." >&5
35622 echo "$as_me: error: cannot compute sizeof (int)
35623 See \`config.log' for more details." >&2;}
35624 { (exit 77); exit 77; }; }
35630 cat >conftest.$ac_ext <<_ACEOF
35633 cat confdefs.h >>conftest.$ac_ext
35634 cat >>conftest.$ac_ext <<_ACEOF
35635 /* end confdefs.h. */
35636 $ac_includes_default
35637 typedef int ac__type_sizeof_;
35638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35641 #include <stdlib.h>
35646 FILE *f = fopen ("conftest.val", "w");
35649 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35651 long int i = longval ();
35652 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35654 fprintf (f, "%ld\n", i);
35658 unsigned long int i = ulongval ();
35659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35661 fprintf (f, "%lu\n", i);
35663 return ferror (f) || fclose (f) != 0;
35669 rm -f conftest$ac_exeext
35670 if { (ac_try="$ac_link"
35671 case "(($ac_try" in
35672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35673 *) ac_try_echo=$ac_try;;
35675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35676 (eval "$ac_link") 2>&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35680 { (case "(($ac_try" in
35681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35682 *) ac_try_echo=$ac_try;;
35684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35685 (eval "$ac_try") 2>&5
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); }; }; then
35689 ac_cv_sizeof_int=`cat conftest.val`
35691 echo "$as_me: program exited with status $ac_status" >&5
35692 echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35695 ( exit $ac_status )
35696 if test "$ac_cv_type_int" = yes; then
35697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35698 See \`config.log' for more details." >&5
35699 echo "$as_me: error: cannot compute sizeof (int)
35700 See \`config.log' for more details." >&2;}
35701 { (exit 77); exit 77; }; }
35706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35715 cat >>confdefs.h <<_ACEOF
35716 #define SIZEOF_INT $ac_cv_sizeof_int
35720 { echo "$as_me:$LINENO: checking for long int" >&5
35721 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35722 if test "${ac_cv_type_long_int+set}" = set; then
35723 echo $ECHO_N "(cached) $ECHO_C" >&6
35725 cat >conftest.$ac_ext <<_ACEOF
35728 cat confdefs.h >>conftest.$ac_ext
35729 cat >>conftest.$ac_ext <<_ACEOF
35730 /* end confdefs.h. */
35731 $ac_includes_default
35732 typedef long int ac__type_new_;
35736 if ((ac__type_new_ *) 0)
35738 if (sizeof (ac__type_new_))
35744 rm -f conftest.$ac_objext
35745 if { (ac_try="$ac_compile"
35746 case "(($ac_try" in
35747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35748 *) ac_try_echo=$ac_try;;
35750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35751 (eval "$ac_compile") 2>conftest.er1
35753 grep -v '^ *+' conftest.er1 >conftest.err
35755 cat conftest.err >&5
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); } && {
35758 test -z "$ac_c_werror_flag" ||
35759 test ! -s conftest.err
35760 } && test -s conftest.$ac_objext; then
35761 ac_cv_type_long_int=yes
35763 echo "$as_me: failed program was:" >&5
35764 sed 's/^/| /' conftest.$ac_ext >&5
35766 ac_cv_type_long_int=no
35769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35771 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35772 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35774 # The cast to long int works around a bug in the HP C Compiler
35775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35777 # This bug is HP SR number 8606223364.
35778 { echo "$as_me:$LINENO: checking size of long int" >&5
35779 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35780 if test "${ac_cv_sizeof_long_int+set}" = set; then
35781 echo $ECHO_N "(cached) $ECHO_C" >&6
35783 if test "$cross_compiling" = yes; then
35784 # Depending upon the size, compute the lo and hi bounds.
35785 cat >conftest.$ac_ext <<_ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h. */
35791 $ac_includes_default
35792 typedef long int ac__type_sizeof_;
35796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35803 rm -f conftest.$ac_objext
35804 if { (ac_try="$ac_compile"
35805 case "(($ac_try" in
35806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35807 *) ac_try_echo=$ac_try;;
35809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35810 (eval "$ac_compile") 2>conftest.er1
35812 grep -v '^ *+' conftest.er1 >conftest.err
35814 cat conftest.err >&5
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); } && {
35817 test -z "$ac_c_werror_flag" ||
35818 test ! -s conftest.err
35819 } && test -s conftest.$ac_objext; then
35822 cat >conftest.$ac_ext <<_ACEOF
35825 cat confdefs.h >>conftest.$ac_ext
35826 cat >>conftest.$ac_ext <<_ACEOF
35827 /* end confdefs.h. */
35828 $ac_includes_default
35829 typedef long int ac__type_sizeof_;
35833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35840 rm -f conftest.$ac_objext
35841 if { (ac_try="$ac_compile"
35842 case "(($ac_try" in
35843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35844 *) ac_try_echo=$ac_try;;
35846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35847 (eval "$ac_compile") 2>conftest.er1
35849 grep -v '^ *+' conftest.er1 >conftest.err
35851 cat conftest.err >&5
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); } && {
35854 test -z "$ac_c_werror_flag" ||
35855 test ! -s conftest.err
35856 } && test -s conftest.$ac_objext; then
35857 ac_hi=$ac_mid; break
35859 echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35862 ac_lo=`expr $ac_mid + 1`
35863 if test $ac_lo -le $ac_mid; then
35867 ac_mid=`expr 2 '*' $ac_mid + 1`
35870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35873 echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35882 $ac_includes_default
35883 typedef long int ac__type_sizeof_;
35887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35894 rm -f conftest.$ac_objext
35895 if { (ac_try="$ac_compile"
35896 case "(($ac_try" in
35897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35898 *) ac_try_echo=$ac_try;;
35900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35901 (eval "$ac_compile") 2>conftest.er1
35903 grep -v '^ *+' conftest.er1 >conftest.err
35905 cat conftest.err >&5
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); } && {
35908 test -z "$ac_c_werror_flag" ||
35909 test ! -s conftest.err
35910 } && test -s conftest.$ac_objext; then
35913 cat >conftest.$ac_ext <<_ACEOF
35916 cat confdefs.h >>conftest.$ac_ext
35917 cat >>conftest.$ac_ext <<_ACEOF
35918 /* end confdefs.h. */
35919 $ac_includes_default
35920 typedef long int ac__type_sizeof_;
35924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35931 rm -f conftest.$ac_objext
35932 if { (ac_try="$ac_compile"
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_compile") 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); } && {
35945 test -z "$ac_c_werror_flag" ||
35946 test ! -s conftest.err
35947 } && test -s conftest.$ac_objext; then
35948 ac_lo=$ac_mid; break
35950 echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 ac_hi=`expr '(' $ac_mid ')' - 1`
35954 if test $ac_mid -le $ac_hi; then
35958 ac_mid=`expr 2 '*' $ac_mid`
35961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964 echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 # Binary search between lo and hi bounds.
35975 while test "x$ac_lo" != "x$ac_hi"; do
35976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35977 cat >conftest.$ac_ext <<_ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h. */
35983 $ac_includes_default
35984 typedef long int ac__type_sizeof_;
35988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35995 rm -f conftest.$ac_objext
35996 if { (ac_try="$ac_compile"
35997 case "(($ac_try" in
35998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35999 *) ac_try_echo=$ac_try;;
36001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36002 (eval "$ac_compile") 2>conftest.er1
36004 grep -v '^ *+' conftest.er1 >conftest.err
36006 cat conftest.err >&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } && {
36009 test -z "$ac_c_werror_flag" ||
36010 test ! -s conftest.err
36011 } && test -s conftest.$ac_objext; then
36014 echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36017 ac_lo=`expr '(' $ac_mid ')' + 1`
36020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36023 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36024 '') if test "$ac_cv_type_long_int" = yes; then
36025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36026 See \`config.log' for more details." >&5
36027 echo "$as_me: error: cannot compute sizeof (long int)
36028 See \`config.log' for more details." >&2;}
36029 { (exit 77); exit 77; }; }
36031 ac_cv_sizeof_long_int=0
36035 cat >conftest.$ac_ext <<_ACEOF
36038 cat confdefs.h >>conftest.$ac_ext
36039 cat >>conftest.$ac_ext <<_ACEOF
36040 /* end confdefs.h. */
36041 $ac_includes_default
36042 typedef long int ac__type_sizeof_;
36043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36046 #include <stdlib.h>
36051 FILE *f = fopen ("conftest.val", "w");
36054 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36056 long int i = longval ();
36057 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36059 fprintf (f, "%ld\n", i);
36063 unsigned long int i = ulongval ();
36064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36066 fprintf (f, "%lu\n", i);
36068 return ferror (f) || fclose (f) != 0;
36074 rm -f conftest$ac_exeext
36075 if { (ac_try="$ac_link"
36076 case "(($ac_try" in
36077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36078 *) ac_try_echo=$ac_try;;
36080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36081 (eval "$ac_link") 2>&5
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36085 { (case "(($ac_try" in
36086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36087 *) ac_try_echo=$ac_try;;
36089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36090 (eval "$ac_try") 2>&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); }; }; then
36094 ac_cv_sizeof_long_int=`cat conftest.val`
36096 echo "$as_me: program exited with status $ac_status" >&5
36097 echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36100 ( exit $ac_status )
36101 if test "$ac_cv_type_long_int" = yes; then
36102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36103 See \`config.log' for more details." >&5
36104 echo "$as_me: error: cannot compute sizeof (long int)
36105 See \`config.log' for more details." >&2;}
36106 { (exit 77); exit 77; }; }
36108 ac_cv_sizeof_long_int=0
36111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36116 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36120 cat >>confdefs.h <<_ACEOF
36121 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36125 { echo "$as_me:$LINENO: checking for long long int" >&5
36126 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36127 if test "${ac_cv_type_long_long_int+set}" = set; then
36128 echo $ECHO_N "(cached) $ECHO_C" >&6
36130 cat >conftest.$ac_ext <<_ACEOF
36133 cat confdefs.h >>conftest.$ac_ext
36134 cat >>conftest.$ac_ext <<_ACEOF
36135 /* end confdefs.h. */
36136 $ac_includes_default
36137 typedef long long int ac__type_new_;
36141 if ((ac__type_new_ *) 0)
36143 if (sizeof (ac__type_new_))
36149 rm -f conftest.$ac_objext
36150 if { (ac_try="$ac_compile"
36151 case "(($ac_try" in
36152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153 *) ac_try_echo=$ac_try;;
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156 (eval "$ac_compile") 2>conftest.er1
36158 grep -v '^ *+' conftest.er1 >conftest.err
36160 cat conftest.err >&5
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); } && {
36163 test -z "$ac_c_werror_flag" ||
36164 test ! -s conftest.err
36165 } && test -s conftest.$ac_objext; then
36166 ac_cv_type_long_long_int=yes
36168 echo "$as_me: failed program was:" >&5
36169 sed 's/^/| /' conftest.$ac_ext >&5
36171 ac_cv_type_long_long_int=no
36174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36176 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36177 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36179 # The cast to long int works around a bug in the HP C Compiler
36180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36182 # This bug is HP SR number 8606223364.
36183 { echo "$as_me:$LINENO: checking size of long long int" >&5
36184 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36185 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36186 echo $ECHO_N "(cached) $ECHO_C" >&6
36188 if test "$cross_compiling" = yes; then
36189 # Depending upon the size, compute the lo and hi bounds.
36190 cat >conftest.$ac_ext <<_ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h. */
36196 $ac_includes_default
36197 typedef long long int ac__type_sizeof_;
36201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36208 rm -f conftest.$ac_objext
36209 if { (ac_try="$ac_compile"
36210 case "(($ac_try" in
36211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36212 *) ac_try_echo=$ac_try;;
36214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36215 (eval "$ac_compile") 2>conftest.er1
36217 grep -v '^ *+' conftest.er1 >conftest.err
36219 cat conftest.err >&5
36220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221 (exit $ac_status); } && {
36222 test -z "$ac_c_werror_flag" ||
36223 test ! -s conftest.err
36224 } && test -s conftest.$ac_objext; then
36227 cat >conftest.$ac_ext <<_ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h. */
36233 $ac_includes_default
36234 typedef long long int ac__type_sizeof_;
36238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36245 rm -f conftest.$ac_objext
36246 if { (ac_try="$ac_compile"
36247 case "(($ac_try" in
36248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36249 *) ac_try_echo=$ac_try;;
36251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36252 (eval "$ac_compile") 2>conftest.er1
36254 grep -v '^ *+' conftest.er1 >conftest.err
36256 cat conftest.err >&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } && {
36259 test -z "$ac_c_werror_flag" ||
36260 test ! -s conftest.err
36261 } && test -s conftest.$ac_objext; then
36262 ac_hi=$ac_mid; break
36264 echo "$as_me: failed program was:" >&5
36265 sed 's/^/| /' conftest.$ac_ext >&5
36267 ac_lo=`expr $ac_mid + 1`
36268 if test $ac_lo -le $ac_mid; then
36272 ac_mid=`expr 2 '*' $ac_mid + 1`
36275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36278 echo "$as_me: failed program was:" >&5
36279 sed 's/^/| /' conftest.$ac_ext >&5
36281 cat >conftest.$ac_ext <<_ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h. */
36287 $ac_includes_default
36288 typedef long long int ac__type_sizeof_;
36292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36299 rm -f conftest.$ac_objext
36300 if { (ac_try="$ac_compile"
36301 case "(($ac_try" in
36302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36303 *) ac_try_echo=$ac_try;;
36305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36306 (eval "$ac_compile") 2>conftest.er1
36308 grep -v '^ *+' conftest.er1 >conftest.err
36310 cat conftest.err >&5
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); } && {
36313 test -z "$ac_c_werror_flag" ||
36314 test ! -s conftest.err
36315 } && test -s conftest.$ac_objext; then
36318 cat >conftest.$ac_ext <<_ACEOF
36321 cat confdefs.h >>conftest.$ac_ext
36322 cat >>conftest.$ac_ext <<_ACEOF
36323 /* end confdefs.h. */
36324 $ac_includes_default
36325 typedef long long int ac__type_sizeof_;
36329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36336 rm -f conftest.$ac_objext
36337 if { (ac_try="$ac_compile"
36338 case "(($ac_try" in
36339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36340 *) ac_try_echo=$ac_try;;
36342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36343 (eval "$ac_compile") 2>conftest.er1
36345 grep -v '^ *+' conftest.er1 >conftest.err
36347 cat conftest.err >&5
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); } && {
36350 test -z "$ac_c_werror_flag" ||
36351 test ! -s conftest.err
36352 } && test -s conftest.$ac_objext; then
36353 ac_lo=$ac_mid; break
36355 echo "$as_me: failed program was:" >&5
36356 sed 's/^/| /' conftest.$ac_ext >&5
36358 ac_hi=`expr '(' $ac_mid ')' - 1`
36359 if test $ac_mid -le $ac_hi; then
36363 ac_mid=`expr 2 '*' $ac_mid`
36366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36369 echo "$as_me: failed program was:" >&5
36370 sed 's/^/| /' conftest.$ac_ext >&5
36375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36379 # Binary search between lo and hi bounds.
36380 while test "x$ac_lo" != "x$ac_hi"; do
36381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36382 cat >conftest.$ac_ext <<_ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h. */
36388 $ac_includes_default
36389 typedef long long int ac__type_sizeof_;
36393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36400 rm -f conftest.$ac_objext
36401 if { (ac_try="$ac_compile"
36402 case "(($ac_try" in
36403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36404 *) ac_try_echo=$ac_try;;
36406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36407 (eval "$ac_compile") 2>conftest.er1
36409 grep -v '^ *+' conftest.er1 >conftest.err
36411 cat conftest.err >&5
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } && {
36414 test -z "$ac_c_werror_flag" ||
36415 test ! -s conftest.err
36416 } && test -s conftest.$ac_objext; then
36419 echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36422 ac_lo=`expr '(' $ac_mid ')' + 1`
36425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36428 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36429 '') if test "$ac_cv_type_long_long_int" = yes; then
36430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36431 See \`config.log' for more details." >&5
36432 echo "$as_me: error: cannot compute sizeof (long long int)
36433 See \`config.log' for more details." >&2;}
36434 { (exit 77); exit 77; }; }
36436 ac_cv_sizeof_long_long_int=0
36440 cat >conftest.$ac_ext <<_ACEOF
36443 cat confdefs.h >>conftest.$ac_ext
36444 cat >>conftest.$ac_ext <<_ACEOF
36445 /* end confdefs.h. */
36446 $ac_includes_default
36447 typedef long long int ac__type_sizeof_;
36448 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36449 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36451 #include <stdlib.h>
36456 FILE *f = fopen ("conftest.val", "w");
36459 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36461 long int i = longval ();
36462 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36464 fprintf (f, "%ld\n", i);
36468 unsigned long int i = ulongval ();
36469 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36471 fprintf (f, "%lu\n", i);
36473 return ferror (f) || fclose (f) != 0;
36479 rm -f conftest$ac_exeext
36480 if { (ac_try="$ac_link"
36481 case "(($ac_try" in
36482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36483 *) ac_try_echo=$ac_try;;
36485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36486 (eval "$ac_link") 2>&5
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36490 { (case "(($ac_try" in
36491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492 *) ac_try_echo=$ac_try;;
36494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36495 (eval "$ac_try") 2>&5
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); }; }; then
36499 ac_cv_sizeof_long_long_int=`cat conftest.val`
36501 echo "$as_me: program exited with status $ac_status" >&5
36502 echo "$as_me: failed program was:" >&5
36503 sed 's/^/| /' conftest.$ac_ext >&5
36505 ( exit $ac_status )
36506 if test "$ac_cv_type_long_long_int" = yes; then
36507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36508 See \`config.log' for more details." >&5
36509 echo "$as_me: error: cannot compute sizeof (long long int)
36510 See \`config.log' for more details." >&2;}
36511 { (exit 77); exit 77; }; }
36513 ac_cv_sizeof_long_long_int=0
36516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36521 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36525 cat >>confdefs.h <<_ACEOF
36526 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36530 { echo "$as_me:$LINENO: checking for int *" >&5
36531 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36532 if test "${ac_cv_type_int_p+set}" = set; then
36533 echo $ECHO_N "(cached) $ECHO_C" >&6
36535 cat >conftest.$ac_ext <<_ACEOF
36538 cat confdefs.h >>conftest.$ac_ext
36539 cat >>conftest.$ac_ext <<_ACEOF
36540 /* end confdefs.h. */
36541 $ac_includes_default
36542 typedef int * ac__type_new_;
36546 if ((ac__type_new_ *) 0)
36548 if (sizeof (ac__type_new_))
36554 rm -f conftest.$ac_objext
36555 if { (ac_try="$ac_compile"
36556 case "(($ac_try" in
36557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558 *) ac_try_echo=$ac_try;;
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561 (eval "$ac_compile") 2>conftest.er1
36563 grep -v '^ *+' conftest.er1 >conftest.err
36565 cat conftest.err >&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); } && {
36568 test -z "$ac_c_werror_flag" ||
36569 test ! -s conftest.err
36570 } && test -s conftest.$ac_objext; then
36571 ac_cv_type_int_p=yes
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36576 ac_cv_type_int_p=no
36579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36581 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36582 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36584 # The cast to long int works around a bug in the HP C Compiler
36585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36587 # This bug is HP SR number 8606223364.
36588 { echo "$as_me:$LINENO: checking size of int *" >&5
36589 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36590 if test "${ac_cv_sizeof_int_p+set}" = set; then
36591 echo $ECHO_N "(cached) $ECHO_C" >&6
36593 if test "$cross_compiling" = yes; then
36594 # Depending upon the size, compute the lo and hi bounds.
36595 cat >conftest.$ac_ext <<_ACEOF
36598 cat confdefs.h >>conftest.$ac_ext
36599 cat >>conftest.$ac_ext <<_ACEOF
36600 /* end confdefs.h. */
36601 $ac_includes_default
36602 typedef int * ac__type_sizeof_;
36606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36613 rm -f conftest.$ac_objext
36614 if { (ac_try="$ac_compile"
36615 case "(($ac_try" in
36616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36617 *) ac_try_echo=$ac_try;;
36619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36620 (eval "$ac_compile") 2>conftest.er1
36622 grep -v '^ *+' conftest.er1 >conftest.err
36624 cat conftest.err >&5
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); } && {
36627 test -z "$ac_c_werror_flag" ||
36628 test ! -s conftest.err
36629 } && test -s conftest.$ac_objext; then
36632 cat >conftest.$ac_ext <<_ACEOF
36635 cat confdefs.h >>conftest.$ac_ext
36636 cat >>conftest.$ac_ext <<_ACEOF
36637 /* end confdefs.h. */
36638 $ac_includes_default
36639 typedef int * ac__type_sizeof_;
36643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36650 rm -f conftest.$ac_objext
36651 if { (ac_try="$ac_compile"
36652 case "(($ac_try" in
36653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36654 *) ac_try_echo=$ac_try;;
36656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36657 (eval "$ac_compile") 2>conftest.er1
36659 grep -v '^ *+' conftest.er1 >conftest.err
36661 cat conftest.err >&5
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); } && {
36664 test -z "$ac_c_werror_flag" ||
36665 test ! -s conftest.err
36666 } && test -s conftest.$ac_objext; then
36667 ac_hi=$ac_mid; break
36669 echo "$as_me: failed program was:" >&5
36670 sed 's/^/| /' conftest.$ac_ext >&5
36672 ac_lo=`expr $ac_mid + 1`
36673 if test $ac_lo -le $ac_mid; then
36677 ac_mid=`expr 2 '*' $ac_mid + 1`
36680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36683 echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36686 cat >conftest.$ac_ext <<_ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36692 $ac_includes_default
36693 typedef int * ac__type_sizeof_;
36697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36704 rm -f conftest.$ac_objext
36705 if { (ac_try="$ac_compile"
36706 case "(($ac_try" in
36707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36708 *) ac_try_echo=$ac_try;;
36710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36711 (eval "$ac_compile") 2>conftest.er1
36713 grep -v '^ *+' conftest.er1 >conftest.err
36715 cat conftest.err >&5
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); } && {
36718 test -z "$ac_c_werror_flag" ||
36719 test ! -s conftest.err
36720 } && test -s conftest.$ac_objext; then
36723 cat >conftest.$ac_ext <<_ACEOF
36726 cat confdefs.h >>conftest.$ac_ext
36727 cat >>conftest.$ac_ext <<_ACEOF
36728 /* end confdefs.h. */
36729 $ac_includes_default
36730 typedef int * ac__type_sizeof_;
36734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36741 rm -f conftest.$ac_objext
36742 if { (ac_try="$ac_compile"
36743 case "(($ac_try" in
36744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36745 *) ac_try_echo=$ac_try;;
36747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36748 (eval "$ac_compile") 2>conftest.er1
36750 grep -v '^ *+' conftest.er1 >conftest.err
36752 cat conftest.err >&5
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); } && {
36755 test -z "$ac_c_werror_flag" ||
36756 test ! -s conftest.err
36757 } && test -s conftest.$ac_objext; then
36758 ac_lo=$ac_mid; break
36760 echo "$as_me: failed program was:" >&5
36761 sed 's/^/| /' conftest.$ac_ext >&5
36763 ac_hi=`expr '(' $ac_mid ')' - 1`
36764 if test $ac_mid -le $ac_hi; then
36768 ac_mid=`expr 2 '*' $ac_mid`
36771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36784 # Binary search between lo and hi bounds.
36785 while test "x$ac_lo" != "x$ac_hi"; do
36786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36787 cat >conftest.$ac_ext <<_ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36793 $ac_includes_default
36794 typedef int * ac__type_sizeof_;
36798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36805 rm -f conftest.$ac_objext
36806 if { (ac_try="$ac_compile"
36807 case "(($ac_try" in
36808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809 *) ac_try_echo=$ac_try;;
36811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36812 (eval "$ac_compile") 2>conftest.er1
36814 grep -v '^ *+' conftest.er1 >conftest.err
36816 cat conftest.err >&5
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); } && {
36819 test -z "$ac_c_werror_flag" ||
36820 test ! -s conftest.err
36821 } && test -s conftest.$ac_objext; then
36824 echo "$as_me: failed program was:" >&5
36825 sed 's/^/| /' conftest.$ac_ext >&5
36827 ac_lo=`expr '(' $ac_mid ')' + 1`
36830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36833 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36834 '') if test "$ac_cv_type_int_p" = yes; then
36835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36836 See \`config.log' for more details." >&5
36837 echo "$as_me: error: cannot compute sizeof (int *)
36838 See \`config.log' for more details." >&2;}
36839 { (exit 77); exit 77; }; }
36841 ac_cv_sizeof_int_p=0
36845 cat >conftest.$ac_ext <<_ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h. */
36851 $ac_includes_default
36852 typedef int * ac__type_sizeof_;
36853 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36854 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36856 #include <stdlib.h>
36861 FILE *f = fopen ("conftest.val", "w");
36864 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36866 long int i = longval ();
36867 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36869 fprintf (f, "%ld\n", i);
36873 unsigned long int i = ulongval ();
36874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36876 fprintf (f, "%lu\n", i);
36878 return ferror (f) || fclose (f) != 0;
36884 rm -f conftest$ac_exeext
36885 if { (ac_try="$ac_link"
36886 case "(($ac_try" in
36887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36888 *) ac_try_echo=$ac_try;;
36890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36891 (eval "$ac_link") 2>&5
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36895 { (case "(($ac_try" in
36896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36897 *) ac_try_echo=$ac_try;;
36899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36900 (eval "$ac_try") 2>&5
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); }; }; then
36904 ac_cv_sizeof_int_p=`cat conftest.val`
36906 echo "$as_me: program exited with status $ac_status" >&5
36907 echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36910 ( exit $ac_status )
36911 if test "$ac_cv_type_int_p" = yes; then
36912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36913 See \`config.log' for more details." >&5
36914 echo "$as_me: error: cannot compute sizeof (int *)
36915 See \`config.log' for more details." >&2;}
36916 { (exit 77); exit 77; }; }
36918 ac_cv_sizeof_int_p=0
36921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36926 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36930 cat >>confdefs.h <<_ACEOF
36931 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36936 { echo "$as_me:$LINENO: checking for u_int type" >&5
36937 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36938 if test "${ac_cv_have_u_int+set}" = set; then
36939 echo $ECHO_N "(cached) $ECHO_C" >&6
36942 cat >conftest.$ac_ext <<_ACEOF
36945 cat confdefs.h >>conftest.$ac_ext
36946 cat >>conftest.$ac_ext <<_ACEOF
36947 /* end confdefs.h. */
36949 #include <sys/types.h>
36961 rm -f conftest.$ac_objext
36962 if { (ac_try="$ac_compile"
36963 case "(($ac_try" in
36964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36965 *) ac_try_echo=$ac_try;;
36967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36968 (eval "$ac_compile") 2>conftest.er1
36970 grep -v '^ *+' conftest.er1 >conftest.err
36972 cat conftest.err >&5
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); } && {
36975 test -z "$ac_c_werror_flag" ||
36976 test ! -s conftest.err
36977 } && test -s conftest.$ac_objext; then
36979 ac_cv_have_u_int="yes"
36982 echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36986 ac_cv_have_u_int="no"
36991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36995 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36996 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36997 if test "x$ac_cv_have_u_int" = "xyes" ; then
36998 cat >>confdefs.h <<\_ACEOF
36999 #define HAVE_U_INT 1
37005 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37006 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37007 if test "${ac_cv_have_intmax_t+set}" = set; then
37008 echo $ECHO_N "(cached) $ECHO_C" >&6
37011 cat >conftest.$ac_ext <<_ACEOF
37014 cat confdefs.h >>conftest.$ac_ext
37015 cat >>conftest.$ac_ext <<_ACEOF
37016 /* end confdefs.h. */
37018 #include <sys/types.h>
37030 rm -f conftest.$ac_objext
37031 if { (ac_try="$ac_compile"
37032 case "(($ac_try" in
37033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37034 *) ac_try_echo=$ac_try;;
37036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37037 (eval "$ac_compile") 2>conftest.er1
37039 grep -v '^ *+' conftest.er1 >conftest.err
37041 cat conftest.err >&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); } && {
37044 test -z "$ac_c_werror_flag" ||
37045 test ! -s conftest.err
37046 } && test -s conftest.$ac_objext; then
37048 ac_cv_have_intmax_t="yes"
37051 echo "$as_me: failed program was:" >&5
37052 sed 's/^/| /' conftest.$ac_ext >&5
37055 cat >conftest.$ac_ext <<_ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h. */
37062 #include <stdint.h>
37074 rm -f conftest.$ac_objext
37075 if { (ac_try="$ac_compile"
37076 case "(($ac_try" in
37077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078 *) ac_try_echo=$ac_try;;
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081 (eval "$ac_compile") 2>conftest.er1
37083 grep -v '^ *+' conftest.er1 >conftest.err
37085 cat conftest.err >&5
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); } && {
37088 test -z "$ac_c_werror_flag" ||
37089 test ! -s conftest.err
37090 } && test -s conftest.$ac_objext; then
37092 ac_cv_have_intmax_t="yes"
37095 echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37099 ac_cv_have_intmax_t="no"
37104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37113 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37114 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37115 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37116 cat >>confdefs.h <<\_ACEOF
37117 #define HAVE_INTMAX_T 1
37123 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37124 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37125 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37126 echo $ECHO_N "(cached) $ECHO_C" >&6
37129 cat >conftest.$ac_ext <<_ACEOF
37132 cat confdefs.h >>conftest.$ac_ext
37133 cat >>conftest.$ac_ext <<_ACEOF
37134 /* end confdefs.h. */
37136 #include <sys/types.h>
37142 u_intmax_t a; a = 1;
37148 rm -f conftest.$ac_objext
37149 if { (ac_try="$ac_compile"
37150 case "(($ac_try" in
37151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152 *) ac_try_echo=$ac_try;;
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155 (eval "$ac_compile") 2>conftest.er1
37157 grep -v '^ *+' conftest.er1 >conftest.err
37159 cat conftest.err >&5
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); } && {
37162 test -z "$ac_c_werror_flag" ||
37163 test ! -s conftest.err
37164 } && test -s conftest.$ac_objext; then
37166 ac_cv_have_u_intmax_t="yes"
37169 echo "$as_me: failed program was:" >&5
37170 sed 's/^/| /' conftest.$ac_ext >&5
37173 cat >conftest.$ac_ext <<_ACEOF
37176 cat confdefs.h >>conftest.$ac_ext
37177 cat >>conftest.$ac_ext <<_ACEOF
37178 /* end confdefs.h. */
37180 #include <stdint.h>
37186 u_intmax_t a; a = 1;
37192 rm -f conftest.$ac_objext
37193 if { (ac_try="$ac_compile"
37194 case "(($ac_try" in
37195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37196 *) ac_try_echo=$ac_try;;
37198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37199 (eval "$ac_compile") 2>conftest.er1
37201 grep -v '^ *+' conftest.er1 >conftest.err
37203 cat conftest.err >&5
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); } && {
37206 test -z "$ac_c_werror_flag" ||
37207 test ! -s conftest.err
37208 } && test -s conftest.$ac_objext; then
37210 ac_cv_have_u_intmax_t="yes"
37213 echo "$as_me: failed program was:" >&5
37214 sed 's/^/| /' conftest.$ac_ext >&5
37217 ac_cv_have_u_intmax_t="no"
37222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37231 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37232 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37233 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37234 cat >>confdefs.h <<\_ACEOF
37235 #define HAVE_U_INTMAX_T 1
37241 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37242 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37243 if test "${ac_cv_have_intxx_t+set}" = set; then
37244 echo $ECHO_N "(cached) $ECHO_C" >&6
37247 cat >conftest.$ac_ext <<_ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h. */
37254 #include <sys/types.h>
37260 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37266 rm -f conftest.$ac_objext
37267 if { (ac_try="$ac_compile"
37268 case "(($ac_try" in
37269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37270 *) ac_try_echo=$ac_try;;
37272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37273 (eval "$ac_compile") 2>conftest.er1
37275 grep -v '^ *+' conftest.er1 >conftest.err
37277 cat conftest.err >&5
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); } && {
37280 test -z "$ac_c_werror_flag" ||
37281 test ! -s conftest.err
37282 } && test -s conftest.$ac_objext; then
37284 ac_cv_have_intxx_t="yes"
37287 echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37291 ac_cv_have_intxx_t="no"
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37300 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37301 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37302 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37303 cat >>confdefs.h <<\_ACEOF
37304 #define HAVE_INTXX_T 1
37310 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37311 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37312 if test "${ac_cv_have_int64_t+set}" = set; then
37313 echo $ECHO_N "(cached) $ECHO_C" >&6
37316 cat >conftest.$ac_ext <<_ACEOF
37319 cat confdefs.h >>conftest.$ac_ext
37320 cat >>conftest.$ac_ext <<_ACEOF
37321 /* end confdefs.h. */
37323 #include <sys/types.h>
37335 rm -f conftest.$ac_objext
37336 if { (ac_try="$ac_compile"
37337 case "(($ac_try" in
37338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37339 *) ac_try_echo=$ac_try;;
37341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37342 (eval "$ac_compile") 2>conftest.er1
37344 grep -v '^ *+' conftest.er1 >conftest.err
37346 cat conftest.err >&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } && {
37349 test -z "$ac_c_werror_flag" ||
37350 test ! -s conftest.err
37351 } && test -s conftest.$ac_objext; then
37353 ac_cv_have_int64_t="yes"
37356 echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37360 ac_cv_have_int64_t="no"
37365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37369 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37370 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37371 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37372 cat >>confdefs.h <<\_ACEOF
37373 #define HAVE_INT64_T 1
37379 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37380 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37381 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37382 echo $ECHO_N "(cached) $ECHO_C" >&6
37385 cat >conftest.$ac_ext <<_ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37392 #include <sys/types.h>
37398 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37404 rm -f conftest.$ac_objext
37405 if { (ac_try="$ac_compile"
37406 case "(($ac_try" in
37407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37408 *) ac_try_echo=$ac_try;;
37410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37411 (eval "$ac_compile") 2>conftest.er1
37413 grep -v '^ *+' conftest.er1 >conftest.err
37415 cat conftest.err >&5
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } && {
37418 test -z "$ac_c_werror_flag" ||
37419 test ! -s conftest.err
37420 } && test -s conftest.$ac_objext; then
37422 ac_cv_have_u_intxx_t="yes"
37425 echo "$as_me: failed program was:" >&5
37426 sed 's/^/| /' conftest.$ac_ext >&5
37429 ac_cv_have_u_intxx_t="no"
37434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37438 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37439 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37440 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37441 cat >>confdefs.h <<\_ACEOF
37442 #define HAVE_U_INTXX_T 1
37448 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37449 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37450 if test "${ac_cv_have_u_int64_t+set}" = set; then
37451 echo $ECHO_N "(cached) $ECHO_C" >&6
37454 cat >conftest.$ac_ext <<_ACEOF
37457 cat confdefs.h >>conftest.$ac_ext
37458 cat >>conftest.$ac_ext <<_ACEOF
37459 /* end confdefs.h. */
37461 #include <sys/types.h>
37467 u_int64_t a; a = 1;
37473 rm -f conftest.$ac_objext
37474 if { (ac_try="$ac_compile"
37475 case "(($ac_try" in
37476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37477 *) ac_try_echo=$ac_try;;
37479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37480 (eval "$ac_compile") 2>conftest.er1
37482 grep -v '^ *+' conftest.er1 >conftest.err
37484 cat conftest.err >&5
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); } && {
37487 test -z "$ac_c_werror_flag" ||
37488 test ! -s conftest.err
37489 } && test -s conftest.$ac_objext; then
37491 ac_cv_have_u_int64_t="yes"
37494 echo "$as_me: failed program was:" >&5
37495 sed 's/^/| /' conftest.$ac_ext >&5
37498 ac_cv_have_u_int64_t="no"
37503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37507 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37508 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37509 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37510 cat >>confdefs.h <<\_ACEOF
37511 #define HAVE_U_INT64_T 1
37517 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37518 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37520 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37521 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37522 cat >conftest.$ac_ext <<_ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37529 #include <sys/bitypes.h>
37535 int8_t a; int16_t b; int32_t c;
37536 u_int8_t e; u_int16_t f; u_int32_t g;
37537 a = b = c = e = f = g = 1;
37543 rm -f conftest.$ac_objext
37544 if { (ac_try="$ac_compile"
37545 case "(($ac_try" in
37546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547 *) ac_try_echo=$ac_try;;
37549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37550 (eval "$ac_compile") 2>conftest.er1
37552 grep -v '^ *+' conftest.er1 >conftest.err
37554 cat conftest.err >&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); } && {
37557 test -z "$ac_c_werror_flag" ||
37558 test ! -s conftest.err
37559 } && test -s conftest.$ac_objext; then
37561 cat >>confdefs.h <<\_ACEOF
37562 #define HAVE_U_INTXX_T 1
37565 cat >>confdefs.h <<\_ACEOF
37566 #define HAVE_INTXX_T 1
37569 cat >>confdefs.h <<\_ACEOF
37570 #define HAVE_SYS_BITYPES_H 1
37573 { echo "$as_me:$LINENO: result: yes" >&5
37574 echo "${ECHO_T}yes" >&6; }
37577 echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37581 { echo "$as_me:$LINENO: result: no" >&5
37582 echo "${ECHO_T}no" >&6; }
37587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37590 if test -z "$have_u_intxx_t" ; then
37591 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37592 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37593 if test "${ac_cv_have_uintxx_t+set}" = set; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37597 cat >conftest.$ac_ext <<_ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37604 #include <sys/types.h>
37610 uint8_t a; uint16_t b;
37611 uint32_t c; a = b = c = 1;
37617 rm -f conftest.$ac_objext
37618 if { (ac_try="$ac_compile"
37619 case "(($ac_try" in
37620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37621 *) ac_try_echo=$ac_try;;
37623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37624 (eval "$ac_compile") 2>conftest.er1
37626 grep -v '^ *+' conftest.er1 >conftest.err
37628 cat conftest.err >&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); } && {
37631 test -z "$ac_c_werror_flag" ||
37632 test ! -s conftest.err
37633 } && test -s conftest.$ac_objext; then
37635 ac_cv_have_uintxx_t="yes"
37638 echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37642 ac_cv_have_uintxx_t="no"
37647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37651 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37652 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37653 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37654 cat >>confdefs.h <<\_ACEOF
37655 #define HAVE_UINTXX_T 1
37661 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37662 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37664 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37665 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37666 cat >conftest.$ac_ext <<_ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h. */
37673 #include <sys/bitypes.h>
37679 int64_t a; u_int64_t b;
37686 rm -f conftest.$ac_objext
37687 if { (ac_try="$ac_compile"
37688 case "(($ac_try" in
37689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37690 *) ac_try_echo=$ac_try;;
37692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37693 (eval "$ac_compile") 2>conftest.er1
37695 grep -v '^ *+' conftest.er1 >conftest.err
37697 cat conftest.err >&5
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); } && {
37700 test -z "$ac_c_werror_flag" ||
37701 test ! -s conftest.err
37702 } && test -s conftest.$ac_objext; then
37704 cat >>confdefs.h <<\_ACEOF
37705 #define HAVE_U_INT64_T 1
37708 cat >>confdefs.h <<\_ACEOF
37709 #define HAVE_INT64_T 1
37712 { echo "$as_me:$LINENO: result: yes" >&5
37713 echo "${ECHO_T}yes" >&6; }
37716 echo "$as_me: failed program was:" >&5
37717 sed 's/^/| /' conftest.$ac_ext >&5
37720 { echo "$as_me:$LINENO: result: no" >&5
37721 echo "${ECHO_T}no" >&6; }
37726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37729 if (test -z "$have_uintxx_t" && \
37730 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37732 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37733 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37734 cat >conftest.$ac_ext <<_ACEOF
37737 cat confdefs.h >>conftest.$ac_ext
37738 cat >>conftest.$ac_ext <<_ACEOF
37739 /* end confdefs.h. */
37741 #include <sys/bitypes.h>
37747 uint8_t a; uint16_t b;
37748 uint32_t c; a = b = c = 1;
37754 rm -f conftest.$ac_objext
37755 if { (ac_try="$ac_compile"
37756 case "(($ac_try" in
37757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37758 *) ac_try_echo=$ac_try;;
37760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37761 (eval "$ac_compile") 2>conftest.er1
37763 grep -v '^ *+' conftest.er1 >conftest.err
37765 cat conftest.err >&5
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); } && {
37768 test -z "$ac_c_werror_flag" ||
37769 test ! -s conftest.err
37770 } && test -s conftest.$ac_objext; then
37772 cat >>confdefs.h <<\_ACEOF
37773 #define HAVE_UINTXX_T 1
37776 { echo "$as_me:$LINENO: result: yes" >&5
37777 echo "${ECHO_T}yes" >&6; }
37780 echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37784 { echo "$as_me:$LINENO: result: no" >&5
37785 echo "${ECHO_T}no" >&6; }
37790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37826 echo $ECHO_N "(cached) $ECHO_C" >&6
37828 cat >conftest.$ac_ext <<_ACEOF
37831 cat confdefs.h >>conftest.$ac_ext
37832 cat >>conftest.$ac_ext <<_ACEOF
37833 /* end confdefs.h. */
37834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37836 #define $ac_func innocuous_$ac_func
37838 /* System header to define __stub macros and hopefully few prototypes,
37839 which can conflict with char $ac_func (); below.
37840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37841 <limits.h> exists even on freestanding compilers. */
37844 # include <limits.h>
37846 # include <assert.h>
37851 /* Override any GCC internal prototype to avoid an error.
37852 Use char because int might match the return type of a GCC
37853 builtin and then its argument prototype would still apply. */
37858 /* The GNU C library defines this for functions which it implements
37859 to always fail with ENOSYS. Some functions are actually named
37860 something starting with __ and the normal name is an alias. */
37861 #if defined __stub_$ac_func || defined __stub___$ac_func
37868 return $ac_func ();
37873 rm -f conftest.$ac_objext conftest$ac_exeext
37874 if { (ac_try="$ac_link"
37875 case "(($ac_try" in
37876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37877 *) ac_try_echo=$ac_try;;
37879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37880 (eval "$ac_link") 2>conftest.er1
37882 grep -v '^ *+' conftest.er1 >conftest.err
37884 cat conftest.err >&5
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); } && {
37887 test -z "$ac_c_werror_flag" ||
37888 test ! -s conftest.err
37889 } && test -s conftest$ac_exeext &&
37890 $as_test_x conftest$ac_exeext; then
37891 eval "$as_ac_var=yes"
37893 echo "$as_me: failed program was:" >&5
37894 sed 's/^/| /' conftest.$ac_ext >&5
37896 eval "$as_ac_var=no"
37899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37900 conftest$ac_exeext conftest.$ac_ext
37902 ac_res=`eval echo '${'$as_ac_var'}'`
37903 { echo "$as_me:$LINENO: result: $ac_res" >&5
37904 echo "${ECHO_T}$ac_res" >&6; }
37905 if test `eval echo '${'$as_ac_var'}'` = yes; then
37906 cat >>confdefs.h <<_ACEOF
37907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37911 echo 'configure: cannot find needed function.'; exit 1
37918 for ac_func in fchdir
37920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37924 echo $ECHO_N "(cached) $ECHO_C" >&6
37926 cat >conftest.$ac_ext <<_ACEOF
37929 cat confdefs.h >>conftest.$ac_ext
37930 cat >>conftest.$ac_ext <<_ACEOF
37931 /* end confdefs.h. */
37932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37934 #define $ac_func innocuous_$ac_func
37936 /* System header to define __stub macros and hopefully few prototypes,
37937 which can conflict with char $ac_func (); below.
37938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37939 <limits.h> exists even on freestanding compilers. */
37942 # include <limits.h>
37944 # include <assert.h>
37949 /* Override any GCC internal prototype to avoid an error.
37950 Use char because int might match the return type of a GCC
37951 builtin and then its argument prototype would still apply. */
37956 /* The GNU C library defines this for functions which it implements
37957 to always fail with ENOSYS. Some functions are actually named
37958 something starting with __ and the normal name is an alias. */
37959 #if defined __stub_$ac_func || defined __stub___$ac_func
37966 return $ac_func ();
37971 rm -f conftest.$ac_objext conftest$ac_exeext
37972 if { (ac_try="$ac_link"
37973 case "(($ac_try" in
37974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37975 *) ac_try_echo=$ac_try;;
37977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37978 (eval "$ac_link") 2>conftest.er1
37980 grep -v '^ *+' conftest.er1 >conftest.err
37982 cat conftest.err >&5
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); } && {
37985 test -z "$ac_c_werror_flag" ||
37986 test ! -s conftest.err
37987 } && test -s conftest$ac_exeext &&
37988 $as_test_x conftest$ac_exeext; then
37989 eval "$as_ac_var=yes"
37991 echo "$as_me: failed program was:" >&5
37992 sed 's/^/| /' conftest.$ac_ext >&5
37994 eval "$as_ac_var=no"
37997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37998 conftest$ac_exeext conftest.$ac_ext
38000 ac_res=`eval echo '${'$as_ac_var'}'`
38001 { echo "$as_me:$LINENO: result: $ac_res" >&5
38002 echo "${ECHO_T}$ac_res" >&6; }
38003 if test `eval echo '${'$as_ac_var'}'` = yes; then
38004 cat >>confdefs.h <<_ACEOF
38005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38007 cat >>confdefs.h <<\_ACEOF
38008 #define HAVE_FCHDIR 1
38015 for ac_func in strtoll
38017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38021 echo $ECHO_N "(cached) $ECHO_C" >&6
38023 cat >conftest.$ac_ext <<_ACEOF
38026 cat confdefs.h >>conftest.$ac_ext
38027 cat >>conftest.$ac_ext <<_ACEOF
38028 /* end confdefs.h. */
38029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38031 #define $ac_func innocuous_$ac_func
38033 /* System header to define __stub macros and hopefully few prototypes,
38034 which can conflict with char $ac_func (); below.
38035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38036 <limits.h> exists even on freestanding compilers. */
38039 # include <limits.h>
38041 # include <assert.h>
38046 /* Override any GCC internal prototype to avoid an error.
38047 Use char because int might match the return type of a GCC
38048 builtin and then its argument prototype would still apply. */
38053 /* The GNU C library defines this for functions which it implements
38054 to always fail with ENOSYS. Some functions are actually named
38055 something starting with __ and the normal name is an alias. */
38056 #if defined __stub_$ac_func || defined __stub___$ac_func
38063 return $ac_func ();
38068 rm -f conftest.$ac_objext conftest$ac_exeext
38069 if { (ac_try="$ac_link"
38070 case "(($ac_try" in
38071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38072 *) ac_try_echo=$ac_try;;
38074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38075 (eval "$ac_link") 2>conftest.er1
38077 grep -v '^ *+' conftest.er1 >conftest.err
38079 cat conftest.err >&5
38080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081 (exit $ac_status); } && {
38082 test -z "$ac_c_werror_flag" ||
38083 test ! -s conftest.err
38084 } && test -s conftest$ac_exeext &&
38085 $as_test_x conftest$ac_exeext; then
38086 eval "$as_ac_var=yes"
38088 echo "$as_me: failed program was:" >&5
38089 sed 's/^/| /' conftest.$ac_ext >&5
38091 eval "$as_ac_var=no"
38094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38095 conftest$ac_exeext conftest.$ac_ext
38097 ac_res=`eval echo '${'$as_ac_var'}'`
38098 { echo "$as_me:$LINENO: result: $ac_res" >&5
38099 echo "${ECHO_T}$ac_res" >&6; }
38100 if test `eval echo '${'$as_ac_var'}'` = yes; then
38101 cat >>confdefs.h <<_ACEOF
38102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38104 cat >>confdefs.h <<\_ACEOF
38105 #define HAVE_STRTOLL 1
38112 for ac_func in posix_fadvise
38114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38118 echo $ECHO_N "(cached) $ECHO_C" >&6
38120 cat >conftest.$ac_ext <<_ACEOF
38123 cat confdefs.h >>conftest.$ac_ext
38124 cat >>conftest.$ac_ext <<_ACEOF
38125 /* end confdefs.h. */
38126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38128 #define $ac_func innocuous_$ac_func
38130 /* System header to define __stub macros and hopefully few prototypes,
38131 which can conflict with char $ac_func (); below.
38132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38133 <limits.h> exists even on freestanding compilers. */
38136 # include <limits.h>
38138 # include <assert.h>
38143 /* Override any GCC internal prototype to avoid an error.
38144 Use char because int might match the return type of a GCC
38145 builtin and then its argument prototype would still apply. */
38150 /* The GNU C library defines this for functions which it implements
38151 to always fail with ENOSYS. Some functions are actually named
38152 something starting with __ and the normal name is an alias. */
38153 #if defined __stub_$ac_func || defined __stub___$ac_func
38160 return $ac_func ();
38165 rm -f conftest.$ac_objext conftest$ac_exeext
38166 if { (ac_try="$ac_link"
38167 case "(($ac_try" in
38168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38169 *) ac_try_echo=$ac_try;;
38171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38172 (eval "$ac_link") 2>conftest.er1
38174 grep -v '^ *+' conftest.er1 >conftest.err
38176 cat conftest.err >&5
38177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38178 (exit $ac_status); } && {
38179 test -z "$ac_c_werror_flag" ||
38180 test ! -s conftest.err
38181 } && test -s conftest$ac_exeext &&
38182 $as_test_x conftest$ac_exeext; then
38183 eval "$as_ac_var=yes"
38185 echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38188 eval "$as_ac_var=no"
38191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38192 conftest$ac_exeext conftest.$ac_ext
38194 ac_res=`eval echo '${'$as_ac_var'}'`
38195 { echo "$as_me:$LINENO: result: $ac_res" >&5
38196 echo "${ECHO_T}$ac_res" >&6; }
38197 if test `eval echo '${'$as_ac_var'}'` = yes; then
38198 cat >>confdefs.h <<_ACEOF
38199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38206 for ac_func in fdatasync
38208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38212 echo $ECHO_N "(cached) $ECHO_C" >&6
38214 cat >conftest.$ac_ext <<_ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h. */
38220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38222 #define $ac_func innocuous_$ac_func
38224 /* System header to define __stub macros and hopefully few prototypes,
38225 which can conflict with char $ac_func (); below.
38226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38227 <limits.h> exists even on freestanding compilers. */
38230 # include <limits.h>
38232 # include <assert.h>
38237 /* Override any GCC internal prototype to avoid an error.
38238 Use char because int might match the return type of a GCC
38239 builtin and then its argument prototype would still apply. */
38244 /* The GNU C library defines this for functions which it implements
38245 to always fail with ENOSYS. Some functions are actually named
38246 something starting with __ and the normal name is an alias. */
38247 #if defined __stub_$ac_func || defined __stub___$ac_func
38254 return $ac_func ();
38259 rm -f conftest.$ac_objext conftest$ac_exeext
38260 if { (ac_try="$ac_link"
38261 case "(($ac_try" in
38262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38263 *) ac_try_echo=$ac_try;;
38265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38266 (eval "$ac_link") 2>conftest.er1
38268 grep -v '^ *+' conftest.er1 >conftest.err
38270 cat conftest.err >&5
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); } && {
38273 test -z "$ac_c_werror_flag" ||
38274 test ! -s conftest.err
38275 } && test -s conftest$ac_exeext &&
38276 $as_test_x conftest$ac_exeext; then
38277 eval "$as_ac_var=yes"
38279 echo "$as_me: failed program was:" >&5
38280 sed 's/^/| /' conftest.$ac_ext >&5
38282 eval "$as_ac_var=no"
38285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38286 conftest$ac_exeext conftest.$ac_ext
38288 ac_res=`eval echo '${'$as_ac_var'}'`
38289 { echo "$as_me:$LINENO: result: $ac_res" >&5
38290 echo "${ECHO_T}$ac_res" >&6; }
38291 if test `eval echo '${'$as_ac_var'}'` = yes; then
38292 cat >>confdefs.h <<_ACEOF
38293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38301 for ac_func in chflags
38303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38307 echo $ECHO_N "(cached) $ECHO_C" >&6
38309 cat >conftest.$ac_ext <<_ACEOF
38312 cat confdefs.h >>conftest.$ac_ext
38313 cat >>conftest.$ac_ext <<_ACEOF
38314 /* end confdefs.h. */
38315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38317 #define $ac_func innocuous_$ac_func
38319 /* System header to define __stub macros and hopefully few prototypes,
38320 which can conflict with char $ac_func (); below.
38321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38322 <limits.h> exists even on freestanding compilers. */
38325 # include <limits.h>
38327 # include <assert.h>
38332 /* Override any GCC internal prototype to avoid an error.
38333 Use char because int might match the return type of a GCC
38334 builtin and then its argument prototype would still apply. */
38339 /* The GNU C library defines this for functions which it implements
38340 to always fail with ENOSYS. Some functions are actually named
38341 something starting with __ and the normal name is an alias. */
38342 #if defined __stub_$ac_func || defined __stub___$ac_func
38349 return $ac_func ();
38354 rm -f conftest.$ac_objext conftest$ac_exeext
38355 if { (ac_try="$ac_link"
38356 case "(($ac_try" in
38357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38358 *) ac_try_echo=$ac_try;;
38360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38361 (eval "$ac_link") 2>conftest.er1
38363 grep -v '^ *+' conftest.er1 >conftest.err
38365 cat conftest.err >&5
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); } && {
38368 test -z "$ac_c_werror_flag" ||
38369 test ! -s conftest.err
38370 } && test -s conftest$ac_exeext &&
38371 $as_test_x conftest$ac_exeext; then
38372 eval "$as_ac_var=yes"
38374 echo "$as_me: failed program was:" >&5
38375 sed 's/^/| /' conftest.$ac_ext >&5
38377 eval "$as_ac_var=no"
38380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38381 conftest$ac_exeext conftest.$ac_ext
38383 ac_res=`eval echo '${'$as_ac_var'}'`
38384 { echo "$as_me:$LINENO: result: $ac_res" >&5
38385 echo "${ECHO_T}$ac_res" >&6; }
38386 if test `eval echo '${'$as_ac_var'}'` = yes; then
38387 cat >>confdefs.h <<_ACEOF
38388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38399 for ac_func in snprintf vsnprintf gethostid fseeko
38401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38405 echo $ECHO_N "(cached) $ECHO_C" >&6
38407 cat >conftest.$ac_ext <<_ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h. */
38413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38415 #define $ac_func innocuous_$ac_func
38417 /* System header to define __stub macros and hopefully few prototypes,
38418 which can conflict with char $ac_func (); below.
38419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38420 <limits.h> exists even on freestanding compilers. */
38423 # include <limits.h>
38425 # include <assert.h>
38430 /* Override any GCC internal prototype to avoid an error.
38431 Use char because int might match the return type of a GCC
38432 builtin and then its argument prototype would still apply. */
38437 /* The GNU C library defines this for functions which it implements
38438 to always fail with ENOSYS. Some functions are actually named
38439 something starting with __ and the normal name is an alias. */
38440 #if defined __stub_$ac_func || defined __stub___$ac_func
38447 return $ac_func ();
38452 rm -f conftest.$ac_objext conftest$ac_exeext
38453 if { (ac_try="$ac_link"
38454 case "(($ac_try" in
38455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38456 *) ac_try_echo=$ac_try;;
38458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38459 (eval "$ac_link") 2>conftest.er1
38461 grep -v '^ *+' conftest.er1 >conftest.err
38463 cat conftest.err >&5
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); } && {
38466 test -z "$ac_c_werror_flag" ||
38467 test ! -s conftest.err
38468 } && test -s conftest$ac_exeext &&
38469 $as_test_x conftest$ac_exeext; then
38470 eval "$as_ac_var=yes"
38472 echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38475 eval "$as_ac_var=no"
38478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38479 conftest$ac_exeext conftest.$ac_ext
38481 ac_res=`eval echo '${'$as_ac_var'}'`
38482 { echo "$as_me:$LINENO: result: $ac_res" >&5
38483 echo "${ECHO_T}$ac_res" >&6; }
38484 if test `eval echo '${'$as_ac_var'}'` = yes; then
38485 cat >>confdefs.h <<_ACEOF
38486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38493 { echo "$as_me:$LINENO: checking for va_copy" >&5
38494 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38495 if test "${ba_cv_va_copy+set}" = set; then
38496 echo $ECHO_N "(cached) $ECHO_C" >&6
38499 cat >conftest.$ac_ext <<_ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h. */
38506 #include <stdarg.h>
38507 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38508 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38514 call_use_va_copy(1,2,3)
38520 rm -f conftest.$ac_objext conftest$ac_exeext
38521 if { (ac_try="$ac_link"
38522 case "(($ac_try" in
38523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524 *) ac_try_echo=$ac_try;;
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527 (eval "$ac_link") 2>conftest.er1
38529 grep -v '^ *+' conftest.er1 >conftest.err
38531 cat conftest.err >&5
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); } && {
38534 test -z "$ac_c_werror_flag" ||
38535 test ! -s conftest.err
38536 } && test -s conftest$ac_exeext &&
38537 $as_test_x conftest$ac_exeext; then
38542 echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38552 conftest$ac_exeext conftest.$ac_ext
38556 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38557 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38558 test $ba_cv_va_copy = yes &&
38559 cat >>confdefs.h <<\_ACEOF
38560 #define HAVE_VA_COPY 1
38568 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38574 echo $ECHO_N "(cached) $ECHO_C" >&6
38576 cat >conftest.$ac_ext <<_ACEOF
38579 cat confdefs.h >>conftest.$ac_ext
38580 cat >>conftest.$ac_ext <<_ACEOF
38581 /* end confdefs.h. */
38582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38584 #define $ac_func innocuous_$ac_func
38586 /* System header to define __stub macros and hopefully few prototypes,
38587 which can conflict with char $ac_func (); below.
38588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38589 <limits.h> exists even on freestanding compilers. */
38592 # include <limits.h>
38594 # include <assert.h>
38599 /* Override any GCC internal prototype to avoid an error.
38600 Use char because int might match the return type of a GCC
38601 builtin and then its argument prototype would still apply. */
38606 /* The GNU C library defines this for functions which it implements
38607 to always fail with ENOSYS. Some functions are actually named
38608 something starting with __ and the normal name is an alias. */
38609 #if defined __stub_$ac_func || defined __stub___$ac_func
38616 return $ac_func ();
38621 rm -f conftest.$ac_objext conftest$ac_exeext
38622 if { (ac_try="$ac_link"
38623 case "(($ac_try" in
38624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38625 *) ac_try_echo=$ac_try;;
38627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38628 (eval "$ac_link") 2>conftest.er1
38630 grep -v '^ *+' conftest.er1 >conftest.err
38632 cat conftest.err >&5
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); } && {
38635 test -z "$ac_c_werror_flag" ||
38636 test ! -s conftest.err
38637 } && test -s conftest$ac_exeext &&
38638 $as_test_x conftest$ac_exeext; then
38639 eval "$as_ac_var=yes"
38641 echo "$as_me: failed program was:" >&5
38642 sed 's/^/| /' conftest.$ac_ext >&5
38644 eval "$as_ac_var=no"
38647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38648 conftest$ac_exeext conftest.$ac_ext
38650 ac_res=`eval echo '${'$as_ac_var'}'`
38651 { echo "$as_me:$LINENO: result: $ac_res" >&5
38652 echo "${ECHO_T}$ac_res" >&6; }
38653 if test `eval echo '${'$as_ac_var'}'` = yes; then
38654 cat >>confdefs.h <<_ACEOF
38655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38662 # If resolver functions are not in libc check for -lnsl or -lresolv.
38663 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38664 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38665 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38666 echo $ECHO_N "(cached) $ECHO_C" >&6
38668 cat >conftest.$ac_ext <<_ACEOF
38671 cat confdefs.h >>conftest.$ac_ext
38672 cat >>conftest.$ac_ext <<_ACEOF
38673 /* end confdefs.h. */
38674 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38676 #define gethostbyname_r innocuous_gethostbyname_r
38678 /* System header to define __stub macros and hopefully few prototypes,
38679 which can conflict with char gethostbyname_r (); below.
38680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38681 <limits.h> exists even on freestanding compilers. */
38684 # include <limits.h>
38686 # include <assert.h>
38689 #undef gethostbyname_r
38691 /* Override any GCC internal prototype to avoid an error.
38692 Use char because int might match the return type of a GCC
38693 builtin and then its argument prototype would still apply. */
38697 char gethostbyname_r ();
38698 /* The GNU C library defines this for functions which it implements
38699 to always fail with ENOSYS. Some functions are actually named
38700 something starting with __ and the normal name is an alias. */
38701 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38708 return gethostbyname_r ();
38713 rm -f conftest.$ac_objext conftest$ac_exeext
38714 if { (ac_try="$ac_link"
38715 case "(($ac_try" in
38716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38717 *) ac_try_echo=$ac_try;;
38719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38720 (eval "$ac_link") 2>conftest.er1
38722 grep -v '^ *+' conftest.er1 >conftest.err
38724 cat conftest.err >&5
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); } && {
38727 test -z "$ac_c_werror_flag" ||
38728 test ! -s conftest.err
38729 } && test -s conftest$ac_exeext &&
38730 $as_test_x conftest$ac_exeext; then
38731 ac_cv_func_gethostbyname_r=yes
38733 echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38736 ac_cv_func_gethostbyname_r=no
38739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38740 conftest$ac_exeext conftest.$ac_ext
38742 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38743 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38744 if test $ac_cv_func_gethostbyname_r = yes; then
38745 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38746 echo "${ECHO_T}using libc's resolver" >&6; }
38749 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38750 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38751 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38752 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 ac_check_lib_save_LIBS=$LIBS
38756 cat >conftest.$ac_ext <<_ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38763 /* Override any GCC internal prototype to avoid an error.
38764 Use char because int might match the return type of a GCC
38765 builtin and then its argument prototype would still apply. */
38769 char gethostbyname_r ();
38773 return gethostbyname_r ();
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (ac_try="$ac_link"
38780 case "(($ac_try" in
38781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782 *) ac_try_echo=$ac_try;;
38784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38785 (eval "$ac_link") 2>conftest.er1
38787 grep -v '^ *+' conftest.er1 >conftest.err
38789 cat conftest.err >&5
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); } && {
38792 test -z "$ac_c_werror_flag" ||
38793 test ! -s conftest.err
38794 } && test -s conftest$ac_exeext &&
38795 $as_test_x conftest$ac_exeext; then
38796 ac_cv_lib_nsl_gethostbyname_r=yes
38798 echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38801 ac_cv_lib_nsl_gethostbyname_r=no
38804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38805 conftest$ac_exeext conftest.$ac_ext
38806 LIBS=$ac_check_lib_save_LIBS
38808 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38809 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38810 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38811 cat >>confdefs.h <<_ACEOF
38812 #define HAVE_LIBNSL 1
38820 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38821 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38822 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38823 echo $ECHO_N "(cached) $ECHO_C" >&6
38825 ac_check_lib_save_LIBS=$LIBS
38826 LIBS="-lresolv $LIBS"
38827 cat >conftest.$ac_ext <<_ACEOF
38830 cat confdefs.h >>conftest.$ac_ext
38831 cat >>conftest.$ac_ext <<_ACEOF
38832 /* end confdefs.h. */
38834 /* Override any GCC internal prototype to avoid an error.
38835 Use char because int might match the return type of a GCC
38836 builtin and then its argument prototype would still apply. */
38840 char gethostbyname_r ();
38844 return gethostbyname_r ();
38849 rm -f conftest.$ac_objext conftest$ac_exeext
38850 if { (ac_try="$ac_link"
38851 case "(($ac_try" in
38852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38853 *) ac_try_echo=$ac_try;;
38855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38856 (eval "$ac_link") 2>conftest.er1
38858 grep -v '^ *+' conftest.er1 >conftest.err
38860 cat conftest.err >&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); } && {
38863 test -z "$ac_c_werror_flag" ||
38864 test ! -s conftest.err
38865 } && test -s conftest$ac_exeext &&
38866 $as_test_x conftest$ac_exeext; then
38867 ac_cv_lib_resolv_gethostbyname_r=yes
38869 echo "$as_me: failed program was:" >&5
38870 sed 's/^/| /' conftest.$ac_ext >&5
38872 ac_cv_lib_resolv_gethostbyname_r=no
38875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38876 conftest$ac_exeext conftest.$ac_ext
38877 LIBS=$ac_check_lib_save_LIBS
38879 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38880 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38881 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38882 cat >>confdefs.h <<_ACEOF
38883 #define HAVE_LIBRESOLV 1
38886 LIBS="-lresolv $LIBS"
38894 for ac_func in inet_pton
38896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38900 echo $ECHO_N "(cached) $ECHO_C" >&6
38902 cat >conftest.$ac_ext <<_ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h. */
38908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38910 #define $ac_func innocuous_$ac_func
38912 /* System header to define __stub macros and hopefully few prototypes,
38913 which can conflict with char $ac_func (); below.
38914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38915 <limits.h> exists even on freestanding compilers. */
38918 # include <limits.h>
38920 # include <assert.h>
38925 /* Override any GCC internal prototype to avoid an error.
38926 Use char because int might match the return type of a GCC
38927 builtin and then its argument prototype would still apply. */
38932 /* The GNU C library defines this for functions which it implements
38933 to always fail with ENOSYS. Some functions are actually named
38934 something starting with __ and the normal name is an alias. */
38935 #if defined __stub_$ac_func || defined __stub___$ac_func
38942 return $ac_func ();
38947 rm -f conftest.$ac_objext conftest$ac_exeext
38948 if { (ac_try="$ac_link"
38949 case "(($ac_try" in
38950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38951 *) ac_try_echo=$ac_try;;
38953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38954 (eval "$ac_link") 2>conftest.er1
38956 grep -v '^ *+' conftest.er1 >conftest.err
38958 cat conftest.err >&5
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); } && {
38961 test -z "$ac_c_werror_flag" ||
38962 test ! -s conftest.err
38963 } && test -s conftest$ac_exeext &&
38964 $as_test_x conftest$ac_exeext; then
38965 eval "$as_ac_var=yes"
38967 echo "$as_me: failed program was:" >&5
38968 sed 's/^/| /' conftest.$ac_ext >&5
38970 eval "$as_ac_var=no"
38973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38974 conftest$ac_exeext conftest.$ac_ext
38976 ac_res=`eval echo '${'$as_ac_var'}'`
38977 { echo "$as_me:$LINENO: result: $ac_res" >&5
38978 echo "${ECHO_T}$ac_res" >&6; }
38979 if test `eval echo '${'$as_ac_var'}'` = yes; then
38980 cat >>confdefs.h <<_ACEOF
38981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38983 cat >>confdefs.h <<\_ACEOF
38984 #define HAVE_INET_PTON 1
38991 for ac_func in inet_ntop
38993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38997 echo $ECHO_N "(cached) $ECHO_C" >&6
38999 cat >conftest.$ac_ext <<_ACEOF
39002 cat confdefs.h >>conftest.$ac_ext
39003 cat >>conftest.$ac_ext <<_ACEOF
39004 /* end confdefs.h. */
39005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39007 #define $ac_func innocuous_$ac_func
39009 /* System header to define __stub macros and hopefully few prototypes,
39010 which can conflict with char $ac_func (); below.
39011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39012 <limits.h> exists even on freestanding compilers. */
39015 # include <limits.h>
39017 # include <assert.h>
39022 /* Override any GCC internal prototype to avoid an error.
39023 Use char because int might match the return type of a GCC
39024 builtin and then its argument prototype would still apply. */
39029 /* The GNU C library defines this for functions which it implements
39030 to always fail with ENOSYS. Some functions are actually named
39031 something starting with __ and the normal name is an alias. */
39032 #if defined __stub_$ac_func || defined __stub___$ac_func
39039 return $ac_func ();
39044 rm -f conftest.$ac_objext conftest$ac_exeext
39045 if { (ac_try="$ac_link"
39046 case "(($ac_try" in
39047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39048 *) ac_try_echo=$ac_try;;
39050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39051 (eval "$ac_link") 2>conftest.er1
39053 grep -v '^ *+' conftest.er1 >conftest.err
39055 cat conftest.err >&5
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); } && {
39058 test -z "$ac_c_werror_flag" ||
39059 test ! -s conftest.err
39060 } && test -s conftest$ac_exeext &&
39061 $as_test_x conftest$ac_exeext; then
39062 eval "$as_ac_var=yes"
39064 echo "$as_me: failed program was:" >&5
39065 sed 's/^/| /' conftest.$ac_ext >&5
39067 eval "$as_ac_var=no"
39070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39071 conftest$ac_exeext conftest.$ac_ext
39073 ac_res=`eval echo '${'$as_ac_var'}'`
39074 { echo "$as_me:$LINENO: result: $ac_res" >&5
39075 echo "${ECHO_T}$ac_res" >&6; }
39076 if test `eval echo '${'$as_ac_var'}'` = yes; then
39077 cat >>confdefs.h <<_ACEOF
39078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39080 cat >>confdefs.h <<\_ACEOF
39081 #define HAVE_INET_NTOP 1
39088 for ac_func in gethostbyname2
39090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39094 echo $ECHO_N "(cached) $ECHO_C" >&6
39096 cat >conftest.$ac_ext <<_ACEOF
39099 cat confdefs.h >>conftest.$ac_ext
39100 cat >>conftest.$ac_ext <<_ACEOF
39101 /* end confdefs.h. */
39102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39104 #define $ac_func innocuous_$ac_func
39106 /* System header to define __stub macros and hopefully few prototypes,
39107 which can conflict with char $ac_func (); below.
39108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39109 <limits.h> exists even on freestanding compilers. */
39112 # include <limits.h>
39114 # include <assert.h>
39119 /* Override any GCC internal prototype to avoid an error.
39120 Use char because int might match the return type of a GCC
39121 builtin and then its argument prototype would still apply. */
39126 /* The GNU C library defines this for functions which it implements
39127 to always fail with ENOSYS. Some functions are actually named
39128 something starting with __ and the normal name is an alias. */
39129 #if defined __stub_$ac_func || defined __stub___$ac_func
39136 return $ac_func ();
39141 rm -f conftest.$ac_objext conftest$ac_exeext
39142 if { (ac_try="$ac_link"
39143 case "(($ac_try" in
39144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39145 *) ac_try_echo=$ac_try;;
39147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39148 (eval "$ac_link") 2>conftest.er1
39150 grep -v '^ *+' conftest.er1 >conftest.err
39152 cat conftest.err >&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); } && {
39155 test -z "$ac_c_werror_flag" ||
39156 test ! -s conftest.err
39157 } && test -s conftest$ac_exeext &&
39158 $as_test_x conftest$ac_exeext; then
39159 eval "$as_ac_var=yes"
39161 echo "$as_me: failed program was:" >&5
39162 sed 's/^/| /' conftest.$ac_ext >&5
39164 eval "$as_ac_var=no"
39167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39168 conftest$ac_exeext conftest.$ac_ext
39170 ac_res=`eval echo '${'$as_ac_var'}'`
39171 { echo "$as_me:$LINENO: result: $ac_res" >&5
39172 echo "${ECHO_T}$ac_res" >&6; }
39173 if test `eval echo '${'$as_ac_var'}'` = yes; then
39174 cat >>confdefs.h <<_ACEOF
39175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39177 cat >>confdefs.h <<\_ACEOF
39178 #define HAVE_GETHOSTBYNAME2 1
39185 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39186 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39187 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39188 echo $ECHO_N "(cached) $ECHO_C" >&6
39191 cat >conftest.$ac_ext <<_ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h. */
39198 #include <sys/socket.h>
39204 struct sockaddr s; s.sa_len;
39210 rm -f conftest.$ac_objext
39211 if { (ac_try="$ac_compile"
39212 case "(($ac_try" in
39213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39214 *) ac_try_echo=$ac_try;;
39216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39217 (eval "$ac_compile") 2>conftest.er1
39219 grep -v '^ *+' conftest.er1 >conftest.err
39221 cat conftest.err >&5
39222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223 (exit $ac_status); } && {
39224 test -z "$ac_c_werror_flag" ||
39225 test ! -s conftest.err
39226 } && test -s conftest.$ac_objext; then
39228 ac_cv_struct_sockaddr_sa_len=yes
39231 echo "$as_me: failed program was:" >&5
39232 sed 's/^/| /' conftest.$ac_ext >&5
39234 ac_cv_struct_sockaddr_sa_len=no
39239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39243 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39244 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39246 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39248 cat >>confdefs.h <<\_ACEOF
39249 #define HAVE_SA_LEN 1
39255 for ac_func in strftime
39257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39261 echo $ECHO_N "(cached) $ECHO_C" >&6
39263 cat >conftest.$ac_ext <<_ACEOF
39266 cat confdefs.h >>conftest.$ac_ext
39267 cat >>conftest.$ac_ext <<_ACEOF
39268 /* end confdefs.h. */
39269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39271 #define $ac_func innocuous_$ac_func
39273 /* System header to define __stub macros and hopefully few prototypes,
39274 which can conflict with char $ac_func (); below.
39275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39276 <limits.h> exists even on freestanding compilers. */
39279 # include <limits.h>
39281 # include <assert.h>
39286 /* Override any GCC internal prototype to avoid an error.
39287 Use char because int might match the return type of a GCC
39288 builtin and then its argument prototype would still apply. */
39293 /* The GNU C library defines this for functions which it implements
39294 to always fail with ENOSYS. Some functions are actually named
39295 something starting with __ and the normal name is an alias. */
39296 #if defined __stub_$ac_func || defined __stub___$ac_func
39303 return $ac_func ();
39308 rm -f conftest.$ac_objext conftest$ac_exeext
39309 if { (ac_try="$ac_link"
39310 case "(($ac_try" in
39311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39312 *) ac_try_echo=$ac_try;;
39314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39315 (eval "$ac_link") 2>conftest.er1
39317 grep -v '^ *+' conftest.er1 >conftest.err
39319 cat conftest.err >&5
39320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321 (exit $ac_status); } && {
39322 test -z "$ac_c_werror_flag" ||
39323 test ! -s conftest.err
39324 } && test -s conftest$ac_exeext &&
39325 $as_test_x conftest$ac_exeext; then
39326 eval "$as_ac_var=yes"
39328 echo "$as_me: failed program was:" >&5
39329 sed 's/^/| /' conftest.$ac_ext >&5
39331 eval "$as_ac_var=no"
39334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39335 conftest$ac_exeext conftest.$ac_ext
39337 ac_res=`eval echo '${'$as_ac_var'}'`
39338 { echo "$as_me:$LINENO: result: $ac_res" >&5
39339 echo "${ECHO_T}$ac_res" >&6; }
39340 if test `eval echo '${'$as_ac_var'}'` = yes; then
39341 cat >>confdefs.h <<_ACEOF
39342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39346 # strftime is in -lintl on SCO UNIX.
39347 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39348 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39349 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39352 ac_check_lib_save_LIBS=$LIBS
39353 LIBS="-lintl $LIBS"
39354 cat >conftest.$ac_ext <<_ACEOF
39357 cat confdefs.h >>conftest.$ac_ext
39358 cat >>conftest.$ac_ext <<_ACEOF
39359 /* end confdefs.h. */
39361 /* Override any GCC internal prototype to avoid an error.
39362 Use char because int might match the return type of a GCC
39363 builtin and then its argument prototype would still apply. */
39371 return strftime ();
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (ac_try="$ac_link"
39378 case "(($ac_try" in
39379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39380 *) ac_try_echo=$ac_try;;
39382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39383 (eval "$ac_link") 2>conftest.er1
39385 grep -v '^ *+' conftest.er1 >conftest.err
39387 cat conftest.err >&5
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); } && {
39390 test -z "$ac_c_werror_flag" ||
39391 test ! -s conftest.err
39392 } && test -s conftest$ac_exeext &&
39393 $as_test_x conftest$ac_exeext; then
39394 ac_cv_lib_intl_strftime=yes
39396 echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39399 ac_cv_lib_intl_strftime=no
39402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39403 conftest$ac_exeext conftest.$ac_ext
39404 LIBS=$ac_check_lib_save_LIBS
39406 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39407 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39408 if test $ac_cv_lib_intl_strftime = yes; then
39409 cat >>confdefs.h <<\_ACEOF
39410 #define HAVE_STRFTIME 1
39413 LIBS="-lintl $LIBS"
39420 for ac_func in vprintf
39422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39426 echo $ECHO_N "(cached) $ECHO_C" >&6
39428 cat >conftest.$ac_ext <<_ACEOF
39431 cat confdefs.h >>conftest.$ac_ext
39432 cat >>conftest.$ac_ext <<_ACEOF
39433 /* end confdefs.h. */
39434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39436 #define $ac_func innocuous_$ac_func
39438 /* System header to define __stub macros and hopefully few prototypes,
39439 which can conflict with char $ac_func (); below.
39440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39441 <limits.h> exists even on freestanding compilers. */
39444 # include <limits.h>
39446 # include <assert.h>
39451 /* Override any GCC internal prototype to avoid an error.
39452 Use char because int might match the return type of a GCC
39453 builtin and then its argument prototype would still apply. */
39458 /* The GNU C library defines this for functions which it implements
39459 to always fail with ENOSYS. Some functions are actually named
39460 something starting with __ and the normal name is an alias. */
39461 #if defined __stub_$ac_func || defined __stub___$ac_func
39468 return $ac_func ();
39473 rm -f conftest.$ac_objext conftest$ac_exeext
39474 if { (ac_try="$ac_link"
39475 case "(($ac_try" in
39476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39477 *) ac_try_echo=$ac_try;;
39479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39480 (eval "$ac_link") 2>conftest.er1
39482 grep -v '^ *+' conftest.er1 >conftest.err
39484 cat conftest.err >&5
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); } && {
39487 test -z "$ac_c_werror_flag" ||
39488 test ! -s conftest.err
39489 } && test -s conftest$ac_exeext &&
39490 $as_test_x conftest$ac_exeext; then
39491 eval "$as_ac_var=yes"
39493 echo "$as_me: failed program was:" >&5
39494 sed 's/^/| /' conftest.$ac_ext >&5
39496 eval "$as_ac_var=no"
39499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39500 conftest$ac_exeext conftest.$ac_ext
39502 ac_res=`eval echo '${'$as_ac_var'}'`
39503 { echo "$as_me:$LINENO: result: $ac_res" >&5
39504 echo "${ECHO_T}$ac_res" >&6; }
39505 if test `eval echo '${'$as_ac_var'}'` = yes; then
39506 cat >>confdefs.h <<_ACEOF
39507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39510 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39511 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39512 if test "${ac_cv_func__doprnt+set}" = set; then
39513 echo $ECHO_N "(cached) $ECHO_C" >&6
39515 cat >conftest.$ac_ext <<_ACEOF
39518 cat confdefs.h >>conftest.$ac_ext
39519 cat >>conftest.$ac_ext <<_ACEOF
39520 /* end confdefs.h. */
39521 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39523 #define _doprnt innocuous__doprnt
39525 /* System header to define __stub macros and hopefully few prototypes,
39526 which can conflict with char _doprnt (); below.
39527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39528 <limits.h> exists even on freestanding compilers. */
39531 # include <limits.h>
39533 # include <assert.h>
39538 /* Override any GCC internal prototype to avoid an error.
39539 Use char because int might match the return type of a GCC
39540 builtin and then its argument prototype would still apply. */
39545 /* The GNU C library defines this for functions which it implements
39546 to always fail with ENOSYS. Some functions are actually named
39547 something starting with __ and the normal name is an alias. */
39548 #if defined __stub__doprnt || defined __stub____doprnt
39560 rm -f conftest.$ac_objext conftest$ac_exeext
39561 if { (ac_try="$ac_link"
39562 case "(($ac_try" in
39563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39564 *) ac_try_echo=$ac_try;;
39566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39567 (eval "$ac_link") 2>conftest.er1
39569 grep -v '^ *+' conftest.er1 >conftest.err
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } && {
39574 test -z "$ac_c_werror_flag" ||
39575 test ! -s conftest.err
39576 } && test -s conftest$ac_exeext &&
39577 $as_test_x conftest$ac_exeext; then
39578 ac_cv_func__doprnt=yes
39580 echo "$as_me: failed program was:" >&5
39581 sed 's/^/| /' conftest.$ac_ext >&5
39583 ac_cv_func__doprnt=no
39586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39587 conftest$ac_exeext conftest.$ac_ext
39589 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39590 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39591 if test $ac_cv_func__doprnt = yes; then
39593 cat >>confdefs.h <<\_ACEOF
39594 #define HAVE_DOPRNT 1
39603 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39604 # for constant arguments. Useless!
39605 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39606 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39607 if test "${ac_cv_working_alloca_h+set}" = set; then
39608 echo $ECHO_N "(cached) $ECHO_C" >&6
39610 cat >conftest.$ac_ext <<_ACEOF
39613 cat confdefs.h >>conftest.$ac_ext
39614 cat >>conftest.$ac_ext <<_ACEOF
39615 /* end confdefs.h. */
39616 #include <alloca.h>
39620 char *p = (char *) alloca (2 * sizeof (int));
39626 rm -f conftest.$ac_objext conftest$ac_exeext
39627 if { (ac_try="$ac_link"
39628 case "(($ac_try" in
39629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39630 *) ac_try_echo=$ac_try;;
39632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39633 (eval "$ac_link") 2>conftest.er1
39635 grep -v '^ *+' conftest.er1 >conftest.err
39637 cat conftest.err >&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); } && {
39640 test -z "$ac_c_werror_flag" ||
39641 test ! -s conftest.err
39642 } && test -s conftest$ac_exeext &&
39643 $as_test_x conftest$ac_exeext; then
39644 ac_cv_working_alloca_h=yes
39646 echo "$as_me: failed program was:" >&5
39647 sed 's/^/| /' conftest.$ac_ext >&5
39649 ac_cv_working_alloca_h=no
39652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39653 conftest$ac_exeext conftest.$ac_ext
39655 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39657 if test $ac_cv_working_alloca_h = yes; then
39659 cat >>confdefs.h <<\_ACEOF
39660 #define HAVE_ALLOCA_H 1
39665 { echo "$as_me:$LINENO: checking for alloca" >&5
39666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39667 if test "${ac_cv_func_alloca_works+set}" = set; then
39668 echo $ECHO_N "(cached) $ECHO_C" >&6
39670 cat >conftest.$ac_ext <<_ACEOF
39673 cat confdefs.h >>conftest.$ac_ext
39674 cat >>conftest.$ac_ext <<_ACEOF
39675 /* end confdefs.h. */
39677 # define alloca __builtin_alloca
39680 # include <malloc.h>
39681 # define alloca _alloca
39683 # ifdef HAVE_ALLOCA_H
39684 # include <alloca.h>
39689 # ifndef alloca /* predefined by HP cc +Olibcalls */
39700 char *p = (char *) alloca (1);
39706 rm -f conftest.$ac_objext conftest$ac_exeext
39707 if { (ac_try="$ac_link"
39708 case "(($ac_try" in
39709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39710 *) ac_try_echo=$ac_try;;
39712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39713 (eval "$ac_link") 2>conftest.er1
39715 grep -v '^ *+' conftest.er1 >conftest.err
39717 cat conftest.err >&5
39718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); } && {
39720 test -z "$ac_c_werror_flag" ||
39721 test ! -s conftest.err
39722 } && test -s conftest$ac_exeext &&
39723 $as_test_x conftest$ac_exeext; then
39724 ac_cv_func_alloca_works=yes
39726 echo "$as_me: failed program was:" >&5
39727 sed 's/^/| /' conftest.$ac_ext >&5
39729 ac_cv_func_alloca_works=no
39732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39733 conftest$ac_exeext conftest.$ac_ext
39735 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39738 if test $ac_cv_func_alloca_works = yes; then
39740 cat >>confdefs.h <<\_ACEOF
39741 #define HAVE_ALLOCA 1
39745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39746 # that cause trouble. Some versions do not even contain alloca or
39747 # contain a buggy version. If you still want to use their alloca,
39748 # use ar to extract alloca.o from them instead of compiling alloca.c.
39750 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39752 cat >>confdefs.h <<\_ACEOF
39757 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39759 if test "${ac_cv_os_cray+set}" = set; then
39760 echo $ECHO_N "(cached) $ECHO_C" >&6
39762 cat >conftest.$ac_ext <<_ACEOF
39765 cat confdefs.h >>conftest.$ac_ext
39766 cat >>conftest.$ac_ext <<_ACEOF
39767 /* end confdefs.h. */
39768 #if defined CRAY && ! defined CRAY2
39775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39776 $EGREP "webecray" >/dev/null 2>&1; then
39784 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39785 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39786 if test $ac_cv_os_cray = yes; then
39787 for ac_func in _getb67 GETB67 getb67; do
39788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39794 cat >conftest.$ac_ext <<_ACEOF
39797 cat confdefs.h >>conftest.$ac_ext
39798 cat >>conftest.$ac_ext <<_ACEOF
39799 /* end confdefs.h. */
39800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39802 #define $ac_func innocuous_$ac_func
39804 /* System header to define __stub macros and hopefully few prototypes,
39805 which can conflict with char $ac_func (); below.
39806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39807 <limits.h> exists even on freestanding compilers. */
39810 # include <limits.h>
39812 # include <assert.h>
39817 /* Override any GCC internal prototype to avoid an error.
39818 Use char because int might match the return type of a GCC
39819 builtin and then its argument prototype would still apply. */
39824 /* The GNU C library defines this for functions which it implements
39825 to always fail with ENOSYS. Some functions are actually named
39826 something starting with __ and the normal name is an alias. */
39827 #if defined __stub_$ac_func || defined __stub___$ac_func
39834 return $ac_func ();
39839 rm -f conftest.$ac_objext conftest$ac_exeext
39840 if { (ac_try="$ac_link"
39841 case "(($ac_try" in
39842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39843 *) ac_try_echo=$ac_try;;
39845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39846 (eval "$ac_link") 2>conftest.er1
39848 grep -v '^ *+' conftest.er1 >conftest.err
39850 cat conftest.err >&5
39851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39852 (exit $ac_status); } && {
39853 test -z "$ac_c_werror_flag" ||
39854 test ! -s conftest.err
39855 } && test -s conftest$ac_exeext &&
39856 $as_test_x conftest$ac_exeext; then
39857 eval "$as_ac_var=yes"
39859 echo "$as_me: failed program was:" >&5
39860 sed 's/^/| /' conftest.$ac_ext >&5
39862 eval "$as_ac_var=no"
39865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39866 conftest$ac_exeext conftest.$ac_ext
39868 ac_res=`eval echo '${'$as_ac_var'}'`
39869 { echo "$as_me:$LINENO: result: $ac_res" >&5
39870 echo "${ECHO_T}$ac_res" >&6; }
39871 if test `eval echo '${'$as_ac_var'}'` = yes; then
39873 cat >>confdefs.h <<_ACEOF
39874 #define CRAY_STACKSEG_END $ac_func
39883 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39884 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39885 if test "${ac_cv_c_stack_direction+set}" = set; then
39886 echo $ECHO_N "(cached) $ECHO_C" >&6
39888 if test "$cross_compiling" = yes; then
39889 ac_cv_c_stack_direction=0
39891 cat >conftest.$ac_ext <<_ACEOF
39894 cat confdefs.h >>conftest.$ac_ext
39895 cat >>conftest.$ac_ext <<_ACEOF
39896 /* end confdefs.h. */
39897 $ac_includes_default
39899 find_stack_direction ()
39901 static char *addr = 0;
39906 return find_stack_direction ();
39909 return (&dummy > addr) ? 1 : -1;
39915 return find_stack_direction () < 0;
39918 rm -f conftest$ac_exeext
39919 if { (ac_try="$ac_link"
39920 case "(($ac_try" in
39921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39922 *) ac_try_echo=$ac_try;;
39924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39925 (eval "$ac_link") 2>&5
39927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39929 { (case "(($ac_try" in
39930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931 *) ac_try_echo=$ac_try;;
39933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39934 (eval "$ac_try") 2>&5
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); }; }; then
39938 ac_cv_c_stack_direction=1
39940 echo "$as_me: program exited with status $ac_status" >&5
39941 echo "$as_me: failed program was:" >&5
39942 sed 's/^/| /' conftest.$ac_ext >&5
39944 ( exit $ac_status )
39945 ac_cv_c_stack_direction=-1
39947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39952 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39953 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39955 cat >>confdefs.h <<_ACEOF
39956 #define STACK_DIRECTION $ac_cv_c_stack_direction
39962 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39963 # -lseq on Dynix/PTX, -lgen on Unixware.
39964 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39965 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39966 if test "${ac_cv_search_getmntent+set}" = set; then
39967 echo $ECHO_N "(cached) $ECHO_C" >&6
39969 ac_func_search_save_LIBS=$LIBS
39970 cat >conftest.$ac_ext <<_ACEOF
39973 cat confdefs.h >>conftest.$ac_ext
39974 cat >>conftest.$ac_ext <<_ACEOF
39975 /* end confdefs.h. */
39977 /* Override any GCC internal prototype to avoid an error.
39978 Use char because int might match the return type of a GCC
39979 builtin and then its argument prototype would still apply. */
39987 return getmntent ();
39992 for ac_lib in '' sun seq gen; do
39993 if test -z "$ac_lib"; then
39994 ac_res="none required"
39997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39999 rm -f conftest.$ac_objext conftest$ac_exeext
40000 if { (ac_try="$ac_link"
40001 case "(($ac_try" in
40002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40003 *) ac_try_echo=$ac_try;;
40005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40006 (eval "$ac_link") 2>conftest.er1
40008 grep -v '^ *+' conftest.er1 >conftest.err
40010 cat conftest.err >&5
40011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40012 (exit $ac_status); } && {
40013 test -z "$ac_c_werror_flag" ||
40014 test ! -s conftest.err
40015 } && test -s conftest$ac_exeext &&
40016 $as_test_x conftest$ac_exeext; then
40017 ac_cv_search_getmntent=$ac_res
40019 echo "$as_me: failed program was:" >&5
40020 sed 's/^/| /' conftest.$ac_ext >&5
40025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40027 if test "${ac_cv_search_getmntent+set}" = set; then
40031 if test "${ac_cv_search_getmntent+set}" = set; then
40034 ac_cv_search_getmntent=no
40036 rm conftest.$ac_ext
40037 LIBS=$ac_func_search_save_LIBS
40039 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40040 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40041 ac_res=$ac_cv_search_getmntent
40042 if test "$ac_res" != no; then
40043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40044 ac_cv_func_getmntent=yes
40046 cat >>confdefs.h <<\_ACEOF
40047 #define HAVE_GETMNTENT 1
40051 ac_cv_func_getmntent=no
40055 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40056 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40057 if test "${ac_cv_func_closedir_void+set}" = set; then
40058 echo $ECHO_N "(cached) $ECHO_C" >&6
40060 if test "$cross_compiling" = yes; then
40061 ac_cv_func_closedir_void=yes
40063 cat >conftest.$ac_ext <<_ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h. */
40069 $ac_includes_default
40070 #include <$ac_header_dirent>
40071 #ifndef __cplusplus
40078 return closedir (opendir (".")) != 0;
40083 rm -f conftest$ac_exeext
40084 if { (ac_try="$ac_link"
40085 case "(($ac_try" in
40086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40087 *) ac_try_echo=$ac_try;;
40089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40090 (eval "$ac_link") 2>&5
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40094 { (case "(($ac_try" in
40095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40096 *) ac_try_echo=$ac_try;;
40098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40099 (eval "$ac_try") 2>&5
40101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102 (exit $ac_status); }; }; then
40103 ac_cv_func_closedir_void=no
40105 echo "$as_me: program exited with status $ac_status" >&5
40106 echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40109 ( exit $ac_status )
40110 ac_cv_func_closedir_void=yes
40112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40117 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40118 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40119 if test $ac_cv_func_closedir_void = yes; then
40121 cat >>confdefs.h <<\_ACEOF
40122 #define CLOSEDIR_VOID 1
40127 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40128 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40129 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40130 echo $ECHO_N "(cached) $ECHO_C" >&6
40132 if test "$cross_compiling" = yes; then
40133 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40134 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40135 { (exit 1); exit 1; }; }
40137 cat >conftest.$ac_ext <<_ACEOF
40140 cat confdefs.h >>conftest.$ac_ext
40141 cat >>conftest.$ac_ext <<_ACEOF
40142 /* end confdefs.h. */
40143 $ac_includes_default
40147 /* If this system has a BSD-style setpgrp which takes arguments,
40148 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40149 exit successfully. */
40150 return setpgrp (1,1) != -1;
40155 rm -f conftest$ac_exeext
40156 if { (ac_try="$ac_link"
40157 case "(($ac_try" in
40158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40159 *) ac_try_echo=$ac_try;;
40161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40162 (eval "$ac_link") 2>&5
40164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40166 { (case "(($ac_try" in
40167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40168 *) ac_try_echo=$ac_try;;
40170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40171 (eval "$ac_try") 2>&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; }; then
40175 ac_cv_func_setpgrp_void=no
40177 echo "$as_me: program exited with status $ac_status" >&5
40178 echo "$as_me: failed program was:" >&5
40179 sed 's/^/| /' conftest.$ac_ext >&5
40181 ( exit $ac_status )
40182 ac_cv_func_setpgrp_void=yes
40184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40189 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40190 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40191 if test $ac_cv_func_setpgrp_void = yes; then
40193 cat >>confdefs.h <<\_ACEOF
40194 #define SETPGRP_VOID 1
40198 # AC_FUNC_FNMATCH dnl use local version
40200 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40201 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40202 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40203 echo $ECHO_N "(cached) $ECHO_C" >&6
40205 ac_check_lib_save_LIBS=$LIBS
40206 LIBS="-lintl $LIBS"
40207 cat >conftest.$ac_ext <<_ACEOF
40210 cat confdefs.h >>conftest.$ac_ext
40211 cat >>conftest.$ac_ext <<_ACEOF
40212 /* end confdefs.h. */
40214 /* Override any GCC internal prototype to avoid an error.
40215 Use char because int might match the return type of a GCC
40216 builtin and then its argument prototype would still apply. */
40229 rm -f conftest.$ac_objext conftest$ac_exeext
40230 if { (ac_try="$ac_link"
40231 case "(($ac_try" in
40232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40233 *) ac_try_echo=$ac_try;;
40235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40236 (eval "$ac_link") 2>conftest.er1
40238 grep -v '^ *+' conftest.er1 >conftest.err
40240 cat conftest.err >&5
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); } && {
40243 test -z "$ac_c_werror_flag" ||
40244 test ! -s conftest.err
40245 } && test -s conftest$ac_exeext &&
40246 $as_test_x conftest$ac_exeext; then
40247 ac_cv_lib_intl_gettext=yes
40249 echo "$as_me: failed program was:" >&5
40250 sed 's/^/| /' conftest.$ac_ext >&5
40252 ac_cv_lib_intl_gettext=no
40255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40256 conftest$ac_exeext conftest.$ac_ext
40257 LIBS=$ac_check_lib_save_LIBS
40259 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40260 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40261 if test $ac_cv_lib_intl_gettext = yes; then
40262 LIBS="$LIBS -lintl"
40267 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40268 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40269 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40270 echo $ECHO_N "(cached) $ECHO_C" >&6
40272 ac_check_lib_save_LIBS=$LIBS
40274 cat >conftest.$ac_ext <<_ACEOF
40277 cat confdefs.h >>conftest.$ac_ext
40278 cat >>conftest.$ac_ext <<_ACEOF
40279 /* end confdefs.h. */
40281 /* Override any GCC internal prototype to avoid an error.
40282 Use char because int might match the return type of a GCC
40283 builtin and then its argument prototype would still apply. */
40291 return getpwnam ();
40296 rm -f conftest.$ac_objext conftest$ac_exeext
40297 if { (ac_try="$ac_link"
40298 case "(($ac_try" in
40299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40300 *) ac_try_echo=$ac_try;;
40302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40303 (eval "$ac_link") 2>conftest.er1
40305 grep -v '^ *+' conftest.er1 >conftest.err
40307 cat conftest.err >&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } && {
40310 test -z "$ac_c_werror_flag" ||
40311 test ! -s conftest.err
40312 } && test -s conftest$ac_exeext &&
40313 $as_test_x conftest$ac_exeext; then
40314 ac_cv_lib_sun_getpwnam=yes
40316 echo "$as_me: failed program was:" >&5
40317 sed 's/^/| /' conftest.$ac_ext >&5
40319 ac_cv_lib_sun_getpwnam=no
40322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40323 conftest$ac_exeext conftest.$ac_ext
40324 LIBS=$ac_check_lib_save_LIBS
40326 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40327 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40328 if test $ac_cv_lib_sun_getpwnam = yes; then
40329 cat >>confdefs.h <<_ACEOF
40330 #define HAVE_LIBSUN 1
40339 for ac_header in zlib.h
40341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40346 echo $ECHO_N "(cached) $ECHO_C" >&6
40348 ac_res=`eval echo '${'$as_ac_Header'}'`
40349 { echo "$as_me:$LINENO: result: $ac_res" >&5
40350 echo "${ECHO_T}$ac_res" >&6; }
40352 # Is the header compilable?
40353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40355 cat >conftest.$ac_ext <<_ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361 $ac_includes_default
40362 #include <$ac_header>
40364 rm -f conftest.$ac_objext
40365 if { (ac_try="$ac_compile"
40366 case "(($ac_try" in
40367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40368 *) ac_try_echo=$ac_try;;
40370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40371 (eval "$ac_compile") 2>conftest.er1
40373 grep -v '^ *+' conftest.er1 >conftest.err
40375 cat conftest.err >&5
40376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); } && {
40378 test -z "$ac_c_werror_flag" ||
40379 test ! -s conftest.err
40380 } && test -s conftest.$ac_objext; then
40381 ac_header_compiler=yes
40383 echo "$as_me: failed program was:" >&5
40384 sed 's/^/| /' conftest.$ac_ext >&5
40386 ac_header_compiler=no
40389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40391 echo "${ECHO_T}$ac_header_compiler" >&6; }
40393 # Is the header present?
40394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40396 cat >conftest.$ac_ext <<_ACEOF
40399 cat confdefs.h >>conftest.$ac_ext
40400 cat >>conftest.$ac_ext <<_ACEOF
40401 /* end confdefs.h. */
40402 #include <$ac_header>
40404 if { (ac_try="$ac_cpp conftest.$ac_ext"
40405 case "(($ac_try" in
40406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40407 *) ac_try_echo=$ac_try;;
40409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40412 grep -v '^ *+' conftest.er1 >conftest.err
40414 cat conftest.err >&5
40415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416 (exit $ac_status); } >/dev/null && {
40417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40418 test ! -s conftest.err
40420 ac_header_preproc=yes
40422 echo "$as_me: failed program was:" >&5
40423 sed 's/^/| /' conftest.$ac_ext >&5
40425 ac_header_preproc=no
40428 rm -f conftest.err conftest.$ac_ext
40429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40430 echo "${ECHO_T}$ac_header_preproc" >&6; }
40432 # So? What about this header?
40433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40439 ac_header_preproc=yes
40442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40460 echo $ECHO_N "(cached) $ECHO_C" >&6
40462 eval "$as_ac_Header=\$ac_header_preproc"
40464 ac_res=`eval echo '${'$as_ac_Header'}'`
40465 { echo "$as_me:$LINENO: result: $ac_res" >&5
40466 echo "${ECHO_T}$ac_res" >&6; }
40469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40470 cat >>confdefs.h <<_ACEOF
40471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40478 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40479 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40480 if test "${ac_cv_lib_z_deflate+set}" = set; then
40481 echo $ECHO_N "(cached) $ECHO_C" >&6
40483 ac_check_lib_save_LIBS=$LIBS
40485 cat >conftest.$ac_ext <<_ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h. */
40492 /* Override any GCC internal prototype to avoid an error.
40493 Use char because int might match the return type of a GCC
40494 builtin and then its argument prototype would still apply. */
40507 rm -f conftest.$ac_objext conftest$ac_exeext
40508 if { (ac_try="$ac_link"
40509 case "(($ac_try" in
40510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40511 *) ac_try_echo=$ac_try;;
40513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40514 (eval "$ac_link") 2>conftest.er1
40516 grep -v '^ *+' conftest.er1 >conftest.err
40518 cat conftest.err >&5
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); } && {
40521 test -z "$ac_c_werror_flag" ||
40522 test ! -s conftest.err
40523 } && test -s conftest$ac_exeext &&
40524 $as_test_x conftest$ac_exeext; then
40525 ac_cv_lib_z_deflate=yes
40527 echo "$as_me: failed program was:" >&5
40528 sed 's/^/| /' conftest.$ac_ext >&5
40530 ac_cv_lib_z_deflate=no
40533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40534 conftest$ac_exeext conftest.$ac_ext
40535 LIBS=$ac_check_lib_save_LIBS
40537 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40538 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40539 if test $ac_cv_lib_z_deflate = yes; then
40544 if test x$FDLIBS = x-lz; then
40545 cat >>confdefs.h <<\_ACEOF
40546 #define HAVE_LIBZ 1
40553 # Check whether --enable-acl was given.
40554 if test "${enable_acl+set}" = set; then
40555 enableval=$enable_acl;
40556 if test x$enableval = xno; then
40565 have_extended_acl=no
40566 if test x$support_acl = xyes; then
40567 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40568 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40569 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40570 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40573 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40574 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40576 # Is the header compilable?
40577 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40578 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40579 cat >conftest.$ac_ext <<_ACEOF
40582 cat confdefs.h >>conftest.$ac_ext
40583 cat >>conftest.$ac_ext <<_ACEOF
40584 /* end confdefs.h. */
40585 $ac_includes_default
40586 #include <sys/acl.h>
40588 rm -f conftest.$ac_objext
40589 if { (ac_try="$ac_compile"
40590 case "(($ac_try" in
40591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40592 *) ac_try_echo=$ac_try;;
40594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40595 (eval "$ac_compile") 2>conftest.er1
40597 grep -v '^ *+' conftest.er1 >conftest.err
40599 cat conftest.err >&5
40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); } && {
40602 test -z "$ac_c_werror_flag" ||
40603 test ! -s conftest.err
40604 } && test -s conftest.$ac_objext; then
40605 ac_header_compiler=yes
40607 echo "$as_me: failed program was:" >&5
40608 sed 's/^/| /' conftest.$ac_ext >&5
40610 ac_header_compiler=no
40613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40615 echo "${ECHO_T}$ac_header_compiler" >&6; }
40617 # Is the header present?
40618 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40619 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40626 #include <sys/acl.h>
40628 if { (ac_try="$ac_cpp conftest.$ac_ext"
40629 case "(($ac_try" in
40630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40631 *) ac_try_echo=$ac_try;;
40633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40636 grep -v '^ *+' conftest.er1 >conftest.err
40638 cat conftest.err >&5
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); } >/dev/null && {
40641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40642 test ! -s conftest.err
40644 ac_header_preproc=yes
40646 echo "$as_me: failed program was:" >&5
40647 sed 's/^/| /' conftest.$ac_ext >&5
40649 ac_header_preproc=no
40652 rm -f conftest.err conftest.$ac_ext
40653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40654 echo "${ECHO_T}$ac_header_preproc" >&6; }
40656 # So? What about this header?
40657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40659 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40660 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40661 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40662 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40663 ac_header_preproc=yes
40666 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40667 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40668 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40669 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40670 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40671 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40672 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40673 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40674 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40675 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40676 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40677 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40681 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40682 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40683 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40684 echo $ECHO_N "(cached) $ECHO_C" >&6
40686 ac_cv_header_sys_acl_h=$ac_header_preproc
40688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40689 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40692 if test $ac_cv_header_sys_acl_h = yes; then
40694 cat >>confdefs.h <<\_ACEOF
40695 #define HAVE_SYS_ACL_H 1
40701 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40702 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40703 if test "${ac_cv_func_acl_get_file+set}" = set; then
40704 echo $ECHO_N "(cached) $ECHO_C" >&6
40706 cat >conftest.$ac_ext <<_ACEOF
40709 cat confdefs.h >>conftest.$ac_ext
40710 cat >>conftest.$ac_ext <<_ACEOF
40711 /* end confdefs.h. */
40712 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40714 #define acl_get_file innocuous_acl_get_file
40716 /* System header to define __stub macros and hopefully few prototypes,
40717 which can conflict with char acl_get_file (); below.
40718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40719 <limits.h> exists even on freestanding compilers. */
40722 # include <limits.h>
40724 # include <assert.h>
40727 #undef acl_get_file
40729 /* Override any GCC internal prototype to avoid an error.
40730 Use char because int might match the return type of a GCC
40731 builtin and then its argument prototype would still apply. */
40735 char acl_get_file ();
40736 /* The GNU C library defines this for functions which it implements
40737 to always fail with ENOSYS. Some functions are actually named
40738 something starting with __ and the normal name is an alias. */
40739 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40746 return acl_get_file ();
40751 rm -f conftest.$ac_objext conftest$ac_exeext
40752 if { (ac_try="$ac_link"
40753 case "(($ac_try" in
40754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40755 *) ac_try_echo=$ac_try;;
40757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40758 (eval "$ac_link") 2>conftest.er1
40760 grep -v '^ *+' conftest.er1 >conftest.err
40762 cat conftest.err >&5
40763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764 (exit $ac_status); } && {
40765 test -z "$ac_c_werror_flag" ||
40766 test ! -s conftest.err
40767 } && test -s conftest$ac_exeext &&
40768 $as_test_x conftest$ac_exeext; then
40769 ac_cv_func_acl_get_file=yes
40771 echo "$as_me: failed program was:" >&5
40772 sed 's/^/| /' conftest.$ac_ext >&5
40774 ac_cv_func_acl_get_file=no
40777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40778 conftest$ac_exeext conftest.$ac_ext
40780 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40781 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40782 if test $ac_cv_func_acl_get_file = yes; then
40788 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40789 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40790 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40791 echo $ECHO_N "(cached) $ECHO_C" >&6
40793 ac_check_lib_save_LIBS=$LIBS
40795 cat >conftest.$ac_ext <<_ACEOF
40798 cat confdefs.h >>conftest.$ac_ext
40799 cat >>conftest.$ac_ext <<_ACEOF
40800 /* end confdefs.h. */
40802 /* Override any GCC internal prototype to avoid an error.
40803 Use char because int might match the return type of a GCC
40804 builtin and then its argument prototype would still apply. */
40808 char acl_get_file ();
40812 return acl_get_file ();
40817 rm -f conftest.$ac_objext conftest$ac_exeext
40818 if { (ac_try="$ac_link"
40819 case "(($ac_try" in
40820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40821 *) ac_try_echo=$ac_try;;
40823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40824 (eval "$ac_link") 2>conftest.er1
40826 grep -v '^ *+' conftest.er1 >conftest.err
40828 cat conftest.err >&5
40829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830 (exit $ac_status); } && {
40831 test -z "$ac_c_werror_flag" ||
40832 test ! -s conftest.err
40833 } && test -s conftest$ac_exeext &&
40834 $as_test_x conftest$ac_exeext; then
40835 ac_cv_lib_acl_acl_get_file=yes
40837 echo "$as_me: failed program was:" >&5
40838 sed 's/^/| /' conftest.$ac_ext >&5
40840 ac_cv_lib_acl_acl_get_file=no
40843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40844 conftest$ac_exeext conftest.$ac_ext
40845 LIBS=$ac_check_lib_save_LIBS
40847 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40848 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40849 if test $ac_cv_lib_acl_acl_get_file = yes; then
40852 FDLIBS="-lacl $FDLIBS"
40856 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40857 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40858 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40859 echo $ECHO_N "(cached) $ECHO_C" >&6
40861 ac_check_lib_save_LIBS=$LIBS
40862 LIBS="-lpacl $LIBS"
40863 cat >conftest.$ac_ext <<_ACEOF
40866 cat confdefs.h >>conftest.$ac_ext
40867 cat >>conftest.$ac_ext <<_ACEOF
40868 /* end confdefs.h. */
40870 /* Override any GCC internal prototype to avoid an error.
40871 Use char because int might match the return type of a GCC
40872 builtin and then its argument prototype would still apply. */
40876 char acl_get_file ();
40880 return acl_get_file ();
40885 rm -f conftest.$ac_objext conftest$ac_exeext
40886 if { (ac_try="$ac_link"
40887 case "(($ac_try" in
40888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40889 *) ac_try_echo=$ac_try;;
40891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40892 (eval "$ac_link") 2>conftest.er1
40894 grep -v '^ *+' conftest.er1 >conftest.err
40896 cat conftest.err >&5
40897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 (exit $ac_status); } && {
40899 test -z "$ac_c_werror_flag" ||
40900 test ! -s conftest.err
40901 } && test -s conftest$ac_exeext &&
40902 $as_test_x conftest$ac_exeext; then
40903 ac_cv_lib_pacl_acl_get_file=yes
40905 echo "$as_me: failed program was:" >&5
40906 sed 's/^/| /' conftest.$ac_ext >&5
40908 ac_cv_lib_pacl_acl_get_file=no
40911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40912 conftest$ac_exeext conftest.$ac_ext
40913 LIBS=$ac_check_lib_save_LIBS
40915 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40916 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40917 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40920 FDLIBS="-lpacl $FDLIBS"
40924 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40925 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40926 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40927 echo $ECHO_N "(cached) $ECHO_C" >&6
40929 ac_check_lib_save_LIBS=$LIBS
40931 cat >conftest.$ac_ext <<_ACEOF
40934 cat confdefs.h >>conftest.$ac_ext
40935 cat >>conftest.$ac_ext <<_ACEOF
40936 /* end confdefs.h. */
40938 /* Override any GCC internal prototype to avoid an error.
40939 Use char because int might match the return type of a GCC
40940 builtin and then its argument prototype would still apply. */
40948 return acltotext ();
40953 rm -f conftest.$ac_objext conftest$ac_exeext
40954 if { (ac_try="$ac_link"
40955 case "(($ac_try" in
40956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40957 *) ac_try_echo=$ac_try;;
40959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40960 (eval "$ac_link") 2>conftest.er1
40962 grep -v '^ *+' conftest.er1 >conftest.err
40964 cat conftest.err >&5
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); } && {
40967 test -z "$ac_c_werror_flag" ||
40968 test ! -s conftest.err
40969 } && test -s conftest$ac_exeext &&
40970 $as_test_x conftest$ac_exeext; then
40971 ac_cv_lib_sec_acltotext=yes
40973 echo "$as_me: failed program was:" >&5
40974 sed 's/^/| /' conftest.$ac_ext >&5
40976 ac_cv_lib_sec_acltotext=no
40979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40980 conftest$ac_exeext conftest.$ac_ext
40981 LIBS=$ac_check_lib_save_LIBS
40983 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40984 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40985 if test $ac_cv_lib_sec_acltotext = yes; then
40988 FDLIBS="-lsec $FDLIBS"
40990 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40991 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40992 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40993 echo $ECHO_N "(cached) $ECHO_C" >&6
40995 ac_check_lib_save_LIBS=$LIBS
40997 cat >conftest.$ac_ext <<_ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h. */
41004 /* Override any GCC internal prototype to avoid an error.
41005 Use char because int might match the return type of a GCC
41006 builtin and then its argument prototype would still apply. */
41010 char acl_totext ();
41014 return acl_totext ();
41019 rm -f conftest.$ac_objext conftest$ac_exeext
41020 if { (ac_try="$ac_link"
41021 case "(($ac_try" in
41022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023 *) ac_try_echo=$ac_try;;
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026 (eval "$ac_link") 2>conftest.er1
41028 grep -v '^ *+' conftest.er1 >conftest.err
41030 cat conftest.err >&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } && {
41033 test -z "$ac_c_werror_flag" ||
41034 test ! -s conftest.err
41035 } && test -s conftest$ac_exeext &&
41036 $as_test_x conftest$ac_exeext; then
41037 ac_cv_lib_sec_acl_totext=yes
41039 echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41042 ac_cv_lib_sec_acl_totext=no
41045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41046 conftest$ac_exeext conftest.$ac_ext
41047 LIBS=$ac_check_lib_save_LIBS
41049 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41050 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41051 if test $ac_cv_lib_sec_acl_totext = yes; then
41053 have_extended_acl=yes
41074 if test $have_acl = yes; then
41076 cat >>confdefs.h <<\_ACEOF
41082 if test $have_extended_acl = yes; then
41084 cat >>confdefs.h <<\_ACEOF
41085 #define HAVE_EXTENDED_ACL
41092 # Check whether --enable-xattr was given.
41093 if test "${enable_xattr+set}" = set; then
41094 enableval=$enable_xattr;
41095 if test x$enableval = xno; then
41104 if test x$support_xattr = xyes; then
41105 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41106 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41107 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41108 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41109 echo $ECHO_N "(cached) $ECHO_C" >&6
41111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41112 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41114 # Is the header compilable?
41115 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41116 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41117 cat >conftest.$ac_ext <<_ACEOF
41120 cat confdefs.h >>conftest.$ac_ext
41121 cat >>conftest.$ac_ext <<_ACEOF
41122 /* end confdefs.h. */
41123 $ac_includes_default
41124 #include <sys/xattr.h>
41126 rm -f conftest.$ac_objext
41127 if { (ac_try="$ac_compile"
41128 case "(($ac_try" in
41129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41130 *) ac_try_echo=$ac_try;;
41132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41133 (eval "$ac_compile") 2>conftest.er1
41135 grep -v '^ *+' conftest.er1 >conftest.err
41137 cat conftest.err >&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); } && {
41140 test -z "$ac_c_werror_flag" ||
41141 test ! -s conftest.err
41142 } && test -s conftest.$ac_objext; then
41143 ac_header_compiler=yes
41145 echo "$as_me: failed program was:" >&5
41146 sed 's/^/| /' conftest.$ac_ext >&5
41148 ac_header_compiler=no
41151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41153 echo "${ECHO_T}$ac_header_compiler" >&6; }
41155 # Is the header present?
41156 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41157 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41158 cat >conftest.$ac_ext <<_ACEOF
41161 cat confdefs.h >>conftest.$ac_ext
41162 cat >>conftest.$ac_ext <<_ACEOF
41163 /* end confdefs.h. */
41164 #include <sys/xattr.h>
41166 if { (ac_try="$ac_cpp conftest.$ac_ext"
41167 case "(($ac_try" in
41168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41169 *) ac_try_echo=$ac_try;;
41171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41174 grep -v '^ *+' conftest.er1 >conftest.err
41176 cat conftest.err >&5
41177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); } >/dev/null && {
41179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41180 test ! -s conftest.err
41182 ac_header_preproc=yes
41184 echo "$as_me: failed program was:" >&5
41185 sed 's/^/| /' conftest.$ac_ext >&5
41187 ac_header_preproc=no
41190 rm -f conftest.err conftest.$ac_ext
41191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41192 echo "${ECHO_T}$ac_header_preproc" >&6; }
41194 # So? What about this header?
41195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41197 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41198 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41199 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41200 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41201 ac_header_preproc=yes
41204 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41205 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41206 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41207 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41208 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41209 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41210 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41211 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41212 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41213 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41214 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41215 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41219 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41220 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41221 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41222 echo $ECHO_N "(cached) $ECHO_C" >&6
41224 ac_cv_header_sys_xattr_h=$ac_header_preproc
41226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41227 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41230 if test $ac_cv_header_sys_xattr_h = yes; then
41232 cat >>confdefs.h <<\_ACEOF
41233 #define HAVE_SYS_XATTR_H 1
41242 for ac_func in llistxattr lgetxattr lsetxattr
41244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41248 echo $ECHO_N "(cached) $ECHO_C" >&6
41250 cat >conftest.$ac_ext <<_ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h. */
41256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41258 #define $ac_func innocuous_$ac_func
41260 /* System header to define __stub macros and hopefully few prototypes,
41261 which can conflict with char $ac_func (); below.
41262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41263 <limits.h> exists even on freestanding compilers. */
41266 # include <limits.h>
41268 # include <assert.h>
41273 /* Override any GCC internal prototype to avoid an error.
41274 Use char because int might match the return type of a GCC
41275 builtin and then its argument prototype would still apply. */
41280 /* The GNU C library defines this for functions which it implements
41281 to always fail with ENOSYS. Some functions are actually named
41282 something starting with __ and the normal name is an alias. */
41283 #if defined __stub_$ac_func || defined __stub___$ac_func
41290 return $ac_func ();
41295 rm -f conftest.$ac_objext conftest$ac_exeext
41296 if { (ac_try="$ac_link"
41297 case "(($ac_try" in
41298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41299 *) ac_try_echo=$ac_try;;
41301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41302 (eval "$ac_link") 2>conftest.er1
41304 grep -v '^ *+' conftest.er1 >conftest.err
41306 cat conftest.err >&5
41307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308 (exit $ac_status); } && {
41309 test -z "$ac_c_werror_flag" ||
41310 test ! -s conftest.err
41311 } && test -s conftest$ac_exeext &&
41312 $as_test_x conftest$ac_exeext; then
41313 eval "$as_ac_var=yes"
41315 echo "$as_me: failed program was:" >&5
41316 sed 's/^/| /' conftest.$ac_ext >&5
41318 eval "$as_ac_var=no"
41321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41322 conftest$ac_exeext conftest.$ac_ext
41324 ac_res=`eval echo '${'$as_ac_var'}'`
41325 { echo "$as_me:$LINENO: result: $ac_res" >&5
41326 echo "${ECHO_T}$ac_res" >&6; }
41327 if test `eval echo '${'$as_ac_var'}'` = yes; then
41328 cat >>confdefs.h <<_ACEOF
41329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41334 cat >>confdefs.h <<\_ACEOF
41335 #define HAVE_LLISTXATTR
41339 cat >>confdefs.h <<\_ACEOF
41340 #define HAVE_LGETXATTR
41344 cat >>confdefs.h <<\_ACEOF
41345 #define HAVE_LSETXATTR
41357 if test $have_xattr = no; then
41361 for ac_func in listxattr getxattr setxattr
41363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41367 echo $ECHO_N "(cached) $ECHO_C" >&6
41369 cat >conftest.$ac_ext <<_ACEOF
41372 cat confdefs.h >>conftest.$ac_ext
41373 cat >>conftest.$ac_ext <<_ACEOF
41374 /* end confdefs.h. */
41375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41377 #define $ac_func innocuous_$ac_func
41379 /* System header to define __stub macros and hopefully few prototypes,
41380 which can conflict with char $ac_func (); below.
41381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41382 <limits.h> exists even on freestanding compilers. */
41385 # include <limits.h>
41387 # include <assert.h>
41392 /* Override any GCC internal prototype to avoid an error.
41393 Use char because int might match the return type of a GCC
41394 builtin and then its argument prototype would still apply. */
41399 /* The GNU C library defines this for functions which it implements
41400 to always fail with ENOSYS. Some functions are actually named
41401 something starting with __ and the normal name is an alias. */
41402 #if defined __stub_$ac_func || defined __stub___$ac_func
41409 return $ac_func ();
41414 rm -f conftest.$ac_objext conftest$ac_exeext
41415 if { (ac_try="$ac_link"
41416 case "(($ac_try" in
41417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41418 *) ac_try_echo=$ac_try;;
41420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41421 (eval "$ac_link") 2>conftest.er1
41423 grep -v '^ *+' conftest.er1 >conftest.err
41425 cat conftest.err >&5
41426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 (exit $ac_status); } && {
41428 test -z "$ac_c_werror_flag" ||
41429 test ! -s conftest.err
41430 } && test -s conftest$ac_exeext &&
41431 $as_test_x conftest$ac_exeext; then
41432 eval "$as_ac_var=yes"
41434 echo "$as_me: failed program was:" >&5
41435 sed 's/^/| /' conftest.$ac_ext >&5
41437 eval "$as_ac_var=no"
41440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41441 conftest$ac_exeext conftest.$ac_ext
41443 ac_res=`eval echo '${'$as_ac_var'}'`
41444 { echo "$as_me:$LINENO: result: $ac_res" >&5
41445 echo "${ECHO_T}$ac_res" >&6; }
41446 if test `eval echo '${'$as_ac_var'}'` = yes; then
41447 cat >>confdefs.h <<_ACEOF
41448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41453 cat >>confdefs.h <<\_ACEOF
41454 #define HAVE_LLISTXATTR
41458 cat >>confdefs.h <<\_ACEOF
41459 #define HAVE_LGETXATTR
41463 cat >>confdefs.h <<\_ACEOF
41464 #define HAVE_LSETXATTR
41477 if test $have_xattr = no; then
41478 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41479 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41480 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41481 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41482 echo $ECHO_N "(cached) $ECHO_C" >&6
41484 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41485 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41487 # Is the header compilable?
41488 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41489 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41490 cat >conftest.$ac_ext <<_ACEOF
41493 cat confdefs.h >>conftest.$ac_ext
41494 cat >>conftest.$ac_ext <<_ACEOF
41495 /* end confdefs.h. */
41496 $ac_includes_default
41497 #include <sys/attr.h>
41499 rm -f conftest.$ac_objext
41500 if { (ac_try="$ac_compile"
41501 case "(($ac_try" in
41502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41503 *) ac_try_echo=$ac_try;;
41505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41506 (eval "$ac_compile") 2>conftest.er1
41508 grep -v '^ *+' conftest.er1 >conftest.err
41510 cat conftest.err >&5
41511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41512 (exit $ac_status); } && {
41513 test -z "$ac_c_werror_flag" ||
41514 test ! -s conftest.err
41515 } && test -s conftest.$ac_objext; then
41516 ac_header_compiler=yes
41518 echo "$as_me: failed program was:" >&5
41519 sed 's/^/| /' conftest.$ac_ext >&5
41521 ac_header_compiler=no
41524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41526 echo "${ECHO_T}$ac_header_compiler" >&6; }
41528 # Is the header present?
41529 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41530 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41531 cat >conftest.$ac_ext <<_ACEOF
41534 cat confdefs.h >>conftest.$ac_ext
41535 cat >>conftest.$ac_ext <<_ACEOF
41536 /* end confdefs.h. */
41537 #include <sys/attr.h>
41539 if { (ac_try="$ac_cpp conftest.$ac_ext"
41540 case "(($ac_try" in
41541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41542 *) ac_try_echo=$ac_try;;
41544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41547 grep -v '^ *+' conftest.er1 >conftest.err
41549 cat conftest.err >&5
41550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551 (exit $ac_status); } >/dev/null && {
41552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41553 test ! -s conftest.err
41555 ac_header_preproc=yes
41557 echo "$as_me: failed program was:" >&5
41558 sed 's/^/| /' conftest.$ac_ext >&5
41560 ac_header_preproc=no
41563 rm -f conftest.err conftest.$ac_ext
41564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41565 echo "${ECHO_T}$ac_header_preproc" >&6; }
41567 # So? What about this header?
41568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41570 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41571 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41572 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41573 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41574 ac_header_preproc=yes
41577 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41578 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41579 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41580 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41581 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41582 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41583 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41584 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41585 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41586 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41587 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41588 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41592 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41593 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41594 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41595 echo $ECHO_N "(cached) $ECHO_C" >&6
41597 ac_cv_header_sys_attr_h=$ac_header_preproc
41599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41600 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41603 if test $ac_cv_header_sys_attr_h = yes; then
41605 cat >>confdefs.h <<\_ACEOF
41606 #define HAVE_SYS_ATTR_H 1
41612 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41613 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41614 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41615 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41616 echo $ECHO_N "(cached) $ECHO_C" >&6
41618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41619 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41621 # Is the header compilable?
41622 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41623 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41624 cat >conftest.$ac_ext <<_ACEOF
41627 cat confdefs.h >>conftest.$ac_ext
41628 cat >>conftest.$ac_ext <<_ACEOF
41629 /* end confdefs.h. */
41630 $ac_includes_default
41631 #include <sys/nvpair.h>
41633 rm -f conftest.$ac_objext
41634 if { (ac_try="$ac_compile"
41635 case "(($ac_try" in
41636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41637 *) ac_try_echo=$ac_try;;
41639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41640 (eval "$ac_compile") 2>conftest.er1
41642 grep -v '^ *+' conftest.er1 >conftest.err
41644 cat conftest.err >&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); } && {
41647 test -z "$ac_c_werror_flag" ||
41648 test ! -s conftest.err
41649 } && test -s conftest.$ac_objext; then
41650 ac_header_compiler=yes
41652 echo "$as_me: failed program was:" >&5
41653 sed 's/^/| /' conftest.$ac_ext >&5
41655 ac_header_compiler=no
41658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41660 echo "${ECHO_T}$ac_header_compiler" >&6; }
41662 # Is the header present?
41663 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41664 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41665 cat >conftest.$ac_ext <<_ACEOF
41668 cat confdefs.h >>conftest.$ac_ext
41669 cat >>conftest.$ac_ext <<_ACEOF
41670 /* end confdefs.h. */
41671 #include <sys/nvpair.h>
41673 if { (ac_try="$ac_cpp conftest.$ac_ext"
41674 case "(($ac_try" in
41675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41676 *) ac_try_echo=$ac_try;;
41678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41681 grep -v '^ *+' conftest.er1 >conftest.err
41683 cat conftest.err >&5
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); } >/dev/null && {
41686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41687 test ! -s conftest.err
41689 ac_header_preproc=yes
41691 echo "$as_me: failed program was:" >&5
41692 sed 's/^/| /' conftest.$ac_ext >&5
41694 ac_header_preproc=no
41697 rm -f conftest.err conftest.$ac_ext
41698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41699 echo "${ECHO_T}$ac_header_preproc" >&6; }
41701 # So? What about this header?
41702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41704 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41705 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41706 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41707 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41708 ac_header_preproc=yes
41711 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41712 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41713 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41714 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41715 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41716 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41717 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41718 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41719 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41720 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41721 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41722 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41726 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41727 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41728 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41729 echo $ECHO_N "(cached) $ECHO_C" >&6
41731 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41733 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41734 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41737 if test $ac_cv_header_sys_nvpair_h = yes; then
41739 cat >>confdefs.h <<\_ACEOF
41740 #define HAVE_SYS_NVPAIR_H 1
41746 if test "${ac_cv_header_attr_h+set}" = set; then
41747 { echo "$as_me:$LINENO: checking for attr.h" >&5
41748 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41749 if test "${ac_cv_header_attr_h+set}" = set; then
41750 echo $ECHO_N "(cached) $ECHO_C" >&6
41752 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41753 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41755 # Is the header compilable?
41756 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41757 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41758 cat >conftest.$ac_ext <<_ACEOF
41761 cat confdefs.h >>conftest.$ac_ext
41762 cat >>conftest.$ac_ext <<_ACEOF
41763 /* end confdefs.h. */
41764 $ac_includes_default
41767 rm -f conftest.$ac_objext
41768 if { (ac_try="$ac_compile"
41769 case "(($ac_try" in
41770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41771 *) ac_try_echo=$ac_try;;
41773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41774 (eval "$ac_compile") 2>conftest.er1
41776 grep -v '^ *+' conftest.er1 >conftest.err
41778 cat conftest.err >&5
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); } && {
41781 test -z "$ac_c_werror_flag" ||
41782 test ! -s conftest.err
41783 } && test -s conftest.$ac_objext; then
41784 ac_header_compiler=yes
41786 echo "$as_me: failed program was:" >&5
41787 sed 's/^/| /' conftest.$ac_ext >&5
41789 ac_header_compiler=no
41792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41794 echo "${ECHO_T}$ac_header_compiler" >&6; }
41796 # Is the header present?
41797 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41798 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41799 cat >conftest.$ac_ext <<_ACEOF
41802 cat confdefs.h >>conftest.$ac_ext
41803 cat >>conftest.$ac_ext <<_ACEOF
41804 /* end confdefs.h. */
41807 if { (ac_try="$ac_cpp conftest.$ac_ext"
41808 case "(($ac_try" in
41809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41810 *) ac_try_echo=$ac_try;;
41812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41815 grep -v '^ *+' conftest.er1 >conftest.err
41817 cat conftest.err >&5
41818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); } >/dev/null && {
41820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41821 test ! -s conftest.err
41823 ac_header_preproc=yes
41825 echo "$as_me: failed program was:" >&5
41826 sed 's/^/| /' conftest.$ac_ext >&5
41828 ac_header_preproc=no
41831 rm -f conftest.err conftest.$ac_ext
41832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41833 echo "${ECHO_T}$ac_header_preproc" >&6; }
41835 # So? What about this header?
41836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41838 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41839 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41840 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41841 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41842 ac_header_preproc=yes
41845 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41846 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41847 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41848 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41849 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41850 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41851 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41852 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41853 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41854 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41855 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41856 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41860 { echo "$as_me:$LINENO: checking for attr.h" >&5
41861 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41862 if test "${ac_cv_header_attr_h+set}" = set; then
41863 echo $ECHO_N "(cached) $ECHO_C" >&6
41865 ac_cv_header_attr_h=$ac_header_preproc
41867 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41868 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41871 if test $ac_cv_header_attr_h = yes; then
41873 cat >>confdefs.h <<\_ACEOF
41874 #define HAVE_ATTR_H 1
41886 for ac_func in openat fstatat unlinkat fchownat futimesat
41888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41892 echo $ECHO_N "(cached) $ECHO_C" >&6
41894 cat >conftest.$ac_ext <<_ACEOF
41897 cat confdefs.h >>conftest.$ac_ext
41898 cat >>conftest.$ac_ext <<_ACEOF
41899 /* end confdefs.h. */
41900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41902 #define $ac_func innocuous_$ac_func
41904 /* System header to define __stub macros and hopefully few prototypes,
41905 which can conflict with char $ac_func (); below.
41906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41907 <limits.h> exists even on freestanding compilers. */
41910 # include <limits.h>
41912 # include <assert.h>
41917 /* Override any GCC internal prototype to avoid an error.
41918 Use char because int might match the return type of a GCC
41919 builtin and then its argument prototype would still apply. */
41924 /* The GNU C library defines this for functions which it implements
41925 to always fail with ENOSYS. Some functions are actually named
41926 something starting with __ and the normal name is an alias. */
41927 #if defined __stub_$ac_func || defined __stub___$ac_func
41934 return $ac_func ();
41939 rm -f conftest.$ac_objext conftest$ac_exeext
41940 if { (ac_try="$ac_link"
41941 case "(($ac_try" in
41942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41943 *) ac_try_echo=$ac_try;;
41945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41946 (eval "$ac_link") 2>conftest.er1
41948 grep -v '^ *+' conftest.er1 >conftest.err
41950 cat conftest.err >&5
41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952 (exit $ac_status); } && {
41953 test -z "$ac_c_werror_flag" ||
41954 test ! -s conftest.err
41955 } && test -s conftest$ac_exeext &&
41956 $as_test_x conftest$ac_exeext; then
41957 eval "$as_ac_var=yes"
41959 echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41962 eval "$as_ac_var=no"
41965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41966 conftest$ac_exeext conftest.$ac_ext
41968 ac_res=`eval echo '${'$as_ac_var'}'`
41969 { echo "$as_me:$LINENO: result: $ac_res" >&5
41970 echo "${ECHO_T}$ac_res" >&6; }
41971 if test `eval echo '${'$as_ac_var'}'` = yes; then
41972 cat >>confdefs.h <<_ACEOF
41973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41978 cat >>confdefs.h <<\_ACEOF
41979 #define HAVE_OPENAT
41983 cat >>confdefs.h <<\_ACEOF
41984 #define HAVE_FSTATAT
41988 cat >>confdefs.h <<\_ACEOF
41989 #define HAVE_UNLINKAT
41993 cat >>confdefs.h <<\_ACEOF
41994 #define HAVE_FCHOWNAT
41998 cat >>confdefs.h <<\_ACEOF
41999 #define HAVE_FUTIMESAT
42008 if test $have_xattr = yes; then
42009 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42010 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42011 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42012 echo $ECHO_N "(cached) $ECHO_C" >&6
42014 ac_check_lib_save_LIBS=$LIBS
42015 LIBS="-lnvpair $LIBS"
42016 cat >conftest.$ac_ext <<_ACEOF
42019 cat confdefs.h >>conftest.$ac_ext
42020 cat >>conftest.$ac_ext <<_ACEOF
42021 /* end confdefs.h. */
42023 /* Override any GCC internal prototype to avoid an error.
42024 Use char because int might match the return type of a GCC
42025 builtin and then its argument prototype would still apply. */
42029 char nvlist_next_nvpair ();
42033 return nvlist_next_nvpair ();
42038 rm -f conftest.$ac_objext conftest$ac_exeext
42039 if { (ac_try="$ac_link"
42040 case "(($ac_try" in
42041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42042 *) ac_try_echo=$ac_try;;
42044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42045 (eval "$ac_link") 2>conftest.er1
42047 grep -v '^ *+' conftest.er1 >conftest.err
42049 cat conftest.err >&5
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); } && {
42052 test -z "$ac_c_werror_flag" ||
42053 test ! -s conftest.err
42054 } && test -s conftest$ac_exeext &&
42055 $as_test_x conftest$ac_exeext; then
42056 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42058 echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42061 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42065 conftest$ac_exeext conftest.$ac_ext
42066 LIBS=$ac_check_lib_save_LIBS
42068 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42069 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42070 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42072 FDLIBS="-lnvpair $FDLIBS"
42080 if test $have_xattr = yes; then
42082 cat >>confdefs.h <<\_ACEOF
42090 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42091 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42092 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42093 echo $ECHO_N "(cached) $ECHO_C" >&6
42095 ac_check_lib_save_LIBS=$LIBS
42096 LIBS="-lpthread $LIBS"
42097 cat >conftest.$ac_ext <<_ACEOF
42100 cat confdefs.h >>conftest.$ac_ext
42101 cat >>conftest.$ac_ext <<_ACEOF
42102 /* end confdefs.h. */
42104 /* Override any GCC internal prototype to avoid an error.
42105 Use char because int might match the return type of a GCC
42106 builtin and then its argument prototype would still apply. */
42110 char pthread_create ();
42114 return pthread_create ();
42119 rm -f conftest.$ac_objext conftest$ac_exeext
42120 if { (ac_try="$ac_link"
42121 case "(($ac_try" in
42122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42123 *) ac_try_echo=$ac_try;;
42125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42126 (eval "$ac_link") 2>conftest.er1
42128 grep -v '^ *+' conftest.er1 >conftest.err
42130 cat conftest.err >&5
42131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132 (exit $ac_status); } && {
42133 test -z "$ac_c_werror_flag" ||
42134 test ! -s conftest.err
42135 } && test -s conftest$ac_exeext &&
42136 $as_test_x conftest$ac_exeext; then
42137 ac_cv_lib_pthread_pthread_create=yes
42139 echo "$as_me: failed program was:" >&5
42140 sed 's/^/| /' conftest.$ac_ext >&5
42142 ac_cv_lib_pthread_pthread_create=no
42145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42146 conftest$ac_exeext conftest.$ac_ext
42147 LIBS=$ac_check_lib_save_LIBS
42149 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42150 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42151 if test $ac_cv_lib_pthread_pthread_create = yes; then
42152 PTHREAD_LIB="-lpthread"
42155 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42156 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42157 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42158 echo $ECHO_N "(cached) $ECHO_C" >&6
42160 ac_check_lib_save_LIBS=$LIBS
42161 LIBS="-lpthreads $LIBS"
42162 cat >conftest.$ac_ext <<_ACEOF
42165 cat confdefs.h >>conftest.$ac_ext
42166 cat >>conftest.$ac_ext <<_ACEOF
42167 /* end confdefs.h. */
42169 /* Override any GCC internal prototype to avoid an error.
42170 Use char because int might match the return type of a GCC
42171 builtin and then its argument prototype would still apply. */
42175 char pthread_create ();
42179 return pthread_create ();
42184 rm -f conftest.$ac_objext conftest$ac_exeext
42185 if { (ac_try="$ac_link"
42186 case "(($ac_try" in
42187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42188 *) ac_try_echo=$ac_try;;
42190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42191 (eval "$ac_link") 2>conftest.er1
42193 grep -v '^ *+' conftest.er1 >conftest.err
42195 cat conftest.err >&5
42196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197 (exit $ac_status); } && {
42198 test -z "$ac_c_werror_flag" ||
42199 test ! -s conftest.err
42200 } && test -s conftest$ac_exeext &&
42201 $as_test_x conftest$ac_exeext; then
42202 ac_cv_lib_pthreads_pthread_create=yes
42204 echo "$as_me: failed program was:" >&5
42205 sed 's/^/| /' conftest.$ac_ext >&5
42207 ac_cv_lib_pthreads_pthread_create=no
42210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42211 conftest$ac_exeext conftest.$ac_ext
42212 LIBS=$ac_check_lib_save_LIBS
42214 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42215 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42216 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42217 PTHREAD_LIB="-lpthreads"
42220 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42221 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42222 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42223 echo $ECHO_N "(cached) $ECHO_C" >&6
42225 ac_check_lib_save_LIBS=$LIBS
42227 cat >conftest.$ac_ext <<_ACEOF
42230 cat confdefs.h >>conftest.$ac_ext
42231 cat >>conftest.$ac_ext <<_ACEOF
42232 /* end confdefs.h. */
42234 /* Override any GCC internal prototype to avoid an error.
42235 Use char because int might match the return type of a GCC
42236 builtin and then its argument prototype would still apply. */
42240 char pthread_create ();
42244 return pthread_create ();
42249 rm -f conftest.$ac_objext conftest$ac_exeext
42250 if { (ac_try="$ac_link"
42251 case "(($ac_try" in
42252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42253 *) ac_try_echo=$ac_try;;
42255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42256 (eval "$ac_link") 2>conftest.er1
42258 grep -v '^ *+' conftest.er1 >conftest.err
42260 cat conftest.err >&5
42261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262 (exit $ac_status); } && {
42263 test -z "$ac_c_werror_flag" ||
42264 test ! -s conftest.err
42265 } && test -s conftest$ac_exeext &&
42266 $as_test_x conftest$ac_exeext; then
42267 ac_cv_lib_c_r_pthread_create=yes
42269 echo "$as_me: failed program was:" >&5
42270 sed 's/^/| /' conftest.$ac_ext >&5
42272 ac_cv_lib_c_r_pthread_create=no
42275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42276 conftest$ac_exeext conftest.$ac_ext
42277 LIBS=$ac_check_lib_save_LIBS
42279 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42280 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42281 if test $ac_cv_lib_c_r_pthread_create = yes; then
42282 PTHREAD_LIB="-lc_r"
42285 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42286 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42287 if test "${ac_cv_func_pthread_create+set}" = set; then
42288 echo $ECHO_N "(cached) $ECHO_C" >&6
42290 cat >conftest.$ac_ext <<_ACEOF
42293 cat confdefs.h >>conftest.$ac_ext
42294 cat >>conftest.$ac_ext <<_ACEOF
42295 /* end confdefs.h. */
42296 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42298 #define pthread_create innocuous_pthread_create
42300 /* System header to define __stub macros and hopefully few prototypes,
42301 which can conflict with char pthread_create (); below.
42302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42303 <limits.h> exists even on freestanding compilers. */
42306 # include <limits.h>
42308 # include <assert.h>
42311 #undef pthread_create
42313 /* Override any GCC internal prototype to avoid an error.
42314 Use char because int might match the return type of a GCC
42315 builtin and then its argument prototype would still apply. */
42319 char pthread_create ();
42320 /* The GNU C library defines this for functions which it implements
42321 to always fail with ENOSYS. Some functions are actually named
42322 something starting with __ and the normal name is an alias. */
42323 #if defined __stub_pthread_create || defined __stub___pthread_create
42330 return pthread_create ();
42335 rm -f conftest.$ac_objext conftest$ac_exeext
42336 if { (ac_try="$ac_link"
42337 case "(($ac_try" in
42338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42339 *) ac_try_echo=$ac_try;;
42341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42342 (eval "$ac_link") 2>conftest.er1
42344 grep -v '^ *+' conftest.er1 >conftest.err
42346 cat conftest.err >&5
42347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42348 (exit $ac_status); } && {
42349 test -z "$ac_c_werror_flag" ||
42350 test ! -s conftest.err
42351 } && test -s conftest$ac_exeext &&
42352 $as_test_x conftest$ac_exeext; then
42353 ac_cv_func_pthread_create=yes
42355 echo "$as_me: failed program was:" >&5
42356 sed 's/^/| /' conftest.$ac_ext >&5
42358 ac_cv_func_pthread_create=no
42361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42362 conftest$ac_exeext conftest.$ac_ext
42364 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42365 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42381 cat >>confdefs.h <<\_ACEOF
42386 CFLAGS=${CFLAGS--O}
42388 if test x$have_gcc = xyes ; then
42389 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42390 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42392 LDFLAGS=${LDFLAGS--O}
42393 DB_LIBS="${SQL_LFLAGS}"
42394 CPPFLAGS="$CPPFLAGS"
42421 PFILES="platforms/Makefile"
42425 hostname=`uname -n | cut -d '.' -f 1`
42426 if test x${hostname} = x ; then
42427 hostname="localhost"
42429 case "$DISTNAME" in
42432 PSCMD="ps -e -o pid,comm"
42433 PFILES="${PFILES} \
42434 platforms/aix/Makefile"
42435 TAPEDRIVE="/dev/rmt0.1"
42439 PTHREAD_LIB="-lpthread -lexc"
42440 if test "${CC}" = "gcc" ; then
42447 TAPEDRIVE="/dev/nrmt0"
42450 DISTVER=`uname -a |awk '{print $3}'`
42451 TAPEDRIVE="/dev/nrmt0"
42452 PTHREAD_LIB="-pthread"
42453 CFLAGS="${CFLAGS} -pthread"
42454 PSCMD="ps -ax -o pid,command"
42457 PFILES="${PFILES} \
42458 platforms/bsdi/Makefile \
42459 platforms/bsdi/bacula-fd \
42460 platforms/bsdi/bacula-sd \
42461 platforms/bsdi/bacula-dir"
42462 largefile_support="yes"
42465 DISTVER=`uname -a |awk '{print $3}'`
42466 TAPEDRIVE="/dev/nrst0"
42468 WCFLAGS="-mwindows"
42469 WLDFLAGS="-mwindows"
42473 TAPEDRIVE="/dev/nst0"
42474 PSCMD="ps -e -o pid,command"
42476 PFILES="${PFILES} \
42477 platforms/darwin/Makefile"
42480 ping -c 1 $hostname 2>&1 1>/dev/null
42481 if test ! $? = 0; then
42482 hostname="localhost"
42484 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42487 DISTVER=`cat /etc/debian_version`
42488 if test -f /etc/lsb-release ; then
42490 if test "x$DISTRIB_ID" != "x" ; then
42491 DISTNAME=$DISTRIB_ID
42493 if test "x$DISTRIB_RELEASE" != "x" ; then
42494 DISTVER=$DISTRIB_RELEASE
42497 if test "$DISTNAME" = "Ubuntu" ; then
42500 TAPEDRIVE="/dev/nst0"
42501 PSCMD="ps -e -o pid,command"
42502 if test "$DISTNAME" = "ubuntu" ; then
42503 PFILES="${PFILES} \
42504 platforms/ubuntu/Makefile \
42505 platforms/ubuntu/bacula-fd \
42506 platforms/ubuntu/bacula-sd \
42507 platforms/ubuntu/bacula-dir"
42509 PFILES="${PFILES} \
42510 platforms/debian/Makefile \
42511 platforms/debian/bacula-fd \
42512 platforms/debian/bacula-sd \
42513 platforms/debian/bacula-dir"
42517 ping -c 1 $hostname 2>&1 1>/dev/null
42518 if test ! $? = 0; then
42519 hostname="localhost"
42521 DISTVER=`uname -a |awk '{print $3}'`
42522 VER=`echo $DISTVER | cut -c 1`
42523 if test x$VER = x4 ; then
42524 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42525 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42529 TAPEDRIVE="/dev/nrsa0"
42530 PSCMD="ps -ax -o pid,command"
42531 PFILES="${PFILES} \
42532 platforms/freebsd/Makefile \
42533 platforms/freebsd/bacula-fd \
42534 platforms/freebsd/bacula-sd \
42535 platforms/freebsd/bacula-dir"
42536 largefile_support="yes"
42539 PSCMD="UNIX95=1; ps -e -o pid,comm"
42540 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42542 TAPEDRIVE="/dev/rmt/0hnb"
42543 PTHREAD_LIB="-lpthread"
42544 cat >>confdefs.h <<\_ACEOF
42545 #define _INCLUDE_LONGLONG 1
42551 TAPEDRIVE="/dev/rmt/0cbn"
42552 PSCMD="ps -e -o pid,comm"
42553 PFILES="${PFILES} \
42554 platforms/irix/Makefile \
42555 platforms/irix/bacula-fd \
42556 platforms/irix/bacula-sd \
42557 platforms/irix/bacula-dir"
42560 DISTVER=`uname -a |awk '{print $3}'`
42563 TAPEDRIVE="/dev/nrst0"
42564 PSCMD="ps -ax -o pid,command"
42565 PTHREAD_LIB="-pthread"
42566 CFLAGS="${CFLAGS} -pthread"
42569 DISTVER=`uname -a |awk '{print $3}'`
42572 TAPEDRIVE="/dev/nrst0"
42573 PSCMD="ps -ax -o pid,command"
42574 PTHREAD_LIB="-pthread"
42575 CFLAGS="${CFLAGS} -pthread"
42576 PFILES="${PFILES} \
42577 platforms/openbsd/Makefile \
42578 platforms/openbsd/bacula-fd \
42579 platforms/openbsd/bacula-sd \
42580 platforms/openbsd/bacula-dir"
42583 ping -c 1 $hostname 2>&1 1>/dev/null
42584 if test ! $? = 0; then
42585 hostname="localhost"
42587 if test -f /etc/whitebox-release ; then
42588 f=/etc/whitebox-release
42590 f=/etc/redhat-release
42592 if test `cat $f | grep release |\
42593 cut -f 3 -d ' '`x = "Enterprise"x ; then
42594 DISTVER="Enterprise "`cat $f | grep release |\
42597 DISTVER=`cat /etc/redhat-release | grep release |\
42600 TAPEDRIVE="/dev/nst0"
42601 PSCMD="ps -e -o pid,command"
42602 PFILES="${PFILES} \
42603 platforms/redhat/Makefile \
42604 platforms/redhat/bacula-fd \
42605 platforms/redhat/bacula-sd \
42606 platforms/redhat/bacula-dir \
42607 platforms/redhat/bacula.spec \
42611 ping -c 1 $hostname 2>&1 1>/dev/null
42612 if test ! $? = 0; then
42613 hostname="localhost"
42615 DISTVER=`cat /etc/mandrake-release | grep release |\
42617 TAPEDRIVE="/dev/nst0"
42618 PSCMD="ps -e -o pid,command"
42619 PFILES="${PFILES} \
42620 platforms/mandrake/Makefile \
42621 platforms/mandrake/bacula-fd \
42622 platforms/mandrake/bacula-sd \
42623 platforms/mandrake/bacula-dir \
42624 platforms/mandrake/bacula.spec \
42628 ping -c 1 $hostname 2>&1 1>/dev/null
42629 if test ! $? = 0; then
42630 hostname="localhost"
42632 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42633 TAPEDRIVE="/dev/nst0"
42634 PSCMD="ps -e -o pid,command"
42635 PFILES="${PFILES} \
42636 platforms/gentoo/Makefile \
42637 platforms/gentoo/bacula-init \
42638 platforms/gentoo/bacula-fd \
42639 platforms/gentoo/bacula-sd \
42640 platforms/gentoo/bacula-dir"
42643 ping -c 1 $hostname 2>&1 1>/dev/null
42644 if test ! $? = 0; then
42645 hostname="localhost"
42647 DISTVER=`cat /etc/slackware-version`
42648 TAPEDRIVE="/dev/nst0"
42649 PSCMD="ps -e -o pid,command"
42650 PFILES="${PFILES} \
42651 platforms/slackware/Makefile \
42652 platforms/slackware/rc.bacula-fd \
42653 platforms/slackware/rc.bacula-sd \
42654 platforms/slackware/rc.bacula-dir\
42655 platforms/slackware/functions.bacula"
42659 TAPEDRIVE="/dev/rmt/0cbn"
42660 PSCMD="ps -e -o pid,comm"
42661 PFILES="${PFILES} \
42662 platforms/solaris/Makefile \
42663 platforms/solaris/bacula-fd \
42664 platforms/solaris/bacula-sd \
42665 platforms/solaris/bacula-dir"
42666 if test x$DISTVER = x5.6 ; then
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_OLD_SOCKOPT 1
42672 LIBS="$LIBS -lresolv"
42675 ping -c 1 $hostname 2>&1 1>/dev/null
42676 if test ! $? = 0; then
42677 hostname="localhost"
42679 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42681 TAPEDRIVE="/dev/nst0"
42682 PSCMD="ps -e -o pid,command"
42683 PFILES="${PFILES} \
42684 platforms/suse/Makefile \
42685 platforms/suse/bacula-fd \
42686 platforms/suse/bacula-sd \
42687 platforms/suse/bacula-dir \
42688 platforms/suse/bacula \
42689 platforms/suse/bacula.spec"
42692 ping -c 1 $hostname 2>&1 1>/dev/null
42693 if test ! $? = 0; then
42694 hostname="localhost"
42698 TAPEDRIVE="/dev/nst0"
42699 PSCMD="ps -e -o pid,command"
42700 PFILES="${PFILES} \
42701 platforms/suse/Makefile \
42702 platforms/suse/bacula-fd \
42703 platforms/suse/bacula-sd \
42704 platforms/suse/bacula-dir"
42708 TAPEDRIVE="/dev/nst0"
42711 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42717 LIBS="$PTHREAD_LIB $LIBS"
42719 cat >>confdefs.h <<_ACEOF
42723 cat >>confdefs.h <<_ACEOF
42734 MCOMMON=./autoconf/Make.common
42737 if test "x${subsysdir}" = "x${sbindir}" ; then
42740 echo "You have set both --sbindir and --with-subsys-dir"
42741 echo " equal to: ${subsysdir} "
42742 echo "This is not permitted. Please reconfigure."
42744 echo "Aborting configuration ..."
42750 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
42752 ac_config_commands="$ac_config_commands default"
42754 cat >confcache <<\_ACEOF
42755 # This file is a shell script that caches the results of configure
42756 # tests run on this system so they can be shared between configure
42757 # scripts and configure runs, see configure's option --config-cache.
42758 # It is not useful on other systems. If it contains results you don't
42759 # want to keep, you may remove or edit it.
42761 # config.status only pays attention to the cache file if you give it
42762 # the --recheck option to rerun configure.
42764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42766 # following values.
42770 # The following way of writing the cache mishandles newlines in values,
42771 # but we know of no workaround that is simple, portable, and efficient.
42772 # So, we kill variables containing newlines.
42773 # Ultrix sh set writes to stderr and can't be redirected directly,
42774 # and sets the high bit in the cache file unless we assign to the vars.
42776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42777 eval ac_val=\$$ac_var
42781 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42785 _ | IFS | as_nl) ;; #(
42786 *) $as_unset $ac_var ;;
42792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42793 *${as_nl}ac_space=\ *)
42794 # `set' does not quote correctly, so add quotes (double-quote
42795 # substitution turns \\\\ into \\, and sed turns \\ into \).
42798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42801 # `set' quotes correctly as required by POSIX, so do not add quotes.
42802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42816 if test -w "$cache_file"; then
42817 test "x$cache_file" != "x/dev/null" &&
42818 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42819 echo "$as_me: updating cache $cache_file" >&6;}
42820 cat confcache >$cache_file
42822 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42823 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42829 # Let make expand exec_prefix.
42830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42832 DEFS=-DHAVE_CONFIG_H
42836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42837 # 1. Remove the extension, and $U if already installed.
42838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42839 ac_i=`echo "$ac_i" | sed "$ac_script"`
42840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42841 # will be set to the directory where LIBOBJS objects are built.
42842 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42843 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42845 LIBOBJS=$ac_libobjs
42847 LTLIBOBJS=$ac_ltlibobjs
42851 : ${CONFIG_STATUS=./config.status}
42852 ac_clean_files_save=$ac_clean_files
42853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42854 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42855 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42856 cat >$CONFIG_STATUS <<_ACEOF
42858 # Generated by $as_me.
42859 # Run this file to recreate the current configuration.
42860 # Compiler output produced by configure, useful for debugging
42861 # configure, is in config.log if it exists.
42864 ac_cs_recheck=false
42866 SHELL=\${CONFIG_SHELL-$SHELL}
42869 cat >>$CONFIG_STATUS <<\_ACEOF
42870 ## --------------------- ##
42871 ## M4sh Initialization. ##
42872 ## --------------------- ##
42874 # Be more Bourne compatible
42875 DUALCASE=1; export DUALCASE # for MKS sh
42876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42879 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42880 # is contrary to our usage. Disable this feature.
42881 alias -g '${1+"$@"}'='"$@"'
42882 setopt NO_GLOB_SUBST
42884 case `(set -o) 2>/dev/null` in
42885 *posix*) set -o posix ;;
42894 # Avoid depending upon Character Ranges.
42895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42898 as_cr_digits='0123456789'
42899 as_cr_alnum=$as_cr_Letters$as_cr_digits
42901 # The user is always right.
42902 if test "${PATH_SEPARATOR+set}" != set; then
42903 echo "#! /bin/sh" >conf$$.sh
42904 echo "exit 0" >>conf$$.sh
42906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42914 # Support unset when possible.
42915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42923 # We need space, tab and new line, in precisely that order. Quoting is
42924 # there to prevent editors from complaining about space-tab.
42925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42926 # splitting by setting IFS to empty value.)
42931 # Find who we are. Look in the path if we contain no directory separator.
42933 *[\\/]* ) as_myself=$0 ;;
42934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42935 for as_dir in $PATH
42938 test -z "$as_dir" && as_dir=.
42939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42945 # We did not find ourselves, most probably we were run as `sh COMMAND'
42946 # in which case we are not to be found in the path.
42947 if test "x$as_myself" = x; then
42950 if test ! -f "$as_myself"; then
42951 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42952 { (exit 1); exit 1; }
42955 # Work around bugs in pre-3.0 UWIN ksh.
42956 for as_var in ENV MAIL MAILPATH
42957 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42965 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42966 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42967 LC_TELEPHONE LC_TIME
42969 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42970 eval $as_var=C; export $as_var
42972 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42976 # Required to use basename.
42977 if expr a : '\(a\)' >/dev/null 2>&1 &&
42978 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42985 as_basename=basename
42991 # Name of the executable.
42992 as_me=`$as_basename -- "$0" ||
42993 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42994 X"$0" : 'X\(//\)$' \| \
42995 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42997 sed '/^.*\/\([^/][^/]*\)\/*$/{
43016 as_lineno_1=$LINENO
43017 as_lineno_2=$LINENO
43018 test "x$as_lineno_1" != "x$as_lineno_2" &&
43019 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43021 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43022 # uniformly replaced by the line number. The first 'sed' inserts a
43023 # line-number line after each line using $LINENO; the second 'sed'
43024 # does the real work. The second script uses 'N' to pair each
43025 # line-number line with the line containing $LINENO, and appends
43026 # trailing '-' during substitution so that $LINENO is not a special
43027 # case at line end.
43028 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43029 # scripts with optimization help from Paolo Bonzini. Blame Lee
43030 # E. McMahon (1931-1989) for sed's syntax. :-)
43042 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43045 ' >$as_me.lineno &&
43046 chmod +x "$as_me.lineno" ||
43047 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43048 { (exit 1); exit 1; }; }
43050 # Don't try to exec as it changes $[0], causing all sort of problems
43051 # (the dirname of $[0] is not the place where we might find the
43052 # original and so on. Autoconf is especially sensitive to this).
43053 . "./$as_me.lineno"
43054 # Exit status is that of the last command.
43059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43065 ECHO_C= ECHO_N= ECHO_T=
43066 case `echo -n x` in
43068 case `echo 'x\c'` in
43069 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43076 if expr a : '\(a\)' >/dev/null 2>&1 &&
43077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43083 rm -f conf$$ conf$$.exe conf$$.file
43084 if test -d conf$$.dir; then
43085 rm -f conf$$.dir/conf$$.file
43091 if ln -s conf$$.file conf$$ 2>/dev/null; then
43093 # ... but there are two gotchas:
43094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43096 # In both cases, we have to default to `cp -p'.
43097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43099 elif ln conf$$.file conf$$ 2>/dev/null; then
43104 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43105 rmdir conf$$.dir 2>/dev/null
43107 if mkdir -p . 2>/dev/null; then
43110 test -d ./-p && rmdir ./-p
43114 if test -x / >/dev/null 2>&1; then
43115 as_test_x='test -x'
43117 if ls -dL / >/dev/null 2>&1; then
43124 if test -d "$1"; then
43130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43131 ???[sx]*):;;*)false;;esac;fi
43135 as_executable_p=$as_test_x
43137 # Sed expression to map a string onto a valid CPP name.
43138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43140 # Sed expression to map a string onto a valid variable name.
43141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43146 # Save the log message, to keep $[0] and so on meaningful, and to
43147 # report actual input values of CONFIG_FILES etc. instead of their
43148 # values after options handling.
43150 This file was extended by $as_me, which was
43151 generated by GNU Autoconf 2.61. Invocation command line was
43153 CONFIG_FILES = $CONFIG_FILES
43154 CONFIG_HEADERS = $CONFIG_HEADERS
43155 CONFIG_LINKS = $CONFIG_LINKS
43156 CONFIG_COMMANDS = $CONFIG_COMMANDS
43159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43164 cat >>$CONFIG_STATUS <<_ACEOF
43165 # Files that config.status was made for.
43166 config_files="$ac_config_files"
43167 config_headers="$ac_config_headers"
43168 config_commands="$ac_config_commands"
43172 cat >>$CONFIG_STATUS <<\_ACEOF
43174 \`$as_me' instantiates files from templates according to the
43175 current configuration.
43177 Usage: $0 [OPTIONS] [FILE]...
43179 -h, --help print this help, then exit
43180 -V, --version print version number and configuration settings, then exit
43181 -q, --quiet do not print progress messages
43182 -d, --debug don't remove temporary files
43183 --recheck update $as_me by reconfiguring in the same conditions
43184 --file=FILE[:TEMPLATE]
43185 instantiate the configuration file FILE
43186 --header=FILE[:TEMPLATE]
43187 instantiate the configuration header FILE
43189 Configuration files:
43192 Configuration headers:
43195 Configuration commands:
43198 Report bugs to <bug-autoconf@gnu.org>."
43201 cat >>$CONFIG_STATUS <<_ACEOF
43204 configured by $0, generated by GNU Autoconf 2.61,
43205 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43207 Copyright (C) 2006 Free Software Foundation, Inc.
43208 This config.status script is free software; the Free Software Foundation
43209 gives unlimited permission to copy, distribute and modify it."
43216 cat >>$CONFIG_STATUS <<\_ACEOF
43217 # If no file are specified by the user, then we need to provide default
43218 # value. By we need to know if files were specified by the user.
43224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43236 # Handling of the options.
43237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43240 echo "$ac_cs_version"; exit ;;
43241 --debug | --debu | --deb | --de | --d | -d )
43243 --file | --fil | --fi | --f )
43245 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43246 ac_need_defaults=false;;
43247 --header | --heade | --head | --hea )
43249 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43250 ac_need_defaults=false;;
43252 # Conflict between --help and --header
43253 { echo "$as_me: error: ambiguous option: $1
43254 Try \`$0 --help' for more information." >&2
43255 { (exit 1); exit 1; }; };;
43256 --help | --hel | -h )
43257 echo "$ac_cs_usage"; exit ;;
43258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43262 # This is an error.
43263 -*) { echo "$as_me: error: unrecognized option: $1
43264 Try \`$0 --help' for more information." >&2
43265 { (exit 1); exit 1; }; } ;;
43267 *) ac_config_targets="$ac_config_targets $1"
43268 ac_need_defaults=false ;;
43274 ac_configure_extra_args=
43276 if $ac_cs_silent; then
43278 ac_configure_extra_args="$ac_configure_extra_args --silent"
43282 cat >>$CONFIG_STATUS <<_ACEOF
43283 if \$ac_cs_recheck; then
43284 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43285 CONFIG_SHELL=$SHELL
43286 export CONFIG_SHELL
43287 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43291 cat >>$CONFIG_STATUS <<\_ACEOF
43295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43296 ## Running $as_me. ##
43302 cat >>$CONFIG_STATUS <<_ACEOF
43308 # The HP-UX ksh and POSIX shell print the target directory to stdout
43309 # if CDPATH is set.
43310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43312 sed_quote_subst='$sed_quote_subst'
43313 double_quote_subst='$double_quote_subst'
43314 delay_variable_subst='$delay_variable_subst'
43315 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43316 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43317 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43318 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43319 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43320 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43321 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43322 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43323 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43324 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43325 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43326 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43327 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43328 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43329 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43330 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43331 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43332 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43333 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43334 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43335 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43336 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43337 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43338 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43339 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43340 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43341 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43342 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43343 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43344 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43345 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43346 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43347 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43348 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43349 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43350 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43351 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43352 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43353 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43354 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43355 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43356 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43357 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43358 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43359 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
43360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43361 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43362 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43363 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43364 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43365 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43366 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43367 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43368 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43369 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43370 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43371 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43372 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43373 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43374 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43375 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43376 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43377 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43378 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43379 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43380 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43381 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43382 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43383 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43384 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43385 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43386 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43387 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43388 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43389 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43390 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43391 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43392 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43393 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43394 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43395 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43396 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43397 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43398 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43399 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43400 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43401 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43402 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43403 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43404 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43405 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43406 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43407 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43408 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43409 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43410 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43411 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43412 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43413 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43414 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43415 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43416 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43417 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43418 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43419 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43420 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43421 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43422 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43423 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43424 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43425 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43426 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43427 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43428 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43429 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43430 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43431 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43432 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43433 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43434 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43435 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43436 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43437 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43438 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43439 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43440 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43441 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43442 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43443 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43444 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43445 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43446 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43447 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43448 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43449 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43450 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43451 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43452 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43453 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43454 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43455 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43456 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43457 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43458 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43459 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43460 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43461 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43462 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43463 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43464 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43465 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43466 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43467 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43468 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43469 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43470 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43471 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43472 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43473 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43474 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43475 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43476 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43477 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43478 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43479 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43480 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43481 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43482 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43483 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43484 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43485 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43488 LTCFLAGS='$LTCFLAGS'
43489 compiler='$compiler_DEFAULT'
43491 # Quote evaled strings.
43503 deplibs_check_method \
43512 lt_cv_sys_global_symbol_pipe \
43513 lt_cv_sys_global_symbol_to_cdecl \
43514 lt_cv_sys_global_symbol_to_c_name_address \
43515 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43518 lt_prog_compiler_no_builtin_flag \
43519 lt_prog_compiler_wl \
43520 lt_prog_compiler_pic \
43521 lt_prog_compiler_static \
43522 lt_cv_prog_compiler_c_o \
43530 export_dynamic_flag_spec \
43531 whole_archive_flag_spec \
43532 compiler_needs_object \
43534 allow_undefined_flag \
43535 no_undefined_flag \
43536 hardcode_libdir_flag_spec \
43537 hardcode_libdir_flag_spec_ld \
43538 hardcode_libdir_separator \
43543 variables_saved_for_relink \
43545 library_names_spec \
43550 compiler_lib_search_dirs \
43555 compiler_lib_search_path \
43558 lt_prog_compiler_no_builtin_flag_CXX \
43559 lt_prog_compiler_wl_CXX \
43560 lt_prog_compiler_pic_CXX \
43561 lt_prog_compiler_static_CXX \
43562 lt_cv_prog_compiler_c_o_CXX \
43563 export_dynamic_flag_spec_CXX \
43564 whole_archive_flag_spec_CXX \
43565 compiler_needs_object_CXX \
43567 allow_undefined_flag_CXX \
43568 no_undefined_flag_CXX \
43569 hardcode_libdir_flag_spec_CXX \
43570 hardcode_libdir_flag_spec_ld_CXX \
43571 hardcode_libdir_separator_CXX \
43572 fix_srcfile_path_CXX \
43573 exclude_expsyms_CXX \
43574 include_expsyms_CXX \
43575 file_list_spec_CXX \
43576 compiler_lib_search_dirs_CXX \
43577 predep_objects_CXX \
43578 postdep_objects_CXX \
43581 compiler_lib_search_path_CXX; do
43582 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43583 *[\\\\\\\`\\"\\\$]*)
43584 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43587 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43592 # Double-quote double-evaled strings.
43593 for var in reload_cmds \
43594 old_postinstall_cmds \
43595 old_postuninstall_cmds \
43597 extract_expsyms_cmds \
43598 old_archive_from_new_cmds \
43599 old_archive_from_expsyms_cmds \
43601 archive_expsym_cmds \
43603 module_expsym_cmds \
43604 export_symbols_cmds \
43607 postuninstall_cmds \
43609 sys_lib_search_path_spec \
43610 sys_lib_dlsearch_path_spec \
43611 old_archive_cmds_CXX \
43612 old_archive_from_new_cmds_CXX \
43613 old_archive_from_expsyms_cmds_CXX \
43615 archive_expsym_cmds_CXX \
43617 module_expsym_cmds_CXX \
43618 export_symbols_cmds_CXX \
43619 prelink_cmds_CXX; do
43620 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43621 *[\\\\\\\`\\"\\\$]*)
43622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43630 # Fix-up fallback echo if it was mangled by the above quoting rules.
43632 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43636 ac_aux_dir='$ac_aux_dir'
43637 xsi_shell='$xsi_shell'
43638 lt_shell_append='$lt_shell_append'
43640 # See if we are running on zsh, and set the options which allow our
43641 # commands through without removal of \ escapes INIT.
43642 if test -n "\${ZSH_VERSION+set}" ; then
43643 setopt NO_GLOB_SUBST
43649 TIMESTAMP='$TIMESTAMP'
43657 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43658 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43660 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43661 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43662 LINGUAS="${LINGUAS-%UNSET%}"
43667 cat >>$CONFIG_STATUS <<\_ACEOF
43669 # Handling of arguments.
43670 for ac_config_target in $ac_config_targets
43672 case $ac_config_target in
43673 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43674 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43675 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43676 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43678 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43679 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43680 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43681 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43682 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43683 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43684 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43685 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43686 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43687 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43688 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43689 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43690 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43691 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43692 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43693 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43694 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43695 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43696 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43697 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43698 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43699 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43700 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43701 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43702 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43703 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43704 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43705 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43706 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43707 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43708 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43709 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43710 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43711 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43712 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43713 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43714 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43715 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43716 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43717 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43718 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43719 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43720 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43721 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43722 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43723 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43724 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43725 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43726 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43727 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43728 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43729 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43730 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43731 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43732 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43733 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43734 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43735 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43736 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43737 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43738 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43739 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43740 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43741 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43742 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43743 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43744 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43745 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43746 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43747 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43748 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43749 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43750 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43751 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43752 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43753 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43754 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43755 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43756 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43757 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43758 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43759 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43760 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43761 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43762 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43763 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43764 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43765 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43766 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43767 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43768 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43769 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43770 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43771 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43772 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43773 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43774 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43775 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43776 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43777 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43778 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43779 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43780 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43781 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43782 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43783 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43784 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43785 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43786 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43787 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43788 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43789 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43790 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43791 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43792 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43795 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43796 { (exit 1); exit 1; }; };;
43801 # If the user did not use the arguments to specify the items to instantiate,
43802 # then the envvar interface is used. Set only those that are not.
43803 # We use the long form for the default assignment because of an extremely
43804 # bizarre bug on SunOS 4.1.3.
43805 if $ac_need_defaults; then
43806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43808 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43811 # Have a temporary directory for convenience. Make it in the build tree
43812 # simply because there is no reason against having it here, and in addition,
43813 # creating and moving files from /tmp can sometimes cause problems.
43814 # Hook for its removal unless debugging.
43815 # Note that there is a small window in which the directory will not be cleaned:
43816 # after its creation but before its name has been assigned to `$tmp'.
43820 trap 'exit_status=$?
43821 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43823 trap '{ (exit 1); exit 1; }' 1 2 13 15
43825 # Create a (secure) tmp directory for tmp files.
43828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43829 test -n "$tmp" && test -d "$tmp"
43832 tmp=./conf$$-$RANDOM
43833 (umask 077 && mkdir "$tmp")
43836 echo "$me: cannot create a temporary directory in ." >&2
43837 { (exit 1); exit 1; }
43841 # Set up the sed scripts for CONFIG_FILES section.
43844 # No need to generate the scripts if there are no CONFIG_FILES.
43845 # This happens for instance when ./config.status config.h
43846 if test -n "$CONFIG_FILES"; then
43850 # Create sed commands to just substitute file output variables.
43852 # Remaining file output variables are in a fragment that also has non-file
43858 for ac_last_try in false false false false false :; do
43859 cat >conf$$subs.sed <<_ACEOF
43860 SHELL!$SHELL$ac_delim
43861 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43862 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43863 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43864 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43865 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43866 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43867 exec_prefix!$exec_prefix$ac_delim
43868 prefix!$prefix$ac_delim
43869 program_transform_name!$program_transform_name$ac_delim
43870 bindir!$bindir$ac_delim
43871 sbindir!$sbindir$ac_delim
43872 libexecdir!$libexecdir$ac_delim
43873 datarootdir!$datarootdir$ac_delim
43874 datadir!$datadir$ac_delim
43875 sysconfdir!$sysconfdir$ac_delim
43876 sharedstatedir!$sharedstatedir$ac_delim
43877 localstatedir!$localstatedir$ac_delim
43878 includedir!$includedir$ac_delim
43879 oldincludedir!$oldincludedir$ac_delim
43880 docdir!$docdir$ac_delim
43881 infodir!$infodir$ac_delim
43882 htmldir!$htmldir$ac_delim
43883 dvidir!$dvidir$ac_delim
43884 pdfdir!$pdfdir$ac_delim
43885 psdir!$psdir$ac_delim
43886 libdir!$libdir$ac_delim
43887 localedir!$localedir$ac_delim
43888 mandir!$mandir$ac_delim
43889 DEFS!$DEFS$ac_delim
43890 ECHO_C!$ECHO_C$ac_delim
43891 ECHO_N!$ECHO_N$ac_delim
43892 ECHO_T!$ECHO_T$ac_delim
43893 LIBS!$LIBS$ac_delim
43894 build_alias!$build_alias$ac_delim
43895 host_alias!$host_alias$ac_delim
43896 target_alias!$target_alias$ac_delim
43897 BUILD_DIR!$BUILD_DIR$ac_delim
43898 TOP_DIR!$TOP_DIR$ac_delim
43899 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43900 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43901 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43902 TRUEPRG!$TRUEPRG$ac_delim
43903 FALSEPRG!$FALSEPRG$ac_delim
43904 VERSION!$VERSION$ac_delim
43905 DATE!$DATE$ac_delim
43906 LSMDATE!$LSMDATE$ac_delim
43907 BACULA!$BACULA$ac_delim
43908 post_host!$post_host$ac_delim
43910 CFLAGS!$CFLAGS$ac_delim
43911 LDFLAGS!$LDFLAGS$ac_delim
43912 CPPFLAGS!$CPPFLAGS$ac_delim
43913 ac_ct_CC!$ac_ct_CC$ac_delim
43914 EXEEXT!$EXEEXT$ac_delim
43915 OBJEXT!$OBJEXT$ac_delim
43917 CXXFLAGS!$CXXFLAGS$ac_delim
43918 ac_ct_CXX!$ac_ct_CXX$ac_delim
43920 GREP!$GREP$ac_delim
43921 EGREP!$EGREP$ac_delim
43922 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43923 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43924 INSTALL_DATA!$INSTALL_DATA$ac_delim
43926 REMOVE!$REMOVE$ac_delim
43929 ECHO!$ECHO$ac_delim
43933 OPENSSL!$OPENSSL$ac_delim
43936 MKISOFS!$MKISOFS$ac_delim
43937 PYTHON!$PYTHON$ac_delim
43938 GROWISOFS!$GROWISOFS$ac_delim
43939 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43940 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43941 PKGCONFIG!$PKGCONFIG$ac_delim
43942 QMAKE!$QMAKE$ac_delim
43943 QMAKEQT4!$QMAKEQT4$ac_delim
43944 GMAKE!$GMAKE$ac_delim
43945 WXCONFIG!$WXCONFIG$ac_delim
43946 WXFLAGS!$WXFLAGS$ac_delim
43947 CDRECORD!$CDRECORD$ac_delim
43948 PIDOF!$PIDOF$ac_delim
43950 ARFLAGS!$ARFLAGS$ac_delim
43951 MAKE_SHELL!$MAKE_SHELL$ac_delim
43952 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43953 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43956 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43958 elif $ac_last_try; then
43959 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43960 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43961 { (exit 1); exit 1; }; }
43963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43967 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43968 if test -n "$ac_eof"; then
43969 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43970 ac_eof=`expr $ac_eof + 1`
43973 cat >>$CONFIG_STATUS <<_ACEOF
43974 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43976 /^[ ]*@MCOMMON@[ ]*$/{
43982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43983 s/^/s,@/; s/!/@,|#_!!_#|/
43986 s/'"$ac_delim"'$/,g/; t
43988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43989 ' >>$CONFIG_STATUS <conf$$subs.sed
43990 rm -f conf$$subs.sed
43991 cat >>$CONFIG_STATUS <<_ACEOF
43997 for ac_last_try in false false false false false :; do
43998 cat >conf$$subs.sed <<_ACEOF
43999 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44000 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44001 LIBTOOL!$LIBTOOL$ac_delim
44002 build!$build$ac_delim
44003 build_cpu!$build_cpu$ac_delim
44004 build_vendor!$build_vendor$ac_delim
44005 build_os!$build_os$ac_delim
44006 host!$host$ac_delim
44007 host_cpu!$host_cpu$ac_delim
44008 host_vendor!$host_vendor$ac_delim
44009 host_os!$host_os$ac_delim
44010 FGREP!$FGREP$ac_delim
44012 DUMPBIN!$DUMPBIN$ac_delim
44013 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44015 LN_S!$LN_S$ac_delim
44016 OBJDUMP!$OBJDUMP$ac_delim
44017 STRIP!$STRIP$ac_delim
44018 RANLIB!$RANLIB$ac_delim
44019 lt_ECHO!$lt_ECHO$ac_delim
44020 DSYMUTIL!$DSYMUTIL$ac_delim
44021 NMEDIT!$NMEDIT$ac_delim
44022 LIPO!$LIPO$ac_delim
44023 OTOOL!$OTOOL$ac_delim
44024 OTOOL64!$OTOOL64$ac_delim
44025 CXXCPP!$CXXCPP$ac_delim
44026 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44027 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44028 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44029 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44030 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44031 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44032 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44033 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44034 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44035 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44036 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44037 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44038 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44039 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44040 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44041 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44042 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44043 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44044 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44045 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44046 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44047 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44048 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44049 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44050 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44051 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44052 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44053 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44054 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44055 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44056 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44057 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44058 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44059 SET_MAKE!$SET_MAKE$ac_delim
44060 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44061 USE_NLS!$USE_NLS$ac_delim
44062 MSGFMT!$MSGFMT$ac_delim
44063 GMSGFMT!$GMSGFMT$ac_delim
44064 XGETTEXT!$XGETTEXT$ac_delim
44065 MSGMERGE!$MSGMERGE$ac_delim
44066 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44067 LIBICONV!$LIBICONV$ac_delim
44068 LTLIBICONV!$LTLIBICONV$ac_delim
44069 INTLLIBS!$INTLLIBS$ac_delim
44070 LIBINTL!$LIBINTL$ac_delim
44071 LTLIBINTL!$LTLIBINTL$ac_delim
44072 POSUB!$POSUB$ac_delim
44073 GLIBC2!$GLIBC2$ac_delim
44074 ALLOCA!$ALLOCA$ac_delim
44075 GLIBC21!$GLIBC21$ac_delim
44076 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44077 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44078 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44079 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44080 INTLBISON!$INTLBISON$ac_delim
44081 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44082 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44083 CATOBJEXT!$CATOBJEXT$ac_delim
44084 DATADIRNAME!$DATADIRNAME$ac_delim
44085 INSTOBJEXT!$INSTOBJEXT$ac_delim
44086 GENCAT!$GENCAT$ac_delim
44087 INTLOBJS!$INTLOBJS$ac_delim
44088 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44089 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44090 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44091 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44092 GNOME_LIBS!$GNOME_LIBS$ac_delim
44093 GNOME_DIR!$GNOME_DIR$ac_delim
44094 BAT_DIR!$BAT_DIR$ac_delim
44095 QWT_INC!$QWT_INC$ac_delim
44098 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44100 elif $ac_last_try; then
44101 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44103 { (exit 1); exit 1; }; }
44105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44110 if test -n "$ac_eof"; then
44111 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44112 ac_eof=`expr $ac_eof + 1`
44115 cat >>$CONFIG_STATUS <<_ACEOF
44116 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44121 s/^/s,@/; s/!/@,|#_!!_#|/
44124 s/'"$ac_delim"'$/,g/; t
44126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44127 ' >>$CONFIG_STATUS <conf$$subs.sed
44128 rm -f conf$$subs.sed
44129 cat >>$CONFIG_STATUS <<_ACEOF
44135 for ac_last_try in false false false false false :; do
44136 cat >conf$$subs.sed <<_ACEOF
44137 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44138 QWT_LIB!$QWT_LIB$ac_delim
44140 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44141 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44142 WX_DIR!$WX_DIR$ac_delim
44143 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44144 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44145 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44146 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44147 STATIC_FD!$STATIC_FD$ac_delim
44148 STATIC_SD!$STATIC_SD$ac_delim
44149 STATIC_DIR!$STATIC_DIR$ac_delim
44150 STATIC_CONS!$STATIC_CONS$ac_delim
44151 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44152 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44153 ALL_DIRS!$ALL_DIRS$ac_delim
44154 DIRD_DIR!$DIRD_DIR$ac_delim
44155 DIR_TOOLS!$DIR_TOOLS$ac_delim
44156 STORED_DIR!$STORED_DIR$ac_delim
44157 CONS_INC!$CONS_INC$ac_delim
44158 CONS_OBJ!$CONS_OBJ$ac_delim
44159 CONS_SRC!$CONS_SRC$ac_delim
44160 CONS_LIBS!$CONS_LIBS$ac_delim
44161 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44162 READLINE_SRC!$READLINE_SRC$ac_delim
44163 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44164 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44165 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44166 OPENSSL_INC!$OPENSSL_INC$ac_delim
44167 working_dir!$working_dir$ac_delim
44168 archivedir!$archivedir$ac_delim
44169 scriptdir!$scriptdir$ac_delim
44170 plugindir!$plugindir$ac_delim
44171 dump_email!$dump_email$ac_delim
44172 job_email!$job_email$ac_delim
44173 smtp_host!$smtp_host$ac_delim
44174 piddir!$piddir$ac_delim
44175 subsysdir!$subsysdir$ac_delim
44176 baseport!$baseport$ac_delim
44177 dir_port!$dir_port$ac_delim
44178 fd_port!$fd_port$ac_delim
44179 sd_port!$sd_port$ac_delim
44180 dir_password!$dir_password$ac_delim
44181 fd_password!$fd_password$ac_delim
44182 sd_password!$sd_password$ac_delim
44183 mon_dir_password!$mon_dir_password$ac_delim
44184 mon_fd_password!$mon_fd_password$ac_delim
44185 mon_sd_password!$mon_sd_password$ac_delim
44186 db_name!$db_name$ac_delim
44187 db_user!$db_user$ac_delim
44188 db_password!$db_password$ac_delim
44189 db_port!$db_port$ac_delim
44190 dir_user!$dir_user$ac_delim
44191 dir_group!$dir_group$ac_delim
44192 sd_user!$sd_user$ac_delim
44193 sd_group!$sd_group$ac_delim
44194 fd_user!$fd_user$ac_delim
44195 fd_group!$fd_group$ac_delim
44196 SBINPERM!$SBINPERM$ac_delim
44197 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44198 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44199 SQL_BINDIR!$SQL_BINDIR$ac_delim
44200 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44201 uncomment_dbi!$uncomment_dbi$ac_delim
44202 DB_PROG!$DB_PROG$ac_delim
44203 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44204 cats!$cats$ac_delim
44205 DB_TYPE!$DB_TYPE$ac_delim
44206 GETCONF!$GETCONF$ac_delim
44207 XMKMF!$XMKMF$ac_delim
44208 X_CFLAGS!$X_CFLAGS$ac_delim
44209 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44210 X_LIBS!$X_LIBS$ac_delim
44211 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44212 LIBOBJS!$LIBOBJS$ac_delim
44213 FDLIBS!$FDLIBS$ac_delim
44214 DEBUG!$DEBUG$ac_delim
44215 DINCLUDE!$DINCLUDE$ac_delim
44216 DLIB!$DLIB$ac_delim
44217 DB_LIBS!$DB_LIBS$ac_delim
44218 WCFLAGS!$WCFLAGS$ac_delim
44219 WLDFLAGS!$WLDFLAGS$ac_delim
44220 WRAPLIBS!$WRAPLIBS$ac_delim
44221 OBJLIST!$OBJLIST$ac_delim
44222 hostname!$hostname$ac_delim
44223 TAPEDRIVE!$TAPEDRIVE$ac_delim
44224 PSCMD!$PSCMD$ac_delim
44225 WIN32!$WIN32$ac_delim
44226 MACOSX!$MACOSX$ac_delim
44227 DISTNAME!$DISTNAME$ac_delim
44228 DISTVER!$DISTVER$ac_delim
44229 LTLIBOBJS!$LTLIBOBJS$ac_delim
44232 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
44234 elif $ac_last_try; then
44235 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44236 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44237 { (exit 1); exit 1; }; }
44239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44243 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44244 if test -n "$ac_eof"; then
44245 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44246 ac_eof=`expr $ac_eof + 1`
44249 cat >>$CONFIG_STATUS <<_ACEOF
44250 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44254 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44255 s/^/s,@/; s/!/@,|#_!!_#|/
44258 s/'"$ac_delim"'$/,g/; t
44260 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44261 ' >>$CONFIG_STATUS <conf$$subs.sed
44262 rm -f conf$$subs.sed
44263 cat >>$CONFIG_STATUS <<_ACEOF
44270 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44271 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44272 # trailing colons and then remove the whole line if VPATH becomes empty
44273 # (actually we leave an empty line to preserve line numbers).
44274 if test "x$srcdir" = x.; then
44275 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44276 s/:*\$(srcdir):*/:/
44277 s/:*\${srcdir}:*/:/
44279 s/^\([^=]*=[ ]*\):*/\1/
44285 cat >>$CONFIG_STATUS <<\_ACEOF
44286 fi # test -n "$CONFIG_FILES"
44289 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44292 :[FHLC]) ac_mode=$ac_tag; continue;;
44294 case $ac_mode$ac_tag in
44296 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44297 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44298 { (exit 1); exit 1; }; };;
44299 :[FH]-) ac_tag=-:-;;
44300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44317 -) ac_f="$tmp/stdin";;
44318 *) # Look for the file first in the build tree, then in the source tree
44319 # (if the path is not absolute). The absolute path cannot be DOS-style,
44320 # because $ac_f cannot contain `:'.
44324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44326 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44327 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44328 { (exit 1); exit 1; }; };;
44330 ac_file_inputs="$ac_file_inputs $ac_f"
44333 # Let's still pretend it is `configure' which instantiates (i.e., don't
44334 # use $as_me), people would be surprised to read:
44335 # /* config.h. Generated by config.status. */
44336 configure_input="Generated from "`IFS=:
44337 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44338 if test x"$ac_file" != x-; then
44339 configure_input="$ac_file. $configure_input"
44340 { echo "$as_me:$LINENO: creating $ac_file" >&5
44341 echo "$as_me: creating $ac_file" >&6;}
44345 *:-:* | *:-) cat >"$tmp/stdin";;
44350 ac_dir=`$as_dirname -- "$ac_file" ||
44351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44352 X"$ac_file" : 'X\(//\)[^/]' \| \
44353 X"$ac_file" : 'X\(//\)$' \| \
44354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44360 /^X\(\/\/\)[^/].*/{
44375 -*) as_dir=./$as_dir;;
44377 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44381 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44382 *) as_qdir=$as_dir;;
44384 as_dirs="'$as_qdir' $as_dirs"
44385 as_dir=`$as_dirname -- "$as_dir" ||
44386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44387 X"$as_dir" : 'X\(//\)[^/]' \| \
44388 X"$as_dir" : 'X\(//\)$' \| \
44389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44395 /^X\(\/\/\)[^/].*/{
44408 test -d "$as_dir" && break
44410 test -z "$as_dirs" || eval "mkdir $as_dirs"
44411 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44412 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44413 { (exit 1); exit 1; }; }; }
44417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44420 # A ".." for each directory in $ac_dir_suffix.
44421 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44422 case $ac_top_builddir_sub in
44423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44427 ac_abs_top_builddir=$ac_pwd
44428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44429 # for backward compatibility:
44430 ac_top_builddir=$ac_top_build_prefix
44433 .) # We are building in place.
44435 ac_top_srcdir=$ac_top_builddir_sub
44436 ac_abs_top_srcdir=$ac_pwd ;;
44437 [\\/]* | ?:[\\/]* ) # Absolute name.
44438 ac_srcdir=$srcdir$ac_dir_suffix;
44439 ac_top_srcdir=$srcdir
44440 ac_abs_top_srcdir=$srcdir ;;
44441 *) # Relative name.
44442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44443 ac_top_srcdir=$ac_top_build_prefix$srcdir
44444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44456 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44457 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44461 cat >>$CONFIG_STATUS <<\_ACEOF
44462 # If the template does not know about datarootdir, expand it.
44463 # FIXME: This hack should be removed a few years after 2.60.
44464 ac_datarootdir_hack=; ac_datarootdir_seen=
44466 case `sed -n '/datarootdir/ {
44475 ' $ac_file_inputs` in
44476 *datarootdir*) ac_datarootdir_seen=yes;;
44477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44479 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44481 cat >>$CONFIG_STATUS <<_ACEOF
44482 ac_datarootdir_hack='
44483 s&@datadir@&$datadir&g
44484 s&@docdir@&$docdir&g
44485 s&@infodir@&$infodir&g
44486 s&@localedir@&$localedir&g
44487 s&@mandir@&$mandir&g
44488 s&\\\${datarootdir}&$datarootdir&g' ;;
44492 # Neutralize VPATH when `$srcdir' = `.'.
44493 # Shell code in configure.ac might set extrasub.
44494 # FIXME: do we really want to maintain this feature?
44495 cat >>$CONFIG_STATUS <<_ACEOF
44499 cat >>$CONFIG_STATUS <<\_ACEOF
44501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44502 s&@configure_input@&$configure_input&;t t
44503 s&@top_builddir@&$ac_top_builddir_sub&;t t
44504 s&@srcdir@&$ac_srcdir&;t t
44505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44506 s&@top_srcdir@&$ac_top_srcdir&;t t
44507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44508 s&@builddir@&$ac_builddir&;t t
44509 s&@abs_builddir@&$ac_abs_builddir&;t t
44510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44511 s&@INSTALL@&$ac_INSTALL&;t t
44512 $ac_datarootdir_hack
44513 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44518 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44519 which seems to be undefined. Please make sure it is defined." >&5
44520 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44521 which seems to be undefined. Please make sure it is defined." >&2;}
44525 -) cat "$tmp/out"; rm -f "$tmp/out";;
44526 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44535 # Transform confdefs.h into a sed script `conftest.defines', that
44536 # substitutes the proper values into config.h.in to produce config.h.
44537 rm -f conftest.defines conftest.tail
44538 # First, append a space to every undef/define line, to ease matching.
44539 echo 's/$/ /' >conftest.defines
44540 # Then, protect against being on the right side of a sed subst, or in
44541 # an unquoted here document, in config.status. If some macros were
44542 # called several times there might be several #defines for the same
44543 # symbol, which is useless. But do not sort them, since the last
44544 # AC_DEFINE must be honored.
44545 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44546 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44547 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44548 # PARAMS is the parameter list in the macro definition--in most cases, it's
44549 # just an empty string.
44550 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44551 ac_dB='\\)[ (].*,\\1define\\2'
44559 s/^[ ]*#[ ]*define[ ][ ]*//
44564 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44565 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44566 ' >>conftest.defines
44568 # Remove the space that was appended to ease matching.
44569 # Then replace #undef with comments. This is necessary, for
44570 # example, in the case of _POSIX_SOURCE, which is predefined and required
44571 # on some systems where configure will not decide to define it.
44572 # (The regexp can be short, since the line contains either #define or #undef.)
44574 s,^[ #]*u.*,/* & */,' >>conftest.defines
44576 # Break up conftest.defines:
44577 ac_max_sed_lines=50
44579 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44580 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44581 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44583 ac_in='$ac_file_inputs'
44584 ac_out='"$tmp/out1"'
44585 ac_nxt='"$tmp/out2"'
44589 # Write a here document:
44590 cat >>$CONFIG_STATUS <<_ACEOF
44591 # First, check the format of the line:
44592 cat >"\$tmp/defines.sed" <<\\CEOF
44593 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44594 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44598 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44600 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44601 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44602 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44603 grep . conftest.tail >/dev/null || break
44604 rm -f conftest.defines
44605 mv conftest.tail conftest.defines
44607 rm -f conftest.defines conftest.tail
44609 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44610 cat >>$CONFIG_STATUS <<\_ACEOF
44611 if test x"$ac_file" != x-; then
44612 echo "/* $configure_input */" >"$tmp/config.h"
44613 cat "$ac_result" >>"$tmp/config.h"
44614 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44615 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44616 echo "$as_me: $ac_file is unchanged" >&6;}
44619 mv "$tmp/config.h" $ac_file
44622 echo "/* $configure_input */"
44628 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44629 echo "$as_me: executing $ac_file commands" >&6;}
44634 case $ac_file$ac_mode in
44637 # See if we are running on zsh, and set the options which allow our
44638 # commands through without removal of \ escapes.
44639 if test -n "${ZSH_VERSION+set}" ; then
44640 setopt NO_GLOB_SUBST
44643 cfgfile="${ofile}T"
44644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44647 cat <<_LT_EOF >> "$cfgfile"
44650 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44651 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44655 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44656 # 2006, 2007, 2008 Free Software Foundation, Inc.
44657 # Written by Gordon Matzigkeit, 1996
44659 # This file is part of GNU Libtool.
44661 # GNU Libtool is free software; you can redistribute it and/or
44662 # modify it under the terms of the GNU General Public License as
44663 # published by the Free Software Foundation; either version 2 of
44664 # the License, or (at your option) any later version.
44666 # As a special exception to the GNU General Public License,
44667 # if you distribute this file as part of a program or library that
44668 # is built using GNU Libtool, you may include this file under the
44669 # same distribution terms that you use for the rest of that program.
44671 # GNU Libtool is distributed in the hope that it will be useful,
44672 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44674 # GNU General Public License for more details.
44676 # You should have received a copy of the GNU General Public License
44677 # along with GNU Libtool; see the file COPYING. If not, a copy
44678 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44679 # obtained by writing to the Free Software Foundation, Inc.,
44680 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44683 # The names of the tagged configurations supported by this script.
44684 available_tags="CXX "
44686 # ### BEGIN LIBTOOL CONFIG
44688 # Which release of libtool.m4 was used?
44689 macro_version=$macro_version
44690 macro_revision=$macro_revision
44692 # Whether or not to build shared libraries.
44693 build_libtool_libs=$enable_shared
44695 # Whether or not to build static libraries.
44696 build_old_libs=$enable_static
44698 # What type of objects to build.
44701 # Whether or not to optimize for fast installation.
44702 fast_install=$enable_fast_install
44705 host_alias=$host_alias
44709 # The build system.
44710 build_alias=$build_alias
44714 # A sed program that does not truncate output.
44717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44718 Xsed="\$SED -e 1s/^X//"
44720 # A grep program that handles long lines.
44726 # A literal string matcher.
44729 # A BSD- or MS-compatible name lister.
44732 # Whether we need soft or hard links.
44735 # What is the maximum length of a command?
44736 max_cmd_len=$max_cmd_len
44738 # Object file suffix (normally "o").
44741 # Executable file suffix (normally "").
44744 # whether the shell understands "unset".
44747 # turn spaces into newlines.
44750 # turn newlines into spaces.
44753 # How to create reloadable object files.
44754 reload_flag=$lt_reload_flag
44755 reload_cmds=$lt_reload_cmds
44757 # An object symbol dumper.
44758 OBJDUMP=$lt_OBJDUMP
44760 # Method to check whether dependent libraries are shared objects.
44761 deplibs_check_method=$lt_deplibs_check_method
44763 # Command to use when deplibs_check_method == "file_magic".
44764 file_magic_cmd=$lt_file_magic_cmd
44768 AR_FLAGS=$lt_AR_FLAGS
44770 # A symbol stripping program.
44773 # Commands used to install an old-style archive.
44775 old_postinstall_cmds=$lt_old_postinstall_cmds
44776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44781 # LTCC compiler flags.
44782 LTCFLAGS=$lt_CFLAGS
44784 # Take the output of nm and produce a listing of raw symbols and C names.
44785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44787 # Transform the output of nm in a proper C declaration.
44788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44790 # Transform the output of nm in a C name address pair.
44791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44793 # Transform the output of nm in a C name address pair when lib prefix is needed.
44794 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44796 # The name of the directory that contains temporary libtool files.
44799 # Shell to use when invoking shell scripts.
44802 # An echo program that does not interpret backslashes.
44805 # Used to examine libraries when file_magic_cmd begins with "file".
44806 MAGIC_CMD=$MAGIC_CMD
44808 # Must we lock files when doing compilation?
44809 need_locks=$lt_need_locks
44811 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44812 DSYMUTIL=$lt_DSYMUTIL
44814 # Tool to change global to local symbols on Mac OS X.
44817 # Tool to manipulate fat objects and archives on Mac OS X.
44820 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44823 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44824 OTOOL64=$lt_OTOOL64
44826 # Old archive suffix (normally "a").
44829 # Shared library suffix (normally ".so").
44830 shrext_cmds=$lt_shrext_cmds
44832 # The commands to extract the exported symbol list from a shared archive.
44833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44835 # Variables whose values should be saved in libtool wrapper scripts and
44836 # restored at link time.
44837 variables_saved_for_relink=$lt_variables_saved_for_relink
44839 # Do we need the "lib" prefix for modules?
44840 need_lib_prefix=$need_lib_prefix
44842 # Do we need a version for libraries?
44843 need_version=$need_version
44845 # Library versioning type.
44846 version_type=$version_type
44848 # Shared library runtime path variable.
44849 runpath_var=$runpath_var
44851 # Shared library path variable.
44852 shlibpath_var=$shlibpath_var
44854 # Is shlibpath searched before the hard-coded library search path?
44855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44857 # Format of library name prefix.
44858 libname_spec=$lt_libname_spec
44860 # List of archive names. First name is the real one, the rest are links.
44861 # The last name is the one that the linker finds with -lNAME
44862 library_names_spec=$lt_library_names_spec
44864 # The coded name of the library, if different from the real name.
44865 soname_spec=$lt_soname_spec
44867 # Command to use after installation of a shared archive.
44868 postinstall_cmds=$lt_postinstall_cmds
44870 # Command to use after uninstallation of a shared archive.
44871 postuninstall_cmds=$lt_postuninstall_cmds
44873 # Commands used to finish a libtool library installation in a directory.
44874 finish_cmds=$lt_finish_cmds
44876 # As "finish_cmds", except a single script fragment to be evaled but
44878 finish_eval=$lt_finish_eval
44880 # Whether we should hardcode library paths into libraries.
44881 hardcode_into_libs=$hardcode_into_libs
44883 # Compile-time system search path for libraries.
44884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44886 # Run-time system search path for libraries.
44887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44889 # Whether dlopen is supported.
44890 dlopen_support=$enable_dlopen
44892 # Whether dlopen of programs is supported.
44893 dlopen_self=$enable_dlopen_self
44895 # Whether dlopen of statically linked programs is supported.
44896 dlopen_self_static=$enable_dlopen_self_static
44898 # Commands to strip libraries.
44899 old_striplib=$lt_old_striplib
44900 striplib=$lt_striplib
44903 # The linker used to build libraries.
44906 # Commands used to build an old-style archive.
44907 old_archive_cmds=$lt_old_archive_cmds
44909 # A language specific compiler.
44912 # Is the compiler the GNU compiler?
44915 # Compiler flag to turn off builtin functions.
44916 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44918 # How to pass a linker flag through the compiler.
44919 wl=$lt_lt_prog_compiler_wl
44921 # Additional compiler flags for building library objects.
44922 pic_flag=$lt_lt_prog_compiler_pic
44924 # Compiler flag to prevent dynamic linking.
44925 link_static_flag=$lt_lt_prog_compiler_static
44927 # Does compiler simultaneously support -c and -o options?
44928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44930 # Whether or not to add -lc for building shared libraries.
44931 build_libtool_need_lc=$archive_cmds_need_lc
44933 # Whether or not to disallow shared libs when runtime libs are static.
44934 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44936 # Compiler flag to allow reflexive dlopens.
44937 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44939 # Compiler flag to generate shared objects directly from archives.
44940 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44942 # Whether the compiler copes with passing no objects directly.
44943 compiler_needs_object=$lt_compiler_needs_object
44945 # Create an old-style archive from a shared archive.
44946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44948 # Create a temporary old-style archive to link instead of a shared archive.
44949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44951 # Commands used to build a shared archive.
44952 archive_cmds=$lt_archive_cmds
44953 archive_expsym_cmds=$lt_archive_expsym_cmds
44955 # Commands used to build a loadable module if different from building
44956 # a shared archive.
44957 module_cmds=$lt_module_cmds
44958 module_expsym_cmds=$lt_module_expsym_cmds
44960 # Whether we are building with GNU ld or not.
44961 with_gnu_ld=$lt_with_gnu_ld
44963 # Flag that allows shared libraries with undefined symbols to be built.
44964 allow_undefined_flag=$lt_allow_undefined_flag
44966 # Flag that enforces no undefined symbols.
44967 no_undefined_flag=$lt_no_undefined_flag
44969 # Flag to hardcode \$libdir into a binary during linking.
44970 # This must work even if \$libdir does not exist
44971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44973 # If ld is used when linking, flag to hardcode \$libdir into a binary
44974 # during linking. This must work even if \$libdir does not exist.
44975 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44977 # Whether we need a single "-rpath" flag with a separated argument.
44978 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44980 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44981 # DIR into the resulting binary.
44982 hardcode_direct=$hardcode_direct
44984 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44985 # DIR into the resulting binary and the resulting library dependency is
44986 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44987 # library is relocated.
44988 hardcode_direct_absolute=$hardcode_direct_absolute
44990 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44991 # into the resulting binary.
44992 hardcode_minus_L=$hardcode_minus_L
44994 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44995 # into the resulting binary.
44996 hardcode_shlibpath_var=$hardcode_shlibpath_var
44998 # Set to "yes" if building a shared library automatically hardcodes DIR
44999 # into the library and all subsequent libraries and executables linked
45001 hardcode_automatic=$hardcode_automatic
45003 # Set to yes if linker adds runtime paths of dependent libraries
45004 # to runtime path list.
45005 inherit_rpath=$inherit_rpath
45007 # Whether libtool must link a program against all its dependency libraries.
45008 link_all_deplibs=$link_all_deplibs
45010 # Fix the shell variable \$srcfile for the compiler.
45011 fix_srcfile_path=$lt_fix_srcfile_path
45013 # Set to "yes" if exported symbols are required.
45014 always_export_symbols=$always_export_symbols
45016 # The commands to list exported symbols.
45017 export_symbols_cmds=$lt_export_symbols_cmds
45019 # Symbols that should not be listed in the preloaded symbols.
45020 exclude_expsyms=$lt_exclude_expsyms
45022 # Symbols that must always be exported.
45023 include_expsyms=$lt_include_expsyms
45025 # Commands necessary for linking programs (against libraries) with templates.
45026 prelink_cmds=$lt_prelink_cmds
45028 # Specify filename containing input files.
45029 file_list_spec=$lt_file_list_spec
45031 # How to hardcode a shared library path into an executable.
45032 hardcode_action=$hardcode_action
45034 # The directories searched by this compiler when creating a shared library.
45035 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45037 # Dependencies to place before and after the objects being linked to
45038 # create a shared library.
45039 predep_objects=$lt_predep_objects
45040 postdep_objects=$lt_postdep_objects
45041 predeps=$lt_predeps
45042 postdeps=$lt_postdeps
45044 # The library search path used internally by the compiler when linking
45045 # a shared library.
45046 compiler_lib_search_path=$lt_compiler_lib_search_path
45048 # ### END LIBTOOL CONFIG
45054 cat <<\_LT_EOF >> "$cfgfile"
45055 # AIX sometimes has problems with the GCC collect2 program. For some
45056 # reason, if we set the COLLECT_NAMES environment variable, the problems
45057 # vanish in a puff of smoke.
45058 if test "X${COLLECT_NAMES+set}" != Xset; then
45060 export COLLECT_NAMES
45067 ltmain="$ac_aux_dir/ltmain.sh"
45070 # We use sed instead of cat because bash on DJGPP gets confused if
45071 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45072 # text mode, it properly converts lines to CR/LF. This bash problem
45073 # is reportedly fixed, but why not run on old versions too?
45074 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45075 || (rm -f "$cfgfile"; exit 1)
45079 cat << \_LT_EOF >> "$cfgfile"
45081 # func_dirname file append nondir_replacement
45082 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45083 # otherwise set result to NONDIR_REPLACEMENT.
45087 */*) func_dirname_result="${1%/*}${2}" ;;
45088 * ) func_dirname_result="${3}" ;;
45092 # func_basename file
45095 func_basename_result="${1##*/}"
45098 # func_dirname_and_basename file append nondir_replacement
45099 # perform func_basename and func_dirname in a single function
45101 # dirname: Compute the dirname of FILE. If nonempty,
45102 # add APPEND to the result, otherwise set result
45103 # to NONDIR_REPLACEMENT.
45104 # value returned in "$func_dirname_result"
45105 # basename: Compute filename of FILE.
45106 # value retuned in "$func_basename_result"
45107 # Implementation must be kept synchronized with func_dirname
45108 # and func_basename. For efficiency, we do not delegate to
45109 # those functions but instead duplicate the functionality here.
45110 func_dirname_and_basename ()
45113 */*) func_dirname_result="${1%/*}${2}" ;;
45114 * ) func_dirname_result="${3}" ;;
45116 func_basename_result="${1##*/}"
45119 # func_stripname prefix suffix name
45120 # strip PREFIX and SUFFIX off of NAME.
45121 # PREFIX and SUFFIX must not contain globbing or regex special
45122 # characters, hashes, percent signs, but SUFFIX may contain a leading
45123 # dot (in which case that matches only a dot).
45126 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45127 # positional parameters, so assign one to ordinary parameter first.
45128 func_stripname_result=${3}
45129 func_stripname_result=${func_stripname_result#"${1}"}
45130 func_stripname_result=${func_stripname_result%"${2}"}
45136 func_opt_split_opt=${1%%=*}
45137 func_opt_split_arg=${1#*=}
45144 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45145 *) func_lo2o_result=${1} ;;
45149 # func_xform libobj-or-source
45152 func_xform_result=${1%.*}.lo
45155 # func_arith arithmetic-term...
45158 func_arith_result=$(( $* ))
45162 # STRING may not start with a hyphen.
45165 func_len_result=${#1}
45170 *) # Bourne compatible functions.
45171 cat << \_LT_EOF >> "$cfgfile"
45173 # func_dirname file append nondir_replacement
45174 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45175 # otherwise set result to NONDIR_REPLACEMENT.
45178 # Extract subdirectory from the argument.
45179 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45180 if test "X$func_dirname_result" = "X${1}"; then
45181 func_dirname_result="${3}"
45183 func_dirname_result="$func_dirname_result${2}"
45187 # func_basename file
45190 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45194 # func_stripname prefix suffix name
45195 # strip PREFIX and SUFFIX off of NAME.
45196 # PREFIX and SUFFIX must not contain globbing or regex special
45197 # characters, hashes, percent signs, but SUFFIX may contain a leading
45198 # dot (in which case that matches only a dot).
45199 # func_strip_suffix prefix name
45203 .*) func_stripname_result=`$ECHO "X${3}" \
45204 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45205 *) func_stripname_result=`$ECHO "X${3}" \
45206 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45211 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45212 my_sed_long_arg='1s/^-[^=]*=//'
45217 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45218 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45224 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45227 # func_xform libobj-or-source
45230 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45233 # func_arith arithmetic-term...
45236 func_arith_result=`expr "$@"`
45240 # STRING may not start with a hyphen.
45243 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45249 case $lt_shell_append in
45251 cat << \_LT_EOF >> "$cfgfile"
45253 # func_append var value
45254 # Append VALUE to the end of shell variable VAR.
45262 cat << \_LT_EOF >> "$cfgfile"
45264 # func_append var value
45265 # Append VALUE to the end of shell variable VAR.
45276 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45277 || (rm -f "$cfgfile"; exit 1)
45279 mv -f "$cfgfile" "$ofile" ||
45280 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45284 cat <<_LT_EOF >> "$ofile"
45286 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45288 # The linker used to build libraries.
45291 # Commands used to build an old-style archive.
45292 old_archive_cmds=$lt_old_archive_cmds_CXX
45294 # A language specific compiler.
45295 CC=$lt_compiler_CXX
45297 # Is the compiler the GNU compiler?
45300 # Compiler flag to turn off builtin functions.
45301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45303 # How to pass a linker flag through the compiler.
45304 wl=$lt_lt_prog_compiler_wl_CXX
45306 # Additional compiler flags for building library objects.
45307 pic_flag=$lt_lt_prog_compiler_pic_CXX
45309 # Compiler flag to prevent dynamic linking.
45310 link_static_flag=$lt_lt_prog_compiler_static_CXX
45312 # Does compiler simultaneously support -c and -o options?
45313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45315 # Whether or not to add -lc for building shared libraries.
45316 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45318 # Whether or not to disallow shared libs when runtime libs are static.
45319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45321 # Compiler flag to allow reflexive dlopens.
45322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45324 # Compiler flag to generate shared objects directly from archives.
45325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45327 # Whether the compiler copes with passing no objects directly.
45328 compiler_needs_object=$lt_compiler_needs_object_CXX
45330 # Create an old-style archive from a shared archive.
45331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45333 # Create a temporary old-style archive to link instead of a shared archive.
45334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45336 # Commands used to build a shared archive.
45337 archive_cmds=$lt_archive_cmds_CXX
45338 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45340 # Commands used to build a loadable module if different from building
45341 # a shared archive.
45342 module_cmds=$lt_module_cmds_CXX
45343 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45345 # Whether we are building with GNU ld or not.
45346 with_gnu_ld=$lt_with_gnu_ld_CXX
45348 # Flag that allows shared libraries with undefined symbols to be built.
45349 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45351 # Flag that enforces no undefined symbols.
45352 no_undefined_flag=$lt_no_undefined_flag_CXX
45354 # Flag to hardcode \$libdir into a binary during linking.
45355 # This must work even if \$libdir does not exist
45356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45358 # If ld is used when linking, flag to hardcode \$libdir into a binary
45359 # during linking. This must work even if \$libdir does not exist.
45360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45362 # Whether we need a single "-rpath" flag with a separated argument.
45363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45366 # DIR into the resulting binary.
45367 hardcode_direct=$hardcode_direct_CXX
45369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45370 # DIR into the resulting binary and the resulting library dependency is
45371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45372 # library is relocated.
45373 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45376 # into the resulting binary.
45377 hardcode_minus_L=$hardcode_minus_L_CXX
45379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45380 # into the resulting binary.
45381 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45383 # Set to "yes" if building a shared library automatically hardcodes DIR
45384 # into the library and all subsequent libraries and executables linked
45386 hardcode_automatic=$hardcode_automatic_CXX
45388 # Set to yes if linker adds runtime paths of dependent libraries
45389 # to runtime path list.
45390 inherit_rpath=$inherit_rpath_CXX
45392 # Whether libtool must link a program against all its dependency libraries.
45393 link_all_deplibs=$link_all_deplibs_CXX
45395 # Fix the shell variable \$srcfile for the compiler.
45396 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45398 # Set to "yes" if exported symbols are required.
45399 always_export_symbols=$always_export_symbols_CXX
45401 # The commands to list exported symbols.
45402 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45404 # Symbols that should not be listed in the preloaded symbols.
45405 exclude_expsyms=$lt_exclude_expsyms_CXX
45407 # Symbols that must always be exported.
45408 include_expsyms=$lt_include_expsyms_CXX
45410 # Commands necessary for linking programs (against libraries) with templates.
45411 prelink_cmds=$lt_prelink_cmds_CXX
45413 # Specify filename containing input files.
45414 file_list_spec=$lt_file_list_spec_CXX
45416 # How to hardcode a shared library path into an executable.
45417 hardcode_action=$hardcode_action_CXX
45419 # The directories searched by this compiler when creating a shared library.
45420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45422 # Dependencies to place before and after the objects being linked to
45423 # create a shared library.
45424 predep_objects=$lt_predep_objects_CXX
45425 postdep_objects=$lt_postdep_objects_CXX
45426 predeps=$lt_predeps_CXX
45427 postdeps=$lt_postdeps_CXX
45429 # The library search path used internally by the compiler when linking
45430 # a shared library.
45431 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45433 # ### END LIBTOOL TAG CONFIG: CXX
45438 for ac_file in $CONFIG_FILES; do
45439 # Support "outfile[:infile[:infile...]]"
45441 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45443 # PO directories have a Makefile.in generated from Makefile.in.in.
45444 case "$ac_file" in */Makefile.in)
45445 # Adjust a relative srcdir.
45446 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45447 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45448 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45449 # In autoconf-2.13 it is called $ac_given_srcdir.
45450 # In autoconf-2.50 it is called $srcdir.
45451 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45452 case "$ac_given_srcdir" in
45453 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45454 /*) top_srcdir="$ac_given_srcdir" ;;
45455 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45457 # Treat a directory as a PO directory if and only if it has a
45458 # POTFILES.in file. This allows packages to have multiple PO
45459 # directories under different names or in different locations.
45460 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45461 rm -f "$ac_dir/POTFILES"
45462 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45463 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45464 POMAKEFILEDEPS="POTFILES.in"
45465 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45466 # on $ac_dir but don't depend on user-specified configuration
45468 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45469 # The LINGUAS file contains the set of available languages.
45470 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45471 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45473 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45474 # Hide the ALL_LINGUAS assigment from automake.
45475 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45476 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45478 # The set of available languages was given in configure.in.
45479 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45482 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45483 # Compute UPDATEPOFILES
45484 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45485 # Compute DUMMYPOFILES
45486 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45488 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45489 case "$ac_given_srcdir" in
45491 *) srcdirpre='$(srcdir)/' ;;
45497 for lang in $ALL_LINGUAS; do
45498 POFILES="$POFILES $srcdirpre$lang.po"
45499 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45500 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45501 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45503 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45504 # environment variable.
45506 if test -n "$ALL_LINGUAS"; then
45507 for presentlang in $ALL_LINGUAS; do
45509 if test "%UNSET%" != "$LINGUAS"; then
45510 desiredlanguages="$LINGUAS"
45512 desiredlanguages="$ALL_LINGUAS"
45514 for desiredlang in $desiredlanguages; do
45515 # Use the presentlang catalog if desiredlang is
45516 # a. equal to presentlang, or
45517 # b. a variant of presentlang (because in this case,
45518 # presentlang can be used as a fallback for messages
45519 # which are not translated in the desiredlang catalog).
45520 case "$desiredlang" in
45521 "$presentlang"*) useit=yes;;
45524 if test $useit = yes; then
45525 INST_LINGUAS="$INST_LINGUAS $presentlang"
45530 if test -n "$INST_LINGUAS"; then
45531 for lang in $INST_LINGUAS; do
45532 CATALOGS="$CATALOGS $lang.gmo"
45535 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45536 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
45537 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45538 if test -f "$f"; then
45540 *.orig | *.bak | *~) ;;
45541 *) cat "$f" >> "$ac_dir/Makefile" ;;
45556 { (exit 0); exit 0; }
45558 chmod +x $CONFIG_STATUS
45559 ac_clean_files=$ac_clean_files_save
45562 # configure is writing to config.log, and then calls config.status.
45563 # config.status does its own redirection, appending to config.log.
45564 # Unfortunately, on DOS this fails, as config.log is still kept open
45565 # by configure, so config.status won't be able to write to it; its
45566 # output is simply discarded. So we exec the FD to /dev/null,
45567 # effectively closing config.log, so it can be properly (re)opened and
45568 # appended to by config.status. When coming back to configure, we
45569 # need to make the FD available again.
45570 if test "$no_create" != yes; then
45572 ac_config_status_args=
45573 test "$silent" = yes &&
45574 ac_config_status_args="$ac_config_status_args --quiet"
45576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45579 # would make configure fail if this is the last instruction.
45580 $ac_cs_success || { (exit 1); exit 1; }
45584 if test "${support_bat}" = "yes" ; then
45585 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45586 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45592 if test "x$QMAKEQT4" != "xnone"; then
45597 echo "Creating bat Makefile"
45603 if test X"$GCC" = "Xyes" ; then
45604 echo "Doing make of dependencies"
45605 ${MAKE:-make} depend
45609 chmod 755 install_conf_file build-depkgs-qt-console
45613 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45614 chmod 755 dvd-handler dvd-simulator
45615 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45619 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45620 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45624 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45625 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45627 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45628 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45630 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45631 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45633 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45634 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45636 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45637 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45639 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45640 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45642 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45643 chmod 755 $c/sqlite
45646 chmod 755 src/win32/build-depkgs-mingw32
45648 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45649 largefile_support="yes"
45652 if test X"$GCC" = "Xyes" ; then
45653 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45654 if test "x${CCVERSION}" = "x" ; then
45655 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45657 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45658 if test x"${CXXVERSION}" = x ; then
45659 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45663 # clean up any old junk
45669 if test "x${db_type}" = "xInternal" ; then
45672 echo "You have not specified either --enable-client-only or one of the"
45673 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45674 echo " This is not permitted. Please reconfigure."
45676 echo "Aborting the configuration ..."
45683 Configuration on `date`:
45685 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45686 Bacula version: ${BACULA} ${VERSION} (${DATE})
45687 Source code location: ${srcdir}
45688 Install binaries: ${sbindir}
45689 Install libraries: ${libdir}
45690 Install config files: ${sysconfdir}
45691 Scripts directory: ${scriptdir}
45692 Archive directory: ${archivedir}
45693 Working directory: ${working_dir}
45694 PID directory: ${piddir}
45695 Subsys directory: ${subsysdir}
45696 Man directory: ${mandir}
45697 Data directory: ${datarootdir}
45698 Plugin directory: ${plugindir}
45699 C Compiler: ${CC} ${CCVERSION}
45700 C++ Compiler: ${CXX} ${CXXVERSION}
45701 Compiler flags: ${WCFLAGS} ${CFLAGS}
45702 Linker flags: ${WLDFLAGS} ${LDFLAGS}
45704 Statically Linked Tools: ${support_static_tools}
45705 Statically Linked FD: ${support_static_fd}
45706 Statically Linked SD: ${support_static_sd}
45707 Statically Linked DIR: ${support_static_dir}
45708 Statically Linked CONS: ${support_static_cons}
45709 Database type: ${db_type}
45710 Database port: ${db_port}
45711 Database lib: ${DB_LIBS}
45712 Database name: ${db_name}
45713 Database user: ${db_user}
45715 Job Output Email: ${job_email}
45716 Traceback Email: ${dump_email}
45717 SMTP Host Address: ${smtp_host}
45719 Director Port: ${dir_port}
45720 File daemon Port: ${fd_port}
45721 Storage daemon Port: ${sd_port}
45723 Director User: ${dir_user}
45724 Director Group: ${dir_group}
45725 Storage Daemon User: ${sd_user}
45726 Storage DaemonGroup: ${sd_group}
45727 File Daemon User: ${fd_user}
45728 File Daemon Group: ${fd_group}
45730 SQL binaries Directory ${SQL_BINDIR}
45732 Large file support: $largefile_support
45733 Bacula conio support: ${got_conio} ${CONS_LIBS}
45734 readline support: ${got_readline} ${PRTREADLINE_SRC}
45735 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
45736 TLS support: ${support_tls}
45737 Encryption support: ${support_crypto}
45738 ZLIB support: ${have_zlib}
45739 enable-smartalloc: ${support_smartalloc}
45740 enable-lockmgr: ${support_lockmgr}
45741 bat support: ${support_bat} ${QWT_LDFLAGS}
45742 enable-gnome: ${support_gnome} ${gnome_version}
45743 enable-bwx-console: ${support_wx_console} ${wx_version}
45744 enable-tray-monitor: ${support_tray_monitor}
45745 client-only: ${build_client_only}
45746 build-dird: ${build_dird}
45747 build-stored: ${build_stored}
45748 ACL support: ${have_acl}
45749 XATTR support: ${have_xattr}
45750 Python support: ${support_python} ${PYTHON_LIBS}
45751 Batch insert enabled: ${support_batch_insert}